/* ==========================================================================
   Современные технологии (promothodi.ru) — site stylesheet
   Navy / red corporate palette, Open Sans, rounded cards, curved hero media.
   Mobile-first: base rules target phones, @media (min-width) layers add columns.
   ========================================================================== */

:root {
    --navy: #004A7C;
    --navy-deep: #003763;
    --navy-ink: #00243F;
    --navy-50: #EAF2F8;
    --red: #D80025;
    --red-dark: #B0001E;
    --sky: #05A0E4;

    --ink: #252525;
    --muted: #5B5B5E;
    --grey-50: #F6F6F6;
    --grey-100: #EDEDED;
    --line: #D9D9D6;
    --white: #fff;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow: 0 10px 30px rgba(0, 36, 63, .10);
    --shadow-sm: 0 2px 10px rgba(0, 36, 63, .08);

    --container: 1240px;
    --gutter: 20px;
    --header-h: 72px;

    --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 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: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--grey { background: var(--grey-50); }
.section--navy { background: var(--navy-deep); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; letter-spacing: -.01em; }
.h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.h3 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; }
.h4 { font-size: 20px; font-weight: 700; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-title--rule { padding-bottom: 14px; border-bottom: 3px solid var(--red); }
.section-title p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }

.eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #fff; opacity: .85; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 26px;
    border-radius: 999px; border: 2px solid transparent;
    font: 600 15px/1.2 var(--font);
    cursor: pointer; text-align: center;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px; color: var(--red);
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .2s; }
.link-arrow:hover { color: var(--red-dark); }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(4px); }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-deep); color: #fff; font-size: 13px; }
.utility .container { display: flex; align-items: center; justify-content: flex-end; gap: 24px; min-height: 38px; }
.utility a, .utility span { color: #fff; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.utility a:hover { color: #fff; opacity: .8; }
.utility .icon { width: 16px; height: 16px; }
.utility .u-hours, .utility .u-email { display: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-top: 3px; }

.nav-drawer { margin-left: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
    position: relative;
    color: #fff; font-weight: 600; font-size: 15px;
    padding: 10px 14px;
}
.nav a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
    background: var(--red); border-radius: 2px;
    transform: scaleX(0); transition: transform .2s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-phone:hover { color: #fff; opacity: .85; }
.header-phone .icon { width: 18px; height: 18px; }

.burger {
    margin-left: auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer;
}
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,20,40,.5); z-index: 49; }

