:root {
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --surface-warm: #1c1c1c;
    --ink: #d8d8d8;
    --muted: #888888;
    --line: #2a2a2a;
    --accent: #d4a800;
    --accent-dark: #b89200;
    --accent-fg: #0a0a0a;
    --blue: #4a9abb;
    --green: #6aab74;
    --gold: #d4a800;
    --graphite: #111111;
    --shadow: 0 18px 48px rgba(0, 0, 0, .5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #000;
    border-bottom: 1px solid rgba(245, 247, 250, .06);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: white;
    background: var(--graphite);
    font-weight: 700;
    box-shadow: inset 0 -4px 0 var(--accent);
}

.brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 200px;
}

@media (max-width: 1920px) {
    .brand-logo {
        height: 36px;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .brand-logo {
        height: auto;
        width: 75%;
        max-width: none;
    }
}

.brand small,
.eyebrow,
.muted {
    display: block;
    color: var(--muted);
}

.main-nav ul {
    display: flex;
    gap: 18px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #f5f7fa;
    font-size: 15px;
    transition: color .2s ease;
}

.main-nav > ul > li > a,
.main-nav .sub-menu a,
.site-header .button {
    font-family: 'Science Gothic', sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.site-header .header-contacts .button {
    background: #d4a800;
    border-color: #d4a800;
    color: #0a0a0a;
    border-radius: 3px;
    font-family: 'Science Gothic', sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.site-header .header-contacts .button:hover {
    background: #b89200;
    border-color: #b89200;
}

.main-nav a:hover {
    color: #f5c518;
}

/* === Выпадающее меню категорий (desktop) === */
@media (min-width: 901px) {
    .main-nav .menu-item-has-children {
        position: relative;
    }

    /* Индикатор-стрелка у пунктов с детьми */
    .main-nav .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-left: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        opacity: .6;
        transition: opacity .2s ease;
    }
    .main-nav .menu-item-has-children:hover > a::after {
        opacity: 1;
    }
    /* Вложенные уровни — стрелка вправо */
    .main-nav .sub-menu .menu-item-has-children > a::after {
        transform: translateY(-1px) rotate(-45deg);
        float: right;
        margin-left: 12px;
    }

    .main-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 250px;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        background: rgba(14, 14, 14, .98);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 10px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
        z-index: 60;
    }

    .main-nav .menu-item-has-children:hover > .sub-menu,
    .main-nav .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .sub-menu a {
        display: block;
        padding: 9px 18px;
        font-size: 14px;
        white-space: nowrap;
        color: #d4d4d4;
    }
    .main-nav .sub-menu a:hover {
        background: rgba(255, 255, 255, .05);
        color: var(--accent);
    }

    /* Уровень 2+ — выезжает вбок */
    .main-nav .sub-menu .sub-menu {
        top: -9px;
        left: 100%;
        transform: translate(8px, 0);
    }
    .main-nav .sub-menu .menu-item-has-children:hover > .sub-menu,
    .main-nav .sub-menu .menu-item-has-children:focus-within > .sub-menu {
        transform: translate(0, 0);
    }
}

.header-contacts {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-contacts a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #f5f7fa;
}

.header-contact-link {
    color: var(--muted);
}

.header-phone {
    color: var(--ink);
    font-family: 'Science Gothic', sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
}

/* === Hamburger === */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 50;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-contacts-mobile {
    display: none;
}

.breadcrumbs {
    padding: 14px 0 0;
    font-size: 13px;
}

.breadcrumbs ol {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #a7afb8;
}

.breadcrumbs a {
    color: var(--blue);
    text-decoration: none;
}

.breadcrumbs span {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    color: var(--accent-fg);
    background: var(--accent);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 10px 28px rgba(255, 215, 0, .28);
    transform: translateY(-1px);
}

.button:disabled {
    cursor: progress;
    opacity: .65;
}

.button-secondary {
    color: var(--accent);
    background: transparent;
    border-color: var(--accent);
}

.button-secondary:hover {
    color: var(--accent-fg);
    background: var(--accent);
    border-color: var(--accent);
}

.button-small {
    min-height: 36px;
    padding: 0 14px;
}

.hero {
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.hero-visual {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    color: white;
    background-color: #0a0a0a;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .90) 0%, rgba(0, 0, 0, .60) 52%, rgba(0, 0, 0, .20) 100%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px);
    background-position: 0 0;
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 42%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: 760px;
    padding: 120px 0 60px;
}

h1, h2, h3 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: .03em;
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 84px);
    line-height: .92;
    letter-spacing: .02em;
}

h2 {
    margin: 0 0 14px;
    line-height: 1.08;
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.hero .lead {
    color: rgba(255, 255, 255, .78);
    font-size: 20px;
}

.hero .eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: min(960px, 100%);
    margin: 72px 0 0;
    background: rgba(255, 215, 0, .15);
}

.hero-metrics div {
    min-height: 108px;
    padding: 20px 22px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
}

.hero-metrics div:hover {
    border-bottom-color: var(--accent);
}

.hero-metrics dt {
    color: var(--accent);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 42px;
    line-height: 1;
    letter-spacing: .02em;
}

.hero-metrics dd {
    margin-top: 6px;
    color: rgba(255, 255, 255, .68);
    font-weight: 400;
    font-size: 13px;
}

.hero-panel,
.preview-card,
.product-card,
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
}

.hero-panel {
    padding: 28px;
}

.home-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: -42px;
    position: relative;
    z-index: 2;
    background: var(--line);
    border: 1px solid var(--line);
}

.home-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: -54px;
    position: relative;
    z-index: 3;
}

.home-proof article {
    min-height: 168px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.home-proof span,
.process-grid span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 16px;
    color: white;
    background: var(--accent);
    font-weight: 700;
}

.home-proof strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.home-proof p {
    margin: 10px 0 0;
    color: var(--muted);
}

.home-solutions {
    padding: 76px 0 36px;
}

.section-head-large h2 {
    max-width: 720px;
    font-size: clamp(30px, 4vw, 52px);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1.15fr .9fr .95fr;
    gap: 18px;
}

.solution-card {
    position: relative;
    min-height: 310px;
    display: grid;
    align-content: end;
    gap: 8px;
    overflow: hidden;
    padding: 26px;
    color: white;
    background: var(--graphite);
    text-decoration: none;
}

.solution-card::before,
.solution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.solution-card::before {
    opacity: .4;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 18px 18px;
}

