/* ============================================================================
   Geoengineering — лендинг по гидротехнике
   Дизайн-система v2: светлая, чистая, корпоративно-инженерная.
   Один глубокий синий акцент · хайрлайны · моноширинные тех-подписи ·
   крупная типографика · минимум анимации. Vanilla CSS, mobile-first.
   Палитра и размеры — в :root, заказчик меняет в одном месте.
   ============================================================================ */

/* ---------------------------------------------------------------- Tokens --- */
:root {
  /* Чернила и нейтрали */
  --ink: #0C1A2E;
  --ink-soft: #2C3A50;
  --muted: #59697F;
  --muted-2: #8696AC;

  /* Поверхности и фон */
  --bg: #FFFFFF;
  --bg-alt: #F5F8FC;
  --bg-tint: #EEF3FB;
  --surface: #FFFFFF;

  /* Линии */
  --line: #E4EAF3;
  --line-strong: #CFDAEA;

  /* Единственный акцент — глубокий синий */
  --blue: #1B4FB0;
  --blue-deep: #10367E;
  --blue-bright: #2C63D6;
  --blue-50: #EBF1FC;
  --blue-100: #D9E5FA;

  /* Функциональные */
  --ok: #1B8A5A;
  --ok-bg: #E7F5EE;
  --ok-text: #0F7A4E;
  --danger: #D14343;
  --danger-text: #BF2F2C;
  --danger-bg: #FCECEC;
  --wa: #25D366;

  /* Шрифты */
  --f-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Скругления — небольшие, «технические» */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Тени — мягкие, корпоративные */
  --sh-sm: 0 1px 2px rgba(16,40,80,0.06);
  --sh-card: 0 1px 3px rgba(16,40,80,0.06), 0 10px 28px rgba(16,40,80,0.05);
  --sh-card-hover: 0 2px 8px rgba(16,40,80,0.08), 0 20px 44px rgba(16,40,80,0.10);
  --sh-elevated: 0 24px 60px rgba(12,26,46,0.12);
  --sh-focus: 0 0 0 3px rgba(27,79,176,0.30);

  /* Сетка / отступы */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: 20px;
  --section-y: 72px;

  /* Переходы */
  --t-fast: .14s ease;
  --t-base: .2s cubic-bezier(.22,.61,.36,1);
  --t-slow: .32s cubic-bezier(.22,.61,.36,1);
  --t-reveal: .6s cubic-bezier(.22,.61,.36,1);

  --header-h: 70px;
}

@media (min-width: 769px) {
  :root { --gutter: 32px; --section-y: 104px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 40px; --section-y: 128px; }
}

/* ----------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.98rem + 0.12vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-xs); }

/* ------------------------------------------------------------ Typography --- */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3rem); line-height: 1.06; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.4rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
p { color: var(--muted); }
strong { font-weight: 700; color: var(--ink); }
.mono { font-family: var(--f-mono); font-weight: 500; }
p.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; }

/* --------------------------------------------------------------- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .35rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.0625rem; color: var(--muted); }

/* Моно-eyebrow — техническая подпись секции */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .35rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1.5px; border-radius: 2px;
  background: var(--blue); flex: none;
}
.section-head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--blue); }
.eyebrow--light::before { background: var(--blue); }

