/*
 * Styles for templates/gold.php ("Продажа золота")
 * Loaded only on this template — see immimaze_scripts() in functions.php.
 * Kept unminified on purpose so it stays editable (main.min.css / mobile.min.css are build output).
 */

.page-gold {
  color: #fff;
}

/* ==========================================================================
   Hero — plain flex layout capped at 1240px, matching the Figma content frame.
   ========================================================================== */

/* Desktop header is position:absolute, height ~80px, and overlays the top of
   the page (see .header in main.min.css) — .gold-hero intentionally starts
   at top:0 so its background bleeds behind it; foreground content must keep
   at least 80px clearance from the top on desktop. Below 991px the theme
   switches .header to position:static (in-flow), so no clearance is needed
   there. */
.gold-hero {
  position: relative;
  width: 100%;
  min-height: 770px;
  overflow: hidden;
  background-color: #030303;
  background-image: url(../images/gold-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gold-hero__container {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 135px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.gold-hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}

.gold-hero__heading h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 66px;
  line-height: 74px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #cdf545 0%, #2f5300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 13.0544px 13.0544px rgba(0, 0, 0, 0.25);
}

.gold-hero__heading p {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  color: #fff;
}

.gold-hero__body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.gold-hero__image {
  flex: none;
  width: 410px;
  filter: drop-shadow(-20px -7px 24px rgba(0, 0, 0, 0.55));
  animation: gold-hero-float 4s ease-in-out infinite;
}

@keyframes gold-hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gold-hero__image {
    animation: none;
  }
}

.gold-hero__image img {
  display: block;
  width: 100%;
  height: auto;
}

.gold-hero__cards {
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gold-hero__card {
  box-sizing: border-box;
  padding: 20px;
  background: #10100e;
  border: 1px solid #4f4f4f;
  border-radius: 20px;
}

.gold-hero__card h3 {
  margin: 0 0 40px;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: #cdf545;
}

.gold-hero__card p {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 20px;
  color: #ededed;
  opacity: 0.7;
}

.gold-hero__right {
  flex: 1 1 300px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 90px;
}

.gold-hero__right p {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  text-align: right;
  color: #ededed;
}

.gold-hero__socials {
  display: flex;
  align-items: center;
  gap: 27px;
}

.gold-hero__social {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 70px;
  background: linear-gradient(135.89deg, #cdf545 0%, #2f5300 107.53%);
  box-shadow: 0px 19.6px 15.4px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease;
}

.gold-hero__social:hover {
  transform: translateY(-3px);
}

.gold-hero__social svg {
  width: 40%;
  height: 40%;
}

/* ---------- Mobile fallback: stack everything ---------- */

@media (max-width: 991px) {
  .gold-hero {
    min-height: 0;
  }

  .gold-hero__container {
    height: auto;
    padding: 40px 20px;
    gap: 30px;
  }

  .gold-hero__body {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .gold-hero__heading h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .gold-hero__heading p {
    font-size: 13px;
  }

  .gold-hero__image {
    width: 100%;
    max-width: 320px;
  }

  .gold-hero__cards,
  .gold-hero__right {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .gold-hero__card h3 {
    font-size: 14px;
  }

  .gold-hero__card p {
    font-size: 12px;
  }

  .gold-hero__right {
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .gold-hero__right p {
    text-align: center;
    font-size: 16px;
  }

  .gold-hero__social {
    width: 54px;
    height: 54px;
  }
}

/* ==========================================================================
   Products
   ========================================================================== */

.gold-products {
  position: relative;
  padding: 100px 0;
  background-color: #030303;
}

.gold-products__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.gold-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.gold-product {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: rgba(33, 33, 33, 0.6);
  border-radius: 24px;
}

.gold-product.is-hidden {
  display: none;
}

.gold-product__media-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gold-product__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
}

.gold-product__media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.gold-product__media--flippable:hover .gold-product__media-inner {
  transform: rotateY(180deg);
}

.gold-product__media-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-color: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gold-product__media-face--back {
  transform: rotateY(180deg);
}

.gold-product__top-row {
  position: absolute;
  inset: 20px 20px auto;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.gold-product__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #4f4f4f;
  border-radius: 30px;
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  line-height: 15px;
  color: #151515;
}

.gold-product__check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #cdf545;
  border: 1px solid #4f4f4f;
  border-radius: 30px;
}

.gold-product__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 140px;
  height: 32px;
  background: #cdf545;
  border-radius: 0 0 10px 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #030303;
}

.gold-product__price-currency {
  font-weight: 500;
}

.gold-product__title {
  margin: 0;
  width: 100%;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  color: #cdf545;
}

.gold-product__specs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gold-product__spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "Unbounded", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: #bdbdbd;
}

.gold-product__spec span:last-child {
  font-weight: 500;
  color: #fff;
}

.gold-product__buy {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1px solid #fff;
  border-radius: 30px;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  line-height: 17px;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.gold-product__buy:hover {
  background: #fff;
  color: #030303;
}

.gold-product__buy:hover svg path {
  fill: #030303;
}

.gold-products__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.gold-products__more .btn-more {
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  background: #3d3d3d;
  border-radius: 30px;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  color: #cdf545;
  transition: background-color 0.3s ease;
  min-width: 400px;
}

.gold-products__more .btn-more:hover {
  background: #262626;
}

@media (max-width: 1200px) {
  .gold-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .gold-products {
    padding: 60px 0;
  }
}

@media (max-width: 640px) {
  .gold-products__grid {
    grid-template-columns: 1fr;
  }
  .gold-products__more .btn-more {
    min-width: 200px;
  }
}

/* ==========================================================================
   Partners
   ========================================================================== */

.gold-partners {
  padding: 0 0 100px;
  background-color: #030303;
}

@media (max-width: 991px) {
  .gold-partners {
    padding-bottom: 60px;
  }
}

.gold-partners__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.gold-partners__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 194px;
  background: rgba(55, 55, 55, 0.23);
  border-radius: 24px;
}

.gold-partners__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(163deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.03) 35%, rgba(255, 255, 255, 0.03) 65%, rgba(255, 255, 255, 0.16) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gold-partners__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border-right: 1px solid rgba(185, 185, 185, 0.35);
}

