/* ==========================================================================
   NyxHecate — стилі сайту (чистий CSS, без збірки)
   Структура: 1 токени · 2 база · 3 шапка · 4 кнопки · 5 hero і фінансування
              6 секції · 7 EU · 8 матчмейкінг · 9 послуги · 10 контакт і P.S.
              11 футер · 12 адаптив
   ========================================================================== */

/* 1. Токени ---------------------------------------------------------------- */
:root {
    --ink: #03050a;
    --ink-2: #070b14;
    --text: #e9ebf0;
    --body: #cbd2de;
    --muted: #a3acbd;
    --faint: #7f8aa0;
    --gold: #dfb15b;
    --gold-hover: #ebc47b;

    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.17);
    --line-gold: rgba(223, 177, 91, 0.4);

    --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
    --sans: 'IBM Plex Sans', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --wordmark: 'Cinzel', 'Cormorant Garamond', Georgia, serif;

    --wrap: 1180px;
    --gut: clamp(20px, 4vw, 40px);
}

/* 2. База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 400 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
    position: absolute;
    left: 16px;
    top: -64px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gut));
    margin: 0 auto;
    padding: 0 var(--gut);
}

/* 3. Шапка ----------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 5, 10, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name {
    font-family: var(--wordmark);
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.09em;
    color: #fff;
}
.brand-sub {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav a:not(.btn) {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }

.bar-end { display: flex; align-items: center; gap: 12px; }
.lang {
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.lang:hover { border-color: var(--gold); }

.menu-btn {
    display: none;
    position: relative;
    width: 44px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    cursor: pointer;
}
.menu-btn span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.2s ease, top 0.2s ease;
}
.menu-btn span:first-child { top: 13px; }
.menu-btn span:last-child { top: 22px; }
.is-open .menu-btn span:first-child { top: 17px; transform: rotate(45deg); }
.is-open .menu-btn span:last-child { top: 17px; transform: rotate(-45deg); }

/* 4. Кнопки ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--gold); color: #05070d; }
.btn-primary:hover { background: var(--gold-hover); }
.btn-outline { color: var(--gold); border-color: var(--line-gold); }
.btn-outline:hover { border-color: var(--gold); background: rgba(223, 177, 91, 0.08); }
.nav-cta { padding: 11px 18px; }
.btn-block { width: 100%; }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 128px) 0 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(223, 177, 91, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(223, 177, 91, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 72% 25%, #000, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 75% at 72% 25%, #000, transparent 78%);
}
.hero-art {
    position: absolute;
    right: -150px;
    top: 46%;
    width: 700px;
    height: 700px;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}
.hero-inner { position: relative; }

h1 {
    max-width: 14em;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(40px, 5.4vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.012em;
    color: #fff;
}
.hero-sub {
    max-width: 42em;
    margin-top: 28px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
    color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Hero: можливості фінансування */
.funding {
    margin-top: clamp(64px, 9vw, 112px);
    padding-top: 34px;
    border-top: 1px solid var(--line-gold);
}
.funding-title {
    max-width: 24em;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.12;
    color: #fff;
}
.fund-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 34px;
    border-top: 1px solid var(--line);
}
.fund-grid li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 30px 0;
}
.fund-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.fund-region {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.fund-grid h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(21px, 1.9vw, 25px);
    line-height: 1.18;
    color: #fff;
}
.fund-grid p { font-size: 14px; line-height: 1.6; color: var(--muted); }

.fund-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 26px 0 clamp(56px, 7vw, 96px);
    border-top: 1px solid var(--line);
}
.fund-note p { max-width: 62ch; font-size: 16px; color: var(--body); }
.fund-note .btn { flex: none; }

.textlink {
    color: var(--gold);
    border-bottom: 1px solid var(--line-gold);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.textlink:hover { color: var(--gold-hover); border-bottom-color: var(--gold); }

/* 6. Секції ---------------------------------------------------------------- */
.section {
    padding: clamp(72px, 9vw, 120px) 0;
    border-top: 1px solid var(--line);
}
.band { background: var(--ink-2); }

.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 6vw, 96px);
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-head h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 3.8vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.008em;
    color: #fff;
}
.sec-head p { max-width: 50ch; font-size: 17px; color: var(--muted); }

