/* ===== Дизайн-токены ===== */
/* Палитра: глубокий тёмно-синий «правосудие» + тёплое золото + светлая бумага.
   Строгий современный стиль для адвокатского лендинга. */
:root {
  --bg: #0c1726;            /* тёмно-синий фон (тёмные секции) */
  --bg-2: #102135;          /* секции на тёмном */
  --bg-3: #16293f;          /* карточки на тёмном */
  --navy: #0f1c2e;          /* почти чёрный синий */
  --gold: #c0a062;          /* основной акцент */
  --gold-soft: #dcc28a;
  --gold-deep: #9a7d3e;
  --cream: #f3f5f8;         /* светлый текст на тёмном */
  --paper: #ffffff;         /* карточки на светлом */
  --paper-2: #f4f6f9;       /* светлые секции */
  --ink: #16202e;           /* текст на светлом */
  --ink-soft: #5a6573;      /* приглушённый текст на светлом */
  --line: #e2e7ee;          /* границы на светлом */
  --line-dark: rgba(192, 160, 98, 0.20); /* границы на тёмном */
  --muted-light: rgba(243, 245, 248, 0.72);

  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 26px 60px -28px rgba(6, 14, 26, 0.7);
  --shadow-soft: 0 14px 36px -20px rgba(15, 28, 46, 0.28);
  --shadow-gold: 0 16px 40px -22px rgba(192, 160, 98, 0.5);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ===== Базовое ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: 0.005em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Секции: центрированная композиция заголовков */
.section { padding: 96px 0; position: relative; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section__eyebrow::before,
.section__eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--gold); display: inline-block;
}
.section__title { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); margin-bottom: 16px; font-weight: 700; text-align: center; }
.section__lead { max-width: 640px; color: var(--ink-soft); font-size: 1.06rem; margin: 0 auto 48px; text-align: center; }
.section__head { text-align: center; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #1c1408; box-shadow: var(--shadow-gold); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -20px rgba(192, 160, 98, 0.65); }
.btn--ghost { background: rgba(243, 245, 248, 0.06); color: var(--cream); border-color: rgba(192, 160, 98, 0.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(243, 245, 248, 0.14); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===== Хедер ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 23, 38, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.header__brand { display: flex; align-items: center; gap: 12px; color: var(--cream); white-space: nowrap; flex: none; }
.header__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.header__brand-text b { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--cream); letter-spacing: 0.02em; }
.header__brand-text small { font-size: 0.7rem; color: var(--gold-soft); letter-spacing: 0.06em; }
.header__brand-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  color: var(--gold-soft);
}
.brand-shield { width: 44px; height: 44px; display: block; }
.header__nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.9rem; font-weight: 600; }
.header__nav a { color: var(--muted-light); transition: color 0.2s; white-space: nowrap; position: relative; }
.header__nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: var(--gold); transition: right 0.25s ease; }
.header__nav a:hover { color: var(--cream); }
.header__nav a:hover::after { right: 0; }
.header__cta { padding: 11px 22px; flex: none; }
.header__phone { display: flex; align-items: center; gap: 8px; flex: none; color: var(--gold-soft); font-weight: 700; font-size: 0.95rem; white-space: nowrap; transition: color 0.2s; }
.header__phone:hover { color: var(--cream); }
.header__phone svg { flex: none; }
/* Где номер не помещается (узкий десктоп с меню и телефоны) — только иконка-кнопка звонка */
@media (min-width: 1025px) and (max-width: 1180px), (max-width: 560px) {
  .header__phone { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; }
  .header__phone span { display: none; }
}

@media (max-width: 1180px) { .header__brand-text small { display: none; } }
.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.header__burger span { width: 24px; height: 2px; background: var(--gold-soft); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% 0%, #173251 0%, var(--navy) 55%, #0a1420 100%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(192, 160, 98, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 160, 98, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 0%, transparent 80%);
  opacity: 0.6;
}
.hero__inner { position: relative; max-width: 920px; margin: 0 auto; padding: 120px 0 90px; display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  display: inline-block;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 999px;
  margin: 0 0 26px;
  max-width: 100%;
}
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: 22px; font-weight: 700; text-shadow: 0 4px 40px rgba(0,0,0,0.4); }
.hero__title em { font-style: normal; color: var(--gold-soft); }
.hero__subtitle { font-size: clamp(1.02rem, 1.8vw, 1.22rem); max-width: 64ch; color: rgba(243,245,248,0.86); margin: 0 auto 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(28px, 5vw, 56px); margin: 0; justify-content: center; }
.hero__stat dt { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 700; color: var(--gold-soft); }
.hero__stat dd { margin: 0; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(243,245,248,0.7); }

