/* =========================================================================
   Ksentra — plain CSS, no framework, no build step, mobile-first
   (CR-redesign-content-as-code-2026-10 WP6; canvas «Ksentra — дизайн сайта»).
   Sections mirror polisbot/static/css/style.css. Block and page sections
   follow the shared foundation below.
   ========================================================================= */

/* ---- Fonts: self-hosted, Cyrillic + Latin, no Google host (152-ФЗ) ---- */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/onest-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/lora-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212; }

/* ---- Tokens (CR §WP5 «Tokens as drawn») ---- */
:root {
    --color-ground: #F7F4EE;
    --color-sidebar: #EFE9DF;
    --color-surface: #FFFFFF;
    --color-surface-soft: #FBF9F5;
    --color-ink: #2D201A;
    --color-body: #483328;
    --color-muted: #6E5D52;
    --color-line: #E3DACB;
    --color-line-soft: #EEE7DB;
    --color-line-strong: #D3C7B4;
    --color-input-border: #DCD2C2;
    --color-nav-current: #E8DFD0;
    --color-on-primary: #1F160F;
    --color-on-dark-muted: #E8DFD0;
    --color-accent-orange: #B4570A;   /* eyebrows, small labels */
    --color-accent-green: #3F6B12;    /* text links */
    --color-green: #90C73E;           /* brand green (launcher) */
    --color-orange: #F28C1B;          /* logo orange (404 numeral, step numbers) */
    --color-gold-tint: #FBF0D9;
    --color-gold-border: #EED9B0;
    --color-green-border: #D5E6BA;
    --color-placeholder-ink: #5C4436;

    --gradient-primary: linear-gradient(135deg, #A9D766 0%, #90C73E 55%, #79AE2B 100%);
    --gradient-dark: linear-gradient(135deg, #5C4436 0%, #2D201A 75%);
    --gradient-accent: linear-gradient(135deg, #F7A33A 0%, #F28C1B 50%, #D9700A 100%);
    --gradient-gold: linear-gradient(135deg, #FBF0D9 0%, #F6E2BC 100%);
    --gradient-green: linear-gradient(135deg, #EEF5E1 0%, #E1EECB 100%);

    --shadow-button: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 3px rgba(74, 104, 24, 0.30);
    --shadow-button-dark: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    --shadow-accent: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px rgba(217, 112, 10, 0.20);
    --shadow-card: 0 1px 2px rgba(45, 32, 26, 0.04), 0 8px 24px rgba(45, 32, 26, 0.07);

    --font-ui: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Lora", Georgia, "Times New Roman", serif;

    --radius-xs: 8px;
    --radius-sm: 10px;    /* controls */
    --radius-md: 12px;    /* large buttons, small panels */
    --radius-card: 20px;  /* cards */
    --radius-lg: 24px;    /* sections, bands */
    --radius-xl: 28px;    /* hero panels, dark CTA */
    --radius-pill: 999px;
    --tap-min: 44px;
    --header-height: 72px;

    --page-max: 1312px;
    --gutter: clamp(16px, 4vw, 64px);
    --space-section: 64px;   /* gap between a page's top-level sections */
    --space-heading: 28px;   /* section heading → its content */
}
@media (min-width: 900px) {
    :root {
        --space-section: 104px;
        --space-heading: 32px;
    }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-ink);
    background: var(--color-ground);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--color-ink); }
a:hover { color: var(--color-accent-orange); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-accent-orange);
    outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    overflow-wrap: break-word;
}
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
figure { margin: 0; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Layout primitives ---- */
.container {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* Content pages: a column of top-level sections with one rhythm. Every
   block template renders one top-level element, so `> * + *` spaces them. */
.page {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 48px var(--gutter) 96px;
    display: flex;
    flex-direction: column;
    gap: var(--space-section);
}
@media (min-width: 900px) {
    .page { padding-top: 80px; padding-bottom: 112px; }
}
.page__narrow { width: 100%; max-width: 800px; }

/* ---- Typography helpers ---- */
.eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (min-width: 900px) { .eyebrow { font-size: 14px; } }
.display-1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; }
.display-2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.display-3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--color-body); max-width: 640px; }
.muted { color: var(--color-muted); }
.link-arrow { font-size: 16px; font-weight: 500; color: var(--color-accent-green); }
.link-arrow:hover { color: var(--color-accent-green); text-decoration-thickness: 2px; }

/* Section heading row: title left, "all →" link right. */
.section { display: flex; flex-direction: column; gap: var(--space-heading); min-width: 0; }
.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
}
.section__head .lede { margin-top: 12px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap-min);
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.04); text-decoration: none; }
.btn--lg { min-height: 52px; padding: 0 24px; border-radius: var(--radius-md); font-size: 16px; }
.btn--primary { background: var(--gradient-primary); box-shadow: var(--shadow-button); color: var(--color-on-primary); }
.btn--primary:hover { color: var(--color-on-primary); }
.btn--dark { background: var(--gradient-dark); box-shadow: var(--shadow-button-dark); color: #FFFFFF; }
.btn--dark:hover { color: #FFFFFF; }
.btn--accent { background: var(--gradient-accent); box-shadow: var(--shadow-accent); color: var(--color-on-primary); }
.btn--accent:hover { color: var(--color-on-primary); }
.btn--ghost { background: var(--color-surface); border: 1px solid var(--color-line-strong); color: var(--color-ink); font-weight: 500; }
.btn--ghost:hover { color: var(--color-ink); background: var(--color-surface-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Chips (filters, quick replies) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-line-strong);
    background: var(--color-surface);
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.chip:hover { color: var(--color-ink); background: var(--color-surface-soft); }
.chip[aria-pressed="true"], .chip[aria-current="page"] {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #FFFFFF;
}
.chip-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-sidebar);
    color: var(--color-body);
    font-size: 13px;
}

/* ---- Cards ---- */
.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    text-decoration: none;
    min-width: 0;
}
a.card:hover { color: var(--color-ink); border-color: var(--color-line-strong); box-shadow: var(--shadow-card); }
.card--soft { background: var(--color-surface-soft); }
.card__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.card__text { font-size: 15px; line-height: 1.5; color: var(--color-body); }
.card__meta { font-size: 13px; color: var(--color-muted); }
.card__icon { width: 28px; height: 28px; color: var(--color-accent-orange); flex-shrink: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--wide { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid--2 { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

/* ---- Bands (CTA) ---- */
.band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .band { padding: 36px 40px; } }
.band--green { background: var(--gradient-green); border: 1px solid var(--color-green-border); }
.band--gold { background: var(--gradient-gold); border: 1px solid var(--color-gold-border); }
.band--dark { background: var(--gradient-dark); color: #FFFFFF; border-radius: var(--radius-xl); }
@media (min-width: 900px) { .band--dark { padding: 48px; } }
.band--dark h2, .band--dark h3 { color: #FFFFFF; }
.band--dark p { color: var(--color-on-dark-muted); }
.band__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* ---- Prose (Markdown / RichText) ---- */
.prose { font-size: 17px; line-height: 1.7; color: var(--color-body); max-width: 760px; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); color: var(--color-ink); margin-top: 1.6em; }
.prose h3 { font-size: clamp(21px, 2vw, 24px); color: var(--color-ink); margin-top: 1.4em; }
.prose h4 { font-family: var(--font-ui); font-size: 18px; font-weight: 600; color: var(--color-ink); margin-top: 1.2em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a { color: var(--color-accent-green); text-underline-offset: 2px; }
.prose a:hover { color: var(--color-accent-green); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote {
    margin-left: 0; margin-right: 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--color-orange);
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-ink);
}
.prose img { border-radius: var(--radius-md); }
.prose figure figcaption { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
.prose code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--color-sidebar); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-md); background: var(--color-sidebar); }
.prose pre code { padding: 0; background: none; }
.prose hr { border: none; border-top: 1px solid var(--color-line); margin: 2em 0; }
.prose .table-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose > table { display: block; overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line-soft); }
.prose th { font-weight: 600; color: var(--color-ink); background: var(--color-surface-soft); }
.prose tr:last-child td { border-bottom: none; }
.prose .richtext-image.left { float: left; margin: 0 1em 1em 0; max-width: 50%; }
.prose .richtext-image.right { float: right; margin: 0 0 1em 1em; max-width: 50%; }