/* ------------------------------------------------------------- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem;
  padding: 13px 24px; border-radius: var(--r-md); line-height: 1.1;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
  text-align: center; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--t-base); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(27,79,176,0.22); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,79,176,0.26); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); }

.btn--whatsapp { background: #fff; color: #0B7A3D; border-color: var(--line-strong); }
.btn--whatsapp svg { color: var(--wa); }
.btn--whatsapp:hover { border-color: var(--wa); background: #F2FCF6; transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-50); transform: translateY(-1px); }

.btn--outline { background: #fff; color: var(--blue); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--blue); background: var(--blue-50); transform: translateY(-1px); }

.btn--lg { padding: 16px 30px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-head); font-weight: 700; font-size: 0.95rem; color: var(--blue);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform var(--t-base); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 0.8rem; font-weight: 600; line-height: 1;
}
.badge--aqua { background: var(--blue-50); color: var(--blue-deep); }
.badge--norm { font-family: var(--f-mono); font-weight: 500; background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.badge--accent { background: var(--blue-50); color: var(--blue-deep); }
.badge--success { background: var(--ok-bg); color: var(--ok-text); }
/* «Стеклянные» бейджи hero → светлые контурные чипы */
.badge--glass { font-family: var(--f-mono); font-weight: 500; background: #fff; color: var(--ink-soft); border: 1px solid var(--line-strong); }

/* --------------------------------------------------------------- Header ---- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.header.is-scrolled {
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { color: var(--ink); transition: color var(--t-base); }
.brand__text b { color: var(--blue); font-weight: 800; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__list a { font-family: var(--f-head); font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); position: relative; padding: .25em 0; transition: color var(--t-base); }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--blue); border-radius: 2px; transition: width var(--t-base); }
.nav__list a:hover { color: var(--blue); }
.nav__list a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .85rem; }
.header__phone { display: none; align-items: center; gap: .45rem; font-family: var(--f-head); font-weight: 700; font-size: 0.92rem; color: var(--ink); transition: color var(--t-base); }
.header__phone svg { width: 1.05em; height: 1.05em; color: var(--blue); }
.header__phone:hover { color: var(--blue); }
.header__cta { display: none; }

/* Бургер */
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.burger span { width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-base), opacity var(--t-base); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню — светлое */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  transform: translateX(100%); transition: transform var(--t-slow); visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateX(0); visibility: visible; }
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list a { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu__list a:active { color: var(--blue); }
.mobile-menu__actions { display: grid; gap: .75rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- Hero ----- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__bg, .hero__glow, .hero__caustic { display: none; }
/* Очень тонкая «миллиметровка» — инженерный мотив, едва заметный */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 1;
  background-image: linear-gradient(rgba(27,79,176,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(27,79,176,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 100% 0%, #000 10%, transparent 70%);
}
.hero .wave-divider { display: none; }

.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
.hero__title .grad { color: var(--blue); -webkit-text-fill-color: var(--blue); }
.hero__subtitle { margin-top: 1.4rem; max-width: 48ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.18rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__support { margin-top: 1.3rem; display: flex; align-items: center; gap: .5rem; font-size: 0.92rem; color: var(--muted); }
.hero__support svg { width: 1.1em; height: 1.1em; color: var(--ok); flex: none; }

.hero__badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero__badges .badge { font-size: 0.76rem; }

/* Hero «спецификация» — блок статистики как тех. карточка-даташит */
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-card);
  overflow: hidden;
}
.hero__stat { padding: 1.4rem 1.25rem; text-align: left; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero__stat:nth-child(-n+2) { border-top: none; }
.hero__stat:nth-child(odd) { border-left: none; }
.hero__stat .num { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1; color: var(--blue); letter-spacing: -0.02em; }
.hero__stat .lbl { display: block; margin-top: .55rem; font-size: 0.78rem; line-height: 1.4; color: var(--muted); }

.hero__art { display: none; }

.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--muted-2); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.scroll-hint svg { width: 20px; height: 20px; color: var(--blue); animation: bob 1.8s ease-in-out infinite; }

/* Волны-разделители убраны в пользу чистых хайрлайнов */
.wave-divider { display: none; }

/* ------------------------------------------------------------- Services ---- */
.services__grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; counter-reset: svc; }
.service-card {
  position: relative; background: var(--surface); padding: 30px 26px;
  transition: background var(--t-base);
  counter-increment: svc;
}
.service-card::before {
  content: "0" counter(svc); position: absolute; top: 26px; right: 26px;
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted-2); letter-spacing: 0.05em;
}
.service-card:hover { background: var(--bg-alt); }
.service-card__icon { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--blue-50); display: grid; place-items: center; color: var(--blue); margin-bottom: 1.2rem; transition: background var(--t-base), color var(--t-base); }
.service-card:hover .service-card__icon { background: var(--blue); color: #fff; }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: .6rem; padding-right: 2rem; }
.service-card p { font-size: 0.96rem; color: var(--muted); }
.service-card__list { margin-top: 1.1rem; display: grid; gap: .5rem; }
.service-card__list li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.service-card__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); }

