/* ЕЗПИ — стили сайта. Светлая тема, фирменный цвет логотипа #F53357 как редкий акцент. */

:root {
    --brand: oklch(0.63 0.215 15);
    --brand-ink: oklch(0.53 0.19 15);
    --brand-soft: oklch(0.955 0.022 15);
    --brand-line: oklch(0.86 0.07 15);

    --ink: oklch(0.24 0.014 15);
    --ink-2: oklch(0.41 0.014 15);
    --ink-3: oklch(0.53 0.012 15);
    --line: oklch(0.89 0.007 15);
    --line-2: oklch(0.93 0.005 15);
    --bg: oklch(0.985 0.003 15);
    --surface: oklch(0.958 0.006 15);
    --surface-2: oklch(0.935 0.008 15);
    --graphite: oklch(0.225 0.012 15);
    --graphite-2: oklch(0.3 0.012 15);
    --on-dark: oklch(0.95 0.006 15);
    --on-dark-2: oklch(0.76 0.01 15);

    --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
    --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --s-2xs: 4px;
    --s-xs: 8px;
    --s-sm: 12px;
    --s-md: 16px;
    --s-lg: 24px;
    --s-xl: 32px;
    --s-2xl: 48px;
    --s-3xl: 64px;
    --s-4xl: 96px;
    --s-section: clamp(56px, 4rem + 4vw, 128px);

    --r-sm: 4px;
    --r-md: 8px;
    --top-h: 72px;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.55 var(--f-body);
    font-feature-settings: 'kern';
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.25vw, 2.1rem); }
h3 { font-size: 1rem; }
p { margin: 0; }

:focus-visible {
    outline: 3px solid color-mix(in oklch, var(--brand) 60%, transparent);
    outline-offset: 2px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: var(--s-md); top: -60px; z-index: 100;
    background: var(--ink); color: var(--bg); padding: var(--s-xs) var(--s-md); border-radius: var(--r-sm);
}
.skip:focus { top: var(--s-xs); }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-3);
    margin-bottom: var(--s-md);
}

.tnum, .item__price, .ptable td, .req__list dd, .scale__price, .top__phone, .person__phone {
    font-variant-numeric: tabular-nums;
}

/* --- Кнопки и ссылки ---------------------------------------------------- */

.btn {
    --bh: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs);
    min-height: var(--bh);
    padding: 0 var(--s-lg);
    border: 1.5px solid var(--brand);
    border-radius: var(--r-sm);
    background: var(--brand);
    color: oklch(0.99 0.004 15);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }
.btn--small { --bh: 40px; padding: 0 var(--s-md); font-size: 0.9375rem; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow {
    display: inline-flex; align-items: center; gap: var(--s-xs);
    font-weight: 600;
    color: var(--brand-ink);
    text-decoration: none;
}
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Шапка -------------------------------------------------------------- */

.top {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--line); }

.top__in {
    display: flex; align-items: center; gap: var(--s-lg);
    min-height: var(--top-h);
}

.brand { display: flex; align-items: center; gap: var(--s-sm); text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 48px; height: auto; fill: var(--brand); flex-shrink: 0; }
.brand__text { display: flex; align-items: center; gap: var(--s-sm); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.02em; }
.brand__full {
    font-size: 0.75rem; line-height: 1.25; color: var(--ink-2);
    padding-left: var(--s-sm); border-left: 1px solid var(--line);
}