/* 7. EU -------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 88px);
    padding-top: 44px;
    border-top: 1px solid var(--line-strong);
}
.split + .split { margin-top: 72px; }

.split-main h3, .split-main .h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.15;
    color: #fff;
}
.split-main > p { margin-top: 16px; font-size: 16px; color: var(--body); }
.split-main strong { font-weight: 600; color: #fff; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 36px;
    border-top: 1px solid var(--line);
}
.stats > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px 14px 0 0;
}
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dd {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1;
    white-space: nowrap;
    color: var(--gold);
    font-variant-numeric: lining-nums;
}
.stats dt { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.item { padding: 22px 0; border-top: 1px solid var(--line); }
.item:first-child { padding-top: 0; border-top: 0; }
.item h4 { font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
.item p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }

.list-title {
    margin-top: 32px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold);
}
.chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    margin-top: 12px;
}
.chips li {
    padding: 11px 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--body);
    border-top: 1px solid var(--line);
}

/* 8. Матчмейкінг ---------------------------------------------------------- */
.match-no {
    display: block;
    margin-bottom: 14px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    color: var(--gold);
    font-variant-numeric: lining-nums;
}
.split-main > p.match-sub {
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
}
.split-main > p.match-sub + p { margin-top: 20px; }

.split-side > .list-title:first-child { margin-top: 0; }
.needs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    margin-top: 12px;
}
.needs li { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.needs h5 { font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.needs p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.listed {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 88px);
    margin-top: clamp(56px, 7vw, 88px);
    padding: clamp(28px, 4vw, 52px);
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--gold);
}
.listed-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.listed h3, .listed .h3 {
    margin-top: 14px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.15;
    color: #fff;
}
.listed-head > p { margin-top: 16px; font-size: 16px; color: var(--body); }
.listed-head > p.listed-note { font-size: 13.5px; color: var(--faint); }

.section-cta { margin-top: 8px; }

/* 9. Послуги --------------------------------------------------------------- */
.svc-list li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 6px 28px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.svc-list li:first-child { padding-top: 0; border-top: 0; }
.svc-list h4 { font-size: 15px; font-weight: 600; line-height: 1.45; color: #fff; }
.svc-list p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.standards { margin-top: clamp(64px, 8vw, 104px); }
.sec-head-sub { margin-bottom: 36px; }
.sec-head-sub h3, .sec-head-sub .h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.1;
    color: #fff;
}
.sec-head-sub p { font-size: 16px; }
.std-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(28px, 4vw, 56px);
}
.std-grid article { padding: 22px 0 36px; border-top: 1px solid var(--line-strong); }
.std-grid h4 { font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
.std-grid p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Рух і поява ------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease var(--d, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Іконки: контур промальовується при появі */
.ico { width: 44px; height: 44px; flex: none; }
.ico * {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.js [data-reveal] .ico * { stroke-dashoffset: 1; }
.js [data-reveal].is-in .ico * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--d, 0s) + 0.15s); }

