/* ============================================================
   АБ «Прайм Дефенс» — тёмный премиум
   Палитра: графит + приглушённое золото
   ============================================================ */

:root {
  --bg: #0e1116;
  --bg-2: #141922;
  --bg-3: #1a2029;
  --ink: #e9e6df;
  --ink-strong: #f7f4ec;
  --muted: #9aa2ad;
  --gold: #c9a962;
  --gold-bright: #e3cc93;
  --gold-dim: rgba(201, 169, 98, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(201, 169, 98, 0.35);
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* при переходе по якорям заголовок не должен прятаться под липкой шапкой */
[id] { scroll-margin-top: 92px; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--ink-strong); }

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

/* ---------- Типографика ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 48px; }

.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

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

.btn {
  display: inline-block;
  padding: 19px 36px;
  min-height: 60px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b3903f);
  color: #14110a;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #14110a;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-small { padding: 11px 24px; font-size: 0.86rem; min-height: 42px; }

/* ---------- Приглашение в авторский Telegram-канал ---------- */

.channel-strip {
  position: relative;
  z-index: 101;
  background: #e1c78e;
  color: #211a0d;
}
.channel-strip-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.channel-strip-link:hover { color: #211a0d; background: rgba(255, 255, 255, 0.14); }
.channel-strip-link:focus-visible { outline-color: #211a0d; outline-offset: -3px; }
.channel-strip-label { display: flex; align-items: center; gap: 10px; }
.channel-strip-label svg { flex: 0 0 20px; }
.channel-strip-action { flex-shrink: 0; text-decoration: underline; text-underline-offset: 4px; }

.channel-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 580px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(14, 17, 22, 0.9);
  color: var(--ink-strong);
}
.channel-hero:hover { border-color: var(--gold-bright); background: var(--bg-2); }
.channel-hero img { width: 64px; height: 76px; flex: 0 0 64px; border-radius: 4px; object-fit: cover; object-position: center top; }
.channel-hero-copy { display: grid; gap: 5px; min-width: 0; }
.channel-hero strong { color: var(--ink-strong); font-size: 1rem; line-height: 1.45; }
.channel-hero-label { font-size: 0.875rem; color: var(--muted); }
.channel-hero-action { color: var(--gold-bright); font-size: 0.875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.channel-subscribe { padding: 40px 0; }
.channel-panel {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line-gold);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #25251f, var(--bg-2) 65%);
}
.channel-panel img { width: 104px; height: 128px; object-fit: cover; object-position: center top; border-radius: 4px; }
.channel-panel .eyebrow { font-size: 0.875rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.channel-panel h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); margin-bottom: 12px; }
.channel-panel p { font-size: 1rem; color: var(--ink); max-width: 45em; }
.channel-panel-action { display: grid; gap: 10px; justify-items: center; }
.channel-panel .btn { text-align: center; padding: 16px 24px; min-height: 56px; }
.channel-panel-action small { color: var(--muted); font-size: 0.875rem; }
.site-footer .channel-footer-link { color: var(--gold-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .channel-panel { grid-template-columns: 80px minmax(0, 1fr); gap: 22px; }
  .channel-panel img { width: 80px; height: 100px; }
  .channel-panel-action { grid-column: 2; justify-items: start; }
}
@media (max-width: 600px) {
  .channel-strip-link { gap: 14px; }
  .channel-strip-label { gap: 8px; }
  .channel-hero { gap: 14px; padding: 18px; }
  .channel-hero img { width: 48px; height: 64px; flex-basis: 48px; }
  .channel-panel { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 20px; }
  .channel-panel img { display: none; }
  .channel-panel-action { grid-column: 1; justify-items: stretch; text-align: center; }
  .channel-subscribe { padding: 28px 0; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--gold);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand:hover .brand-mark { color: var(--gold-bright); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-text small {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav > a:hover, .site-nav > a.active { color: var(--gold-bright); }

/* Акцентная кнопка в шапке: компактнее обычной — иначе перевешивает меню */
.site-nav > a.btn {
  padding: 10px 20px;
  min-height: 38px;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  border-bottom: none;
}
.site-nav > a.btn:hover { color: #1a1408; }
.site-nav > a.active { border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink-strong);
  transition: 0.25s;
}


/* ---------- Главная: фото до самого верха, шапка прозрачная ---------- */

body.home .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.home .site-header.scrolled {
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
body.home .hero {
  margin-top: -77px;      /* хиро подныривает под шапку */
  padding-top: 187px;     /* 110px своих + 77px высоты шапки */
}

/* ---------- Хиро ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 10%, rgba(201, 169, 98, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 60% at 15% 90%, rgba(60, 80, 110, 0.12), transparent 60%);
  pointer-events: none;
}

/* Фотография в шапке.
   Слой растянут на всю ширину секции — тогда пропорции кадра близки к исходным
   на любом экране и снимок не «зумится» на узких мониторах.
   Видимой остаётся правая часть: слева фото растворяется в фоне под текстом. */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  /* ограничиваем ширину: на больших мониторах кадр перестаёт расти
     и не растягивается выше собственного разрешения */
  width: min(100%, 1500px);
  pointer-events: none;
  z-index: 0;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  /* приглушаем тёплый оттенок фотографии под графитовую палитру сайта */
  filter: saturate(0.72) contrast(1.04) brightness(0.72);
  -webkit-mask-image: linear-gradient(to right, transparent 30%, rgba(0,0,0,0.5) 48%, #000 78%);
          mask-image: linear-gradient(to right, transparent 30%, rgba(0,0,0,0.5) 48%, #000 78%);
}
/* Притемнение в зоне, где текст накладывается на фото.
   По краям сходит в ноль — иначе слой перекрывал бы подсветку фона
   и на широком экране был бы виден прямоугольный шов. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(14, 17, 22, 0) 18%,
    rgba(14, 17, 22, 0.62) 44%,
    rgba(14, 17, 22, 0) 88%);
}

/* Слева от ограниченного слоя фон должен оставаться сплошным */
.hero { background: var(--bg); }

.hero-inner { position: relative; z-index: 1; max-width: 660px; }

/* ---------- Смысловой блок с фотографией ---------- */

.editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
/* когда текст идёт первым, а фотография второй */
.editorial-grid.text-first { grid-template-columns: 1.1fr 0.9fr; }

.editorial-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.editorial-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) brightness(0.9);
}
.editorial-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(14, 17, 22, 0.55));
  pointer-events: none;
}

.editorial-copy h2 { margin-bottom: 0.5em; }
.editorial-copy p { color: var(--muted); margin-bottom: 1em; }

.hero h1 { margin: 0.35em 0 0.5em; }
.hero .lead { margin-bottom: 2em; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- Цифры ---------- */

.stats-band { border-bottom: 1px solid var(--line); background: var(--bg-2); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid.stats-3 { grid-template-columns: repeat(3, 1fr); }

.stat {
  padding: 40px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat-num small { font-size: 0.55em; font-weight: 600; }
.stat-label { margin-top: 10px; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: 34px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line-gold); transform: translateY(-3px); }

.card-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 0.55em; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Списки с маркерами ---------- */

.gold-list { list-style: none; }
.gold-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
}
.gold-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.gold-list li strong { color: var(--ink-strong); }

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Этапы ---------- */

.steps { counter-reset: step; display: grid; gap: 0; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
}

.step h3 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.step .step-time {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}
.step p { color: var(--muted); font-size: 0.97rem; max-width: 56em; }

/* ---------- Двухколоночный сплит ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- Персона ---------- */

.person {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.person-visual {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 169, 98, 0.16), transparent 60%),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-visual .monogram {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.85;
}

/* МЕСТО ПОД ФОТОГРАФИЮ.
   Готово к вставке: положить снимок в img/ и заменить <span class="monogram">
   на <img src="img/имя-файла.jpg" alt="ФИО">. Рамка, пропорции 3:4,
   кадрирование и подгонка под палитру сработают сами. */
.person-visual { overflow: hidden; position: relative; }
/* фотография заполняет рамку целиком: снимаем центрирование, оставшееся от монограммы */
.person-visual:has(img) { display: block; padding: 0; }
.person-visual picture { position: absolute; inset: 0; display: block; }
.person-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* лицо в верхней трети кадра */
  filter: saturate(0.9) contrast(1.02);
}
.person-visual:has(img) { background: var(--bg-2); }
.person-visual:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 17, 22, 0.55), transparent 45%);
  pointer-events: none;
}