/* ---- Accordion (<details>) ---- */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-line);
    background: var(--color-surface);
}
.accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
    content: "";
    flex-shrink: 0;
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.15s ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion__body { padding: 0 20px 20px; font-size: 16px; line-height: 1.65; color: var(--color-body); }
.accordion__body > * + * { margin-top: 0.8em; }

/* ---- Header (content pages; home uses the sidebar at ≥900px) ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(247, 244, 238, 0.94);
    backdrop-filter: saturate(1.2) blur(8px);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
    max-width: none;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--gutter);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__mark { height: 34px; width: auto; }
.logo__word { height: 17px; width: auto; }
.logo__full { height: 44px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    padding: 0 14px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    font-size: 15px;
    color: var(--color-ink);
}
.site-nav__link:hover { background: var(--color-sidebar); color: var(--color-ink); }
.site-nav__link[aria-current="page"], .site-nav__link.is-ancestor { background: var(--color-nav-current); font-weight: 500; }
.site-nav__sub, .site-nav__extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--tap-min);
    height: var(--tap-min);
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--color-ink);
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1023px) {
    :root { --header-height: 56px; }
    .site-header__inner { padding: 0 8px 0 16px; }
    .logo__mark { height: 28px; }
    .logo__word { height: 14px; }
    .logo__full { height: 36px; }
    .menu-toggle { display: inline-flex; }
    .site-header__cta { display: none; }
    /* Mobile menu (canvas MobileMenu): a full-height sheet under the header. */
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0; bottom: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 12px 8px 24px;
        background: var(--color-sidebar);
        overflow-y: auto;
        z-index: 29;
    }
    .site-nav.is-open { display: flex; }
    body.menu-open { overflow: hidden; }
    .site-nav__link { min-height: 48px; padding: 0 12px; border-radius: var(--radius-md); font-size: 18px; font-weight: 500; }
    .site-nav__link[aria-current="page"], .site-nav__link.is-ancestor { background: var(--color-nav-current); }
    .site-nav__sub { display: flex; flex-direction: column; padding: 0 0 8px 24px; }
    .site-nav__sub a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; text-decoration: none; font-size: 15px; color: var(--color-body); }
    .site-nav__sub a.is-all { color: var(--color-accent-green); font-weight: 500; }
    .site-nav__new-chat { margin-bottom: 8px; min-height: 48px; justify-content: flex-start; padding: 0 12px; font-size: 16px; }
    .site-nav__extra {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: auto;
        padding: 16px 12px 0;
        border-top: 1px solid var(--color-line);
        font-size: 15px;
    }
    .site-nav__extra .phone { font-weight: 600; font-size: 17px; text-decoration: none; }
    .site-nav__extra .email { color: var(--color-body); }
}
@media (min-width: 1024px) {
    .site-nav__new-chat { display: none; }
}

