:root {
  --primary: #0a65cc;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
  --accent: #f3f4f6;
  --header-height-expanded: 104px;
  --header-height-compact: 104px;
}

@media (max-width: 960px){
  :root {
    --header-height-expanded: 88px;
    --header-height-compact: 88px;
  }

  .site-header{
    padding: 12px clamp(12px, 5vw, 22px);
  }
  .site-header.is-compact{
    padding: 12px clamp(12px, 5vw, 22px);
  }

  .site-header .header__inner{
    padding: 0 clamp(4px, 3vw, 12px);
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(88px, 10vw, 118px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.skip-link{
  position:absolute;
  left:16px;
  top:-56px;
  z-index:10050;
  padding:12px 16px;
  border-radius:12px;
  background:#fde047;
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 14px 30px rgba(15,23,42,.22);
  transition:top .18s ease;
}
.skip-link:focus{
  top:16px;
}
.container { width: min(1200px, 92%); margin: 0 auto; }
#site-header-slot {
  height: var(--header-height-expanded);
  transition: height .25s ease;
}

body.header-compact #site-header-slot {
  height: var(--header-height-compact);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  width: 100%;
  transform: translateY(0);
  background: #0b1833 url('/assets/img/header.webp') center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  min-height: var(--header-height-expanded);
  padding: max(env(safe-area-inset-top), 0px) clamp(14px, 2.8vw, 24px) 0;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: min-height .22s ease, box-shadow .22s ease;
}

.site-header.is-compact {
  min-height: var(--header-height-compact);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  padding-bottom: 10px;
}

.site-header .header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  width: min(1360px, 96%);
  padding: 0;
  margin: 0 auto;
}

.site-header.is-compact .header__inner {
  gap: 16px;
}

@media (min-width: 961px){
  .site-header .nav{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    position: relative;
    transform: none;
    transition: transform .28s ease;
    z-index: 9800;
  }
}

.site-header .nav__title{
  display: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  margin: 0;
}

.site-header .nav__top{
  display: none;
}

.site-header .nav__close{
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.site-header .nav__close:hover,
.site-header .nav__close:focus-visible{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.26);
}

.site-header .nav__close-line{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-header .nav__close-line:nth-child(1){
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header .nav__close-line:nth-child(2){
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-toggle{
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.62);
  box-shadow: 0 12px 26px rgba(10, 18, 44, 0.36);
}
.nav-toggle:focus{ outline: none; }
.nav-toggle__bar{
  position: absolute;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform .24s ease, opacity .24s ease, top .24s ease;
}
.nav-toggle__bar:nth-child(1){ top: 13px; }
.nav-toggle__bar:nth-child(2){ top: 20px; }
.nav-toggle__bar:nth-child(3){ top: 27px; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(1){
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3){
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}
/* ===== LOGO (header) ===== */
.site-header .logo{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none;
}
.site-header .logo__copy{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-header .logo__title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #ffffff;
}
.site-header .logo__subtitle{
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  max-width: 220px;
}
.site-header .logo__img{
  width: 64px; height: 64px; display:block;
  /* Если логотип PNG и нужно "покрасить" в жёлтый — временный фильтр: */
  filter: brightness(0) saturate(100%) invert(84%) sepia(68%) saturate(560%) hue-rotate(356deg) brightness(102%) contrast(102%);
}

.site-header.is-compact .logo__img{ width:64px; height:64px; }

.site-header .header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  flex-shrink: 0;
}

.site-header .header-actions > *{
  flex: 0 0 212px;
  width: 212px;
  min-height: 56px;
}

.header-phone{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.14);
  text-align: center;
  white-space: nowrap;
}

.header-phone__label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}

.header-phone__value{
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.site-header .header-cta{
  display: inline-flex;
  padding: 10px 16px;
  min-height: 56px;
  white-space: nowrap;
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,249,255,.92));
  color: #0b3d91;
}

.site-header .header-cta:hover,
.site-header .header-cta:focus-visible{
  color: #082f74;
  background: #ffffff;
}

.site-header .nav__meta,
.site-header .nav__cta{
  display: none;
}

/* Жёлтый цвет для лого и "СГС" при наведении чуть ярче */


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header .nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.site-header a { text-decoration: none; }
.site-header .nav__list li { list-style: none; }

.site-header .nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.15;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-header .nav__list a:hover,
.site-header .nav__list a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-header .nav__list a.active,
.site-header .nav__item--services.is-open > .nav__services-link {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  box-shadow: 0 12px 24px rgba(8, 47, 73, 0.26);
}

.site-header .nav__item{
  position: relative;
}

