/* ==========================================================================
   Олеся Сокол — юрист по интеллектуальной собственности
   Общие стили сайта: главная страница и поиск по МКТУ
   Палитра: тёмный шоколад, золото, бордо на сливочной основе
   ========================================================================== */

/* --- Шрифты (лежат в assets/fonts, интернет не нужен) --------------------- */
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/serif-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Noto Serif Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/serif-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/serif-cyr-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Noto Serif Display';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/serif-lat-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Ysabeau Office';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('../fonts/text-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ysabeau Office';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('../fonts/text-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Знак тенге: в основных шрифтах его нет, поэтому он лежит отдельно */
@font-face {
  font-family: 'Tenge';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/tenge-serif.woff2') format('woff2');
  unicode-range: U+20B8;
}

/* --- Палитра и размеры ---------------------------------------------------- */
:root {
  --ivory: #F6EFE6;       /* основной светлый фон */
  --paper: #FCF8F2;       /* карточки и светлые секции */
  --linen: #EEE4D6;       /* спокойные секции */
  --sand: #E2D3BF;        /* линии на светлом */
  --sand-deep: #CDB89C;   /* рамки, пунктир */

  --choco: #2B1A1B;       /* тёмный шоколад: тёмные секции и основной текст */
  --choco-2: #3A2426;
  --choco-deep: #1C1112;  /* подвал */

  --wine: #7A1F33;        /* бордо: акцент на светлом */
  --wine-deep: #5A1626;
  --gold: #C9A46A;        /* золото: акцент на тёмном */
  --gold-soft: #E3C795;
  --gold-line: rgba(201, 164, 106, .38);

  --text-dark: #F3E8DC;   /* текст на тёмном */
  --muted-dark: #BFAE9F;  /* второстепенный текст на тёмном */
  --taupe: #6B5A54;       /* второстепенный текст на светлом */

  --serif: 'Noto Serif Display', 'Tenge', 'Times New Roman', Georgia, serif;
  --sans: 'Ysabeau Office', 'Tenge', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1260px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --section: clamp(84px, 10vw, 148px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--choco);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.62;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Лёгкая фактура бумаги поверх всей страницы */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .head :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

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

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

/* Тёмные секции */
.dark { background-color: var(--choco); color: var(--text-dark); }

/* --- Типографика ---------------------------------------------------------- */
.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.dark .title { color: #FBF4EA; }

/* Тонкая золотая линия под заголовками разделов */
.split__aside .title::after,
.sec__head .title::after,
.mktu__text .title::after {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 26px;
  background: var(--gold);
}

.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--taupe);
  max-width: 34em;
}
.dark .lead { color: var(--muted-dark); }

/* Сноска со ссылкой на норму закона */
.cite {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--taupe);
}
.cite::before {
  content: '§';
  flex: none;
  font-style: normal;
  font-weight: 600;
  color: var(--wine);
}
.dark .cite { color: var(--muted-dark); }
.dark .cite::before { color: var(--gold); }

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border: 1.5px solid var(--choco);
  border-radius: 999px;
  background: var(--choco);
  color: #FBF4EA;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: #FFFFFF; }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--ghost { background: transparent; color: var(--choco); }
.btn--ghost:hover { background: var(--choco); border-color: var(--choco); color: #FBF4EA; }

.dark .btn, .head .btn, .btn--gold { background: var(--gold); border-color: var(--gold); color: var(--choco); }
.dark .btn:hover, .head .btn:hover, .btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--choco); }
.dark .btn--ghost { background: transparent; border-color: rgba(243, 232, 220, .45); color: var(--text-dark); }
.dark .btn--ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold-soft); }

.btn--small { min-height: 46px; padding: 10px 22px; font-size: 16px; }

