/* LossProof — сайт приложения для учёта личных финансов.
   Светлая тема «Изумруд», как в самом приложении: белый фон, изумрудный
   #0b5d46 — цвет бренда, шрифт Onest. Шрифты лежат на сайте (assets/fonts,
   лицензии OFL рядом) — браузер посетителя не обращается к сторонним
   сервисам. Логотип «Печать» — встроенный SVG в разметке, цвет задаётся
   через color (currentColor). */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.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;
}
/* PT Serif Bold (ParaType, лицензия OFL рядом) — только для надписи
   LOSSPROOF, поэтому лежит один набор: латиница. */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/pt-serif-700-latin.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;
}

:root {
  --bg: #ffffff;
  --bg-tint: #f3f8f5;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --field: #f7faf8;
  --line: #e1e8e4;
  --line-2: #cfd9d4;
  --text: #0e1b16;
  --text-2: #4a5953;
  --text-3: #687670;
  --accent: #0b5d46;
  --accent-hover: #0e7154;
  --accent-bg: #e6f2ec;
  --accent-bg-2: #d3e8de;
  --accent-data: #16936b;
  --track: #e3ebe7;
  --warn: #c2501a;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-bg-2);
  color: var(--text);
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

[hidden] {
  display: none !important;
}

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

.container {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Логотип «Печать» ───────────────────────────────────────────────── */

.seal {
  display: block;
  flex-shrink: 0;
}

/* Надпись LOSSPROOF: PT Serif с сайта, пока он грузится — Georgia. */
.wordmark {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

/* ── Кнопки ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-lg {
  min-height: 60px;
  padding: 0 26px;
  font-size: 17px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
}

.btn-sm svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-soft {
  background: var(--accent-bg);
  color: var(--accent);
}

.btn-soft:hover {
  background: var(--accent-bg-2);
  color: var(--accent);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #a9bab2;
  color: var(--text);
}

/* Белая кнопка на изумрудном фоне */
.btn-white {
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.show-sm {
  display: none;
}

/* ── Шапка и подвал ─────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.logo:hover {
  color: var(--accent);
}

.logo .seal {
  width: 36px;
  height: 36px;
}

.logo .wordmark {
  font-size: 17px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav-link {
  color: var(--text-2);
}

.nav-link:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 14px;
  color: var(--text-3);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

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

.footer-brand .seal {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--text-2);
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Первый экран с калькулятором ───────────────────────────────────── */

.hero {
  padding: 72px 0 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "copy calc"
    "actions calc";
  column-gap: 72px;
  row-gap: 28px;
}

.hero-copy {
  grid-area: copy;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-actions {
  grid-area: actions;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .calc {
  grid-area: calc;
  align-self: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.badge-accent {
  background: var(--accent-bg);
  color: var(--accent);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ── Калькулятор ────────────────────────────────────────────────────── */

.calc {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(11, 93, 70, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  color: var(--text-2);
}

.field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(11, 93, 70, 0.16);
}

.field-hint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-3);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calc-result-label {
  font-size: 14px;
  color: var(--text-2);
}

.calc-value {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.calc-value-warn {
  font-size: 36px;
  line-height: 1.15;
  color: var(--warn);
}

.calc-explain {
  font-size: 14px;
  color: var(--text-3);
}

.calc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-3);
}

.calc-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-weight: 600;
}

.calc-foot a svg {
  width: 16px;
  height: 16px;
}

/* ── Секции ─────────────────────────────────────────────────────────── */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

/* Секция на мятном фоне — чередуется с белыми */
.section-tint {
  background: var(--bg-tint);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2,
.cta-card h2 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p,
.cta-card p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Калькуляторы, которые готовятся */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.soon-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.soon-card h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

.soon-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.soon-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

/* ── О приложении ───────────────────────────────────────────────────── */

.app-grid {
  display: flex;
  align-items: center;
  gap: 96px;
}

.phone-wrap {
  position: relative;
  flex-shrink: 0;
  width: 400px;
  height: 660px;
}

.phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 620px;
  padding: 12px;
  border-radius: 48px;
  background: #1b2420;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 28px 15px 15px;
  overflow: hidden;
  border-radius: 38px;
  background: #f4f7f5;
  font-size: 13px;
}

.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}

.ps-title {
  font-size: 21px;
  font-weight: 700;
}

.ps-date,
.ps-label {
  font-size: 11px;
  color: var(--text-3);
}

.ps-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.ps-big {
  margin-top: 2px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ps-mid {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.ps-up {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ps-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.ps-bar-head span + span {
  color: var(--text-3);
}

.ps-bar {
  height: 8px;
  margin: 8px 0 6px;
  border-radius: 99px;
  background: var(--track);
}

.ps-bar span {
  display: block;
  width: 73%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-data);
}

.ps-list {
  padding: 2px 12px;
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.ps-row:last-child {
  border-bottom: 0;
}

.ps-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
}

.ps-dot svg {
  width: 16px;
  height: 16px;
}

.ps-name {
  flex-grow: 1;
  font-weight: 500;
}

.ps-name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

.ps-sum {
  font-weight: 600;
}

.ps-in {
  color: var(--accent);
}

.float-card {
  position: absolute;
  right: 0;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(14, 27, 22, 0.12);
}

.fc-label {
  font-size: 13px;
  color: var(--text-2);
}

.fc-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.fc-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
}

.app-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-grow: 1;
  min-width: 0;
}

.app-copy .section-head {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  gap: 14px;
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent);
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
}

.feature p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ── Безопасность и вопросы ─────────────────────────────────────────── */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.outline-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.outline-card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.outline-card h3 {
  font-size: 20px;
  font-weight: 600;
}

.outline-card p,
.faq-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.faq {
  align-items: start;
}

.faq-item {
  padding: 28px;
  border-radius: 22px;
  background: var(--bg-tint);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item h3 {
  font-size: 19px;
  font-weight: 600;
}

/* Плюс, который превращается в минус, когда ответ открыт */
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-3);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.15s;
}

.faq-toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  transform: rotate(0deg);
}

.faq-item p {
  margin-top: 10px;
}

/* ── Призыв подписаться ─────────────────────────────────────────────── */

.cta {
  padding: 0 0 96px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 64px;
  border-radius: 28px;
  background: var(--accent);
  color: #ffffff;
}

.cta-main {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cta-main .seal {
  width: 88px;
  height: 88px;
  color: #ffffff;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.cta-card h2 {
  color: #ffffff;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-card .btn {
  flex-shrink: 0;
}

.cta-card :focus-visible {
  outline-color: #ffffff;
}

/* ── Страница 404 ───────────────────────────────────────────────────── */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 120px;
  padding-bottom: 140px;
}

.notfound h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Первый экран: приложение ───────────────────────────────────────── */

.app-hero {
  padding: 56px 0 88px;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
}

.app-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
}