.site-header .nav__services-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .nav__dropdown{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(8, 20, 45, 0.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 46px rgba(2, 6, 23, .34);
  display: grid;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(14px);
  z-index: 30;
}

.site-header .nav__dropdown::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.site-header .nav__item--services.is-open .nav__dropdown{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header .nav__dropdown-link{
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
  font-size: 14px;
}

.site-header .nav__dropdown-link:hover,
.site-header .nav__dropdown-link:focus-visible{
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

@media (min-width: 961px){
.site-header.is-compact .nav {
  transform: none;
}

.site-header.is-compact .nav__list a {
  padding: 10px 14px;
}
}

@media (max-width: 1360px) and (min-width: 961px){
  .site-header .nav__list a{
    padding: 9px 10px;
    font-size: 13px;
  }

  .site-header .header-actions > *{
    flex-basis: 196px;
    width: 196px;
  }

  .header-phone__value{
    font-size: 15px;
  }
}

@media (max-width: 1360px) and (min-width: 961px){
  .site-header .logo__subtitle{
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 961px){
  .site-header .nav__list a{
    padding: 8px 8px;
    font-size: 12px;
  }

  .site-header .header-actions > *{
    flex-basis: 182px;
    width: 182px;
  }

  .header-phone__label{
    font-size: 9px;
  }

  .header-phone__value{
    font-size: 14px;
  }
}


@media (max-width: 960px){
  .nav-toggle{
    display: inline-flex;
  }

  .site-header .header__inner{
    gap: 18px;
  }

  .site-header .logo__title{
    font-size: 17px;
  }

  .site-header .logo__subtitle{
    display: none;
  }

  .site-header .header-actions{
    display: none;
  }

  .site-header .nav{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    background: rgba(8, 20, 45, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
    box-shadow: none;
    z-index: 9800;
  }

  .site-header .nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .nav__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8, 20, 45, 0.98) 0%, rgba(8, 20, 45, 0.94) 78%, rgba(8, 20, 45, 0) 100%);
  }

  .site-header .nav__title{
    display: block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
  }

  .site-header .nav__close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-header .nav__meta{
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 14px 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
  }

  .site-header .nav__phone{
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
  }

  .site-header .nav__note{
    margin: 0;
    color: rgba(255,255,255,.7);
    line-height: 1.55;
    font-size: 13px;
  }

  .site-header .nav__list{
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
  }

  .site-header .nav__list > li{
    width: 100%;
  }

  .site-header .nav__list > li + li{
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-header .nav__list a{
    padding: 14px 0;
    justify-content: flex-start;
    width: 100%;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    border-radius: 0;
  }

  .site-header .nav__list a:hover{
    color: #facc15;
    background: transparent;
    transform: none;
  }

  .site-header .nav__list a.active,
  .site-header .nav__services-link.active{
    color: #facc15;
    background: transparent;
    box-shadow: none;
  }

  .site-header .nav__services-link{
    padding: 14px 0;
    justify-content: flex-start;
    width: 100%;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 0;
    background: transparent;
  }

  .site-header .nav__services-link:hover,
  .site-header .nav__services-link:focus-visible{
    color: #facc15;
    background: transparent;
    transform: none;
  }

  .site-header .nav__dropdown{
    position: static;
    min-width: 100%;
    margin: 6px 0 0;
    padding: 10px 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: grid;
    backdrop-filter: none;
  }

  .site-header .nav__dropdown-link{
    padding: 10px 0;
    border-radius: 0;
    color: rgba(255,255,255,.82);
  }

  .site-header .nav__dropdown-link:hover,
  .site-header .nav__dropdown-link:focus-visible{
    background: transparent;
    color: #ffffff;
  }

  /* Усиление читабельности мобильного меню */
  .mnav__backdrop{
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 45, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease;
    z-index: 9700;
  }

  .mnav__backdrop[hidden]{
    display: none;
  }

  .mnav__backdrop:not([hidden]){
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .nav__list a::after{
    display: none;
  }

  .site-header .nav__cta{
    display: inline-flex;
    width: 100%;
    margin-top: 6px;
    min-height: 54px;
    flex: 0 0 auto;
  }
}


.hero { padding: 56px 0; background: linear-gradient(180deg, #f8fbff, #ffffff); }
.hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; }
.hero p { color: var(--muted); margin: 0 0 24px; max-width: 820px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(10, 101, 204, 0.18);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(10, 101, 204, 0.22);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: none;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #ffffff;
  color: #084f9d;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4aa4;
}
.section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.grid { display:grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.section { padding: 40px 0; }
.section h2 { margin: 0 0 12px; font-size: 28px; }
.page-lead {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.7;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}
.features { display:grid; gap:0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.timeline { display:grid; gap: 10px; }
.cta {
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  border: 1px solid rgba(10, 101, 204, 0.1);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}
.input, .textarea {
  width: 100%; padding: 10px 12px; border:1px solid #e5e7eb; border-radius: 10px;
}
.form-row { display:grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-row .textarea { grid-column: 1/-1; min-height: 120px; }
.small { font-size: 12px; color: #374151; }

section.hero-slider{ margin: 0; position: relative; padding-top: var(--header-height-expanded); margin-top: calc(-1 * var(--header-height-expanded)); }
body.header-compact section.hero-slider{ padding-top: var(--header-height-compact); margin-top: calc(-1 * var(--header-height-compact)); }

/* ===== HERO SLIDER (vanilla) ===== */
.hero-slider { position: relative; color:#fff; }
.hero-slider .hs__viewport {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  height: 66vh;
}
.hero-slider .hs__track {
  display: flex; will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform .6s ease;
  position: relative;
  z-index: 1;
  touch-action: pan-y;
}
.hero-slider .hs__slide {
  position: relative; flex: 0 0 100%;
  min-height: clamp(420px, 62vh, 620px);
  /* фон подставляем скриптом (lazy) */
  background: #0b1a33; /* тёмный плейсхолдер/градиент по вкусу */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #0a1a2a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(18px, 4vw, 64px);
}
.hero-slider .hs__slide::before {
  content:""; position:absolute; inset:0;
  background: none;
  pointer-events: none;
  z-index: 1;
}
.hero-slider .hs__content {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: clamp(16px, 4vh, 28px) clamp(20px, 4.8vw, 40px);
  text-align: left;
  background: rgba(7, 14, 33, 0.38);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(3, 8, 20, 0.32);
  max-width: min(520px, 76vw);
  width: auto;
  flex: 0 1 min(520px, 76vw);
  align-self: flex-start;
  margin-left: clamp(12px, 2.4vw, 40px);
}
.hero-slider .hs__content h1 {
  margin:0;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
  max-width: 24ch;
}
.hero-slider .hs__content p {
  margin:0;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  max-width: 58ch;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.6;
}
.hero-slider .hs__content .btn {
  align-self: flex-start;
  width: min(240px, 100%);
  min-height: 48px;
  box-shadow: 0 10px 26px rgba(6,20,46,.32);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-slider .hero-actions .btn--ghost{
  border-color: rgba(255,255,255,.34);
  background: rgba(7, 20, 45, 0.18);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-slider .hero-actions .btn--ghost:hover,
.hero-slider .hero-actions .btn--ghost:focus-visible{
  background: rgba(255,255,255,.14);
}

.hero-flags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-flags span{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-slider .hs__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;              /* ДОБАВЛЕНО: стрелки над оверлеем */
  pointer-events: auto;
}
.hero-slider .hs__arrow--prev { left:16px; }
.hero-slider .hs__arrow--next { right:16px; }
.hero-slider .hs__arrow:hover { background: rgba(0,0,0,.55); }

.hero-slider .hs__dots {
  position:absolute; left:0; right:0; bottom:14px;
  display:flex; gap:8px; justify-content:center;
}
.hero-slider .hs__dots button {
  width:10px; height:10px; border-radius:999px; border:none;
  background: rgba(255,255,255,.45); cursor:pointer;
}
.hero-slider .hs__dots button[aria-current="true"] { background:#fff; }


@media (max-width: 600px){
  .modal__container{
    padding: 24px 16px;
    align-items: center;
    justify-content: center;
  }
  .modal__dialog{
    width: 100%;
    max-width: none;
    border-radius: 12px;
    padding: 20px 16px 28px;
    max-height: calc(100dvh - 48px);
  }
}
@media (max-width: 960px){
  .hero-slider .hs__content{ padding: 18px 16px 24px; gap: 12px; margin-left: clamp(16px, 4vw, 32px); flex-basis: min(520px, 86vw); }
  .hero-slider .hs__content h1{ font-size: clamp(22px, 5.5vw, 30px); }
  .hero-slider .hs__content p{ font-size: 16px; }
}
@media (max-width:720px){
  .hero-slider .hs__arrow{ display:none; }
  .hero-slider .hs__slide{ justify-content: center; align-items: center; padding: 24px 16px 48px; min-height: 360px; height: 66vh; }
  .hero-slider .hs__content{ padding-bottom: 32px; align-items: center; text-align: center; margin: 0 auto; align-self: center; width: min(90vw, 420px); flex-basis: min(420px, 90vw); }
  .hero-slider .hs__content .btn{ align-self: center; }
  .hero-actions{ justify-content: center; }
  .hero-flags{ justify-content: center; }
}
@supports (height: 66dvh){
  @media (max-width:720px){
    .hero-slider .hs__slide{ height: 66dvh; }
  }
}
/* ===== Услуги СГС ===== */
.home-overview {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff, #ffffff 75%);
}

.home-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.home-overview__content h2,
.region-proof__head h2,
.service-scope__intro h2,
.portfolio-lead__content h2,
.contacts-meta__content h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.18;
}

.home-overview__content p,
.region-proof__head p,
.service-scope__intro p,
.portfolio-lead__content p,
.contacts-meta__content p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.home-overview__actions,
.region-proof__actions,
.portfolio-lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-overview__actions .btn,
.hero-actions .btn {
  min-width: 220px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.pill-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a65cc, #38bdf8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.home-overview__facts,
.service-scope__grid,
.region-proof__grid,
.contacts-meta__grid,
.portfolio-lead__grid {
  display: grid;
  gap: 16px;
}

.home-overview__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-card,
.scope-card,
.region-card,
.contacts-meta__card,
.portfolio-lead__aside {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fact-card::before,
.scope-card::before,
.region-card::before,
.contacts-meta__card::before,
.portfolio-lead__aside::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0a65cc, #38bdf8);
}

.fact-card strong,
.scope-card strong,
.contacts-meta__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: #0f172a;
}

.fact-card p,
.scope-card p,
.contacts-meta__card p,
.portfolio-lead__aside p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.services-section .section-intro {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
  color: #475569;
  line-height: 1.7;
}

.services-section {
  background: #f0f6ff; /* светло-голубой фон */
  padding: 60px 0;
}

/* Заголовок и линия */
.services-section .section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
}

.services-section .section-line {
  display: block;
  width: 80px;
  height: 4px;
  margin: 0 auto 40px;
  background: var(--primary, #2563eb); /* основной цвет */
  border-radius: 2px;
}

/* Карточки услуг */
.services-section .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 26px 24px;
  text-align: center;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.services-section .card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 101, 204, 0.18);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.1);
}

/* ===== Timeline «Как мы работаем» ===== */
.section--services .steps {
  margin: 48px 0 16px;
}
.section--services .steps h2 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

.steps__title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 28px;
}

.steps__rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(16px, 4vw, 32px);
}

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: nowrap;
  width: 100%;
}

.steps__list--top {
  justify-content: center;
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  flex: 1 1 240px;
  min-height: auto;
  gap: 12px;
  text-align: center;
  padding: 16px 20px;
}

.steps__item--wide {
  flex: 1 1 240px;
}

.steps__list--bottom {
  justify-content: center;
  gap: 22px;
  width: min(100%, 720px);
  margin: 28px auto 0;
}

.steps__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(10, 101, 204, .25);
  flex-shrink: 0;
}

.steps__item h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.steps__item p {
  margin: 0;
  color: #374151;
  line-height: 1.45;
}

.steps__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  align-items: center;
  width: 100%;
}

.steps__text {
  display: block;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  flex: 1 1 auto;
  margin: 0;
}

.steps__cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1200px) {
  .steps__rows {
    gap: 32px;
  }

  .steps__list {
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .steps__rows {
    gap: 32px;
    max-width: 960px;
  }

  .steps__list {
    gap: 20px;
  }

  .steps__item {
    flex: 1 1 220px;
  }
}

@media (max-width: 780px) {
  .steps__rows {
    gap: 20px;
    align-items: stretch;
    max-width: none;
    padding-inline: 0;
  }

  .steps__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .steps__list--top,
  .steps__list--bottom {
    max-width: none;
    margin: 0;
    width: 100%;
  }

  .steps__item,
  .steps__item--wide {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 16px 18px;
    margin: 0;
  }

  .steps__list--bottom .steps__item:last-child {
    margin-bottom: 0;
  }

  .steps__badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  .steps__text {
    font-size: 15px;
  }
}

@media (max-width: 540px) {
  .section--services .steps h2 {
    font-size: 26px;
  }

  .steps__badge {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 16px;
  }

  .steps__text {
    font-size: 14px;
  }
}
/* ===== Мобильная версия: вертикальная линия слева ===== */
/* ===== Плашки преимуществ (вместо карточек) ===== */
.why-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px 18px;
  align-items: center;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.why-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #e6eaf2;
  border-radius: 999px;            /* «пилюля» */
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.why-chips .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  border-color: rgba(37,99,235,.25);
}
.why-chips i, .why-chips svg { width: 22px; height: 22px; color: var(--primary); }
.why-chips span { white-space: nowrap; font-weight: 600; }

.why-center {
  text-align: center;
}
.why-center .why-chips {
  justify-content: center;
  justify-items: center;
}
.why-center .why-chips .chip {
  margin: 0 auto;
}

/* Адаптив */
@media (max-width: 1100px) { .why-chips { grid-template-columns: repeat(3, minmax(160px, 1fr)); } }
@media (max-width: 640px)  { .why-chips { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
@media (max-width: 420px)  { .why-chips { grid-template-columns: 1fr; } }

/* Узкий CTA-баннер */
.band-cta {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 18px 0;
  margin: 0;        /* узкая полоса */
}
.band-cta__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.band-cta .btn { background: #fff; color: #1e3a8a; }
.band-cta .btn:hover { filter: brightness(0.95); }

.service-scope {
  margin: 34px 0 18px;
  padding: 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff, #eef6ff);
  border: 1px solid rgba(10, 101, 204, 0.08);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.06);
}

.service-scope__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.service-scope__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-card ul,
.region-card ul,
.portfolio-lead__aside ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.7;
}

.scope-card li,
.region-card li,
.portfolio-lead__aside li {
  margin: 4px 0;
}

.region-proof {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.region-proof__grid,
.contacts-meta__grid,
.portfolio-lead__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.region-card h3,
.portfolio-lead__aside h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}

.region-card p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.6;
}

.region-card a,
.portfolio-lead__aside a {
  color: var(--primary);
  text-decoration: none;
}

.region-card a:hover,
.portfolio-lead__aside a:hover {
  text-decoration: underline;
}

.region-proof__actions .btn {
  color: #fff;
  text-decoration: none;
}

.region-proof__actions .btn:hover,
.region-proof__actions .btn:focus-visible {
  color: #fff;
  text-decoration: none;
}

.region-proof__actions .btn--ghost {
  color: var(--primary);
}

.region-proof__actions .btn--ghost:hover,
.region-proof__actions .btn--ghost:focus-visible {
  color: #084f9d;
}

.portfolio-lead {
  margin: 8px 0 32px;
}

.contacts-meta {
  padding-top: 0;
}

.contacts-meta__content {
  max-width: 780px;
}

.service-detail {
  padding-bottom: 56px;
}

.service-detail__hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 40px;
}

.service-detail__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(6, 17, 40, 0.9), rgba(10, 101, 204, 0.62)),
    var(--service-hero-image, url('/assets/img/hero-gas.webp')) center/cover no-repeat;
}

