@font-face {
    font-family: "Inter";
    src: url("./assets/fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
/* Arial, підігнаний під ширину обрізаного Inter окремо для кожного накреслення:
   поки шрифт вантажиться, рядки переносяться майже так само, як після підміни (CLS).
   Коефіцієнти Inter/Arial виміряно 31.10 на тексті сайту (UK, DE): 1,03 (400), 0,99 (600), 1,00 (700). */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("ArialMT");
    font-weight: 100 500;
    size-adjust: 104%;
    ascent-override: 93.8%;
    descent-override: 23.4%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial Bold"), local("Arial-BoldMT");
    font-weight: 501 650;
    size-adjust: 98.9%;
    ascent-override: 98%;
    descent-override: 24.5%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial Bold"), local("Arial-BoldMT");
    font-weight: 651 900;
    size-adjust: 97%;
    ascent-override: 96.9%;
    descent-override: 24.2%;
    line-gap-override: 0%;
}
:root {
    --main: #2E86AB;
    --teal-dark: #00695C;
    --accent: #E17055;
    --text: #2D3436;
    --bg: #FFFFFF;
    --second: #F8F9FA;
}

html {
    font-size: 16px;
    scroll-padding-top: 6rem;
}

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

body {
    font-family: "Inter", "Inter Fallback", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}

.policy-page {
    min-height: 100vh;
    padding-inline: 20px;
    color: var(--bg);
}

.how-it-works, .card-contents, .profile-preview, .profile-languages,
.use-cases, .data-privacy, .sales-start, .faq {
    padding: 56px 20px;
}
.how-it-works h2, .card-contents h2, .profile-preview h2, .profile-languages h2,
.use-cases h2, .data-privacy h2, .sales-start h2, .faq h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}
.hero-inner, .how-inner, .card-contents-inner, .profile-preview-inner,
.profile-languages-inner, .use-cases-inner, .data-privacy-inner, .footer-inner {
    max-width: 1160px;
    margin-inline: auto;
}
.step, .use-case {
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    border-radius: 24px;
    background: var(--bg);
    box-shadow: 0 12px 18px rgb(25 65 88 / 50%);
}
.step h3, .use-case h3 {
    color: #08141C;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.step p, .use-case p {
    max-width: 60ch;
    font-size: 16px;
    line-height: 1.65;
    color: #435666;
}
.step img, .use-case img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    margin-top: auto;
    flex-shrink: 0;
}

[hidden] { display: none !important; }

.hero {
    position: relative;
    isolation: isolate;
    padding: 56px 20px 32px;
    border: 0;
    color: var(--bg);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 var(--hero-trust-space, 176px);
    z-index: -1;
    pointer-events: none;
    background: url("./assets/hero.webp") 73% center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}