.textlink {
  font-weight: 700;
  color: var(--choco);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
.textlink:hover { color: var(--wine); }
.dark .textlink { color: var(--text-dark); }
.dark .textlink:hover { color: var(--gold-soft); }

/* --- Шапка ---------------------------------------------------------------- */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 17, 18, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  color: var(--text-dark);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #FBF4EA;
  text-decoration: none;
}
.brand:hover { color: #FBF4EA; }
.brand__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.brand__role {
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--muted-dark);
  letter-spacing: .015em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 520;
  letter-spacing: .015em;
  color: #E8DCCD;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-soft); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.head__actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
}
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1240px) {
  .nav { gap: 22px; }
  .nav__link { font-size: 16px; }
}
@media (max-width: 1100px) {
  .head__wa-text { display: none; }
  .head__wa { width: 46px; min-height: 46px; padding: 0; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--choco-deep);
    border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6);
  }
  .nav.is-open { display: flex; }
  .nav__link {
    padding: 15px 0;
    border-top: 1px solid rgba(201, 164, 106, .2);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .nav__link:first-child { border-top: 0; }
  .nav__link::after { display: none; }
}
/* Быстрые ссылки под шапкой: видны на телефоне и планшете, где основное меню спрятано в кнопку */
.quicknav { display: none; }
@media (max-width: 960px) {
  .quicknav { display: block; border-top: 1px solid rgba(201, 164, 106, .16); }
  .quicknav__in {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .quicknav__in::-webkit-scrollbar { display: none; }
  .quicknav a {
    flex: none;
    padding: 10px 0 11px;
    font-size: 15.5px;
    font-weight: 560;
    letter-spacing: .015em;
    color: #E8DCCD;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
  }
  .quicknav a:hover, .quicknav a[aria-current="page"] { color: var(--gold-soft); border-bottom-color: var(--gold); }
}
@media (max-width: 480px) {
  .quicknav__in { gap: 22px; }
  .quicknav a[href$="#about"] { display: none; }
}
@media (max-width: 360px) {
  .quicknav a[href$="#faq"] { display: none; }
}
@media (max-width: 560px) {
  .head__in { min-height: 66px; gap: 12px; }
  .brand { min-width: 0; }
  .brand__name { font-size: 23px; }
  .brand__role { font-size: 12px; }
  .head__wa-text { display: none; }
  .head__wa { width: 46px; min-height: 46px; padding: 0; }
}
@media (max-width: 400px) {
  .brand__role { white-space: normal; max-width: 15em; }
}

/* --- Первый экран --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 760px at 78% 46%, #4A2A2C 0%, #2B1A1B 56%, #1C1112 100%);
  color: var(--text-dark);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  min-height: min(860px, calc(100vh - 78px));
}
.hero__text {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(48px, 6vw, 84px) 0;
}
.hero__eyebrow {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--gold);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: #FBF4EA;
  text-wrap: balance;
}
.hero__title em { display: block; font-style: italic; font-weight: 400; color: var(--gold-soft); }
.hero__lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted-dark); max-width: 31em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 32px;
  align-items: center;
  max-width: 640px;
  margin-top: 10px;
  padding: 24px 30px;
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  background: rgba(28, 17, 18, .55);
}
.hcard__price { display: flex; flex-direction: column; gap: 8px; }
.hcard__price span {
  font-family: var(--serif);
  font-size: clamp(38px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-soft);
  white-space: nowrap;
}
.hcard__price small { font-size: 15px; line-height: 1.35; color: var(--muted-dark); max-width: 12em; }
.hcard__list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 16.5px;
  line-height: 1.4;
  color: #EFE3D6;
}
.hcard__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__photo {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  height: 100%;
  min-height: 560px;
}
.hero__photo::before,
.hero__photo::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -54%);
  pointer-events: none;
}
.hero__photo::before {
  width: clamp(400px, 42vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 164, 106, .5);
  background: radial-gradient(circle, rgba(122, 31, 51, .9) 0%, rgba(122, 31, 51, 0) 68%);
}
.hero__photo::after {
  width: clamp(460px, 48vw, 710px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 164, 106, .18);
}
.hero__img {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: auto;
  height: clamp(560px, 58vw, 820px);
  max-width: none;
  margin-bottom: -2px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
}

@media (max-width: 1100px) {
  .hcard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
  .hero__text { display: contents; }
  .hero__eyebrow { order: 1; }
  .hero__title { order: 2; }
  .hero__lead { order: 3; }
  .hero__ctas { order: 4; }
  .hero__photo { order: 5; min-height: 0; height: 440px; overflow: hidden; margin: 0 calc(-1 * var(--gutter)) -8px; }
  .hcard { order: 6; margin-top: 0; }
  .hero__photo::before { width: 380px; transform: translate(-50%, -42%); }
  .hero__photo::after { width: 450px; transform: translate(-50%, -44%); }
  .hero__img { height: 760px; align-self: flex-start; }
  .hero__photo { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
}
@media (max-width: 520px) {
  .hero__ctas .btn { width: 100%; }
  .hcard { padding: 20px 22px; }
  .hero__photo { height: 400px; }
  .hero__img { height: 680px; }
}

/* Появление первого экрана: один раз при загрузке */
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rise--2 { animation-delay: .08s; }
.rise--3 { animation-delay: .16s; }
.rise--4 { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* --- Секции --------------------------------------------------------------- */
.sec { padding: var(--section) 0; }
.sec--cream { background: var(--paper); }
.sec--butter { background: var(--linen); }
.sec--flush { padding-top: 0; }
.sec__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 5vw, 68px); }