.app-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Главный калькулятор в блоке «Бесплатные калькуляторы» */
.calc-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 40px;
}

.calc-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-feature-copy h3 {
  font-size: 36px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calc-feature-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ── Страницы калькуляторов ─────────────────────────────────────────── */

/* Карточки калькуляторов на главной — ссылки */
a.soon-card {
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.soon-card:hover {
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: 0 12px 32px rgba(11, 93, 70, 0.08);
}

.soon-tag.is-open {
  background: var(--accent-bg);
  color: var(--accent);
}

.tool-hero {
  padding: 40px 0 88px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.tool-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin-bottom: 40px;
}

.tool-head h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px;
  align-items: start;
}

.tool-result {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(11, 93, 70, 0.08);
}

.tool-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tool-result h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.tool-result .calc-value {
  font-size: 44px;
}

.tool-sub {
  font-size: 14px;
  color: var(--text-3);
}

.tool-verdict {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.tool-note {
  font-size: 14px;
  line-height: 1.45;
  color: var(--warn);
}

.tool-hint {
  font-size: 14px;
  color: var(--text-2);
}

/* Переключатель из кнопок */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
}

.seg button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(14, 27, 22, 0.12);
}

.field-label {
  font-size: 14px;
  color: var(--text-2);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}

.check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

/* Варианты для сравнения: «сократить срок» или «уменьшить платёж», режимы налога */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.option h3 {
  font-size: 16px;
  font-weight: 600;
}

.option h3 small {
  display: block;
  min-height: 2.9em;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-3);
}

