/* ============================================================
   ВЛАДИМИР ХАХОВ — v7 «белый бланк»
   Белая основа · бежевый второй цвет · глубокий зелёный для важного · золото
   Без внешних JS-библиотек, только CSS + лёгкий vanilla JS
   ============================================================ */
:root {
  --white: #ffffff;
  --paper: #f4efe5;
  --paper-2: #ece5d5;
  --card: #fbf8f1;
  --ink: #21312a;
  --pine: #24382f;
  --pine-deep: #17251e;
  --gold: #b9945e;
  --gold-soft: #d6b98c;
  --gold-line: rgba(185, 148, 94, 0.4);
  --muted: #6d7a72;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;

  --wrap: 2000px;
  --gutter: clamp(22px, 3.4vw, 72px);
  --radius: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

::selection { background: var(--gold-soft); color: var(--pine-deep); }

/* ---------- Типографика ---------- */
h1, h2, h3, h4, .h2 { font-family: var(--serif); font-weight: 500; line-height: 1.06; text-wrap: balance; }
em { font-style: italic; color: var(--gold); }
.h2 { font-size: clamp(34px, 4.2vw, 58px); color: var(--pine-deep); }
.h2 em { color: var(--gold); }

.para {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.sect { margin-bottom: 64px; }
.sect--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sect__note { font-size: 13px; color: var(--muted); max-width: 240px; text-align: right; }
.sect__lead { font-size: 17px; color: var(--muted); max-width: 760px; margin-top: 22px; }

/* ---------- Кнопки (скруглённые) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 18px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--green { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.btn--green::before { background: var(--gold); }
.btn--green:hover { color: var(--pine-deep); border-color: var(--gold); }
.btn--gold { background: var(--gold); color: var(--pine-deep); border-color: var(--gold); }
.btn--gold::before { background: var(--paper); }
.btn--outline { background: transparent; color: var(--pine-deep); border-color: var(--pine); }
.btn--outline::before { background: var(--pine); }
.btn--outline:hover { color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(244, 239, 229, 0.5); }
.btn--outline-light::before { background: var(--paper); }
.btn--outline-light:hover { color: var(--pine-deep); border-color: var(--paper); }
.btn--lg { font-size: 14px; padding: 22px 40px; }
.btn--wide { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.link-gold { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.link-gold:hover { text-decoration: underline; }

/* ---------- Шапка: контрастная, глубокий зелёный ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--pine-deep);
  color: var(--paper);
  border-bottom: 1px solid rgba(185, 148, 94, 0.28);
  transition: box-shadow 0.35s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(10, 16, 13, 0.25); }
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
}
.header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.header__logo img { width: 84px; height: auto; }
.header__logo-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header__logo-text small {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 6px;
}
.header__nav { display: flex; gap: 6px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(244, 239, 229, 0.85);
  padding: 12px 12px;
  border-radius: var(--radius);
  transition: color 0.3s, background 0.3s;
}
.nav-item__chev { width: 10px; height: 10px; transition: transform 0.3s var(--ease); }
.nav-item > a:hover, .nav-item > a.is-active, .nav-item:focus-within > a { color: var(--gold-soft); }
.nav-item > a.is-active { background: rgba(185, 148, 94, 0.14); }
.nav-item:hover .nav-item__chev, .nav-item:focus-within .nav-item__chev { transform: rotate(180deg); }

/* выпадающее подменю */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 5;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub, .nav-item.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub__inner {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 16, 13, 0.22);
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.nav-sub__inner::before {
  content: '';
  position: absolute;
  top: -7px; left: 28px;
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--gold-line);
  border-top: 1px solid var(--gold-line);
  transform: rotate(45deg);
}
.nav-sub__inner a {
  font-size: 14px;
  font-weight: 600;
  color: var(--pine-deep);
  text-decoration: none;
  padding: 11px 16px 11px 34px;
  border-radius: 12px;
  position: relative;
  transition: background 0.25s, color 0.25s;
}
.nav-sub__inner a::before { content: '§'; position: absolute; left: 14px; color: var(--gold); font-weight: 600; }
.nav-sub__inner a:hover { background: var(--paper); color: var(--pine); }

.header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.3s;
}
.header__phone svg { width: 20px; height: 20px; color: var(--gold-soft); }
.header__phone:hover { color: var(--gold-soft); }
.header__cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine-deep);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.header__cta:hover { background: var(--paper); border-color: var(--paper); }

.header__burger { display: none; background: none; border: none; width: 44px; height: 44px; cursor: pointer; }
.header__burger span { display: block; width: 26px; height: 2px; background: var(--paper); margin: 7px auto; transition: transform 0.3s var(--ease); }
.header__burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.header__burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 100px 28px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav > a, .mobile-menu__group > a {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--pine-deep);
  text-decoration: none;
  padding: 8px 0;
  display: block;
}
.mobile-menu__group { border-top: 1px solid var(--gold-line); padding: 6px 0 12px; }
.mobile-menu__sub { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; }
.mobile-menu__sub a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0 5px 16px;
  position: relative;
}
.mobile-menu__sub a::before { content: '§'; position: absolute; left: 0; color: var(--gold); }
.mobile-menu__sub a:hover { color: var(--pine); }
.mobile-menu__phone {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--pine-deep);
  text-decoration: none;
  text-align: center;
}
.mobile-menu .btn { margin-top: 18px; }

