/* ============================================================
   Дизайн-система axralov.uz — «Деловой журнал»
   1. Токены (цвета, шрифты, размеры) — меняются только здесь
   2. Основа страницы
   3. Шапка и подвал
   4. Типографика и кнопки
   5. Блоки страниц (цифры, нумерованные строки, путь, контакты)
   6. Страница инструмента (поля, результат, экспорт)
   7. Анимации и печать
============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  /* светлая тема (по умолчанию) */
  --bg: #F6F2EA;          /* тёплая бумага */
  --bg-2: #EDE6D8;        /* второй фон: плашки, поля */
  --text: #1A1A17;
  --text-2: #5E5A52;      /* вторичный текст */
  --line: #D9D2C3;        /* тонкие линии */
  --rule: #1A1A17;        /* главные линии-разделители */
  --accent: #1F4D3A;
  --on-accent: #FFFFFF;
  --negative: #9B2C1F;    /* «нет оснований», «убыток», ошибки */
  --warning: #7A4F00;     /* предупреждения */

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 40px;
  --pill: 999px;
  --header-h: 89px;       /* высота закреплённой шапки */
  --ease: cubic-bezier(.2, .6, .2, 1);

  /* прежние имена — на них ссылаются расчётные скрипты */
  --green: var(--accent);
  --muted: var(--text-2);
  --border: var(--line);
  --mono: var(--sans);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141412;
  --bg-2: #1C1B18;
  --text: #EDE8DE;
  --text-2: #A8A296;
  --line: #34322D;
  --rule: #EDE8DE;
  --accent: #7FB89A;
  --on-accent: #141412;
  --negative: #E59A88;
  --warning: #D9B36C;
  color-scheme: dark;
}

/* без JavaScript — системная тема */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #141412; --bg-2: #1C1B18; --text: #EDE8DE; --text-2: #A8A296;
    --line: #34322D; --rule: #EDE8DE; --accent: #7FB89A; --on-accent: #141412;
    --negative: #E59A88; --warning: #D9B36C;
    color-scheme: dark;
  }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
}
@media (max-width: 760px) {
  :root { --header-h: 73px; }
}

/* ---------- 2. Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px); /* якоря не прячутся под шапку */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--accent); color: var(--on-accent);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

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

/* ---------- 3. Шапка и подвал ---------- */
/* шапка закреплена сверху при прокрутке, как на прежнем сайте */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand {
  font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a { padding: 10px 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--text); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .site-header__inner { padding-top: 14px; padding-bottom: 14px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 var(--gutter) 12px; background: var(--bg);
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--text-2);
}

/* ---------- 4. Типографика и кнопки ---------- */
.eyebrow {
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.display {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(48px, 7vw, 96px);
}
.motto {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent);
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25;
}
.h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(36px, 4vw, 56px);
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; }
.muted { color: var(--text-2); }
.lead { color: var(--text-2); max-width: 560px; }
.accent { color: var(--accent); }
.italic { font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--pill);
  border: 1px solid transparent; background: transparent; color: var(--text);
  font: 500 16px/1.2 var(--sans); text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.btn svg { flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); opacity: .9; }
.btn-secondary { border-color: var(--text); color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 500; color: var(--accent);
}
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- 5. Блоки страниц ---------- */
.section { padding-top: 120px; padding-bottom: 40px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-bottom: 48px;
}
.section-head p { max-width: 420px; color: var(--text-2); }
@media (max-width: 720px) {
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 32px; }
}