.hero-inner {
    display: grid;
    gap: 32px;
}
.hero-copy { min-width: 0; }
.hero-category {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    color: var(--accent);
}
.hero-slogan {
    word-spacing: -.05em;
    max-width: 18ch;
    margin: 0 0 24px;
    font-size: clamp(2.25rem, 4.4vw, 3.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.hero-slogan .hero-title-accent {
    color: var(--accent);
}
/* PL: слова довші й щільніші за UA — від'ємний word-spacing зливав «w każdym języku» */
html[lang="pl"] .hero-slogan {
    word-spacing: .12em;
    letter-spacing: -.025em;
}
.hero-languages {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .8;
}
/* Два фіксовані рядки: перенос не залежить від шрифту (CLS при довантаженні Inter) */
.hero-languages > span { display: block; }
@media (max-width: 359px) { .hero-languages { font-size: 13px; } }
.hero-description {
    max-width: 48ch;
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.65;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.hero-cta:hover { background: var(--second); text-decoration: underline; }
.hero-cta:focus-visible { outline: 3px solid var(--bg); outline-offset: 5px; }
@media (max-width: 767px) {
    .hero-cta {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }
}
.hero-caption {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgb(255 255 255 / 78%);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
    border-top: 1px solid rgb(255 255 255 / 35%);
    font-size: 16px;
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust li::before {
    content: "";
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
}
@media (min-width: 1080px) {
    .hero { --hero-trust-space: 112px; padding-block: 80px 36px; min-height: clamp(520px, min(calc(42vw + 112px), calc(100vh - 250px)), 1000px); }
    .hero::before {
        background-position: right center;   /* кадр ~3:1, ліва смуга — розширення під текст; предмети справа не обрізаємо */
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
    }
    .hero { display: flex; flex-direction: column; }
    .hero-inner { flex: 1; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto auto; gap: 12px 40px; align-items: center; }
    .hero-caption { grid-column: 1 / -1; justify-self: end; text-align: right; }
    .hero-trust { grid-column: 1 / -1; }
}
/* Текст не налазить на лист анкети у фото. Лист масштабується разом з вікном, текстова колонка — ні (1160px по центру),
   тому на широких екранах текст опинявся під листом. Права межа тексту ≈ 34vw (лівий край листа на висоті тексту ≈ 0.44vw).
   --hero-left0: де колонка стоїть зараз; --hero-left: де вона має стояти (зсув ліворуч лише коли треба, не лівіше 24px).
   Абзац звужується до решти (мін. 300px). Нижче 1080px — телефонна схема (текст зверху, фото під ним): у двох колонках лист там займає надто багато ширини.
   Заміри зазору до листа (фото Gemini v6): UA, PL + тестові EN/DE/FR/ES/IT/CS на 1000–2560px; на 1000px накладання (DE −43, FR −73), на 1100px зазор ≥ 38px -> поріг 1080. */
@media (min-width: 1080px) {
    .hero {
        --hero-left0: max(20px, calc((100vw - 1160px) / 2));
        --hero-left: max(24px, min(var(--hero-left0), calc(34vw - 396px)));
    }
    .hero-copy { margin-left: calc(var(--hero-left) - var(--hero-left0)); }
    .hero-description { max-width: min(48ch, max(300px, calc(34vw - 16px - var(--hero-left)))); }
}

/* Телефон: фото першим (картку видно на першому екрані), під ним підпис, далі текст/кнопка і рядок довіри.
   Без накладання тексту на картку. .hero-inner розгортається в flex-колонку hero, ::before стає звичайним блоком.
   Порядок лише візуальний: у DOM h1 лишається першим (рішення 17.10, раніше текст був над фото). */
@media (max-width: 1079px) {
    .hero { display: flex; flex-direction: column; padding-top: 0; }
    .hero-inner { display: contents; }
    .hero-copy { order: 2; margin-top: 28px; }
    .hero::before {
        position: static;
        order: 0;
        z-index: auto;
        inset: auto;
        margin: 0 -20px;
        aspect-ratio: 1100 / 773;
        max-height: 420px;
        background: url("./assets/hero-mobile.webp") center / cover no-repeat;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 94%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 94%, transparent 100%);
    }
    .hero-caption { order: 1; margin-top: 6px; text-align: center; }
    .hero-trust { order: 3; margin-top: 24px; }
}

/* «Що стає простіше» (25.10, рада + @brand_psychologist): пари «Без картки / З карткою» під першим екраном */
.simpler { padding: 56px 20px; color: var(--text); }
.simpler-inner { max-width: 1160px; margin-inline: auto; }
.simpler h2 {
    max-width: 30ch;
    margin: 0 0 32px;
    color: var(--bg);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.simpler-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.simpler-pair {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    overflow-wrap: anywhere;
    border-radius: 24px;
    background: var(--bg);
    box-shadow: 0 12px 18px rgb(25 65 88 / 50%);
}
.simpler-label {
    margin: 0 0 6px;
    color: #5B6B78;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.simpler-label-with { margin-top: 20px; color: var(--teal-dark); }
.simpler-before { margin: 0; color: #435666; font-size: 16px; line-height: 1.65; }
.simpler-after {
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: #08141C;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .simpler { padding-block: 72px; }
    .simpler-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .simpler-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .simpler-pair { padding: 20px; }
}

.how-it-works {
    color: var(--text);
}

.how-it-works h2 {
    max-width: 30ch;
    margin: 0 0 32px;
    color: var(--bg);
    text-wrap: balance;
}
.steps {
    display: grid;
    align-items: stretch;
    grid-auto-rows: 1fr;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0 0;
}
.step > :not(img) { padding-inline: 24px; }
.step-number {
    flex-shrink: 0;
    margin: 0 0 12px;
    color: #287A9C;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.step h3 {
    margin: 0 0 4px;
    max-width: 30ch;
}
.step p {
    margin: 0 0 4px;
}

@media (min-width: 768px) {
    .how-it-works { padding-block: 72px; }
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .step { padding: 16px 0 0; }
    .step > :not(img) { padding-inline: 16px; }
}
@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .step { padding: 24px 0 0; }
    .step > :not(img) { padding-inline: 20px; }
}

@supports (grid-template-rows: subgrid) {
    .steps { grid-auto-rows: auto; row-gap: 0; }
    .step {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
        align-items: start;
    }
    .step img { margin-top: 0; }
    @media (max-width: 767px) {
        .steps { grid-template-rows: repeat(4, auto); }
    }
    @media (min-width: 768px) and (max-width: 1023px) {
        .step { margin-bottom: 24px; }
    }
}

.card-contents {
    color: var(--bg);
}

.card-contents h2 {
    max-width: 30ch;
    margin: 0 0 16px;
}
.card-contents-intro {
    max-width: 65ch;
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
}
.information-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.information-group {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 16px;
    overflow-wrap: anywhere;
    box-shadow: 0 12px 18px rgb(25 65 88);
}
.information-icon, .privacy-icon { display: block; width: 36px; height: 36px; margin-bottom: 24px; }
.information-group h3 {
    max-width: 30ch;
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.02em;
}
.information-group ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.6;
}
.information-group li { max-width: 60ch; padding-left: 4px; }
.information-group li::marker { color: var(--accent); }
@media (min-width: 768px) {
    .card-contents { padding-block: 72px; }
    .information-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .information-group { padding: 20px; }
}
@media (min-width: 1024px) {
    .information-group { padding: 28px; }
}

.profile-preview {
    color: var(--text);
}

.profile-preview h2 {
    max-width: 30ch;
    margin: 0 0 36px;
    color: var(--main);
    text-wrap: balance;
}
.profile-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.profile-fragment { min-width: 0; margin: 0; }
.profile-browser {
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 12px 28px rgb(45 52 54 / 30%);
}
.profile-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding-inline: 16px;
    background: var(--text);
}
.profile-browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--bg); }
.profile-browser-screen { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.profile-browser-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.profile-browser-screen::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(to bottom, rgb(255 255 255 / 0%), var(--bg));
    pointer-events: none;
}
.profile-fragment figcaption { margin-top: 24px; }
.profile-fragment h3 {
    max-width: 35ch;
    margin: 0 0 12px;
    color: var(--main);
    font-size: 24px;
    line-height: 1.3;
}
.profile-fragment p { max-width: 60ch; margin: 0; font-size: 16px; line-height: 1.65; }
.profile-preview-text { max-width: 72ch; margin: 32px 0 0; font-size: 18px; line-height: 1.65; }
@media (min-width: 768px) {
    .profile-preview { padding-block: 72px; }
    .profile-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

.profile-languages {
    color: var(--text);
}
.profile-languages-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 36px;
}
.profile-languages-copy, .profile-languages-visual { min-width: 0; }
.profile-languages h2 {
    margin: 0 0 24px;
    color: var(--main);
}
.profile-languages-description { max-width: 55ch; margin: 0 0 16px; font-size: 18px; line-height: 1.65; }
.profile-languages h3 { margin: 0 0 16px; font-size: 20px; line-height: 1.4; }
.profile-language-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
    line-height: 1.5;
}
.profile-language-list li { display: flex; align-items: center; gap: 12px; }
.profile-language-list img { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 1px solid #dde3e5; }
.profile-languages-options { min-width: 0; }
.profile-languages-options .profile-language-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.profile-languages-options .profile-language-list li {
    padding: 8px 18px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 999px;
}
/* Мови «у тестуванні» (DE, EN: шаблони готові, чекають офіційного перекладача) — пунктирна рамка */
.profile-languages-options .profile-language-list-testing li { border-style: dashed; opacity: .85; }
/* Мови «у підготовці» (25.10): шаблон ще не перекладено — менші й тихіші за «у тестуванні» */
.profile-languages-options .profile-language-list-planned { gap: 8px; margin-bottom: 0; font-size: 15px; }
.profile-languages-options .profile-language-list-planned li { padding: 4px 12px; border-style: dotted; opacity: .7; }
.profile-languages-visual img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
    .profile-languages { padding-block: 72px; }
    .profile-languages-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 24px;
    }
}
@media (min-width: 1200px) {
    .profile-languages-inner { gap: 32px; }
}