.service-detail__hero .container {
  position: relative;
  z-index: 1;
}

.service-detail__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.service-detail__hero-content,
.service-detail__hero-aside {
  color: #ffffff;
}

.service-detail__hero-content {
  padding: 24px 0;
}

.service-detail__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-detail__hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  margin: 18px 0 16px;
}

.service-detail__hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.7;
}

.service-detail__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.service-detail__hero .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.service-detail__hero .btn--ghost:hover,
.service-detail__hero .btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.service-detail__hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-detail__hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.service-detail__hero-card {
  height: 100%;
  padding: 24px;
  border-radius: 24px;
  background: rgba(7, 14, 33, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 44px rgba(3, 8, 20, 0.3);
}

.service-detail__hero-card strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.service-detail__hero-card p {
  font-size: 15px;
  line-height: 1.65;
}

.service-detail__mini-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.service-detail__section {
  padding: 40px 0;
}

.service-detail__intro {
  max-width: 860px;
}

.service-detail__intro p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.service-detail__card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.service-detail__card h2,
.service-detail__card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.service-detail__card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.service-detail__list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.75;
}

.service-detail__list li + li {
  margin-top: 4px;
}

.service-detail__steps {
  counter-reset: service-steps;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-detail__steps li {
  position: relative;
  min-height: 100%;
  padding: 22px 22px 22px 78px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.service-detail__steps li::before {
  counter-increment: service-steps;
  content: counter(service-steps);
  position: absolute;
  top: 20px;
  left: 22px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0a65cc, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(10, 101, 204, 0.22);
}

.service-detail__steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: #0f172a;
}

.service-detail__steps p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.service-detail__price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 24px;
}