/* ---------- HERO: фото слева, польза справа ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 8%, rgba(185, 148, 94, 0.12), transparent 60%),
    var(--white);
}
.hero__ghost {
  position: absolute;
  top: 4vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(220px, 34vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(36, 56, 47, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero__stage {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
  min-height: 72vh;
}
.hero__name { display: contents; }
.hero__t1, .hero__t2 {
  position: absolute;
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: 0.01em;
  will-change: transform;
}
.hero__t1 {
  top: 9vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(72px, 12.5vw, 205px);
  color: var(--pine-deep);
  z-index: 1;
}
.hero__t2 {
  bottom: 8vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(80px, 14.5vw, 240px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  z-index: 3;
}
.hero__cut {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 52vw);
  height: auto;
  z-index: 2;
  will-change: transform;
  animation: heroCut 1.3s var(--ease) 0.25s backwards;
}
@keyframes heroCut {
  from { opacity: 0; transform: translateX(-50%) translateY(70px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero__t1 { animation: heroLine 1.1s var(--ease) 0.1s backwards; }
.hero__t2 { animation: heroLine 1.1s var(--ease) 0.45s backwards; }
@keyframes heroLine {
  from { opacity: 0; transform: translateY(46px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__col {
  position: absolute;
  bottom: 8vh;
  z-index: 4;
  max-width: 320px;
  animation: heroLine 1s var(--ease) 0.8s backwards;
}
.hero__col--left { left: var(--gutter); }
.hero__col--right { right: var(--gutter); text-align: right; display: flex; flex-direction: column; gap: 18px; }
.hero__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--pine-deep);
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero__desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.hero__phone { display: inline-flex; flex-direction: column; text-decoration: none; margin-bottom: 22px; }
.hero__phone small { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.hero__phone b { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--pine-deep); line-height: 1; transition: color 0.3s; }
.hero__phone:hover b { color: var(--gold); }
.hero__fact { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero__fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pine-deep);
  line-height: 1.1;
}
.hero__base {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-line);
}

/* факты под первым экраном */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 24px 40px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--gold-line);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--pine-deep);
  font-variant-numeric: tabular-nums;
}
.fact strong i { font-style: normal; font-size: 24px; color: var(--gold); }
.fact strong svg { width: 26px; height: 26px; fill: var(--gold); align-self: center; }
.fact span { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact span a { color: var(--pine); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.fact span a:hover { color: var(--gold); }
.fact--wide strong svg { width: 34px; height: 34px; }

/* ---------- Лента ---------- */
.ticker {
  background: var(--pine-deep);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
}
.ticker__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker__track span {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.04em;
}
.ticker__track span:nth-child(even) { color: var(--gold-soft); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.dirs, .approach, .cases, .reviews { padding: 120px 0; }

/* § 01 Направления */
.dirs { background: var(--white); }
.dirs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dcol {
  padding: 48px 44px 44px;
  border: 1px solid var(--gold-line);
  border-radius: 28px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.4s;
}
.dcol::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pine-deep);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.dcol:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(28, 35, 31, 0.14); border-color: var(--pine-deep); }
.dcol:hover::before { transform: translateY(0); }
.dcol__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 54px;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
  margin-bottom: 30px;
  transition: color 0.4s;
}
.dcol__title {
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--pine-deep);
  margin-bottom: 26px;
  transition: color 0.4s;
}
.dcol__title em { text-transform: none; font-weight: 500; letter-spacing: 0; }
.dcol__list { list-style: none; flex-grow: 1; }
.dcol__list li {
  font-size: 14.5px;
  color: var(--muted);
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed rgba(109, 122, 114, 0.3);
  position: relative;
  transition: color 0.4s;
}
.dcol__list li::before { content: '§'; position: absolute; left: 0; color: var(--gold); font-size: 13px; }
.dcol__list li:last-child { border-bottom: none; }
.dcol__more {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.dcol__more span { display: inline-block; transition: transform 0.35s var(--ease); }
.dcol:hover .dcol__more span { transform: translateX(8px); }
.dcol:hover .dcol__title { color: var(--paper); }
.dcol:hover .dcol__list li { color: rgba(244, 239, 229, 0.7); }
/* третья карточка — акцентная зелёная */
.dcol--dark { background: var(--pine-deep); border-color: var(--pine-deep); }
.dcol--dark::before { background: var(--pine); }
.dcol--dark .dcol__num { -webkit-text-stroke: 0; color: var(--gold-soft); }
.dcol--dark .dcol__title { color: var(--paper); }
.dcol--dark .dcol__list li { color: rgba(244, 239, 229, 0.7); border-bottom-color: rgba(214, 185, 140, 0.25); }
.dcol--dark .dcol__more { color: var(--gold-soft); border-top-color: rgba(214, 185, 140, 0.35); }

.dirs__note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 44px;
  background: var(--paper);
  border-radius: 28px;
}
.dirs__note h3 { font-size: 27px; color: var(--pine-deep); margin-bottom: 8px; }
.dirs__note p { font-size: 15px; color: var(--muted); max-width: 820px; }
.dirs__note p strong { color: var(--pine-deep); }
.dirs__note .btn { flex-shrink: 0; }