/* ===== Преимущества (О нас) ===== */
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--navy); border-radius: 12px;
  margin: 0 auto 20px;
  position: relative;
}
.card__icon::before { content: ''; width: 28px; height: 28px; background: var(--gold-soft); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
/* Иконки (inline SVG через mask) */
.card__icon[data-icon="shield"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5zm-1 13-3.5-3.5 1.4-1.4L11 12.2l4.1-4.1 1.4 1.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5zm-1 13-3.5-3.5 1.4-1.4L11 12.2l4.1-4.1 1.4 1.4z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="double"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 12a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm8 0a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM8 13.5c-3 0-6 1.5-6 4.5V20h8v-2c0-1.3.5-2.5 1.3-3.5-1-.7-2.2-1-3.3-1zm8 0c-1.1 0-2.3.3-3.3 1 .8 1 1.3 2.2 1.3 3.5v2h8v-2c0-3-3-4.5-6-4.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 12a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zm8 0a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM8 13.5c-3 0-6 1.5-6 4.5V20h8v-2c0-1.3.5-2.5 1.3-3.5-1-.7-2.2-1-3.3-1zm8 0c-1.1 0-2.3.3-3.3 1 .8 1 1.3 2.2 1.3 3.5v2h8v-2c0-3-3-4.5-6-4.5z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="clock"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 4 2.3-1 1.7-5-2.9V6h2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 4 2.3-1 1.7-5-2.9V6h2z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="insider"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4.5C7 4.5 2.7 7.6 1 12c1.7 4.4 6 7.5 11 7.5S21.3 16.4 23 12c-1.7-4.4-6-7.5-11-7.5zm0 12.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4.5C7 4.5 2.7 7.6 1 12c1.7 4.4 6 7.5 11 7.5S21.3 16.4 23 12c-1.7-4.4-6-7.5-11-7.5zm0 12.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="search"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="person"]::before,
.card__icon[data-icon="consult"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4 0-8 2-8 5v1h16v-1c0-3-4-5-8-5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4 0-8 2-8 5v1h16v-1c0-3-4-5-8-5z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="court"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 6v2h18V6zM5 10v7H4v3h16v-3h-1v-7h-2v7h-2v-7h-2v7h-2v-7H9v7H7v-7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 6v2h18V6zM5 10v7H4v3h16v-3h-1v-7h-2v7h-2v-7h-2v7h-2v-7H9v7H7v-7z'/%3E%3C/svg%3E"); }
.card__title { font-size: 1.4rem; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.card__text { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ===== Адвокат ===== */
.lawyer { background: var(--bg); color: var(--cream); }
.lawyer .section__eyebrow { color: var(--gold-soft); justify-content: flex-start; }
.lawyer .section__eyebrow::after { display: none; }
.lawyer .section__title { color: var(--cream); text-align: left; margin-bottom: 6px; }
.lawyer__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.lawyer__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-dark); background: var(--bg-3); aspect-ratio: 3 / 4; }
.lawyer__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lawyer__badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(12, 23, 38, 0.85); backdrop-filter: blur(6px);
  color: var(--gold-soft); border: 1px solid var(--gold);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px;
}
.lawyer__role { color: var(--gold-soft); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; margin: 0 0 22px; }
.lawyer__lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--cream); line-height: 1.4; margin: 0 0 22px; }
.lawyer__bio { color: var(--muted-light); margin: 0 0 16px; }
.lawyer__facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.lawyer__facts li { position: relative; padding-left: 30px; color: var(--cream); font-weight: 500; }
.lawyer__facts li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--gold-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== Услуги ===== */
.services { background: var(--paper-2); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.services__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.services__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.services__card .card__icon { margin: 0 0 18px; }
.services__title { font-size: 1.35rem; color: var(--ink); margin-bottom: 14px; font-weight: 700; }
.services__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.services__list li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.services__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.services__cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 30px 36px; text-align: center; }
.services__cta p { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--cream); }