/* Две колонки: заголовок слева, содержание справа */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}
.split__aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.split__aside .title { font-size: clamp(32px, 3.5vw, 50px); }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }
}

/* --- Почему регистрировать ------------------------------------------------ */
.theses { border-top: 1px solid var(--choco); }
.thesis {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--sand);
}
.thesis__title {
  font-family: var(--serif);
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.thesis__text { max-width: 38em; }

/* --- Консультация --------------------------------------------------------- */
.offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5.5vw, 80px);
  border-radius: 36px;
  background: radial-gradient(700px 500px at 0% 0%, #4A2A2C 0%, rgba(43, 26, 27, 0) 70%), var(--choco);
  color: var(--text-dark);
  overflow: hidden;
}
.offer::before {
  content: '®';
  position: absolute;
  right: -50px;
  top: -170px;
  font-family: var(--serif);
  font-size: 580px;
  line-height: 1;
  color: rgba(201, 164, 106, .07);
  pointer-events: none;
}
.offer__text { position: relative; display: flex; flex-direction: column; gap: 22px; }
.offer__title { color: #FBF4EA; }
.offer__lead { font-size: 19px; color: var(--muted-dark); max-width: 30em; }
.offer__list { display: flex; flex-direction: column; border-top: 1px solid var(--gold-line); }
.offer__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-line);
  font-size: 18px;
  font-weight: 520;
}
.offer__list li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

/* Талон с ценой */
.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 22px;
  background: var(--paper);
  color: var(--choco);
}
.ticket::before, .ticket::after {
  content: '';
  position: absolute;
  top: 132px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--choco);
}
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }
.ticket__label { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--taupe); }
.ticket__price {
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--wine);
  white-space: nowrap;
}
.ticket__rule { height: 0; margin: 14px 0 6px; border-top: 1.5px dashed var(--sand-deep); }
.ticket__note { font-size: 16.5px; line-height: 1.55; }
.ticket .btn { width: 100%; margin-top: 6px; background: var(--choco); border-color: var(--choco); color: #FBF4EA; }
.ticket .btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: #FFFFFF; }

@media (max-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1fr); border-radius: 28px; }
  .offer::before { font-size: 380px; top: -90px; right: -70px; }
}