/* Підсторінки: шапка сторінки */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
}
.page-hero + .section { border-top: 0; padding-top: clamp(24px, 4vw, 48px); }
.section > .wrap > .split:first-child { padding-top: 0; border-top: 0; }
.page-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.page-hero-single { grid-template-columns: minmax(0, 1fr); }
.page-hero .ps-tag { display: block; margin-bottom: 18px; }
.page-hero h1 { max-width: 12em; font-size: clamp(40px, 5vw, 64px); }
.page-lede { max-width: 40em; margin-top: 24px; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); }
.page-hero .actions { margin-top: 32px; }
.page-hero-art .hero-art { right: -120px; top: 50%; width: 520px; height: 520px; opacity: 0.4; }
.crumb {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.crumb:hover { color: var(--gold); border-bottom-color: var(--line-gold); }

/* Схема партнерств */
.net { margin: 0; }
.net svg { width: 100%; height: auto; overflow: visible; }
.net figcaption { max-width: 38ch; margin: 14px auto 0; font-size: 13px; line-height: 1.55; text-align: center; color: var(--faint); }
.net .ring { fill: none; stroke: var(--gold); stroke-opacity: 0.2; stroke-width: 0.8; }
.net .ring-outer { stroke-dasharray: 3 9; stroke-opacity: 0.25; }
.net .flow { fill: none; stroke: var(--gold); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 2 8; animation: net-flow 16s linear infinite; }
.net .spoke { stroke: var(--gold); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) var(--d, 0s); }
.js .net:not(.is-in) .spoke { stroke-dashoffset: 1; }
.net .hub { fill: var(--ink); stroke: var(--gold); stroke-width: 1.2; }
.net .hub-core { fill: var(--gold); }
.net .node { transition: opacity 0.7s ease var(--d, 0s); }
.js .net:not(.is-in) .node { opacity: 0; }
.net .dot { fill: var(--ink); stroke: var(--gold); stroke-width: 1.5; }
.net .node-main .dot { stroke-width: 2; }
.net .dot-core { fill: var(--gold); }
.net .pulse { fill: none; stroke: var(--gold); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: net-pulse 5s ease-out infinite; animation-delay: var(--d, 0s); }
.net .n-label { font: 500 13px var(--sans); letter-spacing: 0.03em; fill: var(--body); }
.net .node-main .n-label { font-weight: 600; fill: #fff; }
@keyframes net-flow { to { stroke-dashoffset: -100; } }
@keyframes net-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3.2); opacity: 0; } }

/* Ротор мікротурбіни */
.rotor { width: 188px; margin: 0 0 30px; }
.rotor + .list-title { margin-top: 0; }
.rotor svg { width: 100%; height: auto; }
.rotor circle, .rotor path { fill: none; stroke: var(--gold); stroke-width: 1; }
.rotor .r-case { stroke-opacity: 0.45; }
.rotor .r-dash { stroke-dasharray: 2 6; stroke-opacity: 0.35; }
.rotor .r-ring { stroke-opacity: 0.3; }
.rotor .r-blade { stroke-opacity: 0.7; }
.rotor .r-hub { stroke-opacity: 0.8; }
.rotor .r-core { fill: var(--gold); stroke: none; }
.rotor .spin { transform-box: view-box; transform-origin: 120px 120px; animation: rotor-spin 80s linear infinite; }
@keyframes rotor-spin { to { transform: rotate(360deg); } }

/* Матчмейкінг: кроки */
.flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 28px;
    counter-reset: none;
}
.flow li { position: relative; padding-top: 38px; }
.flow li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 11px;
    height: 11px;
    background: var(--ink-2);
    border: 1.5px solid var(--gold);
    border-radius: 50%;
}
.flow li::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 20px;
    right: -18px;
    height: 1px;
    background: linear-gradient(var(--gold), var(--gold)) left center / 0 100% no-repeat, var(--line-strong);
    transition: background-size 0.9s ease calc(var(--d, 0s) + 0.2s);
}
.flow li.is-in::after { background-size: 100% 100%; }
.flow li:last-child::after { display: none; }
.flow-no { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); }
.flow h3 { margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 1.9vw, 24px); line-height: 1.15; color: #fff; }
.flow p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Лендинг: тизер матчмейкінгу */
.teaser {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.teaser-main h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 3.8vw, 50px);
    line-height: 1.08;
    color: #fff;
}
.teaser-lede { max-width: 46ch; margin-top: 18px; font-size: 17px; color: var(--muted); }
.tz-list { margin: 32px 0 0; }
.tz-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.tz-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.tz-no { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--gold); }
.tz-list h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; color: #fff; }
.tz-list p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.tz-note { margin: 24px 0 28px; font-size: 14.5px; color: var(--body); }

/* Лендинг: тизер послуг */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 32px); }
.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--line-strong);
    transition: border-color 0.3s ease, opacity 0.7s ease var(--d, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
.svc-card:hover { border-top-color: var(--gold); }
.svc-card .ico { margin-bottom: 8px; }
.card-no { position: absolute; top: 26px; right: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--faint); font-variant-numeric: tabular-nums; }
.svc-card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.15; color: #fff; transition: color 0.2s ease; }
.svc-card:hover h3 { color: var(--gold-hover); }
.svc-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.svc-all { justify-content: flex-start; }
.all-arrow { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 44px; color: var(--gold); transition: transform 0.3s ease; }
.svc-all:hover .all-arrow { transform: translateX(8px); }

