@charset "UTF-8";
/* ============================================================
   СТРОЙ ВЕНТ — stroyvent.kz
   Дизайн: «инженерная спецификация». Светлый металл, индиго и
   красный из фирменного знака, чертёжные линии, моно-метки.
   ============================================================ */

:root {
  --ink: #141B24;          /* основной текст */
  --steel: #5A6875;        /* вторичный текст */
  --line: #D7DDE3;         /* чертёжные линии */
  --line-soft: #E7EBEF;
  --zinc: #EDF0F4;         /* фон секций, «оцинковка» */
  --paper: #FFFFFF;
  --brand: #26318C;        /* индиго знака */
  --brand-deep: #1C2569;
  --red: #D63A2E;          /* красный знака, только акценты и CTA */
  --red-deep: #B72C22;
  --ok: #1E7B4F;

  --font-body: 'Montserrat', 'Montserrat-fallback', Arial, sans-serif;
  --font-disp: 'Montserrat', 'Montserrat-fallback', Arial, sans-serif;
  --font-mono: 'Montserrat', 'Montserrat-fallback', Arial, sans-serif;

  --head-bg: #26318C;      /* шапка */
  --head-deep: #1B2468;
  --top-bg: #10163B;       /* верхняя полоса */

  --w: 1200px;
  --r: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

/* фоновые волны на внутренних страницах: сплошные линии, мягкое покачивание слоя */
.waves-bg {
  position: fixed; top: -4%; bottom: -4%; left: -3%; width: 106%; height: 108%;
  z-index: -1; pointer-events: none;
}
.waves-bg path {
  fill: none; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 260 90; animation: flowmove 26s linear infinite;
}
.waves-bg .w1 { stroke: #E7ECF0; }
.waves-bg .w2 { stroke: #EDF1F4; }
.waves-bg .w3 { stroke: var(--brand); opacity: .13; }
.waves-bg .w4 { stroke: var(--red); opacity: .11; }
.waves-bg path:nth-child(3n+2) { animation-duration: 34s; animation-delay: -12s; }
.waves-bg path:nth-child(3n) { animation-duration: 22s; animation-delay: -6s; }
.waves-bg path:nth-child(4n+1) { animation-duration: 30s; animation-delay: -17s; }
.waves-bg path:nth-child(5n+4) { animation-duration: 27s; animation-delay: -3s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--font-disp); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(29px, 4.3vw, 50px); }
h2 { font-size: clamp(23px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
.lead { font-size: 18px; color: var(--steel); max-width: 56ch; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; font-weight: 500; }

/* «штамп» — техметка секции */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 4px 10px; background: var(--paper);
}
.stamp::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- шапка ---------- */
.topbar { background: linear-gradient(90deg, #0C1130, var(--top-bg) 45%, #151C4A); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar .addr { color: #A7ADD0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { display: flex; gap: 3px; font-family: var(--font-mono); font-size: 12px; }
.lang-m { display: none; }
.lang a, .lang span { padding: 2px 8px; border-radius: 3px; }
.lang span { background: var(--red); color: #fff; }
.lang a { color: #A7ADD0; border: 1px solid rgba(255,255,255,.25); }
.lang a:hover { color: #fff; border-color: #fff; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background:
    radial-gradient(560px 170px at 5% -20%, rgba(96,110,226,.38), transparent 65%),
    linear-gradient(115deg, #2E3AA6 0%, var(--head-bg) 42%, #1B2470 100%);
  box-shadow: 0 2px 14px rgba(16,22,59,.28);
  overflow: visible;
}
header.site::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--red) 0, rgba(214,58,46,.55) 22%, rgba(38,49,140,0) 60%);
}
header.site .wrap { position: relative; z-index: 1; }
header.site .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; color: #fff; position: relative; overflow: hidden; border-radius: 8px; flex-shrink: 0; }
.logo::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; left: -32%; width: 24%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55) 50%, transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: logoshine 6.5s ease-in-out infinite;
}
.logo:hover { color: #fff; }
.logo .mark {
  position: relative; display: block; width: 42px; height: 42px; flex-shrink: 0;
  background: #fff; border-radius: 8px; padding: 1px; overflow: hidden;
}
.logo .mark img { width: 100%; height: 100%; display: block; }
@keyframes logoshine {
  0%, 72% { left: -32%; }
  92%, 100% { left: 125%; }
}
.logo .word { font-family: var(--font-disp); font-weight: 700; font-size: 18px; line-height: 1.05; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.logo .word b { color: #fff; font-weight: 700; background: var(--red); display: inline-block; line-height: 1.05; padding: .17em .28em .06em; border-radius: 4px; margin-left: .17em; }
.logo .word small { display: block; font-family: var(--font-mono); font-size: .5em; font-weight: 400; letter-spacing: .103em; color: rgba(255,255,255,.55); text-transform: uppercase; margin-top: 5px; }
html[lang="kk"] .logo .word small { letter-spacing: .271em; }

nav.main { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; white-space: nowrap; align-self: stretch; justify-content: center; }
.nav-item { position: relative; display: flex; align-items: center; }
nav.main a { color: rgba(255,255,255,.9); font-size: 13.5px; font-weight: 500; padding: 8px 8px; border-radius: 4px; }
nav.main .nav-item > a:hover { background: rgba(255,255,255,.13); color: #fff; }
nav.main a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 4px 4px 0 0; background: rgba(255,255,255,.08); }
.nav-item.has-dd > a::after { content: '\25BE'; font-size: 13px; margin-left: 6px; opacity: .85; position: relative; top: 1px; }
.dd-toggle { display: none; }
.dd {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: 0 0 8px 8px; padding: 8px;
  box-shadow: 0 16px 34px rgba(16,22,59,.2); z-index: 60;
}
.nav-item:hover > .dd, .nav-item:focus-within > .dd { display: block; }
nav.main .dd a { display: block; color: var(--ink); font-size: 14px; padding: 9px 12px; border-radius: 6px; }
nav.main .dd a:hover { background: var(--zinc); color: var(--brand); }

.head-cta { display: flex; align-items: center; gap: 14px; }
.head-cta .tel { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; }
.head-cta .tel:hover { color: #fff; }
.head-cta .tel small { display: block; font-size: 10.5px; color: rgba(255,255,255,.55); font-weight: 400; }
.workstate.on { color: #7BE3A5; }
.workstate.on::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #35D07F; margin-right: 5px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(53,208,127,.5); animation: workpulse 2.4s ease-out infinite;
}
@keyframes workpulse {
  0% { box-shadow: 0 0 0 0 rgba(53,208,127,.45); }
  70% { box-shadow: 0 0 0 5px rgba(53,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { border-color: #cfe7d8; color: #157347; background: #f2faf5; }
.btn-wa:hover { border-color: #157347; color: #0e5c37; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); background: none; cursor: pointer; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 10px; right: 10px; top: 20px; height: 2px; background: #fff; transition: transform .2s; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: transform .2s, opacity .2s;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: rotate(45deg); top: 0; }
body.menu-open .burger span::after { transform: rotate(-45deg); top: 0; }

/* ---------- хиро ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; padding-top: 66px; padding-bottom: 46px; }
.hero h1 { max-width: 15ch; position: relative; z-index: 2; }
.hero h1 .accent { color: var(--brand); }
.hero h1 .dot { color: var(--red); }
.hero .lead { margin: 22px 0 30px; position: relative; z-index: 2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 22px; }

.flow {
  position: absolute; top: 0; bottom: 0; right: 0; left: 42%; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}
@media (max-width: 900px) { .flow { left: 20%; opacity: .6; } }
.flow path {
  fill: none; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 260 90; animation: flowmove 26s linear infinite;
}
.flow .f1 { stroke: var(--line); }
.flow .f2 { stroke: #C3CFDA; animation-duration: 34s; }
.flow .f3 { stroke: var(--brand); opacity: .5; animation-duration: 22s; }
.flow .f4 { stroke: var(--red); opacity: .55; animation-duration: 30s; animation-delay: -8s; }
@keyframes flowmove { to { stroke-dashoffset: -1400; } }
.hero-photo {
  position: absolute; z-index: 2; pointer-events: none;
  top: 50%; right: 3%; transform: translateY(-50%);
  width: 690px; height: 350px;
  background: url('/assets/img/hero-arena.jpg') center/cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 42%, transparent 97%);
  mask-image: radial-gradient(ellipse closest-side, #000 42%, transparent 97%);
}
.hero-photo span {
  position: absolute; inset: 0; opacity: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-photo .ph2 { background-image: url('/assets/img/hero-pharm.jpg'); animation: phfade2 21s ease-in-out infinite; }
.hero-photo .ph3 { background-image: url('/assets/img/hero-gagarin.jpg'); animation: phfade3 21s ease-in-out infinite; }
@keyframes phfade2 { 0%, 28% { opacity: 0; } 33%, 61% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes phfade3 { 0%, 61% { opacity: 0; } 66%, 95% { opacity: 1; } 100% { opacity: 0; } }

.factline { background: linear-gradient(180deg, var(--top-bg), #171F52); }
.factline .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 18px 22px 0; border-left: 1px solid rgba(255,255,255,.16); padding-left: 22px; position: relative; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--font-disp); font-size: 30px; font-weight: 700; color: #fff; display: block; line-height: 1.1; }
.fact b::after { content: ''; display: block; width: 26px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 6px; }
.fact span { font-size: 13px; color: rgba(255,255,255,.65); display: block; margin-top: 7px; line-height: 1.4; }

/* ---------- секции ---------- */
.sec { padding: 64px 0; }
.sec.zinc { background: var(--zinc); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { margin-top: 12px; }
.sec-head .lead { margin-top: 8px; }

/* ---------- сетки карточек ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #F3F5FA; border: 1px solid #D8DFEC; border-radius: 8px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 3px 14px rgba(16,22,59,.08);
}
a.card:hover { border-color: var(--red); background: #fff; color: var(--ink); transform: translateY(-3px); box-shadow: inset 0 2px 0 var(--red), 0 14px 30px rgba(16,22,59,.15); }
.sec.zinc .card { background: #fff; }
.card .ic {
  width: 56px; height: 56px; color: #fff;
  background: var(--brand); border-radius: 10px; padding: 10px;
  box-shadow: 0 4px 10px rgba(38,49,140,.25);
}
a.card:hover .ic { background: var(--red); box-shadow: 0 4px 10px rgba(214,58,46,.3); }
.card .ic svg { width: 100%; height: 100%; }
.card h3 { margin-top: 2px; }
.card p { font-size: 14.5px; color: var(--steel); }
.card .tag { font-family: var(--font-mono); font-size: 12px; color: var(--steel); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
a.card:hover .tag { color: var(--red); }

/* карточки с фото-фоном */
.card.photobg { position: relative; overflow: hidden; }
.card.photobg::before {
  content: ''; position: absolute; inset: 0;
  background: var(--cimg) center/cover no-repeat;
  opacity: .07; transition: opacity .2s, transform .35s;
}
.card.photobg > * { position: relative; z-index: 1; }
a.card.photobg:hover::before { opacity: .13; transform: scale(1.05); }

/* объекты */
.pcard { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: 0 2px 10px rgba(16,22,59,.06); transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 10px 26px rgba(16,22,59,.12); transform: translateY(-2px); }
.pcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pcard .cap { padding: 14px 16px; }
.pcard .cap .mono { color: var(--steel); display: block; margin-bottom: 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.pcard .cap b { font-weight: 600; font-size: 15.5px; line-height: 1.35; }

/* бренды */
.bplate {
  border: 1px solid #DCE2EE; border-radius: 8px; background: #F3F5FA;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(16,22,59,.05);
}
.bplate:hover { border-color: var(--red); background: #fff; transform: translateY(-3px); color: var(--ink); box-shadow: inset 0 2px 0 var(--red), 0 10px 24px rgba(16,22,59,.11); }
.sec.zinc .bplate { background: #fff; }
.bplate .blogo { height: 52px; display: flex; align-items: center; margin: 2px 0 6px; }
.bplate .blogo img { max-height: 46px; max-width: 78%; width: auto; height: auto; object-fit: contain; }
.bplate .bname { font-family: var(--font-disp); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.bplate .bmeta { font-family: var(--font-mono); font-size: 11.5px; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; }
.bplate .bwhat { font-size: 13.5px; color: var(--steel); }
.bplate:hover .bname { color: var(--brand); }

/* статьи */
.acard { border: 1px solid #DCE2EE; border-radius: 8px; padding: 22px; background: #F3F5FA; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; box-shadow: 0 3px 14px rgba(16,22,59,.08); }
.acard:hover { border-color: var(--red); background: #fff; color: var(--ink); box-shadow: inset 0 2px 0 var(--red), 0 10px 24px rgba(16,22,59,.11); transform: translateY(-2px); }
.acard .mono { color: var(--steel); font-size: 12px; }
.acard h3 { font-family: var(--font-body); font-weight: 600; font-size: 17.5px; line-height: 1.4; }
.acard:hover h3 { color: var(--brand); }
.acard p { font-size: 14.5px; color: var(--steel); }

/* ---------- контент страниц ---------- */
.crumbs { font-size: 13px; color: var(--steel); padding: 18px 0 0; }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 7px; color: var(--line); }

.page-head { padding: 26px 0 8px; }
.page-head .lead { margin-top: 14px; }

.prose { max-width: 76ch; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose b { font-weight: 600; }

/* таблицы характеристик */
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 18px 0 26px; }
table.spec { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: 13.5px; min-width: 520px; font-variant-numeric: tabular-nums; }
table.spec th, table.spec td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
table.spec th { background: var(--zinc); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); position: sticky; top: 0; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec tr:hover td { background: #FAFBFC; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0; background: #fff; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 15px 20px; font-weight: 600; font-size: 15.5px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 19px; color: var(--red); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .fa-body { padding: 0 20px 16px; color: var(--steel); font-size: 15px; max-width: 72ch; }

/* фото-галереи */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.shots a { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.shots img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .2s; }
.shots a:hover img { transform: scale(1.02); }
.shots.docs img { aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.shots.c2 { grid-template-columns: repeat(2, 1fr); }
.shots.c4 { grid-template-columns: repeat(4, 1fr); }

/* двухколоночный контент+сайдбар */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.sidebox { border: 1px solid #DFE4F2; border-radius: 8px; padding: 20px; background: #F3F5FB; }
.sidebox h3 { font-size: 16px; margin-bottom: 10px; color: var(--brand); }
.sidebox li a::after { content: ' \2192'; color: var(--red); opacity: 0; transition: opacity .15s; }
.sidebox li a:hover::after { opacity: 1; }
.sidebox ul { list-style: none; }
.sidebox li { border-bottom: 1px dashed var(--line-soft); }
.sidebox li:last-child { border-bottom: 0; }
.sidebox li a { display: block; padding: 8px 0; font-size: 14.5px; color: var(--ink); }
.sidebox li a:hover, .sidebox li a.on { color: var(--brand); }

/* ---------- форма ---------- */
.leadbox {
  border-radius: 10px; color: #fff; padding: 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(440px 300px at 90% -6%, rgba(101,115,232,.42), transparent 65%),
    radial-gradient(520px 330px at -4% 104%, rgba(214,58,46,.17), transparent 60%),
    linear-gradient(160deg, #2A35A0 0%, #232D86 48%, #171E60 100%);
}
.lead-fan { position: absolute; right: 34px; top: 24px; width: 185px; height: 185px; pointer-events: none; }
.lead-fan .ring { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 9; }
.lead-fan .rotor path { fill: rgba(255,255,255,.17); }
.lead-fan .rotor { transform-origin: 306px 306px; animation: leadspin 9s linear infinite; }
@keyframes leadspin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .lead-fan { width: 108px; height: 108px; right: 16px; top: 16px; } }
.leadbox h2 { color: #fff; }
.leadbox .sub { color: rgba(255,255,255,.75); margin: 10px 0 24px; max-width: 52ch; }
.leadform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 2; }
.leadform .full { grid-column: 1 / -1; }
.leadform input, .leadform textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r); border: 1px solid rgba(13,18,48,.25);
  background: #fff; color: var(--ink); font: 15px var(--font-body);
  box-shadow: 0 3px 10px rgba(13,18,48,.22);
}
.leadform input::placeholder, .leadform textarea::placeholder { color: #8792A3; }
.leadform input:focus, .leadform textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 3px 10px rgba(13,18,48,.22), 0 0 0 3px rgba(214,58,46,.25); }
.leadform textarea { min-height: 90px; resize: vertical; }
.leadform .hp { position: absolute; left: -5000px; opacity: 0; }
.leadnote { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 12px; }
.flash { border-radius: var(--r); padding: 13px 17px; margin: 0 0 18px; font-size: 15px; }
.flash.ok { background: #E8F5EE; color: var(--ok); border: 1px solid #BFE3D0; }
.flash.err { background: #FDECEA; color: var(--red-deep); border: 1px solid #F6C6C1; }
.leadbox .flash.ok { background: rgba(255,255,255,.92); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; display: block; }

/* ---------- футер ---------- */
footer.site {
  color: #B9BEDA; font-size: 14px; margin-top: 72px; position: relative;
  background:
    radial-gradient(820px 420px at 8% -12%, rgba(64,78,190,.32), transparent 62%),
    radial-gradient(680px 340px at 96% 118%, rgba(214,58,46,.13), transparent 60%),
    linear-gradient(165deg, #1A2258 0%, #10163B 46%, #0A0E29 100%);
}
footer.site::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red) 0, var(--brand) 34%, rgba(38,49,140,0) 78%);
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 46px 0 34px; }
footer.site h4 { color: #fff; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; margin-bottom: 14px; }
footer.site a { color: #B9BEDA; display: inline-block; padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site .fine { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7E86AD; }
footer.site .flogo { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; color: #fff; }
footer.site .flogo img { width: 34px; height: 34px; }
footer.site .flogo b { font-family: var(--font-disp); }

/* ---------- 404 ---------- */
.nf-art { width: min(420px, 86vw); height: auto; margin: 0 auto; display: block; }
.nf-flow {
  fill: none; stroke: #C3CFDA; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 46 26; animation: flowmove 7s linear infinite;
}
.nf-f2 { stroke: #D7DDE3; animation-duration: 9s; animation-delay: -3s; }
.nf-f3 { stroke: #C3CFDA; animation-duration: 8s; animation-delay: -5s; }
.nf-page { animation: nfdrift 5s ease-in-out infinite alternate; transform-origin: 150px 110px; }
@keyframes nfdrift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(26px, -8px) rotate(3deg); }
}

/* ---------- появление при скролле ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- контакты ---------- */
.cont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cont-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.cont-item:last-child { border-bottom: 0; }
.cont-item .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); width: 90px; flex-shrink: 0; padding-top: 4px; }
.cont-item .v { font-size: 16px; }
.cont-item .v .big { font-family: var(--font-mono); font-size: 19px; font-weight: 500; }
.mapframe { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mapframe iframe { display: block; width: 100%; height: 340px; border: 0; }
.mapbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .factline .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .cont-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .topbar { display: none; }
  .lang-m { display: flex; margin: 0 auto; }
  .head-cta { margin-left: auto; }
  .burger { display: block; }
  .head-cta { margin-left: 0; }
  .head-cta .tel { display: none; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--head-deep);
    flex-direction: column; justify-content: flex-start; padding: 6px 0 10px; gap: 0;
    box-shadow: 0 14px 30px rgba(16,22,59,.35);
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px);
    overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none;
  }
  body.menu-open nav.main { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav-item { display: block; }
  nav.main .nav-item > a, nav.main > a {
    display: block; padding: 14px 20px; font-size: 16px; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0;
    -webkit-tap-highlight-color: transparent;
  }
  nav.main a:hover, nav.main a:active { background: rgba(255,255,255,.14); color: #fff; }
  nav.main a.on { box-shadow: inset 4px 0 0 var(--red); background: rgba(255,255,255,.09); }
  .nav-item.has-dd > a::after { display: none; }
  .nav-item { position: relative; }
  .nav-item.has-dd > a { padding-right: 58px; }
  .dd-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 4px; right: 6px; width: 48px; height: 48px;
    background: none; border: none; color: rgba(255,255,255,.85);
    cursor: pointer; transition: transform .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .dd-toggle::before {
    content: ''; width: 9px; height: 9px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); margin-top: -4px;
  }
  .nav-item.open > .dd-toggle { transform: rotate(180deg); }
  .dd {
    display: none; position: static; min-width: 0; padding: 0;
    background: rgba(0,0,0,.14); border-radius: 0; box-shadow: none;
  }
  .nav-item.open > .dd, .nav-item:hover > .dd { display: none; }
  .nav-item.open > .dd { display: block; }
  nav.main .dd a {
    display: block; color: rgba(255,255,255,.82); font-size: 14.5px;
    padding: 12px 20px 12px 38px; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  nav.main .dd a:hover { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 640px) {
  .sec { padding: 44px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .shots, .shots.c4 { grid-template-columns: repeat(2, 1fr); }
  .shots.c2 { grid-template-columns: 1fr; }
  .leadform { grid-template-columns: 1fr; }
  .leadbox { padding: 26px 20px; }
  .hero .wrap { padding-top: 42px; padding-bottom: 34px; }
  .hero-cta .btn-wa { display: none; }
  .factline .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px 10px 12px 12px; }
  .fact b { font-size: 17px; }
  .fact span { font-size: 11.5px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 24px; }
  .topbar .addr { display: none; }
  .pcard img { aspect-ratio: 16/9; }
}

/* мобильный хиро: мелкие фото объектов в потоке воздуха */
.hero-bubbles { display: none; }
@media (max-width: 900px) {
  .hero-photo { display: none; }
  .hero-bubbles { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
  .hero-bubbles span {
    position: absolute; border-radius: 50%;
    background-size: cover; background-position: center;
    box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(16,22,59,.22);
    animation: bubblebob 7s ease-in-out infinite;
  }
  .hero-bubbles .b1 { width: 66px; height: 66px; top: 10px; right: 20px; background-image: url('/assets/img/hero-arena.jpg'); }
  .hero-bubbles .b2 { width: 46px; height: 46px; top: 96px; right: 96px; background-image: url('/assets/img/hero-pharm.jpg'); animation-delay: -2.4s; }
  .hero-bubbles .b3 { width: 56px; height: 56px; top: 158px; right: 28px; background-image: url('/assets/img/hero-gagarin.jpg'); animation-delay: -4.8s; }
}
@keyframes bubblebob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- модалка «заявка отправлена» + кнопка-отправка ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,22,59,.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: mfade .25s ease;
}
.modal {
  background: #fff; border-radius: 14px; max-width: 420px; width: 100%;
  padding: 36px 30px 30px; text-align: center;
  box-shadow: 0 24px 70px rgba(16,22,59,.35);
  animation: mpop .3s cubic-bezier(.2,.9,.3,1.2);
}
.modal .m-ic { display: inline-flex; width: 64px; height: 64px; color: var(--ok); margin-bottom: 14px; }
.modal .m-ic svg { width: 100%; height: 100%; }
.modal .m-ic path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: mcheck .45s .25s ease forwards; }
.modal h3 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.modal p { color: var(--steel); font-size: 15px; margin-bottom: 22px; }
.modal .btn { min-width: 140px; }
@keyframes mfade { from { opacity: 0; } }
@keyframes mpop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes mcheck { to { stroke-dashoffset: 0; } }
body.modal-open { overflow: hidden; }

.btn.sending { pointer-events: none; opacity: .75; }
.btn.sending::after {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  vertical-align: -2px; animation: btnspin .7s linear infinite;
}
@keyframes btnspin { to { transform: rotate(360deg); } }

/* узкие телефоны (iPhone SE и уже): лого левее, компактнее зазоры */
@media (max-width: 420px) {
  header.site .wrap { padding: 0 12px; gap: 10px; }
  .logo { gap: 8px; }
  .logo .word { font-size: 16.5px; }
  .logo .word small { letter-spacing: .14em; }
}
@media (max-width: 350px) {
  .logo .word { font-size: 15px; }
  .lang a, .lang span { padding: 2px 6px; }
}

/* широкие экраны: hero-композиция держится у контентной колонки, линии не расползаются */
@media (min-width: 1600px) {
  .flow { left: calc(50% - 95px); }
  .flow path { vector-effect: non-scaling-stroke; }
  .hero-photo { right: auto; left: calc(50% + 40px); }
}

/* узкие десктопы: пока место есть (1150-1290px) ничего не ужимаем, только зазоры */
@media (min-width: 1151px) and (max-width: 1290px) {
  header.site .wrap { gap: clamp(10px, 5.7vw - 56px, 18px); }
}
/* 1001-1150px: места уже нет — плавное синхронное ужатие всей шапки */
@media (min-width: 1001px) and (max-width: 1150px) {
  header.site .wrap { gap: 10px; }
  .logo { gap: clamp(8px, 2vw - 12px, 11px); }
  .logo .mark { width: clamp(34px, 5.4vw - 20px, 42px); height: clamp(34px, 5.4vw - 20px, 42px); }
  .logo .word { font-size: clamp(14.5px, 2.35vw - 9px, 18px); }
  nav.main a { font-size: clamp(11.5px, 1.35vw - 2px, 13.5px); padding: 8px clamp(3px, 3.4vw - 31px, 8px); }
  .head-cta { gap: clamp(8px, 4vw - 32px, 14px); }
  .head-cta .tel { font-size: clamp(12px, 1.35vw - 1.5px, 14px); }
  .head-cta .btn-sm { padding: 8px clamp(9px, 3.4vw - 25px, 14px); font-size: clamp(12.5px, 1vw + 2.4px, 14px); }
}

/* «О» в СТРОЙ — вращающаяся крыльчатка */
.o-fan { display: inline-block; width: .8em; height: .8em; vertical-align: -.065em; color: #fff; margin: 0 .033em; }
.o-fan .rotor { transform-origin: 306px 306px; animation: leadspin 9s linear infinite; }

/* мобильное меню: кнопка расчёта внутри панели, а не в шапке */
.nav-cta { display: none; }
@media (max-width: 1000px) {
  .head-cta .btn-red { display: none; }
  nav.main .nav-cta {
    display: block; margin: 14px 16px 10px; padding: 13px 20px;
    border-radius: var(--r); background: var(--red); border-bottom: 0;
    text-align: center; font-weight: 600; font-size: 15px; color: #fff;
  }
  nav.main .nav-cta:hover, nav.main .nav-cta:active { background: var(--red-deep); color: #fff; }
}
