/* ==========================================================
   Шаблон сайту адвоката · стиль «Світло»
   Світло-сіра гама, ч/б вирізаний портрет, скляні картки.
   <html data-style="…"> — палітра, <html data-font="…"> — шрифт заголовків.
   ========================================================== */

:root,
[data-style="light"] {
  --bg: #F2F2F3;
  --card-a: #ECEDF0;
  --card-b: #D7D9DF;
  --surface: #FFFFFF;
  --text: #121214;
  --body: #45464C;
  --muted: #6B6C72;
  --soft: #9A9BA1;
  --line: rgba(18, 18, 20, .10);
  --line-strong: rgba(18, 18, 20, .18);
  --ok: #2FA36B;

  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;

  --wrap: 1400px;
  --gutter: clamp(16px, 2.4vw, 32px);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Шрифт заголовків: три варіанти на вибір (у демо є перемикач) */
[data-font="lora"]  { --h-font: var(--serif); --h-weight: 600; --h-track: -.02em;  --soft-font: var(--serif); --soft-style: normal; --soft-weight: 500; }
[data-font="onest"] { --h-font: var(--sans);  --h-weight: 600; --h-track: -.035em; --soft-font: var(--sans);  --soft-style: normal; --soft-weight: 500; }
[data-font="mix"]   { --h-font: var(--sans);  --h-weight: 600; --h-track: -.035em; --soft-font: var(--serif); --soft-style: italic; --soft-weight: 500; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(135deg, rgba(18,18,20,.022) 0 1px, transparent 1px 9px),
    var(--bg);
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: #fff; }
.skip:focus { top: 12px; }
.hide-sm { display: none; }

/* Умовні дані в демо й прототипах */
.ph { text-decoration: underline dotted var(--soft); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }

.concept { padding: 8px var(--gutter); font-size: 13px; text-align: center; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn--dark { background: var(--text); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 22px -12px rgba(0,0,0,.55); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 16px 28px -14px rgba(0,0,0,.6); }
.btn--ghost { background: rgba(255,255,255,.6); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: #fff; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Хедер: закріплений, зі скляним фоном після початку скролу ---------- */
.topbar { position: sticky; top: 0; z-index: 40; transition: background-color .3s, box-shadow .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
.topbar.is-scrolled {
  background: rgba(242, 242, 243, .78); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.logo__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--text); color: #fff; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: -.03em;
}
.nav { display: none; }
.top__actions { display: flex; align-items: center; gap: 24px; }
.top__phone { display: none; font-size: 15px; font-weight: 500; }

/* ---------- Перший екран ---------- */
.hero { padding-top: 12px; }
.hero__card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--card-a) 0%, var(--card-a) 46%, var(--card-b) 100%);
  padding: 26px 20px 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 14px 0 10px;
  border-radius: 99px; background: rgba(255,255,255,.72); border: 1px solid var(--line); font-size: 13px; color: var(--body);
}
.chip .hide-sm { margin-left: .3em; }
.chip i { margin-right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,163,107,.18); }

.hero__title { margin-top: 20px; font-size: clamp(36px, 4.4vw, 66px); line-height: 1.02; text-wrap: balance; }
.hero__main { display: block; font-family: var(--h-font); font-weight: var(--h-weight); letter-spacing: var(--h-track); }
.hero__soft { display: block; margin-top: .04em; font-family: var(--soft-font); font-style: var(--soft-style); font-weight: var(--soft-weight); letter-spacing: -.02em; color: var(--soft); }
.hero__lead { margin-top: 20px; max-width: 31em; color: var(--body); }
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 100%; }

.stats { display: flex; margin-top: 30px; }
.stat { display: flex; flex-direction: column-reverse; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line-strong); }
.stat:last-child, .stat:nth-child(2) { border: 0; margin: 0; padding: 0; }
.stat dd { white-space: nowrap; font-family: var(--h-font); font-weight: var(--h-weight); letter-spacing: var(--h-track); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.stat dt { white-space: nowrap; font-size: 13px; color: var(--muted); }
.stat--lg { display: none; }

.hero__person { position: relative; margin: 26px -20px 0; display: flex; justify-content: center; }
.hero__person img { width: min(92%, 380px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.16)); }

.glass {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 16px 16px 16px 20px; border-radius: 18px; color: #fff;
  background: rgba(28, 28, 32, .58); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.glass small { display: block; font-size: 13px; color: rgba(255,255,255,.66); }
.glass strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; }
.glass__p { display: none; margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.82); }
.glass__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--text); transition: transform .3s var(--ease); }
.glass__btn svg { width: 16px; height: 16px; }
.glass:hover .glass__btn { transform: rotate(-8deg) scale(1.06); }