.menu { margin-left: auto; }
.menu ul { display: flex; gap: var(--s-2xs); list-style: none; margin: 0; padding: 0; }
.menu a {
    display: block; padding: var(--s-xs) var(--s-sm);
    text-decoration: none; font-weight: 500; color: var(--ink-2); white-space: nowrap;
    border-radius: var(--r-sm);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.menu a:hover { color: var(--ink); background: var(--surface); }
.menu a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.menu__contacts { display: none; }

.top__call { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.top__phone { font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; }
.top__mail { font-size: 0.8125rem; color: var(--ink-3); text-decoration: none; }
.top__mail:hover, .top__phone:hover { color: var(--brand-ink); }

.burger {
    display: none;
    width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer; position: relative;
}
.burger span:first-child,
.burger span:first-child::before,
.burger span:first-child::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}
.burger span:first-child { top: 21px; }
.burger span:first-child::before { content: ''; left: 0; top: -7px; }
.burger span:first-child::after { content: ''; left: 0; top: 7px; }
.top.is-open .burger span:first-child { background: transparent; }
.top.is-open .burger span:first-child::before { transform: translateY(7px) rotate(45deg); }
.top.is-open .burger span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1340px) {
    .top__mail, .brand__full { display: none; }
}

@media (max-width: 980px) {
    :root { --top-h: 64px; }
    .burger { display: block; }
    .top__call { margin-left: auto; }
    .menu {
        position: fixed; inset: var(--top-h) 0 auto 0;
        max-height: calc(100dvh - var(--top-h));
        overflow-y: auto;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: var(--s-xs) var(--gutter) var(--s-xl);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
    }
    .top.is-open .menu {
        visibility: visible; opacity: 1; transform: none;
        transition: opacity .2s var(--ease), transform .25s var(--ease);
    }
    .menu ul { flex-direction: column; gap: 0; }
    .menu a { padding: var(--s-md) 0; font-size: 1.25rem; font-family: var(--f-display); font-weight: 500; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); }
    .menu a:hover { background: none; color: var(--brand-ink); }
    .menu a[aria-current] { box-shadow: none; color: var(--brand-ink); }
    .menu__contacts { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-lg); }
    .menu__contacts a { padding: 0; border: 0; font-family: var(--f-body); font-size: 1.0625rem; font-weight: 600; }
}

@media (max-width: 760px) {
    .top__order { display: none; }
}
@media (max-width: 520px) {
    .top__call { display: none; }
    .burger { margin-left: auto; }
    .brand__mark { width: 40px; }
}

/* --- Нижняя панель на телефоне ----------------------------------------- */

.dock { display: none; }
@media (max-width: 760px) {
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .dock {
        position: fixed; inset: auto 0 0 0; z-index: 40;
        display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-xs);
        padding: var(--s-xs) var(--gutter) calc(var(--s-xs) + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        border-top: 1px solid var(--line);
    }
    .dock a {
        display: flex; align-items: center; justify-content: center; gap: var(--s-xs);
        min-height: 52px; border-radius: var(--r-sm);
        font-weight: 600; text-decoration: none;
    }
    .dock__call { border: 1.5px solid var(--line); }
    .dock__call svg { width: 20px; height: 20px; fill: var(--brand); }
    .dock__order { background: var(--brand); color: oklch(0.99 0.004 15); }
}

/* --- Главная: первый экран --------------------------------------------- */

.hero { padding-block: clamp(24px, 3vw, 56px) var(--s-section); }
.hero__in {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 72px); align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero__lead { margin-top: var(--s-lg); max-width: 46ch; font-size: 1.1875rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xl); }

.hero__photo { position: relative; margin: 0; }
.hero__photo img {
    width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
    border-radius: var(--r-md);
    background: var(--surface);
}
.hero__photo figcaption {
    position: absolute; left: var(--s-md); bottom: var(--s-md);
    padding: var(--s-2xs) var(--s-sm);
    background: oklch(0.985 0.003 15 / 0.92); border-radius: var(--r-sm);
    font-size: 0.8125rem; font-weight: 500;
}