/* § 02 Подход */
.approach { background: var(--white); }
.approach__flow { position: relative; display: flow-root; }

/* Рамка-паспарту для фото */
.plate {
  border: 1px solid var(--gold-line);
  background: var(--paper);
  padding: 12px;
  margin: 0;
  border-radius: 22px;
}
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.plate--float {
  float: right;
  width: min(480px, 42%);
  margin: 0 0 26px 44px;
}
.plate--float img { aspect-ratio: 4 / 5; }
.split__media .plate img { aspect-ratio: 4 / 5; }
.approach__intro {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  font-style: italic;
  color: var(--pine-deep);
  line-height: 1.45;
  margin-bottom: 40px;
  max-width: none;
}
.rule { display: flex; gap: 26px; padding: 26px 0; border-top: 1px solid var(--gold-line); }
.rule span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 3px;
}
.rule h4 { font-size: 23px; color: var(--pine-deep); margin-bottom: 6px; }
.rule p { font-size: 14.5px; color: var(--muted); max-width: 480px; }
.section--dark .rule { border-top-color: rgba(185, 148, 94, 0.3); }
.section--dark .rule h4 { color: var(--paper); }
.section--dark .rule p { color: rgba(244, 239, 229, 0.6); }

/* § 03 Кейсы — карусель папок с печатями */
.cases { background: var(--white); }
.cnav { display: flex; align-items: flex-end; gap: 28px; }
.cnav .sect__note { text-align: right; }
.cnav__btns { display: flex; gap: 12px; }
.cnav__btns button {
  width: 56px; height: 56px;
  border: 1px solid var(--pine);
  border-radius: 50%;
  background: none;
  color: var(--pine);
  font-size: 19px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.cnav__btns button:hover { background: var(--pine); color: var(--paper); transform: scale(1.06); }

.dossier {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 14px 4px 20px;
  cursor: grab;
}
.dossier::-webkit-scrollbar { display: none; }
.dossier.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.dcase {
  flex: 0 0 316px;
  scroll-snap-align: start;
  position: relative;
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  padding: 86px 26px 26px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.dcase::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(185, 148, 94, 0.16);
  border-radius: 16px;
  pointer-events: none;
}
.dcase:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(28, 35, 31, 0.14); }
.dcase:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dcase__num {
  position: absolute;
  top: -12px;
  left: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 92px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-line);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.4s;
}
.dcase:hover .dcase__num { -webkit-text-stroke-color: var(--gold); }
.dcase__stamp, .dmodal__stamp {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--gold);
  padding: 8px 14px;
  white-space: nowrap;
}
.dcase__stamp {
  position: absolute;
  top: 26px;
  right: -8px;
  transform: rotate(9deg) scale(1.3);
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.dcase:hover .dcase__stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.dcase__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.dcase__title {
  font-size: 23px;
  line-height: 1.18;
  color: var(--pine-deep);
  margin-bottom: 14px;
}
.dcase__result {
  font-size: 13.5px;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 20px;
}
.dcase__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  border-top: 1px solid var(--gold-line);
  padding-top: 16px;
  transition: color 0.3s;
}
.dcase__open i { font-style: normal; transition: transform 0.35s var(--ease); }
.dcase:hover .dcase__open { color: var(--gold); }
.dcase:hover .dcase__open i { transform: translateX(6px); }

/* модальное досье */
.dmodal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dmodal[hidden] { display: none; }
.dmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 28, 23, 0.78);
  animation: dmFade 0.35s ease;
}
@keyframes dmFade { from { opacity: 0; } }
.dmodal__sheet {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(10, 16, 13, 0.5);
  padding: 54px 58px 46px;
  animation: dmSheet 0.5s var(--ease);
}
@keyframes dmSheet { from { opacity: 0; transform: translateY(42px); } }
.dmodal__sheet::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(185, 148, 94, 0.2);
  border-radius: 18px;
  pointer-events: none;
}
.dmodal__close, .fmodal__close, .cmodal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 46px; height: 46px;
  border: 1px solid var(--pine);
  border-radius: 50%;
  background: none;
  font-size: 22px;
  color: var(--pine);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  z-index: 2;
}
.dmodal__close:hover, .fmodal__close:hover, .cmodal__close:hover { background: var(--pine); color: var(--paper); }
.dmodal__case {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.dmodal__title { font-size: clamp(26px, 3vw, 36px); color: var(--pine-deep); line-height: 1.12; margin-bottom: 30px; }
.dmodal__content { display: grid; gap: 24px; }
.dmodal__content h5 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.dmodal__content p { font-size: 15.5px; color: var(--ink); line-height: 1.7; }
.dmodal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--gold-line);
}
.dmodal__stamp { transform: rotate(-7deg); }
body.dmodal-open { overflow: hidden; }

.cases__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.cases__cta p { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--pine-deep); }
.cases__cta .btn { width: auto; }

