/* ===========================================================================
   shiroglazova.ru — публичный сайт.
   Мобильная версия — база, десктоп добирается через min-width.
   Токены и шкала — design/tokens.md, макеты — design/canvas/.
   =========================================================================== */

:root {
    --bg: #FBF8F4;
    --surface: #FFFFFF;
    --surface-warm: #F3EDE4;
    --ink: #23201D;
    --ink-muted: #6B6459;
    --accent: #8A5B3D;
    --accent-hover: #6E4931;
    --accent-soft: #EBE2DA;
    --border: #E7E0D6;
    --border-warm: #E0D7C9;
    --error: #B3413A;

    --radius-btn: 10px;
    --radius-card: 14px;
    --radius-photo: 18px;
    --shadow-card: 0 1px 2px rgba(35, 32, 29, .04), 0 8px 24px rgba(35, 32, 29, .06);

    --font-head: Lora, Georgia, 'Times New Roman', serif;
    --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    --container: 1200px;
    --gutter: 20px;
    --section: 72px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    margin: 0;
    text-wrap: balance;
}

h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 26px; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Layout --------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--warm {
    background: var(--surface-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.caption {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.caption--accent { color: var(--accent); }

.lead { font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 1.7; }
.muted { color: var(--ink-muted); }
.note { font-size: 13px; line-height: 1.7; color: var(--ink-muted); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
    display: inline-block;
    min-height: 44px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(.92); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; }

.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { color: var(--ink); }

.btn--onaccent { background: #fff; color: var(--accent); }
.btn--onaccent:hover { color: var(--accent); }

.btn--block { display: block; width: 100%; }
.btn--block-sm { display: block; width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 17px; }

/* --- Header --------------------------------------------------------------- */

.site-header {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: block; text-decoration: none; color: inherit; }
/* Both halves are spans, so they need to be told to stack — inline they ran
   together on one line. */
.brand__name { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.2; }
.brand__role { display: block; font-size: 11px; line-height: 1.3; color: var(--ink-muted); }

/* The menu is a panel under the header until there is room for a row.
   Toggling a class, not the [hidden] attribute: an attribute cannot win
   against an explicit display rule. */
.site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 40;
    flex-direction: column;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(35, 32, 29, .08);
}
.site-nav.is-open { display: flex; }

/* :not(.btn) so the call to action keeps its own colours — this rule is more
   specific than .btn--primary and was quietly greying the button out. */
.site-nav a:not(.btn) {
    color: var(--ink-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--border);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav .btn { margin-top: 12px; }

.nav-toggle {
    width: 44px; height: 44px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-btn); cursor: pointer;
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding: 40px 0 0; }
/* The global reset zeroes heading margins, so the hero heading needs its
   own breathing room before the lead. */
.hero h1 { margin-bottom: 18px; }
.hero__lead { margin-bottom: 28px; }
/* Stacked on a phone the block button and the text link ran together. */
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__facts { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-muted); }
.hero__photo { margin: 40px calc(var(--gutter) * -1) 0; }
.hero__photo img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 20%; }

/* --- Trust strip ---------------------------------------------------------- */

.trust { padding: 28px 0; }
.trust__list { display: flex; flex-direction: column; gap: 14px; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.trust__item svg { flex: none; margin-top: 4px; color: var(--accent); }

/* --- Cards ---------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
}
.card--plain { border-color: transparent; }
.card--raised { box-shadow: var(--shadow-card); }
.card__rule { width: 24px; height: 2px; background: var(--accent); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* --- About ---------------------------------------------------------------- */

.about__photo img {
    width: 100%; height: 360px; object-fit: cover; object-position: 50% 18%;
    border-radius: var(--radius-photo);
    margin-bottom: 28px;
}
.credentials li {
    display: flex; gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    font-size: 15px; line-height: 1.6; color: var(--ink-muted);
}
.credentials li:last-child { border-bottom: 1px solid var(--border); }
.credentials li::before {
    content: ''; flex: none; width: 18px; height: 2px;
    background: var(--accent); margin-top: 12px;
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
    display: flex; flex-direction: column; gap: 4px;
    border-left: 2px solid var(--border-warm);
    padding-left: 22px;
}
.step { padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step__num {
    font-family: var(--font-head); font-size: 26px; line-height: 1;
    font-weight: 600; color: var(--accent); margin-bottom: 8px;
}
.step h3 { margin-bottom: 6px; font-size: 18px; }
.step p { font-size: 15px; line-height: 1.65; color: var(--ink-muted); }

.panel {
    background: var(--accent-soft);
    border-radius: var(--radius-card);
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
}

/* --- Prices --------------------------------------------------------------- */

.price-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 28px; }
.price-card__amount {
    font-family: var(--font-head); font-size: 30px; line-height: 1.2;
    font-weight: 600; margin-bottom: 20px;
}
.price-card .btn { margin-top: auto; }
.includes li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 8px 0; font-size: 16px;
}
.includes svg { flex: none; margin-top: 4px; color: var(--accent); }

.terms { background: var(--surface-warm); border-radius: var(--radius-card); padding: 22px; }
.terms h3 { margin-bottom: 12px; font-size: 18px; }
.terms li { position: relative; padding: 6px 0 6px 18px; font-size: 14px; line-height: 1.7; }
.terms li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 8px; height: 1px; background: var(--ink-muted);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq__list { border-top: 1px solid var(--border-warm); }

.faq details { border-bottom: 1px solid var(--border-warm); }
.faq summary {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 18px 0;
    font-family: var(--font-head); font-size: 17px; line-height: 1.45; font-weight: 600;
    cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; flex: none;
    width: 12px; height: 12px; margin-top: 6px;
    border-right: 1.5px solid var(--ink-muted);
    border-bottom: 1.5px solid var(--ink-muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__answer { padding: 0 0 18px; font-size: 15px; line-height: 1.75; color: var(--ink-muted); max-width: 62ch; }

/* --- CTA band ------------------------------------------------------------- */

.cta { background: var(--accent); padding: 56px 0; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .86); margin-bottom: 24px; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 40px 0 32px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.site-footer__cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
.site-footer__heading {
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255, 255, 255, .5); margin-bottom: 10px;
}
.site-footer__nav li { line-height: 2; font-size: 14px; }
.site-footer__nav a { text-decoration: none; }
.channels { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.channels a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; }
.channels svg { flex: none; }
.requisites {
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin-top: 28px; padding-top: 20px;
    font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, .55);
}

/* --- Cookie banner -------------------------------------------------------- */

.cookie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(35, 32, 29, .08);
    padding: 16px 0;
}
.cookie__inner { display: flex; flex-direction: column; gap: 14px; }
.cookie p { font-size: 13px; line-height: 1.65; color: var(--ink-muted); margin: 0; }

