/* Final client-requested adjustments, 2026-08-31 */
html,
body {
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 120px;
}

.hero {
  height: calc(100vh - 200px);
  min-height: 540px;
  max-height: 650px;
}

.hero-copy {
  padding: 34px 5vw 36px;
}

.hero h1 {
  margin-top: 22px;
  margin-bottom: 20px;
  font-size: clamp(46px, 4vw, 66px);
  line-height: 1.02;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 26px;
  margin-bottom: 14px;
}

.hero-actions .button {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #b31a1d;
  border-color: #b31a1d;
  color: #fff;
}

.hero-actions .button:hover {
  background: #941417;
  border-color: #941417;
}

.hero-media > img {
  object-fit: contain;
  object-position: center center;
}

.hero-stamp {
  width: 132px;
  height: 132px;
  bottom: 24px;
  left: 24px;
  box-sizing: border-box;
  padding: 15px;
  font-size: 10px;
  line-height: 1.25;
}

.hero-stamp strong {
  max-width: 92px;
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.12;
}

.facts {
  margin-top: -38px;
}

.facts div {
  padding: 22px 30px;
}

.facts strong {
  font-size: 26px;
}

.facts span {
  margin-top: 5px;
  font-size: 14px;
}

.brand-track {
  gap: 0;
  will-change: transform;
}

.brand-track span {
  flex: 0 0 auto;
  margin-right: 70px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.footer-right a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-right span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-right span img {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

.review-video {
  position: relative;
}

.review-video video {
  object-fit: contain;
  object-position: center;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 12px 16px;
  border: 1px solid rgba(170, 108, 62, 0.45);
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 7px 22px rgba(43, 33, 27, 0.2);
}

.video-play-overlay span {
  color: var(--cognac);
  font-size: 17px;
}

.video-play-overlay:hover {
  background: var(--white);
}

.messenger-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.messenger-buttons .messenger {
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.25;
}

.messenger-buttons .messenger-vk {
  background: #0077ff;
}

.messenger-buttons .messenger-max {
  background: linear-gradient(135deg, #00b2ff 0%, #6854ff 100%);
}

.messenger-buttons .messenger-telegram {
  background: #229ed9;
}

.messenger-buttons .messenger-whatsapp {
  background: #25d366;
}

/* Messenger colors are tied to their URLs, not to button position. This keeps
   the correct palette after mobile reordering or a React re-render. */
.messenger-buttons a[href^="https://vk.ru/"] {
  color: #fff !important;
  border-color: #0077ff !important;
  background: #0077ff !important;
}

.messenger-buttons a[href^="https://max.ru/"] {
  color: #fff !important;
  border-color: #00b2ff !important;
  background: linear-gradient(135deg, #00b2ff 0%, #6854ff 100%) !important;
}

.messenger-buttons a[href^="https://t.me/"] {
  color: #fff !important;
  border-color: #229ed9 !important;
  background: #229ed9 !important;
}

.messenger-buttons a[href^="https://wa.me/"] {
  color: #fff !important;
  border-color: #25d366 !important;
  background: #25d366 !important;
}

.messenger-buttons a[href^="https://ok.ru/"] {
  color: #fff !important;
  border-color: #ee8208 !important;
  background: #ee8208 !important;
}

@media (max-width: 1100px) {
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .facts {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .brands {
    overflow: hidden;
  }

  .brand-track {
    width: max-content;
    min-width: max-content;
    animation: mobile-brand-marquee 22s linear infinite !important;
  }

  .brand-track span {
    margin-right: 44px;
  }

  section[id] {
    scroll-margin-top: 92px;
  }

  .hero-copy {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-stamp {
    width: 94px;
    height: 94px;
    bottom: 12px;
    left: 12px;
    padding: 10px;
    font-size: 8px;
    line-height: 1.2;
  }

  .hero-stamp strong {
    max-width: 70px;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.08;
  }

  .comparison .photo-label {
    top: 6px;
    padding: 3px 6px;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.06em;
  }

  .comparison .photo-label.before {
    left: 6px;
  }

  .comparison .photo-label.after {
    left: calc(50% + 6px);
  }

  .footer-right {
    align-items: flex-start;
    text-align: left;
  }

  .footer-right span {
    justify-content: flex-start;
  }
}

@keyframes mobile-brand-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Quiet before/after captions in a reserved strip above the footwear. */
.paired-label-safe > img,
.single-label-safe > img,
.comparison .split-photos > img {
  top: 34px !important;
  height: calc(100% - 34px) !important;
}

.service-photo > img,
.comparison .split-photos > img,
.review-media > img {
  object-fit: contain !important;
  object-position: center center !important;
}

.pair-labels,
.review-pair-labels {
  inset: 0 10px auto;
  height: 34px;
}

.pair-labels span,
.review-pair-labels span,
.single-photo-label,
.comparison .photo-label {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #3f2c22 !important;
  padding: 5px 10px !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 22px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.single-photo-label {
  top: 0 !important;
  right: 10px !important;
  left: 10px !important;
  width: auto !important;
  max-width: calc(100% - 20px);
  white-space: normal;
}

.pair-labels span:last-child,
.review-pair-labels span:last-child {
  justify-self: end;
}

.comparison .photo-label {
  top: 0 !important;
}

.comparison .photo-label.before {
  left: 4px !important;
}

.comparison .photo-label.after {
  right: 4px !important;
  left: auto !important;
}

.hero-media {
  overflow: hidden;
}

.hero-stamp {
  width: 132px;
  height: 132px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  bottom: 60px;
  left: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-stamp span,
.hero-stamp strong {
  max-width: 92px;
}

@media (max-width: 720px) {
  .hero-stamp {
    width: 94px;
    height: 94px;
    bottom: 30px;
    left: 12px;
    padding: 10px;
  }

  .hero-stamp span {
    max-width: 70px;
    font-size: 8px;
  }

  .hero-stamp strong {
    max-width: 70px;
    margin-top: 5px;
    font-size: 13px;
  }
}
