/* JurFlex v2 — концепція №3: темні та світлі секції, золоті акценти */
:root {
  --navy: #0E1A2E;
  --navy-2: #13223A;
  --steel: #23395D;
  --gold: #B8924A;
  --gold-hi: #CDA75E;
  --gold-ink: #7D5F25;        /* золото для тексту на світлому (AA) */
  --light: #F5F6F8;
  --white: #FFFFFF;
  --ink: #0E1A2E;
  --muted: #535D6E;
  --on-dark: #C3CCDA;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: #D9DEE7;
  --error: #B3261E;

  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Golos Text', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 16px;
  --r-panel: 22px;
  --wrap: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 928px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: var(--navy); }
.skip:focus { left: 8px; }

.dark { background: var(--navy); color: var(--white); }
.light { background: var(--light); color: var(--ink); }

/* ── Типографіка ───────────────────────────────── */
.kicker { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.kicker span { margin: 0 .5em; opacity: .7; }
.kicker--ink { color: var(--gold-ink); }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.005em; }

/* ── Кнопки ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .2s var(--ease), box-shadow .25s; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 16px 28px; }
.btn--block { width: 100%; }
.btn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--navy); }
.btn--gold:hover { box-shadow: 0 8px 24px -10px rgba(184, 146, 74, .8); }
.btn--outline-light { border-color: var(--line-light); background: var(--white); color: var(--navy); }
.btn--ghost { border-color: var(--line-dark); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Шапка ─────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(14, 26, 46, .86); border-bottom: 1px solid var(--line-dark); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); color: var(--white); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand__mark { width: 34px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 4.5; stroke-linejoin: round; }
.brand__word { font-family: var(--f-display); font-weight: 700; font-size: 23px; letter-spacing: .04em; }
.brand__tag { padding-left: 14px; border-left: 1px solid var(--line-dark); font-size: 12px; line-height: 1.35; color: var(--on-dark); }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font-size: 15px; color: var(--on-dark); text-decoration: none; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav__phone { display: none; }
.header__cta { flex: none; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; }
.burger .ic { width: 22px; height: 22px; }

/* ── Індикатор секцій ──────────────────────────── */
.rail { position: fixed; left: 22px; top: 50%; z-index: 40; display: none; flex-direction: column; align-items: center; gap: 14px; transform: translateY(-50%); }
.rail__num { min-width: 34px; padding: 4px 0; border-radius: 6px; background: var(--navy); font-size: 12px; font-weight: 600; text-align: center; color: var(--white); box-shadow: 0 0 0 1px var(--line-dark); }
.rail__list { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.rail__list::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(140, 150, 170, .45); }
.rail a { position: relative; display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1.5px rgba(140, 150, 170, .8); transition: background-color .25s, box-shadow .25s, transform .25s; }
.rail a[aria-current="true"] { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(184, 146, 74, .2); transform: scale(1.15); }

