/* Калькулятор финмодели агентства (/tools/finmodel-agentstva/) в новом дизайне по брендбуку.
   Общие части (шрифты, кнопки, вопросы, заголовки разделов) берутся из /site.css, /tokens.css,
   /shared-assets/avat-service.css и avat-service-v2.css. Здесь только своё.
   Цвета только из брендбука: Paper, White, Mist, Ink, Muted, Line, Depth, Oxide, Steel (--link),
   Brass только тонкой подписью на тёмном. Классы tl-* и id не переименовываем: на них опирается finmodel.js. */

.page-finmodel { background: var(--paper); color: var(--ink); overflow-x: clip; }
.page-finmodel main { display: block; }
.page-finmodel .tl-hero .container,
.page-finmodel .tl-calc .container,
.page-finmodel .tl-cta .container,
.page-finmodel .tl-sec .container { border: 0; }

/* Подписи-метки над заголовками («/ МЕТОДИКА»): мелко, серым */
.tl-sec-label, .tl-cta-eyebrow, .tl-res-label {
  margin: 0 0 16px; font: 500 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* ── 1. Первый экран на Paper ── */
.tl-hero { padding: clamp(40px, 5vw, 80px) 0 clamp(32px, 3vw, 48px); background: var(--paper); }
.tl-crumbs { margin: 0 0 28px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tl-crumbs a { color: var(--muted); text-decoration: none; }
.tl-crumbs a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.tl-badge { display: inline-block; margin-bottom: 20px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); font-size: 13px; line-height: 1.4; color: var(--muted); }
.tl-badge b { font-weight: 600; color: var(--ink); }
.tl-h1 { margin: 0; font: 400 clamp(38px, 4vw, 68px)/1.05 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.tl-h1 em { font-style: normal; color: inherit; }
.tl-hero-head > .tl-lead { margin: clamp(20px, 2vw, 28px) 0 0; font-size: clamp(17px, 1.2vw, 21px); line-height: 1.6; color: var(--ink); }
.tl-lead b { font-weight: 600; }

/* Полоса трёх цифр: крупно Geologica, разделители линиями */
.tl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 3.4vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-facts > div { min-width: 0; padding: clamp(20px, 2.2vw, 32px) clamp(16px, 2vw, 32px); }
.tl-facts > div:first-child { padding-left: 0; }
.tl-facts > div + div { border-left: 1px solid var(--line); }
.tl-fact-num { font: 400 clamp(40px, 4vw, 68px)/1 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tl-fact-num em { font-style: normal; color: var(--oxide); }
.tl-fact-num .u { margin-left: 6px; font-size: .4em; letter-spacing: -.01em; color: var(--muted); }
.tl-fact-cap { margin-top: 12px; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ── 2. Калькулятор: белые панели, поля на Mist ── */
.tl-calc { padding: 8px 0 var(--space-section, 96px); background: var(--paper); }
.tl-fm { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 24px; align-items: start; }
.tl-fm > * { min-width: 0; }
.tl-panel, .tl-res { padding: clamp(20px, 2.4vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); }
.tl-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tl-panel-title { font: 400 clamp(22px, 1.7vw, 28px)/1.2 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.025em; color: var(--ink); }
.tl-panel-note { flex-shrink: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tl-panel-sub { margin: 10px 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tl-panel > .tl-panel-head[style] { margin-top: 40px !important; padding-top: 28px; border-top: 1px solid var(--line); }

.tl-field { padding: 18px 0; border-top: 1px solid var(--line); }
.tl-field:first-of-type { border-top: 0; }
.tl-field[hidden] { display: none; }
.tl-field-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.tl-field-label { font-size: 16px; line-height: 1.4; color: var(--ink); }
.tl-field-label span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tl-val { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tl-num, .tl-role input, .tl-cut-scope, .tl-share-link {
  min-height: 44px; padding: 0 12px; background: var(--mist); border: 1px solid var(--mist); border-radius: 2px;
  color: var(--ink); font: 400 15px/1.2 var(--body); font-variant-numeric: tabular-nums;
}
.tl-num { width: 128px; text-align: right; -moz-appearance: textfield; }
.tl-num::-webkit-outer-spin-button, .tl-num::-webkit-inner-spin-button,
.tl-role input.num::-webkit-outer-spin-button, .tl-role input.num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tl-num:hover, .tl-role input:hover, .tl-cut-scope:hover { border-color: var(--line); }
.tl-num:focus-visible, .tl-role input:focus-visible, .tl-cut-scope:focus-visible, .tl-share-link:focus-visible {
  outline: 2px solid var(--link); outline-offset: 1px; background: var(--white); border-color: var(--line);
}
.tl-unit { min-width: 22px; font-size: 14px; color: var(--muted); }
.tl-range { display: block; width: 100%; height: 32px; margin: 0; accent-color: var(--link); cursor: pointer; }
.tl-range:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Строки ролей и вычетов */
.tl-team { display: grid; gap: 8px; }
.tl-role, .tl-role-head { display: grid; grid-template-columns: minmax(0, 1fr) 74px 118px 86px 44px; gap: 8px; align-items: center; }
.tl-role { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-panel, 4px); background: var(--white); }
.tl-role-head { margin-bottom: 8px; padding: 0 9px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tl-role-head span:not(:first-child) { text-align: right; }
.tl-role input { width: 100%; min-width: 0; }
.tl-role input.num { text-align: right; -moz-appearance: textfield; }
.tl-cut, .tl-cut-head { grid-template-columns: minmax(0, 1fr) 86px 172px 44px; }
.tl-cut-scope { width: 100%; min-width: 0; font-size: 14px; cursor: pointer; }
.tl-role-del { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 2px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.tl-role-del:hover { color: var(--oxide); background: var(--mist); }
.tl-role-del:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.tl-role-lbl { display: none; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.tl-add { margin-top: 10px; min-height: 44px; padding: 0 16px; border: 1px dashed var(--muted); border-radius: 2px; background: transparent; color: var(--ink); font: 500 14px/1 var(--body); cursor: pointer; }
.tl-add:hover { border-style: solid; border-color: var(--ink); background: var(--mist); }
.tl-add:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.tl-leftover { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-panel, 4px); background: var(--mist); font-size: 15px; color: var(--ink); }
.tl-leftover b { font: 400 22px/1.1 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Плашка «Вы открыли чужой расчёт» */
.tl-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; padding: 14px 18px; border-left: 2px solid var(--link); border-radius: var(--radius-panel, 4px); background: var(--white); font-size: 15px; line-height: 1.55; color: var(--ink); }
.tl-guest[hidden] { display: none; }
.tl-guest b { font-weight: 600; }
.tl-share-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--depth); border-radius: 2px; background: var(--depth); color: var(--depth-text); font: 500 14px/1 var(--body); cursor: pointer; }
.tl-share-btn:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }

/* ── Результат: верх тёмно-синий (Depth) с крупной цифрой, ниже белая панель с разбором ── */
.tl-res { position: sticky; top: 92px; padding: 0; overflow: hidden; } /* 92px: ниже закреплённой шапки */
.fm-total { padding: clamp(24px, 2.6vw, 40px); background: var(--depth); color: var(--depth-text); }
.fm-total .tl-res-label { position: relative; padding-top: 14px; margin-bottom: 18px; color: var(--brass-label-on-depth, #C69752); }
.fm-total .tl-res-label::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: var(--brass-label-on-depth, #C69752); }
.tl-big { font: 400 clamp(52px, 5.4vw, 92px)/.95 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--depth-text); white-space: nowrap; }
.tl-big-note { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--depth-muted, rgba(238, 242, 243, .74)); }
.tl-big-note b { font-weight: 600; color: var(--depth-text); }
.tl-res .tl-share { margin-top: 24px; }
.tl-share-main { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px; border: 1px solid var(--oxide); border-radius: 2px; background: var(--oxide); color: var(--paper); font: 500 15px/1.3 var(--body); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.tl-share-main:hover { background: var(--oxide-deep); border-color: var(--oxide-deep); }
.tl-share-main.is-done { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.tl-share-main:focus-visible, .tl-share-copy:focus-visible, .tl-share-reset:focus-visible { outline: 2px solid var(--depth-text); outline-offset: 2px; }
.tl-share-out { display: flex; gap: 8px; margin-top: 10px; }
.tl-share-out[hidden] { display: none; }
.fm-total .tl-share-link { flex: 1; min-width: 0; background: rgba(238, 242, 243, .08); border-color: var(--depth-line, rgba(238, 242, 243, .24)); color: var(--depth-text); font-size: 13px; }
.tl-share-copy { flex-shrink: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--depth-line, rgba(238, 242, 243, .24)); border-radius: 2px; background: transparent; color: var(--depth-text); font: 500 14px/1 var(--body); cursor: pointer; }
.tl-share-copy:hover, .tl-share-copy.is-done { background: var(--depth-text); color: var(--depth); }
.fm-total .tl-share-note { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--depth-muted, rgba(238, 242, 243, .74)); }
.tl-share-reset { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--depth-text); font: 400 14px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tl-share-reset:hover { color: var(--white); }

/* Нижняя часть результата: белая */
.tl-res > .tl-gauge, .tl-res > .tl-rows, .tl-res > .tl-chart { margin-left: clamp(20px, 2.4vw, 36px); margin-right: clamp(20px, 2.4vw, 36px); }
.tl-gauge { margin-top: 28px; }
.tl-gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tl-gauge-t { font-size: 15px; font-weight: 500; color: var(--ink); }
.tl-gauge-v { font: 400 26px/1 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-gauge-bar { position: relative; height: 12px; border-radius: 2px; background: var(--mist); }
.tl-gauge-fill { height: 100%; border-radius: 2px; transition: width .35s cubic-bezier(.16, 1, .3, 1), background-color .3s ease; }
.tl-gauge-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); }
.tl-gauge-note { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tl-gauge-note b { font-weight: 600; color: var(--ink); }

.tl-rows { margin-top: 24px; border-top: 1px solid var(--line); }
.tl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tl-row-k { min-width: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tl-row-k b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 500; color: var(--ink); }
.tl-row-k span { display: block; }
.tl-row-v { flex-shrink: 0; font: 400 20px/1.2 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

.tl-chart { margin-top: 28px; padding-top: 4px; }
.tl-res > .tl-chart:last-child { margin-bottom: clamp(20px, 2.4vw, 36px); }
.tl-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tl-chart-t { font-size: 15px; font-weight: 500; color: var(--ink); }
.tl-chart-v { flex-shrink: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tl-bar5 { display: flex; height: 40px; border-radius: 2px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tl-bar5 i { display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--white); font: 500 12px/1 var(--body); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; transition: width .35s cubic-bezier(.16, 1, .3, 1); }
.tl-bar5 i.dark { color: var(--ink); }
.tl-legend5 { display: grid; gap: 0; margin-top: 14px; }
.tl-legend5 div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.tl-legend5 i { width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(17, 28, 35, .14); transform: translateY(1px); }
.tl-legend5 b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-legend5 .sh { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-legend5 .profit b { font-weight: 700; color: var(--depth); }
.tl-legend5 .loss b { font-weight: 700; color: var(--oxide); }

.tl-income { border-top: 1px solid var(--line); }
.tl-income-group { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.tl-income-group i { margin-left: 6px; font-style: normal; font-weight: 400; color: var(--muted); }
.tl-income-group b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-income-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tl-income-name { min-width: 0; color: var(--ink); }
.tl-income-name span { color: var(--muted); }
.tl-income-row .pp { color: var(--link); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-income-row b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }

/* ── 3. «Заказать»: тёмно-синяя панель с белой формой ── */
.tl-cta { padding: 0 0 var(--space-section, 96px); background: var(--paper); }
.tl-cta-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(28px, 4vw, 64px); border-radius: var(--radius-panel, 4px); background: var(--depth); color: var(--depth-text); }
.tl-cta-box > * { min-width: 0; }
.tl-cta-eyebrow { position: relative; padding-top: 14px; color: var(--brass-label-on-depth, #C69752); }
.tl-cta-eyebrow::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: var(--brass-label-on-depth, #C69752); }
.tl-cta-title { margin: 0 0 20px; font: 400 clamp(32px, 3vw, 52px)/1.1 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.04em; color: var(--depth-text); text-wrap: balance; }
.tl-cta-text { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--depth-muted, rgba(238, 242, 243, .74)); }
.tl-cta-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tl-cta-list li { position: relative; padding: 12px 0 0; border-top: 1px solid var(--depth-line, rgba(238, 242, 243, .24)); font-size: 16px; line-height: 1.55; color: var(--depth-muted, rgba(238, 242, 243, .74)); }
.tl-cta-list li b { font-weight: 600; color: var(--depth-text); }
.tl-form-wrap { padding: clamp(22px, 2.4vw, 36px); border-radius: var(--radius-panel, 4px); background: var(--white); color: var(--ink); }
.tl-form-title { margin: 0 0 6px; font: 400 clamp(22px, 1.7vw, 28px)/1.2 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.025em; }
.tl-form-sub { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tl-form { position: relative; }
.tl-form-hp, .lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tl-form-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 14px; padding: 0 22px; border: 1px solid var(--oxide); border-radius: 2px; background: var(--oxide); color: var(--paper); font: 500 15px/1.3 var(--body); cursor: pointer; transition: background .2s, border-color .2s; }
.tl-form-btn:hover:not(:disabled) { background: var(--oxide-deep); border-color: var(--oxide-deep); }
.tl-form-btn:disabled { cursor: not-allowed; opacity: .7; }
.tl-form-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.tl-consent, .avat-consent-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.tl-consent input, .avat-consent-checkbox input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--link); cursor: pointer; }
.tl-consent a, .avat-consent-checkbox a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.tl-form-err { margin: 12px 0 0; font-size: 14px; color: var(--oxide); }
.tl-form-ok { padding: 12px 0; }
.tl-form-ok[hidden] { display: none; }
.tl-form-ok-t { margin-bottom: 8px; font: 400 26px/1.2 var(--head); font-variation-settings: var(--heading-variation); color: var(--ink); }
.tl-form-ok-s { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tl-form-ok-s a { color: var(--link); text-decoration: underline; }

/* Телефон с кодом страны (разметку дописывает script.js: .phone-nat и .phone-dial) */
.page-finmodel .phone-input { display: flex; gap: 8px; align-items: stretch; width: 100%; }
.page-finmodel .phone-cc { flex: 0 0 auto; max-width: 46%; min-height: 50px; padding: 0 8px; border: 1px solid var(--mist); border-radius: 2px; background: var(--mist); color: var(--ink); font: 400 14px/1.2 var(--body); cursor: pointer; }
.page-finmodel .phone-nat { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--mist); border-radius: 2px; background: var(--mist); }
.page-finmodel .phone-nat:focus-within, .page-finmodel .phone-cc:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; background: var(--white); border-color: var(--line); }
.page-finmodel .phone-dial { flex: 0 0 auto; margin-right: 8px; font: 600 15px/1 var(--body); color: var(--ink); white-space: nowrap; pointer-events: none; user-select: none; }
.page-finmodel .phone-nat > input[data-phone-mask] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/1 var(--body); outline: none; }

/* ── 4-5. «Как читать» и «Методика» на сером (Mist) ── */
.tl-sec { padding: var(--space-section, 96px) 0; }
.fm-mist { background: var(--mist); }
.fm-mist--next { padding-top: 0; }
.fm-mist--next .container { padding-top: var(--space-section, 96px) !important; border-top: 1px solid rgba(17, 28, 35, .14) !important; }
.tl-sec-head { margin-bottom: var(--space-head-content, 64px); }
.tl-sec-head .section-title { margin: 0; }
.tl-sec-lead { margin: var(--space-title-lead, 28px) 0 0; font-size: clamp(17px, 1.2vw, 21px); line-height: 1.6; color: var(--ink); }
.tl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tl-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: clamp(22px, 2.4vw, 36px); border-radius: var(--radius-panel, 4px); background: var(--white); }
.tl-step-n { padding-top: 4px; font: 500 14px/1.4 var(--body); letter-spacing: .04em; color: var(--oxide); }
.tl-step-body { min-width: 0; }
.tl-step-t { margin-bottom: 12px; font: 400 clamp(22px, 1.7vw, 28px)/1.2 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.025em; color: var(--ink); }
.tl-step-d { font-size: 16px; line-height: 1.65; color: var(--ink); opacity: .86; text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-wrap: pretty; }
/* формула отдельным блоком в строке: выравнивание по ширине не растягивает пробелы внутри неё */
.tl-step-d code { display: inline-block; max-width: 100%; text-align: left; padding: 1px 6px; border-radius: 2px; background: var(--mist); color: var(--ink); font: 400 .92em/1.5 "JetBrains Mono", ui-monospace, Menlo, monospace; overflow-wrap: anywhere; -webkit-hyphens: manual; hyphens: manual; }

/* ── 6. Вопросы: разметка как на /services/ (faq sv-faq, две колонки) ── */
.page-finmodel main .faq .section-intro .tl-sec-label { margin-bottom: 16px; }
.page-finmodel main .faq .section-title { margin-bottom: 0; }
.page-finmodel .faq-answer p { margin: 0; }

/* ── Окно заявки (кнопка «Обсудить проект» в шапке), обработчик в /script.js ── */
.lead-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.lead-modal.is-open { display: flex; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 28, 35, .62); }
.lead-modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-panel, 4px); background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(17, 28, 35, .32); }
.lead-modal-close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 2px; background: none; color: var(--muted); cursor: pointer; }
.lead-modal-close:hover { background: var(--mist); color: var(--ink); }
.lead-modal-eyebrow { margin-bottom: 12px; font: 500 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead-modal-title { margin: 0 0 10px; padding-right: 32px; font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--head); font-variation-settings: var(--heading-variation); letter-spacing: -.03em; color: var(--ink); }
.lead-modal-sub { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lead-form { display: grid; gap: 14px; }
.lead-field { display: grid; gap: 6px; }
.lead-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.lead-req { color: var(--oxide); }
.lead-opt { font-weight: 400; color: var(--muted); }
.lead-field > input, .lead-field > textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--mist); border-radius: 2px; background: var(--mist); color: var(--ink); font: 400 16px/1.4 var(--body); resize: vertical; }
.lead-field > input:focus-visible, .lead-field > textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; background: var(--white); border-color: var(--line); }
.lead-submit { width: 100%; justify-content: center; }
.lead-meta { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.lead-error-msg { margin: 0; font-size: 14px; color: var(--oxide); }
.lead-success[hidden] { display: none; }
.lead-success { padding: 12px 0; text-align: center; }
.lead-success-icon { display: inline-flex; margin-bottom: 14px; color: var(--link); }
.lead-success .lead-modal-title { padding-right: 0; }

/* ── Текст по ширине: абзацы и описания да, подписи, цифры, кнопки и таблицы нет ── */
.page-finmodel main :is(.tl-fm, .tl-facts, .tl-crumbs, .tl-badge, .tl-form-wrap, .tl-guest, .tl-cta-list) :is(p, li) { text-align: start; -webkit-hyphens: manual; hyphens: manual; }
.page-finmodel main .tl-panel .tl-panel-sub { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* ── Планшет и телефон ── */
@media (max-width: 1100px) {
  .tl-fm { grid-template-columns: minmax(0, 1fr); }
  .tl-res { position: static; }
  .tl-cta-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .tl-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tl-facts { grid-template-columns: minmax(0, 1fr); }
  .tl-facts > div, .tl-facts > div:first-child { padding: 18px 0; }
  .tl-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tl-field-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .tl-val { justify-content: flex-start; }
  .tl-num { width: 150px; }
  .tl-role-head { display: none; }
  .tl-role-lbl { display: block; }
  .tl-role:not(.tl-cut) { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; }
  .tl-role:not(.tl-cut) .tl-role-wrap:first-child { grid-column: 1 / 4; }
  .tl-role:not(.tl-cut) .tl-role-del { grid-row: 1; grid-column: 4; align-self: end; }
  .tl-cut { grid-template-columns: minmax(0, 1fr) 44px; }
  .tl-cut .tl-role-wrap { grid-column: 1; }
  .tl-cut .tl-role-del { grid-row: 1; grid-column: 2; align-self: end; }
  .tl-big { font-size: clamp(44px, 13vw, 60px); white-space: normal; }
  .tl-step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* на телефоне сумма на человека уходит второй строкой под имя, ничего не прячем */
  .tl-income-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .tl-income-name { grid-column: 1; grid-row: 1; }
  .tl-income-row b { grid-column: 2; grid-row: 1; }
  .tl-income-row .pp { grid-column: 1; grid-row: 2; font-size: 13px; }
  .tl-legend5 div { gap: 10px; }
  .tl-share-out { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-gauge-fill, .tl-bar5 i { transition: none; }
}

/* Кнопка отправки заявки тёмно-синяя (Depth), а не кирпичная: на кирпичном и тёмных блоках кирпича слишком много (правка Полины 10.11) */
.tl-form-btn, .pv-send { background: var(--depth); border-color: var(--depth); color: #fff; }
.tl-form-btn:hover, .pv-send:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Кнопка заявки остаётся тёмно-синей и пока не поставлена галочка согласия: недоступность показывает курсор и более тусклый текст, а не посветление (правка Полины 10.11) */
.tl-form-btn:disabled, .pv-send:disabled, .kk-send[disabled] { opacity: 1 !important; background: var(--depth) !important; border-color: var(--depth) !important; color: rgba(255, 255, 255, .72) !important; cursor: not-allowed; }

/* Пока не поставлена галочка согласия, на кнопке подсказка (кнопка заблокирована, но остаётся тёмно-синей) */
.tl-form-btn:disabled::after, .pv-send:disabled::after, .kk-send[disabled]::after { content: " · отметьте согласие"; font-weight: 400; opacity: .85; }