@media (max-width: 860px) {
    .hero__in { grid-template-columns: 1fr; }
    .hero__photo { order: -1; }
    .hero__photo img { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__text > *, .hero__photo { animation: rise .8s var(--ease) both; }
    .hero__text > :nth-child(2) { animation-delay: .06s; }
    .hero__text > :nth-child(3) { animation-delay: .12s; }
    .hero__text > :nth-child(4) { animation-delay: .18s; }
    .hero__photo { animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* --- Заголовки секций и страниц --------------------------------------- */

.section-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-sm) var(--s-lg);
    margin-bottom: var(--s-xl);
}
.section-head p { color: var(--ink-3); }

.page-head { padding-block: clamp(24px, 3vw, 48px) var(--s-xl); }
.page-head h1 { max-width: 22ch; }
.page-head__sub { margin-top: var(--s-md); color: var(--ink-2); max-width: 62ch; font-size: 1.125rem; }
.page-head--404 { padding-block: var(--s-4xl); min-height: 50vh; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2xs) var(--s-xs); margin-bottom: var(--s-sm); font-size: 0.9375rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a + a::before { content: '›'; margin-right: var(--s-xs); color: var(--line); }
.crumbs a:hover { color: var(--brand-ink); }

/* --- Главная: направления каталога ------------------------------------ */

.cats { padding-bottom: var(--s-section); }
.cats__grid {
    display: grid; gap: var(--s-md);
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(260px, auto));
}
.cat {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: clamp(20px, 2.4vw, 36px);
    background: var(--surface);
    border-radius: var(--r-md);
    text-decoration: none;
    transition: background-color .3s var(--ease);
}
.cat--1 { grid-row: span 2; }
.cat:hover { background: var(--surface-2); }
.cat__count {
    font-size: 0.8125rem; font-weight: 600; color: var(--brand-ink);
    margin-bottom: var(--s-sm);
}
.cat__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.15; max-width: 16ch; }
.cat--1 .cat__title { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem); }
.cat__desc { margin-top: var(--s-xs); color: var(--ink-2); max-width: 22ch; }
.cat__price { margin-top: auto; padding-top: var(--s-lg); font-weight: 700; font-size: 1.125rem; }
.cat__img {
    position: absolute; z-index: -1;
    right: 4%; bottom: 6%;
    width: 46%; max-height: 78%; object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .5s var(--ease);
}
.cat--1 .cat__img { width: 52%; max-height: 58%; right: 4%; bottom: 5%; }
.cat:hover .cat__img { transform: translateY(-6px) scale(1.03); }
.cat__go {
    position: absolute; right: clamp(20px, 2.4vw, 36px); top: clamp(20px, 2.4vw, 36px);
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: var(--bg); font-size: 1.25rem;
    transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.cat:hover .cat__go { background: var(--brand); color: oklch(0.99 0.004 15); transform: translateX(3px); }

@media (max-width: 760px) {
    .cats__grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .cat--1 { grid-row: auto; }
    .cat { min-height: 230px; }
    .cat--1 { min-height: 300px; }
    .cat__img, .cat--1 .cat__img { width: 40%; max-height: 56%; right: 5%; bottom: 7%; }
    .cat__desc { max-width: 52%; }
}

/* --- Главная: цена от объёма ------------------------------------------ */

.terms { background: var(--graphite); color: var(--on-dark); padding-block: var(--s-section); }
.terms__in {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--s-xl) clamp(32px, 6vw, 96px); align-items: end;
}
.terms__head p { margin-top: var(--s-md); color: var(--on-dark-2); max-width: 40ch; line-height: 1.65; }
.terms__head .link-arrow { margin-top: var(--s-lg); color: oklch(0.8 0.11 15); }

.scale {
    --max: 1;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-sm);
    list-style: none; margin: 0; padding: 0;
    align-items: end; min-height: 260px;
}
.scale__step {
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-lg);
    padding: var(--s-md);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    background: var(--graphite-2);
    height: 100%;
}
.scale__step:nth-child(1) { min-height: 260px; }
.scale__step:nth-child(2) { min-height: 210px; }
.scale__step:nth-child(3) { min-height: 160px; background: var(--brand); color: oklch(0.99 0.004 15); }
.scale__tier { font-size: 0.875rem; color: inherit; opacity: .85; }
.scale__price { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem); }
.terms__note { grid-column: 2; margin-top: calc(-1 * var(--s-md)); font-size: 0.875rem; color: var(--on-dark-2); }