.service-detail__price-box {
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border: 1px solid rgba(10, 101, 204, 0.1);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.07);
}

.service-detail__price-value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  color: #0a65cc;
}

.service-detail__case {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8, 20, 45, 0.98), rgba(10, 101, 204, 0.84));
  color: #ffffff;
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.18);
}

.service-detail__case h2 {
  margin-bottom: 14px;
}

.service-detail__case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.service-detail__case-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-detail__case-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.service-detail__case-grid span {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.service-detail__faq {
  margin-top: 24px;
}

.service-detail__faq .faq__item {
  background: #ffffff;
}

.service-detail__map {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.07);
}

.service-detail__map #ymap {
  min-height: 320px;
  background: #e9eef7;
}

@media (max-width: 960px) {
  .home-overview__grid,
  .service-scope__wrap,
  .region-proof__grid,
  .contacts-meta__grid,
  .portfolio-lead__grid,
  .service-detail__hero-grid,
  .service-detail__price {
    grid-template-columns: 1fr;
  }

  .home-overview__facts,
  .service-scope__grid,
  .service-detail__grid,
  .service-detail__steps,
  .service-detail__case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-overview__facts,
  .service-scope__grid,
  .service-detail__grid,
  .service-detail__steps,
  .service-detail__case-grid {
    grid-template-columns: 1fr;
  }

  .home-overview__actions,
  .region-proof__actions,
  .portfolio-lead__actions,
  .service-detail__hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pill-list span{
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
  }

  .pill-list span::before{
    display: none;
  }

  .service-scope,
  .fact-card,
  .scope-card,
  .region-card,
  .contacts-meta__card,
  .portfolio-lead__aside,
  .service-detail__card,
  .service-detail__case,
  .service-detail__hero-card {
    border-radius: 18px;
  }

  .service-detail__hero h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .service-detail__hero p {
    font-size: 16px;
  }

  .service-detail__hero-pills {
    display: none;
  }
}

/* === Services (страница услуг) === */
.section--services .page-head { margin-bottom: 28px; }
.section--services .page-head h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
.section--services .page-lead { color: var(--muted); max-width: 820px; }

.section--services .services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin: 24px 0 8px;
}
@media (max-width: 960px){ .section--services .services-grid { grid-template-columns: 1fr; } }

