/* ===== Эколайниум ===== */

/* ---------- цвета: светлая тема ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f3f8f5;
  --bg-card: #ffffff;
  --text: #2c3438;
  --heading: #1e2629;
  --muted: #5b686d;
  --line: #dce6e2;
  --brand: #1f5a44;
  --brand-strong: #143d30;
  --brand-ink: #ffffff;
  --accent: #2f7f86;
  --accent-soft: #e3f0ee;
  --chip-bg: #f3f8f5;
  --dark-band: #143d30;
  --dark-band-text: #c4dbd1;
  --footer: #232a2e;
  --footer-text: #a9b5b8;
  --grad: linear-gradient(120deg, #3d7f5f, #2f7f86);
  --logo-a: #3d7f5f;
  --logo-b: #2f8a92;
  --note-bg: #fff3d6; --note-line: #e0b45a; --note-text: #7a5000;
  --mark: #fff0b3;
  --shadow: 0 1px 2px rgba(20, 61, 48, .06), 0 10px 28px rgba(20, 61, 48, .08);
  --map-bg: #f3f8f5; --map-grid: #dce6e2; --map-1: #1f5a44; --map-2: #3d7f5f; --map-3: #2f7f86; --map-4: #5aa7a6; --river: #bcd7ce;

  --radius: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- тёмная тема ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1614; --bg-soft: #141e1b; --bg-card: #17221f;
    --text: #d4dfdb; --heading: #f1f6f4; --muted: #94a7a1; --line: #263632;
    --brand: #5fb38c; --brand-strong: #7cc6a2; --brand-ink: #0c1311;
    --accent: #6cc3c2; --accent-soft: #1b2f2b; --chip-bg: #1a2724;
    --dark-band: #0b1210; --dark-band-text: #9fb8ae;
    --footer: #0a0f0e; --footer-text: #8a9a96;
    --grad: linear-gradient(120deg, #6fc39a, #6cc3c2);
    --logo-a: #7cc6a2; --logo-b: #6cc3c2;
    --note-bg: #3a2e12; --note-line: #8a6a26; --note-text: #f3d48b;
    --mark: #5b4a12;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
    --map-bg: #141e1b; --map-grid: #22312d; --map-1: #8fd3b0; --map-2: #6fc39a; --map-3: #6cc3c2; --map-4: #4f9e9d; --river: #23423a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1614; --bg-soft: #141e1b; --bg-card: #17221f;
  --text: #d4dfdb; --heading: #f1f6f4; --muted: #94a7a1; --line: #263632;
  --brand: #5fb38c; --brand-strong: #7cc6a2; --brand-ink: #0c1311;
  --accent: #6cc3c2; --accent-soft: #1b2f2b; --chip-bg: #1a2724;
  --dark-band: #0b1210; --dark-band-text: #9fb8ae;
  --footer: #0a0f0e; --footer-text: #8a9a96;
  --grad: linear-gradient(120deg, #6fc39a, #6cc3c2);
  --logo-a: #7cc6a2; --logo-b: #6cc3c2;
  --note-bg: #3a2e12; --note-line: #8a6a26; --note-text: #f3d48b;
  --mark: #5b4a12;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
  --map-bg: #141e1b; --map-grid: #22312d; --map-1: #8fd3b0; --map-2: #6fc39a; --map-3: #6cc3c2; --map-4: #4f9e9d; --river: #23423a;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Защита от выхода текста за рамки: длинные слова переносятся, а не вылезают за блок */
