/*
Theme Name: Точилов — адвокат
Theme URI: https://advokat.4monkeys.ru/
Author: 4monkeys
Description: Аскетичная авторская тема для сайта адвоката Д. В. Точилова: крупная антиква, тёплая бумага, точная сетка, ничего лишнего.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: advokat
*/

/* ==========================================================================
   1. Токены
   ========================================================================== */

:root {
  --paper: #f4f1eb;
  --paper-2: #ece7dd;
  --paper-3: #e3dccf;
  --ink: #14120f;
  --ink-2: #2b2721;
  --body: #3d3831;
  --muted: #766e62;
  --line: #d6cec1;
  --line-strong: #b9ae9d;
  --brass: #8a6a3f;
  --brass-2: #b08a58;
  --brass-soft: #d8c3a1;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);

  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .24, 1);
  --header-h: 78px;
}

/* ==========================================================================
   2. Сброс и база
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

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

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong, b { font-weight: 500; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink); color: var(--paper);
  font-size: 13px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. Сетка и типографика
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1480px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #e7e1d6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--border { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .8;
}
.section--ink .eyebrow { color: var(--brass-soft); }

.display {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.h-section {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.015em;
}

.lead {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--body);
  max-width: 62ch;
}

.muted { color: var(--muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  margin-bottom: clamp(32px, 4.4vw, 64px);
}
.section-head__text { max-width: 720px; }
.section-head__link { justify-self: end; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow span[aria-hidden] { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--brass); border-color: var(--brass); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); }
.btn--block { width: 100%; }

/* Появление при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   4. Шапка
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 241, 235, .82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 241, 235, .95);
}
.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--ink);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__role {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
.site-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-block: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right .3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Подменю «Услуги» */
.nav-item { position: relative; display: inline-flex; }
.nav-sub {
  position: absolute;
  top: calc(100% + 10px);
  left: -22px;
  z-index: 120;
  min-width: 286px;
  padding: 10px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(20, 18, 15, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-sub::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-nav .nav-sub a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 20px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--body);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav .nav-sub a::after { display: none; }
.site-nav .nav-sub a:hover { background: var(--paper-2); color: var(--ink); }
.nav-sub a span { color: var(--brass); font-size: 10px; letter-spacing: .1em; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--brass); }
.header-actions .btn { min-height: 46px; padding: 11px 20px; font-size: 10.5px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius);
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 95;
  background: var(--paper);
  padding: 24px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > div { flex: none; }
.mobile-menu > .btn { flex: none; margin-top: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-family: var(--serif);
  font-size: clamp(26px, 7.4vw, 38px);
  line-height: 1.2;
  color: var(--ink);
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mobile-menu__nav a small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--brass);
  text-transform: uppercase;
}
.mobile-menu__foot { margin-top: 4px; display: grid; gap: 14px; }
.mobile-menu__services { border-top: 1px solid var(--line); padding-top: 18px; }
.mobile-menu__services-title {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu__services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mobile-menu__services-list a {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
}
.mobile-menu__services-list a span { color: var(--brass); font-size: 10px; padding-top: 2px; }
.mobile-menu__phone { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.mobile-menu__meta { font-size: 13px; color: var(--muted); line-height: 1.6; }
.mobile-menu__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ==========================================================================
   5. Первый экран
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -10%;
  width: 58vw;
  height: 58vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(176, 138, 88, .12), rgba(176, 138, 88, 0) 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(32px, 4.4vw, 68px);
  align-items: center;
}
.hero__content { padding-block: clamp(8px, 2vw, 28px); }
.hero__title {
  font-size: clamp(42px, 5.7vw, 84px);
  line-height: .96;
  letter-spacing: -.022em;
  margin-bottom: 28px;
}
.hero__lead {
  max-width: 46ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--body);
}
.hero__name {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}
.hero__reg {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
}