.solution-card::after {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .42) 100%);
}

.solution-card > * {
    position: relative;
    z-index: 1;
}

.solution-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.solution-card strong {
    max-width: 360px;
    font-size: 28px;
    line-height: 1.08;
}

.solution-card small {
    max-width: 360px;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
}

.solution-card-industrial {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, .88) 0%, rgba(10, 10, 10, .54) 100%),
        url("../../../../uploads/2020/03/shop_property_file_361_193-3-1536x864.png") center / cover;
}

.solution-card-street {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, .88) 0%, rgba(10, 10, 10, .54) 100%),
        url("../../../../uploads/2020/03/information_items_property_90-1536x1024.jpg") center / cover;
}

.solution-card-commerce {
    background:
        linear-gradient(160deg, rgba(0, 0, 0, .88) 0%, rgba(10, 10, 10, .54) 100%),
        url("../../../../uploads/2020/03/shop_property_file_288_122-1536x998.png") center / cover;
}

.solution-card {
    outline: 1px solid transparent;
    transition: outline-color .25s ease;
}

.solution-card:hover {
    outline-color: var(--accent);
}

.home-strip a {
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 22px;
    background: var(--surface);
    text-decoration: none;
}

.home-strip span,
.section-head .eyebrow {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.home-strip strong {
    font-size: 18px;
    line-height: 1.25;
}

.hero-panel dl,
.spec-list {
    margin: 0;
}

.hero-panel div,
.spec-list div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child,
.spec-list div:last-child {
    border-bottom: 0;
}

dt {
    color: var(--muted);
    font-size: 14px;
}

dd {
    margin: 0;
    font-weight: 700;
}

.section-grid,
.product-hero,
.catalog-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 48px 0;
}

.home-intro {
    padding-top: 64px;
}

.home-intro article {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.home-intro article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 56px;
    height: 3px;
    background: var(--accent);
}

.home-band {
    padding: 80px 0;
    background: #111111;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-head-stacked {
    display: block;
}

.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.home-cta-panel,
.home-links-panel,
.document-note,
.contact-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.home-cta-panel {
    align-self: start;
    color: white;
    background:
        linear-gradient(135deg, rgba(37, 43, 48, .96), rgba(37, 43, 48, .88)),
        radial-gradient(circle at 24px 24px, rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: auto, 18px 18px;
    border: 0;
}

.home-cta-panel .button {
    margin-top: 12px;
}

.home-cta-panel .eyebrow,
.home-cta-panel p {
    color: rgba(255, 255, 255, .76);
}

.home-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 24px;
    padding: 48px 0 64px;
}

.service-grid-compact,
.project-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-process {
    padding: 72px 0;
    color: white;
    background: var(--graphite);
}

.home-process .eyebrow,
.home-process p {
    color: rgba(255, 255, 255, .72);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .18);
}

.process-grid article {
    min-height: 250px;
    padding: 28px;
    background: rgba(255, 255, 255, .06);
}

.process-grid span {
    background: var(--gold);
}

.process-grid h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
}

.process-grid p {
    margin: 0;
}

/* === Галерея проектов === */

.home-cases {
    padding: 80px 0 0;
}

.home-cases .section-head {
    margin-bottom: 32px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 300px 300px;
    gap: 3px;
    margin-top: 0;
}

.case-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.case-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.65);
    transition: filter .4s ease, transform .5s ease;
}

.case-card:hover .case-card-img {
    filter: brightness(.45);
    transform: scale(1.04);
}

.case-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, transparent 60%);
}

.case-card-title {
    display: block;
    color: white;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 26px;
    letter-spacing: .04em;
    line-height: 1.1;
}