h1, h2, h3, h4, p, li, dt, dd, summary, td, .card, .tag, .chips li, .meta span, .contact-link b, .footer a, .crumbs, .filter {
  overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto;
}
h1, h2, h3 { hyphens: manual; text-wrap: balance; }
.grid > *, .split > *, .content-grid > *, .footer-grid > *, .contact-band > *, .hero .wrap > * { min-width: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--bg-soft); }
.section--dark { background: var(--dark-band); color: var(--dark-band-text); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #7fc4bf; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.prose-lead p { font-size: 1.1rem; }
.prose-lead p + p { color: var(--muted); font-size: 1rem; }
.muted { color: var(--muted); }
.narrow { max-width: 860px; }
.narrow-wrap { max-width: 860px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.example-note { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--note-text); background: var(--note-bg); border: 1px dashed var(--note-line); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.meta .example-note { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { padding: 9px 16px; font-size: .92rem; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-strong); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line); color: var(--heading); background: var(--bg-card); }
.btn--ghost:hover { border-color: var(--accent); color: var(--brand); }
.btn--ghost-dark { border-color: #3d474b; color: #e3eaec; background: transparent; margin-top: 8px; }
.btn--ghost-dark:hover { border-color: #7fc4bf; color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: var(--accent); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after, a.card:hover .link-arrow::after { transform: translateX(5px); }

/* ---------- шапка ---------- */
.topbar { background: var(--brand-strong); color: #cfe3da; font-size: .88rem; }
:root[data-theme="dark"] .topbar { background: #0a100e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #0a100e; } }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 8px 28px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar-tag { margin-right: auto; opacity: .75; }
.topbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background-color .3s; }
.header.is-scrolled { box-shadow: var(--shadow); }
.header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { width: 36px; height: 41px; }
.logo span { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-mark { transition: transform .4s var(--ease); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav > a, .dropdown-btn { color: var(--heading); text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background .2s, color .2s; }
.nav > a:hover, .dropdown-btn:hover { background: var(--bg-soft); color: var(--brand); }
.nav > a.is-active, .dropdown-btn.is-active { color: var(--brand); background: var(--accent-soft); }
.nav .nav-phone { display: none; }
.dropdown { position: relative; }
.dropdown-btn svg { transition: transform .25s; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 260px; padding: 8px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.dropdown-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown:hover .dropdown-btn svg, .dropdown.is-open .dropdown-btn svg { transform: rotate(180deg); }
.dropdown-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--heading); text-decoration: none; font-weight: 600; font-size: .95rem; }
.dropdown-menu a .ic { color: var(--accent); }
.dropdown-menu a:hover, .dropdown-menu a.is-active { background: var(--bg-soft); color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--heading); cursor: pointer; transition: background .2s, border-color .2s; }
.tool-btn:hover { background: var(--bg-soft); border-color: var(--line); }
.tool-btn svg { width: 22px; height: 22px; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; } :root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block; } :root:not([data-theme="light"]) .only-light { display: none; } }
#theme-btn svg { transition: transform .5s var(--ease); }
#theme-btn:hover svg { transform: rotate(25deg); }
.header-phone { font-weight: 800; color: var(--brand); text-decoration: none; white-space: nowrap; margin-left: 6px; }
.burger { display: none; }
.burger path { transition: transform .3s var(--ease), opacity .2s; transform-origin: center; }
.burger[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .b2 { opacity: 0; }
.burger[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }
.search-pop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); border-top: 1px solid transparent; }
.search-pop > .wrap { overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 0; }
.search-pop.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
.search-pop.is-open > .wrap { padding-top: 12px; padding-bottom: 12px; }
.search-pop input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; border: 0; background: none; color: var(--heading); padding: 8px 0; outline: none; }
.search-pop .ic { color: var(--muted); }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tag { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line); color: var(--brand); }
.hero-map { width: 100%; height: auto; display: block; }
.hero-map .panel { fill: var(--bg-card); stroke: var(--line); }
.hero-map .g { fill: none; stroke: var(--map-grid); stroke-width: 1; }
.hero-map .river { fill: none; stroke: var(--river); stroke-width: 10; stroke-linecap: round; }
.hero-map .iso ellipse { fill: none; stroke-width: 2; }
.hero-map .i0 { stroke: var(--map-1); } .hero-map .i1 { stroke: var(--map-2); stroke-opacity: .85; } .hero-map .i2 { stroke: var(--map-3); stroke-opacity: .7; }
.hero-map .i3 { stroke: var(--map-4); stroke-opacity: .55; } .hero-map .i4 { stroke: var(--map-4); stroke-opacity: .35; stroke-dasharray: 6 7; }
.hero-map .src { fill: var(--map-2); }
.hero-map .pulse { fill: none; stroke: var(--map-1); stroke-opacity: .35; transform-origin: 250px 215px; }
.hero-map text { font-family: Manrope, sans-serif; }
.hero-map .lbl { font-size: 12px; font-weight: 700; fill: var(--muted); }
.hero-map .card-src rect { fill: var(--bg-card); stroke: var(--line); }
.hero-map .card-src .t1 { font-size: 12px; font-weight: 700; fill: var(--accent); letter-spacing: 1px; }
.hero-map .card-src .t2 { font-size: 13px; fill: var(--heading); }
.hero-map .card-szz rect { fill: var(--brand); } .hero-map .card-szz text { font-size: 13px; font-weight: 700; fill: var(--brand-ink); }
.hero-map .scale path { stroke: var(--heading); stroke-width: 2; } .hero-map .scale text { font-size: 11px; fill: var(--muted); }