/* --- Услуги и цены: прейскурант ------------------------------------------- */
.ledger { border-top: 1px solid var(--choco); }
.ledger__row { padding: clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--sand); }
.ledger__row:last-child { border-bottom: 1px solid var(--choco); }
.ledger__top {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(28px, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
}
.ledger__name {
  font-family: var(--serif);
  font-size: clamp(23px, 2.15vw, 29px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.ledger__dots { border-bottom: 1.5px dotted var(--sand-deep); transform: translateY(-6px); }
.ledger__price {
  font-family: var(--serif);
  font-size: clamp(23px, 2.15vw, 29px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wine);
  white-space: nowrap;
}
.ledger__body { display: flex; flex-direction: column; gap: 10px; max-width: 44em; margin-top: 12px; }
.ledger__small { font-size: 16px; line-height: 1.55; color: var(--taupe); }
@media (max-width: 640px) {
  .ledger__top { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .ledger__dots { display: none; }
}

/* --- Как работаем ---------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  counter-reset: step;
}
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 28px; counter-increment: step; }
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: calc(-1 * clamp(20px, 3vw, 44px));
  border-top: 1px solid var(--sand-deep);
}
.step:last-child::before { right: 0; }
.step::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ivory);
}
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 7vw, 100px);
  font-weight: 400;
  line-height: .9;
  color: var(--wine);
}
.step__num::before { content: counter(step); }
.step__title { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.step__text { font-size: 17px; color: var(--taupe); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) and (min-width: 901px) {
  .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 6px;
    padding: 0 0 30px 0;
  }
  .step::before, .step::after { display: none; }
  .step__num { grid-row: 1 / span 2; font-size: 64px; }
  .step__title { align-self: end; padding-top: 6px; }
  .step:last-child { padding-bottom: 0; }
}

/* --- Поиск по МКТУ: анонс на главной (тёмная секция) ---------------------- */
.mktu {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.mktu__text { display: flex; flex-direction: column; gap: 22px; }

.classes {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(4px, .7vw, 8px);
}
.classes__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid var(--sand-deep);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1;
  color: var(--taupe);
}
.classes__cell--on { background: var(--wine); border-color: var(--wine); color: #FFFFFF; font-weight: 600; }
.dark .classes__cell { border-color: var(--gold-line); color: var(--muted-dark); }
.dark .classes__cell--on { background: var(--gold); border-color: var(--gold); color: var(--choco); }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.examples__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--choco);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.examples__item b { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--wine); }
.examples__item:hover { border-color: var(--wine); color: var(--choco); }
.dark .examples__item { background: rgba(255, 255, 255, .03); border-color: var(--gold-line); color: var(--text-dark); }
.dark .examples__item b { color: var(--gold); }
.dark .examples__item:hover { border-color: var(--gold); color: #FFFFFF; }
@media (max-width: 900px) {
  .mktu { grid-template-columns: minmax(0, 1fr); }
}

/* Поле с кнопкой (поиск МКТУ, название для WhatsApp) */
.ask { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.ask__label { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.ask__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ask__row:focus-within { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(122, 31, 51, .12); }
.ask__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 0 8px 0 20px;
  border: 0;
  background: transparent;
  color: var(--choco);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  outline: none;
}
.ask__input::placeholder { color: #8A7A74; font-weight: 400; }
.ask__input::-webkit-search-cancel-button,
.ask__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.ask__btn { flex: none; min-height: 50px; padding: 12px 24px; }
.ask__hint { font-size: 15px; line-height: 1.5; color: var(--taupe); }

.dark .ask__label { color: var(--text-dark); }
.dark .ask__row { background: rgba(255, 255, 255, .05); border-color: var(--gold-line); }
.dark .ask__row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 106, .18); }
.dark .ask__input { color: #FBF4EA; }
.dark .ask__input::placeholder { color: #9E8D80; }
.dark .ask__hint { color: var(--muted-dark); }
@media (max-width: 520px) {
  .ask__row { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 26px; }
  .ask__input { height: 52px; padding: 0 16px; }
  .ask__btn { width: 100%; min-height: 54px; }
}

/* --- Обо мне --------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: center;
}
.about__photo { position: relative; width: 100%; max-width: 470px; }
.about__photo::before {
  content: '';
  position: absolute;
  inset: 20px 18px -20px -18px;
  border: 1px solid var(--gold);
  border-radius: 240px 240px 28px 28px;
}
.about__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 240px 240px 28px 28px;
  background: var(--linen);
}
.about__text { display: flex; flex-direction: column; gap: 22px; }
.quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--wine);
  text-wrap: balance;
}
.about__p { max-width: 36em; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--choco);
  border-bottom: 1px solid var(--sand);
  margin-top: 4px;
}
.facts__item {
  padding: 18px 20px 18px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.45vw, 20px);
  font-style: italic;
  line-height: 1.3;
}
.facts__item + .facts__item { padding-left: 20px; border-left: 1px solid var(--sand); }

.socials { display: flex; flex-direction: column; border-top: 1px solid var(--sand); }
.socials__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
  color: var(--choco);
  text-decoration: none;
}
.socials__row span:first-child { font-size: 16px; color: var(--taupe); }
.socials__row span:last-child { font-weight: 700; }
.socials__row:hover span:last-child { color: var(--wine); }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 380px; width: calc(100% - 20px); margin-left: 18px; }
  .about__photo::before, .about__img { border-radius: 180px 180px 24px 24px; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts__item { padding: 14px 0; }
  .facts__item + .facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--sand); }
}
@media (max-width: 420px) {
  .socials__row { flex-direction: column; gap: 2px; }
}

/* --- Вопросы -------------------------------------------------------------- */
.faq { border-top: 1px solid var(--choco); }
.faq__item { border-bottom: 1px solid var(--sand); }
.faq__item:last-child { border-bottom: 1px solid var(--choco); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--wine); }
.faq__plus {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: background-color .25s ease, border-color .25s ease, transform .3s ease;
}
.faq__plus::before, .faq__plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--choco);
  transform: translate(-50%, -50%);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--choco); border-color: var(--choco); transform: rotate(45deg); }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: var(--gold); }
.faq__a { display: flex; flex-direction: column; gap: 12px; max-width: 42em; padding: 0 0 30px; }

/* --- Финальный призыв (тёмный) -------------------------------------------- */
.final {
  position: relative;
  padding: var(--section) 0;
  background: radial-gradient(900px 600px at 85% 100%, #4A2A2C 0%, rgba(43, 26, 27, 0) 70%), var(--choco);
  overflow: hidden;
}
.final::before {
  content: '®';
  position: absolute;
  right: -2vw;
  bottom: -20vw;
  font-family: var(--serif);
  font-size: 56vw;
  line-height: 1;
  color: rgba(201, 164, 106, .06);
  pointer-events: none;
}
.final__in { position: relative; display: flex; flex-direction: column; gap: 30px; max-width: 920px; }
.final__title { font-size: clamp(38px, 6vw, 82px); line-height: 1; }
.final__phone { font-size: 17px; color: var(--muted-dark); }
.final__phone a { font-weight: 700; color: #FBF4EA; white-space: nowrap; }
.final__phone a:hover { color: var(--gold-soft); }

/* --- Подвал ---------------------------------------------------------------- */
.foot { background: var(--choco-deep); color: var(--muted-dark); padding: 64px 0 44px; border-top: 1px solid var(--gold-line); }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 44px;
}
.foot__name { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.1; color: #FBF4EA; }
.foot__role { margin-top: 10px; font-size: 16px; max-width: 24em; }
.foot__h { margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--gold); }
.foot__list { display: flex; flex-direction: column; }
.foot__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #DCCFC4;
  font-size: 16.5px;
  text-decoration: none;
}
.foot__list a:hover { color: var(--gold-soft); text-decoration: underline; }
.foot__seo { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(201, 164, 106, .2); font-size: 15px; line-height: 1.6; max-width: 60em; }
.foot__copy { margin-top: 14px; font-size: 14px; color: #9E8D80; }
@media (max-width: 1100px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .foot { padding-bottom: 104px; }
}

/* --- Кнопка WhatsApp, закреплённая внизу на телефоне ------------------------ */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(28, 17, 18, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-line);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.dock.is-on { transform: none; }
.dock .btn { width: 100%; min-height: 52px; background: var(--gold); border-color: var(--gold); color: var(--choco); }
@media (max-width: 800px) {
  .dock { display: block; }
}

/* ==========================================================================
   Тест «Можно ли зарегистрировать ваше название?»
   ========================================================================== */
.quiz {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: clamp(26px, 3.6vw, 50px);
  border: 1px solid var(--sand);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 80px -50px rgba(43, 26, 27, .35);
  overflow: hidden;
}
.quiz__bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sand); }
.quiz__fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); transition: width .35s ease; }
.quiz__step { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; }
.quiz__step[hidden] { display: none; }
.quiz__count { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--wine); }
.quiz__q {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.014em;
  text-wrap: balance;
  outline: none;
}
.quiz__ex { font-size: 17.5px; color: var(--taupe); max-width: 36em; }
.quiz__input {
  width: 100%;
  height: 62px;
  margin-top: 6px;
  padding: 0 26px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--choco);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.quiz__input::placeholder { color: #8A7A74; font-weight: 400; }
.quiz__input:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(122, 31, 51, .12); }
.quiz__go { align-self: flex-start; margin-top: 6px; }
.quiz__answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 14px; }
.quiz__a {
  min-height: 64px;
  padding: 12px 10px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--choco);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