.use-cases {
    color: var(--text);
}

.use-cases h2 {
    margin: 0 0 32px;
    color: var(--bg);
}
.use-cases-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 24px; }
.use-case {
    display: flex;
    flex-direction: column;
}

.use-case-copy { padding: 24px 24px 4px; }
.use-case h3 {
    margin: 0 0 16px;
}
.use-case p {
    margin: 0;
}
@media (min-width: 768px) {
    .use-cases { padding-block: 72px; }
    .use-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .use-case-copy { padding: 16px 16px 4px; }
}
@media (min-width: 1024px) {
    .use-cases-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .use-case-copy { padding: 24px 20px 4px; }
}

.data-privacy {
    color: var(--bg);
}

.data-privacy h2 {
    max-width: 30ch;
    margin: 0 0 32px;
    text-wrap: balance;
}
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.privacy-tile {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 16px;
}
.privacy-tile h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; }
.privacy-tile p { max-width: 60ch; margin: 0; font-size: 16px; line-height: 1.65; }
@media (min-width: 768px) {
    .data-privacy { padding-block: 72px; }
    .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .privacy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .privacy-tile { padding: 20px; }
}

.sales-start {
    background: var(--text);
    color: var(--bg);
    text-align: center;
}
.sales-start-inner { max-width: 760px; margin-inline: auto; }
.sales-start h2 {
    margin: 0 0 24px;
}
.sales-start p { max-width: 60ch; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.sales-partner { margin-top: 32px; }
.sales-partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 24px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}
.sales-partner-link:hover { background: var(--second); text-decoration: underline; }
.sales-partner-link:focus-visible { outline: 3px solid var(--bg); outline-offset: 5px; }
@media (min-width: 768px) {
    .sales-start { padding-block: 80px; }
}

