@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  background: #000;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  background: url('../img/hero.webp') center top / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

/* ── Logo ── */
.hero__logo {
  margin-top: 32px;
  width: 160px;
  display: block;
}

/* ── Headline ── */
.hero__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 96%;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0px 3.75937px 3.75937px rgba(0, 0, 0, 0.85);
  color: #fff;
  text-transform: uppercase;
  margin-top: 24px;
}

.hero__title .accent {
  color: #F85A00;
}

/* ── Hero content row: ticket-left + cta-right ── */
.hero__content {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 32px;
    width: 100%;
    max-width: 1600px;
    padding: 0 60px;
    flex-direction: column;
}

/* ── Ticket column (left) ── */
.ticket-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Ticket + stand group */
.ticket-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-wrap {
    position: relative;
    width: 880px;
    left: -347px;
    top: 77px;
    cursor: url('../img/coin.webp') 32 32, crosshair;
    z-index: 2;
    transform: perspective(900px) rotateX(7deg);
    transform-origin: center bottom;
}

.ticket-wrap .ticket-bg {
  width: 100%;
  height: auto;
  display: block;

}

/* Stand: 1277px wide, sits below ticket with overlap */
.stand-img {
    width: 1277px;
    margin-top: -222px;
    position: relative;
    z-index: 1;
    margin-left: -675px;
}


.scratch-zone {
    position: absolute;
    left: 346px;
    top: 210px;
    width: 294px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: url('../img/coin.webp') 32 32, crosshair;
}

.scratch-zone .scratch-revealed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  user-select: none;
  pointer-events: none;
}

.scratch-zone canvas {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  cursor: url('../img/coin.webp') 32 32, crosshair;
}

/* ── CTA column (right) ── */
.cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: -70px;
}

/* ── Button bounce animation ── */
@keyframes btn-bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-8px); }
  60%       { transform: translateY(-4px); }
}

.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 392px;
  height: 108px;
  background: url('../img/btn.webp') center / cover no-repeat;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 83%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 18px;
  /* Tight bottom glow only — no white gaps */
  box-shadow:
    0px 8px  16px rgba(244, 86, 0, 0.34),
    0px 20px 40px rgba(244, 86, 0, 0.28),
    0px 40px 60px rgba(244, 86, 0, 0.16),
    inset 0px 3.98639px 7.97279px rgba(255, 255, 255, 0.25);
  animation: btn-bounce 2.4s ease-in-out infinite;
  transition: box-shadow 0.15s;
}

.hero__cta:hover {
  background-image: url('../img/btn_hover.webp');
  box-shadow:
    0px 8px  20px rgba(244, 86, 0, 0.44),
    0px 24px 50px rgba(244, 86, 0, 0.36),
    0px 50px 80px rgba(244, 86, 0, 0.22),
    inset 0px 3.98639px 7.97279px rgba(255, 255, 255, 0.25);
  animation-play-state: paused;
}

.hero__cta:active {
  background-image: url('../img/btn_pressed.webp');
  height: 96px;
  box-shadow: none;
  animation-play-state: paused;
}

/* ── FotMob logo under button ── */
.hero__fotmob {
  display: block;
  width: 215px;
  opacity: 0.9;
}

/* ── Wooden block holder ── */
.ticket-block {
    position: absolute;
    bottom: -43px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    z-index: 3;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}
/* ═══════════════════════════════════════
   DIVIDER
═══════════════════════════════════════ */
.divider {
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, #ADA2AA 0%, #D1CAD2 100%);
}

/* ═══════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════ */
.features {
  position: relative;
  width: 100%;
  background: url('../img/bg2.webp') center center / cover no-repeat;
  background-color: #E84800; /* fallback if bg2 doesn't cover */
  padding: 80px 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Cards row */
.features__cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1920px;
  align-items: flex-end;
}

/* Individual card */
.feature-card {
  position: relative;
  width: 492px;
  flex-shrink: 0;
}

/* Center card elevated */
.feature-card--center {
  margin-bottom: 60px;
}

.feature-card__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text over the dark bottom of card */
.feature-card__text {
  position: absolute;
  bottom: 30%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 20px;
}