/* § 04 Отзывы — стопка писем + печать (бежевый — второй цвет) */
.reviews { background: var(--paper); overflow: hidden; }
.rvw {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}
.rvw__sub { font-size: 15px; color: var(--muted); max-width: 420px; margin-top: 26px; }
.rvw__nav { display: flex; align-items: center; gap: 22px; margin-top: 40px; }
.rvw__nav button {
  width: 58px; height: 58px;
  border: 1px solid var(--pine);
  border-radius: 50%;
  background: none;
  color: var(--pine);
  font-size: 19px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.rvw__nav button:hover { background: var(--pine); color: var(--paper); transform: scale(1.06); }
.rvw__counter {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--pine-deep);
  min-width: 92px;
  text-align: center;
}
.rvw__counter i { font-style: normal; font-size: 16px; color: var(--muted); margin-left: 6px; }
.rvw__hint { margin-top: 18px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.rvw__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.rvw__deckwrap { position: relative; padding: 30px 30px 40px 10px; }
.deck { position: relative; height: 560px; }
.sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(28, 35, 31, 0.11);
  padding: 34px 42px 30px;
  overflow: hidden;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
  will-change: transform;
}
.sheet:not(.is-top) { box-shadow: 0 6px 14px rgba(28, 35, 31, 0.08); }
.sheet::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(185, 148, 94, 0.16);
  border-radius: 14px;
  pointer-events: none;
}
.sheet.is-top { z-index: 40; cursor: grab; }
.sheet.is-top:active { cursor: grabbing; }
.sheet.is-leaving {
  position: absolute !important;
  inset: 0;
  z-index: 50 !important;
  transform: translateX(135%) rotate(14deg) !important;
  opacity: 0 !important;
  pointer-events: none;
}
.sheet.no-trans { transition: none !important; }
.sheet:not(.is-top):not(.is-leaving) > * { visibility: hidden; }
.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.sheet__date { color: var(--muted); }
.sheet__stars { color: #e8a33d; letter-spacing: 5px; font-size: 15px; margin-bottom: 14px; }
.sheet__text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line) transparent;
}
.sheet__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet__more {
  background: none;
  border: none;
  padding: 10px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
}
.sheet__more:hover { text-decoration: underline; }
.sheet__sign {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
}
.sheet__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--pine-deep);
}
.sheet__src { font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); }

