/* Гидросервис — стили сайта.
   Аудитория — руководители и механики 45–60 лет: крупный кегль, высокий контраст,
   крупные кнопки, телефон всегда на виду. */

@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(../fonts/plex-sans-cyrillic-400.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(../fonts/plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(../fonts/plex-sans-cyrillic-500.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(../fonts/plex-sans-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(../fonts/plex-sans-cyrillic-600.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(../fonts/plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url(../fonts/plex-sans-cyrillic-700.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url(../fonts/plex-sans-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PlexMono"; font-weight: 600; font-display: swap; src: url(../fonts/plex-mono-cyrillic-600.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PlexMono"; font-weight: 600; font-display: swap; src: url(../fonts/plex-mono-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  --ink: #0b1420;          /* тёмные секции */
  --ink-2: #132134;
  --ink-3: #1c2f47;
  --brand: #1858b8;        /* синий «Гидросервиса» */
  --brand-2: #2b74e0;
  --brand-soft: #e8f0fc;
  --accent: #ffb400;       /* жёлтый «гидравлический» — главные действия */
  --accent-2: #ffc633;
  --text: #121a24;
  --muted: #3f4b5a;        /* не светлее: читаемость для зрелой аудитории */
  --line: #d5dce5;
  --bg: #f2f4f7;
  --card: #ffffff;
  --ok: #138a4b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 20, 32, .06), 0 8px 24px rgba(11, 20, 32, .06);
  --wrap: 1240px;
  --mono: "PlexMono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 400 18px/1.6 "Plex", "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 10px; border: 2px solid transparent; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn .icon { width: 22px; height: 22px; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { background: var(--accent-2); color: #111; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { color: inherit; background: rgba(127, 127, 127, .12); }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- шапка ---------- */
.topbar { background: var(--ink); color: #c7d2e0; font-size: 15px; }
.topbar .wrap { display: flex; gap: 28px; align-items: center; min-height: 40px; }
.topbar a { color: #c7d2e0; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 16px; height: 16px; color: var(--accent); }
.topbar .push { margin-left: auto; }

.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(11, 20, 32, .1); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.logo svg { width: 48px; height: 48px; }
.logo b { display: block; font-size: 22px; letter-spacing: .04em; line-height: 1; }
.logo small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.2; }

.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav > div { position: relative; }
.nav > div > a { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 12px 12px; font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; border-radius: 8px; }
.nav > div > a:hover, .nav > div.open > a { background: var(--bg); color: var(--brand); }
.nav > div > a.active { color: var(--brand); }
.nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav > div.open .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); width: min(760px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(11, 20, 32, .18); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav > div.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.mega a:hover { background: var(--brand-soft); color: var(--brand); }
.mega .sub { display: block; padding: 0 0 6px 10px; }
.mega .sub a { display: inline; padding: 2px 0; font-weight: 400; font-size: 15px; color: var(--muted); }
.mega .sub a:hover { background: none; text-decoration: underline; }
.mega .sub a + a::before { content: " · "; color: var(--line); }
.mega .all { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.mega .all a { display: inline-flex; color: var(--brand); }

.hphone { text-align: right; flex: none; text-decoration: none; color: var(--text); }
.hphone b { display: block; font-size: 22px; letter-spacing: .01em; white-space: nowrap; }
.hphone small { color: var(--muted); font-size: 14px; }
.hphone:hover b { color: var(--brand); }
.burger, .hcall { display: none; }

/* мобильное меню */
.mnav { position: fixed; inset: 0; z-index: 100; background: #fff; overflow-y: auto; padding: 0 20px 40px; display: none; }
.mnav.open { display: block; animation: mnav-in .2s ease-out; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
.mnav-head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mnav-close { width: 52px; height: 52px; border: 0; background: var(--bg); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.mnav-close .icon { width: 26px; height: 26px; }
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary, .mnav > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 21px; font-weight: 600; color: var(--text); text-decoration: none; list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav > a { border-bottom: 1px solid var(--line); }
.mnav details[open] .chev { transform: rotate(180deg); }
.mnav details a { display: block; padding: 10px 4px 10px 16px; font-size: 18px; color: var(--text); text-decoration: none; }
.mnav details a.lvl3 { padding-left: 32px; font-size: 16px; color: var(--muted); }
.mnav .mnav-contacts { margin-top: 24px; display: grid; gap: 12px; }

/* ---------- общие секции ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--ink); color: #e6edf6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-white { background: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: var(--accent); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; max-width: 760px; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 720px; font-size: 19px; }
.section-dark .section-head p { color: #b8c5d6; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 20px; height: 20px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow.back { white-space: normal; }
.link-arrow.back .icon { transform: rotate(180deg); }
.link-arrow.back:hover .icon { transform: rotate(180deg) translateX(4px); }

/* ---------- главный экран ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% 30%, #18355e 0%, rgba(11, 20, 32, 0) 60%), var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 160, 220, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 220, .08) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 21px; color: #c9d5e4; max-width: 600px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 26px; color: #b8c5d6; font-size: 16px; }
.hero-note span { display: inline-flex; gap: 8px; align-items: center; }
.hero-note .icon { color: var(--accent); width: 20px; height: 20px; }
.blueprint { width: 100%; height: auto; }
.blueprint .bp-line { stroke: #6f9be0; stroke-width: 1.5; fill: none; }
.blueprint .bp-thin { stroke: #6f9be0; stroke-width: 1; fill: none; opacity: .6; }
.blueprint .bp-fill { fill: rgba(43, 116, 224, .12); }
.blueprint .bp-rod { fill: url(#rodGrad); }
.blueprint .bp-dim { stroke: var(--accent); stroke-width: 1.2; fill: none; }
.blueprint text { font: 600 14px var(--mono); fill: #dbe6f5; }
.blueprint .bp-acc { fill: var(--accent); }
.blueprint text.bp-big { font-size: 24px; fill: #fff; }
.blueprint text.bp-sm { font-size: 12px; }
.blueprint text.bp-y { fill: var(--accent); }
.blueprint .rod-move { animation: rod 6s ease-in-out infinite; }
@keyframes rod { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-60px); } }
@media (prefers-reduced-motion: reduce) { .blueprint .rod-move { animation: none; } html { scroll-behavior: auto; } }

.facts { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 600 40px/1.1 var(--mono); color: var(--accent); margin-bottom: 6px; }
.fact span { color: #c9d5e4; font-size: 17px; }

/* ---------- два направления ---------- */
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dir { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.dir-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 22px; }
.dir-icon .icon { width: 34px; height: 34px; stroke-width: 1.8; }
.dir h3 { font-size: 28px; }
.dir p { color: var(--muted); }
.dir ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 4px; }
.dir li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--text); font-weight: 500; }
.dir li a:hover { color: var(--brand); }
.dir li .icon { color: var(--brand); width: 20px; height: 20px; }
.dir .btn { margin-top: auto; align-self: flex-start; }

/* ---------- карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--brand); box-shadow: 0 14px 36px rgba(24, 88, 184, .14); transform: translateY(-2px); color: var(--text); }
.card .card-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card .card-icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.card .more { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--brand); }
.card .more .icon { width: 18px; height: 18px; transition: transform .15s; }
a.card:hover .more .icon { transform: translateX(4px); }
.card-photo { padding: 0; overflow: hidden; }
.card-photo .ph { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ink-3), var(--ink)); display: grid; place-items: center; color: #6f9be0; overflow: hidden; }
.card-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .ph .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.card-photo .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card .date { font: 600 14px var(--mono); color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }

/* ---------- этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 20px 0 0; }
.step::before { counter-increment: s; content: "0" counter(s); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font: 600 22px var(--mono); margin-bottom: 20px; background: var(--ink); position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 32px; left: 64px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 180, 0, .5) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: #b8c5d6; font-size: 16px; margin: 0; }

/* ---------- характеристики ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.spec h3 { font-size: 20px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.spec h3 .icon { width: 28px; height: 28px; color: var(--brand); }
.spec dl { margin: 0; display: grid; gap: 0; }
.spec dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 16px; }
.spec dd { margin: 0; font: 600 20px var(--mono); white-space: nowrap; }

/* ---------- бренды техники ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.brands span.more { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

/* ---------- партнёры ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 28px; }
.partner .since { font: 600 15px var(--mono); color: var(--accent); margin-bottom: 10px; display: block; }
.partner h3 { font-size: 22px; margin-bottom: 10px; }
.partner p { color: #b8c5d6; font-size: 16px; margin: 0; }

/* ---------- заявка ---------- */
.cta { background: linear-gradient(120deg, var(--brand) 0%, #0f3f8a 100%); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.cta .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #dbe6f5; font-size: 19px; }
.cta-phone { display: inline-block; font: 600 34px/1.2 var(--mono); color: #fff; text-decoration: none; margin: 8px 0 4px; }
.cta-phone:hover { color: var(--accent); }
.cta-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.cta-points li { display: flex; gap: 12px; align-items: center; }
.cta-points .icon { color: var(--accent); width: 22px; height: 22px; }
.form { background: #fff; color: var(--text); border-radius: 18px; padding: 32px; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.form h3 { font-size: 24px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1.4; color: var(--text); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.form .agree { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok .icon { width: 64px; height: 64px; color: var(--ok); margin: 0 auto 14px; }
.form.sent .form-body { display: none; }
.form.sent .form-ok { display: block; }

/* ---------- статьи (главная) ---------- */
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- контакты/карта ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card .row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-card .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-card .row > .icon { width: 26px; height: 26px; color: var(--brand); margin-top: 3px; }
.contact-card .row b { display: block; }
.contact-card .row a { font-weight: 600; }
.contact-card .row small { display: block; color: var(--muted); font-size: 15px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--line); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- внутренние страницы ---------- */
.page-head { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 160, 220, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 220, .07) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent 20%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); }
.page-head .wrap { position: relative; padding-top: 36px; padding-bottom: 52px; }
.page-head h1 { color: #fff; max-width: 920px; font-size: clamp(30px, 4vw, 48px); }
.page-head .lead { color: #c9d5e4; font-size: 20px; max-width: 820px; margin-bottom: 28px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-head .meta { font: 600 15px var(--mono); color: var(--accent); margin-bottom: 14px; letter-spacing: .04em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; margin-bottom: 26px; color: #8fa1b8; }
.crumbs a { color: #b8c5d6; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { color: #56677e; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding: 56px 0 80px; }
.layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }
.aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-box h3 { font-size: 19px; margin-bottom: 14px; }
.aside-call { background: var(--ink); color: #fff; border: 0; }
.aside-call h3 { color: #fff; }
.aside-call p { color: #b8c5d6; font-size: 16px; }
.aside-call .big { display: block; font: 600 24px var(--mono); color: #fff; text-decoration: none; margin-bottom: 4px; }
.aside-call .big:hover { color: var(--accent); }
.aside-call small { display: block; color: #8fa1b8; margin-bottom: 18px; font-size: 15px; }
.aside-call .people { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 18px; padding-top: 14px; font-size: 16px; }
.aside-call .people a { color: #fff; font-weight: 600; text-decoration: none; }
.aside-call .people div { padding: 4px 0; color: #b8c5d6; }
.subnav { list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 500; }
.subnav a:hover { background: var(--bg); color: var(--brand); }
.subnav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.subnav ul { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; border-left: 2px solid var(--line); margin-left: 12px; }
.subnav ul a { font-size: 15px; padding: 6px 10px; }

.children { margin-bottom: 48px; }
.children .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- текст из старого сайта ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 19px; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose ol { counter-reset: o; }
.prose ol li { position: relative; padding-left: 40px; margin-bottom: 8px; counter-increment: o; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 600 15px/28px var(--mono); text-align: center; }
.prose img { border-radius: 10px; margin: 1.4em 0; max-height: 560px; width: auto; cursor: zoom-in; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.4em 0; }
.prose .gallery img { margin: 0; width: 100%; height: 180px; object-fit: cover; }
.prose strong { font-weight: 700; }
.prose a[href$=".pdf"], .prose a[href$=".doc"], .prose a[href$=".docx"], .prose a[href$=".xls"], .prose a[href$=".xlsx"] { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--brand); border-radius: 10px; font-weight: 600; text-decoration: none; margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.table-wrap th { background: var(--ink-2); color: #fff; text-align: left; font-weight: 600; font-size: 13px; letter-spacing: .03em; padding: 12px 14px; vertical-align: bottom; }
.table-wrap td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: #f7f9fb; }
.table-wrap td img { margin: 0; max-width: 90px; max-height: 90px; border-radius: 6px; cursor: zoom-in; }
.table-wrap td p { margin: 0 0 6px; }
.price-link { display: inline-flex; padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #111 !important; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.price-link:hover { background: var(--accent-2); }
.table-hint { display: none; font-size: 14px; color: var(--muted); margin: -8px 0 8px; }

.note { display: flex; gap: 16px; align-items: flex-start; background: #fff8e5; border: 1px solid #f3dc9e; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; font-size: 17px; }
.note .icon { width: 26px; height: 26px; color: #a87400; margin-top: 2px; }
.note p { margin: 0; }

/* статьи — список */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter button { min-height: 46px; padding: 0 18px; border: 2px solid var(--line); background: #fff; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--text); }
.filter button.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.list-more { text-align: center; margin-top: 32px; }

/* о компании */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-grid .prose { padding: 0; border: 0; background: none; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.checklist .icon { color: var(--ok); width: 24px; height: 24px; margin-top: 3px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.doc-card h3 { font-size: 20px; margin-bottom: 4px; }
.doc-card p { color: var(--muted); }
.doc-card .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* карта сайта */
.sitemap { columns: 2 340px; column-gap: 48px; }
.sitemap ul { list-style: none; padding: 0 0 0 18px; margin: 4px 0 10px; border-left: 2px solid var(--line); }
.sitemap > ul { border: 0; padding: 0; }
.sitemap li { break-inside: avoid; padding: 3px 0; }
.sitemap a { text-decoration: none; }
.sitemap a:hover { text-decoration: underline; }

/* ---------- фото производства ---------- */
.dir-photo { display: block; width: calc(100% + 72px); max-width: none; margin: -36px -36px 0; aspect-ratio: 16 / 7; object-fit: cover; }
.dir .dir-photo + .dir-icon { margin-top: -32px; position: relative; border: 4px solid #fff; background: var(--brand); color: #fff; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photos-4 { grid-template-columns: repeat(4, 1fr); }
.photos figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--ink-3); aspect-ratio: 4 / 3; }
.photos img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .3s; }
.photos figure:hover img { transform: scale(1.04); }
.photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(6, 12, 20, .85)); color: #fff; font-weight: 600; font-size: 17px; }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.certs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; place-items: center; aspect-ratio: 3 / 4; }
.certs img { max-height: 100%; width: auto; object-fit: contain; cursor: zoom-in; }

/* ---------- подвал ---------- */
.footer { background: var(--ink); color: #b8c5d6; padding: 72px 0 0; font-size: 16px; }
.footer .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #b8c5d6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer .logo small { color: #8fa1b8; }
.footer .fphone { display: block; font: 600 24px var(--mono); color: #fff; margin-bottom: 4px; }
.footer .bottom { margin-top: 56px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 14px; color: #8fa1b8; }
.footer .bottom a { color: #8fa1b8; }

/* плавающая кнопка звонка на телефоне */
.fab { display: none; }

/* модальное окно и просмотр фото */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 12, 20, .72); }
.modal.open { display: flex; }
.modal .form { width: 100%; max-width: 480px; position: relative; max-height: 100%; overflow-y: auto; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; background: var(--bg); border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.modal-x .icon { width: 24px; height: 24px; }
.lightbox { position: fixed; inset: 0; z-index: 210; background: rgba(6, 12, 20, .92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- адаптив ---------- */
@media (max-width: 1520px) {
  .logo small, .header .btn-call { display: none; }
}
@media (max-width: 1320px) {
  .nav > div > a { padding: 12px 11px; }
}
@media (max-width: 1180px) {
  .hphone small { display: none; }
  .nav > div > a { padding: 12px 9px; font-size: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .step:nth-child(3)::after { display: none; }
}
@media (max-width: 1100px) {
  .topbar .hide-md { display: none; }
  .nav { display: none; }
  .burger, .hcall { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; border: 0; cursor: pointer; flex: none; }
  .burger { background: var(--bg); color: var(--text); }
  .hcall { background: var(--accent); color: #111; }
  .burger .icon, .hcall .icon { width: 26px; height: 26px; }
  .hphone { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { order: 2; max-width: 620px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact { border-top: 1px solid rgba(255, 255, 255, .06); }
  .dir-grid, .cta .wrap, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .specs, .partners, .news-row { grid-template-columns: 1fr 1fr; }
  .photos, .photos-4, .certs { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .header .wrap { min-height: 72px; gap: 10px; }
  .logo svg { width: 40px; height: 40px; }
  .logo b { font-size: 18px; }
  .hphone { display: none; }
  .burger { margin-left: auto; }
  .section { padding: 60px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head .link-arrow { margin-top: 16px; }
  .hero .lead { font-size: 19px; }
  .hero-cta .btn { width: 100%; }
  .fact { padding: 22px 0; }
  .fact b { font-size: 32px; }
  .dir { padding: 26px 22px; }
  .dir-photo { width: calc(100% + 44px); margin: -26px -22px 0; }
  .dir .btn, .page-head .actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .step::before { grid-row: span 2; margin: 0; }
  .step::after { display: block !important; top: 64px; left: 31px; right: auto; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 180, 0, .5) 0 8px, transparent 8px 14px); }
  .step:last-child::after { display: none !important; }
  .specs, .partners, .news-row, .docs { grid-template-columns: 1fr; }
  .photos figcaption { font-size: 15px; }
  .form { padding: 24px 18px; }
  .cta-phone { font-size: 28px; }
  .prose { padding: 26px 18px; }
  .table-hint { display: block; }
  .footer .grid { grid-template-columns: 1fr; gap: 32px; }
  .layout { padding: 32px 0 56px; }
  .fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; min-height: 60px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transform: translateY(160%); transition: transform .25s; }
  .show-fab .fab { transform: none; }
  .footer .bottom { padding-bottom: 96px; }
}
