/* Адвокат Анатолій Кузнецов — стилі лендингу. Один файл, без збірки.
   Бренд — з брендбука: еспресо, золото, білий; монограма «АК» і напис — файли з брендбука.
   Золото — тільки кнопка дзвінка, тонкі лінії й монограма. Довгі тексти — на білому.
   Темні частини (шапка, перший екран, «Як звернутися», підвал, нижня панель) мають клас .dark:
   він лише перемикає змінні кольорів, тому стилі кнопок не перекривають один одного. */

@font-face {
  font-family: "AK Display";
  src: url("/assets/fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --espresso: #15110e;
  --ink: #1f1611;
  --paper: #ffffff;
  --gold: #d8bd7a;
  --gold-hi: #e8d29a;
  --bronze: #8a6a3b;
  --snow: #f3ede4;
  --mist: #bcb1a4;
  --dusk: #675e57;
  --line: #e7e1d9;
  --line-dark: rgba(216, 189, 122, 0.3);

  /* Світлий контекст за замовчуванням */
  --text-1: var(--ink);
  --text-2: var(--dusk);
  --rule: var(--line);
  --call-bg: var(--espresso);
  --call-bg-hover: #2b231d;
  --call-fg: var(--gold-hi);
  --msg-fg: var(--ink);
  --msg-line: #cbc2b7;
  --msg-line-hover: var(--bronze);
  --focus: var(--bronze);

  --display: "AK Display", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --bar-h: 68px;
}

.dark {
  --text-1: var(--snow);
  --text-2: var(--mist);
  --rule: var(--line-dark);
  --call-bg: var(--gold);
  --call-bg-hover: var(--gold-hi);
  --call-fg: var(--espresso);
  --msg-fg: var(--snow);
  --msg-line: rgba(243, 237, 228, 0.34);
  --msg-line-hover: var(--gold);
  --focus: var(--gold);
  background: var(--espresso);
  color: var(--text-1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  /* темний фон знизу — під підвалом і нижньою панеллю */
  background: var(--espresso);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  /* Cormorant за замовчуванням пише цифри «старого стилю» (різної висоти, з хвостами вниз) — у заголовках
     «332», «204-1» виглядали негарно (Роман, 17.10.2026). Звичайні цифри є у файлі шрифту (lnum);
     системний шрифт тексту й так пише звичайні. */
  font-variant-numeric: lining-nums;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

main {
  background: var(--paper);
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

.nw {
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: 42rem;
}

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

.site-header {
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* На телефоні дзвінок і месенджери — у нижній панелі */
.header-contacts {
  display: none;
  margin-left: auto;
}

/* Перемикач мови «УКР | РУС» — у правому куті шапки. Поточна мова — світлим, з тонкою золотою лінією;
   друга — приглушеним посиланням. Висота 44 px — щоб зручно влучити пальцем. */
.lang-switch {
  display: flex;
  flex: none;
  margin-right: -10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang-switch > a,
.lang-current {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  line-height: 44px;
}

.lang-switch > a {
  color: var(--mist);
  text-decoration: none;
}

.lang-switch > a:hover {
  color: var(--snow);
}

.lang-current {
  color: var(--snow);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* тонка риска між мовами */
.lang-switch > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 14px;
  margin-top: -7px;
  border-left: 1px solid var(--line-dark);
}

.header-phone {
  margin-right: 6px;
  color: var(--text-1);
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
  text-decoration: none;
}

.header-phone:hover {
  text-decoration: underline;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.6em 1.1em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn-call {
  background: var(--call-bg);
  color: var(--call-fg);
}

.btn-call:hover {
  background: var(--call-bg-hover);
}

.btn-msg {
  background: transparent;
  color: var(--msg-fg);
  border-color: var(--msg-line);
}

.btn-msg:hover {
  border-color: var(--msg-line-hover);
}

/* Ряд кнопок: на телефоні — дзвінок на всю ширину, месенджери втрьох */
.cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.cta .btn-call {
  grid-column: 1 / -1;
}

.cta .long {
  display: none;
}

.contacts {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}

.contacts a {
  color: var(--text-1);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Перший екран ---------- */

.hero {
  padding: 28px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  grid-template-areas:
    "id photo"
    "h1 h1"
    "body body"
    "trust trust"
    "cta cta"
    "contacts contacts";
  column-gap: 22px;
}

.hero-id {
  grid-area: id;
  align-self: end;
}

.hero-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.06;
}

.hero-name span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--gold);
}

.cert {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-2);
}

/* Фото в золотій рамці: рамка зсунута вгору-праворуч, фото виходить за неї — як літери з квадрата монограми */
.portrait {
  position: relative;
  margin: 12px 12px 0 0;
}

.portrait::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid var(--gold);
}

.portrait picture,
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.hero .portrait {
  grid-area: photo;
}

.hero h1 {
  grid-area: h1;
  margin-top: 30px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.375rem, 1.7rem + 2.6vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero .lead,
.hero .articles {
  grid-area: body;
}

.lead {
  margin-top: 18px;
  font-size: 1.125rem;
  color: #ddd4c8;
}

.articles {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd4c8;
}

.articles li + li {
  margin-top: 12px;
}

/* Рядок довіри: рейтинг у Google і доступність — маркери-квадрати, як у списках */
.hero .trust {
  grid-area: trust;
}

.trust {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.45;
  color: #ddd4c8;
}

.trust li {
  position: relative;
  padding-left: 1.5em;
  margin-top: 6px;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.55em;
  width: 0.4em;
  height: 0.4em;
  border: 1px solid var(--gold);
}

.trust a {
  color: #fff;
  font-weight: 600;
}

.hero .cta {
  grid-area: cta;
}

/* На телефоні месенджери першого екрана — у нижній панелі, тут лише дзвінок */
.hero .btn-msg {
  display: none;
}

.hero .contacts {
  grid-area: contacts;
}

/* ---------- Ситуації ---------- */

.situations {
  padding: 44px 0 56px;
}

.situations h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.625rem);
  line-height: 1.08;
}

.sit-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

/* Картка зі старим якорем блоку, що переїхав на свою сторінку (/#zatrymannia, /#obshuk, /#aresht-maina, 20.10.2026) */
.sit-list li[id] {
  scroll-margin-top: 16px;
}

.sit-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.sit-title {
  grid-column: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.12;
}

.sit-desc {
  grid-column: 1;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-2);
}

/* Шеврон у тонкому колі — однаковий для всіх ситуацій (17.10.2026, замість стрілок ↓ і →) */
.sit-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--bronze);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sit-list a:hover .sit-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.sit-list a:hover .sit-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .sit-icon {
    transition: none;
  }

  .sit-list a:hover .sit-icon {
    transform: none;
  }
}