/* печать 5,0 */
.seal {
  position: absolute;
  top: -34px;
  right: -26px;
  width: 150px;
  height: 150px;
  z-index: 60;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transform: rotate(-10deg);
  filter: drop-shadow(0 10px 24px rgba(28, 35, 31, 0.2));
  transition: transform 0.4s var(--ease);
}
.seal:hover { transform: rotate(-4deg) scale(1.06); }
.seal svg { position: absolute; inset: 0; animation: sealspin 26s linear infinite; }
.seal svg text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--gold);
}
@keyframes sealspin { to { transform: rotate(360deg); } }
.seal__num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--pine-deep);
}
.seal__stars { font-size: 10px; letter-spacing: 2px; color: #e8a33d; margin-top: 3px; }

@media (max-width: 900px) {
  .deck { height: 600px; }
  .cnav { width: 100%; justify-content: space-between; }
  .cnav .sect__note { text-align: left; }
  .cases__cta { flex-direction: column; align-items: flex-start; }
  .dmodal__sheet { padding: 40px 28px 34px; }
  .rvw { grid-template-columns: 1fr; gap: 44px; }
  .rvw__deckwrap { padding: 20px 10px 30px; }
  .sheet { padding: 26px 24px 24px; }
  .sheet__text { font-size: 16.5px; }
  .seal { width: 118px; height: 118px; top: -26px; right: -6px; }
  .seal__num { font-size: 31px; }
}

/* ---------- CTA-баннер ---------- */
.lead { background: var(--pine-deep); padding: 26px; }
.lead__frame { border: 1px solid rgba(185, 148, 94, 0.45); border-radius: 30px; padding: 84px 24px; }
.lead__inner { max-width: 760px; margin: 0 auto; text-align: center; color: var(--paper); }
.para--gold { color: var(--gold-soft); }
.lead__title { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 26px; color: var(--paper); }
.lead__title em { color: var(--gold-soft); }
.lead__phone {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.lead__phone:hover { color: #f0dcc0; }
.lead__messengers { font-size: 14.5px; color: rgba(244, 239, 229, 0.5); margin-bottom: 36px; }
.lead__messengers a { color: var(--gold-soft); text-decoration: none; font-weight: 600; }
.lead__messengers a:hover { text-decoration: underline; }
.lead__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Модалка экспресс-анализа (только звонок) ---------- */
.cmodal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 22px; }
.cmodal[hidden] { display: none; }
.cmodal__backdrop { position: absolute; inset: 0; background: rgba(19, 28, 23, 0.8); animation: dmFade 0.3s ease; }
.cmodal__sheet {
  position: relative;
  width: min(600px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(10, 16, 13, 0.5);
  padding: 46px 48px 38px;
  animation: dmSheet 0.45s var(--ease);
}
.cmodal__title { font-size: clamp(26px, 2.8vw, 34px); color: var(--pine-deep); line-height: 1.12; margin-bottom: 14px; }
.cmodal__text { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.cmodal__phone {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--pine-deep);
  color: var(--paper);
  text-decoration: none;
  border-radius: 22px;
  padding: 22px 28px;
  transition: background 0.3s;
}
.cmodal__phone:hover { background: var(--pine); }
.cmodal__phone svg { width: 34px; height: 34px; color: var(--gold-soft); flex-shrink: 0; }
.cmodal__phone span { display: flex; flex-direction: column; font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 600; line-height: 1; }
.cmodal__phone small { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.cmodal__msg { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.cmodal__msg a { color: var(--gold); font-weight: 700; text-decoration: none; }
.cmodal__msg a:hover { text-decoration: underline; }
.cmodal__alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cmodal__alt p { font-size: 14px; color: var(--ink); max-width: 260px; }

/* ---------- Модалка формы ---------- */
.fmodal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 22px; }
.fmodal[hidden] { display: none; }
.fmodal__backdrop { position: absolute; inset: 0; background: rgba(19, 28, 23, 0.8); animation: dmFade 0.3s ease; }
.fmodal__sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(10, 16, 13, 0.5);
  padding: 46px 48px 34px;
  animation: dmSheet 0.45s var(--ease);
}
.fmodal__title { font-size: clamp(24px, 2.6vw, 31px); color: var(--pine-deep); line-height: 1.15; margin-bottom: 10px; position: relative; }
.fmodal__sub { font-size: 14px; color: var(--muted); margin-bottom: 26px; position: relative; }
.fmodal__alt { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gold-line); font-size: 13px; color: var(--muted); }
.fmodal__alt a { color: var(--gold); font-weight: 700; text-decoration: none; }
.fmodal__alt a:hover { text-decoration: underline; }

/* форма (светлая, в модалке) */
.lead-form { position: relative; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form__field { margin-bottom: 18px; }
.lead-form__field label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(36, 56, 47, 0.3);
  color: var(--ink);
  transition: border-color 0.3s;
}
.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder { color: rgba(109, 122, 114, 0.55); }
.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.lead-form__field input.is-invalid { border-bottom-color: #b8503d; }
.lead-form__status { margin-top: 12px; font-weight: 600; font-size: 14px; min-height: 20px; }
.lead-form__status.ok { color: var(--pine); }
.lead-form__status.err { color: #b8503d; }
.lead-form__privacy { margin-top: 8px; font-size: 11px; color: var(--muted); }
.lead-form .btn { margin-top: 6px; }

/* ---------- Страница контактов ---------- */
.cpage__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: start; }
.cpage__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.cpage__phone {
  font-family: var(--serif);
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 600;
  line-height: 1;
  color: var(--pine-deep);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}
.cpage__phone:hover { color: var(--gold); }
.cpage__hint { font-size: 14px; color: var(--muted); margin: 14px 0 40px; max-width: 420px; }
.cpage__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 46px;
}
.chan {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 24px 26px;
  border: none;
  background: var(--white);
  text-decoration: none;
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.3s;
}
.chan:hover { background: var(--card); }
.chan:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chan__name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.chan__val { font-family: var(--serif); font-size: 21px; color: var(--pine-deep); }
.chan--gold { background: var(--pine-deep); }
.chan--gold .chan__name { color: var(--gold-soft); }
.chan--gold .chan__val { color: var(--paper); }
.chan--gold:hover { background: var(--pine); }
.cpage__office { border-top: 1px solid var(--gold-line); padding-top: 32px; }
.cpage__addr { font-family: var(--serif); font-size: 27px; color: var(--pine-deep); line-height: 1.25; margin-bottom: 20px; }
.cpage__addr span { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.plate--map { padding: 12px; }
.plate--map iframe { display: block; width: 100%; border: 0; border-radius: 12px; filter: grayscale(0.5) sepia(0.12); }
.cpage__mapnote { margin-top: 14px; font-size: 13px; color: var(--muted); }
.contacts__socials { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__socials a {
  border: 1px solid var(--pine);
  border-radius: var(--radius);
  color: var(--pine-deep);
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.contacts__socials a:hover { background: var(--pine); color: var(--paper); }

/* ---------- Подвал ---------- */
.footer {
  background: var(--pine-deep);
  color: rgba(244, 239, 229, 0.7);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(185, 148, 94, 0.25);
}
.footer__top {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 0 80px;
}
.footer__brand img { width: 104px; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__nav { display: flex; flex-direction: column; gap: 11px; }
.footer__nav a { text-decoration: none; font-size: 14.5px; transition: color 0.25s; }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__contacts a { display: block; text-decoration: none; font-size: 14.5px; margin-bottom: 8px; }
.footer__contacts a:hover { color: var(--gold-soft); }
.footer__contacts p { font-size: 14.5px; margin-bottom: 8px; }
.footer__phone { font-family: var(--serif); font-size: 28px !important; font-weight: 600; color: var(--gold-soft) !important; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer__socials a {
  width: 46px; height: 46px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 148, 94, 0.45);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 !important;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.footer__socials a svg { width: 22px; height: 22px; fill: currentColor; }
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--pine-deep) !important; }
.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(185, 148, 94, 0.15);
  font-size: 12.5px;
  color: rgba(244, 239, 229, 0.4);
}

/* ---------- Внутренние страницы ---------- */
.phero { position: relative; overflow: hidden; padding-top: 150px; background: var(--white); }
.phero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  min-height: 460px;
}
.phero--compact { padding-bottom: 70px; }
.breadcrumbs { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.phero__content { padding-bottom: 70px; }
.phero__title { font-size: clamp(46px, 6.2vw, 92px); line-height: 0.97; color: var(--pine-deep); margin-bottom: 28px; }
.phero__lead { font-size: 16.5px; color: var(--muted); max-width: 520px; margin-bottom: 38px; border-left: 1px solid var(--gold-line); padding-left: 22px; }
.phero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.phero__media { position: relative; align-self: end; }
.phero__media::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(640px, 100%);
  height: 70%;
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: 34px 34px 0 0;
  z-index: 0;
}
.phero__media img { position: relative; z-index: 1; width: min(500px, 100%); height: auto; margin: 0 auto; }
.phero__ghost {
  position: absolute;
  top: 100px;
  right: -1vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 15vw, 230px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(36, 56, 47, 0.08);
  white-space: nowrap;
  pointer-events: none;
}
.phero__base { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-line); }

.section { padding: 110px 0; position: relative; background: var(--white); }
.section--tint { background: var(--paper); }
.section--dark { background: var(--pine-deep); color: var(--paper); }
.section--dark .h2 { color: var(--paper); }
.section--dark .h2 em { color: var(--gold-soft); }

/* услуги «Чем помогу» (якоря из меню) */
.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svcs--2 { grid-template-columns: repeat(2, 1fr); }
.svc {
  display: flex;
  flex-direction: column;
  padding: 38px 36px 32px;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: var(--white);
  scroll-margin-top: 110px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(28, 35, 31, 0.1); }
.svc:target { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(185, 148, 94, 0.18); }
.svc__title { font-size: 27px; color: var(--pine-deep); margin-bottom: 12px; }
.svc__text { font-size: 14.5px; color: var(--muted); flex-grow: 1; margin-bottom: 22px; }
.svc__btn {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  cursor: pointer;
  transition: color 0.3s;
}
.svc__btn span { display: inline-block; transition: transform 0.35s var(--ease); }
.svc__btn:hover { color: var(--gold); }
.svc__btn:hover span { transform: translateX(6px); }
.svc--accent { background: var(--pine-deep); border-color: var(--pine-deep); }
.svc--accent .svc__title { color: var(--paper); }
.svc--accent .svc__text { color: rgba(244, 239, 229, 0.7); }
.svc--accent .svc__btn { color: var(--gold-soft); }

/* стоимость: консультация + факторы + порядок оплаты */
.pricing { display: grid; grid-template-columns: minmax(340px, 0.9fr) 1.1fr; gap: 28px; align-items: start; }
.consult {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pine-deep);
  color: var(--paper);
  border-radius: 28px;
  padding: 46px 42px 40px;
  cursor: pointer;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), box-shadow 0.4s var(--ease);
}
.consult::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(185, 148, 94, 0.35);
  border-radius: 20px;
  pointer-events: none;
}
.consult:hover { box-shadow: 0 26px 60px rgba(10, 16, 13, 0.3); }
.consult:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.consult__stamp {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--gold);
  color: var(--pine-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  transform: rotate(-3deg);
  box-shadow: 0 8px 20px rgba(10, 16, 13, 0.3);
  z-index: 2;
}
.consult__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.consult__price {
  font-family: var(--serif);
  font-size: clamp(44px, 4vw, 62px);
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(185, 148, 94, 0.3);
}
.consult__price i { font-family: var(--sans); font-style: normal; font-size: 15px; font-weight: 600; color: rgba(244, 239, 229, 0.6); margin-left: 8px; }
.consult__list { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.consult__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: rgba(244, 239, 229, 0.85); line-height: 1.5; }
.consult__list li::before { content: '§'; position: absolute; left: 0; color: var(--gold-soft); font-weight: 600; }
.consult__bonus { background: rgba(185, 148, 94, 0.14); border: 1px solid rgba(185, 148, 94, 0.35); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.consult__bonus strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-soft); margin-bottom: 4px; }
.consult__bonus p { font-size: 13.5px; color: rgba(244, 239, 229, 0.8); }
.consult__note { font-size: 13px; color: rgba(244, 239, 229, 0.6); margin-bottom: 26px; }
.consult__btn { pointer-events: none; margin-top: auto; }