/* ---------- шапка внутренних страниц ---------- */
.page-head { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.page-head .icon { margin-bottom: 16px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; opacity: .5; }

/* ---------- карточки и сетки ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease), background-color .3s; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .link-arrow { margin-top: auto; }
.card--mini { padding: 24px; }
.card--mini p { margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; flex: none; transition: transform .35s var(--ease); }
.icon .ic { width: 28px; height: 28px; }
a.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--chip-bg); color: var(--brand); border: 1px solid var(--line); max-width: 100%; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); font-weight: 800; margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.05rem; color: var(--brand); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .93rem; }

.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.adv-item .num { font-size: .85rem; font-weight: 800; color: #7fc4bf; letter-spacing: .1em; margin-bottom: 12px; display: block; }
.adv-item p { color: var(--dark-band-text); font-size: .97rem; }

/* проекты */
.project-card { padding: 24px 24px 28px; }
.project-card .thumb { aspect-ratio: 16 / 9; border-radius: 10px; margin: -10px -10px 22px; overflow: hidden; border: 1px solid var(--line); }
.project-card .thumb > * { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .thumb > * { transform: scale(1.04); }
.project-cover { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 32px; }
.project-cover > * { width: 100%; height: 100%; object-fit: cover; }
.thumb-map .bg { fill: var(--map-bg); }
.thumb-map .grid { stroke: var(--map-grid); stroke-width: 1; fill: none; }
.thumb-map ellipse { fill: none; stroke-width: 1.4; }
.thumb-map .r0 { stroke: var(--map-1); } .thumb-map .r1 { stroke: var(--map-3); stroke-opacity: .7; } .thumb-map .r2 { stroke: var(--map-2); stroke-opacity: .55; }
.thumb-map .r3 { stroke: var(--map-4); stroke-opacity: .45; } .thumb-map .r4 { stroke: var(--map-4); stroke-opacity: .3; }
.thumb-map .src { fill: var(--map-1); }
.thumb-map .badge { fill: var(--bg-card); stroke: var(--line); }
.thumb-map .badge-ic { color: var(--brand); }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { font-size: .92rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; text-decoration: none; background: var(--bg-card); border: 1px solid var(--line); color: var(--heading); transition: all .2s; }
.filter:hover { border-color: var(--accent); color: var(--brand); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
[data-projects] > [hidden] { display: none; }

/* контакты */
.contact-band { background: linear-gradient(120deg, #2d6e52, #2a7880); border-radius: 20px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
:root[data-theme="dark"] .contact-band { background: linear-gradient(120deg, #17392d, #164246); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-band { background: linear-gradient(120deg, #17392d, #164246); } }
.contact-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.15); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03); pointer-events: none; }
.contact-band h2 { color: #fff; }
.contact-band p { color: rgba(255,255,255,.85); margin: 0; }
.contact-links { display: grid; gap: 12px; position: relative; z-index: 1; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; transition: background .2s, transform .25s var(--ease); min-width: 0; }
.contact-link:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateX(4px); }
.contact-link .ic { width: 24px; height: 24px; }
.contact-link span { min-width: 0; }
.contact-link small { display: block; opacity: .8; font-size: .8rem; }
.contact-link b { font-size: 1.15rem; display: block; overflow-wrap: anywhere; }

.aside-contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-soft); position: sticky; top: 100px; }
.aside-contact h3 { font-size: 1.05rem; }
.aside-contact p { font-size: .93rem; color: var(--muted); }
.aside-contact a { display: flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none; margin-top: 10px; color: var(--brand); overflow-wrap: anywhere; }
.aside-contact .ic { width: 18px; height: 18px; color: var(--accent); }

/* текст страниц */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose > :first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 0 0 1.2em; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.article-img { border-radius: 14px; margin-bottom: 28px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 18px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.result-box { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 0 0 1.4em; }
.dates { font-size: .88rem; color: var(--muted); display: flex; gap: 6px 20px; flex-wrap: wrap; }

/* подсказки терминов */
abbr.term { text-decoration: underline dotted var(--accent); text-underline-offset: 3px; cursor: help; position: relative; }
/* подсказка не существует в раскладке, пока не нужна, — иначе она расширяет страницу */
abbr.term::after { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: min(320px, 80vw); padding: 10px 14px; border-radius: 10px; background: var(--heading); color: var(--bg); font-size: .85rem; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; z-index: 20; box-shadow: var(--shadow); transform: translateX(-50%); pointer-events: none; }
abbr.term:hover::after, abbr.term:focus::after { display: block; animation: tipIn .2s var(--ease); }
abbr.term.tip-left::after { left: 0; transform: none; }
abbr.term.tip-right::after { left: auto; right: 0; transform: none; }
@keyframes tipIn { from { opacity: 0; margin-bottom: -4px; } }

/* вопросы и ответы */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 1.05rem; color: var(--heading); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent-soft); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--brand); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 24px 8px; color: var(--text); }
.faq-item[open] .faq-a { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* словарь */
.glossary-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; position: sticky; top: 76px; z-index: 5; background: var(--bg); padding: 12px 0; }
.input { font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); color: var(--heading); min-width: 0; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#glossary-filter { flex: 1 1 260px; max-width: 420px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--brand); background: var(--bg-soft); }
.letters a:hover { background: var(--brand); color: var(--brand-ink); }
.glossary-group { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.glossary-letter { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.glossary { margin: 0; display: grid; gap: 20px; }
.glossary-item { scroll-margin-top: 150px; }
.glossary-item:target { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin: -10px -14px; }
.glossary dt { font-weight: 800; color: var(--heading); font-size: 1.1rem; }
.glossary dt span { font-weight: 500; color: var(--muted); font-size: .95rem; }
.glossary dd { margin: 4px 0 0; }

/* календарь */
.next-deadline { display: flex; gap: 28px; align-items: center; padding: 28px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 40px; }
.next-deadline h2 { font-size: 1.35rem; margin-bottom: 6px; }
.next-deadline p { margin: 0; color: var(--muted); }
.nd-date { flex: none; width: 96px; height: 96px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); display: grid; place-content: center; text-align: center; }
.nd-date b { font-size: 2.4rem; line-height: 1; }
.nd-date span { font-size: .85rem; font-weight: 700; }
.timeline { display: grid; gap: 8px; }
.tl-month { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.tl-month h3 { font-size: 1.15rem; }
.tl-month h3 span { color: var(--muted); font-weight: 500; }
.tl-month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tl-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.tl-item time { font-weight: 800; color: var(--brand); }
.tl-item.is-soon time::after { content: "скоро"; display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--note-bg); color: var(--note-text); vertical-align: 2px; }
.tl-item b { display: block; color: var(--heading); }
.tl-item span { display: block; color: var(--muted); font-size: .95rem; }
.tl-item small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 16px; }

