/* EVS-System — Apple (DESIGN.md) + крупная типографика, фирменные цвета логотипа */
:root {
  --primary: #0a6b7c;
  --primary-focus: #0b8494;
  --primary-on-dark: #3cc1c9;
  --brand-yellow: #f2b130;
  --brand-deep: #08405a;
  --font-mega: "Russo One", "SF Pro Display", system-ui, sans-serif;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #7a7a7a;
  --muted-dark: #cccccc;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --black: #000000;
  --chip: rgba(210, 210, 215, 0.64);

  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, Inter, sans-serif;

  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  --section: 80px;
  --content: 980px;
  --wide: 1200px;
  --gutter: 22px;

  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss03";
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  border: 1px solid var(--primary); border-radius: var(--r-pill);
  background: var(--primary); color: #fff;
  font: 400 17px/1 var(--font-text); letter-spacing: -0.374px;
  cursor: pointer; transition: transform 0.15s var(--ease), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; background: var(--primary-focus); }
.btn:active { transform: scale(0.95); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: rgba(10, 107, 124, 0.08); }
.btn--sm { min-height: 30px; padding: 6px 14px; font-size: 14px; letter-spacing: -0.224px; }
.btn--block { width: 100%; min-height: 50px; font-size: 18px; font-weight: 300; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.link { font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: 24px; }
.cta-row--left { justify-content: flex-start; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--chip); color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.2s;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Навигация ---------- */
.gnav { position: sticky; top: 0; z-index: 50; background: var(--black); height: 44px; }
.gnav__inner {
  max-width: var(--content); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.gnav__logo { display: flex; align-items: center; gap: 8px; color: #fff; font: 600 14px/1 var(--font-text); letter-spacing: -0.224px; }
.gnav__logo:hover { text-decoration: none; }
.gnav__logo img { width: 20px; height: auto; }
.gnav__links { display: flex; flex: 1; justify-content: space-between; gap: 8px; }
.gnav__links a, .gnav__phone {
  color: rgba(255, 255, 255, 0.8); font-size: 12px; letter-spacing: -0.12px; line-height: 44px;
  transition: color 0.2s;
}
.gnav__links a:hover, .gnav__phone:hover { color: #fff; text-decoration: none; }
.gnav__phone { color: #fff; white-space: nowrap; }
.gnav__toggle { display: none; }

.subnav {
  position: sticky; top: 44px; z-index: 40; height: 52px;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.subnav__inner {
  max-width: var(--content); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.subnav__title { font: 600 21px/1.19 var(--font-display); letter-spacing: 0.231px; }
.subnav__meta { flex: 1; text-align: right; font-size: 12px; color: var(--ink-48); letter-spacing: -0.12px; }

/* ---------- Плитки ---------- */
.tile { padding: var(--section) var(--gutter); text-align: center; }
.tile--light { background: var(--canvas); }
.tile--parchment { background: var(--parchment); }
.tile--dark { background: var(--tile-1); color: #fff; }
.tile--black { background: var(--black); color: #fff; }
.tile--dark a:not(.btn), .tile--black a:not(.btn) { color: var(--primary-on-dark); }

.eyebrow { font: 600 17px/1.24 var(--font-text); color: var(--ink-48); margin-bottom: 8px; }
.eyebrow--dark { color: #86868b; }
.section-title {
  font: 600 56px/1.07 var(--font-display); letter-spacing: -0.28px;
  max-width: var(--content); margin: 0 auto;
}
.section-title--left { text-align: left; margin: 0; }
.section-sub { font: 400 21px/1.38 var(--font-display); color: var(--ink-48); margin: 16px auto 0; max-width: 640px; }
.section-sub--dark { color: var(--muted-dark); }

/* ---------- Цифры ---------- */
.stats { padding-top: 64px; padding-bottom: 64px; }
.stats__list {
  max-width: var(--content); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stats__num { display: block; font: 600 48px/1.05 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats__label { display: block; margin-top: 8px; font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-48); }

/* ---------- Принцип ---------- */
.principle { padding-top: 120px; padding-bottom: 120px; }
.principle__title {
  font: 600 56px/1.1 var(--font-display); letter-spacing: -0.28px;
  max-width: 900px; margin: 0 auto;
}
.principle__word { color: #424245; transition: color 0.6s var(--ease); }
.principle__word.is-lit { color: #fff; }
.principle__word--accent.is-lit { color: var(--brand-yellow); }
.principle__lead { font: 400 28px/1.14 var(--font-display); color: var(--muted-dark); margin-top: 32px; }
.principle__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.principle__chips li {
  padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.24); font-size: 14px; letter-spacing: -0.224px;
}
.principle__note { font: 300 21px/1.5 var(--font-text); color: #a1a1a6; max-width: 640px; margin: 40px auto 0; }

/* ---------- Процесс ---------- */
.process__list {
  max-width: var(--wide); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: left;
}
.process__step {
  background: var(--parchment); border-radius: var(--r-lg); padding: 28px 24px 32px;
  min-height: 240px;
}
.process__num { display: block; font: 600 40px/1 var(--font-display); color: var(--primary); letter-spacing: -0.02em; }
.process__step h3 { font: 600 21px/1.19 var(--font-display); margin-top: 28px; }
.process__step p { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-80); margin-top: 8px; }

/* ---------- Новости и проекты ---------- */
.news {
  max-width: var(--wide); margin: 40px auto 0; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.post {
  background: var(--canvas); border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .35s var(--ease);
}
.post:hover { transform: translateY(-4px); }
.post:active { transform: scale(0.98); }
.post__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8ed; }
.post__img img, .post > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__count {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; letter-spacing: -0.12px;
}
.post__body { padding: 18px 22px 24px; }
.post__meta { font-size: 12px; color: var(--primary); font-weight: 600; letter-spacing: -0.12px; }
.post h3 { font: 600 21px/1.19 var(--font-display); margin-top: 6px; }
.post__excerpt { margin-top: 8px; font-size: 14px; line-height: 1.43; color: var(--ink-80); letter-spacing: -0.224px; }
.post__body { display: flex; flex-direction: column; flex: 1; }
.post__excerpt b { color: var(--ink); font-weight: 600; }
.post__open { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--primary); }
.news__more { margin-top: 32px; }

.post-modal {
  width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  border-radius: var(--r-lg); overflow: auto; color: var(--ink); background: var(--canvas);
}
.post-modal::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.post-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.post-modal__gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; background: #000; }
.post-modal__gallery img { flex: 0 0 100%; height: min(60vh, 520px); object-fit: contain; scroll-snap-align: center; }
.post-modal__text { padding: 24px 28px 32px; }
.post-modal__text h3 { font: 600 32px/1.12 var(--font-display); letter-spacing: -0.28px; margin-top: 6px; }
.post-modal__text p:not(.post__meta) { margin-top: 14px; color: var(--ink-80); }
.post-modal__text h4 { font: 600 13px/1.3 var(--font-text); text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-top: 22px; }
.post-modal__text h4 + p { margin-top: 6px !important; }
.post-modal__text .btn { margin-top: 24px; }

/* ---------- Отзывы ---------- */
.reviews__grid {
  max-width: var(--wide); margin: 56px auto 0;
  columns: 3 320px; column-gap: 20px; text-align: left;
}
.review {
  break-inside: avoid; margin-bottom: 20px;
  background: var(--tile-2); border-radius: var(--r-lg); padding: 28px;
}
.review blockquote { font: 400 19px/1.42 var(--font-text); letter-spacing: -0.2px; color: #f5f5f7; }
.review__meta { margin-top: 20px; font-size: 12px; color: #86868b; letter-spacing: -0.12px; }
.review__meta cite { font-style: normal; font-weight: 600; color: #fff; }

/* ---------- FAQ ---------- */
.faq__list { max-width: var(--content); margin: 48px auto 0; text-align: left; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 600 21px/1.19 var(--font-display); letter-spacing: 0.231px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 300 28px/1 var(--font-text); color: var(--primary); transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 40px 24px 0; color: var(--ink-80); max-width: 720px; }

/* ---------- Заявка ---------- */
.lead__inner {
  max-width: var(--content); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; text-align: left; align-items: start;
}
.lead__text { margin-top: 20px; color: var(--ink-80); }
.lead__phone {
  display: inline-block; margin-top: 12px;
  font: 600 40px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink);
}
.lead__phone:hover { color: var(--primary); text-decoration: none; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-chips a {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-md);
  background: var(--pearl); border: 3px solid #f0f0f0; color: var(--ink-80);
  font-size: 14px; letter-spacing: -0.224px; transition: transform 0.15s var(--ease);
}
.contact-chips a:hover { text-decoration: none; color: var(--primary); }
.contact-chips a:active { transform: scale(0.95); }

.lead__form {
  background: var(--canvas); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: var(--r-lg);
  padding: 32px; display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font: 600 14px/1.29 var(--font-text); letter-spacing: -0.224px; }
.field__opt { font-weight: 400; color: var(--ink-48); }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.47 var(--font-text); letter-spacing: -0.374px; color: var(--ink);
  background: var(--canvas); border: 1px solid #d2d2d7; border-radius: var(--r-md);
  padding: 12px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-focus); box-shadow: 0 0 0 3px rgba(11, 132, 148, 0.22);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-80); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.lead__status { min-height: 20px; font-size: 14px; text-align: center; }
.lead__status[data-state="ok"] { color: #1d8a3a; }
.lead__status[data-state="error"] { color: #d70015; }

/* ---------- Подвал ---------- */
.footer { background: var(--parchment); color: var(--ink-80); padding: 48px var(--gutter) 32px; border-top: 1px solid rgba(0,0,0,0.04); }
.footer__inner { max-width: var(--content); margin: 0 auto; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer h3 { font: 600 12px/1.33 var(--font-text); letter-spacing: -0.12px; color: var(--ink); margin-bottom: 8px; }
.footer li a { font-size: 12px; line-height: 2.2; color: var(--ink-80); letter-spacing: -0.12px; }
.footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 32px; padding-top: 16px; border-top: 1px solid #d2d2d7;
  font-size: 12px; color: var(--ink-48); letter-spacing: -0.12px;
}
.footer__legal a { color: var(--ink-80); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; width: min(560px, calc(100% - 32px));
  transform: translate(-50%, 140%); transition: transform 0.5s var(--ease);
  display: flex; gap: 16px; align-items: center;
  background: rgba(250, 250, 252, 0.86); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: var(--r-lg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  padding: 16px 18px; font-size: 12px; line-height: 1.4; color: var(--ink-80);
}
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie__actions { display: flex; gap: 8px; flex: none; }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .principle__word { color: #fff; transition: none; }
  .principle__word--accent { color: var(--brand-yellow); }
}


/* ---------- Крупная типографика: первый экран ---------- */
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 18px; }
.mega-hero {
  position: relative; overflow: hidden; background: var(--canvas);
  padding: 72px max(var(--gutter), calc((100% - var(--wide)) / 2)) 64px;
  min-height: calc(100vh - 96px); display: flex; flex-direction: column; justify-content: flex-end;
}
.mega {
  font: 400 clamp(36px, 11vw, 196px)/0.98 var(--font-mega);
  letter-spacing: -0.01em; text-transform: uppercase; margin-top: 12px; position: relative; z-index: 1;
}
.mega__line { display: block; overflow: hidden; padding-top: 0.16em; margin-top: -0.06em; }
.mega__line > span { display: inline-block; }
.js .mega__line > span { transform: translateY(105%); animation: megaUp 1s cubic-bezier(.2,.8,.2,1) forwards; }
.js .mega__line:nth-child(2) > span { animation-delay: .12s; }
.js .mega__line:nth-child(3) > span { animation-delay: .24s; }
@keyframes megaUp { to { transform: none; } }
.mega__acc { color: var(--primary); }
.mega__out { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.mega-hero__photo {
  position: absolute; right: max(var(--gutter), calc((100% - var(--wide)) / 2)); top: 56px;
  width: min(25vw, 330px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: var(--product-shadow); transform: rotate(4deg) translateY(var(--lift, 0));
}
.js .mega-hero__photo { animation: photoIn 1.2s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes photoIn { from { opacity: 0; transform: rotate(12deg) translateY(60px); } }
.mega-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.mega-hero__lead { max-width: 520px; font: 400 21px/1.38 var(--font-display); color: var(--ink-80); }
.mega-hero .cta-row { margin-top: 0; }

.marquee {
  background: var(--brand-yellow); color: var(--ink); overflow: hidden; white-space: nowrap;
  padding: 20px 0; font: 400 clamp(26px, 3.6vw, 52px)/1 var(--font-mega); text-transform: uppercase;
}
.marquee__track { display: inline-flex; gap: 0.6em; animation: marquee 26s linear infinite; }
.marquee i { font-style: normal; color: var(--brand-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Направления: горизонтальная прокрутка ---------- */
.hscroll { position: relative; height: 420vh; background: var(--tile-1); color: #fff; }
.hscroll__sticky { position: sticky; top: 96px; height: calc(100vh - 96px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll__head { padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2)); }
.hscroll__title { font: 600 40px/1.1 var(--font-display); letter-spacing: -0.28px; }
.hscroll__track { display: flex; padding: 32px 0; will-change: transform; }
.hpanel { flex: 0 0 100%; padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2)); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hpanel__num {
  display: block; font: 400 clamp(110px, 16vw, 250px)/0.8 var(--font-mega);
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
}
.hpanel__title { font: 400 clamp(36px, 4.4vw, 68px)/1 var(--font-mega); text-transform: uppercase; margin-top: 20px; }
.hpanel__tagline { font: 400 24px/1.25 var(--font-display); color: var(--brand-yellow); margin-top: 14px; }
.hpanel__body { color: var(--muted-dark); margin: 14px 0 24px; max-width: 460px; }
.hpanel__img { width: 100%; max-height: 62vh; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--product-shadow); }
.hscroll__progress {
  display: flex; align-items: center; gap: 10px; padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2));
  font: 600 14px/1 var(--font-text); color: #86868b; letter-spacing: 0.08em;
}
.hscroll__progress b { color: #fff; }
.hscroll__bar { flex: 0 0 160px; height: 2px; background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden; margin-left: 8px; }
.hscroll__bar i { display: block; height: 100%; width: 100%; background: var(--brand-yellow); transform-origin: left; transform: scaleX(var(--p, 0.25)); }

/* ---------- Фильтры проектов ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chip {
  border: 1px solid #d2d2d7; background: var(--canvas); color: var(--ink); border-radius: var(--r-pill);
  padding: 10px 18px; font: 400 14px/1 var(--font-text); letter-spacing: -0.224px; cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.chip:active { transform: scale(0.95); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 833px) {
  .mega-hero { min-height: 0; padding-top: 40px; }
  .mega-hero__photo { position: static; width: 60%; margin: 0 auto 32px; order: -1; }
  .hscroll { height: auto; }
  .hscroll__sticky { position: static; height: auto; padding: 64px 0; }
  .hscroll__track { flex-direction: column; gap: 72px; padding: 0; transform: none !important; }
  .hpanel { flex: none; grid-template-columns: 1fr; gap: 28px; }
  .hpanel__img { max-height: none; width: 82%; margin: 0 auto; }
  .hscroll__progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .mega__line > span, .js .mega-hero__photo { animation: none; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1068px) {
  .section-title, .principle__title { font-size: 48px; }
  .process__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 833px) {
  .gnav__inner { justify-content: space-between; }
  .gnav__links {
    position: fixed; inset: 44px 0 auto 0; flex-direction: column; justify-content: flex-start; gap: 0;
    background: var(--black); padding: 12px 40px 32px; height: calc(100vh - 44px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .gnav__links.is-open { opacity: 1; visibility: visible; }
  .gnav__links a { font: 600 28px/2 var(--font-display); color: #e8e8ed; }
  .gnav__phone { margin-left: auto; }
  .gnav__toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -12px;
    background: none; border: 0; cursor: pointer;
  }
  .gnav__toggle i { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.3s var(--ease); }
  .gnav__toggle[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .gnav__toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .subnav__meta { display: none; }
  .subnav__inner { justify-content: space-between; }


  .stats__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .news { grid-template-columns: 1fr 1fr; }
  .process__list { grid-template-columns: 1fr 1fr; }
  .lead__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section: 56px; --gutter: 16px; }
  .section-title, .principle__title { font-size: 34px; line-height: 1.12; }
  .principle__lead, .hpanel__tagline { font-size: 21px; line-height: 1.24; }
  .mega-hero__lead { font-size: 19px; }
  .mega__out { -webkit-text-stroke-width: 1.5px; }
  .hscroll__title { font-size: 28px; }
  .stats__num { font-size: 36px; }
  .process__list { grid-template-columns: 1fr; }
  .process__step { min-height: 0; }
  .news { grid-template-columns: 1fr; }
  .post-modal__text { padding: 20px; }
  .post-modal__text h3 { font-size: 26px; }
  .faq__item summary { font-size: 17px; }
  .lead__phone { font-size: 32px; }
  .lead__form { padding: 22px; }
  .principle { padding-top: 80px; padding-bottom: 80px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
}

@media (max-width: 419px) {
  .subnav__title { font-size: 17px; }
}