.pricing__side { display: grid; gap: 22px; }
.factors, .payorder { background: var(--white); border: 1px solid var(--gold-line); border-radius: 24px; padding: 34px 36px; }
.factors__heading { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.factors__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.factors__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink); }
.factors__list li::before { content: '§'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.payorder__list { list-style: none; display: grid; gap: 14px; }
.payorder__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.payorder__list li::before { content: '§'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.payorder__list strong { color: var(--pine-deep); }
.payorder__list a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.payorder__list a:hover { color: var(--pine); }

/* pro bono */
.probono {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 28px;
  padding: 48px 52px;
  scroll-margin-top: 110px;
}
.probono__title { font-size: clamp(26px, 2.6vw, 36px); color: var(--pine-deep); line-height: 1.12; }
.probono__body p { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.probono__btns { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; }

/* статус (об эксперте) */
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.status__item { background: var(--paper); border-radius: 24px; padding: 32px 36px; }
.status__item p:not(.factors__heading) { font-size: 15px; color: var(--ink); }

/* фичи */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 40px 36px;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pine-deep);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.feature:hover::after { transform: translateY(0); }
.feature h3, .feature p, .feature .feature__num { transition: color 0.35s, -webkit-text-stroke-color 0.35s; }
.feature:hover h3 { color: var(--paper); }
.feature:hover p { color: rgba(244, 239, 229, 0.65); }
.feature:hover .feature__num { -webkit-text-stroke-color: var(--gold-soft); }
.feature__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 58px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  display: block;
  margin-bottom: 22px;
}
.feature h3 { font-size: 26px; color: var(--pine-deep); margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 38px 30px; border-left: 1px solid rgba(185, 148, 94, 0.3); transition: background 0.4s; }
.step:hover { background: rgba(185, 148, 94, 0.07); }
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 50px;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-soft);
  display: block;
  margin-bottom: 20px;
  line-height: 1;
  transition: color 0.4s;
}
.step:hover .step__num { color: var(--gold-soft); }
.step h4 { font-size: 23px; margin-bottom: 10px; color: var(--paper); }
.step p { font-size: 14px; color: rgba(244, 239, 229, 0.6); }