@media (hover: hover) {
  .quiz__a:hover { border-color: var(--choco); }
}
.quiz__a.is-picked { background: var(--choco); border-color: var(--choco); color: var(--gold-soft); }
.quiz__back {
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--taupe);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.quiz__back:hover { color: var(--wine); }
.quiz__list { border-top: 1px solid var(--choco); margin-top: 6px; }
.quiz__list[hidden] { display: none; }
.quiz__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--sand); font-size: 17px; }
.quiz__item b { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; }
.quiz__item--urgent b { color: var(--wine); }
.quiz__item .cite { font-size: 15px; }
.quiz__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 8px; }
.quiz__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--sand); font-size: 14.5px; line-height: 1.5; color: var(--taupe); }
@media (max-width: 520px) {
  .quiz { min-height: 460px; border-radius: 24px; }
  .quiz__go, .quiz__cta .btn { width: 100%; }
  .quiz__a { min-height: 60px; font-size: 17px; }
}
@media (max-width: 350px) {
  .quiz__answers { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Блок «Что защитить в вашем бизнесе»
   ========================================================================== */
.spheres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.spheres__btn {
  min-height: 50px;
  padding: 10px 22px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--choco);
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
@media (hover: hover) {
  .spheres__btn:hover { border-color: var(--choco); }
}
.spheres__btn.is-on { background: var(--choco); border-color: var(--choco); color: var(--gold-soft); }

.protect { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 68px); }
.protect__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.asset { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--choco); }
.asset__kind { font-size: 15px; font-weight: 750; letter-spacing: .02em; color: var(--wine); }
.asset__title { font-family: var(--serif); font-size: clamp(25px, 2.4vw, 31px); font-weight: 500; line-height: 1.14; letter-spacing: -0.012em; }
.asset__text { font-size: 17px; }