.facts {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(3, 1fr);
    list-style: none; margin: var(--s-xl) 0 0; padding: var(--s-xl) 0 0;
    border-top: 1px solid var(--graphite-2);
}
.facts li { padding-right: var(--s-lg); color: var(--on-dark-2); }
.facts li + li { padding-left: var(--s-lg); border-left: 1px solid var(--graphite-2); }
.facts b { display: block; font-family: var(--f-display); font-weight: 500; color: var(--on-dark); margin-bottom: var(--s-2xs); }

@media (max-width: 860px) {
    .terms__in { grid-template-columns: 1fr; align-items: start; }
    .terms__note { grid-column: 1; }
    .scale { min-height: 0; }
    .scale__step:nth-child(1) { min-height: 190px; }
    .scale__step:nth-child(2) { min-height: 160px; }
    .scale__step:nth-child(3) { min-height: 130px; }
}
@media (max-width: 600px) {
    .facts { grid-template-columns: 1fr; gap: var(--s-md); }
    .facts li + li { padding-left: 0; border-left: 0; padding-top: var(--s-md); border-top: 1px solid var(--graphite-2); }
    .scale { gap: var(--s-xs); }
    .scale__step { padding: var(--s-sm); }
    .scale__tier { font-size: 0.75rem; }
}

/* --- Главная: производство -------------------------------------------- */

.prod-teaser {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 5vw, 80px); align-items: center;
    padding-block: var(--s-section);
}
.prod-teaser__text p { margin-block: var(--s-md) var(--s-lg); color: var(--ink-2); max-width: 44ch; line-height: 1.65; }
.prod-teaser__strip {
    display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, clamp(130px, 15vw, 220px)); gap: var(--s-sm);
}
.prod-teaser__strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); background: var(--surface); }
.prod-teaser__strip img:first-child { grid-row: span 2; }
@media (max-width: 760px) {
    .prod-teaser { grid-template-columns: 1fr; }
}

/* --- Каталог ------------------------------------------------------------ */

.tabs {
    display: flex; gap: var(--s-lg); margin-top: var(--s-xl);
    border-bottom: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    padding-block: var(--s-sm); white-space: nowrap;
    text-decoration: none; font-weight: 500; color: var(--ink-3);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }

.catalog { padding-bottom: var(--s-section); }