.service-card--cta { background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.service-card--cta::before { color: rgba(255,255,255,0.35); }
.service-card--cta:hover { background: var(--ink); }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,0.7); margin-bottom: 1.3rem; }
.service-card--cta .btn--primary { background: #fff; color: var(--ink); box-shadow: none; }
.service-card--cta .btn--primary:hover { background: var(--blue-50); }

/* ------------------------------------------------------------ Expertise ---- */
.expertise__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.expertise__media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-card); aspect-ratio: 4 / 3; }
.expertise__media .ph { width: 100%; height: 100%; background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 2rem; }
.expertise__media .ph svg { width: 54px; height: 54px; margin-bottom: 1rem; color: var(--blue); opacity: .8; }
.expertise__media .ph span { font-size: 0.85rem; line-height: 1.5; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 1.75rem 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: 1.2rem 1.3rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-top: none; }
.stat:nth-child(odd) { border-left: none; }
.stat .num { font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); line-height: 1; color: var(--blue); letter-spacing: -0.02em; }
.stat .lbl { display: block; margin-top: .4rem; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

.points { display: grid; gap: 1.2rem; }
.point { display: flex; gap: .9rem; }
.point__ico { flex: none; width: 26px; height: 26px; border-radius: var(--r-xs); background: var(--blue-50); display: grid; place-items: center; color: var(--blue); margin-top: .15rem; }
.point__ico svg { width: 16px; height: 16px; }
.point h4 { margin-bottom: .25rem; }
.point p { font-size: 0.94rem; color: var(--muted); }

.tools { margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tools__label { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .8rem; }
.tools__list { display: flex; flex-wrap: wrap; gap: .5rem; }

/* --------------------------------------------------------------- Cases ----- */
.cases__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.case-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); border-color: var(--line-strong); }
.case-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; border-bottom: 1px solid var(--line); }
.case-card__media .pattern { position: absolute; inset: 0; opacity: 1; background-image: linear-gradient(rgba(27,79,176,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(27,79,176,0.06) 1px, transparent 1px); background-size: 22px 22px; }
.case-card__media .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); opacity: .55; }
.case-card__media .glyph svg { width: 52px; height: 52px; }
.case-card__type { position: absolute; top: 14px; left: 14px; z-index: 2; background: #fff; }
.case-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-card__body h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.case-card__scope { font-size: 0.93rem; color: var(--muted); }
.case-card__result { margin-top: .9rem; font-size: 0.93rem; color: var(--ink); padding-left: .9rem; border-left: 2px solid var(--blue); }
.case-card__metrics { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: auto; padding-top: 1.2rem; }
.metric { flex: 1 1 auto; min-width: 100px; }
.metric .num { font-family: var(--f-mono); font-weight: 500; font-size: 1.3rem; color: var(--ink); }
.metric .lbl { display: block; margin-top: .15rem; font-size: 0.74rem; color: var(--muted); line-height: 1.3; }
.cases__cta { margin-top: 3rem; text-align: center; }
.cases__cta p { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; font-family: var(--f-head); }

/* -------------------------------------------------------------- Process ---- */
.process { background: var(--bg-alt); border-block: 1px solid var(--line); overflow: hidden; }
.process .section-head h2 { color: var(--ink); }
.process .section-head p { color: var(--muted); }
.process__steps { display: grid; gap: 0; counter-reset: step; }
.pstep { position: relative; display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.pstep:first-child { border-top: none; }
.pstep__num {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500;
  font-size: 1.05rem; color: var(--blue);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.pstep:hover .pstep__num { background: var(--blue); color: #fff; border-color: var(--blue); }
.pstep__body h4 { color: var(--ink); margin-bottom: .25rem; }
.pstep__body p { color: var(--muted); font-size: 0.94rem; }
.process__cta { margin-top: 2.5rem; text-align: center; }
.process__cta p { font-size: 1.15rem; color: var(--ink); font-family: var(--f-head); font-weight: 700; margin-bottom: 1.1rem; }

/* -------------------------------------------------------------- Reviews ---- */
.reviews__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; position: relative;
}
.review-card__quote { font-size: 2.6rem; line-height: 1; font-family: var(--f-head); font-weight: 800; color: var(--blue-100); height: .5em; }
.review-card__text { font-size: 0.98rem; color: var(--ink-soft); margin: .75rem 0 1.5rem; }
.review-card__author { display: flex; align-items: center; gap: .8rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.review-card__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; flex: none; }
.review-card__name { font-weight: 700; font-family: var(--f-head); font-size: 0.95rem; color: var(--ink); }
.review-card__role { font-size: 0.82rem; color: var(--muted); }
.review-card__stars { display: flex; gap: 2px; margin-bottom: .6rem; color: var(--blue); }
.review-card__stars svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ Instagram ---- */
.insta { position: relative; overflow: hidden; }
.insta__bg { display: none; }
.insta .container { position: relative; z-index: 1; }
.insta__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.insta-tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); transition: background var(--t-base); }
.insta-tile:hover { background: var(--blue-50); }
.insta-tile .pattern { position: absolute; inset: 0; opacity: 1; background-image: linear-gradient(rgba(27,79,176,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27,79,176,0.05) 1px, transparent 1px); background-size: 18px 18px; }
.insta-tile__cap { position: absolute; inset: auto 0 0 0; padding: .7rem; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.3; background: linear-gradient(0deg, rgba(255,255,255,0.96), transparent); }
.insta-tile__ico { position: absolute; top: 10px; right: 10px; color: var(--blue); }
.insta-tile__ico svg { width: 18px; height: 18px; }
.insta__cta { text-align: center; }

/* ----------------------------------------------------------------- FAQ ----- */
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  text-align: left; padding: 1.3rem 0; font-family: var(--f-head); font-weight: 700;
  font-size: clamp(1rem, 1rem + 0.3vw, 1.14rem); color: var(--ink);
}
.faq-item__q .chev { flex: none; width: 22px; height: 22px; color: var(--blue); transition: transform var(--t-base); }
.faq-item.is-open .faq-item__q .chev { transform: rotate(180deg); }
.faq-item__a { overflow: hidden; height: 0; transition: height var(--t-slow); }
.faq-item__a-inner { padding: 0 0 1.5rem; color: var(--muted); font-size: 0.97rem; padding-left: 1rem; border-left: 2px solid var(--blue-100); }
.faq__cta { margin-top: 2.5rem; text-align: center; }
.faq__cta p { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 1.1rem; }