.hero__media { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero__frame {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: rgba(236, 231, 221, .35);
}
.hero__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.02);
}
.hero__caption {
  position: absolute;
  left: -12px;
  bottom: 26px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__stamp {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: .06em;
  background: var(--paper);
  transform: rotate(-8deg);
}

.hero__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.hero__fact {
  padding: 24px 28px 0 0;
  border-right: 1px solid var(--line);
}
.hero__fact:last-child { border-right: 0; padding-right: 0; }
.hero__fact:not(:first-child) { padding-left: 28px; }
.hero__fact b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero__fact span { font-size: 12px; letter-spacing: .02em; color: var(--muted); }

/* ==========================================================================
   6. Манифест
   ========================================================================== */

.manifesto { border-bottom: 1px solid var(--line); }
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.manifesto__title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; }
.manifesto__text { font-size: clamp(16px, 1.3vw, 18px); max-width: 58ch; }
.manifesto__sign {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.manifesto__sign::before { content: ""; width: 40px; height: 1px; background: var(--line-strong); }

/* ==========================================================================
   7. Услуги — строки
   ========================================================================== */

.services__list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.05fr) 46px;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 38px) clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-row::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width .5s var(--ease);
}
.service-row:hover { background: var(--ink); }
.service-row:hover::after { width: 100%; }
.service-row:hover .service-row__num,
.service-row:hover .service-row__title,
.service-row:hover .service-row__descr { color: var(--paper); }
.service-row:hover .service-row__descr { color: rgba(244, 241, 235, .72); }
.service-row:hover .service-row__arrow { border-color: rgba(244, 241, 235, .4); color: var(--paper); transform: rotate(0deg); }

.service-row__num {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--brass);
  letter-spacing: .04em;
  transition: color .35s var(--ease);
}
.service-row__title {
  font-family: var(--serif);
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.05;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.service-row__descr {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  transition: color .35s var(--ease);
}
.service-row__arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform .4s var(--ease), color .35s, border-color .35s;
}

/* ==========================================================================
   8. Об адвокате
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__media { position: sticky; top: calc(var(--header-h) + 24px); }
.about__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--paper-3);
}
.about__media figcaption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__body p { max-width: 60ch; }
.about__body p + p { margin-top: 1.1em; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat__value {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  color: var(--ink);
  display: block;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ==========================================================================
   9. Принципы
   ========================================================================== */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.principle {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color .35s var(--ease);
}
.principle:hover { background: var(--paper-2); }
.principle__num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--brass);
}
.principle__title {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  color: var(--ink);
  max-width: 18ch;
}

/* ==========================================================================
   10. Практика
   ========================================================================== */

.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 38px) clamp(8px, 2vw, 28px) clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.case-card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: clamp(20px, 3vw, 42px); }
.case-card:nth-child(even) { padding-left: clamp(20px, 3vw, 42px); }
.case-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card__area { color: var(--brass); }
.case-card__meta .dot { width: 3px; height: 3px; background: var(--line-strong); border-radius: 50%; }
.case-card__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  color: var(--ink);
  max-width: 24ch;
}
a.case-card:hover .case-card__title { color: var(--brass); }
.case-card__outcome { font-size: 14px; color: var(--muted); max-width: 46ch; }

.case-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.case-row:first-child { border-top: 1px solid var(--line); }
.case-row__date { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.case-row__title { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.12; color: var(--ink); }
.case-row__area { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-top: 8px; display: inline-block; }
.case-row__outcome { font-size: 14px; color: var(--muted); padding-top: 4px; }

.case-result {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(30px, 4vw, 46px);
}
.case-result .eyebrow { margin-bottom: 12px; }
.case-result p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.22;
  color: var(--ink);
}

/* ==========================================================================
   11. Сертификаты
   ========================================================================== */

.certs__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 17vw, 238px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.certs__rail::-webkit-scrollbar { height: 4px; }
.certs__rail::-webkit-scrollbar-thumb { background: var(--line-strong); }
.cert {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  cursor: zoom-in;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
  text-align: left;
}
.cert:hover { border-color: var(--brass); transform: translateY(-3px); }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.cert__label {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Просмотр сертификата */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 15, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(760px, 92vw);
  max-height: 88vh;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  width: 54px; height: 54px;
  border: 1px solid rgba(244, 241, 235, .35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .25s, border-color .25s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(244, 241, 235, .12); border-color: var(--paper); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   12. Вопросы и ответы
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.2;
  color: var(--ink);
  transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brass); }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 15px; height: 15px;
  margin-top: 6px;
  background:
    linear-gradient(var(--brass), var(--brass)) center / 100% 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) center / 1px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  max-width: 74ch;
  padding: 0 40px 26px 0;
  font-size: 15.5px;
  color: var(--body);
}

/* ==========================================================================
   13. Консультация и форма
   ========================================================================== */