.chips {
    display: flex; gap: var(--s-xs); margin-bottom: var(--s-xl);
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
    flex-shrink: 0;
    min-height: 40px; padding: 0 var(--s-md);
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--bg); cursor: pointer; font-weight: 500;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chips button span { color: var(--ink-3); margin-left: 2px; font-variant-numeric: tabular-nums; }
.chips button:hover { border-color: var(--ink-3); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips button[aria-pressed="true"] span { color: var(--on-dark-2); }

.items {
    display: grid; gap: var(--s-2xl) var(--s-lg);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.item { display: flex; flex-direction: column; scroll-margin-top: calc(var(--top-h) + 24px); }
.item[hidden] { display: none; }
.item:target .item__photo { outline: 2px solid var(--brand); outline-offset: 3px; }

.item__photo {
    position: relative; display: block;
    aspect-ratio: 1;
    background: var(--surface); border-radius: var(--r-md);
    cursor: zoom-in;
}
.item__photo img {
    position: absolute; inset: 9%;
    width: 82%; height: 82%; object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .4s var(--ease);
}
.item__photo:hover img { transform: scale(1.04); }

.item__body { display: flex; flex-direction: column; flex: 1; padding-top: var(--s-md); }
.item__art {
    font-family: var(--f-display); font-size: 0.75rem; font-weight: 500;
    color: var(--brand-ink); letter-spacing: 0.04em;
}
.item__title { margin-top: var(--s-2xs); font-family: var(--f-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }

.item__spec { margin: var(--s-sm) 0 0; font-size: 0.875rem; }
.item__spec div {
    display: flex; justify-content: space-between; gap: var(--s-sm);
    padding-block: 5px; border-bottom: 1px dashed var(--line);
}
.item__spec dt { color: var(--ink-3); }
.item__spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.item__colors { display: flex; align-items: center; gap: 6px; margin-top: var(--s-sm); font-size: 0.8125rem; color: var(--ink-3); }
.item__colors-text { margin-left: var(--s-2xs); }

/* цвет изделия — как гранула сырья */
.pellet {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(circle at 32% 28%, oklch(1 0 0 / .55), transparent 45%), var(--c);
    box-shadow: inset 0 0 0 1px oklch(0 0 0 / .12);
}
.pellet--black { --c: oklch(0.27 0.01 260); }
.pellet--blue { --c: oklch(0.52 0.19 258); }
.pellet--red { --c: oklch(0.58 0.21 27); }
.pellet--green { --c: oklch(0.6 0.16 145); }
.pellet--purple { --c: oklch(0.5 0.18 305); }
.pellet--white { --c: oklch(0.97 0.004 90); }

.item__foot {
    display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-sm);
    margin-top: auto; padding-top: var(--s-md);
}
.item__price b { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.item__price small { display: block; font-size: 0.75rem; color: var(--ink-3); line-height: 1.3; margin-top: 2px; }

.catalog__group {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-xs) var(--s-lg);
    margin: var(--s-3xl) 0 var(--s-lg); padding-top: var(--s-md); border-top: 1px solid var(--ink);
}
.catalog__group:first-child { margin-top: 0; }
.catalog__group h2 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
.catalog__group h2 a { text-decoration: none; }
.catalog__group h2 a:hover { color: var(--brand-ink); }
.catalog__group span { color: var(--ink-3); font-size: 0.9375rem; }
.catalog__note { margin-top: var(--s-3xl); color: var(--ink-3); font-size: 0.9375rem; max-width: 70ch; }
.catalog__note a { color: var(--brand-ink); }

@media (max-width: 560px) {
    .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-xl) var(--s-sm); }
    .item__title { font-size: 0.9375rem; }
    .item__spec { font-size: 0.75rem; }
    .item__spec div { gap: var(--s-2xs); padding-block: 3px; }
    .item__colors-text { display: none; }
    .item__foot { flex-direction: column; align-items: stretch; }
    .item__price b { font-size: 1.0625rem; }
    .item__foot .btn { width: 100%; }
}

/* --- Прайс -------------------------------------------------------------- */

.prices { padding-bottom: var(--s-section); }
.prices__bar {
    position: sticky; top: var(--top-h); z-index: 5;
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-sm);
    padding-block: var(--s-sm);
    background: var(--bg);
}

.seg {
    display: inline-flex; margin: 0; padding: 3px; border: 0;
    background: var(--surface-2); border-radius: var(--r-md);
}
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
    display: block; padding: var(--s-xs) var(--s-md); border-radius: 6px;
    font-weight: 500; font-size: 0.9375rem; white-space: nowrap; color: var(--ink-2);
    transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg input:checked + span { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px oklch(0.24 0.014 15 / .12); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in oklch, var(--brand) 60%, transparent); }

.search { flex: 1 1 240px; max-width: 360px; }
.search input {
    width: 100%; min-height: 44px; padding: 0 var(--s-md);
    border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
}
.search input:focus { outline: none; border-color: var(--ink-3); }
.prices__xls { margin-left: auto; }