/* бігучий рядок ситуацій */
.ticker { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__row { display: flex; width: max-content; animation: run 40s linear infinite; }
.ticker:hover .ticker__row, .ticker:focus-within .ticker__row { animation-play-state: paused; }
.ticker__set { display: flex; gap: 44px; padding-right: 44px; }
.ticker a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: #2b2c31; white-space: nowrap; transition: color .2s; }
.ticker a:hover { color: var(--muted); }
.ticker svg { width: 22px; height: 22px; flex: none; }
@keyframes run { to { transform: translateX(-50%); } }

/* поява при завантаженні: один плавний рух */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero__person img { animation: rise .9s var(--ease) .1s both; }
.js .glass { animation: rise .8s var(--ease) .45s both; }

/* ---------- Секції ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0 0; }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 52px); }
.h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06; text-wrap: balance; }
.h2__main { font-family: var(--h-font); font-weight: var(--h-weight); letter-spacing: var(--h-track); }
.h2__soft { font-family: var(--soft-font); font-style: var(--soft-style); font-weight: var(--soft-weight); letter-spacing: -.02em; color: var(--soft); }
.section__lead { max-width: 34em; color: var(--body); }

/* ---------- Ситуації ---------- */
.sits { display: grid; gap: 12px; }
.sit__btn {
  display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 18px;
  border-radius: var(--r-lg); background: rgba(255,255,255,.72); border: 1px solid var(--line);
  transition: background-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sit__btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(0,0,0,.35); }
.sit__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sit__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bg); }
.sit__icon svg { width: 22px; height: 22px; }
.sit__tag { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.sit__title { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.sit__short { font-size: 15px; line-height: 1.5; color: var(--muted); }
.sit__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 500; }
.sit__more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.sit__btn:hover .sit__more svg { transform: translateX(4px); }

/* ---------- Пам'ятка (dialog) ---------- */
.memo {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text);
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.35); overflow: auto;
}
.memo::backdrop { background: rgba(18,18,20,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.memo[open] { animation: sheet-up .45s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.memo__close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg); font-size: 26px; line-height: 1; color: var(--text);
}
.memo__kicker { font-size: 13px; color: var(--muted); padding-right: 52px; }
.memo__title { margin-top: 6px; padding-right: 40px; font-family: var(--h-font); font-weight: var(--h-weight); letter-spacing: var(--h-track); font-size: 26px; line-height: 1.15; }
.memo__cols { display: grid; gap: 24px; margin-top: 22px; }
.memo__h { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.memo__steps { counter-reset: s; }
.memo__steps li, .memo__bring li { position: relative; margin-bottom: 12px; padding-left: 34px; font-size: 15px; line-height: 1.5; color: var(--body); }
.memo__steps li { counter-increment: s; }
.memo__steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 7px; background: var(--text); color: #fff; font-size: 12px; font-weight: 600;
}
.memo__bring li::before { content: ""; position: absolute; left: 4px; top: .3em; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.memo__foot { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.memo__avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--card-a), var(--card-b)); }
.memo__avatar img { width: 100%; height: auto; transform: scale(2.2) translateY(-5%); transform-origin: 50% 0; }
.memo__note { font-size: 14px; line-height: 1.45; color: var(--muted); }
.memo__cta { grid-column: 1 / -1; }


/* ---------- Як я працюю ---------- */
.process { padding: 32px 20px 20px; border-radius: var(--r-lg); background: var(--text); color: #fff; }
.process .h2__soft { color: rgba(255,255,255,.5); }
.process__note { margin-top: 14px; max-width: 30em; color: rgba(255,255,255,.72); }
.steps { display: grid; gap: 10px; margin-top: 28px; }
.step { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); transition: background-color .3s; }
.step:hover { background: rgba(255,255,255,.09); }
.step__chip { display: inline-block; align-self: flex-start; padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.8); }
.step__chip .ph { text-decoration-color: rgba(255,255,255,.5); }
.step__title { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.step__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.7); }
.step__text .ph { text-decoration-color: rgba(255,255,255,.5); }