.section--services .service-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 22px 20px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section--services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(10, 101, 204, 0.15);
}
.section--services .service-card__icon {
  width: 256px;
  height: 256px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  transition: transform .3s ease;
}
.section--services .service-card__icon img {
  width: 256px;
  height: 256px;
  object-fit: contain;
  transition: transform .3s ease, filter .3s ease;
}
.section--services .service-card:hover .service-card__icon,
.section--services .service-card:focus-within .service-card__icon,
.section--services .service-card.is-visible .service-card__icon {
  transform: translateY(-4px);
}
.section--services .service-card:hover .service-card__icon img,
.section--services .service-card:focus-within .service-card__icon img,
.section--services .service-card.is-visible .service-card__icon img {
  transform: scale(1.05);
  filter: brightness(0) saturate(100%) invert(72%) sepia(90%) saturate(628%) hue-rotate(1deg) brightness(100%) contrast(102%);
}
.section--services .service-card h2 { font-size: 20px; margin: 0 0 8px; }
.section--services .service-card p { margin: 0 0 10px; }
.section--services .service-bullets { margin: 0 0 14px; padding-left: 18px; }
.section--services .service-bullets li { margin: 4px 0; }
.section--services .service-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.section--services .pricing { margin: 36px 0 8px; }
.section--services .pricing h2 { margin-bottom: 12px; }
.section--services .pricing__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 960px){ .section--services .pricing__grid { grid-template-columns: 1fr; } }
.section--services .pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  color: #111827;
  overflow: hidden;
  isolation: isolate;
  min-height: 100%;
}
.section--services .pricing__card h3 { margin: 0 0 6px; }
.section--services .pricing__value { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.section--services .pricing__card ul { margin: 0 0 6px; padding-left: 20px; }
.section--services .pricing__card ul li { margin: 4px 0; }
.section--services .pricing__card--with-image {
  background: transparent;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.35);
}
.section--services .pricing__card--with-image::before,
.section--services .pricing__card--with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform .3s ease;
}
.section--services .pricing__card--with-image::before {
  background: var(--pricing-card-image, #0f172a);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.section--services .pricing__card--with-image::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58));
}
.section--services .pricing__card--with-image h3 { color: #fff; }
.section--services .pricing__card--with-image .pricing__value { color: #facc15; }
.section--services .pricing__card--with-image ul { color: rgba(241, 245, 249, 0.9); }
.section--services .pricing__card--house { --pricing-card-image: url('/assets/img/chasd.webp'); }
.section--services .pricing__card--commercial { --pricing-card-image: url('/assets/img/komerc.webp'); }
.section--services .pricing__card--repair { --pricing-card-image: url('/assets/img/repair.webp'); }

.section--services .trust { margin: 36px 0 8px; }
.section--services .trust__list { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding-left: 18px; }
@media (max-width: 960px){ .section--services .trust__list { grid-template-columns: 1fr; } }

/* Сноска звездочка у цен */
.section--services .pricing__asterisk {
  color: var(--muted);
  font-weight: 700;
  margin-left: 6px;
}

/* Обёртка для блока допусков: базовый стейт и анимации */
.section--services .trust__wrap {
  padding: 14px;
  border-radius: 12px;
  transition: transform .32s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease, background-color .28s ease;
  will-change: transform, opacity;
}

/* Hover для десктопа: лёгкое поднятие и подсветка */
@media (hover: hover) and (pointer: fine) {
  .section--services .trust__wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15,23,42,0.08);
    background-color: rgba(250,250,252,0.9);
  }
  .section--services .trust__list li { transition: transform .22s ease; }
  .section--services .trust__wrap:hover .trust__list li { transform: translateY(-2px); }
}

/* Анимация при появлении (мобильные устройства) */
.section--services .trust__wrap.is-revealed {
  transform: none;
  opacity: 1;
}

/* Голубая подсветка по периметру при reveal — тонкая обводка + мягкая дымка */
.section--services .trust__wrap.is-revealed {
  border-radius: 12px;
  position: relative;
  z-index: 0;
  box-shadow: 0 10px 28px rgba(10,101,204,0.08), 0 2px 6px rgba(2,6,23,0.04);
}

.section--services .trust__wrap.is-revealed::before {
  content: '';
  position: absolute;
  inset: -6px; /* расширяемся за границы контейнера для видимой обводки */
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10,101,204,0.06), rgba(10,101,204,0.04));
  pointer-events: none;
  z-index: -2;
  opacity: 0.98;
  filter: blur(6px);
  transition: opacity .36s ease, transform .36s ease;
}

/* Дополнительная тонкая рамка сверху для чёткости */
.section--services .trust__wrap.is-revealed::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
  border: 2px solid rgba(10,101,204,0.18);
  opacity: 1;
  transition: opacity .28s ease, transform .28s ease;
}
@media (max-width: 960px) {
  /* на мобилках показываем анимацию при скролле */
  .section--services .trust__wrap { padding: 12px 10px; opacity: 0; transform: translateY(12px) scale(.995); }
  .section--services .trust__wrap.is-revealed { opacity: 1; transform: none; }
}