/* ---------- Полноширинная фотолента ---------- */

.photo-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 340px;
  display: flex;
  align-items: center;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  filter: saturate(0.78) brightness(0.92);
}
/* затемняем только левую часть — там лежит цитата; справа кадр остаётся открытым */
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(14, 17, 22, 0.93) 8%,
    rgba(14, 17, 22, 0.7) 38%,
    rgba(14, 17, 22, 0.15) 72%,
    rgba(14, 17, 22, 0) 100%);
}
.photo-band .container { position: relative; z-index: 1; }
.photo-band blockquote {
  max-width: 30em;
  margin: 0;
  padding: 28px 0 28px 26px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink-strong);
}
.photo-band cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.person h3 { font-size: 1.6rem; }
.person .person-role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 20px;
}
.person p { color: var(--muted); margin-bottom: 1em; }

/* ---------- Команда ---------- */

.team .person { padding: 48px 0; border-top: 1px solid var(--line); align-items: start; }
.team .person:first-child { padding-top: 0; border-top: none; }
.team .person:last-child { padding-bottom: 0; }

.mini-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mini-fact b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.15;
}
.mini-fact span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  max-width: 15em;
}

/* Награда */
.award {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin: 22px 0;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--gold-dim);
}
.award svg { flex-shrink: 0; margin-top: 2px; }
.award-text { font-size: 0.93rem; color: var(--ink-strong); }
.award-text small { display: block; color: var(--muted); margin-top: 4px; font-size: 0.82rem; }

