/* ГС «З ПЕРЕМОГОЮ». Палітра й прийоми — docs/design.md */

:root {
    --navy: #0B1A3F;
    --navy-deep: #07102A;
    --wheat: #E3B23C;
    --wheat-hover: #C9972A;
    --paper: #F4F2EC;
    --mint: #E7ECEA;
    --white: #FFFFFF;
    --text: #14161F;
    --muted: #4B5262;
    --line: #D6DAD8;

    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-quote: 'Lora', Georgia, serif;

    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 14px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: clip;
    font: 400 17px/1.65 var(--font-body);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--wheat); color: var(--navy); padding: 8px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Типографіка ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 0 18px;
    font: 700 13px/1.2 var(--font-head);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--wheat-hover);
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--wheat); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.h2 {
    font: 800 clamp(28px, 3.6vw, 46px)/1.1 var(--font-head);
    text-transform: uppercase; letter-spacing: -.01em;
    color: var(--navy);
}

.prose { max-width: 760px; color: var(--muted); }
.prose p { margin: 0 0 1.1em; }
.prose--lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text); }
.prose ul { list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 30px; color: var(--text); }
.prose li::before {
    content: ''; position: absolute; left: 4px; top: .62em;
    width: 10px; height: 10px; background: var(--wheat); transform: rotate(45deg);
}
.prose blockquote, .quote {
    margin: 1.6em 0 0; padding: 0 0 0 28px;
    border-left: 3px solid var(--wheat);
    font: italic 500 clamp(22px, 2.4vw, 30px)/1.35 var(--font-quote);
    color: var(--navy);
}
.prose blockquote p, .quote p { margin: 0; }
.prose a { color: var(--navy); text-decoration-color: var(--wheat); text-underline-offset: 3px; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
    font: 700 14px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--wheat); color: var(--navy); }
.btn--accent:hover { background: var(--wheat-hover); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Шапка ---------- */

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.header--scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 26, 63, .06); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo__text { font: 800 18px/1 var(--font-head); letter-spacing: .04em; color: var(--navy); }
.logo--light .logo__text { color: var(--white); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__list { display: flex; gap: 26px; list-style: none; }
.nav__list > li { position: relative; }
.nav__list a {
    display: block; padding: 8px 0;
    font: 600 15px/1.2 var(--font-body); text-decoration: none; color: var(--navy);
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--wheat-hover); }
.nav__item--has-sub > a::after { content: ' ▾'; font-size: 11px; }
.nav__sub {
    position: absolute; top: 100%; left: -18px; min-width: 280px;
    list-style: none; padding: 10px; border-radius: var(--radius);
    background: var(--white); box-shadow: 0 18px 40px rgba(11, 26, 63, .14);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__sub a { padding: 10px 12px; border-radius: 8px; }
.nav__sub a:hover { background: var(--paper); color: var(--navy); }
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav__phone { display: grid; text-decoration: none; font: 700 15px/1.25 var(--font-body); color: var(--navy); white-space: nowrap; }
.nav__phone-label { font: 700 11px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--wheat-hover); }

.burger { display: none; }