.section--services .faq { margin: 36px 0 8px; }
.faq__item {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.faq__item summary {
  position: relative;
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 18px;
  font-weight: 700;
  color: #0f172a;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  color: #0a65cc;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.faq__item[open] {
  border-color: rgba(10, 101, 204, 0.4);
  box-shadow: 0 18px 34px rgba(10, 101, 204, 0.08);
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__item > div {
  padding: 0 18px 18px;
  color: #475569;
  line-height: 1.65;
}

.section--services .cta { margin: 40px 0 0; }
.section--services .cta__box {
  border-radius: 16px; padding: 24px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  display: grid; gap: 8px;
}
.section--services .cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Кнопки (на случай отсутствия общих стилей) */
.section--services .btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:10px; border:1px solid var(--primary); background: var(--primary); color:#fff; text-decoration:none; }
.section--services .btn--ghost { background:#fff; color: var(--primary); }

/* Hero для страницы портфолио */
.hero-portfolio {
  position: relative;
  min-height: 72vh;
  background: url('/assets/img/hero-gas.webp') center 35%/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-portfolio .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 80, 0.45);
}

.hero-portfolio .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

/* Явно задаём белый цвет для параграфа в hero (перекрывает общие правила) */
.hero-portfolio .hero-content p { color: #fff; }

@media (max-width: 720px) {
  /* на узких экранах поднимаем отображаемую область фона ещё выше */
  .hero-portfolio {
    background-position: center 55%;
    min-height: 60vh;
  }
}

.hero-portfolio .btn-light {
  background-color: #ffcc00;
  color: #002a5c;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .3s;
}

.hero-portfolio .btn-light:hover {
  background-color: #ffde55;
}

/* Portfolio cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform .3s;
}

.card:hover { transform: translateY(-6px); }

.card img { width: 100%; height: 220px; object-fit: cover; }

.card-body { padding: 16px; }

.card-body h3 { margin-bottom: 8px; color: #002a5c; }

.card-body p { font-size: 0.95rem; line-height: 1.4; }
.section--services .btn--lg { padding:12px 18px; font-size:16px; }
.section--services .small { font-size: 14px; }
.section--services .muted { color: var(--muted); }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 48px;
  color: #fff;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-primary {
  background: #0b318f;
  padding: 44px 0;
}

.footer-primary__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.footer-primary__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.footer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.footer-card__note {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-phones {
  display: grid;
  gap: 8px;
}

.footer-link--phone {
  font-weight: 600;
  font-size: 16px;
}

.footer-primary__row--top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-primary__row--messengers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.footer-messenger:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-messenger--wa {
  background: #1eb55a;
  color: #ffffff;
}
.footer-messenger--wa:hover,
.footer-messenger--wa:focus-visible {
  background: #199a4e;
}

.footer-messenger--tg {
  background: #1b84c6;
  color: #ffffff;
}
.footer-messenger--tg:hover,
.footer-messenger--tg:focus-visible {
  background: #146b9f;
}

.footer-primary__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(7, 19, 58, 0.32);
}

.footer-map {
  width: 100%;
  min-height: 320px;
  background: #e9eef7;
}

.footer-secondary {
  background: #000;
  padding: 36px 0 12px;
}

.footer-secondary__inner {
  display: grid;
  gap: 18px 32px;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  grid-template-areas: "brand links payments";
  align-items: center;
}

.footer-secondary__brand {
  grid-area: brand;
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  text-decoration: none;
}

.footer-logo__mark {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #facc15;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(250, 204, 21, 0.35);
  overflow: hidden;
}

.footer-logo__mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-logo__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #facc15;
}

.footer-secondary__links {
  grid-area: links;
  min-width: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 15px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.footer-secondary__payments {
  grid-area: payments;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
  flex-shrink: 0;
}

.footer-secondary__payments h4 {
  margin: 6px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
}

.footer-payments {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-icon {
  display: inline-block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.15));
}

.payment-icon--sm {
  height: 24px;
}

.footer-secondary__copy {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.footer-secondary__copy-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-secondary__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-secondary__legal a {
  color: rgba(148, 163, 184, 0.9);
  font-size: 13px;
  text-decoration: none;
}

.footer-secondary__legal a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer-primary__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-primary__row--top {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .footer-secondary__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "links payments";
    align-items: start;
  }

}

@media (max-width: 720px) {
  .footer-primary {
    padding: 36px 0;
  }

  .footer-primary__row--top,
  .footer-primary__row--messengers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .footer-card h3 {
    font-size: 18px;
  }

  .footer-phones {
    gap: 6px;
  }

  .footer-logo {
    flex-direction: row;
    align-items: center;
  }

  .footer-logo__mark {
    width: 58px;
    height: 58px;
  }

  .footer-secondary__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "payments";
    gap: 18px;
  }

  .footer-secondary__brand {
    justify-content: flex-start;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 15px;
  }

  .footer-secondary__payments {
    align-items: flex-start;
    text-align: left;
  }

  .footer-payments {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .footer-primary__row--top {
    grid-template-columns: 1fr;
  }

  .footer-primary__row--messengers {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .footer-map {
    min-height: 260px;
  }

  .footer-secondary__copy-inner {
    text-align: center;
  }
}
/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 12000;
  justify-content: center;
  align-items: center;
}
.modal.is-open{ display: flex; }
.modal__container{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vh, 56px) 18px;
}
.modal__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(7,16,36,.84), rgba(7,16,36,.68));
  backdrop-filter: blur(14px);
}
.modal__dialog{
  position: relative;
  width: min(100%, 620px);
  max-width: 620px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(244,248,255,.98));
  border: 1px solid rgba(211, 225, 244, 0.98);
  border-radius: 32px;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 90px rgba(2, 8, 23, 0.34);
  margin: 0 auto;
  z-index: 1;
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
}
.modal__dialog::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(90deg, #0a65cc 0%, #38bdf8 48%, #facc15 100%);
}
.modal__title{
  margin: 0 56px 8px 0;
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #0f172a;
}
.modal__lead{
  margin: 0 56px 18px 0;
  color: #52627a;
  font-size: 15px;
  line-height: 1.6;
  max-width: 470px;
}
.modal__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(208, 223, 242, 0.96);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.modal__close:hover,
.modal__close:focus-visible{
  background: #f4f8ff;
  border-color: #bfd8fb;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
.modal__dialog form{
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 230, 244, 0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.modal .form-row{
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.modal .input,
.modal .textarea{
  border: 1px solid #d6e1f2;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 16px;
  padding: 16px 16px;
  color: #0f172a;
  min-height: 56px;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.modal .input::placeholder,
.modal .textarea::placeholder{
  color: #64748b;
}
.modal .input:hover,
.modal .textarea:hover{
  border-color: #bfd4ef;
}
.modal .input:focus,
.modal .textarea:focus{
  outline: none;
  border-color: #7bb6f5;
  box-shadow: 0 0 0 4px rgba(10, 101, 204, 0.12), 0 18px 30px rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}
.modal .textarea{
  min-height: 148px;
  resize: vertical;
}
.modal .small{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  color: #475569;
  padding: 14px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dce7f7;
  font-size: 13px;
}
.modal .small input{
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--primary);
}
.modal .btn[type="submit"]{
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 20px 36px rgba(10, 101, 204, 0.22);
}
.modal__status{
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
@media (max-width: 600px){
  .modal__container{
    padding: 16px;
    align-items: center;
    justify-content: center;
  }
  .modal__dialog{
    width: 100%;
    max-width: none;
    border-radius: 24px;
    padding: 24px 18px 18px;
    max-height: calc(100dvh - 32px);
  }
  .modal__dialog::before{
    border-radius: 24px 24px 0 0;
  }
  .modal__title{
    font-size: 24px;
    margin-right: 44px;
  }
  .modal__lead{
    margin-right: 0;
    font-size: 14px;
  }
  .modal .form-row{
    grid-template-columns: 1fr;
  }
  .modal__dialog form{
    padding: 16px;
    border-radius: 20px;
  }
}








/* ===== AGREEMENT PAGE ===== */
.section--agreement {
  padding: 64px 0;
}

.agreement {
  width: min(920px, 94%);
}

.agreement__content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 32px 36px;
  display: grid;
  gap: 32px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.agreement__content section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #1f2937;
}

.agreement__content section h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  color: #1f2937;
}

.agreement__content p {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.6;
}

.agreement__content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: #374151;
  line-height: 1.6;
}