/* ===== Результаты (кейсы) ===== */
.cases { background: var(--bg); color: var(--cream); }
.cases .section__title { color: var(--cream); }
.cases .section__lead { color: var(--muted-light); }
.cases .section__eyebrow { color: var(--gold-soft); }
.cases__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 20px;
  background: var(--bg-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.case-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card__media {
  position: relative; display: block;
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--navy);
  border: 1px solid var(--line-dark);
}
.case-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.case-card__media:hover img { transform: scale(1.05); }
.case-card__zoom {
  position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px;
  background: rgba(12,23,38,0.8); border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
}
.case-card__zoom::before {
  content: ''; width: 16px; height: 16px; background: var(--gold-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zM10 7v2H8v1h2v2h1v-2h2V9h-2V7z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zM10 7v2H8v1h2v2h1v-2h2V9h-2V7z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.case-card__body { min-width: 0; display: flex; flex-direction: column; }
.case-card__tag { display: inline-block; align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.case-card__title { font-size: 1.2rem; color: var(--cream); margin: 0 0 8px; font-weight: 700; line-height: 1.25; }
.case-card__text { color: var(--muted-light); font-size: 0.9rem; margin: 0 0 14px; }
.case-card__result { margin: auto 0 0; font-weight: 700; color: var(--gold-soft); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.case-card__result::before {
  content: ''; width: 18px; height: 18px; flex: none; background: var(--gold-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cases__detail { margin: 34px 0 0; background: var(--bg-3); border: 1px solid var(--line-dark); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.cases__detail blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--cream); }
.cases__detail figcaption { margin-top: 16px; color: var(--gold-soft); font-size: 0.9rem; letter-spacing: 0.02em; }
.cases__disclaimer { margin: 26px auto 0; max-width: 760px; text-align: center; font-size: 0.82rem; color: rgba(243,245,248,0.5); }

/* ===== Контакты / Расположение ===== */
.location { background: var(--bg-2); color: var(--cream); }
.location .section__eyebrow { color: var(--gold-soft); justify-content: flex-start; }
.location .section__eyebrow::after { display: none; }
.location .section__title { color: var(--cream); text-align: left; }
.location__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.location__region { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--cream); margin: 0 0 8px; }
.location__hours { color: var(--gold-soft); letter-spacing: 0.04em; font-size: 0.9rem; margin: 0 0 26px; }
.location__contacts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.location__contacts li { display: flex; flex-direction: column; gap: 2px; }
.location__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep); font-weight: 700; }
.location__value { font-size: 1.05rem; color: var(--cream); font-weight: 600; transition: color 0.2s; }
.location__value:hover { color: var(--gold-soft); }
.location__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.location__list li { position: relative; padding-left: 28px; color: var(--muted-light); }
.location__list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; background: var(--gold-soft); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain; }
.location__map { border-radius: var(--radius); overflow: hidden; height: 440px; box-shadow: var(--shadow); border: 1px solid var(--line-dark); }
.location__map iframe { border: 0; width: 100%; height: 100%; filter: grayscale(0.2); }

/* ===== Заявка ===== */
.booking { background: var(--bg); color: var(--cream); }
.booking .section__eyebrow { color: var(--gold-soft); justify-content: flex-start; }
.booking .section__eyebrow::after { display: none; }
.booking .section__title { color: var(--cream); text-align: left; }
.booking__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 64px); align-items: start; }
.booking__lead { color: var(--muted-light); font-size: 1.06rem; margin: 0 0 32px; max-width: 50ch; }
.booking__steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 18px; }
.booking__step { display: flex; gap: 18px; align-items: flex-start; }
.booking__step-num { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--gold); color: var(--gold-soft); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.booking__step b { color: var(--cream); font-size: 1.05rem; }
.booking__step p { margin: 2px 0 0; color: var(--muted-light); font-size: 0.95rem; }
.booking__note { color: rgba(243,245,248,0.62); font-size: 0.9rem; margin: 0; padding-top: 22px; border-top: 1px solid var(--line-dark); }

.booking__card { background: linear-gradient(160deg, var(--bg-3), var(--navy)); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(28px, 3.5vw, 40px); box-shadow: var(--shadow); }
.booking__card h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 1.9rem); color: var(--cream); margin-bottom: 8px; font-weight: 700; }
.booking__card-lead { color: var(--muted-light); margin: 0 0 24px; font-size: 0.96rem; }
.booking__small { font-size: 0.78rem; color: rgba(243,245,248,0.5); margin: 14px 0 0; text-align: center; }