@media (max-width: 1080px) {
    /* backdrop-filter робить шапку containing block для fixed-нащадків — панель меню
       тоді рахується від висоти шапки, а не вікна, і дає горизонтальний скрол */
    .header { backdrop-filter: none; background: var(--white); }
    .header__cta { margin-left: auto; }
    .burger {
        display: inline-grid; place-items: center;
        width: 46px; height: 46px; border: 0; border-radius: 50%;
        background: var(--paper); cursor: pointer;
    }
    .burger span:first-child, .burger span:first-child::before, .burger span:first-child::after {
        display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .2s, background-color .2s;
    }
    .burger span:first-child { position: relative; }
    .burger span:first-child::before, .burger span:first-child::after { content: ''; position: absolute; left: 0; }
    .burger span:first-child::before { top: -6px; }
    .burger span:first-child::after { top: 6px; }
    .nav-open .burger span:first-child { background: transparent; }
    .nav-open .burger span:first-child::before { transform: translateY(6px) rotate(45deg); }
    .nav-open .burger span:first-child::after { transform: translateY(-6px) rotate(-45deg); }

    .nav {
        position: fixed; inset: var(--header-h) 0 0; z-index: 40;
        flex-direction: column; align-items: stretch; gap: 24px;
        padding: 24px var(--gutter) 40px; overflow-y: auto;
        background: var(--white);
        transform: translateX(100%);
    }
    .nav { visibility: hidden; transition: transform .25s, visibility .25s; }
    .nav-open { overflow: hidden; }
    .nav-open .nav { transform: none; visibility: visible; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__list > li { border-bottom: 1px solid var(--line); }
    .nav__list > li > a { padding: 16px 0; font-size: 18px; }
    .nav__item--has-sub > a::after { content: ''; }
    .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px; min-width: 0; }
    .nav__sub a { padding: 8px 0 8px 16px; color: var(--muted); }
}
@media (max-width: 560px) {
    .header__cta { display: none; }
    .burger { margin-left: auto; }
    .logo__text { font-size: 16px; }
}

/* ---------- Герой ---------- */

.hero {
    position: relative; overflow: hidden; isolation: isolate;
    color: var(--white);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(227, 178, 60, .18), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--photo::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(7, 16, 42, .92) 0%, rgba(11, 26, 63, .7) 55%, rgba(11, 26, 63, .35) 100%);
}
.hero__inner { padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(120px, 14vw, 190px); }
.hero__title {
    max-width: 15ch;
    font: 800 clamp(40px, 6.4vw, 84px)/1.02 var(--font-head);
    text-transform: uppercase; letter-spacing: -.02em;
}
.hero__lead { max-width: 640px; margin: 28px 0 0; font-size: clamp(18px, 1.7vw, 21px); color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__arc { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 80px); fill: var(--white); }

/* ---------- Внутрішня шапка ---------- */

.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    color: var(--white);
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(7, 16, 42, .72); }
.page-hero__inner { padding: clamp(56px, 8vw, 110px) var(--gutter); }
.page-hero__title {
    max-width: 22ch;
    font: 800 clamp(32px, 4.6vw, 60px)/1.06 var(--font-head);
    text-transform: uppercase; letter-spacing: -.015em;
}
.page-hero__lead { max-width: 720px; margin: 22px 0 0; font: italic 500 clamp(20px, 2vw, 26px)/1.4 var(--font-quote); color: rgba(255, 255, 255, .86); }

/* ---------- Секції ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

.mission__inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.mission__label { display: grid; gap: 18px; align-content: start; }
@media (max-width: 760px) { .mission__inner { grid-template-columns: 1fr; gap: 20px; } }

.shield {
    display: inline-grid; place-items: center;
    width: 64px; height: 72px;
    clip-path: polygon(50% 0, 100% 14%, 100% 58%, 50% 100%, 0 58%, 0 14%);
    background: var(--navy); color: var(--wheat);
    font: 800 22px/1 var(--font-head);
}

.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.card__link {
    display: flex; flex-direction: column; gap: 16px; height: 100%;
    padding: 32px 30px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card__link:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 20px 44px rgba(11, 26, 63, .12); }
.card__link:hover .shield--num { background: var(--wheat); color: var(--navy); }
.shield--num { width: 52px; height: 58px; font-size: 17px; transition: background-color .25s, color .25s; }
.card__title { font: 700 21px/1.25 var(--font-head); color: var(--navy); }
.card__text { margin: 0; color: var(--muted); flex-grow: 1; }
.card__more { font: 700 13px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--wheat-hover); }

.quote-band { padding: clamp(64px, 9vw, 120px) 0; text-align: center; background: var(--white); }
.quote-band .quote { display: inline-block; max-width: 900px; border: 0; padding: 0; font-size: clamp(26px, 3.4vw, 44px); }
.quote-band .quote::before { content: '“'; display: block; font-size: 1.8em; line-height: .6; color: var(--wheat); }

/* ---------- Лінія 24/7 ---------- */