/* Mobile drawer */
@media (max-width: 1023.98px) {
    .nav-drawer {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
        width: min(86vw, 360px);
        background: var(--navy-deep);
        padding: 88px 24px 32px;
        display: flex; flex-direction: column; gap: 28px;
        transform: translateX(100%); transition: transform .25s ease;
        overflow-y: auto;
    }
    .nav-drawer.is-open { transform: none; }
    .nav { flex-direction: column; gap: 0; }
    .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .nav a::after { left: 0; right: auto; width: 32px; bottom: -1px; }
    .header-cta { flex-direction: column; align-items: stretch; }
    .burger { position: relative; z-index: 61; }
}
@media (min-width: 1024px) {
    .burger, .nav-backdrop { display: none !important; }
    .nav-drawer { display: flex !important; align-items: center; gap: 24px; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: relative; height: 300px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { position: relative; padding-block: 36px 48px; }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 18px; }
.hero .lede { color: rgba(255,255,255,.88); font-size: 18px; margin-bottom: 28px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 18px; height: 18px; color: #fff; }

@media (min-width: 900px) {
    .hero { min-height: 560px; display: flex; align-items: center; }
    .hero-media {
        position: absolute; inset: 0 auto 0 0; width: 58%; height: auto;
        clip-path: ellipse(100% 125% at 0% 50%);
    }
    .hero-body { width: 100%; padding-block: 72px; }
    .hero-body .inner { margin-left: 58%; padding-left: 48px; }
}
@media (min-width: 1280px) {
    .hero { min-height: 600px; }
}

/* ---------- Quick links ---------- */
.quick-links { display: grid; gap: 20px; }
.quick-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--grey-50); border-radius: var(--radius);
    padding: 28px; color: var(--ink);
    border: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.quick-card:hover { color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.quick-card .icon { width: 34px; height: 34px; color: var(--navy); margin-bottom: 4px; }
.quick-card h3 { font-size: 19px; }
.quick-card p { color: var(--muted); font-size: 15px; flex: 1; }
@media (min-width: 768px) { .quick-links { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.service-card {
    display: flex; flex-direction: column;
    background: var(--grey-50); border-radius: var(--radius);
    overflow: hidden; color: var(--ink);
    transition: box-shadow .25s, transform .25s;
}
.service-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .cover { position: relative; aspect-ratio: 16 / 10; background: var(--navy-50); overflow: hidden; }
.service-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .cover img { transform: scale(1.04); }
.service-card .cover .ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: var(--navy); font-weight: 700; padding: 20px; text-align: center;
    background: linear-gradient(135deg, var(--navy-50), #fff);
}
.service-card .badge {
    position: absolute; left: 16px; top: 16px;
    background: #fff; color: var(--navy);
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.service-card .body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.service-card .cat { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 13px; font-weight: 600; }
.service-card .cat .icon { width: 22px; height: 22px; }
.service-card h3 { font-size: 20px; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- Stats band ---------- */
.impact .grid { display: grid; gap: 36px; align-items: center; }
.impact .copy p { color: rgba(255,255,255,.86); font-size: 16px; }
.impact .copy .btn { margin-top: 12px; }
.impact .media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.impact .media img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); }
.stat { padding: 28px 12px 4px; text-align: center; }
.stat b { display: block; font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1; color: #fff; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.8); }
@media (min-width: 900px) {
    .impact .grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat + .stat { border-left: 1px solid rgba(255,255,255,.18); }
}

/* ---------- Split / collage ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.collage { position: relative; padding: 0 12% 14% 0; }
.collage .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.collage .main img, .collage .inset img { width: 100%; height: 100%; object-fit: cover; }
.collage .inset {
    position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 16 / 10;
    border-radius: var(--radius); overflow: hidden;
    border: 6px solid #fff; box-shadow: var(--shadow);
}
.split .copy h2 { margin-bottom: 18px; }
.split .copy p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 72px; }
    .split--reverse .collage { order: 2; }
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--navy); }
.step .num { font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: .06em; margin-bottom: 10px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Photo strip ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--grey-100); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-grid figure:hover img { transform: scale(1.05); }
.photo-grid figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 14px 12px; color: #fff; font-size: 13px; font-weight: 600;
    background: linear-gradient(transparent, rgba(0,20,40,.8));
}
@media (min-width: 768px) {
    .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .photo-grid .wide { grid-column: span 2; aspect-ratio: auto; }
}

/* ---------- Help band (CTA) ---------- */
.help-band { background: var(--grey-50); padding: 56px 0; }
.help-band .inner {
    display: grid; gap: 28px; align-items: center;
    background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
    box-shadow: var(--shadow-sm); border-left: 6px solid var(--red);
}
.help-band h2 { font-size: clamp(24px, 3vw, 32px); }
.help-band p { color: var(--muted); margin-top: 10px; }
.help-band .contact { display: flex; flex-direction: column; gap: 14px; }
.help-band .phone { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--navy); white-space: nowrap; }
.help-band .phone:hover { color: var(--red); }
.help-band .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
    .help-band .inner { grid-template-columns: 1.2fr 1fr; padding: 48px 56px; gap: 48px; }
    .help-band .contact { align-items: flex-end; text-align: right; }
    .help-band .buttons { justify-content: flex-end; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero .inner { position: relative; padding-block: 36px 44px; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lede { color: rgba(255,255,255,.88); margin-top: 16px; }
.page-hero-media { height: 220px; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 900px) {
    .page-hero { min-height: 380px; display: flex; align-items: center; }
    .page-hero-media {
        position: absolute; inset: 0 0 0 auto; width: 46%; height: auto;
        clip-path: ellipse(100% 130% at 100% 50%);
    }
    .page-hero .inner { width: 100%; padding-block: 64px; }
    .page-hero .inner > * { max-width: 52%; }
}

/* ---------- Filters ---------- */
.filters { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 40; }
.filters .inner { display: flex; align-items: center; gap: 8px; padding-block: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.filters .label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 8px; }
.chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer;
    transition: all .15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Service detail ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.fact { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: 12px 16px; }
.fact span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.fact b { display: block; font-size: 16px; margin-top: 2px; color: #fff; }

.detail-layout { display: grid; gap: 40px; }
.detail-aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) {
    .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
    .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel--navy h4 { color: #fff; }
.panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.panel .price { font-size: 30px; font-weight: 800; line-height: 1.1; }
.panel .note { font-size: 13px; opacity: .8; margin: 6px 0 20px; }
.panel .stack { display: grid; gap: 10px; }
.panel .phone { font-size: 22px; font-weight: 800; color: var(--navy); }
.panel .phone:hover { color: var(--red); }
.panel .row { display: block; padding: 12px 0; border-top: 1px solid var(--grey-100); font-size: 15px; }
.panel .row small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Builder blocks */
.prose { font-size: 17px; line-height: 1.7; color: #3a3a3c; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 16px; }
.prose h3 { font-size: 20px; margin: 24px 0 10px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; }
.svc-block + .svc-block { margin-top: 44px; }
.svc-quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.svc-quick-facts > div { background: var(--grey-50); border-radius: var(--radius-sm); padding: 16px 18px; border-left: 4px solid var(--navy); }
.svc-quick-facts span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.svc-quick-facts b { font-size: 16px; color: var(--ink); }
.svc-feature-list ul { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 16px; }
.svc-feature-list li { position: relative; padding-left: 34px; }
.svc-feature-list li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.svc-callout { border-radius: var(--radius); padding: 30px; }
.svc-callout--dark { background: var(--navy); color: #fff; }
.svc-callout--dark h3 { color: #fff; }
.svc-callout--dark p { color: rgba(255,255,255,.85); }
.svc-callout--light { background: var(--navy-50); }
.svc-callout h3 { margin-bottom: 8px; }
.svc-process-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .svc-process-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-process-grid > div { background: var(--grey-50); border-radius: var(--radius-sm); padding: 22px; border-top: 4px solid var(--navy); }
.svc-process-grid .num { font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 6px; }
.svc-process-grid h4 { font-size: 18px; margin-bottom: 6px; }
.svc-process-grid p { font-size: 15px; color: var(--muted); margin: 0; }
.svc-faq details { border-bottom: 1px solid var(--line); }
.svc-faq details:first-of-type { border-top: 1px solid var(--line); }
.svc-faq summary {
    list-style: none; cursor: pointer; padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    font-weight: 700; font-size: 17px; color: var(--navy);
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--red); line-height: 1; transition: transform .2s; }
.svc-faq details[open] summary::after { transform: rotate(45deg); }
.svc-faq details > div { padding: 0 0 18px; color: var(--muted); font-size: 16px; }
.svc-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.svc-gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-100); }
.svc-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.svc-cta-band {
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
    background: var(--grey-50); border-radius: var(--radius); padding: 28px; border-left: 6px solid var(--red);
}
.svc-cta-band p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Contacts ---------- */
.contact-layout { display: grid; gap: 32px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--grey-50); border-radius: var(--radius); padding: 22px; }
.contact-card .ic { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-card .ic .icon { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-card b, .contact-card a { font-size: 17px; font-weight: 700; color: var(--navy); }
.contact-card a:hover { color: var(--red); }
.legal { margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.form-panel { background: #fff; border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow); border-top: 6px solid var(--red); }
.form-panel h2 { margin-bottom: 6px; }
.form-panel > p { color: var(--muted); margin-bottom: 22px; }
.embeds { display: grid; gap: 24px; }
.embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grey-50); border: 1px solid var(--line); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .contact-cards .span-2 { grid-column: span 2; }
    .form-panel { padding: 40px; }
    .embeds { grid-template-columns: 1.4fr 1fr; }
    .embeds.single { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; }
.form label > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
    width: 100%; padding: 13px 16px;
    font: 400 16px/1.4 var(--font); color: var(--ink);
    background: #fff; border: 1px solid #BDBDBA; border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,74,124,.15); }
.form textarea { resize: vertical; min-height: 110px; }
.form .row-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row-2 { grid-template-columns: 1fr 1fr; } }
.form .honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.form .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.form .consent p { margin: 0 0 6px; }
.form .consent a { text-decoration: underline; }
.form .err { background: #FDECEE; color: var(--red-dark); border: 1px solid #F5C2C9; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }
.form .field-err { color: var(--red-dark); font-size: 13px; }
.form-success { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; }
.form-success .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: #fff; }
.form-success h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 56px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.site-footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .about p { margin-top: 16px; max-width: 40ch; font-size: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #fff; opacity: .8; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.15);
    font-size: 13px; color: rgba(255,255,255,.65);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; } }

/* ---------- Breakpoint polish ---------- */
@media (min-width: 640px) {
    :root { --gutter: 28px; }
    .utility .u-email { display: inline-flex; }
}
@media (min-width: 1024px) {
    :root { --gutter: 32px; --header-h: 80px; }
    .section { padding: 88px 0; }
    .utility .u-hours { display: inline-flex; margin-right: auto; }
}
@media (max-width: 479.98px) {
    .btn { width: 100%; }
    .hero-ctas .btn, .help-band .buttons .btn { width: 100%; }
    .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Licence ---------- */
.license-strip { background: var(--navy-50); border-top: 1px solid #D2E3F0; border-bottom: 1px solid #D2E3F0; }
.license-strip .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 22px; }
.license-strip .seal { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.license-strip .seal .icon { width: 26px; height: 26px; }
.license-strip .text { flex: 1 1 320px; }
.license-strip b { display: block; color: var(--navy); font-size: 17px; }
.license-strip span { color: var(--muted); font-size: 14px; }

.license-layout { display: grid; gap: 28px; }
.license-info { display: grid; gap: 20px; align-content: start; }
.license-dl { margin: 0; display: grid; gap: 12px; }
.license-dl div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-100); }
.license-dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.license-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.license-dl dd { margin: 0; font-weight: 600; }
.status-ok { display: inline-flex; align-items: center; gap: 6px; color: #1E7B34; }
.status-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2DA44E; }
.license-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.license-actions .icon { width: 18px; height: 18px; }
.license-viewer { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.license-viewer object { display: block; width: 100%; height: 75vh; min-height: 420px; }
.license-fallback { height: 100%; min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 32px; text-align: center; color: var(--muted); }
.license-fallback .icon { width: 48px; height: 48px; color: var(--navy); }
@media (min-width: 1024px) {
    .license-layout { grid-template-columns: 400px 1fr; gap: 40px; }
    .license-viewer object { height: 900px; }
}

/* ---------- Narrow-desktop fixes (1024–1279) ---------- */
.nav a { white-space: nowrap; }
@media (min-width: 900px) {
    .hero h1 { font-size: clamp(32px, 3.2vw, 46px); }
}
.brand-name, .site-header .btn, .header-phone { white-space: nowrap; }
@media (min-width: 1024px) {
    .nav a { padding: 10px 9px; font-size: 14px; }
    .nav a::after { left: 9px; right: 9px; }
    .nav-drawer { gap: 14px !important; }
    .header-cta { gap: 14px; }
    .site-header .btn { padding: 10px 18px; }
    .header-phone { font-size: 15px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .header-phone { display: none; }
}
@media (max-width: 419.98px) {
    .brand-name { font-size: 16px; }
    .brand-sub { font-size: 10px; }
    .brand-mark { width: 36px; height: 36px; }
}
/* Mobile browsers rarely render inline PDFs — rely on the Open/Download buttons. */
@media (max-width: 767.98px) {
    .license-viewer { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .brand { gap: 10px; }
    .brand-name { font-size: 17px; }
    .brand-sub { font-size: 10px; }
    .nav-drawer { gap: 10px !important; }
}

/* ---------- Static map (contacts) ---------- */
.map-static { display: block; color: var(--navy); margin-top: 24px; aspect-ratio: 650 / 406; max-width: 650px; }
.map-static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-static .map-cta {
    position: absolute; left: 16px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--navy); font-weight: 700; font-size: 14px;
    padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
    transition: background .2s, color .2s;
}
.map-static .map-cta .icon { width: 18px; height: 18px; color: var(--red); }
.map-static:hover .map-cta { background: var(--navy); color: #fff; }
.map-static:hover .map-cta .icon { color: #fff; }

/* Contact cards: one per row so phone numbers and hours never wrap mid-value */
@media (min-width: 900px) {
    .contact-cards { grid-template-columns: 1fr; }
    .contact-cards .span-2 { grid-column: auto; }
}

/* ---------- FKKO catalogue (/fkko) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.h1--long { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
.fkko-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.fkko-search input { flex: 1 1 260px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 16px; }
.fkko-search input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.fkko-classes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fkko-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.fkko-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fkko-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--grey-50); padding: 12px 16px; white-space: nowrap; }
.fkko-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.fkko-table td.code { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.fkko-table td.price { white-space: nowrap; }
.fkko-table a { color: var(--ink); }
.fkko-table a:hover { color: var(--red); }
.fkko-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.fkko-note a { text-decoration: underline; }
.fkko-empty p { margin: 8px 0 16px; color: var(--muted); }
.fkko-block { font-size: 14px; color: var(--muted); }
.fkko-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.fkko-related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; color: var(--ink); height: 100%; }
.fkko-related a:hover { border-color: var(--navy); }
.fkko-related .code { display: block; font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.svc-fkko .fkko-table-wrap { margin-top: 16px; }
@media (max-width: 639px) {
    .fkko-table thead { display: none; }
    .fkko-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-top: 1px solid var(--line); gap: 2px 12px; }
    .fkko-table tr:first-child { border-top: 0; }
    .fkko-table td { padding: 0; border: 0; }
    .fkko-table td:nth-child(2) { grid-column: 1 / -1; }
    .fkko-table td:nth-child(3)::before { content: 'Класс '; color: var(--muted); }
}
.page-hero h1.h1--long { max-width: 34ch; }
.page-hero .hero-link { margin-top: 14px; }
.page-hero .hero-link .link-arrow { color: #fff; }