.pdn {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: 32px;
  background: var(--linen);
}
.pdn__title { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -0.018em; }
.pdn__lead { font-size: 18px; max-width: 34em; }
.pdn__data { display: flex; flex-wrap: wrap; gap: 8px; }
.pdn__data li { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--sand); font-size: 16px; font-weight: 600; line-height: 1.4; }

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.versus__col { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); border-radius: 22px; }
.versus__col--risk { background: var(--choco); color: #F1E6DE; }
.versus__col--good { background: var(--paper); color: var(--choco); }
.versus__h { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.1; }
.versus__col--risk .versus__h { color: #FBF4EA; }
.versus__col--good .versus__h { color: var(--wine); }
.versus__list li {
  position: relative;
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--sand);
  font-size: 16.5px;
  line-height: 1.5;
}
.versus__col--risk .versus__list li { border-bottom-color: rgba(201, 164, 106, .2); }
.versus__list li:last-child { border-bottom: 0; }
.versus__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
}
.versus__col--risk .versus__list li::before {
  background-color: rgba(201, 164, 106, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' stroke='%23E3C795' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.versus__col--good .versus__list li::before {
  background-color: var(--wine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.versus__list b { font-weight: 750; }
.versus__col--risk .versus__list b { color: #FFFFFF; }
.versus__list .cite { margin-top: 6px; font-size: 14.5px; }
.versus__col--risk .cite { color: #CDBDB0; }
.versus__col--risk .cite::before { color: var(--gold); }

.fines { padding: clamp(22px, 2.6vw, 34px); border-radius: 22px; background: var(--choco); color: #F1E6DE; }
.fines__h { font-family: var(--serif); font-size: clamp(25px, 2.4vw, 31px); font-weight: 500; line-height: 1.15; color: #FBF4EA; }
.fines__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin: 16px 0 18px; }
.fines__list li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.fines__sum { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; line-height: 1; color: var(--gold-soft); white-space: nowrap; }
.fines__what { font-size: 16px; line-height: 1.45; }
.fines__what i { display: block; margin-top: 6px; font-style: normal; font-size: 14.5px; color: #CDBDB0; }
.fines .cite { font-size: 14.5px; color: #CDBDB0; }
.fines .cite::before { color: var(--gold); }

.pdn__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding-top: 14px; }
.pdn__offer { font-family: var(--serif); font-size: clamp(23px, 2.4vw, 31px); font-weight: 500; line-height: 1.2; max-width: 24em; }

@media (max-width: 900px) {
  .fines__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 760px) {
  .versus { grid-template-columns: minmax(0, 1fr); }
  .protect__side { grid-template-columns: minmax(0, 1fr); }
  .pdn { border-radius: 26px; margin-left: -8px; margin-right: -8px; }
  .spheres__btn { min-height: 46px; padding: 9px 16px; font-size: 16px; }
  .pdn__cta { grid-template-columns: minmax(0, 1fr); }
  .pdn__cta .btn { width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 560px) {
  .fines__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .fines__list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 14px 0; }
  .fines__sum { font-size: 28px; }
}

/* ==========================================================================
   Страница «Поиск по МКТУ»
   ========================================================================== */
.tool-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 7vw, 100px);
  background: radial-gradient(900px 520px at 90% 0%, #4A2A2C 0%, rgba(43, 26, 27, 0) 70%), var(--choco);
}
.tool-hero::before {
  content: '45';
  position: absolute;
  right: 4vw;
  bottom: -9vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30vw;
  line-height: 1;
  color: rgba(201, 164, 106, .07);
  pointer-events: none;
}
.tool-hero__in { position: relative; max-width: 900px; }
.tool__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 7vw, 96px);
  line-height: .98;
  letter-spacing: -0.024em;
  color: #FBF4EA;
}
.tool__lead { margin-top: 24px; }

.tool { padding: 0 0 var(--section); }
.tool__in { max-width: 900px; }

.search { position: relative; margin-top: -38px; z-index: 2; }
.search__icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wine);
  pointer-events: none;
}
.search__input {
  display: block;
  width: 100%;
  height: 76px;
  padding: 0 70px 0 68px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--choco);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 550;
  outline: none;
  box-shadow: 0 30px 60px -36px rgba(28, 17, 18, .5);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search__input::placeholder { color: #8A7A74; font-weight: 400; }
.search__input:hover { border-color: var(--taupe); }
.search__input:focus { border-color: var(--wine); box-shadow: 0 0 0 5px rgba(122, 31, 51, .12), 0 30px 60px -36px rgba(28, 17, 18, .5); }
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--taupe);
  cursor: pointer;
}
.search__clear:hover { background: var(--linen); color: var(--wine); }
.search__clear[hidden] { display: none; }

.status { min-height: 26px; margin: 20px 6px 0; font-size: 16px; color: var(--taupe); }
.status strong { color: var(--choco); font-weight: 800; }

.results { margin-top: 18px; border-top: 1px solid var(--choco); }
.results[hidden] { display: none; }
.result {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand);
}
.result__class { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.result__num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--wine);
}
.result__label { font-size: 13.5px; font-weight: 600; color: var(--taupe); }
.result__name { font-size: 18px; line-height: 1.45; color: var(--choco); overflow-wrap: anywhere; }
.result__name mark {
  background: #F1DCC0;
  color: var(--choco);
  font-weight: 750;
  border-radius: 4px;
  padding: 1px 2px;
  margin: 0 -2px;
}

.more { display: flex; justify-content: center; margin-top: 26px; }
.more[hidden] { display: none; }

.empty {
  margin-top: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--sand);
  border-radius: 24px;
  background: var(--paper);
}
.empty[hidden] { display: none; }
.empty__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.empty__text { margin-top: 10px; font-size: 17px; color: var(--taupe); max-width: 40em; }

.notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 24px 26px;
  border: 1px solid var(--sand);
  border-radius: 24px;
  background: var(--linen);
  color: #4A3A35;
  font-size: 16px;
  line-height: 1.6;
}
.notice__icon { color: var(--wine); margin-top: 1px; }

.noscript { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--sand); border-radius: 20px; background: var(--paper); }

/* Приглашение на консультацию под поиском */
.helpcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: 26px;
  background: radial-gradient(500px 300px at 0% 0%, #4A2A2C 0%, rgba(43, 26, 27, 0) 70%), var(--choco);
  color: var(--text-dark);
}
.helpcard__title { font-family: var(--serif); font-size: clamp(25px, 2.8vw, 35px); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; color: #FBF4EA; }
.helpcard__text { margin-top: 8px; font-size: 17px; color: var(--muted-dark); max-width: 34em; }

@media (max-width: 640px) {
  .search { margin-top: -31px; }
  .search__icon { left: 20px; }
  .search__input { height: 62px; padding: 0 58px 0 54px; font-size: 18px; }
  .search__clear { right: 8px; }
  .result { grid-template-columns: 62px minmax(0, 1fr); column-gap: 14px; padding: 15px 0; }
  .result__class { flex-direction: column; align-items: flex-start; gap: 4px; }
  .result__num { font-size: 34px; }
  .result__label { font-size: 12.5px; }
  .result__name { font-size: 17px; }
  .notice { padding: 18px; border-radius: 20px; font-size: 15px; column-gap: 12px; }
  .more .btn { width: 100%; }
  .helpcard { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .helpcard .btn { width: 100%; }
}

/* --- Меньше движения, если так настроено устройство ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Подсказки в поиске по МКТУ ------------------------------------------ */
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  max-height: min(430px, 60vh);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(28, 17, 18, .55);
  text-align: left;
}
.suggest[hidden] { display: none; }
.suggest__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 16px;
  border-radius: 14px;
  color: var(--choco);
  cursor: pointer;
}
.suggest__item.is-active { background: var(--linen); }
.suggest__name { font-size: 17.5px; line-height: 1.35; font-weight: 450; }
.suggest__name mark { background: none; color: var(--choco); font-weight: 750; }
.suggest__cls {
  flex: none;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--wine);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .suggest { border-radius: 18px; padding: 6px; }
  .suggest__item { padding: 10px 12px; gap: 12px; }
  .suggest__name { font-size: 16.5px; }
  .suggest__cls { font-size: 15px; }
}