.cta { position: relative; overflow: hidden; }
.cta::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 46vw; height: 46vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(176, 138, 88, .28);
  pointer-events: none;
}
.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}
.cta__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.03;
  max-width: 15ch;
  color: var(--paper);
}
.cta__list { margin-top: 30px; display: grid; gap: 12px; max-width: 40ch; }
.cta__list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: rgba(244, 241, 235, .74);
}
.cta__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 11px; height: 1px;
  background: var(--brass-2);
}
.cta__note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 241, 235, .16);
  font-size: 12px;
  color: rgba(244, 241, 235, .55);
  max-width: 40ch;
}

.form {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  color: var(--body);
}
.form h3, .form .form__title, .form__success h3 { color: var(--ink); }
.form__title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 4px;
}
.form__sub { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.form__row { display: grid; gap: 14px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .25s;
}
.field textarea { resize: none; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #a89f92; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form__actions { margin-top: 22px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.consent input { margin-top: 3px; accent-color: var(--brass); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--brass); }
.form__error { margin-top: 12px; font-size: 12.5px; color: #a13a2a; }
.form__success {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--brass-soft);
}
.form__success h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 10px; }
.form__success p { font-size: 14px; color: var(--muted); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   14. Контакты
   ========================================================================== */

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contacts__list { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.contact-line {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-line dt {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-line dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
}
.contact-line dd a:hover { color: var(--brass); }
.contacts__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.map-card {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--line);
  background: url('assets/img/map.webp') center / cover no-repeat, var(--paper-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 241, 235, 0) 42%, rgba(244, 241, 235, .92) 76%, rgba(244, 241, 235, .98) 100%);
}
.map-card__pin { display: none; }
.map-card__body { position: relative; z-index: 1; }
.map-card__city { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.map-card__address { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; color: var(--ink); margin: 8px 0 18px; }

/* ==========================================================================
   15. Внутренние страницы
   ========================================================================== */

.page-hero {
  padding-top: clamp(34px, 4vw, 56px);
  padding-bottom: clamp(42px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.page-hero__title {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: .98;
  letter-spacing: -.02em;
}
.page-hero__lead { margin-top: 22px; max-width: 56ch; font-size: clamp(16px, 1.3vw, 18px); }
.page-hero__media { align-self: stretch; }
.page-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1);
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a:hover { color: var(--brass); }
.breadcrumbs span { color: var(--line-strong); }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: clamp(22px, 2.2vw, 27px); margin: 1.5em 0 .5em; }
.prose p, .prose li { font-size: 16px; line-height: 1.72; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--brass); }
.prose ol { counter-reset: item; margin: 0 0 1.2em; }
.prose ol li { counter-increment: item; position: relative; padding-left: 30px; margin-bottom: 10px; }
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: .18em;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .1em; color: var(--brass);
}
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose a:hover { border-color: var(--brass); color: var(--brass); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

/* Раскладка страницы услуги */
.service-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.service-aside { position: sticky; top: calc(var(--header-h) + 26px); }
.aside-nav { border-top: 1px solid var(--line); }
.aside-nav__title { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 16px 0 10px; }
.aside-nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--body);
  transition: color .25s;
}
.aside-nav a:hover { color: var(--brass); }
.aside-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.aside-nav a[aria-current="page"]::after { content: "—"; color: var(--brass); }
.aside-nav .aside-cta { margin-top: 24px; }
.aside-nav .aside-cta .btn { width: 100%; font-size: 10px; padding-inline: 12px; }
.aside-nav .aside-cta a {
  justify-content: center;
  padding: 15px 12px;
  border-bottom: 0;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.aside-nav .aside-cta a:hover { color: #fff; }

.service-intro { font-size: clamp(16px, 1.3vw, 18px); max-width: 64ch; }
.service-block { margin-top: clamp(36px, 5vw, 60px); }
.service-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.service-block__title { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); color: var(--ink); }
.service-block__note { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.service-list {
  columns: 2;
  column-gap: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.service-list li {
  break-inside: avoid;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15em;
  width: 7px; height: 1px;
  background: var(--brass);
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step__num { font-size: 10.5px; letter-spacing: .16em; color: var(--brass); }
.step__title { margin-top: 20px; font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--ink); }
.step__text { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.other-services { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 22px; }
.other-services__title { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.other-services__list { display: flex; flex-wrap: wrap; gap: 10px; }
.other-services__list a {
  padding: 9px 15px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--body);
  transition: border-color .25s, color .25s;
}
.other-services__list a:hover { border-color: var(--brass); color: var(--brass); }

/* Сетка услуг (обзорная страница) */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.area-card {
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s var(--ease);
}
.area-card:hover { background: var(--paper-2); }
.area-card__num { font-size: 10.5px; letter-spacing: .16em; color: var(--brass); }
.area-card__title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; color: var(--ink); }
.area-card__descr { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.area-card__more { margin-top: auto; padding-top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.area-card:hover .area-card__more { color: var(--brass); }

/* Пагинация */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 42px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink);
  padding-inline: 10px;
  transition: border-color .25s, background .25s, color .25s;
}
.pagination .page-numbers:hover { border-color: var(--brass); color: var(--brass); }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   16. Подвал
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(244, 241, 235, .72); padding-top: clamp(48px, 6vw, 80px); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(38px, 5vw, 60px);
  border-bottom: 1px solid rgba(244, 241, 235, .14);
}
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__mark { border-color: rgba(244, 241, 235, .4); color: var(--paper); }
.footer__brand .brand__role { color: rgba(244, 241, 235, .5); }
.footer__tagline { margin-top: 22px; font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.2; color: rgba(244, 241, 235, .86); max-width: 18ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer__col h2 { font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a, .footer__col span { font-size: 13.5px; color: rgba(244, 241, 235, .68); line-height: 1.45; }
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 24px 30px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(244, 241, 235, .56);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--paper); }

/* ==========================================================================
   17. Служебное
   ========================================================================== */

.error-404 { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.error-404 .display { margin-bottom: 18px; }
.error-404 p { max-width: 46ch; margin-inline: auto; color: var(--muted); }
.error-404 .btn { margin-top: 28px; }

.search-form { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); max-width: 460px; }
.search-form input { flex: 1; border: 0; background: transparent; padding: 12px 0; font: inherit; color: var(--ink); }
.search-form input:focus { outline: none; }
.search-form button { border: 0; background: transparent; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--brass); }

/* ==========================================================================
   18. Адаптив
   ========================================================================== */

@media (max-width: 1180px) {
  .site-nav { gap: 18px; }
  .header-phone { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .site-nav { display: none; }
  .burger { display: inline-block; }
  .header-actions .btn { display: none; }

  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__media { justify-self: start; max-width: 440px; }
  .hero__photo { aspect-ratio: 4 / 5; }
  .hero__title { font-size: clamp(40px, 9vw, 64px); }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact { border-right: 0; padding: 16px 0 !important; border-bottom: 1px solid var(--line); }
  .hero__fact:last-child { border-bottom: 0; }
  .hero__fact b { font-size: 20px; }

  .manifesto__grid { grid-template-columns: 1fr; gap: 24px; }
  .service-row { grid-template-columns: 42px minmax(0, 1fr) 40px; gap: 16px; }
  .service-row__descr { display: none; }
  .service-row__arrow { width: 40px; height: 40px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 460px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: 1fr; }
  .case-card:nth-child(odd) { border-right: 0; padding-right: 0; }
  .case-card:nth-child(even) { padding-left: 0; }
  .case-card__title { max-width: none; }

  .cta__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .map-card { min-height: 300px; }

  .page-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .page-hero__media { max-width: 460px; }
  .page-hero__media img { max-height: 320px; }

  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__link { justify-self: start; }

  .hero { padding-top: 26px; }
  .hero__stamp { width: 72px; height: 72px; font-size: 10.5px; top: -12px; right: -8px; }
  .hero__caption { left: 8px; bottom: 12px; font-size: 9px; padding: 7px 11px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat__value { font-size: 32px; }
  .stat__label { margin-top: 0; }

  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; }
  .principle__title { margin-top: 18px; }

  .case-row { grid-template-columns: 1fr; gap: 10px; }
  .case-row__date { padding-top: 0; }

  .form__row--2 { grid-template-columns: 1fr; }
  .contact-line { grid-template-columns: 1fr; gap: 4px; }

  .service-list { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }

  .lightbox__prev, .lightbox__next { width: 44px; height: 44px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* Печать */
@media print {
  .site-header, .site-footer, .cta, .hero__actions, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