/* ---- Home: sidebar + full-page chat (canvas Main / HomeChat / HomeMobile) ----
   At ≥1024px the sidebar is the only navigation: no top header, no footer.
   Below that the shared header (logo, menu, new chat) takes over. */
.page-home .site-footer { display: none; }
.home-layout { display: flex; flex: 1 1 auto; min-height: 0; }
.home-sidebar { display: none; }
.home-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.chat-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 560px;
    padding: 0 16px;
}
.chat-page__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    padding: 24px 0 8px;
    text-align: center;
}
.chat-page__intro h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.12; }
.chat-page__intro .lede { font-size: clamp(15px, 1.4vw, 17px); margin: 0 auto; }
.chat-page__intro .lede > * + * { margin-top: 0.6em; }
.chat-page__container { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 780px; }
.chat-page__footnote {
    max-width: 780px;
    padding: 12px 0 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-muted);
    text-align: center;
}
.chat-page__noscript { max-width: 640px; margin: 24px auto; text-align: center; }
.chat-page__noscript a { color: var(--color-accent-green); }
.home-about {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 16px 56px;
    border-top: 1px solid var(--color-line);
}
.home-about > * + * { margin-top: 32px; }
.home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 20px clamp(16px, 4vw, 48px);
    border-top: 1px solid var(--color-line);
    font-size: 13px;
    color: var(--color-muted);
}
.home-footer a { color: var(--color-muted); }
.home-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (min-width: 1024px) {
    .page-home .site-header { display: none; }
    .home-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 272px;
        flex-shrink: 0;
        padding: 20px 16px;
        background: var(--color-sidebar);
        border-right: 1px solid var(--color-line);
        overflow-y: auto;
    }
    .home-sidebar .logo { padding: 4px 8px; }
    .home-sidebar__new-chat {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: var(--tap-min);
        padding: 0 14px;
        border-radius: var(--radius-sm);
        background: var(--color-surface);
        border: 1px solid var(--color-line);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
    }
    .home-sidebar__new-chat:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
    .home-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
    .home-sidebar__nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: var(--tap-min);
        padding: 0 14px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font-size: 15px;
    }
    .home-sidebar__nav a:hover, .home-sidebar__group a:hover { background: var(--color-ground); color: var(--color-ink); }
    .home-sidebar__nav svg { flex-shrink: 0; }
    .home-sidebar__group { display: flex; flex-direction: column; gap: 2px; }
    .home-sidebar__label {
        padding: 0 14px 6px;
        font-size: 12px;
        font-weight: 600;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .home-sidebar__group a {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 0 14px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font-size: 14px;
        color: var(--color-body);
    }
    .home-sidebar__spacer { flex-grow: 1; }
    .home-sidebar__contacts {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px 16px;
        border-radius: var(--radius-md);
        background: var(--color-ground);
        border: 1px solid var(--color-line);
        font-size: 14px;
    }
    .home-sidebar__contacts .phone { font-weight: 600; text-decoration: none; }
    .home-sidebar__contacts .email { color: var(--color-body); }
    .home-sidebar__start {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 12px 16px;
        border-radius: var(--radius-md);
        background: var(--gradient-primary);
        box-shadow: var(--shadow-button);
        color: var(--color-on-primary);
        text-decoration: none;
    }
    .home-sidebar__start:hover { color: var(--color-on-primary); filter: brightness(1.04); }
    .home-sidebar__start strong { font-size: 15px; }
    .home-sidebar__start span { font-size: 13px; }
    .chat-page { height: 100vh; height: 100dvh; padding: 0 clamp(16px, 4vw, 48px); }
    .chat-page__intro { padding-top: 48px; gap: 14px; }
}