/* поиск */
.search-big { display: flex; gap: 12px; max-width: 720px; flex-wrap: wrap; }
.search-big .input { flex: 1 1 260px; font-size: 1.05rem; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.search-results a { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--bg-card); transition: border-color .2s, transform .25s var(--ease); }
.search-results a:hover { border-color: var(--accent); transform: translateX(4px); }
.search-results b { display: block; color: var(--heading); font-size: 1.1rem; margin: 4px 0; }
.search-results span:not(.sr-type) { color: var(--muted); font-size: .95rem; }
.sr-type { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

.notfound { text-align: left; min-height: 50vh; }

/* подвал */
.footer { background: var(--footer); color: var(--footer-text); font-size: .93rem; padding: 64px 0 32px; }
.footer a { color: #dfe7e9; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.logo--footer { margin-bottom: 14px; --logo-a: #8fd3b0; --logo-b: #6cc3c2; }
.logo--footer span { background: linear-gradient(120deg, #8fd3b0, #6cc3c2); -webkit-background-clip: text; background-clip: text; }
.footer-req { font-size: .85rem; }
.footer-bottom { border-top: 1px solid #3a4246; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* уведомление о cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--bg-card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; animation: cookieIn .5s var(--ease); }
.cookie p { margin: 0; font-size: .92rem; flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 8px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }

/* ---------- анимации появления ---------- */
@keyframes appear { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .appear { animation: appear .8s var(--ease) both; }
.js .appear.d1 { animation-delay: .08s; } .js .appear.d2 { animation-delay: .16s; } .js .appear.d3 { animation-delay: .24s; } .js .appear.d4 { animation-delay: .32s; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js a.card.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0s; }

/* схема на первом экране: изолинии «прорисовываются», источник пульсирует */
.js .hero-map .iso ellipse { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s var(--ease) forwards; }
.js .hero-map .iso .i1 { animation-delay: .25s; } .js .hero-map .iso .i2 { animation-delay: .45s; } .js .hero-map .iso .i3 { animation-delay: .65s; }
.js .hero-map .iso .i4 { stroke-dasharray: 6 7; stroke-dashoffset: 0; opacity: 0; animation: fade 1s .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.hero-map .pulse { animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.js .hero-map .lbl, .js .hero-map .card-src, .js .hero-map .card-szz { opacity: 0; animation: fade .8s 1.3s forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-map .iso ellipse { stroke-dashoffset: 0; }
  .hero-map .pulse { display: none; }
}

/* ---------- адаптивность ---------- */
@media (max-width: 1180px) {
  .nav, .header-phone { display: none; }
  .burger { display: grid; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; box-shadow: var(--shadow); animation: menuIn .3s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
  .nav.is-open > a, .nav.is-open .dropdown-btn { padding: 12px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav.is-open .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: none; display: none; }
  .nav.is-open .dropdown.is-open .dropdown-menu { display: block; }
  .nav .nav-phone { display: flex !important; gap: 10px; align-items: center; color: var(--brand); font-weight: 800; }
  .grid--4, .adv { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .contact-band, .content-grid { grid-template-columns: 1fr; }
  .split { gap: 8px; }
  .content-grid { gap: 40px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 28px; }
  .hero-art { order: -1; max-width: 440px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .contact-band { padding: 32px 24px; gap: 24px; }
  .section { padding: 64px 0; }
  .aside-contact { position: static; }
  .topbar-tag { display: none; }
  .tl-month { grid-template-columns: 1fr; gap: 12px; }
  .glossary-group { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar .wrap { justify-content: space-between; gap: 4px 12px; font-size: .8rem; }
  .logo span { font-size: 1.2rem; }
  .logo-mark { width: 30px; height: 34px; }
  .tool-btn { width: 38px; height: 38px; }
  .grid--4, .adv, .stat-list, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 22px; }
  .next-deadline { flex-direction: column; align-items: flex-start; padding: 22px; }
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
  .contact-link { padding: 14px 16px; }
  .contact-link b { font-size: 1.02rem; }
  .faq-item summary { padding: 18px 52px 18px 18px; font-size: 1rem; }
  .faq-a { padding: 0 18px 6px; }
}
@media (max-width: 360px) {
  .logo span { font-size: 1.05rem; }
  .header > .wrap { gap: 8px; }
}
