/* kudrin.tech — светлая инженерная тема.
   Один файл стилей вместо bootstrap/animate/jquery-ui. Токены — в :root. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0F1B26;
  --ink-2: #33414E;
  --muted: #5B6875;
  --line: #DCE2E8;
  --line-strong: #C3CCD5;
  --paper: #FFFFFF;
  --paper-2: #F4F6F8;
  --paper-3: #EAEEF2;
  --accent: #1D5BD6;
  --accent-ink: #1749AD;
  --accent-soft: #E8EFFC;
  --grid: rgba(29, 91, 214, .07);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 38, .06), 0 8px 24px rgba(15, 27, 38, .06);
  --shadow-lg: 0 2px 4px rgba(15, 27, 38, .06), 0 24px 48px rgba(15, 27, 38, .10);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: 84px;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::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-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, .h1, .h2, .h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; margin: 0 0 .6em; }
h1, .h1 { font-size: clamp(32px, 4.6vw, 56px); }
h2, .h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3, .h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Чертёжная сетка — фирменный фон */
.blueprint {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(29, 91, 214, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 91, 214, .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* Надзаголовок секции: метка в стиле штампа чертежа */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border: 2px solid currentColor; transform: rotate(45deg); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; max-width: 26ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(29, 91, 214, .28); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-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 transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 27, 38, .05); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 52px; height: 62px; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 27px; font-weight: 800; letter-spacing: .05em; color: var(--ink); }
.brand__name b { color: var(--accent); font-weight: 800; }
.brand__tag { margin-top: 7px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand:hover .brand__mark { color: var(--accent); }
.brand__mark path { transition: transform .35s ease; transform-origin: 50% 50%; }
.brand:hover .brand__mark path:nth-child(1) { transform: translateY(-2px); }
.brand:hover .brand__mark path:nth-child(3) { transform: translateY(2px); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.nav__link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  min-width: 300px; padding: 10px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover > .nav__dropdown, .nav__item:focus-within > .nav__dropdown, .nav__item.is-open > .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link .chev, .nav__item.is-open > .nav__link .chev { transform: rotate(180deg); }
.nav__dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.nav__dropdown a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.header-contacts { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.header-phone strong { color: var(--ink); font-size: 16px; font-weight: 800; white-space: nowrap; }
.header-phone span { color: var(--muted); font-size: 12.5px; }
.header-phone:hover strong { color: var(--accent); }

.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* Мобильное меню */
.mobile-menu { border: 0; padding: 0; margin: 0 0 0 auto; width: min(420px, 100%); max-width: 100%; height: 100%; max-height: 100%; background: #fff; color: var(--ink); }
.mobile-menu::backdrop { background: rgba(15, 27, 38, .45); backdrop-filter: blur(2px); }
.mobile-menu[open] { animation: slide-in .25s ease; }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.mobile-menu__close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.mobile-menu__body { padding: 12px var(--gutter) 32px; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary, .mobile-menu .m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.mobile-menu details summary { border-bottom: 0; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--muted); }
.mobile-menu details[open] summary::after { content: "−"; }
.mobile-menu details a { display: block; padding: 9px 0 9px 14px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); }
.mobile-menu details a:hover { color: var(--accent); border-color: var(--accent); }
.mobile-menu details ul { list-style: none; margin: 0 0 14px; padding: 0; }
.mobile-menu__contacts { display: grid; gap: 12px; margin-top: 28px; }

/* ---------- Главный экран ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); min-height: min(720px, calc(100vh - var(--header-h))); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__title { font-size: clamp(36px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; color: var(--ink); margin: 0 0 22px; }
.hero__title span { color: var(--accent); display: block; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--line-strong); list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }
.hero__visual { position: relative; }
.hero__visual img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 40px 50px rgba(15, 27, 38, .22)); }
/* Размерные линии вокруг детали — как на чертеже */
.dim { position: absolute; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.dim--h { left: 6%; right: 6%; bottom: 2%; height: 14px; border-left: 1.5px solid; border-right: 1.5px solid; }
.dim--h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed; }
.dim--h span { position: absolute; left: 50%; top: -22px; translate: -50% 0; background: var(--paper-2); padding: 0 8px; }
.dim--v { top: 10%; bottom: 18%; right: -2%; width: 14px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.dim--v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed; }
.dim--v span { position: absolute; top: 50%; left: 18px; translate: 0 -50%; writing-mode: vertical-rl; background: var(--paper-2); padding: 8px 0; }

/* ---------- Этапы работ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 0; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.step:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; font-weight: 800; color: var(--accent); position: relative; }
.step__num::before { content: ""; position: absolute; inset: 6px; border: 2px solid var(--accent); transform: rotate(45deg); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin-bottom: 20px; }
.step__img { display: flex; justify-content: flex-end; align-items: flex-end; width: 78%; height: 220px; margin: auto -30px 0 auto; }
.step__img img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }

/* ---------- Карточки услуг ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 180px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.service-card__idx { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.service-card__name { font-size: 20px; font-weight: 750; line-height: 1.25; letter-spacing: -.01em; }
.service-card__go svg { width: 18px; height: 18px; }
.service-card__go { position: absolute; right: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); transition: background-color .2s, color .2s, transform .2s; }
.service-card:hover .service-card__go { background: var(--accent); color: #fff; transform: rotate(-45deg); }
.service-card--call { background: var(--accent-soft); border-color: #C9D8F6; white-space: normal; }
.service-card--call:hover { border-color: var(--accent); }
.service-card--call .service-card__idx { color: var(--accent); }
.service-card--call .service-card__go { background: var(--accent); color: #fff; }
.service-card--call:hover .service-card__go { transform: none; }

/* ---------- Преимущества ---------- */
.advantages { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.advantages__img { border-radius: calc(var(--radius) * 1.4); overflow: hidden; background: var(--paper-3); aspect-ratio: 4 / 5; }
.advantages__img img { width: 100%; height: 100%; object-fit: cover; }
.adv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.adv-list li { padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.adv-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.adv-list li:nth-child(even) { padding-left: 22px; }
.adv-list b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 750; font-size: 18px; }
.adv-list .n { display: block; color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat { padding: 30px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-size: clamp(34px, 4vw, 50px); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat__num small { color: var(--accent); font-size: .7em; }
.stat__desc { margin-top: 10px; color: var(--muted); }

/* ---------- Иконки-факты ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature img { width: 44px; height: 44px; margin-bottom: 18px; }
.feature p { margin: 0; color: var(--ink); font-weight: 650; line-height: 1.4; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery--home { grid-auto-rows: 220px; }
.gallery--home .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item { position: relative; margin: 0; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); cursor: zoom-in; display: block; width: 100%; text-align: left; }
.gallery--page .gallery__item { aspect-ratio: 1 / 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 650; font-size: 15px; line-height: 1.3; background: linear-gradient(transparent, rgba(15, 27, 38, .75)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 16, 22, .86); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox__btn { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__prev { left: 2vw; }
.lightbox__next { right: 2vw; }
.lightbox__close { position: fixed; top: 2vh; right: 2vw; translate: none; }

/* ---------- Сферы применения ---------- */
.scopes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scope-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); }
.scope-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s ease, opacity .3s; }
.scope-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 27, 38, 0) 40%, rgba(15, 27, 38, .85)); }
.scope-card__name { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font-weight: 750; font-size: 18px; line-height: 1.25; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.scope-card__name::after { content: "→"; transition: transform .2s; }
.scope-card:hover img { transform: scale(1.06); opacity: 1; }
.scope-card:hover .scope-card__name::after { transform: translateX(4px); }
.scope-card:hover { color: #fff; }

/* ---------- Призыв связаться ---------- */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.6); background: var(--ink); color: #C9D3DD; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 12px; max-width: 24ch; }
.cta p { margin: 0; max-width: 56ch; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta__mark { position: absolute; right: -40px; top: -60px; width: 260px; color: rgba(110, 155, 255, .18); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B26' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s, background-color .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq-item summary:hover { color: var(--accent); }
.faq-item__body { padding: 0 48px 22px 0; color: var(--ink-2); }
.faq-item__body > :last-child { margin-bottom: 0; }

/* ---------- Текстовые блоки ---------- */
.prose { color: var(--ink-2); font-size: 17.5px; line-height: 1.75; max-width: 78ch; }
.prose--wide { max-width: none; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .55em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { font-size: clamp(20px, 2vw, 24px); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin-bottom: .5em; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .1em; width: 20px; height: 20px; font-size: 12px; font-weight: 800; color: var(--accent); text-align: center; line-height: 20px; }
.prose li ul, .prose li ol { margin: .5em 0 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 750; }
.prose a { font-weight: 600; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--paper-2); color: var(--ink); font-weight: 750; white-space: nowrap; }
.prose tbody tr:hover { background: var(--paper-2); }

.text-media { display: grid; gap: clamp(40px, 6vw, 88px); }
.text-media__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.text-media__row:nth-child(even) .text-media__img { order: -1; }
.text-media__row--solo { grid-template-columns: 1fr; }
.text-media__img { position: relative; border-radius: calc(var(--radius) * 1.4); overflow: hidden; background: var(--paper-3); }
.text-media__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.text-media__img::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--radius); pointer-events: none; }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero__title { margin: 0; max-width: 22ch; font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.contact-card__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 750; letter-spacing: -.01em; word-break: break-word; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(64px, 12vw, 160px) 0; }
.error-page__code { font-size: clamp(96px, 20vw, 220px); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--accent); margin-bottom: 10px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #AEB9C4; padding-top: clamp(48px, 6vw, 80px); font-size: 15.5px; }
.site-footer a { color: #DCE3EA; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 280px; }
.footer-brand p { margin: 20px 0 0; max-width: 34ch; }
.footer-col h3 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col .contact-big { font-size: 20px; font-weight: 800; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8794A1; }
.footer-bottom a { color: #AEB9C4; }

/* ---------- Cookie ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: none; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; background: var(--ink); color: #C9D3DD; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.5; }
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; }

/* ---------- Появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  .header-phone span { display: none; }
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .header-contacts .btn { display: none; }
}
@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .nav, .header-contacts { display: none; }
  .burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 1fr 38%; column-gap: 24px; padding: 26px 0 0 26px; }
  .step > :not(.step__img) { grid-column: 1; }
  .step p { margin-bottom: 26px; }
  .step__img { grid-column: 2; grid-row: 1 / span 3; align-self: end; width: 100%; height: 190px; margin: 0; }
  .advantages, .faq, .contacts { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .advantages__img { aspect-ratio: 16 / 9; }
  .scopes { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--home .gallery__item:nth-child(n+7) { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .text-media__row { grid-template-columns: 1fr; }
  .text-media__row:nth-child(even) .text-media__img { order: 0; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__mark { width: 40px; height: 48px; }
  .brand__name { font-size: 21px; }
  .brand__tag { font-size: 9px; letter-spacing: .12em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .service-card { min-height: 0; gap: 18px; padding: 20px 22px; }
  .service-card__name { font-size: 18px; padding-right: 44px; }
  .dim--v { display: none; }
  .step { grid-template-columns: 1fr; padding: 24px 0 0 24px; }
  .step h3, .step p { padding-right: 24px; }
  .step p { margin-bottom: 8px; }
  .step__img { grid-column: 1; grid-row: auto; justify-self: end; width: 85%; height: 180px; }
  .adv-list { grid-template-columns: 1fr; }
  .adv-list li, .adv-list li:nth-child(even) { padding: 20px 0; border-right: 0; }
  .scopes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scope-card__name { left: 14px; right: 14px; bottom: 12px; font-size: 15px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery--home { grid-auto-rows: 160px; }
  .features { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .faq-item summary { font-size: 16.5px; }
  .faq-item__body { padding-right: 0; }
  .cookie { flex-direction: column; align-items: stretch; }
  .lightbox__btn { top: auto; bottom: 3vh; translate: none; }
}
.faq__note { color: var(--muted); }
.faq__note a[href^="tel:"] { white-space: nowrap; }