.gold-partners__item:last-child {
  border-right: none;
}

.gold-partners__item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  filter: grayscale(1) brightness(0) invert(0.73);
  opacity: 0.9;
}

@media (max-width: 991px) {
  .gold-partners__card {
    flex-direction: column;
    min-height: 0;
    padding: 20px 0;
  }

  .gold-partners__item {
    width: 100%;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(185, 185, 185, 0.35);
  }

  .gold-partners__item:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.gold-about {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background-color: #030303;
  background-image: url(../images/gold-bg2.png);
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

.gold-about__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.gold-about__left {
  flex: 1 1 480px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 55px;
}

.gold-about__title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 42px;
  text-transform: uppercase;
  color: #fff;
}

.gold-about__accent {
  color: #cdf545;
}

.gold-about__image img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  filter: drop-shadow(-20px -7px 24px rgba(0, 0, 0, 0.55));
}

.gold-about__text {
  flex: 1 1 460px;
  max-width: 591px;
  
  
}

.gold-about__text p {
  margin: 0 0 30px;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  color: #ededed;
}

.gold-about__text p:last-child {
  margin-bottom: 0;
}

.gold-about__text strong {
  font-weight: 700;
  color: #fff;
}

.gold-about__text a {
  color: #cdf545;
  text-decoration: none;
}

.gold-about__text a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .gold-about {
    padding: 60px 0;
  }

  .gold-about__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .gold-about__title {
    font-size: 26px;
    line-height: 32px;
  }

  .gold-about__left {
    gap: 30px;
  }

  .gold-about__left,
  .gold-about__text {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

/* ==========================================================================
   Security
   ========================================================================== */

.gold-security {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background-color: #030303;
}

.gold-security::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  width: 879px;
  height: 594px;
  background-image: url(../images/gold-security-glow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.gold-security__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.gold-security__heading {
  max-width: 1240px;
  margin: 0 auto 60px;
  text-align: center;
}

.gold-security__title {
  margin: 0 0 25px;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 55px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #cdf545 0%, #2f5300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-security__subtitle {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  color: #fff;
}

.gold-security__body {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.gold-security__text {
  flex: 1 1 460px;
  max-width: 715px;
}

.gold-security__text p {
  margin: 0 0 20px;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  color: #ededed;
}

.gold-security__text p:last-child {
  margin-bottom: 0;
  color: #cdf545;
}

.gold-security__text a {
  color: inherit;
  text-decoration: underline;
}

.gold-security__image {
  flex: 1 1 300px;
  max-width: 430px;
  margin-left: auto;
}

.gold-security__image img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(-20px -7px 24px rgba(0, 0, 0, 0.55));
}

@media (max-width: 991px) {
  .gold-security {
    padding: 60px 0;
  }

  .gold-security::before {
    width: 500px;
    height: 340px;
  }

  .gold-security__heading {
    margin-bottom: 30px;
  }

  .gold-security__title {
    font-size: 28px;
    line-height: 34px;
  }

  .gold-security__subtitle {
    font-size: 14px;
  }

  .gold-security__body {
    flex-direction: column;
    gap: 30px;
  }

  .gold-security__text,
  .gold-security__image {
    flex: none;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   Steps
   ========================================================================== */

.gold-steps {
  padding: 0 0 100px;
  background-color: #030303;
}

.gold-steps__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.gold-steps__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.gold-steps__title {
  flex: 1 1 400px;
  max-width: 556px;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 42px;
  text-transform: uppercase;
  color: #fff;
}

.gold-steps__text {
  flex: 1 1 300px;
  max-width: 523px;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 30px;
  text-align: right;
  color: #ededed;
}

.gold-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gold-step {
  box-sizing: border-box;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: #10100e;
  border: 1px solid #4f4f4f;
  border-radius: 20px;
}

.gold-step__number {
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  text-transform: uppercase;
  color: #cdf545;
}

.gold-step__text {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 20px;
  color: #ededed;
}

@media (max-width: 1200px) {
  .gold-steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .gold-steps {
    padding-bottom: 60px;
  }

  .gold-steps__heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .gold-steps__title {
    flex: none;
    font-size: 26px;
    line-height: 32px;
    max-width: none;
  }

  .gold-steps__text {
    flex: none;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .gold-steps__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA
   ========================================================================== */

.gold-cta {
  padding: 0 0 100px;
  background-color: #030303;
}

@media (max-width: 991px) {
  .gold-cta {
    padding-bottom: 60px;
  }
}

.gold-cta__card {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 30px;
  background-color: rgba(33, 33, 33, 0.6);
  background-image: url(../images/gold-bg3.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 30px;
  text-align: center;
}

.gold-cta__title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: #cdf545;
}

.gold-cta__subtitle {
  margin: 0;
  max-width: 460px;
  font-family: "Unbounded", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.25;
  color: #bdbdbd;
}

.gold-cta__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 214px;
  height: 44px;
  padding: 8px 30px;
  background: #cdf545;
  border-radius: 30px;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #020202;
  transition: background-color 0.3s ease;
}

.gold-cta__btn:hover {
  background: #b3d932;
}

@media (max-width: 640px) {
  .gold-cta__card {
    padding: 30px 20px;
  }

  .gold-cta__title {
    font-size: 22px;
  }

  .gold-cta__btn {
    width: 100%;
  }
}
