/* psycholog.my — shared design system
   Direction: "КПТ-тетрадь". Calm sage paper, ink text, one marker-yellow highlight.
   Green is reserved for actions (links, buttons); headings are ink.
   Signature: the СМЭР worksheet (situation → thought → emotion → reaction). */

/* ---------- Tokens ---------- */
:root {
    --paper: #f3f5f1;
    --surface: #ffffff;
    --band: #e5ece6;
    --ink: #1d2a23;
    --ink-2: #47554d;
    --line: #d3dbd4;
    --line-strong: #b7c3b9;
    --sage: #3e6a50;
    --sage-deep: #2b4c39;
    --marker: #f3d46e;
    --danger-bg: #fbecea;
    --danger: #8f2a22;
    --ok-bg: #e4f1e6;
    --ok: #24573a;

    --font-display: 'Literata', Georgia, 'Times New Roman', serif;
    --font-body: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem);
    --fs-3xl: clamp(2.125rem, 1.3rem + 3vw, 3.5rem);

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 72px;
    --sp-9: 112px;

    --r-sm: 4px;
    --r-md: 8px;
    --wrap: 1120px;
    --measure: 68ch;
    --header-h: 68px;

    /* Legacy aliases used inside translated content strings */
    --bg-color: var(--paper);
    --text-color: var(--ink);
    --accent-color: var(--sage);
    --grey: var(--ink-2);
    --white: #ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    font-feature-settings: "kern", "liga";
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 var(--sp-4);
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); font-weight: 600; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
li { margin-bottom: var(--sp-2); }
strong { font-weight: 650; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sage-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--marker); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

.skip-link {
    position: absolute; left: var(--sp-4); top: -60px; z-index: 3000;
    background: var(--ink); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--sp-3); color: #fff; }
.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;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.wrap--narrow { max-width: 820px; }
.section { padding: var(--sp-8) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--band { background: var(--band); border-top: 0 !important; }
.section--band + .section { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: var(--sp-6); }
.section-head p { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.55; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-7); align-items: start; }
.split > .split-aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }

/* Utility label: used only for real form-like labels (worksheet columns, facts) */
.label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 48px; padding: 12px 24px;
    background: var(--sage); color: #fff;
    border: 1px solid var(--sage); border-radius: 6px;
    font: 600 var(--fs-base)/1.2 var(--font-body);
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn--ghost:hover { background: var(--sage); color: #fff; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Site header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(243, 245, 241, 0.96);
    border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(243, 245, 241, 0.88); backdrop-filter: blur(8px); } }
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.brand-role { font-size: var(--fs-xs); color: var(--ink-2); }
.site-nav { display: flex; align-items: center; gap: var(--sp-5); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: var(--sp-2) 0; }
.site-nav a:not(.btn):hover { color: var(--sage); }
.site-nav a[aria-current="page"] { color: var(--sage); box-shadow: inset 0 -2px 0 var(--sage); }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.lang-switch a {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px;
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { background: var(--band); color: var(--ink); }
.menu-button {
    display: none; align-items: center; gap: var(--sp-2);
    min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px;
    background: var(--surface); color: var(--ink); font: 600 var(--fs-sm) var(--font-body); cursor: pointer;
}
.menu-button-bars { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; }
.menu-button-bars::before, .menu-button-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.menu-button-bars::before { top: -5px; }
.menu-button-bars::after { top: 5px; }
.menu-button[aria-expanded="true"] .menu-button-bars { background: transparent; }
.menu-button[aria-expanded="true"] .menu-button-bars::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
    .site-header .wrap { gap: var(--sp-3); }
    .menu-button { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: var(--sp-2) var(--sp-5) var(--sp-5);
        box-shadow: 0 12px 24px rgba(29, 42, 35, 0.08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
    .site-nav a[aria-current="page"] { box-shadow: none; }
    .site-nav .btn { margin-top: var(--sp-4); }
}

/* ---------- Hero (home) ---------- */
.hero { padding: var(--sp-8) 0 var(--sp-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); align-items: center; }
.hero-kicker { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .h1-sub { display: block; font-size: 0.55em; font-weight: 500; color: var(--ink-2); margin-top: var(--sp-2); letter-spacing: 0; }
.hero-role { font-size: var(--fs-lg); font-weight: 600; color: var(--ink); margin-bottom: var(--sp-3); }
.hero-desc { font-size: var(--fs-lg); color: var(--ink-2); max-width: 36em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin: var(--sp-5) 0 var(--sp-6); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { margin: 0; padding: var(--sp-4) var(--sp-4) 0 0; }
.facts li + li { padding-left: var(--sp-4); border-left: 1px solid var(--line); }
.facts .fact-value { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; }
.facts .fact-label { display: block; font-size: var(--fs-sm); color: var(--ink-2); }
.hero-status { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--sp-5) 0 0; max-width: 40em; }
.hero-media { position: relative; }
.hero-photo { display: block; width: 100%; max-width: 420px; aspect-ratio: 416 / 475; object-fit: cover; border-radius: var(--r-md); margin-left: auto; }

/* ---------- Signature: СМЭР worksheet ---------- */
.worksheet {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(29, 42, 35, 0.35);
}
.worksheet-head { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-strong); }
.worksheet-title { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.worksheet-rows { margin: 0; padding: 0; list-style: none; }
.worksheet-rows li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4); border-bottom: 1px dashed var(--line-strong); }
.worksheet-rows li:last-child { border-bottom: 0; }
.worksheet-letter { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.worksheet-letter b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }
.worksheet-text { font-size: var(--fs-sm); line-height: 1.5; }
.worksheet-text mark { background: linear-gradient(transparent 55%, var(--marker) 55%); color: inherit; padding: 0 2px; }
.hero .worksheet { margin: calc(-1 * var(--sp-8)) 0 0 calc(-1 * var(--sp-7)); position: relative; max-width: 420px; }
.meter { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); }
.meter-track { flex: 1; height: 8px; background: var(--band); border-radius: 2px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--marker); }