/* ---------- Образование ---------- */

.timeline { list-style: none; margin-top: 18px; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .t-year {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 2px;
}
.timeline strong { display: block; color: var(--ink-strong); font-size: 0.98rem; }
.timeline p { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* ---------- Проекты ---------- */

.case {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 44px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }

.case h3 { font-size: 1.12rem; margin-bottom: 0.45em; }
.case p { font-size: 0.94rem; color: var(--muted); }

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  padding: 3px 13px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.case-rel {
  padding-left: 22px;
  border-left: 2px solid var(--line-gold);
  font-size: 0.9rem;
  color: var(--muted);
  align-self: center;
}
.case-rel b {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 4px;
  margin: 0 -4px;
  -webkit-tap-highlight-color: rgba(201, 169, 98, 0.18);
  user-select: none;
  position: relative;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink-strong);
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-bright); }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p, .faq details ul { padding: 0 0 26px; color: var(--muted); max-width: 60em; }
.faq details ul { padding-left: 22px; }

/* ---------- Таблица ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
table.compare th, table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-2);
  white-space: nowrap;
}
table.compare td:first-child { color: var(--ink-strong); font-weight: 600; }
table.compare td { color: var(--muted); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td.hl { color: var(--gold-bright); }

/* ---------- CTA-полоса ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  padding: 80px 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(201, 169, 98, 0.10), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--muted); max-width: 38em; margin: 0 auto 34px; }

/* ---------- Форма ---------- */

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-strong);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }

.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-size: 0.92rem;
}
.form-status.show { display: block; }

/* ---------- Хлебные крошки / подшапка страниц ---------- */

.page-head {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 80% 0%, rgba(201, 169, 98, 0.08), transparent 55%);
  pointer-events: none;
}
.page-head .lead { margin-top: 18px; }

/* Фотоподложка в шапках внутренних страниц: приглушённый кадр справа,
   растворяется к тексту. Один приём на весь сайт, правится в одном месте. */
.page-head::after,
.report-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 900px);
  background: url('../img/hero-1600.webp') no-repeat right center;
  background-size: cover;
  filter: saturate(0.65) brightness(0.55);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%);
          mask-image: linear-gradient(to left, #000 30%, transparent 96%);
  pointer-events: none;
  z-index: 0;
}
.page-head .container,
.report-hero .container { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .page-head::after,
  .report-hero::after { width: 100%; opacity: 0.22; }
}

.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 26px;
  letter-spacing: 0.03em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs span { color: var(--gold); margin: 0 8px; }

/* ---------- Статьи ---------- */

.article-card {
  display: block;
  padding: 34px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
  color: var(--ink);
}
.article-card:hover { border-color: var(--line-gold); transform: translateY(-3px); color: var(--ink); }
.article-card .art-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.article-card h3 { transition: color 0.2s; }
.article-card:hover h3 { color: var(--gold-bright); }
.article-card p { font-size: 0.93rem; color: var(--muted); margin-top: 10px; }

/* ---------- Компактный список статей ---------- */

.art-group { margin-top: 44px; }
.art-group:first-child { margin-top: 0; }
.art-group > .eyebrow { margin-bottom: 6px; }

.art-list { list-style: none; }
.art-list li { border-top: 1px solid var(--line); }
.art-list li:last-child { border-bottom: 1px solid var(--line); }
.art-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 4px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink-strong);
  transition: color 0.2s, padding-left 0.2s;
}
.art-list a:hover { color: var(--gold-bright); padding-left: 12px; }
.art-list a::after {
  content: "→";
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.art-list a:hover::after { opacity: 1; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; color: var(--gold-bright); }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em 22px; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink-strong); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 22px 28px;
  border-left: 3px solid var(--gold);
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.art-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 20px;
}
.art-info b { color: var(--gold); font-weight: 700; }

/* ---------- Заметка-плашка ---------- */

.note {
  padding: 22px 26px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--gold-dim);
  font-size: 0.95rem;
}
.note b { color: var(--gold-bright); }