/* --- Страницы услуг --------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 7vw, 104px);
  background: radial-gradient(900px 520px at 90% 0%, #4A2A2C 0%, rgba(43, 26, 27, 0) 70%), var(--choco);
}
.page-hero::before {
  content: attr(data-mark);
  position: absolute;
  right: 3vw;
  bottom: -6vw;
  font-family: var(--serif);
  font-size: 34vw;
  line-height: 1;
  color: rgba(201, 164, 106, .07);
  pointer-events: none;
}
.page-hero__in { position: relative; display: flex; flex-direction: column; gap: 24px; }
.page-hero__title {
  max-width: 15em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #FBF4EA;
}
.page-hero__lead { max-width: 36em; }
.page-hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--muted-dark); font-size: 16px; }
.page-hero__price span { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); color: var(--gold-soft); line-height: 1.1; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 15px; color: var(--muted-dark); }
.crumbs a { color: var(--text-dark); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--gold-soft); text-decoration-color: var(--gold); }
.crumbs a::after { content: '/'; display: inline-block; margin: 0 10px; color: var(--gold); text-decoration: none; }

.related__h { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.1; margin-bottom: 28px; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px 26px;
  border: 1px solid var(--sand-deep);
  border-radius: 20px;
  background: var(--ivory);
  color: var(--choco);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.sec--cream .related__card { background: var(--paper); }
.related__card:hover { border-color: var(--wine); }
.related__name { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.related__text { font-size: 16px; color: var(--taupe); line-height: 1.5; }
@media (max-width: 900px) {
  .related__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .page-hero .hero__ctas .btn { width: 100%; }
}
@media (max-width: 360px) {
  .step__title { font-size: 21px; }
}
