/* Власний шрифт сайту (Inter, SIL OFL 1.1, assets/fonts/Inter-OFL.txt): однакова жирність на будь-якому пристрої */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-cyrillic-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    /* Кольори з символіки організації */
    --cyan: #31bdf2;
    --green: #489a08;
    --purple: #9c58a1;
    /* Робочі кольори (темніші, щоб текст був читабельним) */
    --blue: #08688f;
    --blue-dark: #12394d;
    --purple-dark: #7a3f80;
    --accent: var(--cyan);
    --bg: #f6f8fa;
    --card: #ffffff;
    --text: #1c2531;
    --muted: #5d6877;
    --line: #dde3ea;
    --danger: #b3261e;
    --ok: #1d7a46;
    --radius: 10px;
    --wrap: 1080px;
}

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

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

body {
    margin: 0;
    font: 17px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    /* Підвал притиснутий до низу: на короткій сторінці основний блок займає вільне місце */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---- Шапка ---- */
html { scroll-padding-top: 88px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(18, 57, 77, .08);
    background: #fff;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(90deg, var(--green) 0 33.3%, var(--purple) 33.3% 66.6%, var(--cyan) 66.6% 100%) 1;
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 0; }
.brand { display: block; line-height: 0; }
.brand img { height: 54px; width: auto; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 2000; background: var(--blue-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0; }

.nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; }
.nav a { display: block; padding: 8px 14px; border: 2px solid transparent; border-radius: 8px; color: var(--blue-dark); text-decoration: none; font-size: .98rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { background: #e9f6fc; }
.nav a[aria-current="page"] { background: var(--cyan); color: var(--blue-dark); font-weight: 700; }
.nav .in-branch > a:not([aria-current]) { background: #e9f6fc; }
.nav-home { display: none; }

/* Випадний список «Про організацію»: відкривається при наведенні й при фокусі з клавіатури */
.has-sub > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 0 .22em .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); vertical-align: middle; }
.subnav { position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(18, 57, 77, .18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; z-index: 110; }
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.subnav a { padding: 9px 12px; font-weight: 500; white-space: normal; }

.nav-cta-item { margin-left: 10px; }
.lang-switch { display: flex; gap: 2px; margin-left: 12px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f3f8fb; }
.lang-switch a { padding: 5px 10px; border-radius: 7px; color: var(--blue-dark); font-size: .84rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.lang-switch a:hover { background: #e1f1f8; }
.lang-switch a[aria-current="true"] { background: var(--blue-dark); color: #fff; }
.preview-notice { background: #fff8e1; border-bottom: 1px solid #f1dd9b; color: #5c4600; font-size: .9rem; padding: 7px 0; text-align: center; }

/* Кнопка меню: видна лише на вузьких екранах (чекбокс працює без JavaScript) */
.nav-toggle-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 10px; padding: 8px 14px; border: 2px solid var(--blue-dark); border-radius: 8px; color: var(--blue-dark); font-weight: 600; cursor: pointer; user-select: none; }
.nav-toggle .bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav-toggle-input:focus-visible + .nav-toggle { outline: 3px solid var(--cyan); outline-offset: 2px; }

.nav a.nav-cta { border: 2px solid #3a7d06; background: #3a7d06; color: #fff; font-weight: 700; } /* темніший зелений: білий текст має контраст 5,2:1 */
.nav a.nav-cta:hover { background: #2f6805; border-color: #2f6805; color: #fff; }
.nav a.nav-cta[aria-current="page"] { background: #3a7d06; color: #fff; }

/* ---- Основа ---- */
main { flex: 1 0 auto; padding: 32px 0 56px; }
.site-footer { flex: none; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--blue-dark); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 .6em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; }

.hero { background: linear-gradient(120deg, #e3f5fc 0%, #f1f8fb 55%, var(--bg) 100%); padding: 44px 0 40px; margin: -32px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.hero h1 { margin-bottom: .3em; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.hero p { max-width: 58ch; font-size: 1.1rem; color: #33475a; margin: 0 0 1.4em; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; color: var(--purple-dark); font-weight: 700; }
.hero-symbol { width: 250px; height: 250px; object-fit: contain; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--cyan); background: var(--cyan); color: var(--blue-dark); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(.93); color: var(--blue-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; line-height: 1.2; }
.btn .icon { flex: none; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-join { background: #3a7d06; border-color: #3a7d06; color: #fff; }
.btn-join:hover { background: #2f6805; border-color: #2f6805; color: #fff; filter: none; }
.btn-ghost { background: #fff; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost:hover { background: #eaf4f9; color: var(--blue-dark); filter: none; }
.hero-actions, .hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-bottom: 14px; }
.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin: 36px 0 8px; padding: 22px 26px; background: #eaf7fd; border: 1px solid #cdeaf7; border-left: 6px solid var(--green); border-radius: var(--radius); }
.cta-panel h2 { margin: 0 0 4px; }
.cta-panel p { margin: 0; color: #33475a; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; filter: none; }
.btn-sm { padding: 5px 12px; font-size: .9rem; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; filter: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 8px; }
.fact { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: var(--radius); padding: 12px 18px 14px; }
.fact:nth-child(3n+1) { border-top-color: var(--green); }
.fact:nth-child(3n+2) { border-top-color: var(--purple); }
.fact span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fact strong { font-size: 1.1rem; color: var(--blue-dark); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.section-head h2 { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 16px rgba(18, 57, 77, .12); }
.card-img { display: block; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; background: #e8ebf0; }
.card-media { position: relative; display: block; }
.card-tag { position: absolute; left: 12px; top: 12px; padding: 3px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.card--project { border-top: 4px solid var(--purple); }
.card--project .card-tag { background: var(--blue-dark); color: #fff; }
.card--post { border-top: 4px solid var(--cyan); }
.card--post .card-tag { background: #fff; color: var(--blue-dark); box-shadow: 0 1px 4px rgba(18, 57, 77, .18); }
.card-date { position: absolute; right: 12px; bottom: 12px; padding: 3px 11px; border-radius: 8px; background: rgba(18, 57, 77, .9); color: #fff; font-size: .82rem; font-weight: 600; }
.type-tag { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.type-tag--project { background: var(--blue-dark); color: #fff; }
.type-tag--post { background: #dff3fc; color: var(--blue-dark); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { font-size: .85rem; color: var(--muted); }

.prose { max-width: 780px; margin-inline: auto; }
.prose img { border-radius: var(--radius); }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; }
.prose h3 { margin: 1.3em 0 .5em; }
.prose h4 { margin: 1.2em 0 .4em; }
.prose p > img { vertical-align: middle; }
.prose .video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: var(--radius); overflow: hidden; background: #0b1f26; }
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: #eaf4f9; color: var(--blue-dark); }
.prose blockquote { margin: 1em 0; padding: .2em 1.2em; border-left: 4px solid var(--purple); background: #fff; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Нумерований список = схема по кроках */
.prose ol { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0; }
.prose ol li { counter-increment: step; position: relative; padding: 4px 0 20px 58px; min-height: 40px; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; font-size: 1.1rem; }
.prose ol li:nth-child(3n+2)::before { background: var(--purple); }
.prose ol li:nth-child(3n)::before { background: var(--cyan); color: var(--blue-dark); }
.prose ol li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.prose ol li:last-child { padding-bottom: 4px; }
.prose ol li:last-child::after { display: none; }

/* Форма вступу */
.join-form label { display: block; font-weight: 600; margin: 16px 0 5px; }
.join-form label small { font-weight: 400; color: var(--muted); }
.join-form input[type=text], .join-form input[type=tel], .join-form input[type=email], .join-form input[type=date], .join-form textarea {
    width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: #fff; border: 1px solid #bfc6d1; border-radius: 8px;
}
.join-form input:focus, .join-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.join-form textarea { min-height: 120px; resize: vertical; }
.join-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.join-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 14px 0 0; }
.join-form label.check input { margin-top: 5px; flex: none; width: 18px; height: 18px; }
.join-form label.check > span { flex: 1 1 auto; min-width: 0; }
.join-form .parent-block { margin: 22px 0 0; padding: 4px 18px 18px; border: 1px dashed #bfc6d1; border-radius: var(--radius); background: #fff; }
.join-form .parent-block legend { font-weight: 700; color: var(--blue-dark); padding: 0 8px; }
.join-form .captcha { margin: 22px 0 6px; }
.join-form .captcha input[type=text] { max-width: 140px; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 10px; }
.merch-grid--products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.merch-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.merch-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 8px; background: #eef3f6; }
.merch-pair { display: block; }
.merch-pair--two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.merch-card h3 { margin: 10px 0 2px; font-size: 1.05rem; }
.merch-card p { margin: 0; }
.merch-card label.check { margin-top: 10px; }
.join-form fieldset.opts { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.join-form fieldset.opts legend { font-weight: 600; padding: 0; margin: 0 0 4px; }
.join-form fieldset.opts legend small { font-weight: 400; color: var(--muted); }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #fcebea; border: 1px solid #f0c0bd; color: var(--danger); border-radius: var(--radius); padding: 12px 18px; margin: 0 0 18px; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 700px) { .join-form .form-row { grid-template-columns: 1fr; } }

/* Ключові показники проєкту */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 28px; max-width: none; }
.metric { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 12px 16px 14px; }
.metric:nth-child(3n+2) { border-top-color: var(--purple); }
.metric:nth-child(3n) { border-top-color: var(--cyan); }
.metric { min-width: 0; }
.metric strong { display: block; font-size: clamp(1.3rem, 5.6vw, 1.9rem); line-height: 1.1; color: var(--blue-dark); overflow-wrap: anywhere; }
.metric span { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: .8rem; padding: 3px 10px; border-radius: 99px; background: #eaf7fd; color: var(--blue-dark); }
.cover { width: 100%; border-radius: var(--radius); margin: 0 0 24px; }
.back { display: inline-block; margin-top: 24px; }

.pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); text-decoration: none; }
.pagination span { background: var(--blue); color: #fff; border-color: var(--blue); }

.empty { padding: 28px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---- Документи ---- */
.doc-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.doc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.doc-title { font-weight: 600; }
.doc-desc { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }
.doc-actions { display: flex; gap: 8px; }

/* ---- Реквізити ---- */
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.requisites dt, .requisites dd { margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); font-size: .92rem; }
.requisites dt:nth-last-of-type(1), .requisites dd:last-of-type { border-bottom: 0; }
.bank { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.bank:nth-of-type(even) { border-left-color: var(--purple); }
.bank h3 { margin: 0 0 8px; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; overflow-wrap: anywhere; }
.iban { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.02rem; }
.copy { margin-left: 8px; }

/* ---- Підвал ---- */
.site-footer { background: var(--blue-dark); color: #d3e0e8; padding: 38px 0 20px; font-size: .94rem; border-top: 5px solid transparent; border-image: linear-gradient(90deg, var(--green) 0 33.3%, var(--purple) 33.3% 66.6%, var(--cyan) 66.6% 100%) 1; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px 40px; }
.footer-logo { display: block; width: 200px; height: auto; margin: 0 0 16px; }
.footer-org { margin-bottom: 8px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.footer-title { margin: 0 0 12px; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb8c7; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 28px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; color: #9fb8c7; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { text-decoration: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }
.link-btn:hover { text-decoration: none; }
.prose .link-btn { color: var(--blue); }
.hint-text { color: var(--muted); font-size: .92rem; }
.prose h2 { margin-top: 1.4em; }

/* ---- Акценти-кляксы з символіки ---- */
.hero, .site-footer { position: relative; overflow: hidden; }
.hero .wrap, .site-footer .wrap { position: relative; z-index: 1; }
.hero::before, .hero::after, .site-footer::before {
    content: ""; position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: contain;
}
.hero::before { background-image: url(/assets/img/splash-green.png); width: 320px; height: 300px; left: -90px; bottom: -110px; opacity: .2; transform: rotate(-14deg); }
.hero::after { background-image: url(/assets/img/splash-purple.png); width: 250px; height: 316px; right: 230px; top: -130px; opacity: .18; transform: rotate(16deg); }
.site-footer::before { background-image: url(/assets/img/splash-purple.png); width: 230px; height: 290px; right: -60px; bottom: -120px; opacity: .22; transform: rotate(-20deg); }

.section-head h2::before {
    content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: 1px;
    background: var(--green); box-shadow: 15px 0 0 var(--purple), 30px 0 0 var(--cyan); margin-right: 52px;
}
main .wrap > h1::after, .prose h1::after {
    content: ""; display: block; width: 88px; height: 5px; margin-top: 12px; border-radius: 3px;
    background: linear-gradient(90deg, var(--green) 0 33.3%, var(--purple) 33.3% 66.6%, var(--cyan) 66.6% 100%);
}

/* ---- Помилка ---- */
.error-page { text-align: center; padding: 48px 0; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--cyan); line-height: 1; }

/* Шапка стисла: логотип і кнопка «Меню»; саме меню відкривається під ними */
@media (min-width: 1025px) { .site-header .nav-toggle-input { display: none; } } /* на широкому екрані чекбокс не потрібен і не має ловити фокус */
@media (max-width: 1024px) {
    html { scroll-padding-top: 64px; }
    .site-header .wrap { gap: 0 12px; padding: 8px 0; }
    .brand img { height: 42px; }
    .brand { order: 1; margin-right: auto; }
    .lang-switch { order: 2; margin-left: 0; }
    .nav-toggle { order: 3; display: inline-flex; margin-left: 10px; }
    .nav { order: 4; display: none; flex-basis: 100%; margin: 8px 0 4px; max-height: calc(100vh - 84px); overflow-y: auto; }
    .nav-toggle-input:checked ~ .nav { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-home { display: block; }
    .nav a { padding: 11px 12px; font-size: 1rem; }
    .has-sub > a::after { display: none; }
    .subnav { position: static; min-width: 0; padding: 0 0 4px 16px; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
    .subnav::before { display: none; }
    .subnav a { padding: 9px 12px; color: #3b566a; }
    .nav-cta-item { margin: 8px 0 0; }
}

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .brand img { height: 34px; }
    .lang-switch { padding: 2px; }
    .lang-switch a { padding: 5px 8px; font-size: .78rem; }
    .nav-toggle { padding: 6px 10px; gap: 8px; font-size: .95rem; }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    .requisites, .bank dl { grid-template-columns: 1fr; }
    .requisites dt { border-bottom: 0; padding-bottom: 0; }
    .hero { padding: 28px 0 28px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-actions .btn, .hero-links .btn, .cta-actions .btn { flex: 1 1 100%; }
    .hero-symbol { display: none; }
}

/* ---- Хлібні крихти, часті запитання, карта сайту ---- */
.breadcrumbs { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

.faq-block { margin: 44px 0 8px; }
.faq-block h2 { margin-bottom: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--blue-dark); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eaf7fd; color: var(--blue); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: var(--radius); }
.faq-answer { padding: 0 18px 14px; }
.faq-answer p { margin: 0 0 .7em; }
.faq-more { font-size: .95rem; }
.faq-all { margin: 14px 0 0; font-weight: 600; }

.faq-toc { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 14px 20px; margin: 18px 0 28px; }
.faq-toc ol { margin: 0; padding-left: 22px; }
.faq-toc li { margin: 4px 0; }
.faq-entry { margin: 0 0 28px; padding-top: 4px; scroll-margin-top: 90px; }
.faq-entry h2 { margin-top: 0; font-size: 1.3rem; }
.faq-item { scroll-margin-top: 90px; }

.sitemap-page section { margin-bottom: 26px; }
.sitemap-page ul { columns: 2; column-gap: 32px; padding-left: 20px; }
.sitemap-page li { break-inside: avoid; margin: 3px 0; }
@media (max-width: 640px) { .sitemap-page ul { columns: 1; } }

.error-links { margin-top: 26px; text-align: left; max-width: 420px; margin-inline: auto; }
.error-links ul { padding-left: 20px; }
.error-page .error-title { font-size: 1.35rem; margin: .4em 0 1em; font-weight: 600; }

/* ---- Сторінка бренду ---- */
.brand-page section { margin: 0 0 38px; }
.brand-page .lead { font-size: 1.1rem; color: var(--blue-dark); }
.brand-hero { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 24px 36px; align-items: start; }
.brand-preview { margin: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.brand-preview img { max-width: 100%; height: auto; }
.brand-preview--checker { background-color: #fff; background-image: linear-gradient(45deg, #e6eaee 25%, transparent 25%, transparent 75%, #e6eaee 75%), linear-gradient(45deg, #e6eaee 25%, transparent 25%, transparent 75%, #e6eaee 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.brand-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.brand-card .brand-preview { height: 170px; margin-bottom: 12px; padding: 10px; }
.brand-card .brand-preview img { max-height: 100%; width: auto; }
.brand-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.brand-card p { margin: 0 0 8px; font-size: .95rem; }
.brand-card .brand-meta { color: var(--muted); font-size: .85rem; margin-top: auto; }
.swatches { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.swatch { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.swatch-chip { flex: none; width: 54px; height: 54px; border-radius: 10px; border: 1px solid var(--line); }
.swatch-chip--white { background: #ffffff; }
.swatch-chip--purple { background: #b057a5; }
.swatch-chip--blue { background: #00bef4; }
.swatch-chip--green { background: #009b00; }
.swatch div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.swatch-note { color: var(--muted); font-size: .88rem; }
.swatch .btn { align-self: flex-start; margin-top: 4px; }
.brand-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brand-rules > div { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 6px 18px 10px; }
.brand-rules .dont { border-top-color: var(--danger); }
.brand-rules h3 { margin: 12px 0 6px; }
@media (max-width: 760px) { .brand-hero, .brand-rules { grid-template-columns: 1fr; } }

/* ---- Вікно згоди на cookies ---- */
.btn-ghost-dark { background: transparent; border-color: transparent; color: var(--blue-dark); text-decoration: underline; }
.btn-ghost-dark:hover { background: #eaf4f9; filter: none; }
.cookie-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 920px; margin-inline: auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(18, 57, 77, .28); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { padding: 16px 20px 18px; }
.cookie-banner h2 { margin: 0 0 6px; font-size: 1.1rem; }
.cookie-banner h2:focus { outline: none; }
.cookie-banner p { margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.cookie-panel { margin: 0 0 12px; padding: 10px 14px; background: #f3f8fb; border-radius: 8px; }
.cookie-panel .check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font-size: .92rem; }
.cookie-panel input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-actions .btn[hidden] { display: none; }
@media (max-width: 640px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; max-height: 88vh; overflow-y: auto; }
    .cookie-actions .btn { flex: 1 1 100%; }
}

/* Благодійна банка monobank на сторінці «Підтримати» */
.jar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; margin: 1.8em 0; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); }
.jar h2 { margin: 0 0 .4em; }
.jar p { margin: .6em 0 0; }
.jar .btn { margin-top: .3em; }
.jar-qr { width: 190px; height: 190px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.jar-qr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .jar { grid-template-columns: 1fr; padding: 20px; } .jar-qr { display: none; } }
.merch-card select, .merch-card input[type=number] { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.merch-card label:not(.check) { margin-top: 10px; font-size: .9rem; }
.merch-form select:focus, .merch-form input[type=number]:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* Магазин мерчу: три картки в ряд, збільшення зображення (лайтбокс) */
.prose--shop { max-width: 1040px; }
.prose--shop > p, .prose--shop > h1, .prose--shop > .notice { max-width: 780px; }
.merch-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .merch-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .merch-grid--shop { grid-template-columns: minmax(0, 1fr); } }
.merch-zoom { position: relative; display: block; border-radius: 8px; cursor: zoom-in; }
.merch-zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.merch-zoom__badge { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(18, 57, 77, .85); color: #fff; font-size: .8rem; line-height: 1.3; opacity: 0; transition: opacity .15s; pointer-events: none; }
.merch-zoom:hover .merch-zoom__badge, .merch-zoom:focus-visible .merch-zoom__badge { opacity: 1; }
@media (hover: none) { .merch-zoom__badge { opacity: 1; } }
.merch-lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.merch-lightbox::backdrop { background: rgba(10, 20, 28, .82); }
.merch-lightbox__box { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.merch-lightbox__figure { margin: 0; max-width: min(92vw, 820px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.merch-lightbox__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(92vh - 56px); border-radius: 10px; background: #eef3f6; }
.merch-lightbox__cap { margin: 0; color: #fff; font-weight: 600; text-align: center; }
.merch-lightbox__btn { position: fixed; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--blue-dark); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.merch-lightbox__btn:hover { background: #fff; }
.merch-lightbox__btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.merch-lightbox__close { top: 14px; right: 14px; }
.merch-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.merch-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .merch-lightbox__prev { left: 6px; } .merch-lightbox__next { right: 6px; } }

/* Сторінка запису: заголовок і головна кнопка в одному рядку (на вузькому екрані кнопка переходить під заголовок) */
.entry-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; }
.entry-head h1 { margin: 0; flex: 1 1 auto; }
.entry-head .btn { flex: none; white-space: nowrap; }

/* Сторінки помилок: в одному стилі зі статичними (errors/*.html): градієнт бренду на коді, картка зі смугою */
.error-page { position: relative; overflow: hidden; max-width: 560px; margin: 28px auto; padding: 44px 28px 34px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 38px rgba(18, 57, 77, .12); }
.error-page::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--green) 0 34%, var(--purple) 34% 67%, var(--cyan) 67% 100%); }
.error-page .code { background: linear-gradient(90deg, var(--green), var(--purple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; font-size: clamp(4rem, 16vw, 6rem); }
.error-page .error-title { color: var(--blue-dark); }