.option-value {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.option-sub {
  font-size: 13px;
  color: var(--text-3);
}

.option dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.option dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.option dt {
  color: var(--text-3);
}

.option dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.option.is-best {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option.is-best::after {
  content: "Выгоднее";
  position: absolute;
  top: -11px;
  left: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.option.is-off {
  opacity: 0.55;
}

/* Сроки уплаты */
.schedule {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.schedule li:first-child {
  border-top: 0;
}

.schedule b {
  font-weight: 600;
}

.schedule span {
  color: var(--text-2);
}

/* Пояснения под калькулятором */
.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.prose h2 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
}

.prose strong {
  color: var(--text);
}

.prose .formula {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Адаптивность ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .app-hero-grid,
  .calc-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .app-hero-grid .phone-wrap {
    justify-self: center;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "calc"
      "actions";
  }

  .hero-copy,
  .hero-actions,
  .hero .calc {
    align-self: auto;
  }

  .app-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }

  .phone-wrap {
    align-self: center;
  }
}

@media (max-width: 900px) {
  .nav-link {
    display: none;
  }

  .soon-grid,
  .cards-3,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .app-hero {
    padding: 28px 0 44px;
  }

  .app-hero-grid {
    gap: 32px;
  }

  .app-hero-copy {
    gap: 20px;
  }

  .app-hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .calc-feature {
    gap: 20px;
    margin-bottom: 24px;
  }

  .calc-feature-copy h3 {
    font-size: 26px;
  }

  .calc-feature-copy p {
    font-size: 16px;
  }

  .tool-hero {
    padding: 20px 0 44px;
  }

  .back-link {
    margin-bottom: 16px;
  }

  .tool-head {
    gap: 14px;
    margin-bottom: 24px;
  }

  .tool-head h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .tool-result {
    padding: 20px;
    border-radius: 24px;
  }

  .tool-result .calc-value {
    font-size: 36px;
  }

  .compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .schedule li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .prose p,
  .prose li {
    font-size: 16px;
  }

  .site-header .container {
    min-height: 72px;
  }

  .logo {
    gap: 10px;
  }

  .logo .seal {
    width: 30px;
    height: 30px;
  }

  .logo .wordmark {
    font-size: 14px;
  }

  .hide-sm {
    display: none;
  }

  .show-sm {
    display: inline;
  }

  .hero {
    padding: 28px 0 44px;
  }

  .hero-grid {
    row-gap: 20px;
  }

  .hero-copy {
    gap: 20px;
  }

  .badge {
    padding: 7px 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .lead {
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .calc {
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field input {
    height: 52px;
    padding: 0 16px;
    font-size: 19px;
  }

  .calc-value {
    font-size: 42px;
  }

  .calc-value-warn {
    font-size: 30px;
  }

  .calc-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 24px;
  }

  .section-head h2,
  .cta-card h2 {
    font-size: 28px;
    line-height: 1.15;
  }

  .section-head p,
  .cta-card p {
    font-size: 16px;
    line-height: 1.5;
  }

  .soon-grid,
  .cards-3,
  .faq {
    gap: 12px;
  }

  .soon-card,
  .outline-card,
  .faq-item {
    padding: 20px;
    border-radius: 20px;
  }

  /* На телефоне «скоро» — компактные строки без описаний */
  .soon-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker tag"
      "title tag";
    gap: 4px 12px;
    padding: 16px 18px;
  }

  .soon-card .kicker {
    grid-area: kicker;
    font-size: 12px;
  }

  .soon-card h3 {
    grid-area: title;
    font-size: 17px;
  }

  .soon-card p {
    display: none;
  }

  .soon-tag {
    grid-area: tag;
    align-self: center;
    margin-top: 0;
  }

  .faq-item {
    padding: 18px 20px;
  }

  .faq-item h3 {
    font-size: 17px;
  }

  .phone-wrap {
    width: 300px;
    height: 620px;
  }

  .float-card {
    display: none;
  }

  .app-grid {
    gap: 28px;
  }

  .features {
    gap: 16px;
  }

  .feature {
    align-items: center;
    gap: 12px;
  }

  .feature h3 {
    margin-bottom: 0;
    font-size: 16px;
  }

  .feature p {
    font-size: 14px;
  }

  .cta {
    padding-bottom: 44px;
  }

  .cta-card {
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
  }

  .cta-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cta-main .seal {
    width: 56px;
    height: 56px;
  }

  .cta-card .btn {
    width: 100%;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .notfound {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .notfound h1 {
    font-size: 30px;
  }
}