/* первый экран */
.hero { padding-top: 96px; padding-bottom: 88px; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .motto { margin-top: 28px; }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
@media (max-width: 720px) { .hero { padding-top: 56px; padding-bottom: 64px; } }

/* четыре цифры между линиями */
.stats { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 44px 28px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat__value { font-family: var(--serif); font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.stat__label { margin-top: 12px; font-size: 15px; color: var(--text-2); }
@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat:nth-child(2n+1) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat__value { font-size: 38px; }
}

/* нумерованные строки (услуги) */
.rows { border-top: 1px solid var(--rule); }
.row-link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.row-link__num { flex: 0 0 56px; font-size: 14px; color: var(--text-2); }
.row-link__title { flex: 1 1 280px; font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.row-link__text { flex: 2 1 380px; color: var(--text-2); }
.row-link__icon { flex: none; align-self: center; transition: transform .2s var(--ease); }
a.row-link:hover .row-link__icon { transform: translate(3px, -3px); }
@media (max-width: 720px) {
  .row-link { gap: 8px 16px; padding: 24px 0; }
  .row-link__num { flex-basis: 100%; }
  .row-link__title { font-size: 26px; flex: 1 1 0; }
  .row-link__text { flex-basis: 100%; order: 3; }
}

/* список инструментов в две колонки */
.tool-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px;
  border-top: 1px solid var(--rule);
}
.tool-item { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tool-item__num { font-size: 14px; color: var(--text-2); min-width: 28px; padding-top: 4px; }
.tool-item__body { display: flex; flex-direction: column; gap: 6px; }
.tool-item__name { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.tool-item__desc { font-size: 15px; color: var(--text-2); }
.tool-item:hover .tool-item__name { color: var(--accent); }
.tool-item:hover .tool-item__desc { color: var(--text-2); }
@media (max-width: 760px) { .tool-list { grid-template-columns: 1fr; } }

.soon {
  margin-top: 32px; padding: 28px 32px; background: var(--bg-2);
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between;
}
.soon__tag { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.soon__name { font-family: var(--serif); font-size: 24px; }
.soon__head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline; }
.soon__text { color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) { .soon { padding: 24px 20px; } }

/* путь: точки по годам */
.path {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px;
  border-top: 1px solid var(--rule);
}
.path li { padding-top: 24px; position: relative; }
.path li::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule);
}
.path li.is-now::before { background: var(--accent); border-color: var(--accent); }
.path li.is-now { border-top: 3px solid var(--accent); margin-top: -2px; }
.path li.is-now::before { top: -6px; }
.path__year { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.path__org { margin-top: 6px; font-weight: 500; }
.path__role { font-size: 15px; color: var(--text-2); }
@media (max-width: 1000px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .path { grid-template-columns: 1fr; gap: 0; border-top: 0; border-left: 1px solid var(--rule); margin-left: 4px; }
  .path li { padding: 0 0 28px 24px; }
  .path li::before { top: 10px; left: -5px; }
  .path li.is-now { border-top: 0; margin-top: 0; }
  .path li.is-now::before { top: 10px; }
}

/* контакты */
.contact { padding-top: 140px; padding-bottom: 120px; }
.contact__title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(40px, 5.5vw, 76px); max-width: 900px;
}
.contact__title em { color: var(--accent); }
.contacts {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px;
  border-top: 1px solid var(--rule);
}
.contact-item { display: flex; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.contact-item svg { flex: none; }
.contact-item__body { display: flex; flex-direction: column; min-width: 0; }
.contact-item__label { font-size: 13px; color: var(--text-2); }
.contact-item__value { font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .contact { padding-top: 88px; padding-bottom: 80px; } .contact-item__value { font-size: 18px; } }

/* простая страница: заголовок + вступление */
.page-head { padding-top: 88px; padding-bottom: 56px; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-head .lead { margin-top: 24px; }
@media (max-width: 720px) { .page-head { padding-top: 56px; padding-bottom: 40px; } }

/* услуги: подробное описание */
.services { border-top: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 40px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.service__num { font-size: 14px; color: var(--text-2); padding-top: 10px; }
.service__name { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; }
.service__label { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 500; margin-bottom: 10px; }
.service__label + .service__list, .service__label + .service__result { margin-bottom: 24px; }
.service__list { margin: 0; padding-left: 18px; }
.service__list li + li { margin-top: 4px; }
.service__result { font-weight: 500; margin-bottom: 0 !important; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service__num { padding-top: 0; }
}

/* метки (навыки) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--pill); font-size: 15px;
}

/* ---------- 6. Страница инструмента ---------- */
.tool-page { padding-top: 40px; padding-bottom: 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--text-2); }
.breadcrumbs a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); }

.tool-head { padding: 40px 0 32px; }
.tool-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(40px, 5vw, 64px);
}
.tool-lead { margin-top: 16px; color: var(--text-2); max-width: 680px; }

/* «Как пользоваться» */
.howto { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.howto summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; cursor: pointer; list-style: none; font-weight: 500;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.howto[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.howto summary:hover { color: var(--accent); }
.howto__body { padding: 4px 0 28px; color: var(--text-2); font-size: 16px; max-width: 900px; }
.howto__body p + p, .howto__body p + .howto__cols, .howto__cols + p, .howto__cols + .formula, .formula + p { margin-top: 16px; }
.howto__body strong { color: var(--text); font-weight: 600; }
.howto__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.howto__cols h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.howto__cols ul { margin: 0; padding-left: 18px; }
.formula { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
@media (max-width: 720px) { .howto__cols { grid-template-columns: 1fr; } }

/* поля слева, результат справа */
.tool-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: start;
  padding-top: 16px;
}
.tool-form { min-width: 0; border-top: 1px solid var(--rule); padding-top: 28px; }
.tool-result {
  position: sticky; top: calc(var(--header-h) + 24px); min-width: 0;
  border-top: 1px solid var(--rule); padding-top: 28px;
}
@media (max-width: 980px) {
  .tool-layout { grid-template-columns: 1fr; gap: 48px; }
  .tool-result { position: static; }
}
.panel-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 20px; }
.result-empty { color: var(--text-2); }
.tool-result:has(.calc-result.active) .result-empty,
.tool-result:has([data-result][style*="block"]) .result-empty { display: none; }

/* поля ввода */
.field, .calc-group { margin-bottom: 24px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; }
.field-label, .calc-label {
  display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-2);
}
.calc-input, .field input[type="text"], .field input[type="number"], .field input[type="date"], .field select {
  display: block; width: 100%; min-height: 48px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--text);
  font: 400 17px/1.4 var(--sans);
  transition: border-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.calc-input:hover { border-bottom-color: var(--text-2); }
.calc-input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.calc-input::placeholder { color: var(--text-2); opacity: .75; }
select.calc-input, .currency-select {
  cursor: pointer; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select.calc-input option, .currency-select option { background: var(--bg); color: var(--text); }
input[type="date"].calc-input { min-width: 0; }
input[type="date"].calc-input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
:root[data-theme="dark"] input[type="date"].calc-input::-webkit-calendar-picker-indicator { filter: invert(1); }
.calc-input.input-error { border-bottom-color: var(--negative); box-shadow: 0 1px 0 0 var(--negative); }

.sum-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
.currency-select {
  min-height: 48px; padding: 10px 28px 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background-color: transparent; color: var(--text); font: 500 17px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none;
}
.currency-select:focus { outline: none; border-bottom-color: var(--accent); }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 44px; padding-top: 4px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.check__title { font-weight: 500; }
.check__hint { font-size: 14px; color: var(--text-2); }

.form-actions { margin-top: 8px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--text-2); }

/* переключатель режимов (две половины) */
.mode-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%;
  margin: 0 0 32px; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill);
  background: transparent; cursor: pointer; font: inherit;
}
.mode-switch:hover { border-color: var(--text-2); }
.mode-option {
  position: relative; z-index: 1; min-height: 42px; display: flex; align-items: center; justify-content: center;
  padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--on-accent); transition: color .25s var(--ease);
}
.mode-option--b { color: var(--text-2); }
.switch-bg {
  position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: var(--pill); background: var(--accent); transition: transform .3s var(--ease);
}
.mode-switch.credit-mode .switch-bg { transform: translateX(100%); }
.mode-switch.credit-mode .mode-option--a { color: var(--text-2); }
.mode-switch.credit-mode .mode-option--b { color: var(--on-accent); }