/* ----------------------------------------------------------- Lead form ----- */
section.lead { background: var(--bg-tint); border-block: 1px solid var(--line); position: relative; overflow: hidden; color: var(--ink); }
.lead__grid-bg { display: none; }
.lead .container { position: relative; z-index: 1; }
.lead__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.lead__title { color: var(--ink); font-size: clamp(1.9rem, 1.5rem + 2vw, 2.7rem); margin-top: .35rem; }
.lead__subtitle { margin-top: 1rem; color: var(--muted); font-size: 1.0625rem; max-width: 46ch; }
.lead__reassure { display: grid; gap: .75rem; margin: 1.9rem 0; }
.lead__reassure li { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: 0.95rem; }
.lead__reassure svg { width: 1.2em; height: 1.2em; color: var(--blue); flex: none; }

.contact-chips { display: grid; gap: .6rem; }
.contact-chip {
  display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--t-base), transform var(--t-base);
}
.contact-chip:hover { border-color: var(--blue); transform: translateY(-1px); }
.contact-chip svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.contact-chip__label { display: block; font-size: 0.72rem; color: var(--muted); }
.contact-chip__value { font-family: var(--f-head); font-weight: 700; color: var(--ink); font-size: 0.95rem; }

/* Карточка формы */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--sh-card); color: var(--ink);
}
.form-card h3 { font-size: 1.35rem; }
.form-card__hint { font-size: 0.9rem; color: var(--muted); margin: .5rem 0 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.field .req { color: var(--blue); }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 13px 15px; font-size: 16px; line-height: 1.4;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8bd; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--sh-focus); }