/* ---- Footer (content pages) ---- */
.site-footer {
    border-top: 1px solid var(--color-line);
    background: var(--color-sidebar);
    padding: 48px var(--gutter) max(28px, env(safe-area-inset-bottom));
    font-size: 15px;
}
.site-footer__inner { display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; }
.site-footer__col a.is-all { color: var(--color-accent-green); }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand .logo__word { height: 20px; }
.site-footer__brand .logo { align-self: flex-start; }
.site-footer__brand .logo__full { height: 48px; }
.site-footer__brand p { color: var(--color-body); line-height: 1.5; }
.site-footer__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line-strong);
    background: var(--color-surface);
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.social img { width: 18px; height: 18px; object-fit: contain; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
    font-size: 13px;
    color: var(--color-muted);
}
.site-footer__bottom a { color: var(--color-muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--color-muted); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--color-line-strong); }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent-orange); text-decoration: underline; }

/* ---- Page head (index pages, simple pages) ---- */
.page-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.page-head h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }

/* ---- Pagination ---- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line-strong);
    background: var(--color-surface);
    text-decoration: none;
    font-size: 15px;
}
.pagination [aria-current="page"] { background: var(--color-ink); border-color: var(--color-ink); color: #FFFFFF; }
.pagination .is-disabled { color: var(--color-muted); background: transparent; border-color: var(--color-line); }

/* ---- Media placeholder (case with no cover image) ---- */
.plate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #FBF0D9 0%, #F3E0BA 100%);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 32px;
    line-height: 1.1;
    text-align: center;
    color: var(--color-placeholder-ink);
}