/* Лендинг: про нас */
.about {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.about-main h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 3.8vw, 50px);
    line-height: 1.08;
    color: #fff;
}
.about-lede { margin-top: 20px; font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2vw, 26px); line-height: 1.35; color: var(--text); }
.about-main > p:not(.about-lede) { margin-top: 18px; font-size: 16px; color: var(--muted); }

.about-map { padding: clamp(22px, 3vw, 34px); background: var(--ink-2); border: 1px solid var(--line-strong); }
.ab-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ab-cells { display: grid; margin-top: 14px; border-top: 1px solid var(--line); }
.ab-cells-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.ab-cells-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.ab-cells li { padding: 12px 0; font-size: 14px; line-height: 1.4; color: var(--body); border-bottom: 1px solid var(--line); }
.ab-link { position: relative; height: 56px; margin: 4px 0; }
.ab-link::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.ab-link span { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--gold); animation: ab-drop 3.6s ease-in-out infinite; }
@keyframes ab-drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(49px); opacity: 0; } }

/* Послуги: акордеон */
.acc { border-bottom: 1px solid var(--line-strong); }
.acc-item { border-top: 1px solid var(--line-strong); }
.acc-item summary {
    display: grid;
    grid-template-columns: 44px 32px minmax(0, 1fr) 22px;
    gap: 0 20px;
    align-items: center;
    padding: 26px 0;
    list-style: none;
    cursor: pointer;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item[open] summary { padding-bottom: 20px; }
.acc-no { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.acc-title { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; color: #fff; transition: color 0.2s ease; }
.acc-item summary:hover .acc-title { color: var(--gold-hover); }
.acc-desc { display: block; margin-top: 6px; max-width: 62ch; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.acc-sign { position: relative; width: 20px; height: 20px; }
.acc-sign::before, .acc-sign::after { content: ''; position: absolute; left: 0; top: 50%; width: 20px; height: 1.5px; margin-top: -0.75px; background: var(--gold); transition: transform 0.3s ease; }
.acc-sign::after { transform: rotate(90deg); }
.acc-item[open] .acc-sign::after { transform: rotate(0deg); }
.acc-body { padding: 0 0 38px 116px; }
.acc-item[open] .acc-body { animation: acc-in 0.5s ease; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.standards-first { margin-top: 0; }

/* 10. Контакт і P.S. ------------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "intro form"
        "ps    form";
    column-gap: clamp(36px, 7vw, 104px);
    align-items: start;
}
.contact-intro { grid-area: intro; }
.contact .form { grid-area: form; }
.contact .ps { grid-area: ps; }
.contact-intro h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.08;
    color: #fff;
}
.contact-intro > p { max-width: 44ch; margin-top: 18px; color: var(--muted); }
.contact-intro > p.contact-mail { margin-top: 12px; font-size: 14.5px; }
.form {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 44px);
    background: var(--ink-2);
    border: 1px solid var(--line-strong);
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
    background: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(223, 177, 91, 0.18);
}
select {
    padding-right: 40px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23dfb15b' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
textarea { min-height: 132px; resize: vertical; }
.form-status { font-size: 14px; color: var(--gold); }
.form-status[hidden] { display: none; }
.form-status.is-err { color: #e8a090; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* P.S. із грою */
.ps {
    display: grid;
    gap: 10px;
    margin-top: 36px;
    padding: 24px 26px 26px;
    border: 1px solid var(--line-strong);
}
.ps-tag {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    color: var(--gold);
}
.ps h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.15;
    color: #fff;
}
.ps p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.ps-actions .btn { padding: 12px 20px; }
.ps-hint { font-size: 12.5px; line-height: 1.4; color: var(--faint); }

/* 11. Футер ---------------------------------------------------------------- */
.site-footer {
    padding: 40px 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--faint);
    border-top: 1px solid var(--line);
}
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; }
.foot > p { max-width: 44ch; }
.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--wordmark);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.09em;
    color: #fff;
}
.foot-brand img { width: 32px; height: 32px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.foot-links a { color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.foot-links a:hover { color: var(--gold); border-bottom-color: var(--line-gold); }

/* Юридичні сторінки (умови, політика конфіденційності) */
.legal-date { margin-top: 18px; font-size: 13px; color: var(--faint); }
.legal { max-width: 760px; counter-reset: lg; }
.legal-item { position: relative; padding: 26px 0 26px 56px; border-top: 1px solid var(--line); counter-increment: lg; }
.legal-item:first-child { border-top: 0; padding-top: 0; }
.legal-item::before {
    content: counter(lg, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--gold);
}
.legal-item:first-child::before { top: 4px; }
.legal-item h2 { margin-bottom: 8px; font-size: clamp(21px, 2vw, 25px); }
.legal-item p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* 12. Адаптив -------------------------------------------------------------- */
@media (max-width: 1020px) {
    .menu-btn { display: inline-block; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px var(--gut) 24px;
        background: var(--ink-2);
        border-bottom: 1px solid var(--line);
    }
    .is-open .nav { display: flex; }
    .nav a:not(.btn) { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
    .nav a[aria-current] { border-bottom-color: var(--line); color: var(--gold); }
    .nav-cta { margin-top: 18px; padding: 15px 18px; }
    .bar-end { margin-left: auto; }
}

@media (max-width: 960px) {
    .hero-art { right: -280px; width: 580px; height: 580px; opacity: 0.3; }
    .fund-grid { grid-template-columns: 1fr 1fr; }
    .fund-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
    .fund-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .fund-note { flex-direction: column; align-items: flex-start; gap: 20px; }
    .sec-head, .split, .contact, .listed, .page-hero-inner, .teaser, .about { grid-template-columns: 1fr; }
    .page-hero-inner .net { max-width: 520px; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr; row-gap: 0; }
    .flow li { padding: 0 0 30px 38px; }
    .flow li::before { top: 4px; }
    .flow li::after { top: 22px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--gold), var(--gold)) center top / 100% 0 no-repeat, var(--line-strong); transition-property: background-size; }
    .flow li.is-in::after { background-size: 100% 100%; }
    .page-hero-art .hero-art { right: -260px; width: 480px; height: 480px; opacity: 0.25; }
    .sec-head { align-items: start; }
    .contact { grid-template-rows: none; grid-template-areas: "intro" "form" "ps"; row-gap: 36px; }
    .contact .ps { margin-top: 0; }
    .std-grid { grid-template-columns: 1fr 1fr; }
    .foot { grid-template-columns: 1fr; gap: 14px; }
    .foot-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .bar { height: 68px; }
    .brand img { width: 38px; height: 38px; }
    .brand-name { font-size: 17px; }
    .std-grid, .field-row, .chips, .needs, .ab-cells-3, .ab-cells-4 { grid-template-columns: 1fr; }
    .svc-list li { grid-template-columns: 1fr; gap: 6px; }
    .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 18px; }
    .svc-card p { display: none; }
    .svc-card h3 { font-size: 19px; }
    .acc-item summary { grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 0 14px; padding: 20px 0; }
    .acc-no { display: none; }
    .acc-body { padding: 0 0 28px; }
    .ico { width: 38px; height: 38px; }
    .stats { grid-template-columns: 1fr; }
    .stats > div, .stats > div + div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
    .stats > div:first-child { border-top: 0; }
    .actions .btn { flex: 1 1 100%; }
    .fund-grid { grid-template-columns: 1fr; }
    .fund-grid li, .fund-grid li + li { padding: 22px 0; border-left: 0; }
    .fund-grid li + li { border-top: 1px solid var(--line); }
    .fund-note .btn { width: 100%; }
    .ps { padding: 22px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
    .js [data-reveal] .ico *, .js [data-reveal].is-in .ico * { stroke-dashoffset: 0; transition: none; }
    .js .net:not(.is-in) .spoke, .net .spoke { stroke-dashoffset: 0; transition: none; }
    .js .net:not(.is-in) .node, .net .node { opacity: 1; transition: none; }
    .net .flow, .net .pulse, .rotor .spin, .ab-link span { animation: none; }
    .flow li::after { background-size: 100% 100%; transition: none; }
    .acc-item[open] .acc-body { animation: none; }
}