.faq {
    color: var(--text);
}
.faq-inner { max-width: 900px; margin-inline: auto; }
.faq h2 {
    margin: 0 0 32px;
    color: var(--bg);
}
.faq-items { display: grid; gap: 12px; }
.faq-item {
    min-width: 0;
    border: 1px solid #dde3e5;
    border-radius: 12px;
    background: var(--second);
}
.faq-item summary {
    min-height: 56px;
    padding: 18px 20px;
    border-radius: 11px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.faq-item summary::marker { color: var(--teal-dark); }
.faq-item summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq-item summary:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
.faq-item[open] { border-color: var(--teal-dark); }
.faq-item p {
    max-width: 65ch;
    margin: 0;
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.65;
}
@media (min-width: 768px) {
    .faq { padding-block: 72px; }
}

.policy-main .cooperation-lead { max-width: 65ch; font-size: 18px; line-height: 1.7; margin: 0 0 32px; }
.cooperation-grid { display: grid; gap: 24px; }
.cooperation-grid h3 { margin: 0 0 12px; font-size: 20px; }
.cooperation-grid ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.6; }
.policy-main .cooperation-contact { margin: 32px 0 0; font-size: 18px; }
.cooperation-contact a { font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 768px) { .cooperation-grid { gap: 40px; } }
.policy-main .market-link { margin: 32px 0 0; font-size: 18px; }
.market-link a, .market-back a { font-weight: 600; }
.market-chart { display: block; width: 100%; height: auto; aspect-ratio: 800 / 566; margin: 0 0 24px; border-radius: 12px; }
/* Вузька SVG (<picture>, ≤600 px) — інші пропорції; висота фіксована в scripts/build_market_chart.py (FIXED_H) */
@media (max-width: 600px) { .market-chart { aspect-ratio: 400 / 670; } }
.policy-main .market-disclaimer { max-width: 75ch; margin: 0 0 24px; font-size: 13px; line-height: 1.6; opacity: .8; }
.policy-main .market-back { margin: 24px 0 0; }

.site-footer {
    padding: 48px 20px;
    color: var(--bg);
    font-size: 16px;
    line-height: 1.65;
}

.footer-heading { margin-bottom: 32px; }
.footer-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; margin: 0 0 12px; font-size: 30px; font-weight: 800; }
.footer-year { font-size: 16px; font-weight: 400; }
.footer-slogan {
    min-width: 0;
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.25rem, 4.4vw, 3.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.footer-slogan-accent { color: var(--accent); }
.footer-disclaimer, .footer-note { max-width: 65ch; margin: 0 0 24px; }
.data-contact { max-width: 65ch; font-style: normal; font-size: 16px; line-height: 1.65; }
.data-contact > span { display: block; } /* лише підпис; не .dash всередині нього */
.site-footer a, .policy-page a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.site-footer a { color: inherit; }
.site-footer a:hover { text-decoration-thickness: 2px; }
.site-footer a:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; border-radius: 3px; }
.policy-header, .policy-main { max-width: 760px; margin-inline: auto; }
.policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 20px;
}
.policy-main { padding-block: 24px 64px; }
.policy-main h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
.policy-main h2 { margin-top: 32px; font-size: 24px; line-height: 1.3; }
.policy-main p { max-width: 65ch; font-size: 16px; line-height: 1.7; }