/* ---- 404 ---- */
.not-found {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 64px var(--gutter);
    text-align: center;
}
.not-found__code { font-family: var(--font-display); font-weight: 500; font-size: clamp(88px, 12vw, 120px); line-height: 1; color: var(--color-orange); }
.not-found h1 { font-size: clamp(30px, 3.4vw, 40px); }
.not-found p { font-size: 18px; color: var(--color-body); max-width: 520px; }
.not-found .btn-row { justify-content: center; }

/* =========================================================================
   Blocks and pages (WP6 part files merged below)
   ========================================================================= */

/* ---- from parts/a-about.css ---- */
/* ---- Part A: hero, hero2, cta, services, cases, blog, team, featured, features,
        clients, testimonials, counter, slider (About artboard) ---- */

/* Filter chips hide items with [hidden]; make it win over display rules. */
[data-filter-item][hidden] { display: none !important; }

/* ---- Hero (and slider's first slide) ---- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}
.hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.hero__title { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; }
.hero__text { font-size: 17px; line-height: 1.6; color: var(--color-body); max-width: 600px; }
.hero .lede { max-width: 600px; }
.hero__media {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-xl);
    background: var(--gradient-gold);
    border: 1px solid var(--color-gold-border);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.hero__media img { height: 320px; width: auto; max-width: 100%; object-fit: contain; }
.hero__media--cover { padding: 0; }
.hero__media--cover img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; position: absolute; inset: 0; }
@media (min-width: 600px) {
    .hero__media { min-height: 400px; }
    .hero__media img { height: 380px; }
    .hero__media--cover img { min-height: 400px; }
}
@media (min-width: 900px) {
    .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
    .hero--plain { grid-template-columns: minmax(0, 1fr); }
    .hero__media { min-height: 480px; }
    .hero__media img { height: 450px; }
    .hero__media--cover img { min-height: 480px; }
}

/* ---- Hero2 (centred hero on a soft gold panel) ---- */
.hero2 {
    position: relative;
    overflow: hidden;
    padding: 48px 24px;
    border-radius: var(--radius-xl);
    background: var(--gradient-gold);
    border: 1px solid var(--color-gold-border);
    text-align: center;
}
.hero2__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.hero2__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 760px; margin: 0 auto; }
.hero2 .btn-row { justify-content: center; }
.hero2 .lede { margin: 0 auto; }
@media (min-width: 900px) { .hero2 { padding: 80px 48px; } }

/* ---- CTA ---- */
.band__title { max-width: 720px; }

/* ---- Services ---- */
.services__flagship {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-height: 260px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--gradient-accent);
    box-shadow: var(--shadow-accent);
    color: var(--color-on-primary);
    text-decoration: none;
    min-width: 0;
}
.services__flagship:hover { color: var(--color-on-primary); filter: brightness(1.04); }
.services__flagship-top { display: flex; justify-content: space-between; align-items: center; }
.services__badge { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.35); font-size: 13px; font-weight: 600; }
.services__flagship-body { display: flex; flex-direction: column; gap: 10px; }
.services__flagship-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; overflow-wrap: break-word; }
.services__flagship-text { font-size: 16px; line-height: 1.5; max-width: 560px; }
@media (min-width: 900px) { .services__flagship { padding: 32px; } }

/* ---- Cases ---- */
.cases__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    overflow: hidden;
    color: var(--color-ink);
    text-decoration: none;
}
.cases__card:hover { color: var(--color-ink); border-color: var(--color-line-strong); box-shadow: var(--shadow-card); }
.cases__img { width: 100%; height: 200px; object-fit: cover; background: var(--color-sidebar); }
.cases__img.plate { font-size: 36px; }
.cases__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.cases__body .card__title { font-size: 19px; }
.cases__body .card__meta { font-size: 14px; line-height: 1.45; }

/* ---- Blog ---- */
.blog__card { gap: 12px; padding: 28px; }
.blog__title { font-size: 20px; font-weight: 600; line-height: 1.3; }