/* ---------- Topic list (services, links to landing pages) ---------- */
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-7); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.topic-list li { margin: 0; border-bottom: 1px solid var(--line); }
.topic-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-4); padding: var(--sp-5) 0; color: var(--ink); text-decoration: none; }
.topic-link:hover { color: var(--ink); }
.topic-link:hover .topic-title { color: var(--sage); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.topic-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; grid-column: 1; }
.topic-desc { grid-column: 1; color: var(--ink-2); font-size: var(--fs-sm); }
.topic-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--sage); font-size: 1.25rem; transition: transform .15s ease; }
.topic-link:hover .topic-arrow { transform: translateX(4px); }

/* ---------- Credentials ---------- */
.cred-block + .cred-block { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.cred-list { list-style: none; padding: 0; }
.cred-list li { padding-left: var(--sp-5); position: relative; margin-bottom: var(--sp-3); }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1px; background: var(--ink-2); }
.cred-docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.cred-docs a { display: block; text-decoration: none; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.4; }
.cred-docs img { display: block; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); margin-bottom: var(--sp-2); transition: border-color .15s ease; }
.cred-docs a:hover img { border-color: var(--sage); }
.diplom-btn {
    display: inline-flex; align-items: center; vertical-align: baseline; margin-left: var(--sp-1);
    min-height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px;
    background: var(--surface); color: var(--sage); font: 600 var(--fs-xs) var(--font-body); cursor: pointer;
}
.diplom-btn:hover { border-color: var(--sage); }