/* сплиты */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.split--reverse .split__content { order: 2; }
.split--reverse .split__media { order: 1; }
.split__text { font-size: 16px; color: var(--muted); margin-bottom: 28px; max-width: 500px; }
.section--dark .split__text { color: rgba(244, 239, 229, 0.7); }
.split__media img { width: min(440px, 100%); height: auto; margin: 0 auto; }
.split__media .plate { max-width: 460px; margin: 0 auto; }
.checklist { list-style: none; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 28px; font-size: 15px; }
.checklist li::before { content: '§'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }

/* медиация */
.saves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); border-radius: 24px; overflow: hidden; margin-bottom: 70px; }
.save { text-align: center; padding: 34px 16px; background: var(--white); transition: background 0.3s; }
.save:hover { background: var(--card); }
.save span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--pine-deep); display: block; margin-bottom: 6px; }
.save p { font-size: 12.5px; color: var(--muted); }
.bigquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.35;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  color: var(--pine-deep);
}

.prose { max-width: 720px; }
.prose p { font-size: 17px; color: var(--muted); margin-bottom: 18px; }

/* тарифные карточки (медиация) */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  padding: 40px 36px 36px;
  cursor: pointer;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), box-shadow 0.4s var(--ease);
}
.tcard::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(185, 148, 94, 0.16);
  border-radius: 19px;
  pointer-events: none;
}
.tcard:hover { box-shadow: 0 22px 50px rgba(28, 35, 31, 0.16); }
.tcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tcard__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.tcard__title { font-size: clamp(26px, 2.4vw, 32px); color: var(--pine-deep); margin-bottom: 16px; }
.tcard__price {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 38px);
  line-height: 1;
  color: var(--pine-deep);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 22px;
}
.tcard__price i { font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.tcard__price--free { font-style: italic; color: var(--gold); }
.tcard__list { list-style: none; flex-grow: 1; display: grid; gap: 11px; margin-bottom: 28px; align-content: start; }
.tcard__list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.tcard__list li::before { content: '§'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.tcard__btn { pointer-events: none; }

.tcard--dark { background: var(--pine-deep); border-color: var(--pine-deep); }
.tcard--dark::before { border-color: rgba(185, 148, 94, 0.35); }
.tcard--dark .tcard__tag { color: var(--gold-soft); }
.tcard--dark .tcard__title { color: var(--paper); }
.tcard--dark .tcard__price {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-soft);
  border-bottom-color: rgba(185, 148, 94, 0.3);
}
.tcard--dark .tcard__price i { color: rgba(244, 239, 229, 0.55); -webkit-text-stroke: 0; }
.tcard--dark .tcard__list li { color: rgba(244, 239, 229, 0.72); }
.tcard__stamp {
  position: absolute;
  top: -15px;
  right: 26px;
  background: var(--gold);
  color: var(--pine-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  transform: rotate(-3deg);
  box-shadow: 0 8px 20px rgba(10, 16, 13, 0.3);
  z-index: 2;
}

/* чипы-ориентиры */
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chips__label { font-size: 13px; color: var(--muted); margin-right: 6px; }
.chip {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pine-deep);
  background: none;
  border: 1px solid rgba(46, 65, 56, 0.3);
  border-radius: var(--radius);
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip b { color: var(--gold); font-weight: 700; margin-left: 5px; }
.chip:hover { background: var(--pine-deep); color: var(--paper); border-color: var(--pine-deep); }
.chip:hover b { color: var(--gold-soft); }
.price__note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* гарантии */
.assure { background: var(--paper); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); padding: 44px 0; }
.assure__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.assure__item { display: flex; gap: 18px; align-items: flex-start; }
.assure__item span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  flex-shrink: 0;
}
.assure__item p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.assure__item strong {
  display: block;
  font-size: 15.5px;
  color: var(--pine-deep);
  margin-bottom: 4px;
}