/* ---- Team ---- */
.team__grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.team__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    overflow: hidden;
}
.team__photo { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.team__caption { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.team__name { font-size: 20px; font-weight: 600; }
.team__role { font-size: 14px; font-weight: 600; color: var(--color-accent-orange); }
.team__quote { font-family: var(--font-display); font-size: 18px; line-height: 1.45; color: var(--color-body); }

/* ---- Featured rich text (Видение / Миссия card) ---- */
.featured {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
}
.featured .prose { font-size: 17px; line-height: 1.65; }
@media (min-width: 900px) { .featured { padding: 36px; } }

/* ---- Features (text + image) ---- */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.features__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.features__media { min-width: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-line); }
.features__media img { width: 100%; height: auto; }
@media (min-width: 900px) {
    .features:not(.features--plain) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
    .features--reverse .features__media { order: -1; }
}

/* ---- Clients ---- */
.clients__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); }
.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
}
.clients__item img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }

/* ---- Testimonials ---- */
.testimonials__item { gap: 20px; padding: 28px; margin: 0; justify-content: space-between; }
.testimonials__text { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.5; color: var(--color-body); }
.testimonials__author { display: flex; align-items: center; gap: 14px; }
.testimonials__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonials__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testimonials__name { font-weight: 600; }

/* ---- Counter ---- */
.counter { padding: 36px 24px; border-radius: var(--radius-lg); background: var(--gradient-green); border: 1px solid var(--color-green-border); }
.counter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); text-align: center; }
.counter__item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.counter__value { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; color: var(--color-ink); }
.counter__suffix { font-size: 0.45em; margin-left: 6px; color: var(--color-body); }
.counter__name { font-size: 15px; color: var(--color-body); overflow-wrap: break-word; }
@media (min-width: 900px) { .counter { padding: 48px 40px; } }


/* ---- from parts/b-service.css ---- */
/* =========================================================================
   Part B — service pages, services index, common pages and the blocks
   advantages, icon_cards, process, timeline, price, faq, faq2.
   ========================================================================= */

/* ---- Card grids (advantages, icon_cards) ---- */
.card-grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card-grid__item { gap: 12px; padding: 28px; border-radius: var(--radius-lg); }
.card-grid__item .card__title { font-size: 19px; }

/* ---- Process (numbered cards) ---- */
.process__list {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.process__step { gap: 12px; padding: 28px; border-radius: var(--radius-lg); }
.process__num { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; color: var(--color-orange); }
.process__step .card__title { font-size: 19px; }

/* ---- Timeline (columns under a heavy rule) ---- */
.timeline__list {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    border-top: 2px solid var(--color-ink);
}
.timeline__step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 24px 12px 0; min-width: 0; }
.timeline__num { font-family: var(--font-display); font-weight: 500; font-size: 48px; line-height: 1; color: var(--color-orange); }
.timeline__title { font-size: 19px; font-weight: 600; line-height: 1.3; font-family: var(--font-ui); }
.timeline__duration {
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: #FBF0D9; color: #7A4A06;
    font-size: 13px; font-weight: 600;
}