/* ---------- Про мене ---------- */
.about { display: grid; gap: 28px; }
.about__photo {
  position: relative; display: flex; justify-content: center; align-items: flex-end; height: 420px; overflow: hidden;
  border-radius: var(--r-lg); background: linear-gradient(160deg, var(--card-a) 0%, var(--card-b) 100%);
}
.about__photo img { width: auto; height: 104%; max-width: none; transform: translateY(4%); }
.about__badge {
  position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.about__badge span { font-size: 13px; color: var(--muted); }
.about__badge b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.about__text { display: grid; gap: 14px; margin-top: 20px; color: var(--body); }
.about__example { font-size: 13px; color: var(--soft); }
.facts { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-size: 16px; font-weight: 500; }
.about__secret {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.6); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--body);
}
.about__secret::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px;
  background: currentColor; -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat;
  --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

/* ---------- Вартість ---------- */
.prices { display: grid; gap: 12px; }
.price { display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.price__name { font-size: 15px; font-weight: 500; color: var(--muted); }
.price__value { margin-top: 10px; font-family: var(--h-font); font-weight: var(--h-weight); letter-spacing: var(--h-track); font-size: clamp(32px, 3vw, 42px); line-height: 1.05; }
.price__note { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--body); }
.price--main { background: var(--text); color: #fff; border-color: var(--text); }
.price--main .price__name { color: rgba(255,255,255,.6); }
.price--main .price__note { color: rgba(255,255,255,.75); }
.price--main .ph { text-decoration-color: rgba(255,255,255,.5); }
.price .btn { margin-top: 22px; align-self: flex-start; }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { transform: translateY(-1px); }


/* ---------- Питання ---------- */
.faq { display: grid; gap: 28px; }
.link { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: currentColor; }
.faq__list { display: grid; gap: 8px; }
.qa { border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); transition: background-color .25s; }
.qa[open] { background: #fff; }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); transition: background-color .25s, transform .35s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: currentColor; }
.qa__icon::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] .qa__icon { background: var(--text); color: #fff; }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa p { padding: 0 20px 20px; max-width: 46em; font-size: 16px; line-height: 1.6; color: var(--body); }
.qa[open] p { animation: rise .4s var(--ease) both; }

/* ---------- Контакти ---------- */
.section--last { padding-bottom: clamp(48px, 6vw, 96px); }
.contact { display: grid; gap: 12px; }
.contact__info { padding: 30px 22px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--card-a) 0%, var(--card-b) 100%); }
.channels { display: grid; gap: 8px; margin-top: 26px; }
.channel {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.8);
  transition: background-color .2s, transform .25s var(--ease);
}
.channel:hover { background: #fff; transform: translateY(-1px); }
.channel__k { font-size: 13px; color: var(--muted); }
.channel__v { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.form { display: grid; gap: 14px; align-content: start; padding: 30px 22px; border-radius: var(--r-lg); background: var(--text); color: #fff; }
.form__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.form__situation { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.8); }
.form__situation b { color: #fff; font-weight: 500; }
.form__situation button { flex: none; width: 44px; height: 44px; border-radius: 8px; color: #fff; font-size: 20px; text-align: center; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; color: rgba(255,255,255,.72); }
.field input {
  height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: 17px; outline: none; transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); }
.field input[aria-invalid="true"] { border-color: #FF8A7A; }
.field__error { min-height: 0; font-size: 13px; color: #FFB3A8; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 6px; background: #fff; color: var(--text); box-shadow: none; }
.form__submit:hover { background: #fff; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__note { font-size: 13px; color: rgba(255,255,255,.55); }
.form__status:empty { display: none; }
.form__status { padding: 12px 14px; border-radius: 12px; background: rgba(47,163,107,.18); font-size: 15px; }
.form__status.is-error { background: rgba(255,138,122,.16); }
.form__status a { text-decoration: underline; }

/* ---------- Футер ---------- */
.footer { padding: 28px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; gap: 14px; }
.footer__name { font-weight: 600; color: var(--text); }
.footer__secret { max-width: 36em; }


/* ---------- Варіант без фото: монограма ---------- */
.hero__mono { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 230px; margin: 10px -20px 0; overflow: hidden; }
.hero__mono span {
  font-weight: 600; font-size: 260px; line-height: .78; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fff 10%, rgba(255,255,255,.15) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.06));
}
.hero__mono ~ .glass .glass__p { display: none; }
.about__photo--mono { align-items: center; }
.about__mono {
  font-weight: 600; font-size: clamp(180px, 22vw, 320px); line-height: 1; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,.2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.memo__avatar--mono { display: grid; place-items: center; background: var(--text); color: #fff; font-size: 16px; font-weight: 600; }

/* ---------- Мобільний док ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 18px;
  background: rgba(242, 242, 243, .78); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 36px -18px rgba(0,0,0,.4);
}
.dock__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; background: #fff; font-weight: 500; font-size: 15px; }
.dock__btn svg { width: 18px; height: 18px; fill: currentColor; }
.dock__btn--dark { background: var(--text); color: #fff; }

/* ---------- Перемикач шрифтів (лише демо) ---------- */
.fontswitch {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 12px; border-radius: 99px;
  background: rgba(18,18,20,.86); color: #fff; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.fontswitch span { margin-right: 4px; opacity: .7; }
.fontswitch button { height: 32px; padding: 0 12px; border-radius: 99px; color: #fff; font-size: 13px; }
.fontswitch button[aria-pressed="true"] { background: #fff; color: var(--text); }

/* ==========================================================
   ≥ 640px
   ========================================================== */
@media (min-width: 640px) {
  .hide-sm { display: inline; }
  .hero__cta .btn { flex: none; }
  .stat--lg { display: flex; }
  .stat:nth-child(2) { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line-strong); }
  .glass__p { display: block; }
  .sits { grid-template-columns: 1fr 1fr; }
  .memo { max-width: 680px; margin: auto; padding: 40px; border-radius: 24px; }
  .memo__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .memo__foot { grid-template-columns: 48px 1fr auto; }
  .memo__cta { grid-column: auto; }
  .process { padding: 44px 36px 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about__photo { height: 520px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .contact__info, .form { padding: 40px 36px; }
}

/* ==========================================================
   ≥ 1024px — десктоп
   ========================================================== */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .top { height: 76px; }
  html { scroll-padding-top: 96px; }
  .nav { display: flex; gap: 32px; font-size: 15px; }
  .nav a { color: #3a3b40; transition: color .2s; }
  .nav a:hover { color: var(--text); }
  .top__phone { display: inline; }

  .hero { padding-top: 52px; }
  .hero__card { min-height: 600px; padding: 76px 0 64px clamp(48px, 5.5vw, 88px); overflow: visible; border-radius: var(--r-xl); }
  .hero__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; }
  .hero__content { position: relative; z-index: 2; max-width: 560px; }
  .stat { padding-right: 28px; margin-right: 28px; }
  .stat:nth-child(2) { padding-right: 28px; margin-right: 28px; }

  /* людина: голова виходить за верхній край картки */
  .hero__person {
    position: absolute; right: clamp(80px, 9vw, 170px); bottom: 0; z-index: 1; margin: 0;
    width: 470px; height: calc(100% + 60px); align-items: flex-end;
  }
  .hero__person img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
  .glass { left: auto; right: 36px; bottom: 36px; width: 330px; }
  .fontswitch { bottom: 16px; left: 16px; transform: none; }
  .ticker { margin-top: 40px; }

  .section__head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 64px; }
  .sits { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sit__btn { padding: 26px; gap: 8px; }
  .sit__top { margin-bottom: 10px; }
  .sit__icon { width: 44px; height: 44px; }
  .sit__title { font-size: 21px; }
  .sit__more { padding-top: 14px; }

  .process { padding: 64px clamp(48px, 5.5vw, 88px) 56px; border-radius: var(--r-xl); }
  .process__head { display: grid; grid-template-columns: 7fr 5fr; align-items: end; column-gap: 64px; }
  .process__note { margin-top: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
  .step { display: flex; flex-direction: column; min-height: 230px; padding: 26px; }

  .about { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 104px); align-items: center; }
  .about__photo { height: 640px; border-radius: var(--r-xl); }
  .about__badge { left: 24px; bottom: 24px; }
  .about__text { font-size: 18px; }

  .prices { grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
  .price { padding: 32px 30px; min-height: 280px; }

  .faq { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 104px); align-items: start; }
  .faq__head { position: sticky; top: 32px; display: grid; gap: 16px; }
  .qa summary { padding: 18px 24px; font-size: 18px; }
  .qa p { padding: 0 24px 24px; }

  .contact { grid-template-columns: 7fr 5fr; gap: 16px; }
  .contact__info { padding: 64px clamp(48px, 5.5vw, 88px); border-radius: var(--r-xl); }
  .channels { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .form { padding: 48px 44px; border-radius: var(--r-xl); }

  .footer__inner { grid-template-columns: 1fr 1.4fr auto; align-items: start; gap: 48px; }
  .hero__mono { position: absolute; right: clamp(60px, 8vw, 150px); bottom: 0; top: -60px; z-index: 1; width: 520px; height: auto; margin: 0; }
  .hero__mono span { font-size: 440px; }
  .hero__mono ~ .glass .glass__p { display: block; }
}

/* ---------- Без анімацій ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