/* ── Перший екран ──────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(860px, calc(100vh - var(--header-h))); display: flex; flex-direction: column; justify-content: center; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14, 26, 46, .97) 0%, rgba(14, 26, 46, .9) 34%, rgba(14, 26, 46, .45) 62%, rgba(14, 26, 46, .2) 100%),
  linear-gradient(0deg, rgba(14, 26, 46, .95) 0%, rgba(14, 26, 46, 0) 38%); }
.hero__body { padding-top: 80px; padding-bottom: 72px; }
.hero__title { max-width: 680px; font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.06; letter-spacing: -.01em; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { max-width: 560px; margin-top: 22px; font-size: 19px; color: var(--on-dark); }

.hero__search-row { display: flex; align-items: stretch; gap: 20px; margin-top: 40px; max-width: 1060px; }
.search { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 18px; padding: 16px 16px 16px 24px; border: 1px solid rgba(205, 167, 94, .45); border-radius: var(--r-panel); background: rgba(14, 26, 46, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .8); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 146, 74, .15), 0 20px 60px -30px rgba(0, 0, 0, .8); }
.search__icon { width: 30px; height: 30px; color: var(--gold-hi); stroke-width: 1.4; }
.search__field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search__label { font-weight: 600; font-size: 18px; color: var(--white); }
.search__input { width: 100%; padding: 4px 0; border: 0; background: transparent; font-size: 15px; color: var(--white); }
.search__input::placeholder { color: #9AA6B8; }
.search__input:focus { outline: none; }
.search__btn { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--navy); font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s; }
.search__btn:hover { box-shadow: 0 10px 28px -12px rgba(184, 146, 74, .9); }
.search__btn:hover .ic { transform: translateX(3px); }
.search__btn .ic { transition: transform .25s var(--ease); }

.quick { flex: 0 0 240px; display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: var(--r-card); background: rgba(14, 26, 46, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.quick__icon { color: var(--gold); margin-top: 2px; }
.quick__title { font-weight: 600; font-size: 15px; }
.quick__links { margin-top: 4px; font-size: 14px; color: var(--on-dark); }
.quick__links a { color: var(--white); text-decoration-color: rgba(205, 167, 94, .6); text-underline-offset: 3px; }
.quick__links a:hover { color: var(--gold-hi); }
.quick__sep { margin: 0 6px; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.chips__label { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--white); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 14px; color: var(--white); cursor: pointer; transition: border-color .25s, background-color .25s, transform .2s var(--ease); }
.chip .ic { width: 17px; height: 17px; color: var(--gold); }
.chip:hover { border-color: var(--gold); background: rgba(184, 146, 74, .1); transform: translateY(-1px); }

.results { max-width: 1060px; margin-top: 22px; padding: 22px; border: 1px solid var(--line-dark); border-radius: var(--r-panel); background: rgba(10, 20, 36, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: rise .45s var(--ease); }
.results__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.results__title { font-weight: 600; }
.results__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 8px; background: transparent; cursor: pointer; }
.results__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hit { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line-dark); border-radius: var(--r-card); background: rgba(255, 255, 255, .03); }
.hit--top { border-color: rgba(205, 167, 94, .6); }
.hit__cat { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hit__title { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.hit__lead { font-size: 14px; color: var(--on-dark); }
.hit__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hit__actions .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
.results__note { margin-top: 14px; font-size: 13px; color: #9AA6B8; }
.results__empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.hero__down { position: absolute; left: 22px; bottom: 28px; width: 40px; height: 40px; display: none; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--white); }

/* ── Як ми працюємо ────────────────────────────── */
.process { position: relative; overflow: hidden; }
.process__media { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.process__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.process__media::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--gold), transparent); transform: skewX(-15deg); }
.process__row { position: relative; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 96px; padding-left: calc(24px + 21%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 26px; left: 30px; right: 30px; height: 1px; background: var(--line-light); }
.steps::after { content: ''; position: absolute; top: 26px; left: 30px; height: 1px; width: calc((100% - 60px) * var(--progress, 0)); background: var(--gold); transition: width .5s var(--ease); }
.step { position: relative; }
.step__icon { position: relative; z-index: 1; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-light); border-radius: 50%; background: var(--white); color: var(--gold-ink); transition: border-color .35s, box-shadow .35s, background-color .35s, color .35s; }
.step__icon .ic { width: 22px; height: 22px; }
.step.is-active .step__icon { border-color: var(--gold); background: var(--navy); color: var(--gold-hi); box-shadow: 0 0 0 6px rgba(184, 146, 74, .14); }
.step__num { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.step__title { margin-top: 4px; font-size: 19px; font-weight: 600; }
.step__text { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ── Напрями допомоги ──────────────────────────── */
.services { position: relative; padding: 96px 0; background:
  radial-gradient(1200px 500px at 85% 0%, rgba(35, 57, 93, .55), transparent 60%), var(--navy); }
.services__top { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 36px; align-items: center; }
.services__head .h2 { font-size: clamp(30px, 3vw, 40px); }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 236px; padding: 20px; border: 1px solid var(--line-dark); border-radius: var(--r-card); background: var(--navy-2); color: var(--white); text-align: left; cursor: pointer; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.cat__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .4s, transform .6s var(--ease); }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 26, 46, .35) 0%, rgba(14, 26, 46, .78) 45%, rgba(14, 26, 46, .97) 100%); }
.cat:hover { transform: translateY(-4px); border-color: rgba(205, 167, 94, .55); }
.cat:hover .cat__img { opacity: .7; transform: scale(1.05); }
.cat[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 24px 50px -28px rgba(184, 146, 74, .7); }
.cat__icon { position: absolute; top: 20px; left: 20px; width: 30px; height: 30px; color: var(--gold-hi); stroke-width: 1.5; }
.cat__title { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.cat__lead { margin-top: 8px; padding-right: 44px; font-size: 13.5px; line-height: 1.45; color: var(--on-dark); }
.cat__go { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; transition: background-color .3s, border-color .3s, color .3s; }
.cat__go .ic { width: 16px; height: 16px; }
.cat:hover .cat__go, .cat[aria-pressed="true"] .cat__go { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.cat__aud { position: absolute; top: 18px; right: 16px; padding: 3px 9px; border-radius: 999px; background: rgba(14, 26, 46, .7); font-size: 11px; color: var(--on-dark); box-shadow: 0 0 0 1px var(--line-dark); }

.panel { margin-top: 28px; }
.panel:empty { display: none; }
.panel__box { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); border: 1px solid var(--line-dark); border-radius: var(--r-panel); background: rgba(255, 255, 255, .03); overflow: hidden; animation: rise .45s var(--ease); }
.panel__side { padding: 28px; border-right: 1px solid var(--line-dark); }
.panel__cat { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.panel__cat-title { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 26px; }
.svc-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.svc { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--on-dark); text-align: left; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.svc .ic { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.svc:hover { background: rgba(255, 255, 255, .05); color: var(--white); }
.svc[aria-selected="true"] { border-color: rgba(205, 167, 94, .5); background: rgba(184, 146, 74, .1); color: var(--white); }
.svc[aria-selected="true"] .ic, .svc:hover .ic { opacity: 1; transform: none; color: var(--gold); }
.svc-detail { padding: 32px 36px; }
.svc-detail__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.svc-detail__lead { margin-top: 10px; font-size: 17px; color: var(--on-dark); }
.svc-detail__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.svc-detail__h { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.svc-detail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-detail li { display: flex; gap: 10px; font-size: 15.5px; }
.svc-detail li .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.svc-detail__docs { font-size: 15.5px; color: var(--on-dark); }
.svc-detail__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.svc-detail__price { font-size: 15px; color: var(--on-dark); }
.svc-detail__price b { font-family: var(--f-display); font-size: 22px; color: var(--white); }

/* ── Чому JurFlex ──────────────────────────────── */
.why { padding: 80px 0; }
.why__row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; }
.why__title { padding-right: 32px; border-right: 1px solid var(--line-light); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.why__list .ic { width: 30px; height: 30px; color: var(--gold-ink); stroke-width: 1.5; }
.why__list h3 { margin-top: 14px; font-size: 18px; font-weight: 600; }
.why__list p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ── Про нас ───────────────────────────────────── */
.about { padding: 96px 0; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.about__row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; align-items: center; }
.about__photo { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: var(--r-panel); background:
  repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px), var(--navy-2); overflow: hidden; }
.about__photo::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(205, 167, 94, .35); border-radius: 14px; pointer-events: none; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__mono { width: 34%; height: 34%; fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; opacity: .85; }
.about__status { margin-top: 10px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.about__bio { max-width: 640px; margin-top: 22px; font-size: 18px; color: var(--on-dark); }
.tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 14px; border: 1px solid rgba(205, 167, 94, .5); border-radius: 999px; font-size: 14px; }
.tags li:empty { display: none; }

/* ── FAQ ───────────────────────────────────────── */
.faq { padding: 96px 0; }
.faq__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #E7EBF1; }
.seg__btn { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg__btn[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(14, 26, 46, .12); }
.faq__item { border-top: 1px solid var(--line-light); }
.faq__item:last-child { border-bottom: 1px solid var(--line-light); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border: 0; background: transparent; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; }
.faq__q .ic { width: 22px; height: 22px; color: var(--gold-ink); transition: transform .3s var(--ease); }
.faq__q[aria-expanded="true"] .ic { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 40px 22px 0; color: var(--muted); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ── Консультація ──────────────────────────────── */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 104px 0; background:
  radial-gradient(900px 500px at 15% 110%, rgba(184, 146, 74, .16), transparent 60%),
  radial-gradient(900px 600px at 100% 0%, rgba(35, 57, 93, .7), transparent 60%), var(--navy); }
.cta__lines { position: absolute; inset: 0; z-index: -1; opacity: .5; background:
  repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .035) 46px 47px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); }
.cta__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.cta__title { font-size: clamp(34px, 4.2vw, 56px); }
.cta__lead { max-width: 520px; margin-top: 20px; font-size: 19px; color: var(--on-dark); }
.cta__perks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cta__perks li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.cta__perks .ic { color: var(--gold); }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.channel { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(255, 255, 255, .04); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .25s, background-color .25s; }
.channel .ic { color: var(--gold); }
.channel:hover { border-color: var(--gold); background: rgba(184, 146, 74, .08); }

.form { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: var(--r-panel); background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.form__topic { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.form__topic-value { max-width: 100%; padding: 6px 12px; border-radius: 8px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600; }
.form__aud { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; font-size: 15px; }
.form__aud legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; }
.form__aud label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.form__aud input { width: 18px; height: 18px; accent-color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #C4CCD8; border-radius: 10px; background: var(--white); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(184, 146, 74, .3); }
.field.is-invalid input { border-color: var(--error); }
.field__error { font-size: 13.5px; color: var(--error); }
.field__error:empty { display: none; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); }
.field--check label { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.field--check a { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form__status--ok { background: #E6F2EA; color: #1F5A37; }
.form__status--err { background: #FBE9E7; color: #8C1D17; }
.form__status a { color: inherit; font-weight: 600; }

/* ── Підвал ────────────────────────────────────── */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line-dark); background: #0A1424; color: var(--on-dark); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer__brand p { max-width: 340px; margin-top: 14px; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-hi); }
.footer__contacts span:empty { display: none; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13.5px; }

.mobile-bar { display: none; }
.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; padding: 12px 16px; background: var(--gold); color: var(--navy); font-size: 14px; }

/* ── Анімації появи ────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4) { transition-delay: .24s; }
.js .why__list .reveal:nth-child(2) { transition-delay: .08s; }
.js .why__list .reveal:nth-child(3) { transition-delay: .16s; }
.js .why__list .reveal:nth-child(4) { transition-delay: .24s; }
.flash { animation: flash 1.4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(184, 146, 74, .7); } 100% { box-shadow: 0 0 0 18px rgba(184, 146, 74, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Адаптив ───────────────────────────────────── */
@media (min-width: 1360px) {
  .rail { display: flex; }
  .hero__down { display: flex; }
}

@media (max-width: 1180px) {
  .brand__tag { display: none; }
  .nav { gap: 22px; }
  .services__top { grid-template-columns: 1fr; gap: 28px; }
  .why__row { grid-template-columns: 1fr; gap: 32px; }
  .why__title { padding-right: 0; border-right: 0; }
  .process__row { grid-template-columns: 1fr; gap: 36px; padding-left: calc(24px + 30%); }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--navy); border-bottom: 1px solid var(--line-dark); }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav__phone { display: block; color: var(--white) !important; font-weight: 600; }
  .hero__search-row { flex-direction: column; }
  .quick { flex-basis: auto; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel__box { grid-template-columns: 1fr; }
  .panel__side { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .process__media { position: relative; width: 100%; height: 260px; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
  .process__media::after { display: none; }
  .process__row { padding: 40px 24px 72px; }
  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__row { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; }
  .cta__row { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .container { padding: 0 16px; }
  .brand__word { font-size: 20px; }
  .brand__mark { width: 28px; height: 30px; }
  .hero { min-height: 0; }
  .hero__bg img { object-position: 78% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 26, 46, .55) 0%, rgba(14, 26, 46, .88) 38%, rgba(14, 26, 46, .98) 100%); }
  .hero__body { padding-top: 56px; padding-bottom: 48px; }
  .hero__lead { font-size: 16px; margin-top: 16px; }
  .hero__search-row { margin-top: 28px; }
  .search { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .search__icon { display: none; }
  .search__field { flex-basis: 100%; }
  .search__label { font-size: 17px; }
  .search__input { padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 16px; }
  .search__btn { width: 100%; justify-content: center; }
  .quick { display: none; }
  .chips { gap: 8px; }
  .chips__label { width: 100%; }
  .chip { min-height: 40px; padding: 8px 13px; font-size: 13.5px; }
  .results { padding: 16px; }
  .hit__actions .btn { flex: 1 1 auto; }
  .process__media { height: 200px; }
  .process__row { padding: 32px 16px 56px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 1px; height: auto; }
  .steps::after { top: 26px; left: 26px; width: 1px; height: calc((100% - 52px) * var(--progress, 0)); transition: height .5s var(--ease); }
  .step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
  .step__icon { grid-row: span 3; }
  .step__num { margin-top: 2px; }
  .services, .about, .faq { padding: 64px 0; }
  .cats { grid-template-columns: 1fr; gap: 12px; }
  .cat { min-height: 150px; }
  .panel__side { padding: 20px; }
  .svc-detail { padding: 22px 20px; }
  .svc-detail__cols { grid-template-columns: 1fr; gap: 20px; }
  .svc-detail__foot .btn { width: 100%; }
  .why { padding: 56px 0; }
  .why__list { gap: 24px 16px; }
  .about__row { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { max-width: 300px; }
  .about__bio { font-size: 16px; }
  .faq__q { font-size: 16.5px; padding: 18px 0; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; padding: 10px 8px; }
  .cta { padding: 64px 0; }
  .cta__lead { font-size: 16px; }
  .form { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line-light); box-shadow: 0 -6px 20px rgba(14, 26, 46, .1); transition: transform .25s var(--ease); }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .ic { width: 18px; height: 18px; }
}