/* ---------- Блоки ---------- */

.block {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 16px;
}

.block h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.block h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

.block > .wrap > .prose > h3 {
  margin-top: 36px;
}

.lead-in {
  margin-top: 18px;
  font-weight: 600;
}

.block p + p {
  margin-top: 12px;
}

.tasks,
.parts {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tasks li,
.parts li {
  position: relative;
  padding-left: 1.5em;
  margin-top: 9px;
}

/* маркер — маленький квадрат, як рамка монограми */
.tasks li::before,
.parts li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.6em;
  width: 0.4em;
  height: 0.4em;
  border: 1px solid var(--bronze);
}

.dark .tasks li::before {
  border-color: var(--gold);
}

.parts {
  margin-bottom: 16px;
}

/* Кроки «Що буде після звернення»: номер у квадраті — як рамка монограми */
.steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 2rem;
  padding-left: 3rem;
  margin-top: 16px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--bronze);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  line-height: calc(2rem - 2px);
  text-align: center;
}

/* Крок із двома випадками («обшук іде зараз» / «обшук уже закінчився»): вкладений список з маркером-квадратом */
.steps .cases {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.steps .cases li {
  min-height: 0;
  padding-left: 1.5em;
  margin-top: 8px;
  counter-increment: none;
}

.steps .cases li::before {
  content: "";
  left: 0.2em;
  top: 0.6em;
  width: 0.4em;
  height: 0.4em;
}

.steps + .law {
  margin-top: 28px;
}

/* Коротке відео Анатолія: вертикальне, вантажиться після натискання */
.video {
  max-width: 18rem;
  margin: 28px 0 0;
}

.video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--ink);
}

/* Назва відео під ним — виділена (Роман, 17.10.2026) */
.video figcaption {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-1);
}

.more {
  margin-top: 20px;
  font-weight: 600;
}

/* Довідка за КПК — норми закону, а не послуги: окремий голос, золота лінія зліва.
   Згорнута за замовчуванням: <details>, без JavaScript; заголовок і плюс — у <summary>. */
.law {
  margin-top: 40px;
  padding: 0 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-size: 1.0625rem;
}

.law:not([open]) {
  padding-bottom: 0;
}

/* Без трикутника браузера: display: block і list-style прибирають ::marker, Safari — ::-webkit-details-marker */
.law summary {
  display: block;
  position: relative;
  min-height: 48px;
  padding: 10px 44px 10px 0;
  list-style: none;
  cursor: pointer;
}

.law summary::-webkit-details-marker {
  display: none;
}

.law h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  text-wrap: balance;
}

.law-icon {
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  color: var(--bronze);
}

.law[open] .law-icon-v {
  opacity: 0;
}

/* Відступ під заголовком однаковий для списку й абзацу */
.law summary + ol,
.law summary + ul,
.law summary + p {
  margin-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .law-icon-v {
    transition: opacity 0.15s;
  }
}