/* ---- Price ---- */
.price__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: stretch; }
.price__plan {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 32px; min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
}
.price__plan--featured {
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: var(--shadow-accent);
    color: var(--color-on-primary);
}
.price__ribbon {
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.4);
    font-size: 13px; font-weight: 600;
}
.price__name { font-family: var(--font-ui); font-size: 18px; font-weight: 600; line-height: 1.3; }
.price__amount { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
.price__note { font-size: 15px; color: var(--color-muted); }
.price__plan--featured .price__note { color: var(--color-on-primary); }
.price__features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.price__features li { display: flex; gap: 10px; align-items: flex-start; }
.price__features li.is-off { color: var(--color-muted); text-decoration: line-through; }
.price__tick { flex-shrink: 0; margin-top: 2px; color: var(--color-accent-green); }
.price__plan--featured .price__tick { color: var(--color-on-primary); }
.price__plan .btn { margin-top: auto; }
.price__features + .btn { margin-top: 12px; }

/* ---- FAQ ---- */
.faq__layout { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.faq__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq__layout > .accordion { flex: 2 1 min(560px, 100%); min-width: 0; }
.faq__image { border-radius: var(--radius-card); width: 100%; max-width: 360px; }
.faq__theme { display: flex; flex-direction: column; gap: 16px; }

/* ---- Breadcrumb spacing inside page heads ---- */
.page-head .breadcrumbs { margin-bottom: 4px; }

/* ---- Service page ---- */
.service-hero { display: flex; flex-direction: column; gap: 28px; }
.service-hero__grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.service-hero__text { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.service-hero__image { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--color-gold-border); }
@media (min-width: 900px) {
    .service-hero__grid.has-image { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
}
.service-sub { gap: 16px; }
.service-sub .card { gap: 10px; }

.item-nav {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 24px; border-top: 1px solid var(--color-line);
}
.item-nav__link {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: var(--tap-min); padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--color-accent-green); font-weight: 500; text-decoration: none;
}
.item-nav__link:hover { color: var(--color-accent-green); background: var(--color-sidebar); }

/* ---- Services index ---- */
.services-index__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.service-flagship {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    min-height: 260px; padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--gradient-accent);
    box-shadow: var(--shadow-accent);
    color: var(--color-on-primary); text-decoration: none; min-width: 0;
}
.service-flagship:hover { color: var(--color-on-primary); filter: brightness(1.03); }
.service-flagship__body { display: flex; flex-direction: column; gap: 12px; }
.service-flagship__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; overflow-wrap: break-word; }
.service-flagship__text { font-size: 17px; line-height: 1.5; max-width: 560px; }
@media (min-width: 900px) {
    .service-flagship { min-height: 340px; padding: 40px; gap: 40px; }
    .service-flagship__text { font-size: 18px; }
}
.card--service { gap: 14px; padding: 28px; border-radius: var(--radius-lg); }
.card--service .card__title { font-size: 20px; }
.service-card__icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    background: #FBF0D9; color: var(--color-accent-orange);
}

/* ---- from parts/c-cases-blog.css ---- */
/* ---- Cases / Blog / Contacts (WP6 part C) ---- */

/* Case cards (index + related) */
.case-grid { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.case-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    text-decoration: none;
}
.case-card:hover { color: var(--color-ink); border-color: var(--color-line-strong); box-shadow: var(--shadow-card); }
.case-card[hidden] { display: none; }
.case-card__media { display: flex; width: 100%; height: 220px; object-fit: cover; background: var(--color-sidebar); overflow-wrap: anywhere; }
.case-card__media.plate { font-size: 32px; }
@media (min-width: 900px) { .case-card__media.plate { font-size: 38px; } }
.case-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.case-card__title { font-size: 21px; font-weight: 600; line-height: 1.25; }
.case-card__meta { font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.case-card--compact { border-radius: var(--radius-card); }
.case-card--compact .case-card__media { height: 160px; }
.case-card--compact .case-card__media.plate { font-size: 28px; }
.case-card--compact .case-card__body { padding: 16px 20px 20px; }
.case-card--compact .case-card__title { font-size: 18px; }

/* Case page */
.case-head { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.case-head__row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; }
.case-head__main { flex: 2 1 min(520px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.case-head__main h1 { overflow-wrap: anywhere; }
.case-head__subtitle { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 500; color: var(--color-ink); }
.case-facts {
    flex: 1 1 min(300px, 100%);
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    font-size: 15px;
}
.case-facts__row { display: flex; flex-direction: column; gap: 4px; padding: 16px 22px; border-bottom: 1px solid var(--color-line-soft); min-width: 0; }
.case-facts__row:last-child { border-bottom: none; }
.case-facts dt { font-size: 13px; color: var(--color-muted); }
.case-facts dd { margin: 0; overflow-wrap: anywhere; }
.case-facts__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.case-facts a.chip-tag { background: var(--color-gold-tint, #FBF0D9); color: var(--color-ink); font-weight: 500; text-decoration: none; }
.case-facts a.chip-tag:hover { text-decoration: underline; }
.case-hero { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--color-line); }
.case-text { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.case-text .prose { max-width: 860px; font-size: 18px; line-height: 1.75; }
.case-text .prose h3 { font-size: clamp(24px, 2.6vw, 34px); }
.case-items { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.case-items .card { padding: 28px; border-radius: var(--radius-lg); }
.case-items .card__title { font-size: 19px; }
.case-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--color-line); }
.case-nav .btn { max-width: 100%; }
.case-nav__all { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 18px; font-weight: 600; text-decoration: none; }

/* Blog */
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.post-grid { gap: 24px; }
.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    text-decoration: none;
}
.post-card:hover { color: var(--color-ink); border-color: var(--color-line-strong); box-shadow: var(--shadow-card); }
.post-card__media { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--color-sidebar); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; min-width: 0; }
.post-card__meta { font-size: 13px; color: var(--color-muted); }
.post-card__tag { color: var(--color-accent-orange); font-weight: 600; }
.post-card__title { font-size: 20px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.post-card__text { font-size: 15px; line-height: 1.55; color: var(--color-body); }
.post-card__more { font-size: 16px; font-weight: 600; color: var(--color-accent-green); }
@media (min-width: 900px) {
    .post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius-xl); }
    .post-card--featured .post-card__media { height: 100%; min-height: 340px; }
    .post-card--featured .post-card__body { justify-content: center; gap: 16px; padding: 40px; }
    .post-card--featured .post-card__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: 34px; line-height: 1.15; }
    .post-card--featured .post-card__text { font-size: 17px; line-height: 1.6; }
}

