/* Сайт ООО «ИнноМани». Цвета — из логотипа InnoMoney и баннеров MoneyMentor */
:root {
  --navy: #0e1a2b;
  --navy-2: #15253b;
  --blue: #1e9be0;
  --blue-dark: #1478b0;
  --gold: #d9a520;
  --text: #1c2430;
  --muted: #5d6878;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --white: #ffffff;
  --green: #2f9e5a;
  --red: #d9534f;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(14, 26, 43, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--navy); color: #e8eef6; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }
.section.dark .lead { color: #b8c4d4; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(14, 26, 43, 0.97); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; max-width: 1320px; }
.header .logo { flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo b { color: var(--blue); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { white-space: nowrap; color: #c9d4e3; text-decoration: none; padding: 8px 11px; border-radius: 10px; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 0; color: var(--white); font-size: 28px; cursor: pointer; }

/* Кнопки */
.btn { display: inline-block; padding: 13px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.35); }
.btn-ghost.dark { color: var(--navy); border-color: var(--line); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Первый экран */
.hero { background: radial-gradient(1200px 500px at 80% 0%, #1d3a5f 0%, var(--navy) 60%); color: var(--white); padding: 80px 0 90px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero p.lead { color: #c3cfde; }
.hero-img { position: relative; }
.hero-img img { border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.hero-badge { position: absolute; left: -18px; bottom: 24px; background: var(--white); color: var(--text); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; max-width: 230px; }
.hero-badge b { display: block; font-size: 22px; color: var(--blue-dark); }
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.page-hero .lead { color: #c3cfde; }

/* Карточки */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.section.alt .card { border-color: transparent; }
.section.dark .card { background: var(--navy-2); border-color: #233753; color: #d5deea; box-shadow: none; }
.card .icon { font-size: 34px; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.15s, box-shadow 0.15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14, 26, 43, 0.14); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e7f4fc; color: var(--blue-dark); margin-bottom: 12px; }
.tag.gold { background: #fbf2d9; color: #8a6510; }
.tag.green { background: #e4f4ea; color: #1f7442; }

/* Блок с картинкой */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #e4f4ea; color: var(--green); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* Скриншоты */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shots img { border-radius: 14px; box-shadow: var(--shadow); }

/* Цены */
.price { text-align: center; }
.price .sum { font-size: 34px; font-weight: 800; color: var(--navy); margin: 6px 0; }
.price .per { color: var(--muted); font-size: 15px; }
.price.best { border: 2px solid var(--blue); position: relative; }
.price.best::before { content: "Выгоднее всего"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 36px; color: var(--gold); }
.stats span { color: #b8c4d4; font-size: 15px; }

/* Шаги */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 48px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }

/* Предупреждение / пометка */
.note { background: #fff8e6; border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 10px; color: #5b4a1a; font-size: 15px; }
.note.blue { background: #eef7fd; border-color: var(--blue); color: #1c4964; }

/* Калькуляторы */
.calc { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cdd6e2; border-radius: 10px; font-size: 17px; font-family: inherit; }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.result { background: var(--bg); border-radius: 14px; padding: 22px; }
.result .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.result .row:last-child { border-bottom: 0; }
.result .row b { white-space: nowrap; }
.result .big { font-size: 30px; font-weight: 800; color: var(--navy); }
.result .good { color: var(--green); }
.result .bad { color: var(--red); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { border: 1px solid var(--line); background: var(--white); padding: 10px 16px; border-radius: 999px; font-size: 15px; cursor: pointer; font-family: inherit; }
.tabs button.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tool { display: none; }
.tool.on { display: block; }
.quiz-q { margin-bottom: 18px; }
.quiz-q p { font-weight: 600; margin-bottom: 8px; }
.quiz-q label { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.quiz-q label:hover { background: var(--bg); }

/* Портфолио */
.case img { border-radius: 12px; margin-bottom: 14px; }
.cases.grid-2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cases .case img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Форма */
.form .field textarea { width: 100%; min-height: 110px; padding: 12px 14px; border: 1px solid #cdd6e2; border-radius: 10px; font-size: 16px; font-family: inherit; }
.form-ok { display: none; }

/* Подвал */
.footer { background: var(--navy); color: #9fb0c6; padding: 52px 0 28px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: var(--white); margin: 0 0 12px; font-size: 16px; }
.footer a { color: #c9d4e3; text-decoration: none; display: block; margin-bottom: 7px; }
.footer a:hover { color: var(--white); }
.footer .logo { display: flex; color: var(--white); }
.footer .legal { border-top: 1px solid #22344d; margin-top: 34px; padding-top: 20px; font-size: 13px; color: #7f91a8; }

/* Меню сворачивается в кнопку, пока все пункты не помещаются в строку */
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Телефоны и планшеты */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 60px; }
  .hero .wrap, .split, .calc-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero-badge { left: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Статьи */
.article { max-width: 760px; }
.article h1 { font-size: clamp(28px, 4.4vw, 42px); margin-top: 10px; }
.article h2 { font-size: 26px; margin: 1.6em 0 0.5em; }
.article p, .article li { font-size: 18px; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.article .back { text-decoration: none; font-weight: 600; font-size: 15px; }
.article-meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16px; display: block; overflow-x: auto; }
@media (max-width: 760px) { .article table { font-size: 14px; } .article th, .article td { padding: 8px 6px; } }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.article th { background: var(--bg); }

/* Калькуляторы не распирают страницу на узких экранах */
.calc-grid > * { min-width: 0; }
.field input, .field select { min-width: 0; }
@media (max-width: 760px) { .calc { padding: 18px; } .result { padding: 16px; } .result .big { font-size: 26px; } }
.field input[type=checkbox] { width: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--blue); }

/* Кнопка «Записаться» в шапке: на компьютере в меню, на телефоне рядом с ☰ */
.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-cta { display: none; padding: 8px 14px; font-size: 14px; }
.nav .nav-cta { padding: 9px 16px; border-width: 2px; }
@media (max-width: 1180px) { .hdr-cta { display: inline-block; } .nav .nav-cta { display: none; } }

/* Страница /zapis */
.zapis-me { display: flex; align-items: center; gap: 14px; margin: 24px 0 8px; color: #d5deea; }
.zapis-me img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.zapis-list { color: #d5deea; padding-left: 20px; }
.zapis-list li { margin: 6px 0; }

/* ===== Первый экран в стиле SaaS-лендингов (16.10.2026) ===== */
.hero { position: relative; isolation: isolate; background: var(--navy); padding: 96px 0 104px; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero::before { width: 520px; height: 520px; left: -160px; top: -120px; background: rgba(30, 155, 224, 0.35); }
.hero::after { width: 560px; height: 560px; right: -140px; bottom: -220px; background: rgba(32, 201, 170, 0.22); }
.hero .wrap { position: relative; }
.hero .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -0.02em; font-weight: 800; }
.grad { background: linear-gradient(90deg, #4cc3ff 0%, #3ee0c2 55%, #f2c14e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(30, 155, 224, 0.12); border: 1px solid rgba(76, 195, 255, 0.35); color: #8fd6ff; font-size: 12px; margin-bottom: 18px; }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee0c2; box-shadow: 0 0 10px #3ee0c2; }
.hero .btns { margin-top: 30px; gap: 14px; }
.hero .btn { padding: 16px 30px; border-radius: 16px; font-size: 17px; }
.hero .btn-primary { background: linear-gradient(135deg, #4cc3ff, #1e9be0); box-shadow: 0 10px 34px rgba(30, 155, 224, 0.45); }
.hero .btn-gold { background: linear-gradient(135deg, #f2c14e, #d9a520); box-shadow: 0 10px 34px rgba(217, 165, 32, 0.4); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { font-size: 13.5px; color: #c3cfde; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.chips li::before { content: "✓ "; color: #3ee0c2; font-weight: 700; }
.hero-img::before { content: ""; position: absolute; inset: 8% 10%; z-index: -1; border-radius: 40px; background: radial-gradient(circle, rgba(76, 195, 255, 0.45), rgba(62, 224, 194, 0.15) 55%, transparent 75%); filter: blur(40px); }
.hero-img img { border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03); }
.hero-badge { border-radius: 16px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }

/* Карточки: мягкий подъём при наведении */
.card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 26, 43, 0.12); }

@media (max-width: 760px) {
  .hero { padding: 56px 0 64px; }
  .hero::before { width: 320px; height: 320px; }
  .hero::after { width: 320px; height: 320px; }
  .hero .btn { width: 100%; text-align: center; }
}

/* Тот же стиль для шапок внутренних страниц и тёмных блоков */
.page-hero, .section.dark { position: relative; isolation: isolate; overflow: hidden; }
.page-hero { padding: 84px 0 76px; }
.page-hero::before, .section.dark::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; left: -140px; top: -180px; border-radius: 50%; background: rgba(30, 155, 224, 0.32); filter: blur(90px); pointer-events: none; }
.page-hero::after, .section.dark::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: rgba(32, 201, 170, 0.2); filter: blur(90px); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero .wrap::before { content: ""; position: absolute; inset: -40px 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 25% 50%, #000 15%, transparent 65%); mask-image: radial-gradient(ellipse at 25% 50%, #000 15%, transparent 65%); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; font-weight: 800; }
.page-hero .eyebrow, .section.dark .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(30, 155, 224, 0.12); border: 1px solid rgba(76, 195, 255, 0.35); color: #8fd6ff; font-size: 12px; margin-bottom: 18px; }
.page-hero .eyebrow::before, .section.dark .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee0c2; box-shadow: 0 0 10px #3ee0c2; }
.page-hero .btn, .section.dark .btn { padding: 15px 28px; border-radius: 16px; }
.page-hero .btn-gold, .section.dark .btn-gold { background: linear-gradient(135deg, #f2c14e, #d9a520); box-shadow: 0 10px 34px rgba(217, 165, 32, 0.4); }
.section.dark .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); }
@media (max-width: 760px) { .page-hero { padding: 56px 0 52px; } .page-hero::before, .page-hero::after, .section.dark::before, .section.dark::after { width: 300px; height: 300px; } }

/* Видео приложения в рамке телефона */
.device { position: relative; width: min(290px, 78vw); margin: 0 auto; padding: 10px; border-radius: 42px;
  background: linear-gradient(160deg, #2a3d58, #0b1422 60%, #22344d); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.04); }
.device::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); z-index: 2; }
.device video { display: block; width: 100%; aspect-ratio: 540 / 1088; object-fit: cover; border-radius: 32px; background: #fff; }

/* Полоса доверия под первым экраном */
.trust { background: #0b1522; border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 22px 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; color: #c3cfde; }
.trust-item .ti { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; border-radius: 12px; background: rgba(76, 195, 255, 0.1); border: 1px solid rgba(76, 195, 255, 0.25); }
.trust-item b { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.trust-item small { display: block; font-size: 13px; color: #8ea0b8; line-height: 1.35; }
@media (max-width: 960px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; gap: 12px; } }

/* Кнопки ровным рядом: одинаковая ширина, на телефоне — друг под другом во всю ширину */
.btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 270px); gap: 12px; justify-content: start; }
.btns > .btn { text-align: center; display: flex; align-items: center; justify-content: center; padding-left: 16px; padding-right: 16px; }
.center .btns, .btns[style*="center"] { justify-content: center; }
/* Три кнопки: главная сверху во всю ширину, две под ней пополам */
.btns.btns-3 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 250px)); }
.btns.btns-3 > .btn:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .btns, .btns.btns-3 { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; justify-content: stretch; }
  .btns.btns-3 > .btn:first-child { grid-column: auto; }
}

/* Вкладки калькуляторов — ровная сетка 3×2, на телефоне 2×3 */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tabs button { padding: 12px 14px; border-radius: 14px; text-align: center; transition: background 0.15s, border-color 0.15s; }
.tabs button:hover { border-color: var(--blue); }
@media (max-width: 760px) { .tabs { grid-template-columns: 1fr 1fr; } .tabs button { font-size: 14px; padding: 11px 8px; } }
.btns:has(> .btn:only-child) { grid-auto-columns: auto; }
@media (min-width: 761px) and (max-width: 1000px) {
  .hero .btns:not(.btns-3) { grid-auto-flow: row; grid-template-columns: minmax(0, 360px); }
}
@media (min-width: 761px) and (max-width: 960px) { .tabs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 761px) and (max-width: 1000px) { .split .btns:not(.btns-3) { grid-auto-flow: row; grid-template-columns: minmax(0, 360px); } }
.tabs { grid-auto-rows: 1fr; }
.hero .btns > .btn, .page-hero .btns > .btn, .section.dark .btns > .btn { padding-left: 16px; padding-right: 16px; }
@media (max-width: 360px) {
  .header .wrap { gap: 8px; padding: 0 12px; }
  .logo { font-size: 17px; gap: 7px; } .logo img { width: 30px; height: 30px; }
  .hdr-cta { padding: 7px 10px; font-size: 13px; }
  .hero h1, .page-hero h1 { font-size: 30px; }
  .btns > .btn { font-size: 15px; }
}
.grid > *, .split > * { min-width: 0; } .card { overflow-wrap: anywhere; }

/* Страницы калькуляторов (/kreditnyj-kalkulyator и др.) */
.page-hero .back { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; color: inherit; opacity: 0.8; margin-bottom: 10px; }
.page-hero .back:hover { opacity: 1; }
.faq { border: 1px solid #e3e8ef; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 17px; }
.faq p { margin: 10px 0 0; font-size: 17px; line-height: 1.65; }
.calc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc-links a { padding: 8px 14px; border-radius: 999px; background: #eef7fd; color: #1c4964; text-decoration: none; font-weight: 600; font-size: 15px; }
.tool-more { margin: 16px 0 0; font-weight: 600; font-size: 15px; line-height: 1.9; }
.tool-more a { text-decoration: none; }