.feature-card__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 8px;
}

.feature-card__sub {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.8);
}
/* ═══════════════════════════════════════
   FOOTER BANNER
═══════════════════════════════════════ */
.footer-banner {
  position: relative;
  margin: -80px auto 0px;
  border-radius: 20px;
  overflow: hidden;
}

.footer-banner__bg {
  width: 1512px;
  height: auto;
  display: block;
  border-radius: 20px;
}

.footer-banner__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px 0 56px;
}

.footer-banner__text {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* Reuse same btn style — separate class for footer */
.footer-banner__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 392px;
  height: 108px;
  background: url('../img/btn.webp') center / cover no-repeat;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 83%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 18px;
  box-shadow:
    0px 8px  16px rgba(244, 86, 0, 0.34),
    0px 20px 40px rgba(244, 86, 0, 0.28),
    0px 40px 60px rgba(244, 86, 0, 0.16),
    inset 0px 3.98639px 7.97279px rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.15s;
  flex-shrink: 0;
}

.footer-banner__btn:hover {
  background-image: url('../img/btn_hover.webp');
  box-shadow:
    0px 8px  20px rgba(244, 86, 0, 0.44),
    0px 24px 50px rgba(244, 86, 0, 0.36),
    0px 50px 80px rgba(244, 86, 0, 0.22),
    inset 0px 3.98639px 7.97279px rgba(255, 255, 255, 0.25);
}