.policy-page a { color: inherit; }
.policy-page a:hover { text-decoration-thickness: 2px; }
.policy-page a:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; border-radius: 3px; }
@media (min-width: 768px) {
    .footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px 48px;
    }
    .footer-heading { display: contents; }
    .footer-brand { grid-column: 1; margin: 0; }
    .footer-slogan {
        grid-column: 2;
        grid-row: 1 / 5;
        align-self: center;
        justify-self: center;
        text-align: center;
    }
    .footer-disclaimer, .footer-note, .site-footer .data-contact { grid-column: 1; margin: 0; }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%)),
        linear-gradient(115deg, var(--main), var(--teal-dark));
    color: var(--bg);
    border-bottom: 1px solid rgb(46 134 171 / 18%);
    box-shadow: 0 4px 20px rgb(0 0 0 / 16%);
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .site-header {
        background: linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%)),
            linear-gradient(115deg, rgb(46 134 171 / 88%), rgb(0 105 92 / 88%));
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
}

.navbar {
    max-width: 1200px;
    margin-inline: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.brand-logo { display: block; height: 38px; width: auto; flex-shrink: 0; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    min-width: 44px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.06em;
}

.nav-links {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
}

.nav-links a:hover, .site-header button:hover, .language-switcher button:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.site-header :focus-visible {
    outline: 3px solid var(--bg);
    outline-offset: 3px;
    border-radius: 4px;
}

.site-header button, .language-switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.language-switcher {
    display: flex;
    margin-left: auto;
}
.language-switcher button {
    width: 44px;
    padding-inline: 6px;
    font-weight: 700;
}
.language-switcher button:focus-visible {
    outline: 3px solid var(--bg);
    outline-offset: 3px;
}
/* Зібрані мовні сторінки: одна кнопка <details> «UA ▾» → список мов (назви мовами самих мов) */
details.language-switcher { display: block; position: relative; } /* Safari: flex на <details> ламає розгортання */
.language-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.language-switcher[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.language-switcher summary:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.language-switcher summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.language-switcher ul {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 200;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid rgb(45 52 54 / 15%);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}
.language-switcher li a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}
.language-switcher li a:hover { background: var(--second); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.language-switcher li a:focus-visible { outline: 3px solid var(--main); outline-offset: -3px; }
.language-switcher li a[aria-current="page"] { font-weight: 700; }
.language-switcher li a[aria-current="page"]::after {
    content: "";
    width: 6px;
    height: 11px;
    margin: -3px 2px 0 auto;
    padding-left: 0;
    border-right: 2px solid var(--main);
    border-bottom: 2px solid var(--main);
    transform: rotate(45deg);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
/* Телефон: лого, мова і «Меню» в одному рядку (25.10; до того «Меню» стояло другим рядком під мовою — шапка 129 px).
   Розміри підібрані із запасом, щоб рядок вміщався і з Inter, і з запасним Arial на 320–767 px: інакше flex-wrap
   переносить кнопку залежно від шрифту і шапка стрибає при довантаженні Inter (PSI 25.10: CLS 0,353). */
@media (max-width: 767px) {
    .navbar { row-gap: 0; column-gap: 8px; padding: 10px 16px; }
    .brand { gap: 8px; font-size: 24px; margin-right: auto; }
    .brand-logo { height: 32px; }
    .navbar .language-switcher summary { padding: 10px; }
    .navbar .menu-toggle { padding: 10px 12px; gap: 8px; }
}
/* Меню під кнопкою до 1179 px, не лише на телефоні (30.10): на 900–1179 px пункти DE/EN не вміщались у рядок
   і переносились на другий — висота шапки залежала від мови й шрифту. */
@media (max-width: 1179px) {
    .navbar { row-gap: 0; }
    .brand { margin-right: auto; }
    .navbar .language-switcher { order: 1; margin-left: 0; }
    .navbar .menu-toggle { order: 2; }
    .navbar .nav-links { order: 3; margin-top: 10px; }
    /* До виконання app.js меню вже згорнуте, а кнопка займає місце: інакше шапка 383 → 129 px, коли скрипт згортає меню
       (PSI 25.10: CLS 0,26). Без JS розгорнутий список повертає noscript.css. */
    .navbar:not(.is-enhanced) .nav-links { display: none; }
}
/* Найвужчі телефони: на кнопці лише іконка, слово «Меню» лишається для екранного читача */
@media (max-width: 359px) {
    .navbar .menu-toggle > span:not(.menu-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

body.landing-page, body.policy-page {
    background: linear-gradient(165deg,
        #00070E 0%,
        #01232D 18%,
        #034653 38%,
        #053C3A 58%,
        #032B32 78%,
        #010A10 100%);
}

.landing-page main > section:not(.hero) + section,
.landing-page .site-footer {
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right,
        transparent 0%,
        rgb(255 255 255 / 8%) 20%,
        rgb(255 255 255 / 28%) 50%,
        rgb(255 255 255 / 8%) 80%,
        transparent 100%) 1;
}
.landing-page .profile-preview,
.landing-page .profile-preview h2,
.landing-page .profile-fragment h3,
.landing-page .profile-languages,
.landing-page .profile-languages h2 {
    color: #FFFFFF;
}

p.notice {
    position: relative;
    min-height: 64px;
    padding: 18px 20px 18px 64px;
    border: 0;
    border-radius: 14px;
    background: #EDF5F9;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}
p.notice::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 20px;
    width: 28px;
    height: 28px;
    background: url("./assets/info-notice.svg") center / contain no-repeat;
}
.notice a { color: var(--teal-dark); }
.notice a:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }

.carousel-dots { display: none; }
@media (max-width: 767px) {
    .simpler-inner, .how-inner, .use-cases-inner, .card-contents-inner, .data-privacy-inner { min-width: 0; }
    .simpler-grid, .steps, .use-cases-grid, .information-groups, .privacy-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 88%;
        column-gap: 16px;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        padding-bottom: 22px;
        scrollbar-width: thin;
    }
    .simpler-grid > *, .steps > *, .use-cases-grid > *, .information-groups > *, .privacy-grid > * { scroll-snap-align: start; }
    .mobile-carousel { scrollbar-width: none; }
    .mobile-carousel::-webkit-scrollbar { display: none; }
    .carousel-dots { display: flex; justify-content: center; gap: 4px; }
    .carousel-dots button {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--teal-dark);
        cursor: pointer;
    }
    .simpler .carousel-dots button,
    .how-it-works .carousel-dots button,
    .use-cases .carousel-dots button,
    .card-contents .carousel-dots button,
    .data-privacy .carousel-dots button { color: #FFFFFF; }
    .carousel-dots button::before {
        content: "";
        width: 8px;
        height: 8px;
        border: 2px solid currentColor;
        border-radius: 50%;
    }
    .carousel-dots button[aria-current="true"]::before { background: currentColor; }
    .carousel-dots button:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
    .mobile-carousel:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 4px; }
    .simpler .mobile-carousel:focus-visible,
    .how-it-works .mobile-carousel:focus-visible,
    .use-cases .mobile-carousel:focus-visible,
    .card-contents .mobile-carousel:focus-visible,
    .data-privacy .mobile-carousel:focus-visible { outline-color: #FFFFFF; }
}

.navbar.is-enhanced .nav-links { max-height: calc(100dvh - 90px); overflow-y: auto; }

@media (min-width: 1180px) {
    .navbar { flex-wrap: nowrap; gap: 12px; padding-inline: 16px; }
    .navbar .menu-toggle { display: none; }
    .nav-links { order: 2; flex-basis: auto; flex-direction: row; gap: 0; margin-left: auto; padding: 0; }
    .navbar .language-switcher { order: 3; margin-left: 0; }
    .nav-links a { padding-inline: 8px; }
    .navbar.is-enhanced .nav-links { max-height: none; overflow: visible; }
}

.step-img-wallet { object-position: 50% 10%; }

.policy-footer {
    max-width: 760px;
    margin-inline: auto;
    padding-block: 32px 48px;
    border-top: 1px solid currentColor;
    font-size: 16px;
    line-height: 1.65;
}
.policy-footer .footer-note { margin-bottom: 0; }
.policy-footer .footer-coop { margin-top: 12px; }
.policy-footer .footer-disclaimer { margin: 0 0 24px; }

/* Довге тире: 50% від початкового розміру, піднято на середину висоти літер (JS обгортає «—» у .dash) */
.dash {
    font-size: .5em;
    vertical-align: .29em;
    line-height: 0;
}