@media (hover: hover) {
  .law summary:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
  }

  .law summary:hover .law-icon {
    color: var(--ink);
  }
}

.law ol,
.law ul {
  margin: 10px 0 0;
  padding-left: 1.25em;
}

.law ul {
  list-style: none;
}

.law ul li {
  position: relative;
}

.law ul li::before {
  content: "–";
  position: absolute;
  left: -1.05em;
  color: var(--bronze);
}

.law li {
  margin-top: 10px;
  padding-left: 0.2em;
}

.law ol li::marker {
  color: var(--bronze);
  font-weight: 600;
}

.law p {
  margin-top: 10px;
}

.cite {
  color: var(--text-2);
  font-size: 0.94em;
}

/* Як звернутися — темна смуга з фото */
.block-contact {
  border-top: 0;
}

.contact-grid {
  display: grid;
  row-gap: 32px;
}

/* Про адвоката: фото в золотій рамці поруч з ПІБ, факти — рядками з тонкими лініями, як список ситуацій */
.about-grid {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas:
    "photo head"
    "facts facts";
  column-gap: 26px;
  align-items: center;
  max-width: 42rem;
  margin-top: 30px;
}

.portrait-about {
  grid-area: photo;
  margin: 8px 8px 0 0;
}

.portrait-about::before {
  top: -8px;
  right: -8px;
  bottom: 8px;
  left: 8px;
}

.about-head {
  grid-area: head;
}

.about-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.08;
  text-wrap: balance;
}

/* «Адвокат» над ім'ям — як на першому екрані */
.about-name span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--bronze);
}

.block .about-since {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-2);
}

.facts {
  grid-area: facts;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.facts li {
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--rule);
}

.facts a {
  font-weight: 600;
}

.ext-icon {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  vertical-align: -0.02em;
  color: var(--bronze);
}

/* ---------- Сторінка 404 ---------- */

.notfound {
  padding: 48px 0 56px;
}

.notfound h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.375rem, 1.7rem + 2.6vw, 3.5rem);
  line-height: 1.04;
  color: #fff;
}

.notfound p {
  margin-top: 14px;
}

.notfound-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
}

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

.site-footer {
  border-top: 1px solid var(--line-dark);
  padding: 40px 0 48px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.footer-mark {
  display: block;
  width: 64px;
  height: auto;
  margin-bottom: 22px;
}

.site-footer p + p {
  margin-top: 8px;
}

.footer-name {
  color: var(--text-1);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
}

.site-footer a {
  color: var(--text-1);
  font-weight: 600;
}

.footer-h {
  margin-top: 26px;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

/* ---------- Нижня панель на телефоні ---------- */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(21, 17, 14, 0.97);
  border-top: 1px solid var(--line-dark);
}

.bar .btn {
  min-height: 52px;
  padding: 0.4em 0.2em;
  font-size: 0.875rem;
}

/* ---------- Текстова сторінка (персональні дані) ---------- */

.page {
  padding: 44px 0 64px;
}

.page h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem);
  line-height: 1.05;
}

.page h2 {
  margin-top: 36px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
}

.page p {
  margin-top: 12px;
}

.page h1 + p,
.page h2 + p {
  margin-top: 14px;
}

.page .tasks + p {
  margin-top: 14px;
}