/* ---------- Prices ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-6); }
.price-table caption { text-align: left; font-size: var(--fs-sm); color: var(--ink-2); padding-bottom: var(--sp-3); }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.price-table thead th { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-top: 0; }
.price-table .price-name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; display: block; }
.price-table .price-note { display: block; color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-1); }
.price-table .price-czk { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; white-space: nowrap; }
.price-table .num { white-space: nowrap; }
.callout { border-left: 3px solid var(--sage); padding: var(--sp-1) 0 var(--sp-1) var(--sp-5); margin: var(--sp-6) 0; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }

/* Real sequence -> numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); padding: 0; margin: var(--sp-5) 0 0; }
.steps li { counter-increment: step; margin: 0; padding-top: var(--sp-4); border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1; margin-bottom: var(--sp-3); color: var(--sage); }
.steps h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* ---------- Disclosure (practices, FAQ) ---------- */
.disclosure-group { border-top: 1px solid var(--ink); }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure > summary {
    list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: var(--sp-4);
    align-items: start; padding: var(--sp-5) 0; min-height: 48px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary h3 { margin: 0; font-size: var(--fs-lg); }
.disclosure > summary .summary-sub { display: block; grid-column: 1; font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink-2); font-weight: 400; margin-top: calc(var(--sp-1) - var(--sp-4)); }
.disclosure > summary::after {
    content: "+"; grid-column: 2; grid-row: 1; justify-self: end; font-size: 1.5rem; line-height: 1.1; color: var(--sage); font-family: var(--font-body);
}
.disclosure > summary:has(.summary-sub)::after { grid-row: 1 / span 2; }
.disclosure[open] > summary::after { content: "−"; }
.disclosure > summary:hover h3 { color: var(--sage); }
.disclosure-body { padding: 0 0 var(--sp-5); max-width: var(--measure); }
.disclosure-body ul { padding-left: 1.1em; }
.disclosure-body > :last-child { margin-bottom: 0; }
.practice-cat { margin: var(--sp-7) 0 var(--sp-3); font-size: var(--fs-xl); }
.practice-cat:first-of-type { margin-top: 0; }
.note { color: var(--ink-2); font-size: var(--fs-sm); }
.warning-note { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); color: var(--ink-2); font-size: var(--fs-sm); max-width: var(--measure); margin-bottom: var(--sp-6); }

/* ---------- Contact + forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; }
.contact-methods { list-style: none; padding: 0; margin: var(--sp-5) 0; border-top: 1px solid var(--line); }
.contact-methods li { margin: 0; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.contact-methods .label { display: block; margin-bottom: var(--sp-1); }
.contact-methods a { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--ink); text-decoration-color: var(--line-strong); }
.contact-methods a:hover { color: var(--sage); }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-6); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .optional { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: var(--fs-base); color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 1px; border-color: var(--sage-deep); }
.form-consent { font-size: var(--fs-xs); color: var(--ink-2); margin: var(--sp-2) 0 var(--sp-4); }
.notice { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); margin-bottom: var(--sp-5); font-size: var(--fs-sm); border: 1px solid transparent; }
.notice a { color: inherit; font-weight: 700; }
.notice--ok { background: var(--ok-bg); color: var(--ok); border-color: #b8d6bf; }
.notice--error { background: var(--danger-bg); color: var(--danger); border-color: #ecc4bf; }

/* ---------- FAQ ---------- */
.faq-list .disclosure > summary h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 650; }
.faq-list .disclosure-body p { color: var(--ink-2); }

/* ---------- Site footer ---------- */
.site-footer { background: var(--ink); color: #d9e2db; padding: var(--sp-7) 0 var(--sp-6); font-size: var(--fs-sm); }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--marker); }
.site-footer :focus-visible { outline-color: var(--marker); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--sp-6); }
.footer-brand { font-family: var(--font-display); font-size: var(--fs-lg); color: #fff; font-weight: 600; margin-bottom: var(--sp-2); }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--sp-5); }
.footer-links li { margin: 0 0 var(--sp-2); break-inside: avoid; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); color: #b9c6bd; font-size: var(--fs-xs); }
.site-footer .legal-note { color: #b9c6bd !important; margin: var(--sp-3) 0 0 !important; max-width: 60ch !important; text-align: left; }
.site-footer .legal-note a { color: #fff !important; }

/* ---------- Inner pages (service, about, privacy) ---------- */
.page-head { padding: var(--sp-7) 0 var(--sp-6); border-bottom: 1px solid var(--line); }
.crumbs { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--sp-4); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--sage); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: var(--sp-7); align-items: end; }
.page-head .lead { max-width: 40em; }
.page-head-photo { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); justify-self: end; }
.page-meta { font-size: var(--fs-xs); color: var(--ink-2); margin-top: var(--sp-4); }
.content-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-7); }
.content-sections article { border-top: 1px solid var(--ink); padding-top: var(--sp-5); }
.content-sections article h2 { font-size: var(--fs-xl); }
.content-sections article > :last-child { margin-bottom: 0; }
.related-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; padding: 0; margin: 0; }
.related-links li { margin: 0; }
.cta-band { background: var(--band); padding: var(--sp-7) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.cta-band h2 { margin: 0; font-size: var(--fs-xl); }
.cta-band p { margin: var(--sp-2) 0 0; color: var(--ink-2); }

/* ---------- Tests ---------- */
.tests-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.test-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-5); display: flex; flex-direction: column; }
.test-card .label { margin-bottom: var(--sp-3); }
.test-card h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.test-card p { color: var(--ink-2); font-size: var(--fs-sm); flex: 1; }
.test-card .btn { align-self: flex-start; }
.test-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: var(--sp-4); }