/* Файл */
.filefield input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filefield__drop {
  display: flex; align-items: center; gap: .7rem; padding: 13px 15px; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-alt);
  color: var(--ink-soft); font-size: 0.9rem; transition: background var(--t-base), border-color var(--t-base);
}
.filefield__drop:hover { background: var(--blue-50); border-color: var(--blue); }
.filefield__drop svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.filefield__hint { font-size: 0.78rem; color: var(--muted); margin-top: .4rem; }
.filefield__name { font-weight: 600; color: var(--blue); }

/* Согласие */
.consent { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.25rem; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.consent label { font-size: 0.8rem; color: var(--muted); line-height: 1.5; font-weight: 400; margin: 0; }
.consent a { color: var(--blue); text-decoration: underline; }

.cf-turnstile { margin-bottom: 1.1rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: 0.92rem; padding: 0; border-radius: var(--r-sm); }
.form-status:empty { margin: 0; padding: 0; }
.form-status--success { color: var(--ok-text); background: var(--ok-bg); padding: .85rem 1rem; }
.form-status--error { color: var(--danger-text); background: var(--danger-bg); padding: .85rem 1rem; }
.btn.is-loading { opacity: .75; pointer-events: none; }

/* -------------------------------------------------------------- Footer ----- */
.footer { background: var(--ink); color: rgba(255,255,255,0.66); position: relative; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer .wave-divider { display: none; }
.footer__top { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.10); }
.footer__about { max-width: 38ch; }
.footer__about .brand { margin-bottom: 1rem; color: #fff; }
.footer__about .brand__text { color: #fff; }
.footer__about .brand__text b { color: var(--blue-bright); }
.footer__about p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer__col h3 { color: #fff; font-family: var(--f-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a, .footer__col span { color: rgba(255,255,255,0.6); font-size: 0.92rem; transition: color var(--t-base); display: inline-flex; align-items: center; gap: .5rem; }
.footer__col a:hover { color: #fff; }
.footer__col a svg { width: 1em; height: 1em; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer__req { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 1rem; line-height: 1.5; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 38px; height: 38px; border-radius: var(--r-md); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; color: rgba(255,255,255,0.8); transition: background var(--t-base), color var(--t-base), border-color var(--t-base); }
.footer__social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.footer__social svg { width: 18px; height: 18px; }

/* ------------------------------------------------- Floating WhatsApp -------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37,211,102,0.35);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.06); box-shadow: 0 12px 28px rgba(37,211,102,0.42); }
.fab__tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 600; padding: .5rem .8rem; border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-base); box-shadow: var(--sh-card); }
.fab:hover .fab__tip { opacity: 1; }

/* ---------------------------------------------------------- Cookie banner --- */
.cookie {
  position: fixed; left: 50%; bottom: 16px; z-index: 120;
  width: min(680px, calc(100% - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem;
  padding: 1rem 1.15rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--sh-elevated);
  transform: translateX(-50%) translateY(140%); opacity: 0;
  transition: transform var(--t-slow), opacity var(--t-slow);
}
.cookie.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 280px; font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.cookie__text a { color: var(--blue); text-decoration: underline; }
.cookie__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie__actions .btn { padding: 10px 18px; font-size: 0.95rem; }
@media (max-width: 560px) { .cookie__actions { width: 100%; } .cookie__actions .btn { flex: 1; } }

/* ------------------------------------------------ Sticky mobile CTA bar ---- */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: .55rem; align-items: stretch;
  padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--t-base);
}
.mobilebar.is-visible { transform: none; }
.mobilebar__cta {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem;
  background: var(--blue); color: #fff; border-radius: var(--r-md);
}
.mobilebar__wa {
  flex: 0 0 auto; width: 52px; display: grid; place-items: center;
  background: #fff; color: var(--wa); border: 1px solid var(--line-strong); border-radius: var(--r-md);
}
.mobilebar__wa svg { width: 26px; height: 26px; }
@media (max-width: 999px) {
  .mobilebar { display: flex; }
  .fab { display: none; }
}
@media (max-width: 600px) {
  .scroll-hint { display: none; }
}

/* --------------------------------------------------------- Scroll reveal --- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal), transform var(--t-reveal); transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal="left"] { transform: translateX(-20px); }
[data-reveal="right"] { transform: translateX(20px); }
[data-reveal="scale"] { transform: scale(.97); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------- Keyframes ----- */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --------------------------------------------------------- Breakpoints ----- */
@media (min-width: 600px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .hero__stat:nth-child(-n+2) { border-top: none; }
  .hero__stat:nth-child(odd) { border-left: 1px solid var(--line); }
  .hero__stat:first-child { border-left: none; }
}

@media (min-width: 769px) {
  .nav { display: block; }
  .burger { display: none; }
  .header__phone { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(odd) { border-left: 1px solid var(--line); }
  .stat:first-child { border-left: none; }
}

@media (min-width: 1000px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .insta__grid { grid-template-columns: repeat(6, 1fr); }
  .expertise__grid { grid-template-columns: 0.92fr 1.08fr; align-items: center; }
  .lead__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
  .header__cta { display: inline-flex; }
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
  .process__steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .pstep { flex-direction: column; padding: 0 1.25rem; text-align: left; border-top: none; }
  .pstep:not(:last-child) { border-right: 1px solid var(--line); }
  .pstep__num { margin-bottom: 1.1rem; }
}

/* ------------------------------------------------------- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================ ELEVATION === */

/* Шкала прогресса скролла */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blue); z-index: 200; transition: width .08s linear; }

/* Hero «спецификация» — фирменный технический чертёж + статистика */
.spec { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; }
.spec__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-alt);
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
}
.spec__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec__id { color: var(--blue); flex: none; }
.spec__draw {
  position: relative; padding: 1.1rem 1rem .5rem;
  background: radial-gradient(circle at 1px 1px, rgba(27,79,176,0.08) 1px, transparent 0) 0 0 / 18px 18px;
  transition: transform .35s ease;
}
.spec__draw .bp { width: 100%; height: auto; color: var(--blue); display: block; }

/* Элементы чертежа */
.bp-line { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.bp-ground { stroke-width: 2; }
.bp-water { stroke: var(--blue); stroke-width: 1.4; }
.bp-seep { stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: .6; }
.bp-hatchline { stroke: var(--blue); stroke-opacity: .32; stroke-width: 1; }
.bp-waterfill { fill: var(--blue); fill-opacity: .07; }
.bp-dim { stroke: var(--muted-2); stroke-width: 1; }
.bp-accent-fill { fill: var(--blue); }
.bp-label { font-family: var(--f-mono); font-size: 12px; fill: var(--blue); letter-spacing: 0.02em; }
.bp-label--mut { fill: var(--muted-2); font-size: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .bp-ground, .bp-dam, .bp-water { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: bp-draw 1.5s var(--t-slow) forwards; }
  .bp-ground { animation-delay: .15s; }
  .bp-dam { animation-delay: .4s; }
  .bp-water { animation-delay: 1s; }
  .bp-seep { opacity: 0; animation: bp-seep-in .7s 1.4s forwards; }
  .bp-waterfill, .bp-dim, .bp-accent-fill, .bp-label, .bp-foundation { opacity: 0; animation: bp-fade .8s 1.5s forwards; }
}
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: 1; } }
@keyframes bp-seep-in { to { opacity: .6; } }

/* Статистика внутри спецификации — 2×2, хайрлайны */
.spec .hero__stats { grid-template-columns: repeat(2, 1fr); border: none; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: #fff; }
.spec .hero__stat { padding: 1.15rem 1.2rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec .hero__stat:nth-child(-n+2) { border-top: none; }
.spec .hero__stat:nth-child(odd) { border-left: none; }

/* Параллакс-слой сетки hero */
.hero__grid { transition: transform .35s ease; }

/* Карточки услуг — анимированный верхний акцент при наведении */
.service-card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow); }
.service-card:hover::after { transform: scaleX(1); }
.service-card--cta::after { display: none; }

/* Кнопка — мягкий «свет» при наведении (без китча) */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary > * { position: relative; }

/* ------------------------------------------------------------ Utilities ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: #fff; color: var(--blue); padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }
