/* style.css — единые стили всего сайта.
   Шрифты лежат на сайте: без обращений к Google и передачи IP посетителей. */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/GolosText-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b2a47;
  --ink-2: #2a3b5e;
  --night: #121d33;
  --text: #3e4352;
  --muted: #6b6f7b;
  --bg: #fbf9f5;
  --tint: #f5efe4;
  --white: #ffffff;
  --line: #e8e0d1;
  --gold: #b39355;
  --gold-ink: #7a5c24;
  --gold-soft: #f1e7d4;
  --gold-light: #d9c08a;
  --danger: #a3302d;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(18, 29, 51, 0.05), 0 8px 24px rgba(18, 29, 51, 0.06);
  --shadow-2: 0 2px 6px rgba(18, 29, 51, 0.06), 0 18px 44px rgba(18, 29, 51, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  /* якорь не прячется под липкой шапкой */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  /* у Playfair цифры по умолчанию «прыгают» по высоте — в ценах и телефонах нужны ровные */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img,
video,
iframe {
  display: block;
  max-width: 100%;
}
/* width и height в разметке нужны против прыжков при загрузке, а размер задаёт CSS */
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
}
.skip-link:focus {
  left: 8px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 820px;
}

/* ---------- Типографика ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(32px, 4.4vw, 54px);
}
h2 {
  font-size: clamp(27px, 3.1vw, 40px);
}
h3 {
  font-size: 20px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 999px;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.muted {
  color: var(--muted);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 40px;
}
.section-head .lead {
  font-size: 17px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(27, 42, 71, 0.18);
}
.btn-gold {
  background: var(--gold);
  color: var(--night);
}
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-lg {
  min-height: 56px;
  padding: 15px 30px;
  font-size: 16.5px;
}
.btn-sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14.5px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Иконки ---------- */
.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill {
  fill: currentColor;
  stroke: none;
}
.ic-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 14px;
}
.ic-box svg {
  width: 24px;
  height: 24px;
}

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img {
  width: 36px;
  height: 46px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.brand-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav a.is-current {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.top-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.top-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.top-phone b {
  font-size: 16px;
  font-weight: 600;
}
.top-phone small {
  font-size: 12px;
  color: var(--muted);
}
.top-phone-ic {
  display: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.top.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.top.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.top.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }
  .top-cta {
    margin-left: auto;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(18, 29, 51, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }
  .top.is-nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 12px;
  }
}
@media (max-width: 720px) {
  .top-in {
    gap: 12px;
    min-height: 66px;
  }
  .brand-sub {
    display: none;
  }
  .top-phone {
    display: none;
  }
  .top-phone-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .top-phone-ic svg {
    width: 18px;
    height: 18px;
  }
  .top-cta .btn {
    display: none;
  }
}
@media (max-width: 380px) {
  .brand-name {
    font-size: 16px;
  }
}

/* ---------- Хлебные крошки ---------- */
.crumbs {
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a {
  color: var(--ink);
}
.crumbs span[aria-hidden] {
  margin: 0 8px;
  color: var(--gold);
}
.crumbs span[aria-current] {
  color: var(--muted);
}

/* ---------- Заголовок внутренней страницы ---------- */
.page-head {
  padding: 28px 0 56px;
}
.page-head .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.page-head h1 {
  max-width: 900px;
}
.page-head .lead {
  max-width: 780px;
}
@media (max-width: 600px) {
  .page-head {
    padding: 16px 0 36px;
  }
}

/* ---------- Секции ---------- */
.section {
  padding: 88px 0;
}
.section-tint {
  background: var(--tint);
}
.section-white {
  background: var(--white);
}
.section-tight {
  padding: 56px 0;
}
@media (max-width: 900px) {
  .section {
    padding: 64px 0;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 52px 0;
  }
  .container {
    padding: 0 18px;
  }
}

/* ---------- Первый экран главной ---------- */
.hero {
  padding: 64px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 64px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero-copy .lead {
  max-width: 560px;
}
.hero-free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.hero-free i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--night);
  background: var(--gold);
  border-radius: 50%;
}
.hero-free svg {
  width: 16px;
  height: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hero-phone i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 50%;
}
.hero-phone svg {
  width: 18px;
  height: 18px;
}
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.rating-chip .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}
.rating-chip .stars svg {
  width: 16px;
  height: 16px;
}
.rating-chip b {
  color: var(--ink);
}
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.hero-media {
  position: relative;
  margin: 0;
}
.hero-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: var(--tint);
  box-shadow: var(--shadow-2);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  left: -28px;
  bottom: 28px;
  max-width: 300px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
}
.hero-card strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.hero-card span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.hero-card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-media {
    max-width: 460px;
  }
  .hero-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 32px 0 56px;
  }
  .hero-copy {
    gap: 18px;
  }
  .hero .lead-more {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-phone {
    display: none;
  }
  .hero-points {
    display: none;
  }
}

/* ---------- Ночной режим: 21:00–08:00 по Москве (класс ставит site.js) ---------- */
.t-night,
.only-night {
  display: none;
}
.is-night .t-day {
  display: none;
}
.is-night .t-night {
  display: inline;
}
.is-night .only-night {
  display: block;
}
/* оба варианта в одной ячейке: смена текста не сдвигает вёрстку */
.swap {
  display: grid;
}
.swap > span.t-day,
.swap > span.t-night {
  display: block;
  grid-area: 1 / 1;
}
.swap > span.t-night,
.is-night .swap > span.t-day {
  visibility: hidden;
}
.is-night .swap > span.t-night {
  visibility: visible;
}

/* ---------- Плитки «Что у вас случилось?» ----------
   Все плитки одного размера, по три в ряд, ряды одной высоты. Сетка из шести колонок,
   плитка занимает две — так неполный последний ряд встаёт ровно по центру. */
.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}
.tiles > li {
  grid-column: span 2;
}
.tiles > li:nth-child(3n + 1):nth-last-child(2) {
  grid-column: 2 / span 2;
}
.tiles > li:nth-child(3n + 1):last-child {
  grid-column: 3 / span 2;
}
.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  min-height: 84px;
  padding: 16px 20px 16px 16px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.tile .ic-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.tile .ic-box svg {
  width: 22px;
  height: 22px;
}
.tile-other {
  border-style: dashed;
  border-color: var(--gold-light);
}
@media (max-width: 760px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
  }
  .tiles > li,
  .tiles > li:nth-child(3n + 1):nth-last-child(2),
  .tiles > li:nth-child(3n + 1):last-child {
    grid-column: auto;
  }
  .tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    font-size: 14.5px;
  }
}

/* ---------- Карточки услуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.card h3 {
  font-size: 21px;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
}
.price {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-ink);
}
.card .price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price small {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 22px;
  }
  .card-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Список с галочками и шаги ---------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 40px;
  font-size: 16.5px;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 6px;
  width: 7px;
  height: 12px;
  border: solid var(--gold-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.panel {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
@media (max-width: 600px) {
  .panel {
    padding: 24px 20px;
  }
}
.steps {
  list-style: none;
  display: grid;
  gap: 22px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 60px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}
.steps h3 {
  margin-bottom: 4px;
  font-size: 18px;
}
.steps p {
  font-size: 15px;
}
.steps-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.steps-row li {
  padding: 78px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.steps-row li::before {
  left: 22px;
  top: 20px;
}
@media (max-width: 1000px) {
  .steps-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Почему нам доверяют ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.trust-item h3 {
  font-size: 18px;
}
.trust-item p {
  font-size: 15px;
}
.trust-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .trust-grid,
  .trust-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .trust-grid,
  .trust-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Отзывы ---------- */
.rating-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.rating-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.rating-box .stars {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
}
.rating-box .stars svg {
  width: 22px;
  height: 22px;
}
.rating-box p {
  font-size: 15px;
}
.quote-card {
  margin: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.quote-card blockquote {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.quote-card figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.quote-card figcaption a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reviews-widget {
  width: 100%;
  max-width: 760px;
  height: 720px;
  overflow: hidden;
  background: #f3f1ed;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.reviews-widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .reviews-widget {
    height: 560px;
  }
}

/* ---------- Документы ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.doc {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.doc img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}
.doc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
  font-size: 15px;
  line-height: 1.55;
}
.doc-body b {
  font-weight: 600;
  color: var(--ink);
}
.doc-body span {
  font-size: 14px;
  color: var(--gold-ink);
}
@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}
.reqs {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.prose p + p {
  margin-top: 14px;
}
.prose h3 {
  margin: 28px 0 10px;
}

/* ---------- Частые вопросы ---------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 50%;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding: 0 22px 20px;
  font-size: 15.5px;
}

/* ---------- Чипсы ---------- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gold);
}
a.chip {
  transition:
    border-color 0.2s,
    color 0.2s;
}

/* ---------- Видео ---------- */
.video-card {
  margin: 0;
  overflow: hidden;
  background: var(--night);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.video-card figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: #aeb6c6;
}

/* ---------- Тёмная полоса с призывом ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 32px 36px;
  color: #c9d0dc;
  background: var(--ink);
  border-radius: var(--r-lg);
}
.cta-band p {
  max-width: 560px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--white);
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.cta-band-phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .cta-band {
    padding: 26px 22px;
  }
  .cta-band p {
    font-size: 19px;
  }
  .cta-band-actions,
  .cta-band-actions .btn {
    width: 100%;
  }
}

/* ---------- Блок заявки ---------- */
.contact {
  padding: 88px 0;
}
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 56px;
  color: #c9d0dc;
  background: var(--ink);
  border-radius: 32px;
}
.contact-box h2 {
  color: var(--white);
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.contact-info .eyebrow {
  color: var(--gold-light);
  background: rgba(217, 192, 138, 0.14);
}
.phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-main {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-light);
}
.phone-sub {
  font-size: 16px;
  color: #c9d0dc;
}
.hours {
  font-size: 14.5px;
}
.msgs-title {
  max-width: 460px;
  font-size: 15.5px;
  color: var(--white);
}
.msgs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 8px;
  font-size: 14.5px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
/* Telegram и WhatsApp — первой строкой, ВКонтакте и MAX — второй */
.msgs-break {
  flex-basis: 100%;
  height: 0;
}
.msg-big {
  min-height: 52px;
  padding: 10px 20px 10px 10px;
  font-size: 15.5px;
  font-weight: 500;
  border-color: rgba(217, 192, 138, 0.6);
}
.msg-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
}
.msg-big .msg-ic {
  width: 32px;
  height: 32px;
}
.msg-ic svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}
.msg-ic img {
  width: 100%;
  height: 100%;
}
.msg-tg {
  background: #29a9eb;
}
.msg-wa {
  background: #25d366;
}
.lead-quote {
  margin: 4px 0 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
}
.lead-quote blockquote {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
}
.lead-quote figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #aeb6c6;
}
.lead-quote a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-card {
  align-self: start;
  padding: 32px;
  color: var(--text);
  background: var(--white);
  border-radius: var(--r-lg);
}
.form-card h3 {
  margin-bottom: 18px;
  font-size: 22px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
}
.field .opt {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field input:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--gold);
  outline: none;
}
.field textarea {
  min-height: 104px;
  resize: vertical;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--gold);
}
.consent a {
  color: var(--ink);
  text-decoration: underline;
}
.err {
  display: none;
  margin: -6px 0 12px;
  font-size: 13.5px;
  color: var(--danger);
}
.is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 1px;
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.form-note + .form-note {
  margin-top: 4px;
}
.form-note a {
  color: var(--ink);
  text-decoration: underline;
}
/* ловушка для ботов: поле есть в разметке, но человеку недоступно */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 960px) {
  .contact-box {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 32px;
  }
}
@media (max-width: 600px) {
  .contact {
    padding: 52px 0;
  }
  .contact-box {
    padding: 32px 20px;
    border-radius: var(--r-lg);
  }
  .form-card {
    padding: 24px 20px;
  }
  .phone-main {
    font-size: 26px;
  }
}

/* ---------- Карта ---------- */
.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.map-card iframe {
  width: 100%;
  height: 420px;
  border: 0;
}
/* Карта на главной — под формой заявки, той же ширины и с теми же скруглениями,
   что и синий блок над ней; внизу карточки — адрес, часы и маршрут */
.map-sec {
  padding-bottom: 88px;
}
.contact + .map-sec {
  margin-top: -48px;
}
.map-wide {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-1);
}
.map-view {
  position: relative;
}
.map-view iframe {
  width: 100%;
  height: 440px;
  border: 0;
}
.map-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
}
.map-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.map-fact .ic-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.map-fact .ic-box svg {
  width: 22px;
  height: 22px;
}
.map-fact b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 1000px) {
  .map-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .map-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .map-sec {
    padding-bottom: 52px;
  }
  .contact + .map-sec {
    margin-top: -28px;
  }
  .map-wide {
    border-radius: var(--r-lg);
  }
  .map-view iframe {
    height: 320px;
  }
  .map-bar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .map-actions .btn {
    flex: 1 1 auto;
  }
}
/* карты чуть приглушены, чтобы не спорить с тёплой палитрой сайта */
.map-view iframe,
.map-card iframe {
  filter: grayscale(0.2);
}
/* накладка не даёт карте перехватывать прокрутку; снимается по клику */
.map-guard {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
@media (max-width: 700px) {
  .map-card iframe {
    height: 320px;
  }
}

/* ---------- Контакты ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contact-cards .card a {
  color: var(--ink);
}
@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Подвал ---------- */
.foot {
  padding: 64px 0 40px;
  color: #aeb6c6;
  background: var(--night);
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.3fr 1.2fr;
  gap: 36px;
}
.foot-title {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.foot ul {
  list-style: none;
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.foot-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 7px;
  background: var(--bg);
  border-radius: 12px;
}
.foot-brand img {
  width: auto;
  height: 100%;
}
.foot-brand b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.foot-phone-main a {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.foot-phone-sub {
  font-size: 13.5px;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.social svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.social img {
  width: 100%;
  height: 100%;
}
.social-tg {
  background: #29a9eb;
}
.social-wa {
  background: #25d366;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 44px;
  padding-top: 24px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-bottom img {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: var(--bg);
  border-radius: 10px;
}
.foot-bottom a {
  text-decoration: underline;
  text-decoration-color: rgba(174, 182, 198, 0.45);
  text-underline-offset: 3px;
}
.foot-bottom p {
  line-height: 1.7;
}
.foot-docs {
  margin-left: auto;
  text-align: right;
}
@media (max-width: 800px) {
  .foot-docs {
    margin-left: 0;
    text-align: left;
  }
}
@media (max-width: 1000px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Страницы направлений ---------- */
.dir-hero {
  padding: 28px 0 72px;
}
.dir-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.dir-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.dir-sub {
  font-family: var(--display);
  font-size: 21px;
  color: var(--gold-ink);
}
/* иллюстрация направления: кремовый фон совпадает с фоном самой картинки */
.dir-hero-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: #f4ede1;
  box-shadow: var(--shadow-2);
}
.dir-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .dir-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dir-hero-media {
    max-width: 420px;
  }
}
@media (max-width: 600px) {
  .dir-hero {
    padding: 16px 0 52px;
  }
  .dir-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Юридические тексты ---------- */
.legal {
  padding: 40px 0 88px;
}
.legal-head {
  margin-bottom: 32px;
}
.legal-head h1 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.legal-body {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.legal-body h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}
.legal-body p,
.legal-body li {
  font-size: 15.5px;
}
.legal-body p + p {
  margin-top: 10px;
}
.legal-body ul,
.legal-body ol {
  margin: 10px 0 10px 22px;
}
.legal-body li + li {
  margin-top: 6px;
}
.legal-body a {
  color: var(--ink);
  text-decoration: underline;
}
.legal-table {
  margin: 14px 0;
  overflow-x: auto;
}
.legal-body blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  font-size: 15px;
  background: var(--tint);
  border-radius: var(--r-sm);
}
.legal-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.legal-body th,
.legal-body td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}
.legal-body th {
  background: var(--tint);
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 600px) {
  .legal-body {
    padding: 24px 18px;
  }
}

/* ---------- «Спасибо» и 404 ---------- */
.status {
  padding: 72px 0 96px;
}
.status-card {
  max-width: 760px;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-1);
}
.status-card h1 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.4vw, 40px);
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.status-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.status-back {
  margin-top: 26px;
  font-size: 15px;
}
.status-back a {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .status {
    padding: 32px 0 64px;
  }
  .status-card {
    padding: 28px 20px;
  }
  .status-actions .btn {
    width: 100%;
  }
}

/* ---------- Уведомление о cookie ---------- */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  color: #c9d0dc;
  background: var(--ink);
  border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(18, 29, 51, 0.3);
}
.cookie p {
  font-size: 13.5px;
  line-height: 1.6;
}
.cookie a {
  color: var(--gold-light);
  text-decoration: underline;
}
.cookie .btn {
  flex: none;
}
@media (max-width: 700px) {
  .cookie {
    left: 12px;
    right: 12px;
    bottom: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ---------- Нижняя панель на телефоне ---------- */
.callbar {
  display: none;
}
@media (max-width: 700px) {
  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(251, 249, 245, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .callbar .btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 15px;
  }
  body {
    padding-bottom: 70px;
  }
}

/* ---------- Плавающие кнопки мессенджеров (шире 700 px) ---------- */
.msg-float {
  display: none;
}
@media (min-width: 701px) {
  .msg-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .msg-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(18, 29, 51, 0.25);
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }
  .msg-float svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
  }
  .msg-float .msg-tg {
    background: #2aabee;
  }
  .msg-float .msg-wa {
    background: #25d366;
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  .cookie-open .msg-float {
    bottom: 132px;
  }
}

/* ---------- Всплывающее окно заявки ---------- */
.popup {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: var(--bg);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(14, 21, 34, 0.35);
}
.popup::backdrop {
  background: rgba(14, 21, 34, 0.6);
}
.popup[open] {
  animation: popup-in 0.25s ease-out;
}
@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* пока окно открыто, страница не прокручивается и не дёргается */
html.popup-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.popup-box {
  position: relative;
  padding: 30px 30px 24px;
}
.popup-box:focus {
  outline: none;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.popup-title {
  margin: 12px 36px 10px 0;
  font-size: 26px;
}
.popup-text {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.55;
}
.popup .field input {
  background: var(--white);
}
.popup .btn {
  width: 100%;
}
.popup-alt {
  margin-top: 14px;
  padding-top: 14px;
  font-size: 13.5px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.popup-alt a {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 600px) {
  /* на телефоне окно — лист снизу экрана */
  .popup {
    width: 100%;
    max-width: 100%;
    max-height: 92%;
    margin: auto 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .popup-box {
    padding: 26px 20px 20px;
  }
  .popup-title {
    font-size: 23px;
  }
}

/* ---------- Мелкие общие элементы ---------- */
.section.flush-top {
  padding-top: 0;
}
.faq {
  max-width: 880px;
}
.legal-head,
.legal-body {
  max-width: 900px;
}
.note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}
.panel-title {
  margin-bottom: 24px;
  font-size: 22px;
}
.steps h4 {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.cards + .cta-band,
.steps + .cta-band {
  margin-top: 40px;
}
.callbar .btn svg {
  width: 18px;
  height: 18px;
}
.callbar .btn-outline svg {
  color: #29a9eb;
}
/* прейскурант на страницах направлений */
.price-panel {
  max-width: 880px;
  padding: 8px 28px 12px;
}
.price-table .unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.price-note {
  max-width: 880px;
  font-size: 13.5px;
  line-height: 1.6;
}
.price-note + .cta-band {
  margin-top: 40px;
}
@media (max-width: 600px) {
  .price-panel {
    padding: 4px 18px 10px;
  }
}

/* ---------- Направления на главной: список с ценами ---------- */
.dir-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--line);
}
.dir-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.dir-row-name {
  flex: 1;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.dir-row-price {
  max-width: 45%;
  font-size: 14.5px;
  line-height: 1.4;
  text-align: right;
  color: var(--gold-ink);
}
.dir-row svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform 0.2s;
}
@media (max-width: 800px) {
  .dir-rows {
    grid-template-columns: 1fr;
  }
  .dir-row-name {
    font-size: 17.5px;
  }
}

/* ---------- Услуги и цены ---------- */
.svc-list {
  display: grid;
  gap: 16px;
}
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: center;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.svc-info h2 {
  font-size: 23px;
}
.svc-info p {
  max-width: 720px;
  margin-top: 8px;
  font-size: 15.5px;
}
.svc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.svc-price {
  max-width: 280px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  color: var(--gold-ink);
}
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.svc-prices {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.svc-prices summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.svc-prices summary::-webkit-details-marker {
  display: none;
}
.svc-prices summary::after {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 17px;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 50%;
}
.svc-prices[open] summary::after {
  content: "–";
}
.price-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 15px;
}
.price-table th,
.price-table td {
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-weight: 400;
  color: var(--text);
}
.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}
.price-table td {
  padding-left: 24px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  color: var(--gold-ink);
}
.price-table small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}
@media (max-width: 760px) {
  .svc-row {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .svc-info h2 {
    font-size: 21px;
  }
  .svc-side {
    align-items: flex-start;
  }
  .svc-price {
    max-width: none;
    text-align: left;
  }
  .svc-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .svc-actions .btn {
    flex: 1 1 auto;
  }
  .price-table td {
    white-space: normal;
  }
}

/* ---------- О кабинете ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
/* первый экран «О кабинете» лежит в .page-head, где контейнер — колонка; здесь нужна сетка */
.page-head .about-grid {
  display: grid;
  align-items: center;
  gap: 56px;
}
.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.about-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--tint);
  border-radius: 28px;
  box-shadow: var(--shadow-2);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}
