/* Base */
* { 
  box-sizing: border-box; 
}
img { 
  max-width: 100%; 
  display: block; 
}
html, body { 
  height: 100%; 
}
body {
  margin: 0;
  color: #020C22;
  background: #000; /* fallback если фон не загрузится */
  font-family: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


/* Background */
.hero {
  position: relative;
  min-height: calc(100vh - 48px);        /* fallback */
  min-height: calc(100dvh - 48px);       /* современный вариант */
  background: url("../img/bg.webp") center / cover no-repeat;
  overflow: hidden;
  padding-bottom: 48px;
}

/* Header ticker */
.top-ticker {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #000;
    overflow: hidden;
    z-index: 50;
    align-items: center;
}

.ticker{
  width: 100%;
  overflow: hidden;
}

.ticker-track{
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-content{
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  white-space: nowrap;
}

.ticker-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-size: 24px;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

.ticker-dot,
.ticker-accent{
  color: #F85A00;
}

@keyframes ticker-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1px * var(--shift, 0))); }
}



/* Grid */
.hero-inner {
    max-width: 1980px;
    width: clamp(320px, 96vw, 100%);
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: clamp(16px, 4vw, 48px);
    position: relative;
    z-index: 2;
}

.left {
    margin-left: 80px;
    max-width: 620px;
    margin-top: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Left */
.left .brand{
  width: 285px;
  height: auto;
  display: block;
  margin: 0 0 16px 0;
}

.headline{
  margin: 0 0 16px 0;
  line-height: 64px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  justify-content: center;
}
.headline .dark{
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-style: normal;
  color: #ffffff;
}
.headline .orange{
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  color: #F85A00;
}

.sub{
  margin: 8px 0 20px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 36px;
  color: #fff;
  text-align: center; /* центр текста */
}

.sub .code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 188px;
    height: 61px;
    font-weight: 700;
    margin-left: -16px;
    font-style: italic;
    color: #fff;
    background-image: url(../img/txtbg.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: calc(50% + 14px) calc(50% + 6px);
}


/* CTA button */
.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 191px;
  padding: 0 28px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: .5px solid #FFFED6;
  box-shadow: 0px 9.36px 7.8px -6.24px #FFF14E,
              0px 9.36px 6.24px -3.12px rgba(255, 73, 0, 0.3),
              inset 0px 0px 6.24px #FEA000,
              inset 0px 0px 9.36px #FFFD54;
  background:
    radial-gradient(45.33% 46.43% at 41.69% 50%, #FF4001 0%, rgba(255, 64, 1, 0) 100%),
    radial-gradient(28.41% 117.96% at 7.72% 28.75%, #FFFDA6 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(37.39% 69.19% at 107.79% 0%, #FF7500 0%, rgba(255, 66, 0, 0) 100%),
    radial-gradient(54.38% 89.75% at 83.46% 89.75%, #FFF926 0%, rgba(255, 69, 0, 0.6) 100%),
    #FF4001;
}
.cta:hover{
  background:
    linear-gradient(0deg, rgba(255,255,255,0.2), rgba(255,255,255,0.2)),
    radial-gradient(45.33% 46.43% at 41.69% 50%, #FF4001 0%, rgba(255, 64, 1, 0) 100%),
    radial-gradient(28.41% 117.96% at 7.72% 28.75%, #FFFDA6 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(37.39% 69.19% at 107.79% 0%, #FF7500 0%, rgba(255, 66, 0, 0) 100%),
    radial-gradient(54.38% 89.75% at 83.46% 89.75%, #FFF926 0%, rgba(255, 69, 0, 0.6) 100%),
    #FF4001;
}
.cta:active{
  border: .5px solid #FFFED6;
  background:
    radial-gradient(45.33% 46.43% at 41.69% 50%, #FF4001 0%, rgba(255, 64, 1, 0) 100%),
    radial-gradient(28.41% 117.96% at 7.72% 28.75%, #FFFDA6 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(37.39% 69.19% at 107.79% 0%, #FF7500 0%, rgba(255, 66, 0, 0) 100%),
    radial-gradient(54.38% 89.75% at 83.46% 89.75%, #FFF926 0%, rgba(255, 69, 0, 0.6) 100%),
    #FF4001;
}

/* Right */
.right{
  position: relative;
  min-height: 420px;
  margin-top: 35px; 
  align-self: start;
}
.gloves{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Bottom info block */
.bottom-info {
  position: fixed;
  bottom: 16px;
  left: 100px;
  display: flex;
  align-items: center;
  gap: 14px; /* расстояние между надписями */
  font-family: "Sofia Sans Condensed", sans-serif;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
  z-index: 20;
}

.bottom-info .bi-item {
  position: relative;
  padding-left: 18px; /* место под точку */
}

.bottom-info .bi-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.qr-box{
  display: none;
  position: relative;
  margin-top: 36px;
  width: 127px;
  height: 127px;
  z-index: 60; /* выше тикера и контента */
}

.qr-box img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive */


/* ===== Popup ===== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.modal.is-open { display: block; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 374px;
  height: 498px;
  background-color: #fff;
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.modal__title {
  margin-top: 10px;
  margin-bottom: 0px;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 24px;
  line-height: 1;
  color: #0b1a2a;
  text-align: center;
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.modal__close img {
  width: 100%;
  height: 100%;
  display: block;
}


@media (max-width: 1420px){
  .hero-inner {
    padding: 0 0px 80px;
  }
  .left {
    margin-left: 20px;
  }
  .right {
    margin-right: -20px;
  }
  .headline {
    font-size: 48px;
    line-height: 48px;
    gap: 4px 4px;
  }
  .gloves {
    min-width: 515px;
}
}

@media (max-width: 1024px){

  /* фон */
  .hero{
    background: url("../img/tabbg.webp") center / cover no-repeat;
  }

  /* сетка в колонку */
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px 96px; /* запас под тикер */
  }

  /* текстовый блок */
  .left{
    margin-left: 0;
    margin-top: 0;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

    .headline {
        font-size: 62px;
        line-height: 56px;
        gap: 4px 4px;
        max-width: 520px;
    }

    .sub {
    max-width: 520px;
    line-height: 14px;
  }

  /* перчатки вниз */
      .right {
        margin-top: -100px;
        order: 2;
        display: flex;
        justify-content: center;
    }

  .gloves{
    max-width: 520px; /* под планшет */
  }

  /* кнопка чуть ниже */
  .cta{
    margin-top: 12px;
  }

  .qr-box {
    width: 100px;
    height: 100px;
}
}




/* ===== Mobile adaptations ===== */
@media (max-width: 768px){
  /* фон для мобилки */
  .hero{
    background-image: url("../img/mob_bg.webp");
    background-position: top center;
    min-height: calc(100dvh - 40px);
  }

  /* скрываем bg_bottom на мобилке */
  body::after{ display: none; }

  /* перестраиваем сетку */
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 12px 5px;
  }

  /* блок с текстом */
  .left{
    order: -2;
    margin: 20px auto 0 auto;
    max-width: 510px;
    text-align: center;
  }

  .left .brand{
    margin: 0 auto 16px auto;
  }

    .headline {
        justify-content: center;
        font-size: 34px;
        line-height: 31px;
        max-width: 360px;
        margin: 12px 0;
        gap: 4px;
    }

      .sub {
        text-align: center;
        font-size: 20px;
        line-height: 22px;
        max-width: 360px;
        margin-bottom: 16px;
    }

   .sub .code {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 126px;
        height: 42px;
        font-weight: 700;
        font-size: 18px;
        margin-left: -16px;
        font-style: italic;
        color: #fff;
        background-image: url(../img/txtbg.png);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: calc(50% + 12px) calc(50% + 4px);
    }

  .cta{
    margin: 0 auto;
    width: 191px;;
    height: 48px;
    font-size: 16px;
  }

  /* перчатки по центру */
  .right{
    order: -1;
    margin: 0 auto;
    display: flex;
    margin-top: -50px;
    justify-content: center;
  }
.gloves img {
  width: 100%;        /* подгоняем под ширину контейнера */
  max-width: 541px;   /* но не больше оригинального размера */
  height: auto;       /* сохраняем пропорции */
  margin: 0 auto;
  display: block;
}
  /* нижний текст */
  .bottom-info {
    position: static;
    margin: 0px auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    text-align: center;
  }
  .bottom-info .bi-item{
    display: block;
  }

  /* тикер */
  .top-ticker{ padding-inline: 8px; }
  .ticker-track{ font-size: 24px; gap: 32px; }

  .bottom-info .bi-item::before {
    content: none;            /* отключаем точки */
  }

}


@media (max-width: 520px){
  .headline{
    justify-content: center;
    font-size: 32px;
    line-height: 24px;
    margin: 12px 0;
    gap: 4px;
  }
      .gloves {
        min-width: 320px;
        margin-left: 10px;
    }
  .left .brand {
    margin: 0 auto 20px auto;
    width: 241px;
  }
  .right {
    min-height: 320px;
  }
  .sub {
    font-size: 18px;
  }
  .hero-inner {
    margin-bottom: -25px;
    padding: 10px 0px 5px;
  }
  .bottom-info {
    margin: 0px auto 24px auto;
  }
  .ticker-track {
    font-size: 20px;
    gap: 28px;
  }
  .top-ticker {
    padding-inline: 8px;
    height: 40px;
  }

}