.agreement__details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.agreement__details a {
  color: var(--primary);
  text-decoration: none;
}

.agreement__details a:hover {
  text-decoration: underline;
}

.page-meta {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7280;
}

.page-head h1 {
  margin: 0 0 10px;
}

@media (max-width: 720px) {
  .agreement__content {
    padding: 24px 22px;
    gap: 26px;
  }

  .agreement__content section h2 {
    font-size: 22px;
  }

.agreement__content section h3 {
  font-size: 17px;
}
}


/* === About page === */
.about__intro{
  display:grid; gap: clamp(16px,3vw,32px);
  grid-template-columns: 1.1fr 0.9fr;
  align-items:center;
}
.about__text .about__bullets{ margin: 12px 0 20px; padding-left: 18px; }
.about__text .about__bullets li{ margin: 6px 0; }

.about__media img,
.about__media picture{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

@media (max-width: 960px){
  .about__intro{ grid-template-columns: 1fr; }
  /* Center hero button on mobile */
  .about__text{ text-align: center; }
  .about__text .about__bullets{ display: inline-block; text-align: left; }
}

/* Documents grid */
.docs-grid{
  display:grid; gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px){
  .docs-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .docs-grid{ grid-template-columns: 1fr; }
}

.doc-card{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  background:#0C1A2A; color:#fff; border-radius:12px; overflow:hidden;
  padding: 12px; text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease;
  pointer-events: none;
  cursor: default;
}
.doc-card img{ width:100%; height:auto; display:block; border-radius:8px; background:#fff; }
.doc-card span{ font-size:14px; opacity:.92; }
.doc-card:hover, .doc-card:focus{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

/* Legal block */
.legal__list{ margin: 8px 0 0; padding-left: 18px; }
.legal__list li{ margin: 6px 0; }

/* Muted helpers */
.muted{ color: rgba(255,255,255,.75); }
.small{ font-size: 13px; }

/* Partners logos */
.partners-logos{
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-top: 10px;
}
.partners-logos img{
  height: 42px;
  width: auto;
  display: block;
  opacity: .95;
  filter: none;
}
@media (max-width: 600px){
  .partners-logos{ justify-content: center; }
}

/* Image lightbox (docs) */
body.no-scroll{ overflow: hidden; }
html.mnav-lock{
  overflow: hidden;
  overscroll-behavior: none;
}
body.mnav-lock{
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.img-lightbox{ position: fixed; inset: 0; display: none; z-index: 12000; }
.img-lightbox.is-open{ display: flex; align-items: center; justify-content: center; }
.img-lightbox__backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.img-lightbox__img{ position: relative; z-index: 1; max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.5); cursor: zoom-out; }

/* ===== Contacts page ===== */
.visually-hidden{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.contacts .contacts-grid{
  display:grid; gap: 18px; grid-template-columns: 1.1fr 0.9fr;
}
.contacts .contact-box{
  background: #fff; border:1px solid #e5e7eb; border-radius:14px; padding:18px 20px; box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.contacts .contact-list{ list-style:none; padding:0; margin:0 0 12px; display:grid; gap:10px; }
.contacts .contact-list li{ display:grid; grid-template-columns: 140px 1fr; gap:10px; align-items:start; }
.contacts .contact-messengers{ display:flex; gap:12px; align-items:center; margin-top:8px; }
.contacts .contact-messengers .messenger{ display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #e5e7eb; border-radius:10px; text-decoration:none; color:#0f172a; background:#fff; }
.contacts .contact-messengers img{ width:22px; height:22px; display:block; }
.contacts .contact-map #ymap{ min-height: 360px; border-radius:14px; overflow:hidden; background:#e9eef7; }

@media (max-width: 960px){
  .contacts .contacts-grid{ grid-template-columns: 1fr; }
  .contacts .contact-list li{ grid-template-columns: 1fr; }
}

/* ===== HERO overlay & mobile alignment ===== */
.hero{ position: relative; }
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 45, 0.45);
  pointer-events: none;
  z-index: 0;
}
.hero > *{ position: relative; z-index: 1; }

@media (max-width: 600px){
  .hero::before{ background: rgba(8, 20, 45, 0.28); }
  .hero__content{
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}


/* ===== Mobile Nav (mnav) ===== */
.mnav { position: fixed; inset: 0; z-index: 9800; }
.mnav[hidden] { display: none !important; }

.mnav__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 45, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
  z-index: 9700;
}

.mnav.is-open .mnav__backdrop,
.mnav__backdrop:not([hidden]){
  opacity: 1;
  pointer-events: auto;
}

.mnav__panel{
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100dvh;
  padding: 24px 22px 28px;
  background: rgba(8, 20, 45, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transform: translateX(100%);
  transition: transform .32s ease;
  box-shadow: -16px 0 36px rgba(0, 0, 0, 0.4);
  z-index: 9800;
}

.mnav.is-open .mnav__panel{ transform: translateX(0); }

/* State when mobile nav is open on header */
.mnav-open { }

/* Desktop: hide only the burger button */
@media (min-width: 961px){
  .nav-toggle{ display: none !important; }
  /* Do NOT hide #site-nav on desktop; it should be visible */
}

/* Floating Call Button */
.call-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 12px 28px rgba(2, 6, 23, .35);
  border: 1px solid rgba(255,255,255,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px 0 16px;
  z-index: 11500;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Breadcrumbs */
.breadcrumbs{font-size:14px;color:#6b7280;display:flex;gap:6px;align-items:center;margin:10px 0 14px}
.breadcrumbs a{color:#2563eb;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.call-fab:hover, .call-fab:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .45);
}
.call-fab img{ width: 26px; height: 26px; display: block; filter: invert(1); }
.call-fab__label{
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-cta{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 11550;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

body.mnav-open .mobile-cta{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.mobile-cta__item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 10px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 18px 32px rgba(2, 6, 23, .22);
  width: 100%;
  justify-self: stretch;
}

.mobile-cta--home{
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
}

.mobile-cta__item--phone{
  background: #ffffff;
  color: #0f172a;
}

.mobile-cta__item--calc{
  background: linear-gradient(135deg, #0a65cc, #1d4ed8);
  color: #ffffff;
}

@media (max-width: 600px){
  .call-fab{ display: none; }
  .mobile-cta{ display: grid; }
  .site-footer{
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .section#cta form > .btn,
  .section#cta form button[type="submit"]{
    display: inline-flex;
    width: 100%;
  }
}

@media (max-width: 640px){
  .service-detail .container.cta form > .btn,
  .service-detail .container.cta form button[type="submit"],
  .section--services .container.cta form > .btn,
  .section--services .container.cta form button[type="submit"]{
    display: inline-flex;
    width: 100%;
  }
}

/* Consent banner */
.consent-banner{
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 560px;
  width: calc(100vw - 36px - 90px);
  background: #0b1833;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(2,6,23,.4);
  padding: 12px 44px 12px 14px;
  z-index: 11400;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .25s ease, transform .25s ease;
}

/* Captcha modal */
.captcha-modal{ position: fixed; inset: 0; display: none; z-index: 13000; }
.captcha-modal.is-open{ display: flex; align-items: center; justify-content: center; }
.captcha-modal__backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.captcha-modal__dialog{ position: relative; z-index: 1; width: min(92vw, 420px); background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.35); padding: 18px; }
.captcha-modal__content{ display: grid; gap: 12px; }
.captcha-modal__task{ margin: 0; font-size: 15px; color: #0f172a; }
.captcha-modal__row{ display: flex; gap: 8px; }
.captcha-modal__answer{ flex: 1; }
.captcha-modal__actions{ display: flex; gap: 10px; justify-content: flex-end; }
.consent-banner.is-hidden{ opacity: 0; transform: translateY(8px); }
.consent-banner a{ color: #93c5fd; text-decoration: underline; }
.consent-banner a:hover{ color: #bfdbfe; }
.consent-banner__text{ line-height: 1.4; font-size: 14px; }
.consent-banner__close{
  position: absolute; right: 8px; top: 8px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
  color: #fff; cursor: pointer;
  line-height: 1; font-size: 18px;
}
.consent-banner__close:hover, .consent-banner__close:focus-visible{ background: rgba(255,255,255,.14); }
@media (max-width: 600px){
  .consent-banner{ left: 12px; right: 12px; width: auto; bottom: 78px; }
}

/* Контент ниже фолда: рендер по мере прокрутки */
.section, .grid, .timeline, .features {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
/* === Portfolio (vdомгаз) === */
.sr-only { position:absolute; left:-9999px; }

.case { margin: 40px 0 56px; }
.case__head { margin-bottom: 16px; }
.case__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}
.case__subtitle {
  color: #6b7280; /* серый */
  margin-top: 6px;
  font-size: 15px;
}

/* Коллажи (чистый CSS Grid) */
.collage {
  display: grid;
  gap: 12px;
}
.collage button { border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.collage__item { display: block; border-radius: 14px; overflow: hidden; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Сетка 5 фото: один крупный + четыре вспомогательных */
.collage--5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  grid-auto-flow: dense;
}
.collage--5 .collage__item:nth-child(1) { grid-column: 1 / span 1; grid-row: 1 / span 2; }
.collage--5 .collage__item:nth-child(2) { grid-column: 2; grid-row: 1; }
.collage--5 .collage__item:nth-child(3) { grid-column: 3; grid-row: 1; }
.collage--5 .collage__item:nth-child(4) { grid-column: 2; grid-row: 2; }
.collage--5 .collage__item:nth-child(5) { grid-column: 3; grid-row: 2; }

/* Сетка 3 фото: равные плитки */
.collage--3 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}

/* Одиночные проекты */
.singles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.single { display: grid; gap: 10px; }
.single__thumb { border: 0; background: transparent; padding: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.single__thumb img { width: 100%; height: 260px; object-fit: cover; display: block; }
.single__title { font-size: 16px; line-height: 1.35; }

/* Лайтбокс (dialog) */
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox {
  border: none; padding: 0; background: transparent; width: 90vw; max-width: 1200px;
}
.lightbox__img {
  width: 100%; max-height: 80vh; object-fit: contain; display: block; border-radius: 12px;
  background: #0b0b0b;
}
.lightbox__close {
  position: absolute; top: -8px; right: -8px;
  width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer;
  background: #ffffff; color: #111827; font-size: 22px; line-height: 36px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: #ffffff; color: #111827; font-size: 26px; line-height: 44px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.lightbox__nav--prev { left: -54px; }
.lightbox__nav--next { right: -54px; }

/* Адаптив */
@media (max-width: 1024px) {
  .collage--5 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 160px 160px 160px; }
  .collage--5 .collage__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  .collage--5 .collage__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .collage--5 .collage__item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .collage--5 .collage__item:nth-child(4) { grid-column: 2; grid-row: 3; }
  .collage--5 .collage__item:nth-child(5) { display: none; }
  .singles { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}
@media (max-width: 640px) {
  .collage--5 {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 180px));
    grid-auto-rows: unset;
  }
  .collage--3 {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 200px);
  }
  .collage__item { height: 100%; }
  .collage--5 .collage__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .collage--5 .collage__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .collage--5 .collage__item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .collage--5 .collage__item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .collage--5 .collage__item:nth-child(5) { grid-column: 2; grid-row: 3; display: block; }
  .singles { grid-template-columns: 1fr; }
  .single__thumb img { height: 220px; }
}
#pricing,
#docs,
#portfolio-top,
.section#cta {
  scroll-margin-top: clamp(96px, 11vw, 150px);
}