/* --- Blog ----------------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.post-card__cover { display: block; height: 180px; background: var(--surface-warm); object-fit: cover; width: 100%; }
.post-card__body { padding: 20px; }
.post-card__date { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.post-card h3 { margin-bottom: 8px; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); margin: 0; }

.prose { max-width: 42em; }
.prose h2 { margin: 32px 0 14px; }
.prose h3 { margin: 24px 0 10px; }
.prose p { line-height: 1.8; margin-bottom: 18px; }
.prose ul { margin-bottom: 18px; }
.prose ul li { position: relative; padding: 6px 0 6px 26px; line-height: 1.75; }
.prose ul li::before {
    content: ''; position: absolute; left: 0; top: 18px;
    width: 12px; height: 2px; background: var(--accent);
}
.prose ol { margin-bottom: 18px; padding-left: 22px; list-style: decimal; }
.prose ol li { padding: 6px 0; line-height: 1.75; }
.prose blockquote {
    margin: 0 0 24px; padding: 4px 0 4px 22px;
    border-left: 3px solid var(--accent);
    font-style: italic; line-height: 1.75;
}
.prose img { border-radius: var(--radius-photo); margin: 24px 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.article__cover {
    width: 100%; height: 220px; object-fit: cover;
    border-radius: var(--radius-photo); margin-bottom: 32px;
}

/* --- Legal pages ---------------------------------------------------------- */

.legal { font-size: 16px; line-height: 1.75; max-width: 46em; }
.legal h2 { font-size: 22px; margin: 32px 0 14px; }
.legal h3 { font-size: 18px; margin: 24px 0 10px; }
.legal p { margin-bottom: 12px; }
.legal ul li { padding: 6px 0 6px 20px; position: relative; }
.legal ul li::before {
    content: ''; position: absolute; left: 0; top: 16px;
    width: 8px; height: 1px; background: var(--ink-muted);
}

/* --- Booking -------------------------------------------------------------- */

.booking { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }

.tz-note {
    background: var(--accent-soft); border-radius: var(--radius-btn);
    padding: 14px 16px; font-size: 14px;
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.tz-note__text { line-height: 1.6; }
.tz-note__now { color: var(--ink); }
.tz-note__auto { color: var(--ink-muted); }
.tz-note select {
    font: inherit; font-size: 14px; padding: 7px 10px;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}

.slot-day { margin-bottom: 28px; }
.slot-day h3 { margin-bottom: 12px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 12px; }

.slot {
    position: relative;
    width: 148px; min-height: 44px;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    font: inherit; text-align: left; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.slot:hover { border-color: var(--accent); }
.slot__time { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.slot__price { display: block; font-size: 14px; color: var(--ink-muted); }
.slot.is-selected { background: var(--accent-soft); border-color: var(--accent); border-width: 1.5px; }
.slot--promo .slot__price s { color: var(--ink-muted); }
.slot--promo .slot__price b { color: var(--accent); font-weight: 600; }
.slot__badge {
    position: absolute; top: -9px; right: 10px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px;
}

/* --- Forms ---------------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field > label, .field-label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 7px; }

.form-control {
    width: 100%; min-height: 52px;
    padding: 13px 14px;
    font: inherit; font-size: 16px;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-btn);
}
.form-control:focus { border-color: var(--accent); border-width: 1.5px; outline: none; padding: 12.5px 13.5px; }
textarea.form-control { min-height: 104px; resize: vertical; }

.has-error .form-control { border-color: var(--error); border-width: 1.5px; }
.help-block { font-size: 14px; color: var(--error); margin-top: 6px; }
.hint { font-size: 13px; line-height: 1.6; color: var(--ink-muted); margin-top: 6px; }

.choice { display: flex; flex-direction: column; gap: 10px; }
.choice--inline { flex-direction: row; gap: 24px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; min-height: 44px; }

.choice--boxed label {
    align-items: flex-start;
    border: 1px solid var(--border); border-radius: var(--radius-btn);
    padding: 14px 16px;
}
.choice--boxed input:checked + span { font-weight: 500; }
.choice--boxed label:has(input:checked) { border-color: var(--accent); border-width: 1.5px; background: var(--accent-soft); }
.choice__hint { display: block; font-size: 14px; color: var(--ink-muted); font-weight: 400; }

.consents { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.consents label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.consents input { flex: none; width: 20px; height: 20px; margin-top: 2px; }

.notice { background: var(--accent-soft); border-radius: var(--radius-btn); padding: 16px; font-size: 14px; line-height: 1.65; }

.alert { border-radius: var(--radius-btn); padding: 14px 16px; margin-bottom: 20px; font-size: 15px; }
.alert--error { background: #F8E4E2; color: #7A2A25; }

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

.selected-slot { background: var(--accent-soft); border-radius: var(--radius-btn); padding: 14px 16px; font-size: 15px; margin-bottom: 24px; }

/* ===========================================================================
   Десктоп
   =========================================================================== */

@media (min-width: 768px) {
    :root { --gutter: 24px; --section: 120px; }

    body { font-size: 17px; }
    h1 { font-size: 44px; line-height: 1.15; letter-spacing: -.015em; }
    h2 { font-size: 36px; }
    h3 { font-size: 24px; }

    .caption { font-size: 13px; margin-bottom: 16px; }
    .lead { font-size: 20px; }
    .small { font-size: 15px; }
    .note { font-size: 14px; }

    .site-header__inner { min-height: 72px; }
    .brand__name { font-size: 20px; }
    .brand__role { font-size: 12px; }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        font-size: 15px;
    }
    .site-nav a:not(.btn) { display: inline; min-height: 0; border-bottom: 0; }
    .site-nav .btn { margin-top: 0; }
    .nav-toggle { display: none; }

    .btn--block-sm { display: inline-block; width: auto; }

    .card { padding: 32px; }
    .card p { font-size: 16px; }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
    .cookie p { font-size: 14px; }
    .cookie .btn { flex: none; }

    .steps {
        flex-direction: row; gap: 24px;
        border-left: 0; padding-left: 0;
    }
    .step { flex: 1; padding-bottom: 0; }
    .step__num { font-size: 40px; color: var(--accent-soft); margin-bottom: 4px; }
    .step__num::after {
        content: ''; display: block; width: 28px; height: 2px;
        background: var(--accent); margin-top: 12px;
    }
    .step h3 { font-size: 18px; }
    .panel { padding: 24px 28px; font-size: 16px; max-width: 780px; }

    .price-grid { grid-template-columns: 7fr 5fr; gap: 24px; }
    .price-card { padding: 40px; }
    .price-card__amount { font-size: 40px; margin-bottom: 28px; }
    .includes li { font-size: 17px; }
    .terms { padding: 32px; }
    .terms h3 { font-size: 20px; margin-bottom: 16px; }
    .terms li { font-size: 15px; padding-left: 20px; }

    .faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
    .faq summary { font-size: 20px; padding: 24px 0; }
    .faq__answer { padding-bottom: 24px; font-size: 16px; }

    .trust { padding: 30px 0; }
    .trust__item svg { display: none; }

    .hero { padding: 80px 0 96px; }
    .hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
    .hero h1 { margin-bottom: 24px; }
    .hero__lead { max-width: 30em; margin-bottom: 36px; }
    .hero__actions { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
    .hero__facts { text-align: left; margin-top: 28px; font-size: 15px; }
    .hero__photo { position: relative; margin: 0; }
    .hero__photo::before {
        content: ''; position: absolute; inset: 0;
        transform: translate(22px, 22px);
        background: var(--surface-warm); border-radius: var(--radius-photo);
    }
    .hero__photo img {
        position: relative; height: 560px;
        border-radius: var(--radius-photo);
    }

    .about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
    .about__photo img { height: 600px; margin-bottom: 0; }
    .credentials li { font-size: 16px; padding: 14px 0; gap: 16px; }
    .credentials li::before { width: 20px; margin-top: 13px; }

    .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
    .two-col p { line-height: 1.75; }

    .site-footer { padding: 56px 0 0; }
    .site-footer__cols { grid-template-columns: 5fr 3fr 4fr; gap: 48px; padding-bottom: 40px; }
    .site-footer__nav li { font-size: 15px; }
    .channels a { font-size: 15px; }
    .requisites { margin-top: 0; padding: 22px 0 36px; font-size: 13px; }

    .cta { padding: 88px 0; }
    .cta p { font-size: 20px; max-width: 620px; margin-left: auto; margin-right: auto; }

    .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .post-card__cover { height: 200px; }
    .post-card__body { padding: 24px; }
    .article__cover { height: 420px; }

    .booking { grid-template-columns: 7fr 5fr; gap: 48px; }
    .booking__form { position: sticky; top: 24px; }
}

@media (min-width: 1024px) {
    h1 { font-size: 52px; }
    .article__grid { display: grid; grid-template-columns: 200px minmax(0, 720px) 1fr; gap: 40px; }
    .toc { position: sticky; top: 24px; font-size: 15px; }
    .toc li { margin-bottom: 12px; }
    .toc a { color: var(--ink-muted); text-decoration: none; }
    .toc a:hover, .toc a.is-active { color: var(--accent); }
}

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

/* Cover stand-in for an article without an image: an abstract texture in the
   palette, never a stock photo. */
.post-card__cover--empty {
    position: relative;
    background: var(--surface-warm);
    overflow: hidden;
}
.post-card__cover--empty::before {
    content: '';
    position: absolute;
    left: -30px; bottom: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--accent-soft);
}
.post-card__cover--empty::after {
    content: '';
    position: absolute;
    right: 28px; top: 34px;
    width: 96px; height: 2px;
    background: var(--accent);
    box-shadow: 0 18px 0 -0.5px rgba(138, 91, 61, .55), 0 36px 0 -1px rgba(138, 91, 61, .3);
}

/* Places the lawyer left to fill in stay visible on the page as well as in
   the panel — a published document with an unfilled slot is a real risk. */
.legal mark {
    background: #FBE9C7;
    color: #6B4B0A;
    padding: 0 .25em;
    border-radius: 3px;
}

/* --- Print ---------------------------------------------------------------
   The parental consent form is meant to come out of a printer or a phone's
   "save as PDF", so the page furniture steps aside. */

@media print {
    .site-header,
    .site-footer,
    .cookie,
    .no-print { display: none !important; }

    body { background: #fff; color: #000; font-size: 12pt; line-height: 1.5; }
    .section { padding: 0; }
    .container { max-width: none; padding: 0; }

    h1 { font-size: 18pt; }
    .legal { font-size: 12pt; max-width: none; }
    .legal h2 { font-size: 14pt; page-break-after: avoid; }
    .legal p { margin-bottom: 8pt; }
    .legal mark { background: transparent; color: #000; border-bottom: 1px solid #000; }

    a { color: #000; text-decoration: none; }
}

/* --- Trust strip ----------------------------------------------------------
   Equal columns cannot hold this text: "Отмена за 24 часа — возврат 100%" is
   254px, while a quarter of the 1200px container leaves 240px once the
   dividers' padding is taken out — it wrapped on every desktop width. Columns
   are sized to their content instead, and below the width where all four fit
   on one line they fall into a 2×2 grid rather than wrapping mid-phrase. */

@media (min-width: 768px) and (max-width: 1119.98px) {
    .trust__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
    }
    .trust__item { padding: 0 28px; border-left: 1px solid var(--border-warm); }
    .trust__item:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (min-width: 1120px) {
    .trust__list { flex-direction: row; gap: 0; }
    .trust__item { flex: 1 1 auto; padding: 0 28px; border-left: 1px solid var(--border-warm); }
    .trust__item:first-child { padding-left: 0; border-left: 0; }
    .trust__item:last-child { padding-right: 0; }
}