/* ---------- Реквизиты ---------- */

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.req-item { background: var(--bg-2); padding: 20px 24px; }
.req-item .req-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.req-item .req-value { color: var(--ink-strong); font-size: 0.97rem; word-break: break-word; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0d11;
  padding: 64px 0 34px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 48px;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.site-footer p, .site-footer li { color: var(--muted); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-bright); }

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.85rem; max-width: 30em; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.disclaimer { font-size: 0.78rem; color: #6b7280; margin-top: 14px; }

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid.stats-3 { grid-template-columns: 1fr; }
  .stats-3 .stat { border-left: none; border-top: 1px solid var(--line); }
  .stats-3 .stat:first-child { border-top: none; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 240px 1fr; gap: 36px; }
  .split { gap: 40px; }
}

/* Меню сворачивается в «бургер» раньше остальной мобильной вёрстки:
   семь пунктов не помещаются в строку на ширинах ниже ~1200px */
@media (max-width: 1240px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .site-nav > a.active { border-bottom: none; color: var(--gold-bright); }
  .site-nav .btn { margin-top: 14px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  body.home .hero { padding-top: 149px; }

  /* на телефоне фотография уходит на весь фон; затемняем ровно настолько,
     чтобы текст читался, но снимок оставался различимым */
  .hero-art { width: 100%; }
  .hero-art img {
    object-position: 78% 50%;
    filter: saturate(0.7) brightness(0.66);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 72%, transparent 100%);
  }
  .hero-art::after {
    background: linear-gradient(to bottom, rgba(14,17,22,0.5), rgba(14,17,22,0.82));
  }
  .editorial-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-band { min-height: 260px; }
  .photo-band::after {
    background: linear-gradient(to right, rgba(14,17,22,0.92) 30%, rgba(14,17,22,0.7));
  }

  .cards, .cards-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 20px; }
  .case-rel { padding-left: 18px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .mini-facts { gap: 18px 28px; }
  .person-visual { max-width: 260px; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-num { font-size: 1.9rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .req-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-text strong { font-size: 0.95rem; }
}

/* ---------- Форма: ловушка для ботов и согласие ---------- */

.hp-wrap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: var(--muted); cursor: pointer;
  text-transform: none; letter-spacing: normal; font-weight: 400; margin-bottom: 0;
}
.agree span { text-transform: none; letter-spacing: normal; }
.agree input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); }

/* ---------- Доступность ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #14110a;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #14110a; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Печать: светлая версия без интерфейса ---------- */

@media print {
  body { background: #fff !important; color: #1a1a1a; font-size: 12pt; }
  .site-header, .site-footer, .cta-band, .related-block, .nav-toggle, .hero-actions,
  .channel-strip, .channel-hero, .channel-subscribe,
  .hero-art, .photo-band picture, .page-head::after, .report-hero::after, .btn, .skip-link { display: none !important; }
  .section, .section-tight, .section-alt, .page-head, .hero, .photo-band, .cta-band { background: #fff !important; border: none; padding: 14pt 0; }
  h1, h2, h3, .step h3, .card h3 { color: #111 !important; }
  strong, b, .prose strong { color: #111 !important; }
  .page-head::before, .hero::before, .report-hero::before { display: none !important; }
  p, li, .lead, .stat-label, .muted, .card p, .step p { color: #222 !important; }
  .eyebrow, .art-meta, .card-num, .person-role { color: #8a6d2f !important; }
  .card, .note, .form-card, .chart-card, .tile, .req-item, .article-card { background: #fff !important; border: 1px solid #ccc; }
  blockquote { background: #f6f6f6 !important; color: #111 !important; border-left-color: #8a6d2f; }
  table.compare th { background: #f0f0f0 !important; color: #333 !important; }
  table.compare td { color: #222 !important; }
  table.compare td.hl { color: #6d5a1f !important; font-weight: 600; }
  a { color: #1a1a1a; text-decoration: underline; }
  .prose a::after { content: ""; }
  main::after {
    content: "primedef.ru — адвокатское бюро «Прайм Дефенс», Санкт-Петербург · info@primedef.ru";
    display: block;
    margin-top: 18pt;
    padding-top: 8pt;
    border-top: 1pt solid #999;
    color: #555;
    font-size: 9pt;
  }
}

/* Ссылки внутри текста должны отличаться не только цветом (доступность) */
p a:not(.btn), .prose li a, .gold-list a, .check-list a, .agree a,
.note a, .chart-note a, .timeline a, .faq a, .form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 169, 98, 0.5);
}
p a:not(.btn):hover, .note a:hover, .faq a:hover { text-decoration-color: var(--gold-bright); }

/* ---------- Кнопка Telegram ---------- */

.tg-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--gold-dim);
  color: var(--ink-strong);
  transition: border-color 0.25s, transform 0.25s;
}
.tg-cta:hover { border-color: var(--gold); color: var(--ink-strong); transform: translateY(-1px); }
.tg-cta svg { color: var(--gold); flex-shrink: 0; }
.tg-cta b { display: block; font-size: 0.98rem; }
.tg-cta small { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--muted); }