.hotline { padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.hotline::after {
    content: '24/7'; position: absolute; right: -2vw; bottom: -6vw;
    font: 800 clamp(160px, 22vw, 340px)/1 var(--font-head);
    color: rgba(255, 255, 255, .04); pointer-events: none;
}
.hotline__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hotline .h2 { color: var(--white); }
.hotline__text p { color: rgba(255, 255, 255, .8); max-width: 540px; }
.hotline__note { font-size: 15px; }
.hotline__phones { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone-link {
    display: block; padding: 18px 20px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    font: 700 clamp(17px, 1.6vw, 20px)/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}
.phone-link:hover { background: var(--wheat); border-color: var(--wheat); color: var(--navy); }
.phone-link--dark { background: var(--white); border-color: var(--line); color: var(--navy); }
@media (max-width: 860px) { .hotline__inner { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .hotline__phones { grid-template-columns: 1fr; } }

/* ---------- Підтримати ---------- */

.support__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .support__inner { grid-template-columns: 1fr; gap: 32px; } }

.requisites { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.requisites__title { margin: 0 0 18px; font: 700 18px/1.3 var(--font-head); color: var(--navy); }
.requisites__list { margin: 0; display: grid; }
.requisites__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.requisites__row dt { color: var(--muted); font-size: 15px; }
.requisites__row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; }
.requisites__value { font-weight: 700; color: var(--navy); word-break: break-all; }
@media (max-width: 560px) { .requisites__row { grid-template-columns: 1fr; gap: 4px; } }

.copy {
    flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--white); color: var(--navy); cursor: pointer;
    font: 700 11px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
}
.copy:hover { border-color: var(--navy); }
.copy--done { background: var(--navy); border-color: var(--navy); color: var(--wheat); }

/* ---------- Внутрішні сторінки ---------- */

.article { display: grid; gap: 40px; }
.phones-box { max-width: 760px; padding: 28px; border-radius: var(--radius); background: var(--paper); }
.phones-box__title { margin: 0 0 16px; font: 700 18px/1.3 var(--font-head); color: var(--navy); }
.phones-box ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.phones-box__note { margin: 16px 0 0; color: var(--muted); }

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.contacts__item { padding: 28px; border-radius: var(--radius); background: var(--paper); }
.contacts__item a { font-weight: 700; color: var(--navy); text-decoration-color: var(--wheat); text-underline-offset: 3px; word-break: break-word; }
.contacts__item ul { list-style: none; display: grid; gap: 6px; }
.contacts__label { margin: 0 0 10px; font: 700 12px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--wheat-hover); }
.contacts__note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: clamp(56px, 7vw, 96px); }
.pager__link {
    display: grid; gap: 6px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line);
    text-decoration: none; font: 700 18px/1.3 var(--font-head); color: var(--navy);
    transition: border-color .2s, box-shadow .2s;
}
.pager__link span { font: 700 12px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--wheat-hover); }
.pager__link:hover { border-color: var(--navy); box-shadow: 0 12px 30px rgba(11, 26, 63, .08); }
.pager__link--next { text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager__link--next { text-align: left; } }

/* ---------- Підвал ---------- */

.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding-top: clamp(56px, 7vw, 90px); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__motto { margin: 22px 0 14px; font: italic 500 20px/1.4 var(--font-quote); color: var(--white); }
.footer__small { margin: 0 0 12px; color: rgba(255, 255, 255, .55); font-size: 14px; }
.footer__title { margin-bottom: 18px; font: 700 13px/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--wheat); }
.footer__links { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--wheat); }
.footer__phones a { font-weight: 700; color: var(--white); }
.footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px; color: rgba(255, 255, 255, .5);
}
.footer__bottom a { color: var(--wheat); text-decoration: none; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Поява при скролі ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