/* ===== Форма ===== */
.bform { position: relative; }
.bform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bform__field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.bform__row .bform__field { margin-bottom: 0; }
.bform__field > span { font-size: 0.78rem; color: var(--gold-soft); font-weight: 600; letter-spacing: 0.02em; }
.bform input:not([type="checkbox"]), .bform select, .bform textarea {
  -webkit-appearance: none; appearance: none;
  font-family: var(--sans); font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line-dark); border-radius: 9px;
  background: rgba(8, 16, 26, 0.6); color: var(--cream);
  width: 100%; max-width: 100%; min-width: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.bform input:not([type="checkbox"]), .bform select { height: 48px; }
.bform textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.bform input::placeholder, .bform textarea::placeholder { color: rgba(243,245,248,0.4); }
.bform input:not([type="checkbox"]):focus, .bform select:focus, .bform textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,160,98,0.18); }
.bform select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dcc28a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.bform__check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted-light); cursor: pointer; }
.bform__check input { width: 18px; height: 18px; flex: none; accent-color: var(--gold); cursor: pointer; }
.bform__urgent { margin: 4px 0 2px; padding: 12px 14px; border: 1px dashed var(--line-dark); border-radius: 9px; background: rgba(192,160,98,0.05); }
.bform input.bform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bform__submit { margin-top: 20px; }
.bform__status { font-size: 0.9rem; margin: 14px 0 0; text-align: center; min-height: 1.2em; }
.bform__status.is-ok { color: #8fd6a0; }
.bform__status.is-err { color: #e8a48f; }

/* ===== FAQ ===== */
.faq { background: var(--bg-2); color: var(--cream); }
.faq .section__title { color: var(--cream); }
.faq .section__eyebrow { color: var(--gold-soft); }
.faq__list { max-width: 860px; margin: 0 auto; }
.faq__item {
  background: var(--bg-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--gold); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; cursor: pointer;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--cream);
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--gold); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; transition: transform 0.25s ease; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__answer { padding: 0 26px 22px; color: var(--muted-light); }
.faq__answer p { margin: 0; }

/* ===== Футер ===== */
.site-footer { background: #070d16; color: rgba(243,245,248,0.7); padding: 54px 0 40px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 15px; }
.footer__name { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); margin: 0; font-weight: 700; }
.footer__addr { font-size: 0.88rem; color: var(--muted-light); margin: 3px 0 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.9rem; }
.footer__nav a { color: var(--muted-light); }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__phone { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.footer__phone:hover { color: var(--cream); }
.footer__copy { width: 100%; font-size: 0.8rem; color: var(--muted-light); opacity: 0.6; margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line-dark); }

/* ===== Лайтбокс ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(5,9,15,0.97); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__img { max-width: 92vw; max-height: 80vh; border-radius: var(--radius-sm); object-fit: contain; background: #fff; }
.lightbox__caption { color: var(--muted-light); margin-top: 16px; font-size: 0.92rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(243,245,248,0.1); color: var(--cream); border: 1px solid var(--line-dark); cursor: pointer; display: grid; place-items: center; transition: background 0.25s, border-color 0.25s; border-radius: 50%; }
.lightbox__close { top: 24px; right: 24px; width: 48px; height: 48px; font-size: 1.7rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.2rem; line-height: 1; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(192,160,98,0.3); border-color: var(--gold); }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__phone { margin-left: auto; }
  .header__nav.is-open {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(12,23,38,0.98); backdrop-filter: blur(14px);
    padding: 28px 24px; border-bottom: 1px solid var(--line-dark); font-size: 1rem;
  }
  .header__nav.is-open a { color: var(--cream); }
  .booking__inner, .location__inner, .lawyer__inner { grid-template-columns: 1fr; gap: 40px; }
  .lawyer__media { max-width: 420px; }
}
@media (max-width: 900px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: 1fr; }
  .location__map { height: 340px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .about__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .bform__row { grid-template-columns: 1fr; }
  .services__cta { flex-direction: column; }
  .case-card { grid-template-columns: 104px 1fr; gap: 14px; padding: 14px; }
  /* Длинный бейдж должен переноситься, а не обрезаться */
  .hero__badge { white-space: normal; line-height: 1.5; letter-spacing: 0.08em; font-size: 0.68rem; border-radius: 16px; }
  /* 16px — иначе iOS Safari зумит при фокусе */
  .bform input:not([type="checkbox"]), .bform select, .bform textarea { font-size: 16px; }
}