.person-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--tint);
  border-radius: 28px;
  box-shadow: var(--shadow-1);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.person-quote {
  padding: 18px 22px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--tint);
  border-radius: var(--r);
}
@media (max-width: 900px) {
  .about-grid,
  .page-head .about-grid,
  .person {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo {
    max-width: 460px;
  }
  .person-photo {
    max-width: 380px;
  }
}

/* ---------- Документы: факты и реквизиты ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.fact b {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}
.fact span {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .facts {
    gap: 10px;
  }
  .fact {
    padding: 18px 16px;
  }
  .fact b {
    font-size: 24px;
  }
}
.req-list > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.req-list > div:last-child {
  border-bottom: 0;
}
.req-list dt {
  color: var(--muted);
}
.req-list dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .req-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Видео и отзывы: две колонки ---------- */
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}
.video-grid .section-head {
  margin-bottom: 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.reviews-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 960px) {
  .video-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Контакты: как нас найти ---------- */
.find-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}
.find-grid .map-card iframe {
  height: 100%;
  min-height: 420px;
}
.info-list {
  list-style: none;
  display: grid;
  gap: 18px;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
}
.info-list .ic-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.info-list .ic-box svg {
  width: 20px;
  height: 20px;
}
.info-list b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.info-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .find-grid {
    grid-template-columns: 1fr;
  }
  .find-grid .map-card iframe {
    min-height: 320px;
  }
}

/* ---------- Наведение — только там, где есть курсор ---------- */
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--night);
    box-shadow: 0 10px 24px rgba(27, 42, 71, 0.24);
  }
  .btn-gold:hover {
    background: var(--gold-light);
  }
  .btn-outline:hover {
    border-color: var(--gold);
  }
  .btn-light:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .nav a:hover {
    background: var(--gold-soft);
    color: var(--gold-ink);
  }
  .top-phone:hover b,
  .hero-phone:hover,
  .crumbs a:hover {
    color: var(--gold-ink);
  }
  .tile:hover,
  .doc:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
  }
  a.chip:hover {
    border-color: var(--gold);
    color: var(--gold-ink);
  }
  .msg:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-light);
  }
  .social:hover {
    opacity: 0.85;
  }
  .foot a:hover {
    color: var(--gold-light);
  }
  .msg-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(18, 29, 51, 0.32);
  }
  .popup-close:hover {
    color: var(--ink);
  }
  .link-arrow:hover {
    color: var(--gold-ink);
  }
  .dir-row:hover .dir-row-name,
  .svc-info h2 a:hover,
  .info-list a:hover {
    color: var(--gold-ink);
  }
  .dir-row:hover svg {
    transform: translateX(3px);
  }
}

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

/* ---------- Печать: юридические страницы часто распечатывают ---------- */
@media print {
  .top,
  .callbar,
  .cookie,
  .msg-float,
  .skip-link,
  .contact,
  .foot,
  .map-card,
  .map-sec,
  .popup {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    padding-bottom: 0;
  }
  .legal-body {
    padding: 0;
    border: 0;
  }
  .legal-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}