.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 10px var(--s-sm); text-align: left; border-bottom: 1px solid var(--line-2); }
.ptable thead th {
    position: sticky; top: calc(var(--top-h) + 68px); z-index: 2;
    background: var(--bg);
    font-size: 0.8125rem; font-weight: 500; color: var(--ink-3);
    border-bottom: 1px solid var(--line);
    vertical-align: bottom;
}
.ptable tbody th { font-weight: 500; }
.ptable tbody th a { text-decoration: none; }
.ptable tbody th a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.ptable [data-t] { text-align: right; white-space: nowrap; width: 15%; }
.ptable td[data-t] { color: var(--ink-3); transition: background-color .2s var(--ease), color .2s var(--ease); }
.ptable__art { color: var(--ink-3); font-variant-numeric: tabular-nums; width: 5%; }
.ptable__cur { color: var(--ink-3); font-weight: 400; }
.ptable tr[data-row]:hover > * { background: var(--surface); }
.ptable__group th {
    padding-top: var(--s-2xl); border-bottom: 1px solid var(--ink);
    font-family: var(--f-display); font-size: 1rem; font-weight: 600;
}
.ptable__group th a { text-decoration: none; }
.ptable__group th a:hover { color: var(--brand-ink); }
.ptable tbody[hidden] { display: none; }

