@media (max-width: 900px) {
  html { overflow-x: hidden; }
  body { max-width: 100%; }
}

.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.nav-burger { display: none; }
.hdr-pill { position: relative; }

@media (max-width: 1080px) {
  .hdr-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 8px 0;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(13,30,59,.07);
    box-shadow: 0 10px 30px rgba(13,30,59,.14);
  }
  .hdr-nav a {
    padding: 13px 22px;
    font-size: 16px !important;
  }
  .hdr-nav a + a { border-top: 1px solid #F2F4F7; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0 9px;
    margin-left: 2px;
    border-radius: 999px;
    background: #F1F4F9;
    cursor: pointer;
    flex: none;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #0D1E3B;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle:checked ~ .hdr-nav { display: flex !important; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Чекбокс скрыт визуально — кольцо фокуса рисуем на самом бургере. */
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid #0074FE; outline-offset: 2px; }
}

@media (max-width: 1100px) {
  .hdr-call, .hdr-sep { display: none !important; }
}

@media (max-width: 900px) {
  .hdr-pill { gap: 12px !important; height: 58px !important; padding: 0 8px 0 12px !important; }
  .hdr-logo img { width: 36px !important; height: 36px !important; }
  .hdr-actions { gap: 10px !important; }
  .hdr-phone { font-size: 15px !important; }
  .hdr-cta {
    width: 40px !important; height: 40px !important;
    padding: 0 !important; margin-left: 0 !important;
    flex: none;
  }
  .hdr-cta svg { width: 19px !important; height: 19px !important; }
}

@media (max-width: 420px) {
  .hdr-wrap { padding: 0 10px !important; }
  .hdr-pill { gap: 8px !important; }
  .hdr-actions { gap: 8px !important; }
  .hdr-phone { font-size: 14px !important; }
}

@media (min-width: 1060px) {
  .hero-stats {
    min-height: clamp(252px, 20vw, 292px);
    justify-content: space-between;
  }
}

@media (min-width: 901px) and (max-width: 1059px) {
  .hero-stats {
    flex: 1 1 100% !important;
    max-width: none !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: flex-start !important;
    text-align: center !important;
    padding-top: 28px;
    gap: 24px !important;
  }
  .hero-stats > div { flex: 1 1 0; }
}

@media (max-width: 1090px) {
  .hero-glow { display: none; }
}

@media (max-width: 900px) {
  #site-hero {
    padding-top: 20px !important;
  }

  .hero-title {
    font-size: 12.2vw !important;
    margin-left: -3vw;
    margin-right: -3vw;
  }

  .hero-flags { margin-bottom: 14px !important; }

  .hero-row {
    align-items: stretch !important;
    margin-top: 0 !important;
  }

  .hero-video {
    order: 1;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 280px;
    min-width: 0 !important;
    margin: 0 auto 12px !important;
    align-self: center !important;
    height: auto !important;
    max-height: 42vh;
    aspect-ratio: 3 / 4;
    border-radius: 20px !important;
  }

  .hero-copy {
    order: 2;
    flex: 1 1 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
    text-align: center;
    margin: 0 auto;
  }
  .hero-copy h1 {
    max-width: none !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
  }
  .hero-copy p {
    max-width: none !important;
    font-size: 14px !important;
    margin: 0 0 14px !important;
  }

  .hero-ctas {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    justify-content: stretch;
  }
  .hero-ctas > * {
    flex: 1 1 0 !important;
    min-width: 0;
    height: 46px !important;
    padding: 0 10px !important;
    font-size: 13.5px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }
  .hero-ctas > a {
    background: #F3F6FA !important;
    border-color: transparent !important;
  }

  .hero-stats {
    order: 3;
    flex: 1 1 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    padding: 8px 0 8px !important;
    margin: 8px auto 0;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .hero-stats > div { flex: 1 1 0; min-width: 0; }
  .hero-stats > div > div:first-child { font-size: 22px !important; }
  .hero-stats > div > div:last-child { font-size: 11.5px !important; line-height: 1.35; }
}

@media (max-width: 560px) {
  .hero-ctas > * { font-size: 12.5px !important; }
}

@media (max-width: 1080px) {
  .steps-grid { column-gap: 28px !important; }
  .steps-grid > div { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 760px) {
  .steps-grid { row-gap: 4px !important; }
  .steps-grid > div { padding-top: 20px !important; padding-bottom: 20px !important; }
}

@media (max-width: 760px) {
  .utp-row {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 24px 16px !important;
  }
  .utp-item {
    flex: 1 1 0 !important;
    min-width: 0;
    flex-direction: column;
    text-align: center;
    gap: 8px !important;
  }
  .utp-item img { width: 40px !important; height: 40px !important; }
  .utp-item > div { font-size: 12.5px !important; line-height: 1.35 !important; }

  .utp-item br { content: ' '; }
}

@media (max-width: 900px) {
  .calc-faq__row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    padding: 48px 20px 56px !important;
  }
}

@media (max-width: 900px) {
  .news-featured { grid-template-columns: minmax(0, 1fr) !important; }
  .news-featured__cover { min-height: 220px !important; }
  .news-featured__body { padding: 24px 20px 28px !important; }
  .news-featured__body h2 { font-size: 22px !important; }
  .news-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 1000px) {
  .rv-ghost { display: none !important; }
  .rv-grid-wrap::after { display: none !important; }
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
    padding: 40px 20px 28px !important;
  }
}

@media (max-width: 900px) {
  .detail__top > * { min-width: 0; }
  .gallery, .gallery__main, .gallery__thumbs { max-width: 100%; min-width: 0; }
  .gallery__thumbs { overflow-x: auto !important; }
  .detail__top { gap: 20px !important; }
}

@media (max-width: 900px) {
  .carousel-head {
    margin-bottom: 14px !important;
    gap: 12px !important;
    align-items: flex-end !important;
  }
  .carousel-head > div:first-child { flex: 1 1 auto; min-width: 0; }
  .carousel-head > div:last-child {
    flex: none;
    margin-left: auto;
  }
  .carousel-head a.xh3 {
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  [data-carousel-track] {
    gap: 12px !important;
    padding-left: 18px;
    padding-right: 18px;
  }
  [data-carousel-track] > *:not(template) {
    flex: 0 0 100% !important;
    width: auto !important;
    max-width: none !important;
  }

  [data-carousel-prev],
  [data-carousel-next] {
    display: none !important;
  }
}

.foot-seo {
  border-top: 1px solid rgba(255,255,255,.10);
}
.foot-seo__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-seo__row {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
}
.foot-seo__label {
  flex: none;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}
.foot-inline {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 13px;
  line-height: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.foot-inline a {
  color: rgba(255,255,255,.62);
  display: inline-block;
  min-height: 24px;
}
.foot-inline span {
  color: rgba(255,255,255,.58);
}
.foot-inline a:hover {
  color: #fff;
}
.foot-inline > *:not(:last-child)::after {
  content: "·";
  margin: 0 6px;
  color: rgba(255,255,255,.22);
}
.foot-inline > * {
  max-width: 100%;
}
@media (max-width: 700px) {
  .foot-seo__wrap { padding: 14px 18px; }
  .foot-seo__row { gap: 2px 10px; }
  .foot-inline { flex-basis: 100%; font-size: 12.5px; line-height: 2; }
}