/* Blog post */
.post { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.post__head { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
/* Article + «Содержание» (canvas BlogPost): the TOC sits above the text on
   phones and becomes a sticky right column from 1024px. */
.post__layout { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.post__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; max-width: 820px; }
.post__body h2 { scroll-margin-top: calc(var(--header-height) + 24px); }
/* The article's own in-text contents list duplicates the sidebar. */
.post__layout.has-toc .toc-inline,
.post__layout.has-toc .toc-inline + ul,
.post__layout.has-toc .toc-inline + ol { display: none; }
.toc {
    order: -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-sidebar);
}
.toc__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}
.toc__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.toc__list a { color: var(--color-ink); text-decoration: none; }
.toc__list a:hover { color: var(--color-accent-orange); text-decoration: underline; }
.toc__list a[aria-current="true"] { font-weight: 600; }
@media (min-width: 1024px) {
    .post__layout.has-toc { flex-direction: row; align-items: flex-start; gap: 64px; }
    .post__layout.has-toc .post__main { flex: 3 1 0; max-width: 760px; }
    .toc {
        order: 0;
        flex: 1 1 260px;
        max-width: 340px;
        position: sticky;
        top: calc(var(--header-height) + 24px);
        max-height: calc(100vh - var(--header-height) - 48px);
        overflow-y: auto;
    }
}
.post__head h1 { overflow-wrap: anywhere; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--color-muted); }
.post__hero { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.post__video { border-radius: var(--radius-card); overflow: hidden; }
.post__video iframe, .post__video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.post__body { min-width: 0; overflow-wrap: anywhere; }
.post__body .prose { font-size: 18px; line-height: 1.75; max-width: none; }
.post__body iframe { max-width: 100%; border: 0; }
.post__body img { max-width: 100%; height: auto; }
.post__cta-title { font-size: 18px; }

/* Contacts */
.contact-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.contact-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    text-decoration: none;
}
.contact-card__icon { color: var(--color-accent-orange); }
.contact-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card__text > span { font-size: 14px; color: var(--color-muted); }
.contact-card__text > strong, .contact-card__text > a { font-size: 22px; font-weight: 700; text-decoration: none; color: var(--color-ink); overflow-wrap: anywhere; }
.contact-card__text > a:hover { color: var(--color-accent-orange); }
.contact-card--chat { background: var(--gradient-green); border-color: var(--color-green-border); color: var(--color-on-primary); box-shadow: var(--shadow-button); }
.contact-card--chat:hover { color: var(--color-on-primary); filter: brightness(1.04); }
.contact-card--chat .contact-card__text > span { color: var(--color-on-primary); }
.contacts-body .prose { max-width: 860px; }
.contacts-body iframe { display: block; width: 100%; max-width: 100%; height: 360px; border: 0; border-radius: var(--radius-card); }