.prices:has(#tier-0:checked) [data-t="0"],
.prices:has(#tier-1:checked) [data-t="1"],
.prices:has(#tier-2:checked) [data-t="2"],
.prices:has(#tier-3:checked) [data-t="3"] { background: var(--brand-soft); color: var(--ink); }
.prices:has(#tier-0:checked) td[data-t="0"],
.prices:has(#tier-1:checked) td[data-t="1"],
.prices:has(#tier-2:checked) td[data-t="2"],
.prices:has(#tier-3:checked) td[data-t="3"] { font-weight: 600; }

.prices__empty { padding: var(--s-2xl) 0; color: var(--ink-2); }
.prices__empty a { color: var(--brand-ink); font-weight: 600; }

@media (max-width: 760px) {
    .prices__bar { position: static; }
    .seg { width: 100%; overflow-x: auto; }
    .seg label { flex: 1; }
    .seg span { padding: var(--s-xs) var(--s-sm); font-size: 0.875rem; text-align: center; }
    .search { max-width: none; }
    .prices__xls { margin-left: 0; }
    .ptable thead th { top: var(--top-h); }
    .ptable [data-t], .ptable__art { display: none; }
    .prices:has(#tier-0:checked) [data-t="0"],
    .prices:has(#tier-1:checked) [data-t="1"],
    .prices:has(#tier-2:checked) [data-t="2"],
    .prices:has(#tier-3:checked) [data-t="3"] { display: table-cell; width: auto; }
    .ptable th, .ptable td { padding-inline: var(--s-xs); }
    .ptable tbody th { font-size: 0.9375rem; }
}

/* --- О компании и производство ---------------------------------------- */

.prose { max-width: 68ch; }
.prose p { line-height: 1.7; color: var(--ink-2); }
.prose p + p { margin-top: var(--s-md); }
.prose p:first-child { font-size: 1.1875rem; color: var(--ink); line-height: 1.6; }
.prose a { color: var(--brand-ink); }

.about {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-2xl) clamp(32px, 6vw, 96px); align-items: start;
    padding-bottom: var(--s-section);
}
.about__side { position: sticky; top: calc(var(--top-h) + 24px); }
.about__side-title { font-size: 1.25rem; margin-bottom: var(--s-lg); }
.adv { list-style: none; margin: 0; padding: 0; counter-reset: adv; }
.adv li {
    counter-increment: adv;
    display: grid; grid-template-columns: 3rem 1fr; align-items: baseline;
    padding-block: var(--s-sm); border-top: 1px solid var(--line);
    font-weight: 500; font-size: 1.0625rem;
}
.adv li::before {
    content: counter(adv, decimal-leading-zero);
    font-family: var(--f-display); font-size: 0.875rem; color: var(--brand-ink);
}
@media (max-width: 860px) {
    .about { grid-template-columns: 1fr; }
    .about__side { position: static; }
}

.docs { padding-bottom: var(--s-section); }
.docs h2 { margin-bottom: var(--s-lg); }
.docs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs__list a {
    display: flex; align-items: center; gap: var(--s-lg);
    padding-block: var(--s-md); border-bottom: 1px solid var(--line);
    text-decoration: none; font-weight: 500;
    transition: color .2s var(--ease);
}
.docs__list a:hover { color: var(--brand-ink); }
.docs__type {
    flex-shrink: 0; min-width: 6.5rem;
    font-size: 0.75rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase;
}

.production {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-2xl) clamp(32px, 6vw, 96px); align-items: start;
    padding-bottom: var(--s-3xl);
}
.spec-card { position: sticky; top: calc(var(--top-h) + 24px); margin: 0; border-top: 1px solid var(--ink); }
.spec-card div { padding-block: var(--s-md); border-bottom: 1px solid var(--line); }
.spec-card dt { font-size: 0.8125rem; color: var(--ink-3); }
.spec-card dd { margin: var(--s-2xs) 0 0; font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
@media (max-width: 860px) {
    .production { grid-template-columns: 1fr; }
    .spec-card { position: static; }
}

.gallery { padding-bottom: var(--s-section); }
.gallery h2 { margin-bottom: var(--s-lg); }
.gallery__grid {
    display: grid; gap: var(--s-sm);
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(120px, 14vw, 190px);
}
.shot { position: relative; overflow: hidden; border-radius: var(--r-md); grid-column: span 2; cursor: zoom-in; background: var(--surface); }
.shot--0, .shot--5 { grid-column: span 4; grid-row: span 2; }
.shot--1 { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot__cap {
    position: absolute; left: var(--s-sm); bottom: var(--s-sm);
    padding: 2px var(--s-xs); border-radius: var(--r-sm);
    background: oklch(0.985 0.003 15 / 0.92); font-size: 0.75rem; font-weight: 500;
}
@media (max-width: 760px) {
    .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .shot, .shot--1 { grid-column: span 1; grid-row: span 1; }
    .shot--0, .shot--5 { grid-column: span 2; grid-row: span 2; }
}

/* --- Контакты ----------------------------------------------------------- */

.contacts {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--s-2xl) clamp(24px, 5vw, 80px);
    padding-bottom: var(--s-section);
}
.contacts__people { display: grid; gap: var(--s-xl); align-content: start; }
.person { padding-top: var(--s-lg); border-top: 1px solid var(--line); }
.person__role { font-size: 0.8125rem; color: var(--ink-3); }
.person__name { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; margin-top: var(--s-2xs); }
.person__phone { display: inline-block; margin-top: var(--s-md); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; text-decoration: none; }
.person__phone:hover { color: var(--brand-ink); }
.person__mail { display: block; margin-top: var(--s-2xs); color: var(--ink-2); }
.contacts__map iframe {
    display: block; width: 100%; aspect-ratio: 4 / 3; border: 0;
    border-radius: var(--r-md); background: var(--surface);
}
.contacts__map .link-arrow { margin-top: var(--s-sm); }
@media (max-width: 860px) {
    .contacts { grid-template-columns: 1fr; }
}

.req { padding-bottom: var(--s-section); }
.req__list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px);
    margin: 0; border-top: 1px solid var(--line);
}
.req__list div {
    display: grid; grid-template-columns: minmax(8rem, 0.8fr) 1.2fr; gap: var(--s-md);
    padding-block: var(--s-sm); border-bottom: 1px solid var(--line-2);
}
.req__list dt { color: var(--ink-3); font-size: 0.9375rem; }
.req__list dd { margin: 0; cursor: copy; word-break: break-word; }
.req__list dd:hover { color: var(--brand-ink); }
@media (max-width: 760px) {
    .req__list { grid-template-columns: 1fr; }
    .req__list div { grid-template-columns: 1fr; gap: 0; }
}

/* --- Заявка -------------------------------------------------------------- */

.order { background: var(--surface); padding-block: var(--s-section); }
.order__in {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--s-2xl) clamp(32px, 6vw, 96px); align-items: start;
}
.order__lead h2 { max-width: 14ch; }
.order__lead > p { margin-top: var(--s-md); color: var(--ink-2); max-width: 44ch; line-height: 1.65; }
.order__people { display: grid; gap: var(--s-md); margin-top: var(--s-xl); }
.order__people p { display: flex; flex-direction: column; }
.order__people span { font-size: 0.875rem; color: var(--ink-3); }
.order__people a { text-decoration: none; font-weight: 600; width: fit-content; }
.order__people a[href^="tel"] { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.order__people a:hover { color: var(--brand-ink); }

.form {
    display: grid; gap: var(--s-md);
    padding: clamp(20px, 3vw, 40px);
    background: var(--bg); border-radius: var(--r-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.field b { color: var(--brand-ink); }
.field input, .field textarea {
    width: 100%; min-height: 50px; padding: 12px var(--s-md);
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--bg);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.65 0.01 15); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.field input:user-invalid { border-color: var(--brand-ink); }
.form__trap { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md) var(--s-lg); margin-top: var(--s-xs); }
.form__note { flex: 1 1 220px; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }
.form__note a { color: inherit; }
.form__msg { padding: var(--s-sm) var(--s-md); border-radius: var(--r-sm); font-weight: 500; }
.form__msg--ok { background: oklch(0.95 0.05 150); color: oklch(0.35 0.09 150); }
.form__msg--err { background: var(--brand-soft); color: var(--brand-ink); }
.form.is-sending button { opacity: .6; pointer-events: none; }
.field textarea.is-filled { animation: flash 1s var(--ease); }
@keyframes flash { from { background: var(--brand-soft); } }

@media (max-width: 860px) {
    .order__in { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .form__row { grid-template-columns: 1fr; }
    .form__foot .btn { width: 100%; }
}

/* --- Подвал ------------------------------------------------------------- */

.foot { background: var(--graphite); color: var(--on-dark-2); font-size: 0.9375rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); }
.foot__in {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-2xl);
    padding-block: var(--s-3xl) var(--s-2xl);
}
.foot__brand .brand__mark { width: 52px; margin-bottom: var(--s-md); }
.foot__brand p:first-of-type { color: var(--on-dark); font-weight: 500; max-width: 28ch; }
.foot__muted { margin-top: var(--s-sm); color: var(--on-dark-2); line-height: 1.5; }
.foot__nav { display: grid; gap: var(--s-xs); align-content: start; }
.foot__contacts p + p { margin-top: var(--s-md); }
.foot__contacts a[href^="tel"] { color: var(--on-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.foot__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-xs) var(--s-lg);
    padding-block: var(--s-lg); border-top: 1px solid var(--graphite-2);
    font-size: 0.8125rem;
}
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--graphite-2); }
@media (max-width: 760px) {
    .foot__in { grid-template-columns: 1fr 1fr; }
    .foot__brand { grid-column: 1 / -1; }
}

/* --- Фото крупно --------------------------------------------------------- */

.zoom {
    max-width: min(96vw, 1400px); max-height: 92dvh; padding: 0; border: 0;
    background: transparent; overflow: visible;
}
.zoom::backdrop { background: oklch(0.18 0.01 15 / 0.82); }
.zoom img {
    max-width: min(96vw, 1400px); max-height: 92dvh; object-fit: contain;
    border-radius: var(--r-md); background: var(--bg);
}
.zoom button {
    position: fixed; top: var(--s-md); right: var(--s-md);
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--bg); font-size: 1.5rem; cursor: pointer;
}
.zoom[open] img { animation: rise .35s var(--ease); }

.toast {
    position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    transform: translateX(-50%);
    padding: var(--s-xs) var(--s-md); border-radius: var(--r-sm);
    background: var(--ink); color: var(--bg); font-size: 0.9375rem; font-weight: 500;
    animation: rise .25s var(--ease);
}
@media (min-width: 761px) { .toast { bottom: var(--s-xl); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