/* полоса-перелинковка */
.bandlink { border-top: 1px solid var(--gold-line); background: var(--white); padding: 34px 0; }
.bandlink__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bandlink p { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); color: var(--pine-deep); }
.bandlink em { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-inview { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) {
  .header__logo img { width: 70px; }
  .header__logo-text { font-size: 19px; }
  .nav-item > a { padding: 12px 9px; font-size: 12px; letter-spacing: 0.08em; }
  .header__phone { font-size: 19px; }
  .header__cta { display: none; }
}
@media (max-width: 1240px) {
  .header__logo-text small { display: none; }
  .nav-item > a { padding: 12px 7px; font-size: 11.5px; letter-spacing: 0.06em; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 60px; }
}
@media (max-width: 1100px) {
  .feature-grid--3, .feature-grid--4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .saves { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .probono { grid-template-columns: 1fr; gap: 24px; padding: 40px 36px; }
  .dirs__grid { grid-template-columns: 1fr; }
  .dcol { min-height: auto; }
  .dirs__note { flex-direction: column; align-items: flex-start; }
}

/* планшет и меньше: бургер-меню */
@media (max-width: 1080px) {
  .header__nav, .header__actions .header__cta { display: none; }
  .header__burger { display: block; margin-left: auto; }
  .header__actions { margin-left: auto; }
  .header__phone { font-size: 20px; }
  .header__phone span { display: none; }
  .header__phone svg { width: 24px; height: 24px; color: var(--paper); }
  .header__logo-text { display: block; }
}

@media (max-width: 900px) {
  .dirs, .approach, .cases, .reviews, .section { padding: 76px 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .fact--wide { grid-column: 1 / -1; }
  .plate--float { float: none; margin: 0 auto 30px; width: min(420px, 86vw); }

  /* мобильный phero — Владимир за текстом, водяным знаком */
  .phero { padding-top: 120px; }
  .phero__inner { grid-template-columns: 1fr; position: relative; min-height: 62svh; align-items: end; }
  .phero__media {
    display: block;
    position: absolute;
    right: -10vw;
    bottom: 0;
    width: 64vw;
    max-width: 350px;
    z-index: 0;
    pointer-events: none;
  }
  .phero__media::before { display: none; }
  .phero__media img { width: 100% !important; height: auto !important; opacity: 0.3; }
  .phero__content { position: relative; z-index: 1; padding-bottom: 52px; }
  .phero__lead { max-width: 100%; }
  .split, .lead__inner, .cpage__inner { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__content { order: 1; }
  .split--reverse .split__media { order: 2; }
  .sect--row { flex-direction: column; align-items: flex-start; }
  .sect__note { text-align: left; }
  .lead__frame { padding: 60px 16px; }
  .status { grid-template-columns: 1fr; }
  .assure__inner { grid-template-columns: 1fr; gap: 22px; }
  .bandlink__inner { flex-direction: column; align-items: flex-start; }
  .factors__list { grid-template-columns: 1fr; }
}

@media (pointer: coarse) {
  .rvw__hint { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .header__inner { gap: 12px; min-height: 72px; }
  .header__logo { gap: 10px; }
  .header__logo img { width: 52px; }
  .header__logo-text { font-size: 15px; }
  .header__actions { gap: 10px; }
  .cpage__channels { grid-template-columns: 1fr; }
  .plate--map iframe { height: 380px; }
  .fmodal__sheet, .cmodal__sheet { padding: 36px 24px 26px; }
  .cmodal__phone { padding: 18px 20px; }
  .cmodal__alt p { max-width: none; }
  .cpage__phone { font-size: clamp(28px, 8.6vw, 38px); white-space: nowrap; }
  .feature-grid, .feature-grid--3, .feature-grid--4, .steps, .svcs, .svcs--2 { grid-template-columns: 1fr; }
  .saves { grid-template-columns: 1fr 1fr; }
  .lead { padding: 14px; }
  .lead-form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .btn { width: 100%; }
  .dcase { flex-basis: 280px; }
  .ticker__track span { font-size: 18px; }
  .tariffs { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact strong { font-size: 32px; }
  .consult { padding: 40px 26px 32px; }
  .factors, .payorder, .probono { padding: 28px 22px; }
  .dirs__note { padding: 28px 22px; }
}
@media (max-width: 1000px) and (min-width: 601px) {
  .tariffs { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}


/* --- Правовые элементы (согласие ПДн, оговорки) --- */
.lead-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 4px 0; }
.lead-form__consent input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--pine); cursor: pointer; }
.lead-form__consent a { color: var(--gold); text-decoration: underline; }
.cpage__reqs { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.cases__note { font-size: 13px; color: var(--muted); max-width: 900px; margin-top: 22px; line-height: 1.6; }
.footer__bottom a { color: var(--gold-soft); text-decoration: underline; }


/* === Hero (слоёная типографика) — планшет/мобильный === */
@media (max-width: 1080px) {
  .hero__col--right { display: none; }
}
@media (max-width: 900px) {
  .hero { min-height: 100svh; }
  .hero__stage { min-height: calc(100svh - 1px); padding-top: 0; display: block; }
  .hero__t1, .hero__t2 { position: absolute; left: 0; right: 0; text-align: center; }
  .hero__t1 { top: 92px; font-size: clamp(42px, 13vw, 90px); }
  .hero__t2 { top: auto; bottom: 45svh; font-size: clamp(54px, 16.5vw, 104px); }
  .hero__cut { position: absolute; left: 50%; transform: translateX(-50%); bottom: 27svh; width: min(400px, 88vw); margin: 0; }
  .hero__col { position: static; max-width: none; }
  .hero__col--left { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 26px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--white) 34%); }
  .hero__label { font-size: 22px; margin-bottom: 8px; }
  .hero__desc { margin-bottom: 14px; max-width: 460px; }
  .hero__phone { margin-bottom: 16px; }
  .hero__phone b { font-size: 27px; }
  .hero__cta .btn { width: 100%; }
  .hero__ghost { display: none; }
}
