/* 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;
}
body::after {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  min-width: 1146px;
  height: auto;
  aspect-ratio: 1 / 1;
  background: url("../img/bg_bottom.webp") left bottom no-repeat;
  background-size: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* 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;
}

/* Header ticker */
.top-ticker {
  width: 100%;
  height: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  background: url("../img/line.webp") center/cover no-repeat;
  padding-inline: 16px;
}

.ticker-track {
  white-space: nowrap;
  display: inline-flex;
  gap: 64px;
  animation: ticker 22s linear infinite;
  will-change: transform;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-size: 24px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #ffffff;
  width: max-content;
}
.ticker-track span { opacity: .95; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 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: 115px;  /* фикс сверху */
}

/* 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, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
}
.headline .dark{
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-style: normal;
  color: #020C22;
}
.headline .orange{
  font-family: "Sofia Sans Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  color: #F85A00;
}

.sub{
  margin: 8px 0 20px 0;
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 36px;
  color: #0f172a;
}
.sub .code{
  font-weight: 700;
  font-style: italic;
  color: #F85A00;
}

/* 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: 90px;  /* фикс сверху */
  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;
}

/* 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: url("../img/popbg.webp") center/cover no-repeat;
  padding: 24px;
  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: 31px;
  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-inner {
    padding: 0 0px 80px;
  }
  .left {
    margin-left: 20px;
  }
  .right {
    margin-right: -20px;
  }
  .headline {
    font-size: 38px;
    line-height: 36px;
    gap: 4px 4px;
    margin: 0 0 8px 0;
  }
  .gloves {
    min-width: 420px;
  }
  .sub {
    font-size: 18px;
    line-height: 23px;
  }
}



/* ===== 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: 48px;
    line-height: 42px;
    margin: 12px 0;
    gap: 4px;
  }

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

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

  /* перчатки по центру */
  .right{
    order: -1;
    margin: 0 auto;
    display: flex;
    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;
  }
  .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;
  }

}