.quiz { counter-reset: q; }
.question-item { padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); margin: 0; }
.question-item:first-child { border-top: 1px solid var(--ink); }
.question-text { display: block; font-weight: 600; margin-bottom: var(--sp-3); font-size: var(--fs-base); line-height: 1.45; }
.question-item.is-missing .question-text { color: var(--danger); }
.question-item.is-missing { box-shadow: inset 3px 0 0 var(--danger); padding-left: var(--sp-4); }
.options, .options-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.option-label {
    position: relative; display: inline-flex; align-items: center; gap: var(--sp-2);
    min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 6px;
    background: var(--surface); cursor: pointer; font-size: var(--fs-sm); line-height: 1.3;
    transition: border-color .12s ease, background-color .12s ease;
}
.option-label:hover { border-color: var(--ink-2); }
.option-label input { accent-color: var(--sage); width: 18px; height: 18px; margin: 0; flex: none; }
.option-label:has(input:checked), .option-label.checked { border-color: var(--sage); background: var(--ok-bg); color: var(--ink); }
.option-label:has(input:focus-visible) { outline: 3px solid var(--sage-deep); outline-offset: 2px; }
.quiz-submit, .submit-btn { margin-top: var(--sp-6); }
.result-box { background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px solid var(--sage); border-radius: var(--r-md); padding: var(--sp-6); margin: var(--sp-5) 0 var(--sp-6); }
.result-box h2, .result-box h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.score-display { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; line-height: 1; margin-bottom: var(--sp-4); }
.severity { font-size: var(--fs-base); }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-5); }
.result-actions .retry { font-size: var(--fs-sm); color: var(--ink-2); }
.score-minimal { border-top-color: #3f7d55; }
.score-mild { border-top-color: #b8901f; }
.score-moderate { border-top-color: #b5612a; }
.score-severe { border-top-color: #9b2c2c; }
.disclaimer, .disclaimer-text { font-size: var(--fs-sm); color: var(--ink-2); border-left: 3px solid var(--line-strong); padding-left: var(--sp-4); margin: var(--sp-6) 0; max-width: var(--measure); }
.test-info { margin: var(--sp-7) 0 0; padding: var(--sp-6) 0 0; border-top: 1px solid var(--ink); max-width: var(--measure); }
.test-info h3 { margin: var(--sp-5) 0 var(--sp-1); }
.test-info p { margin-bottom: 0; }
.test-info p + h3 { margin-top: var(--sp-5); }
.test-info h3 + p + p, .test-info > p:last-of-type { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
.test-info h2 { font-size: var(--fs-xl); }
.test-info h3 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 2500;
    max-width: 640px; margin: 0 auto; background: var(--ink); color: #e6ece7;
    border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm); line-height: 1.5;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.cookie-banner p { margin: 0 0 var(--sp-3); }
.cookie-banner a { color: #fff; }
.cookie-banner :focus-visible { outline-color: var(--marker); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }
.cookie-actions button { min-height: 44px; padding: 0 18px; border-radius: 6px; font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
.cookie-decline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.cookie-decline:hover { border-color: #fff; }
.cookie-accept { background: var(--marker); color: var(--ink); border: 1px solid var(--marker); }
.cookie-accept:hover { background: #f8e19a; }

/* ---------- Image modal ---------- */
.modal-diplom { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(15, 22, 18, 0.86); align-items: center; justify-content: center; padding: var(--sp-5); }
.modal-diplom.active { display: flex; }
.modal-content-diplom { max-width: min(960px, 100%); max-height: 100%; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.modal-content-diplom img { display: block; max-width: 100%; max-height: 82vh; object-fit: contain; }
.modal-caption { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.close-diplom {
    position: absolute; top: var(--sp-4); right: var(--sp-4); min-width: 44px; min-height: 44px; padding: 0 14px;
    background: var(--surface); color: var(--ink); border: 0; border-radius: 6px; font: 600 var(--fs-sm) var(--font-body); cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .split, .contact-grid, .page-head-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
    .split > .split-aside { position: static; }
    .hero .worksheet { margin: calc(-1 * var(--sp-7)) var(--sp-4) 0; max-width: none; }
    .hero-photo { margin: 0 auto; max-width: 360px; }
    .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .page-head-photo { display: none; }
}
@media (max-width: 720px) {
    :root { --header-h: 60px; }
    .wrap { padding: 0 var(--sp-4); }
    .section { padding: var(--sp-7) 0; }
    .hero { padding: var(--sp-6) 0 var(--sp-7); }
    .hero-actions .btn { width: 100%; }
    .facts .fact-value { font-size: var(--fs-lg); }
    .facts li { padding-right: var(--sp-2); }
    .facts li + li { padding-left: var(--sp-3); }
    .topic-list, .content-sections, .tests-list { grid-template-columns: minmax(0, 1fr); }
    .cred-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
    .form-card { padding: var(--sp-5) var(--sp-4); }
    .price-table thead { display: none; }
    .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
    .price-table tr { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
    .price-table tr:first-child { border-top: 1px solid var(--ink); }
    .price-table td { border: 0; padding: 0; }
    .price-table td.num { display: inline-block; width: auto; margin: var(--sp-2) var(--sp-4) 0 0; }
    .price-table td[data-label]::before { content: attr(data-label) " "; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
    .brand-role { display: none; }
    .worksheet-rows li { grid-template-columns: 72px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
    .site-header, .cookie-banner, .site-footer, .menu-button { display: none !important; }
    body { background: #fff; }
}

/* ---------- Home: about text + blank worksheet ---------- */
.about-text h3 { margin-top: var(--sp-6); }
.focus-list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); border-top: 1px solid var(--line); }
.focus-list li { margin: 0; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.focus-list li strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-1); }
.signoff { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.5; color: var(--ink); border-top: 1px solid var(--line); padding-top: var(--sp-5); margin-top: var(--sp-6); }
.worksheet-foot { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line-strong); font-size: var(--fs-sm); color: var(--ink-2); background: var(--paper); border-radius: 0 0 var(--r-md) var(--r-md); }
.worksheet--blank { list-style: none; padding: 0; margin: 0 0 var(--sp-4); box-shadow: none; }
.worksheet--blank li { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--sp-6); }
.disclosure > summary h4 { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.disclosure > summary:hover h4 { color: var(--sage); }
#process h3 { margin-top: var(--sp-7); }
#process .section-head + h3 { margin-top: 0; }
.steps h4 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.price-table tbody th { font-weight: 400; }
.lang-switch, .menu-button { flex-shrink: 0; }
.brand { min-width: 0; }
.price-cur { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 720px) {
    .brand-name { font-size: 1rem; }
    .lang-switch a { min-width: 36px; min-height: 40px; }
    .menu-button { padding: 0 12px; }
    .price-table caption { display: block; width: 100%; }
}
@media (max-width: 360px) {
    .menu-button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.small-h2 { font-size: var(--fs-xl); }
.page-head .hero-actions { margin-bottom: 0; }
.policy section { padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
.policy section:first-child { border-top: 1px solid var(--ink); }
.policy h2 { font-size: var(--fs-lg); }
.policy p { max-width: var(--measure); }

/* ---------- Test pages ---------- */
.test-head { padding: var(--sp-7) 0 var(--sp-5); }
.test-head h1 { font-size: var(--fs-2xl); }
.test-head p { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.55; max-width: var(--measure); }
.submit-btn, .cta-btn, .btn-retry {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
    border-radius: 6px; font: 600 var(--fs-base)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    border: 1px solid var(--sage); transition: background-color .15s ease, color .15s ease;
}
.submit-btn, .cta-btn { background: var(--sage); color: #fff; }
.submit-btn:hover, .cta-btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.btn-retry { background: transparent; color: var(--sage); }
.btn-retry:hover { background: var(--sage); color: #fff; }
.result-box .btn, .result-box .cta-btn, .result-box .btn-retry { margin: var(--sp-2) var(--sp-2) 0 0; }
.result-box .retry { display: inline-block; margin-top: var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); }
.result-box:focus { outline: none; }
.result-box:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }
.test-form, .container form { margin: 0; }
.notice:focus { outline: none; }
.notice:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; }
