/* ==========================================================================
   ЭЦИР — стили сайта. Mobile-first: базовые правила для телефона,
   медиазапросы расширяют макет для планшетов (≥768px) и десктопа (≥1100px).
   ========================================================================== */

:root {
  --g-950: #04221a;
  --g-900: #062e24;
  --g-800: #0b3b2e;
  --g-700: #0d5a43;
  --g-600: #12795a;
  --brand: #16a06a;
  --brand-600: #10885a;
  --brand-50: #e9f8f0;
  --brand-100: #d2f1e1;
  --mint: #7ef0b4;
  --sun: #ffd23f;

  --ink: #0e1d18;
  --text: #34443e;
  --muted: #6a7a74;
  --line: #e2eae6;
  --bg: #ffffff;
  --soft: #f3f7f5;

  --ok: #12825a;
  --ok-bg: #e5f6ee;
  --warn: #9a6400;
  --warn-bg: #fff4d8;
  --bad: #b42318;
  --bad-bg: #fde8e6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6, 46, 36, .06), 0 1px 3px rgba(6, 46, 36, .05);
  --shadow: 0 10px 30px -12px rgba(6, 46, 36, .18), 0 2px 6px rgba(6, 46, 36, .05);
  --shadow-lg: 0 30px 60px -20px rgba(6, 46, 36, .35);

  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 68px;
  --gutter: 16px;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--g-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
code { font-size: .9em; background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid rgba(22, 160, 106, .45); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.flip { transform: scaleX(-1); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-head); letter-spacing: .005em;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap; text-align: center;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 160, 106, .6); }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(22, 160, 106, .7); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-600); }
.btn--ghost { color: var(--brand-600); background: var(--brand-50); }
.btn--ghost:hover { background: var(--brand-100); color: var(--g-700); }
.btn--light { background: #fff; color: var(--g-800); }
.btn--light:hover { background: var(--brand-50); color: var(--g-900); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); font-weight: 600; font-size: 14px; text-align: left; }
.link-btn:hover { color: var(--g-700); }