.case-card-city {
    display: block;
    margin-top: 4px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

/* === CTA-полоса === */

.home-cta-band {
    padding: 100px 0;
    background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
    border-top: 1px solid var(--line);
    text-align: center;
}

.home-cta-band-inner {
    max-width: 760px;
    margin: 0 auto;
}

.home-cta-band h2 {
    font-size: clamp(40px, 7vw, 88px);
    line-height: .95;
    margin-bottom: 20px;
}

.home-cta-accent {
    color: var(--accent);
}

.hero-accent {
    color: var(--accent);
}

.home-cta-band p {
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 18px;
}

.home-cta-band .eyebrow {
    margin-bottom: 16px;
}

.home-cta-band-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-large {
    min-height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

/* === home-trust === */

.home-trust {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 44px 0;
}

.home-trust h2 {
    max-width: 560px;
    font-size: clamp(28px, 3.4vw, 44px);
}

.brand-cloud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.brand-cloud a {
    display: grid;
    min-height: 92px;
    place-items: center;
    padding: 18px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: .06em;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.brand-cloud a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 215, 0, .06);
}

.brand-cloud a:nth-child(2),
.brand-cloud a:nth-child(3),
.brand-cloud a:nth-child(4) {
    color: var(--ink);
}

.page-main {
    padding-top: 48px;
    padding-bottom: 64px;
}

.catalog-page {
    background:
        linear-gradient(180deg, #f4f1ec 0%, #f6f7f9 520px, #f6f7f9 100%);
}

.catalog-hero {
    color: white;
    background:
        linear-gradient(135deg, rgba(37, 43, 48, .98), rgba(37, 43, 48, .82)),
        radial-gradient(circle at 28px 28px, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: auto, 20px 20px;
}

.catalog-hero .wrap {
    padding-top: 56px;
    padding-bottom: 44px;
}

.catalog-hero h1 {
    font-size: clamp(44px, 6vw, 76px);
}

.catalog-hero .lead {
    color: rgba(255, 255, 255, .82);
}

.catalog-hero-panel {
    display: grid;
    gap: 20px;
    padding: 26px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
}

.catalog-hero-panel dl {
    margin: 0;
}

.catalog-hero-panel div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.catalog-hero-panel div:first-child {
    padding-top: 0;
}

.catalog-hero-panel div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.catalog-hero-panel dt {
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.catalog-hero-panel dd {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-weight: 400;
}

.catalog-active-filter {
    width: fit-content;
    max-width: 100%;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border-color: rgba(255, 255, 255, .6);
}

.archive-header {
    margin-bottom: 28px;
}

.archive-header p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 10px;
    color: var(--muted);
}

.page-hero {
    position: relative;
    margin-bottom: 34px;
    padding: 40px 44px 42px 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(212, 168, 0, .12), transparent 42%),
        var(--surface-warm);
    box-shadow: var(--shadow);
}

.page-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 4px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.page-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.15;
    color: var(--ink);
}

.page-hero .eyebrow {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-hero .lead,
.page-hero p:not(.eyebrow) {
    color: var(--ink);
    opacity: .82;
}

.page-hero-note {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.page-hero-note span {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-hero-note p {
    margin: 0;
    color: var(--ink);
    opacity: .82;
    font-size: 14.5px;
}

.page-hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    max-width: 760px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-hero-checks li {
    position: relative;
    padding-left: 16px;
    font-size: 13.5px;
    color: var(--ink);
    opacity: .82;
}

.page-hero-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.page-hero-catalog-category h1 {
    font-family: 'Montserrat', sans-serif;
}

.archive-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.brand-header {
    max-width: 760px;
}

.brand-meta {
    margin-top: 18px;
    max-width: 420px;
}

.brand-actions {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.catalog-layout {
    grid-template-columns: 304px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.filter-panel,
.preview-card,
.product-card {
    padding: 20px;
}

.catalog-filter-panel {
    position: sticky;
    top: 96px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 16px 38px rgba(31, 35, 39, .08);
}

.filter-panel-head {
    padding: 20px 20px 14px;
    color: white;
    background: var(--graphite);
}

.filter-panel-head h2 {
    margin: 4px 0 0;
}

.filter-panel-head .eyebrow {
    color: rgba(255, 255, 255, .62);
}

.filter-note {
    margin: 18px 20px 0;
    color: var(--muted);
    font-size: 14px;
}

.catalog-filters {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.catalog-filters label {
    display: grid;
    gap: 6px;
}

.catalog-filters span {
    color: var(--muted);
    font-size: 14px;
}

.catalog-filters select,
.catalog-filters input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: white;
    font: inherit;
}

.power-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filter-error {
    margin: -8px 0 0;
    color: #8a1f18;
    font-size: 14px;
}

.filter-error:empty {
    display: none;
}

.active-filter-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 760px;
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.catalog-results {
    min-width: 0;
}

.catalog-results-head {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.catalog-results-head h2 {
    margin: 0;
    font-size: 26px;
}

.catalog-results-head .eyebrow {
    margin: 0 0 4px;
}

.category-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 18px;
    margin-bottom: 28px;
}

.category-checklist,
.category-route {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(31, 35, 39, .06);
}

.category-checklist h2,
.category-route h2 {
    margin-bottom: 12px;
}

.category-route {
    color: white;
    background:
        linear-gradient(135deg, rgba(37, 43, 48, .96), rgba(23, 97, 123, .78)),
        radial-gradient(circle at 24px 24px, rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: auto, 18px 18px;
    border: 0;
}

.category-route .eyebrow {
    color: rgba(255, 255, 255, .7);
}

.category-route-actions {
    display: grid;
    gap: 10px;
}

.category-route .text-link {
    color: white;
}

.category-products {
    margin-top: 28px;
}

.active-filter-summary span {
    color: var(--muted);
}

.filter-actions,
.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.text-link {
    border: 0;
    padding: 0;
    color: var(--blue);
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-grid,
.media-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card-media,
.project-card-media,
.product-image {
    display: grid;
    min-height: 190px;
    place-items: center;
    background:
        radial-gradient(circle at 28px 28px, rgba(23, 97, 123, .1) 1px, transparent 1px),
        #f0f3f6;
    background-size: 18px 18px, auto;
    border: 1px solid var(--line);
}

.product-card-media,
.product-image {
    overflow: hidden;
    position: relative;
}

.badge-brand {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.3;
    background: #1a1d21;
    color: #fff;
}

.badge-category {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.3;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(0, 0, 0, .1);
    color: #3a3f47;
    backdrop-filter: blur(4px);
}

.badge-warranty {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.3;
    background: #1b7a3d;
    color: #fff;
}

.product-card-media,
.project-card-media {
    aspect-ratio: 4 / 3;
}

.product-card-media span:not(.badge-brand):not(.badge-category):not(.badge-warranty),
.project-card-media span {
    color: #98a2ad;
    font-size: 52px;
    font-weight: 700;
}

.product-image span {
    color: #98a2ad;
    font-size: 72px;
    font-weight: 700;
}

.product-card img,
.product-image img,
.project-card img,
.media-grid img {
    width: 100%;
    height: auto;
}

.product-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.product-card-media.has-hover > img {
    transition: opacity .35s ease;
}

.product-card-media img.hover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
}

.product-card-media.has-hover:hover > img:not(.hover-img) {
    opacity: 0;
}

.product-card-media.has-hover:hover img.hover-img {
    opacity: 1;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    padding: 28px;
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-grid a {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
}

.media-grid img {
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card a,
.project-card a {
    text-decoration: none;
}

.product-card,
.project-card,
.service-card {
    display: grid;
    gap: 14px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.product-card {
    grid-template-rows: auto auto 1fr auto;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
}

.product-card-enhanced {
    position: relative;
}

.product-card:hover {
    border-color: #b7c0ca;
    box-shadow: 0 10px 28px rgba(23, 25, 29, .08);
    transform: translateY(-2px);
}

.product-card-meta {
    display: grid;
    gap: 8px;
}

.product-card-count {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.product-card-body {
    display: grid;
    gap: 10px;
}

.product-card-body .spec-list {
    padding-top: 4px;
}

.product-card-note {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.product-card-note::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--green);
    flex-shrink: 0;
}

/* Иконки действий в строке с кол-вом исполнений: избранное / сравнение / поделиться */
.product-card-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.card-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.card-act svg {
    width: 16px;
    height: 16px;
}

.card-act:hover {
    color: var(--ink);
    border-color: #b7c0ca;
}

.card-act-fav.is-active {
    color: #e0294b;
    border-color: #e0294b;
}

.card-act-fav.is-active svg {
    fill: currentColor;
}

.card-act-compare.is-active {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}

.card-act-share.is-copied {
    color: var(--green);
    border-color: var(--green);
}

.product-card-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 2px 0 0;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
}

.product-card-specs div {
    min-width: 0;
    padding: 10px;
    background: #f8faf9;
}

.product-card-specs dt {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.product-card-specs dd {
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.project-card-body {
    display: grid;
    gap: 10px;
}

.product-card h2 {
    margin-bottom: 0;
    font-size: 18px;
}

.product-card-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.product-card-footer .compare-button {
    width: auto;
}

.compare-button.is-active {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.product-highlights div {
    padding: 14px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
}

.product-highlights span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.product-highlights strong {
    display: block;
    margin-top: 4px;
    line-height: 1.25;
}

.product-actions-primary {
    margin: 20px 0 24px;
}

.product-hero {
    align-items: stretch;
    padding-top: 36px;
}

.product-hero-content {
    display: grid;
    align-content: start;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.project-hero-content h1 {
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.15;
}


.product-page .product-image {
    min-height: 520px;
    background:
        radial-gradient(circle at 28px 28px, rgba(216, 58, 46, .12) 1px, transparent 1px),
        #eef2f5;
    background-size: 20px 20px, auto;
    box-shadow: var(--shadow);
}

/* Галерея товара: главное фото + стрип превью */
.product-image[data-gallery] {
    display: flex;
    flex-direction: column;
}

.product-gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 0;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 440px;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 24px 24px;
}

.product-gallery-thumb {
    width: 66px;
    height: 66px;
    padding: 5px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s ease;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumb:hover {
    border-color: var(--graphite);
}

.product-gallery-thumb.is-active {
    border-color: var(--accent);
}

/* Стрелки переключения на главном фото */
.product-gallery-main {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #3a3f47;
    background: #fff;
    border: 2px solid var(--c-brand, #F5C518);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
    transition: opacity .15s ease, box-shadow .15s ease;
}

.product-gallery-main:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.gallery-arrow-prev {
    left: 16px;
}

.gallery-arrow-next {
    right: 16px;
}

/* Полноэкранный просмотр (lightbox) */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, .92);
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
}

.product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 26px;
    width: 46px;
    height: 46px;
    font-size: 34px;
    line-height: 1;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .8;
}

.product-lightbox-close:hover {
    opacity: 1;
}

.product-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease;
}

.product-lightbox-arrow:hover {
    background: rgba(255, 255, 255, .18);
}

.product-lightbox-arrow.is-prev {
    left: 28px;
}

.product-lightbox-arrow.is-next {
    right: 28px;
}

@media (max-width: 600px) {
    .gallery-arrow {
        opacity: 1;
    }
    .product-lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
    .product-lightbox-arrow.is-prev {
        left: 10px;
    }
    .product-lightbox-arrow.is-next {
        right: 10px;
    }
}

.product-lead {
    max-width: 720px;
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.product-support-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: -4px 0 22px;
}

.product-support-strip span {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--graphite);
    background: var(--surface-warm);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
}

.product-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-next-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 260px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(31, 35, 39, .06);
}

.product-next-panel h3,
.product-next-panel p {
    margin: 0;
}

.product-next-panel .link-list {
    padding-left: 18px;
}

.product-next-panel-strong {
    color: white;
    background:
        linear-gradient(135deg, rgba(37, 43, 48, .96), rgba(23, 97, 123, .82)),
        radial-gradient(circle at 24px 24px, rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: auto, 18px 18px;
    border: 0;
}

.product-next-panel-strong .eyebrow,
.product-next-panel-strong p {
    color: rgba(255, 255, 255, .75);
}

.product-next-panel-strong .text-link {
    color: white;
}

.variant-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(130px, .8fr)) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(31, 35, 39, .06);
}

.variant-tools label {
    display: grid;
    gap: 6px;
}

.variant-tools label span,
.variant-count {
    color: var(--muted);
    font-size: 13px;
}

.variant-tools input,
.variant-tools select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: white;
    font: inherit;
}

.variant-tools .text-link {
    min-height: 40px;
    align-self: end;
}

.variant-count {
    min-width: 140px;
    margin: 0;
    align-self: center;
    text-align: right;
}

.variant-table-wrap {
    max-height: 680px;
    overflow-x: auto;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
}

.variant-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: 14px;
}

.variant-table th,
.variant-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.variant-table th {
    position: sticky;
    top: 0;
    background: #f0f3f6;
    z-index: 1;
}

.variant-table td:nth-child(2) {
    min-width: 300px;
}

.variant-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.variant-detail-trigger {
    text-decoration-style: dotted;
}

.variant-dialog {
    /* НЕ ставить position:relative/absolute здесь — это перебивает нативный
       `dialog:modal { position: fixed; ... }` из UA-стиля, из-за чего браузер
       считает "естественной" позицию диалога там, где он лежит в потоке
       документа (в конце длинной таблицы), и скроллит страницу туда при
       showModal(). Для .variant-dialog__close достаточно того, что position:
       fixed у dialog:modal уже создаёт containing block для потомков. */
    width: min(1160px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 0;
    padding: 0;
    border-radius: var(--c-radius-lg, 20px);
    box-shadow: var(--c-shadow-lift, 0 24px 60px rgba(23, 25, 29, .28));
}

/*
 * ВАЖНО: display только в [open] (когда showModal() выставил атрибут).
 * Без этого условия правило перебивает нативный UA-стиль `dialog:not([open])
 * { display: none }`, и закрытый диалог остаётся в потоке документа —
 * видимым блоком под таблицей вариантов с данными последнего клика,
 * а не попапом. Он же вызывал скачок скролла при open/close (лишний reflow
 * от диалога, постоянно занимающего место в потоке).
 */
.variant-dialog[open] {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
}

.variant-dialog::backdrop {
    background: rgba(20, 22, 26, .56);
    backdrop-filter: blur(2px);
}

.variant-dialog__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(23, 25, 29, .18);
    transition: background .15s, transform .15s;
}

.variant-dialog__close:hover {
    background: #fff;
    transform: scale(1.06);
}

.variant-dialog__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: var(--c-bg-soft, #f4f5f7);
}

.variant-dialog__image {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

.variant-dialog__info {
    padding: 36px 40px 36px 32px;
    min-width: 0;
}

.variant-dialog__kicker {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.variant-dialog__info h3 {
    font-family: var(--c-display, 'Montserrat', 'Inter', sans-serif);
    margin: 0 0 20px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.variant-dialog__specs {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: 4px 16px;
    margin: 0;
    border-top: 1px solid var(--line);
}

.variant-dialog__specs dt,
.variant-dialog__specs dd {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    line-height: 1.4;
}

.variant-dialog__specs dt {
    margin: 0;
    color: var(--muted);
}

.variant-dialog__specs dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.variant-dialog__specs dt:last-of-type,
.variant-dialog__specs dd:last-of-type {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .variant-dialog[open] {
        grid-template-columns: 1fr;
    }
    .variant-dialog__media {
        padding: 28px;
    }
    .variant-dialog__image {
        max-width: 220px;
    }
    .variant-dialog__info {
        padding: 24px 28px 32px;
    }
    .variant-dialog__specs dd {
        text-align: left;
    }
}

.project-card h2,
.service-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.service-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.service-card h2 a {
    color: var(--accent);
    text-decoration: none;
}

.service-card:hover h2 a {
    color: #fff;
}

.service-card-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.service-card-actions .text-link {
    color: var(--accent);
}

.service-card-actions button.text-link {
    padding: 0;
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.service-card-actions button.text-link:hover {
    color: var(--ink);
}

.term-badges {
    display: none;
}

.term-badges span {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 7px;
    overflow: hidden;
    color: var(--muted);
    background: #f0f3f6;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card,
.content-list .preview-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.project-card {
    position: relative;
    overflow: hidden;
}

.article-card {
    padding: 24px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.project-card {
    padding: 0;
}

.project-card-body,
.project-card > .text-link {
    padding-right: 20px;
    padding-left: 20px;
}

.project-card > .text-link {
    padding-bottom: 20px;
}

.project-card-media {
    position: relative;
    border-width: 0 0 1px;
}

.project-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 50%, rgba(23, 25, 29, .18));
}

.project-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.project-card:hover,
.project-card:focus-within {
    border-color: #b7c0ca;
    box-shadow: 0 12px 30px rgba(23, 25, 29, .08);
    transform: translateY(-2px);
}

.service-card {
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.service-card:hover,
.service-card:focus-within {
    border-color: rgba(212, 168, 0, .5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    transform: translateY(-3px);
}

.content-list .preview-card {
    align-content: start;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.content-list .preview-card:hover,
.content-list .preview-card:focus-within {
    border-color: #b7c0ca;
    box-shadow: 0 10px 28px rgba(23, 25, 29, .08);
    transform: translateY(-2px);
}

.service-card a,
.content-list .preview-card a {
    text-decoration: none;
}

.article-card {
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.article-card:hover,
.article-card:focus-within {
    border-color: rgba(212, 168, 0, .5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    transform: translateY(-3px);
}

.article-card h2 {
    margin: 2px 0 0;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -.01em;
}

.article-card h2 a {
    color: var(--accent);
    text-decoration: none;
}

.article-card:hover h2 a {
    color: #fff;
}

.article-card p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-card-foot {
    margin-top: auto;
    padding-top: 6px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.article-card-meta .article-dot {
    flex: none;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #4a4a4a;
}

.article-tag {
    padding: 3px 9px;
    border: 1px solid rgba(212, 168, 0, .34);
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.article-tag.is-archive {
    color: var(--muted);
    border-color: var(--line);
}

.article-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
}

.article-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    transition: transform .2s ease;
}

.article-arrow:hover {
    color: var(--accent);
}

.article-arrow:hover svg {
    transform: translateX(4px);
}

.article-card.is-featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 34px;
    padding: 30px 34px;
    background:
        radial-gradient(90% 160% at 0% 0%, rgba(212, 168, 0, .08), transparent 46%),
        var(--surface-warm);
}

.article-card-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 14px;
}

.article-card.is-featured h2 {
    font-size: clamp(21px, 2.6vw, 28px);
    line-height: 1.16;
    letter-spacing: -.02em;
}

.article-card.is-featured p {
    max-width: 66ch;
    font-size: 15.5px;
    -webkit-line-clamp: 2;
}

.article-card-stat {
    display: flex;
    flex: 0 0 190px;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    gap: 6px;
    padding-left: 30px;
    border-left: 1px solid var(--line);
}

.article-card-stat .k {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.article-card-stat .v {
    color: var(--ink);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.article-card-stat .v small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.article-pagination {
    padding: 38px 0 8px;
}

.article-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.article-pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.article-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: border-color .16s ease;
}

.article-pagination a.page-numbers:hover {
    border-color: #3d3d3d;
}

.article-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-fg);
    font-weight: 700;
}

.article-pagination .page-numbers.dots {
    border-color: transparent;
    color: var(--muted);
}

.text-link {
    color: var(--blue);
    font-weight: 700;
}

.content-list {
    display: grid;
    gap: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.contacts-map {
    margin: 0 0 32px;
    border: 1px solid var(--line);
}

.contacts-map iframe {
    display: block;
}

.contact-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 170px;
    padding: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(31, 35, 39, .06);
}

.contact-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 112px;
    height: 112px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    transform: rotate(10deg);
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card span {
    color: var(--muted);
    font-size: 14px;
}

.contact-card strong {
    font-size: 18px;
    line-height: 1.25;
}

.document-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card.preview-card {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: auto;
    padding: 14px;
    overflow: hidden;
    border-top: 4px solid var(--blue);
}

.document-card-trigger {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: zoom-in;
}

.document-card-trigger img {
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 0;
    object-fit: cover;
    border: 1px solid var(--line);
}

.document-card .eyebrow,
.document-card h2,
.document-card p {
    margin-bottom: 0;
}

.document-card h2 {
    font-size: 16px;
    line-height: 1.3;
}

.document-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.document-details {
    margin: 18px 0;
}

.about-layout,
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

.about-main,
.about-facts {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.about-main blockquote,
.legal-content blockquote {
    margin: 24px 0 0;
    padding: 20px;
    border-left: 4px solid var(--accent);
    background: #f0f3f6;
}

.about-main cite {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-style: normal;
}

.about-facts {
    display: grid;
    gap: 18px;
}

.about-facts div {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.about-facts div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-facts span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.about-facts strong {
    display: block;
    margin-top: 4px;
    line-height: 1.25;
}

.about-services {
    padding-top: 0;
}

.contact-grid-primary {
    margin-bottom: 24px;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
}

.page-legacy .row,
.page-legacy [class*="col-"] {
    display: contents;
}

.page-legacy .d-about__image,
.page-legacy .d-about__bg,
.page-legacy .d-contacts__info img,
.page-legacy #map {
    display: none;
}

.page-legacy .d-contacts,
.page-legacy .d-contacts__content,
.legal-content {
    max-width: 900px;
}

.page-legacy .d-contacts__phone {
    display: inline-flex;
    margin: 10px 0 18px;
    color: var(--blue);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.page-legacy .d-contacts__info {
    margin: 16px 0;
}

.page-legacy .d-contacts__subtitle,
.page-legacy .d-what__subtitle {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-content h1:first-child,
.legal-content .col-md-12:first-child h1 {
    margin-top: 0;
}

.legal-content blockquote:first-child {
    margin-top: 0;
}

.legal-content ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
}

.legal-content p {
    margin-top: 0;
}

.article-entry {
    margin-bottom: 40px;
}

.article-cta {
    display: grid;
    gap: 14px;
    max-width: 860px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.article-cta h2 {
    margin-bottom: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}

.article-header {
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.article-header .eyebrow {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.article-header h1 {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(30px, 4.8vw, 48px);
    line-height: 1.06;
}

.archive-header h1 {
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.15;
}

.article-rule {
    width: 60px;
    height: 3px;
    margin: 22px 0 20px;
    background: var(--accent);
    border-radius: 2px;
}

.article-header .lead {
    max-width: 64ch;
    color: var(--ink);
    opacity: .86;
    font-size: 19px;
    line-height: 1.55;
}

.article-source-note {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--muted);
}

.article-aside {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 18px;
}

.article-toc {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.article-toc .h {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.article-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.article-toc li {
    counter-increment: toc;
}

.article-toc a {
    display: flex;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    opacity: .82;
    font-size: 13.5px;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .16s ease, opacity .16s ease;
}

.article-toc a::before {
    content: counter(toc, decimal-leading-zero);
    flex: none;
    padding-top: 1px;
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
}

.article-toc a:hover,
.article-toc a.is-active {
    background: var(--surface-warm);
    opacity: 1;
}

.article-side-card {
    padding: 22px;
    background: var(--surface-warm);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.article-side-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.22;
}

.article-side-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.article-side-card .button {
    width: 100%;
    justify-content: center;
}

.article-side-card .button + .button {
    margin-top: 9px;
}

.article-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.article-actions .button {
    min-width: 150px;
}

.article-entry h2,
.article-entry h3 {
    position: relative;
    margin: 38px 0 16px;
    padding-left: 16px;
    color: var(--accent);
    line-height: 1.2;
}

.article-entry h2 {
    font-size: 24px;
}

.article-entry h3 {
    font-size: 20px;
}

.article-entry h2::before,
.article-entry h3::before {
    content: "";
    position: absolute;
    top: .28em;
    bottom: .28em;
    left: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.article-entry p,
.article-entry li {
    font-size: 16.5px;
    line-height: 1.72;
}

.article-entry ul,
.article-entry ol {
    display: grid;
    gap: 12px;
    padding-left: 24px;
}

.article-entry blockquote {
    margin: 24px 0;
    padding: 14px 20px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.article-also {
    margin-top: 8px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.article-also h2 {
    margin: 0 0 22px;
    font-size: 24px;
    letter-spacing: -.01em;
}

.article-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin: 8px 0 40px;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(120% 200% at 100% 0%, rgba(212, 168, 0, .14), transparent 45%),
        var(--surface);
}

.article-band h2 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -.01em;
}

.article-band p {
    max-width: 52ch;
    margin: 0;
    color: var(--muted);
}

.article-band .article-actions {
    margin-left: auto;
}

.project-section,
.product-section {
    margin-top: 40px;
}

.link-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.empty-state {
    max-width: 640px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.compact div {
    padding: 8px 0;
}

.entry-content {
    max-width: 860px;
}

.service-entry {
    max-width: none;
}

.service-entry h2,
.service-entry h3 {
    position: relative;
    margin: 38px 0 16px;
    padding-left: 16px;
    color: var(--accent);
    line-height: 1.2;
}

.service-entry h2 {
    font-size: 24px;
}

.service-entry h3 {
    font-size: 20px;
}

.service-entry h2::before,
.service-entry h3::before {
    content: "";
    position: absolute;
    top: .28em;
    bottom: .28em;
    left: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.service-entry p,
.service-entry li {
    font-size: 16.5px;
    line-height: 1.72;
}

.service-entry ul,
.service-entry ol {
    display: grid;
    gap: 12px;
    padding-left: 24px;
}

.service-entry blockquote {
    margin: 24px 0;
    padding: 14px 20px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.service-hero {
    margin-bottom: 28px;
}

.entry-content-panel {
    max-width: 860px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.project-hero-content {
    min-width: 0;
}

.site-footer {
    padding: 56px 0 0;
    color: rgba(255, 255, 255, .55);
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 300;
    font-size: 14px;
    background: #050505;
    border-top: 1px solid var(--line);
}

.site-footer strong {
    display: block;
    margin-bottom: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    width: min(176px, 100%);
    margin-bottom: 16px;
}

.footer-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-col > p {
    margin: 0 0 20px;
    line-height: 1.65;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    transition: background .15s, border-color .15s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-contacts {
    text-align: right;
}

.footer-contacts address {
    font-style: normal;
    display: grid;
    gap: 10px;
}

.footer-contacts address a,
.footer-contacts address span {
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-grid > :nth-child(2),
.footer-grid > :nth-child(3) {
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, .35);
}

.footer-bottom a:hover {
    color: var(--accent);
}

.lead-dialog {
    /* НЕ ставить position:relative/absolute здесь — перебивает нативный
       dialog:modal{position:fixed} из UA-стиля (см. тот же приём в .variant-dialog).
       Тёмная (не чёрная) карточка задаётся своими токенами — намеренно НЕ через
       var(--surface)/var(--ink) и т.п.: на страницах каталога/товара эти токены
       переопределены в светлую тему (redesign.css), а модалка должна оставаться
       тёмной на любой странице. */
    --lead-bg: #1c1c1c;
    --lead-ink: #ececec;
    --lead-muted: #9a9a9a;
    --lead-line: #333333;
    --lead-field-bg: #262626;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 0;
    border-radius: var(--c-radius-lg, 20px);
    background: var(--lead-bg);
    color: var(--lead-ink);
    box-shadow: var(--c-shadow-lift, 0 24px 60px rgba(0, 0, 0, .5));
}

.lead-dialog::backdrop {
    background: rgba(10, 10, 10, .66);
    backdrop-filter: blur(2px);
}

.lead-form {
    display: grid;
    gap: 14px;
    padding: 40px 32px 32px;
}

.lead-form__head {
    display: grid;
    gap: 8px;
    padding-right: 40px;
    margin-bottom: 4px;
}

.lead-form__kicker {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.lead-form h2 {
    margin: 0;
}

.lead-form__head > .muted {
    margin: 0;
    color: var(--lead-muted);
}

.lead-form label:not(.check-row):not(.form-trap):not(.home-cta-consent):not(.home-cta-file-btn) {
    display: grid;
    gap: 6px;
}

.lead-form label > span {
    color: var(--lead-muted);
    font-size: 14px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--lead-line);
    background: var(--lead-field-bg);
    color: var(--lead-ink);
    font: inherit;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: var(--lead-muted);
}

.lead-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible,
.lead-form button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/*
 * Нативная валидация: :user-invalid срабатывает только после blur или submit,
 * :user-valid — когда поле корректно заполнено. Никаких ошибок на каждое нажатие.
 */
.lead-form input:user-invalid,
.lead-form select:user-invalid,
.lead-form textarea:user-invalid {
    border-color: #ff6b5e;
    background-color: rgba(255, 107, 94, .12);
}

.lead-form input:user-valid:not(:placeholder-shown),
.lead-form textarea:user-valid:not(:placeholder-shown) {
    border-color: #4cc98a;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5 L6.5 12 L13 5' stroke='%234cc98a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

/* Кастомное сообщение об ошибке под полем (показывается через :has) */
.lead-field-error {
    display: none;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #ff6b5e;
}

.lead-form label:has(input:user-invalid) .lead-field-error,
.lead-form label:has(select:user-invalid) .lead-field-error,
.lead-form label:has(textarea:user-invalid) .lead-field-error {
    display: block;
}

.form-status {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.form-status:empty {
    display: none;
}

.form-status.is-pending {
    color: #5a4b12;
    background: #fff6d8;
    border-color: #f0d987;
}

.form-status.is-success {
    color: #1f5c36;
    background: #e6f5ea;
    border-color: #b8dfc3;
}

.form-status.is-error {
    color: #8a1f18;
    background: #fde8e6;
    border-color: #f2b8b3;
}

.check-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--lead-muted, var(--muted));
    font-size: 14px;
}

.check-row input {
    width: auto;
    margin-top: 4px;
}

.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--graphite);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(23, 25, 29, .18);
    transition: background .15s, transform .15s;
}

.dialog-close:hover {
    background: #fff;
    transform: scale(1.06);
}

.fixed-corner-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: calc(100% - 48px);
}

.scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    padding: 0;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-fg);
    cursor: pointer;
    box-shadow: 0 12px 36px rgba(23, 25, 29, .18);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background .2s ease, border-color .2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: opacity .2s ease;
        transform: none;
    }
}

.compare-dock {
    width: min(360px, calc(100% - 48px));
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(23, 25, 29, .18);
}

.compare-dock > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.compare-dock ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 12px 0;
    list-style: none;
}

.compare-dock a {
    color: var(--blue);
    text-decoration: none;
}

.compare-table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
}

.compare-scroll-hint {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    background: var(--surface);
    color: var(--ink);
}

.compare-table th a {
    color: var(--ink);
}

.compare-empty {
    max-width: 720px;
}

/* ЦТ кружками (общая база — compare и пр. вне каталога/карточки) */
.cct-dots {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.cct-dots .cct-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: default;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset;
}
.cct-dots .cct-dot.is-white {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset;
}

/* Шкала-градиент ЦТ (карточка товара, перенесено из прототипа catalog5) */
.product-card-cct {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}
.product-card-cct-label {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.product-card-cct .cctbar {
    margin-bottom: 16px;
}
.cctbar {
    position: relative;
    display: block;
    height: 8px;
    margin: 0 2px 16px;
}
.cctbar-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFAD33, #FFD080, #FFEDCC, #EEF6FF, #B8DAFF);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.cctbar-tick {
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(20, 23, 28, .35);
}
.cctbar-tick-val {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 9.5px;
    color: var(--ink);
    white-space: nowrap;
}
.cctbar-colors {
    display: inline-flex;
    gap: 5px;
}
.cctbar-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

@media (min-width: 1440px) {
    .wrap {
        width: min(1360px, calc(100% - 80px));
    }

    .header-grid {
        min-height: 84px;
    }

    h1 {
        font-size: clamp(56px, 5.6vw, 95px);
    }

    .hero-visual,
    .hero-content {
        min-height: 860px;
    }

    .hero-content {
        padding: 140px 0 80px;
    }

    .hero-metrics {
        width: min(1100px, 100%);
    }

    .hero-metrics div {
        min-height: 120px;
        padding: 26px 28px;
    }

    .hero-metrics dt {
        font-size: 52px;
    }

    .solution-grid {
        gap: 24px;
    }

    .solution-card {
        min-height: 380px;
    }

    .solution-card strong {
        font-size: 34px;
    }

    .cases-grid {
        grid-template-rows: 380px 380px;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .catalog-results .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-cta-band {
        padding: 130px 0;
    }

    .home-cta-band h2 {
        font-size: clamp(60px, 6vw, 100px);
    }

    .process-grid article {
        min-height: 300px;
        padding: 36px;
    }

    .section-grid,
    .product-hero,
    .catalog-layout {
        gap: 32px;
    }

    .catalog-layout {
        grid-template-columns: 340px minmax(0, 1fr);
    }
}

@media (min-width: 2200px) {
    .wrap {
        width: min(1600px, calc(100% - 120px));
    }
}

@media (max-width: 900px) {
    /* Шапка: лого + hamburger, меню скрыто */
    .header-grid {
        grid-template-columns: 1fr auto;
        gap: 16px;
        min-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .header-contacts {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        height: calc(100vh - 64px);
        z-index: 40;
        overflow-y: auto;
        background: #0e0e0e;
        border-top: 1px solid var(--line);
        padding: 24px 20px 40px;
    }

    .nav-open .main-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        font-size: 18px;
    }

    .main-nav li {
        border-bottom: 1px solid var(--line);
    }

    .main-nav a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
    }

    /* Аккордеон: пункты с детьми — flex-строка, подменю на всю ширину */
    .main-nav .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .main-nav .menu-item-has-children > a {
        flex: 1;
        display: block;
    }

    /* Кнопка раскрытия подменю */
    .nav-sub-toggle {
        background: none;
        border: none;
        padding: 16px 4px;
        cursor: pointer;
        color: var(--muted-soft);
        display: flex;
        align-items: center;
        transition: color .2s ease;
    }
    .nav-sub-toggle svg {
        transition: transform .25s ease;
    }
    .menu-item-has-children.is-open > .nav-sub-toggle {
        color: var(--accent);
    }
    .menu-item-has-children.is-open > .nav-sub-toggle svg {
        transform: rotate(180deg);
    }

    /* Категории на мобильном — скрыты по умолчанию, раскрываются аккордеоном */
    .main-nav .sub-menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        padding-left: 16px;
        border-left: 1px solid var(--line);
        margin-left: 4px;
    }
    .main-nav .menu-item-has-children.is-open > .sub-menu {
        display: flex;
    }
    .main-nav .sub-menu a {
        font-size: 15px;
        padding: 11px 0;
        color: var(--muted);
    }
    .main-nav .sub-menu .sub-menu a {
        font-size: 14px;
    }
    .main-nav .sub-menu li:last-child {
        border-bottom: 0;
    }

    .nav-contacts-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid var(--line);
    }

    .nav-contacts-mobile a {
        color: var(--ink);
        font-size: 20px;
        font-weight: 600;
        text-decoration: none;
    }

    .nav-contacts-mobile .button {
        width: 100%;
    }

    /* Сетки */
    .page-hero,
    .category-intro,
    .section-grid,
    .product-hero,
    .catalog-layout,
    .article-layout,
    .home-strip,
    .home-proof,
    .home-bottom-grid,
    .home-trust,
    .about-layout,
    .contacts-layout,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 80px 0 40px;
    }

    .hero-metrics,
    .solution-grid,
    .process-grid,
    .brand-cloud {
        grid-template-columns: 1fr;
    }

    /* Галерея проектов: 1 колонка на планшете */
    .cases-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 240px);
    }

    .home-cases {
        padding: 48px 0 0;
    }

    /* CTA-полоса */
    .home-cta-band {
        padding: 60px 0;
    }

    .home-cta-band-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-cta-band-actions .button {
        width: 100%;
        justify-content: center;
    }

    .home-proof {
        margin-top: -34px;
    }

    .product-grid,
    .project-grid,
    .media-grid,
    .article-grid,
    .service-grid,
    .product-next-grid,
    .service-grid-compact,
    .project-grid-compact,
    .variant-tools {
        grid-template-columns: 1fr;
    }

    .document-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-strip {
        margin-top: 0;
    }

    .article-aside {
        position: static;
    }

    .article-card.is-featured {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .article-card-stat {
        flex-basis: auto;
        flex-direction: row;
        gap: 24px;
        padding-top: 20px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .catalog-filter-panel {
        position: static;
    }

    .catalog-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        min-height: auto;
    }

    .variant-count {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 24px, 1180px);
    }

    .breadcrumbs span {
        max-width: 240px;
    }

    h1 {
        font-size: 32px;
        line-height: 1.05;
    }

    .hero-visual,
    .hero-content {
        min-height: 520px;
    }

    .page-hero {
        padding: 24px;
    }

    .page-hero::after {
        right: 18px;
        bottom: 18px;
        width: 128px;
        height: 84px;
    }

    .page-hero h1 {
        font-size: 42px;
        line-height: 1.05;
    }

    .page-hero-panel {
        min-height: auto;
        padding: 18px;
    }

    .lead {
        font-size: 18px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .hero-metrics div {
        min-height: auto;
    }

    .home-proof {
        margin-top: 0;
    }

    .section-grid,
    .product-hero,
    .catalog-layout,
    .home-bottom-grid {
        padding: 32px 0;
    }

    .home-band {
        padding: 32px 0;
    }

    .home-solutions,
    .home-process,
    .home-trust {
        padding: 36px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-main {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .product-grid,
    .project-grid,
    .media-grid,
    .article-grid,
    .service-grid,
    .product-next-grid,
    .service-grid-compact,
    .project-grid-compact,
    .solution-grid,
    .process-grid,
    .brand-cloud,
    .product-highlights,
    .power-range,
    .document-list {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .preview-card,
    .product-card,
    .project-card,
    .article-card,
    .service-card,
    .article-aside,
    .home-proof article,
    .home-cta-panel,
    .home-links-panel,
    .about-main,
    .about-facts,
    .document-note,
    .empty-state {
        padding: 16px;
    }

    .project-card {
        padding: 0;
    }

    .project-card-body,
    .project-card > .text-link {
        padding-right: 16px;
        padding-left: 16px;
    }

    .project-card > .text-link {
        padding-bottom: 16px;
    }

    .entry-content-panel {
        padding: 18px;
    }

    .catalog-filter-panel {
        padding: 0;
    }

    .filter-panel-head,
    .catalog-filters {
        padding: 16px;
    }

    .filter-note {
        margin-right: 16px;
        margin-left: 16px;
    }

    .product-hero-content {
        padding: 18px;
    }

    .header-contacts {
        align-items: stretch;
        flex-direction: column;
    }

    .header-contacts .button {
        width: 100%;
    }

    .catalog-filters select,
    .catalog-filters input {
        min-height: 46px;
    }

    .product-card-media,
    .project-card-media,
    .product-image {
        min-height: 160px;
    }

    .product-page .product-image {
        min-height: 320px;
    }

    .product-image img {
        max-height: 360px;
        padding: 18px;
    }

    .solution-card {
        min-height: 220px;
        padding: 20px;
    }

    /* Метрики hero */
    .hero-metrics {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .hero-metrics div {
        min-height: auto;
        padding: 14px 16px;
    }

    .hero-metrics dt {
        font-size: 32px;
    }

    /* Галерея проектов */
    .cases-grid {
        grid-template-rows: repeat(4, 200px);
    }

    .home-cases {
        padding: 36px 0 0;
    }

    /* CTA-полоса */
    .home-cta-band {
        padding: 48px 0;
        text-align: left;
    }

    .home-cta-band h2 {
        font-size: 36px;
    }

    .home-cta-band p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .home-cta-band-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-cta-band-actions .button {
        width: 100%;
        justify-content: center;
    }

    .home-cta-band-inner {
        text-align: left;
    }

    .product-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-actions .button {
        width: 100%;
    }

    .product-card-footer {
        grid-template-columns: 1fr;
    }

    .product-card-footer .compare-button {
        width: 100%;
    }

    .variant-tools {
        grid-template-columns: 1fr;
    }

    .variant-tools .text-link,
    .variant-more .button {
        width: 100%;
    }

    .article-actions,
    .article-actions .button {
        width: 100%;
    }
}