.hidden-block { display: none; }
.visible-block { display: block; }

/* результат */
.calc-result { display: none; }
.calc-result.active { display: block; }
.result-caption { font-size: 15px; color: var(--text-2); }
.result-value {
  margin-top: 6px; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(36px, 4vw, 48px); overflow-wrap: anywhere;
}
.result-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); white-space: pre-line; font-weight: 500; }

/* PDF и Excel — всегда внизу блока результата */
.exports { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.exports .btn { flex: 1 1 140px; }

/* сообщения */
.notice { margin-top: 16px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.notice--error { color: var(--negative); }
.notice--warning { color: var(--warning); }

/* ниже инструмента */
.more-tools { padding-top: 120px; padding-bottom: 40px; }
.more-tools .h2 { margin-bottom: 40px; }
.more-tools .tool-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 900px) { .more-tools .tool-list { grid-template-columns: 1fr; } .more-tools { padding-top: 80px; } }
.services-cta {
  margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.services-cta__text { font-family: var(--serif); font-size: 26px; line-height: 1.25; }

/* ---------- 7. Анимации и печать ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* мелкие модификаторы страниц */
.services-cta--end { margin-bottom: 96px; }
.page-head--404 { padding-bottom: 140px; }
.page-head .btn-row { margin-top: 40px; }

/* заголовок результата (вердикт) */
.price-title { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; }
.price-desc { margin-top: 12px; font-size: 18px; }
.price-desc strong { font-family: var(--serif); font-weight: 500; font-size: 32px; display: block; margin-top: 4px; }
.price-details { white-space: normal; font-weight: 400; color: var(--text-2); }
.price-details b { color: var(--text); font-weight: 600; }