.footer-banner__btn:active {
  background-image: url('../img/btn_pressed.webp');
  height: 96px;
  box-shadow: none;
}
/* ── Decorative gloves ── */
.glove {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.glove--left {
  left: 0px;
  top: 290px;
  width: 465px;
}

.glove--right {
  right: 0px;
  bottom: 0px;
  width: 340px;
}

@media (max-width: 1800px) {
  .glove--left {
    left: 0px;
    top: 497px;
    width: 323px;
}
.glove--right {
    right: 0px;
    bottom: 0px;
    width: 220px;
}
}

@media (max-width: 1650px) {
  .glove {
    display: none;
  }
  .feature-card {
    width: 410px;
}
.footer-banner__bg {
    width: 1276px;
}
.footer-banner__btn {
    width: 310px;
}
.ticket-wrap {
    left: -170px;
}
.stand-img {
    margin-left: -333px;
}

.footer-banner__inner {
  padding: 0 30px 0 30px;
}
}

@media (max-width: 1420px) {
  .hero {
  background: url('../img/hero2.webp') center top / cover no-repeat;
  padding-bottom: 30px;
}

.hero__logo {
    width: 123px;
}

.hero__cta {
    width: 306px;
    height: 83px;
    font-size: 28px;
}
.hero__fotmob {
    width: 171px;
}
  .ticket-wrap {
    width: 680px;
    left: -130px;
  }

  .scratch-zone {
    position: absolute;
    left: 270px;
    top: 158px;
    width: 220px;
    height: 52px;
  }

  .ticket-block {
    width: 288px;
}

.divider {
    height: 36px;
}

  .stand-img {
    margin-left: -247px;
    width: 1090px;
    margin-top: -172px;
  }

  .feature-card {
    width: 309px;
  }

  .feature-card__title {
    font-size: 24px;
    letter-spacing: normal;
    margin-bottom: 4px;
}

.feature-card__sub {
    font-size: 18px;
    letter-spacing: normal;
}

.features {
    padding: 30px 20px 70px;
}

  .footer-banner__bg {
    width: 966px;
  }
  .footer-banner__btn {
    width: 228px;
    height: 82px;
    font-size: 32px;
  }

  .footer-banner__text {
    font-size: 40px;
    width: 360px;
}
}

@media (max-width: 1024px) {
  .hero {
  background: url('../img/hero3.webp') center top / cover no-repeat;
  padding-bottom: 30px;
}

    .ticket-wrap {
        width: 474px;
        left: -76px;
        top: 16px;
    }
        .scratch-zone {
        position: absolute;
        left: 196px;
        top: 108px;
        width: 130px;
        height: 36px;
    }

        .ticket-block {
        width: 171px;
        bottom: -18px;
        left: 47%;
    }

        .stand-img {
        margin-left: -170px;
        width: 639px;
        margin-top: -137px;
    }

        .hero__cta {
        width: 288px;
        height: 76px;
        font-size: 28px;
    }

    .features__cards {
    gap: 10px;
}

    .feature-card {
        width: 234px;
    }
    .feature-card__title {
        font-size: 18px;
        letter-spacing: normal;
        margin-bottom: 0px;
    }
    .feature-card--center {
    margin-bottom: 30px;
}
    .footer-banner__bg {
        width: 720px;
    }
        .footer-banner__text {
        font-size: 28px;
        width: 300px;
    }

    .footer-banner__inner {
    padding: 0 20px 0 20px;
}

    .footer-banner__btn {
        width: 184px;
        height: 72px;
        font-size: 24px;
    }

    .footer-banner {
    margin: -40px auto 0px;

}
}

@media (max-width: 768px) {
    .hero {
  background: url('../img/hero4.webp') center top / cover no-repeat;
  padding-bottom: 30px;
}
    .hero__logo {
        width: 98px;
    }

    .hero__content {
    margin-top: 82px;
   }
    .ticket-wrap {
        width: 312px;
        left: -3px;
        top: -62px;
    }
       .scratch-zone {
        position: absolute;
        left: 118px;
        top: 68px;
        width: 106px;
        height: 30px;
    }
        .ticket-block {
        width: 128px;
        bottom: -13px;
        left: 47%;
    }
        .stand-img {
        margin-left: -15px;
        width: 375px;
        margin-top: -150px;
    }

    .cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: -10px;
}

    .hero__cta {
        width: 280px;
        height: 75px;
        font-size: 24px;
    }

        .hero__fotmob {
        width: 155px;
    }

.features {
  background: url('../img/bg2_mob.webp') center top repeat-y;
  background-color: #E84800;
}

.features__cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 1920px;
    align-items: center;
    flex-direction: column;
}

    .feature-card {
        width: 234px;
        height: 360px;
    }

        .feature-card--center {
        margin-bottom: 0px;
    }

    .feature-card__text {
    position: absolute;
    bottom: 18%;
}

    .footer-banner__bg {
      width: 375px;
      content: url('../img/footer_mob.webp');
    }

        .footer-banner {
        margin: 0px auto 0px;
    }
        .footer-banner__text {
        font-size: 28px;
        width: auto;
    }

    .footer-banner__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 0 20px;
    height: 328px;
    flex-direction: column;
}

    .features {
        padding: 30px 0px 0px;
    }

        .footer-banner__btn {
        width: 288px;
        height: 72px;
        font-size: 24px;
    }
}
/* ═══════════════════════════════════════
   ENTRANCE ANIMATIONS
═══════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-48px) perspective(900px) rotateX(7deg); }
  to   { opacity: 1; transform: translateX(0)     perspective(900px) rotateX(7deg); }
}

@keyframes cardUp {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* — Hero elements — */
.hero__logo {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.1s;
}

.hero__title {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.ticket-wrap {
  opacity: 0;
  animation: slideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.55s;
}

.stand-img {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.85s;
}

.ticket-block {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
  animation-delay: 0.95s;
}

.cta-col {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.75s;
}

/* — Feature cards stagger — */
.feature-card:nth-child(1) {
  opacity: 0;
  animation: cardUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.15s;
}

.feature-card:nth-child(2) {
  opacity: 0;
  animation: cardUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
  opacity: 0;
  animation: cardUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.45s;
}

.footer-banner {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.55s;
}

/* Карточки и футер анимируются только когда секция в viewport */
.features:not(.in-view) .feature-card,
.features:not(.in-view) .footer-banner {
  animation: none;
}

.features.in-view .feature-card:nth-child(1) {
  animation: cardUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.1s;
}
.features.in-view .feature-card:nth-child(2) {
  animation: cardUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}
.features.in-view .feature-card:nth-child(3) {
  animation: cardUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}
.features.in-view .footer-banner {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

/* Gloves */
.glove--left {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
  animation-delay: 0.3s;
}
.glove--right {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
  animation-delay: 0.5s;
}