.updated {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.page p.updated {
  margin-top: 32px;
}

/* ---------- Планшет і компʼютер ---------- */

/* Планшет вертикально і телефон горизонтально: фото не більше за текст поруч */
@media (min-width: 600px) and (max-width: 859px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .hero-id {
    align-self: center;
  }
}

@media (min-width: 600px) and (max-width: 859px) and (max-height: 520px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 170px;
  }
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }

  .block {
    padding: 72px 0;
  }

  /* Чотири кнопки сіткою 2 × 2, повні підписи */
  .cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 36rem;
  }

  .cta .btn-call {
    grid-column: auto;
  }

  .cta .long {
    display: inline;
  }

  .hero .btn-msg {
    display: inline-flex;
  }

  /* Довідка — по ширині ряду кнопок: плюс стоїть під правим краєм кнопок */
  .law {
    max-width: 36rem;
  }

  .law h3 {
    font-size: 1.625rem;
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 64px 0 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    grid-template-rows: auto auto auto auto auto 1fr;
    grid-template-areas:
      "id photo"
      "h1 photo"
      "body photo"
      "trust photo"
      "cta photo"
      "contacts photo";
    column-gap: clamp(56px, 7vw, 120px);
  }

  .hero-id {
    align-self: start;
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .hero h1 {
    margin-top: 34px;
  }

  .lead,
  .articles {
    font-size: 1.125rem;
    max-width: 36rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .hero .portrait {
    align-self: start;
    margin: 18px 18px 0 0;
  }

  .portrait::before {
    top: -18px;
    right: -18px;
    bottom: 18px;
    left: 18px;
  }

  .situations {
    padding: 72px 0 80px;
  }

  .situations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
    column-gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }

  .sit-list {
    margin-top: 0;
  }

  .sit-list a {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 34px;
    column-gap: 32px;
    padding: 22px 0 24px;
  }

  .sit-title {
    font-size: 1.625rem;
  }

  .sit-desc {
    grid-column: 2;
    grid-row: 1;
  }

  .sit-icon {
    grid-column: 3;
    grid-row: 1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    column-gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }

  .contact-grid .portrait {
    order: 2;
    margin: 18px 18px 0 0;
  }

  /* Про адвоката: фото ліворуч, ім'я й факти праворуч */
  .about-grid {
    grid-template-columns: 240px minmax(0, 40rem);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "photo head"
      "photo facts";
    column-gap: clamp(56px, 6vw, 96px);
    align-items: start;
    max-width: none;
    margin-top: 40px;
  }

  .portrait-about {
    margin: 12px 12px 0 0;
  }

  .portrait-about::before {
    top: -12px;
    right: -12px;
    bottom: 12px;
    left: 12px;
  }

  .about-head {
    padding-top: 12px;
  }

  .about-name {
    font-size: 2.125rem;
  }

  .facts {
    margin-top: 26px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 96px minmax(0, 42rem);
    column-gap: 40px;
  }

  .footer-mark {
    width: 80px;
    margin: 6px 0 0;
  }
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .bar {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    height: 40px;
  }

  .header-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-contacts .btn {
    min-height: 44px;
    padding: 0.45em 1em;
    font-size: 0.9375rem;
  }

  .header-msg {
    display: none;
  }

  .block,
  .sit-list li[id] {
    scroll-margin-top: 92px;
  }
}

@media (min-width: 1180px) {
  .header-msg {
    display: inline-flex;
  }
}

/* ---------- Перший екран головної, v2 (19.10.2026) ----------
   Фраза-гачок під H1, рядок «до початку роботи — безкоштовно», кнопка дзвінка — над рядком довіри: на телефоні
   360–390 px її видно без прокрутки (записи Clarity 17–19.10). Решта сторінок — як були (клас hero-v2 лише на головній). */
.hero-v2 .hero-grid {
  grid-template-areas:
    "id photo"
    "h1 h1"
    "hook hook"
    "body body"
    "free free"
    "cta cta"
    "trust trust"
    "contacts contacts";
}

/* Гачок — білим із тонкою золотою лінією: золото за брендбуком — лише кнопка дзвінка, тонкі лінії й монограма */
.hero-hook {
  grid-area: hook;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  color: #fff;
}

.hero-v2 .lead {
  margin-top: 10px;
}

.hero .hero-free {
  grid-area: free;
  margin-top: 8px;
  color: #fff;
}

.hero-v2 .cta {
  margin-top: 20px;
}

/* «Як звернутися» на головній: та сама думка перед кнопками */
.contact-free {
  margin-top: 24px;
  color: #fff;
}

/* Телефон: компактніше ім'я й фото, щоб гачок, кнопка й рейтинг уміщалися на першому екрані */
@media (max-width: 599px) {
  .hero-v2 {
    padding-top: 16px;
  }

  .hero-v2 .hero-grid {
    grid-template-columns: minmax(0, 1fr) 34%;
    column-gap: 16px;
  }

  .hero-v2 .hero-name {
    font-size: 1.375rem;
  }

  .hero-v2 .hero-name span {
    margin-bottom: 4px;
    font-size: 0.875rem;
  }

  .hero-v2 .cert {
    margin-top: 8px;
    font-size: 0.8125rem;
  }

  .hero-v2 h1 {
    margin-top: 16px;
    font-size: 2rem;
  }

  .hero-hook {
    margin-top: 12px;
    font-size: 1.5rem;
  }
}

/* Вузькі телефони (360 px): російська версія довша — дрібніше, щоб кнопка дзвінка лишалася на першому екрані */
@media (max-width: 379px) {
  .hero-v2 h1 {
    font-size: 1.875rem;
  }

  .hero-hook {
    font-size: 1.375rem;
  }

  .hero-v2 .lead {
    font-size: 1.0625rem;
  }
}

@media (min-width: 860px) {
  .hero-v2 .hero-grid {
    grid-template-rows: auto auto auto auto auto auto auto 1fr;
    grid-template-areas:
      "id photo"
      "h1 photo"
      "hook photo"
      "body photo"
      "free photo"
      "cta photo"
      "trust photo"
      "contacts photo";
  }

  .hero-hook {
    margin-top: 22px;
    font-size: 2.125rem;
  }
}