/* ---------- Типографика секций ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1.3 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600); margin: 0 0 14px;
}
.eyebrow span { width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--mint); }
.h2 { font-size: clamp(26px, 5.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }

.section { padding: 64px 0; }
.section--tight { padding: 0 0 56px; }
.section--soft { background: var(--soft); }
.section--dark { background: radial-gradient(1200px 500px at 85% 0%, #0f6a4d 0%, transparent 60%), linear-gradient(160deg, var(--g-900), var(--g-950)); color: rgba(255,255,255,.82); }
.section--dark .h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.section__head .h2 { margin: 0; max-width: 760px; }
.section__lead { color: var(--muted); max-width: 460px; margin: 0; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: 1fr; }

/* ---------- Бейджи и статусы ---------- */
.badge { display: inline-flex; align-items: center; font: 600 11px/1 var(--font); padding: 5px 8px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.badge--draft { background: var(--warn-bg); color: var(--warn); border: 1px dashed #e0b44c; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok); background: var(--ok-bg); }
.status--warn { color: var(--warn); background: var(--warn-bg); }
.status--bad { color: var(--bad); background: var(--bad-bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--brand-50); color: var(--g-700); font-weight: 500; font-size: 14px; }
.chips--light li { background: rgba(255,255,255,.08); color: #e8fff2; border: 1px solid rgba(255,255,255,.14); }

.preview-bar { background: repeating-linear-gradient(45deg, #fff4d8, #fff4d8 12px, #ffeec2 12px, #ffeec2 24px); color: #6b4a00; font-size: 13px; text-align: center; padding: 8px 16px; line-height: 1.4; }

/* ---------- Верхняя полоса и шапка ---------- */
.topbar { display: none; background: var(--g-900); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar__item .ico { width: 15px; height: 15px; color: var(--mint); }
a.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar__lang { color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.3); padding: 2px 8px; border-radius: 6px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 234, 230, .8);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(6,46,36,.35); }
.header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 12px rgba(13,107,75,.25)); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font: 800 20px/1 var(--font-head); letter-spacing: .02em; }
.logo__text small { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.2; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__text small { color: rgba(255,255,255,.6); }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__phone { display: none; align-items: center; gap: 8px; font: 700 15px/1 var(--font-head); color: var(--ink); white-space: nowrap; }
.header__phone .ico { width: 18px; height: 18px; color: var(--brand); }
.header__cta { display: none; }

.burger { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; visibility: hidden; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(4, 34, 26, .45); opacity: 0; transition: opacity .25s; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%);
  background: #fff; overflow-y: auto; padding: 12px var(--gutter) 28px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; gap: 20px;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open::before { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav > a, .drawer__group summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  font: 700 17px/1.2 var(--font-head); color: var(--ink); cursor: pointer; list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group[open] summary .ico { transform: rotate(180deg); }
.drawer__group ul { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.drawer__group li a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text); font-weight: 500; }
.drawer__ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.drawer__ico .ico { width: 18px; height: 18px; }
.drawer__contacts { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.drawer__contacts a, .drawer__contacts span { display: flex; align-items: center; gap: 10px; color: var(--text); }
.drawer__contacts .ico { width: 18px; height: 18px; color: var(--brand); }
body.no-scroll { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, #0a4636 0%, var(--g-900) 55%, var(--g-950) 100%);
  color: rgba(255,255,255,.85);
  padding: 40px 0 120px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(4,34,26,.55) 0%, rgba(4,34,26,.2) 35%, rgba(4,34,26,.85) 100%),
  linear-gradient(90deg, rgba(4,34,26,.92) 0%, rgba(4,34,26,.72) 45%, rgba(4,34,26,.18) 100%); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__turbines .spin { animation: spin 9s linear infinite; }
.hero__turbines .spin--slow { animation-duration: 13s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__in { display: grid; gap: 32px; position: relative; }
.hero__title { color: #fff; font-size: clamp(30px, 7.4vw, 58px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 18px; }
.hero__lead { font-size: clamp(16px, 2.2vw, 18px); max-width: 620px; color: rgba(255,255,255,.78); margin-bottom: 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__btns .btn { flex: 1 1 auto; }
.hero__trust { display: grid; gap: 12px; margin-top: 32px; }
.hero__trust li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.7); }
.hero__trust li > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(126, 240, 180, .12); color: var(--mint); }
.hero__trust b { display: block; color: #fff; font: 700 15px/1.3 var(--font-head); }

.card-glass {
  background: rgba(255,255,255,.96); color: var(--text);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero__form h2 { font-size: 21px; margin-bottom: 6px; }
.hero__form > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__label i { color: var(--bad); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--soft); border: 1.5px solid transparent; border-radius: 12px;
  font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a7a74' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,160,106,.12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--bad); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check.is-invalid { color: var(--bad); }
.form__msg { margin: 0; font-size: 14px; min-height: 0; }
.form__msg:empty { display: none; }
.form__msg.is-ok { color: var(--ok); }
.form__msg.is-err { color: var(--bad); }
.form.is-sent > :not(.form__msg) { display: none; }
.form.is-sent .form__msg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 8px; font-size: 16px; color: var(--ink); }
.form.is-sent .form__msg::before { content: ""; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2312825a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }

/* ---------- Карточки направлений ---------- */
.directions { margin-top: -80px; position: relative; z-index: 2; }
.grid--services { display: grid; gap: 14px; grid-template-columns: 1fr; }
.scard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.scard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(6,46,36,.35); border-color: var(--brand-100); color: var(--text); }
.scard__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-600); }
.scard__ico .ico { width: 26px; height: 26px; }
.scard__title { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.scard__text { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.scard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--g-700); }
.scard__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand-600); transition: background .25s, color .25s, transform .25s; }
.scard__arrow .ico { width: 16px; height: 16px; }
.scard:hover .scard__arrow { background: var(--brand); color: #fff; transform: translateX(3px); }
.scard--cta { background: linear-gradient(150deg, var(--g-700), var(--g-900)); border-color: transparent; color: rgba(255,255,255,.8); }
.scard--cta:hover { color: rgba(255,255,255,.8); }
.scard--cta .scard__title { color: #fff; }
.scard--cta .scard__text { color: rgba(255,255,255,.72); }
.scard--cta .scard__ico { background: rgba(255,255,255,.1); color: var(--mint); }
.scard--cta .scard__foot { border-color: rgba(255,255,255,.14); color: var(--mint); }
.scard--cta .scard__arrow { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Цифры ---------- */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--soft)); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 22px 12px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.stat b { font: 800 clamp(30px, 7vw, 44px)/1 var(--font-head); color: var(--brand-600); letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- Почему мы (bento) ---------- */
.bento { display: grid; gap: 14px; }
.bento__item { padding: 24px; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.bento__item h3 { font-size: 18px; margin: 14px 0 8px; }
.bento__item p { font-size: 15px; color: var(--muted); margin: 0; }
.bento__ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--brand-600); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.bento__item--big { background: radial-gradient(600px 300px at 100% 0%, rgba(126,240,180,.25), transparent 60%), linear-gradient(150deg, var(--g-700), var(--g-900)); color: rgba(255,255,255,.8); border: 0; }
.bento__item--big h3 { color: #fff; font-size: clamp(20px, 3.4vw, 26px); }
.bento__item--big p { color: rgba(255,255,255,.75); }
.bento__item--big .bento__ico { background: rgba(255,255,255,.12); color: var(--mint); box-shadow: none; }
.bento__steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; counter-reset: s; }
.bento__steps li { counter-increment: s; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 7px 12px 7px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.bento__steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--g-900); display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* ---------- Блок лаборатории ---------- */
.lab-spot__in { display: grid; gap: 32px; align-items: center; }
.lab-spot__lead { font-size: 17px; max-width: 560px; color: rgba(255,255,255,.75); }
.lab-spot .chips { margin: 24px 0 28px; }
.lab-spot__card { position: relative; padding: 28px; }
.lab-spot__badge { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), var(--g-700)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.lab-spot__badge .ico { width: 28px; height: 28px; }
.lab-spot__label { font-size: 13px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.lab-spot__num { font: 800 clamp(26px, 6vw, 34px)/1.1 var(--font-head); color: var(--ink); margin: 4px 0 18px; letter-spacing: -.02em; }
.lab-spot__dl { display: grid; gap: 0; margin: 0 0 22px; }
.lab-spot__dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.lab-spot__dl dt { color: var(--muted); }
.lab-spot__dl dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step__n { font: 800 14px/1 var(--font-head); color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 7px 11px; display: inline-block; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Отрасли ---------- */
.industries { display: grid; gap: 14px; }
.industry { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--line); }
.industry__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.industry__head h3 { margin: 0; font-size: 18px; }
.industry__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.industry__list { display: flex; flex-wrap: wrap; gap: 8px; }
.industry__list li { font-size: 14px; padding: 7px 12px; border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 500; }

/* ---------- Проекты ---------- */
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__ind { font: 700 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-600); }
.pcard__client { font-size: 19px; margin: 4px 0 0; }
.pcard__title { margin: 0; font-weight: 500; color: var(--ink); }
.pcard__meta { margin: 0; font-size: 13px; color: var(--muted); }
.pcard__works { display: grid; gap: 6px; margin: 4px 0; }
.pcard__works li { display: flex; gap: 8px; font-size: 14px; }
.pcard__works .ico { color: var(--brand); margin-top: 3px; }
.pcard__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__note { margin: 0; font-size: 12px; color: var(--warn); background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; }

/* ---------- Документы ---------- */
.doc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.doc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.doc__thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(180deg, #eef3f1, #e3ebe7); }
.doc__thumb img { width: 78%; height: auto; margin: 18px auto 0; border-radius: 4px; box-shadow: 0 10px 25px -8px rgba(6,46,36,.35); transition: transform .35s; }
.doc:hover .doc__thumb img { transform: translateY(-6px) scale(1.02); }
.doc__zoom { position: absolute; inset: auto 12px 12px auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(6,46,36,.85); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.doc__zoom .ico { width: 16px; height: 16px; }
.doc__thumb:hover .doc__zoom, .doc__thumb:focus-visible .doc__zoom { opacity: 1; transform: none; }
.doc__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.doc__group { font: 700 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-600); }
.doc__title { font-size: 16px; margin: 0; line-height: 1.35; }
.doc__note { font-size: 13px; color: var(--muted); margin: 0; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13px; }
.doc__meta div { display: flex; gap: 5px; }
.doc__meta dt { color: var(--muted); }
.doc__meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.doc .status { align-self: flex-start; }
.doc__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.doc__actions .btn { flex: 1; padding-inline: 10px; }

.docs-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* Горизонтальная лента (документы на главной) */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: none; gap: 8px; justify-content: flex-end; }
.rail__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s; }
.rail__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- О компании (тизер) ---------- */
.about-teaser { display: grid; gap: 20px; }
.about-teaser__text { font-size: 17px; }
.about-teaser__text .btn { margin-top: 8px; }

/* ---------- Подвал ---------- */
.footer { background: linear-gradient(170deg, #07392c, var(--g-950)); color: rgba(255,255,255,.66); padding: 40px 0 24px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .02em; }
.footer__cta { display: grid; gap: 20px; padding: 28px; border-radius: var(--radius-lg); background: radial-gradient(500px 250px at 100% 0%, rgba(126,240,180,.25), transparent 70%), linear-gradient(135deg, var(--brand), #0e7a52); color: rgba(255,255,255,.9); margin-bottom: 44px; box-shadow: var(--shadow-lg); }
.footer__cta h2 { color: #fff; font-size: clamp(24px, 5vw, 34px); margin-bottom: 8px; }
.footer__cta p { margin: 0; max-width: 560px; }
.footer__cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__cta-btns .btn { flex: 1 1 auto; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 32px; }
.footer__brand p { margin-top: 16px; max-width: 340px; font-size: 14px; }
.footer__grid ul { display: grid; gap: 9px; }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__contacts a, .footer__contacts span { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .ico { width: 18px; height: 18px; color: var(--mint); margin-top: 3px; }
.footer__bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Плавающая кнопка */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(22,160,106,.8); transition: transform .2s; }
.fab:hover { color: #fff; transform: scale(1.06); }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.fab--wa { background: #25d366; }
.fab--wa::after { border-color: #25d366; }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,34,26,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal__box { position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(40px); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.modal.is-open { visibility: visible; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__box h2 { font-size: 24px; margin: 0 40px 6px 0; }
.modal__box > .muted { font-size: 14px; margin-bottom: 18px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.modal__close:hover { background: var(--line); }
.modal__close--static { position: static; flex: none; }

.modal--doc .modal__box { height: 92vh; height: 92dvh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.docview__head { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.docview__title { font-size: 17px !important; margin: 0 !important; }
.docview__meta { font-size: 13px; margin: 4px 0 0; }
.docview__actions { display: flex; gap: 8px; align-items: center; }
.docview__actions .btn { flex: 1; }
.docview__frame { flex: 1; background: #525659; }
.docview__frame iframe { width: 100%; height: 100%; border: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Внутренние страницы
   ========================================================================== */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(800px 400px at 90% -10%, rgba(126,240,180,.22), transparent 60%), linear-gradient(160deg, #0b4a38, var(--g-900));
  color: rgba(255,255,255,.8); padding: 28px 0 44px;
}
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(191,245,216,.14) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-head h1 { color: #fff; font-size: clamp(28px, 6.4vw, 48px); font-weight: 800; letter-spacing: -.025em; margin: 18px 0 12px; max-width: 900px; }
.page-head__lead { font-size: 17px; max-width: 760px; margin: 0; color: rgba(255,255,255,.78); }
.page-head__ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.1); color: var(--mint); display: grid; place-items: center; margin-top: 18px; }
.page-head__ico .ico { width: 28px; height: 28px; }
.page-head .hero__btns { margin-top: 24px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }

.prose { max-width: 780px; font-size: 16px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* Страница услуги: меню слева + контент */
.svc { display: grid; gap: 28px; }
.svc__side { display: none; }
.svc__nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; padding: 10px; background: var(--soft); border-radius: var(--radius-lg); }
.svc__nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.3; }
.svc__nav a .ico { width: 18px; height: 18px; color: var(--brand-600); }
.svc__nav a:hover { background: #fff; color: var(--ink); }
.svc__nav a.is-active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -8px rgba(22,160,106,.7); }
.svc__nav a.is-active .ico { color: #fff; }
.svc__sub { padding: 4px 0 8px 40px; display: grid; gap: 2px; }
.svc__sub a { padding: 6px 8px; font-size: 13px; color: var(--muted); }
.svc__sub a:hover { color: var(--brand-600); background: transparent; }
.svc__mobile-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.svc__mobile-nav::-webkit-scrollbar { display: none; }
.svc__mobile-nav a { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.svc__mobile-nav a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.basis { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--g-800); font-size: 15px; margin-bottom: 28px; }
.basis .ico { color: var(--brand-600); margin-top: 1px; }
.basis p { margin: 0; }
.basis--warn { background: var(--warn-bg); border-color: #f3d78f; color: #5c4100; }
.basis--warn .ico { color: var(--warn); }

.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.tile__n { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font: 800 13px/1 var(--font-head); }
.tile h3 { font-size: 16px; margin: 4px 0 6px; line-height: 1.35; }
.tile p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

.h3 { font-size: clamp(21px, 4vw, 28px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 18px; }
.block { margin-bottom: 44px; }

.objects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.object { padding: 16px; border-radius: var(--radius); background: var(--soft); }
.object b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.object span { font-size: 13px; color: var(--muted); }

.why { display: grid; gap: 10px; }
.why li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); font-size: 15px; }
.why .ico { color: var(--brand); flex: none; margin-top: 1px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--soft); font: 700 13px/1.3 var(--font-head); color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }

.cta-box { display: grid; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.cta-box h2 { font-size: clamp(22px, 4vw, 28px); margin-bottom: 6px; }
.cta-box p { margin: 0; color: var(--muted); }

.related { display: grid; gap: 12px; }

/* Каталог услуг и фильтры */
.search { position: relative; max-width: 640px; }
.search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 58px; padding: 0 20px 0 52px; border-radius: 999px; border: 1.5px solid transparent; background: #fff; font-size: 16px; box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--brand); }
.page-head .search { margin-top: 26px; }

.catalog { display: grid; gap: 20px; }
.cat { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.cat__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cat__head h2 { font-size: 20px; margin: 4px 0 4px; }
.cat__head h2 a { color: var(--ink); }
.cat__head h2 a:hover { color: var(--brand-600); }
.cat__head p { margin: 0; font-size: 14px; color: var(--muted); }
.cat__list { display: grid; gap: 2px; }
.cat__list a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: 15px; }
.cat__list a:hover { background: var(--soft); color: var(--ink); }
.cat__list .ico { color: var(--brand); margin-top: 3px; }
.cat__list mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.cat__more { margin-top: 14px; }
.empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty h3 { color: var(--ink); }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin: 0 calc(-1 * var(--gutter)) 18px; padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--brand); color: var(--brand-600); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter span { font-size: 12px; opacity: .6; }
.toolbar { display: grid; gap: 12px; margin-bottom: 20px; }
.toolbar .field select, .toolbar .field input { background: #fff; border-color: var(--line); }

.clients-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.client { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.client__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--g-700); flex: none; font: 800 16px/1 var(--font-head); }
.client b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 15px; line-height: 1.3; }
.client small { color: var(--muted); font-size: 12px; }

.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); font-size: 14px; color: var(--muted); margin-top: 24px; }
.notice .ico { color: var(--brand); flex: none; }

/* О компании */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--brand-100)); border-radius: 2px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.tl b { font: 800 20px/1.2 var(--font-head); color: var(--brand-600); }
.tl p { margin: 4px 0 0; font-size: 15px; }

.values { display: grid; gap: 14px; }
.value { padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.value .bento__ico { background: var(--brand-50); box-shadow: none; }
.value h3 { font-size: 17px; margin: 14px 0 6px; }
.value p { font-size: 14px; color: var(--muted); margin: 0; }

.split { display: grid; gap: 28px; align-items: start; }
.mission { padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--g-700), var(--g-900)); color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.55; }
.mission b { display: block; color: var(--mint); font: 700 12px/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }

/* Контакты */
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); color: var(--text); }
a.ccard:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--text); }
.ccard__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex: none; }
.ccard small { display: block; font: 700 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.ccard b { display: block; color: var(--ink); font: 700 16px/1.35 var(--font-head); word-break: break-word; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--soft); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.req { display: grid; gap: 0; margin: 0; }
.req div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req dt { font-size: 13px; color: var(--muted); }
.req dd { margin: 0; color: var(--ink); font-weight: 600; }

.err { text-align: center; padding: 80px 0; }
.err__code { font: 800 clamp(80px, 22vw, 160px)/1 var(--font-head); letter-spacing: -.05em; background: linear-gradient(135deg, var(--brand), var(--g-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* ---------- Фото ---------- */
.ph { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.page-head__grid { display: grid; gap: 28px; align-items: center; }
.page-head__photo .ph { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.08); }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
.gallery__item { margin: 0; position: relative; }
.gallery__item .ph { aspect-ratio: 4 / 3; }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(6,46,36,.82); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
.about-side { display: grid; gap: 16px; }
.about-side__photo { aspect-ratio: 4 / 3; }
.scard__photo { display: block; margin: -22px -22px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.scard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.scard:hover .scard__photo img { transform: scale(1.05); }
@media (max-width: 559px) { .scard__photo { display: none; } .scard--photo .scard__ico { margin-top: 0 !important; border: 0 !important; } }
.scard--photo .scard__ico { margin-top: -44px; position: relative; border: 4px solid #fff; background: var(--brand-50); }
.lab-spot__photo { aspect-ratio: 16 / 10; margin: -12px -12px 0; }
.lab-spot__photo + .lab-spot__badge { margin-top: -28px; margin-left: 4px; position: relative; border: 4px solid #fff; box-sizing: content-box; }
.section--tight-top { padding-top: 0; }
.contact-cards--lift { margin-top: -28px; position: relative; z-index: 2; }
.contact-cards--lift .ccard { box-shadow: var(--shadow); }
.ccard--inline { margin-top: 20px; display: inline-flex; }
.plain { display: grid; gap: 6px; }
.client__logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.cta-box--plain { background: #fff; }
.svc__main .docs-grid--inline { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .svc__main .docs-grid--inline { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .contact-cards--lift { margin-top: -40px; }
  .grid--services-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .page-head__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; }
  .page-head--split { padding-bottom: 72px; }
  .svc__main .docs-grid--inline { grid-template-columns: repeat(2, 1fr); }
}

/* Анимация появления при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   ≥ 560px — большие телефоны
   ========================================================================== */
@media (min-width: 560px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .hero__btns .btn { flex: 0 0 auto; }
  .rail__track { grid-auto-columns: 46%; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .objects { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__cta-btns .btn { flex: 0 0 auto; }
}

/* ==========================================================================
   ≥ 768px — планшеты
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 76px; }
  .section { padding: 88px 0; }
  .section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .topbar { display: block; }
  .header__phone { display: inline-flex; }
  .hero { padding: 64px 0 150px; }
  .hero__trust { grid-template-columns: repeat(3, 1fr); }
  .card-glass { padding: 30px; }
  .stats__grid { grid-template-columns: repeat(5, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 30px 20px; }
  .stat:last-child { grid-column: auto; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--big { grid-column: 1 / -1; padding: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .lab-spot__in { grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .rail__nav { display: flex; margin-top: 8px; }
  .rail__track { grid-auto-columns: calc((100% - 28px) / 3); }
  .about-teaser { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer { padding-top: 64px; }
  .footer__cta { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .modal { align-items: center; padding: 24px; }
  .modal__box { max-width: 620px; border-radius: var(--radius-lg); padding: 36px; }
  .modal--doc .modal__box { max-width: 1100px; height: 90vh; }
  .docview__head { flex-direction: row; justify-content: space-between; align-items: center; padding: 16px 20px; }
  .docview__actions .btn { flex: none; }
  .page-head { padding: 36px 0 64px; }
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cta-box { grid-template-columns: 1fr 1.2fr; padding: 36px; gap: 36px; align-items: start; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   ≥ 1100px — десктоп
   ========================================================================== */
@media (min-width: 1100px) {
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .nav { display: block; margin-left: 12px; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__item { position: relative; }
  .nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font: 600 15px/1 var(--font-head); white-space: nowrap; transition: background .2s, color .2s; }
  .nav__link:hover, .nav__link.is-active { color: var(--brand-600); background: var(--brand-50); }
  .nav__link .ico { transition: transform .2s; }
  .nav__item--drop:hover .nav__link .ico, .nav__item--drop:focus-within .nav__link .ico { transform: rotate(180deg); }
  .mega { position: absolute; top: 100%; left: -12px; width: 760px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav__item--drop:hover .mega, .nav__item--drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
  .mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-lg); }
  .mega__item { display: flex; gap: 14px; padding: 12px; border-radius: 14px; color: var(--text); }
  .mega__item:hover { background: var(--soft); color: var(--text); }
  .mega__item b { display: block; color: var(--ink); font: 700 15px/1.3 var(--font-head); margin-bottom: 3px; }
  .mega__item small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
  .mega__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
  .mega__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px; background: var(--soft); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; }
  .mega__foot a { display: inline-flex; align-items: center; gap: 6px; }
  .drawer { display: none; }

  .hero { padding: 80px 0 170px; }
  .hero__in { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr); gap: 56px; align-items: center; }
  .directions { margin-top: -110px; }
  .grid--services { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, auto); }
  .bento__item--big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step::after { content: ""; position: absolute; top: 38px; right: -14px; width: 14px; height: 2px; background: var(--brand-100); }
  .step:last-child::after { display: none; }
  .rail__track { grid-auto-columns: calc((100% - 42px) / 4); }
  .svc { grid-template-columns: 290px minmax(0, 1fr); gap: 48px; }
  .svc__side { display: block; }
  .svc__mobile-nav { display: none; }
  .docs-grid { grid-template-columns: repeat(4, 1fr); }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-cards { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) and (max-width: 1379px) {
  .header__phone span { display: none; }
  .nav__link { padding: 10px 9px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .footer, .fab, .modal, .preview-bar, .drawer { display: none !important; }
}
