/* Лендинг cream-crm.ru и страницы документов. Без фреймворка, mobile-first.
   Цвета — brand кабинета (frontend/web/src/main.tsx). */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-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 {
  --brand: #1f7a55;
  --brand-600: #196848;
  --brand-700: #13563b;
  --brand-900: #0c432d;
  --brand-50: #e9f4ee;
  --brand-100: #d5e9dd;
  --brand-200: #c8e6d4;
  --ink: #12201a;
  --text: #2c3b34;
  --muted: #5d6d65;
  --line: #e1e8e4;
  --surface: #f3f8f5;
  --white: #fff;
  --amber-bg: #fff3d6;
  --amber: #8a5a00;
  --blue-bg: #e6effc;
  --blue: #1d4f9a;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 32, 26, .06), 0 8px 24px rgba(18, 32, 26, .06);
  --shadow-lg: 0 2px 6px rgba(18, 32, 26, .08), 0 24px 60px rgba(12, 67, 45, .18);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: 3px solid rgba(31, 122, 85, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 900px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.muted { color: var(--muted); }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 20px;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(18, 32, 26, .2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { opacity: .9; color: var(--brand-700); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-lg.btn-primary { box-shadow: var(--shadow-lg); }
.btn-lg.btn-primary:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font: 600 12px/1.6 var(--font); font-style: normal; white-space: nowrap;
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-dark { background: var(--brand-900); color: var(--white); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }

/* --- Шапка --- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(225, 232, 228, .6);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-light, .logo-light:hover { color: var(--white); }
/* Логотип — SVG (landing/_logo.html): плашка и «CRE» — брендом, «AM» — цветом текста. */
.logo-svg { display: block; flex: none; width: auto; height: 32px; }
.logo-plate { fill: var(--brand); }
.logo-cre { fill: var(--white); }
.logo-am { fill: currentColor; }

.site-nav { display: none; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-login { display: none; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.header-login:hover { color: var(--brand); }
.menu-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer;
}

/* Меню на телефоне — раскрывается под шапкой (landing.js). */
.menu-open .site-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: 68px; padding: 8px 16px 16px;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.menu-open .site-nav a { padding: 10px 0; font-size: 17px; color: var(--ink); }

@media (min-width: 960px) {
  .site-nav { display: flex; gap: 32px; margin: 0 auto; }
  .menu-open .site-nav { position: static; flex-direction: row; padding: 0; box-shadow: none; border: 0; }
  .menu-open .site-nav a { padding: 0; font-size: 14px; color: var(--muted); }
  .header-actions { margin-left: 0; gap: 24px; }
  .nav-login, .menu-toggle { display: none; }
  .header-login { display: inline; }
}

/* --- Общее для разделов --- */
.eyebrow {
  color: var(--brand); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section { padding: 72px 0; }
.section-tint { background: var(--surface); }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 1024px) { .section-head { margin-bottom: 56px; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 20px;
}
.card p { color: var(--muted); font-size: 15px; }
.card-lg { padding: 32px; border-radius: 24px; gap: 12px; }
.card-lg h3 { font-size: 20px; margin-top: 12px; }
.card-lg p { font-size: 16px; }
.card-num { color: var(--brand); font-size: 48px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--brand-50); color: var(--brand); margin-bottom: 6px;
}
.card-icon .icon { width: 22px; height: 22px; }
.card-icon-lg { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 24px; }
.card-icon-lg .icon { width: 30px; height: 30px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 24px;
  font-weight: 600; text-decoration: none;
}
.card-link .icon { width: 16px; height: 16px; }

/* Большая скруглённая плашка: экосистема, форма */
.panel { display: grid; gap: 40px; padding: 32px 20px; border-radius: 32px; }
.panel-tint { background: var(--surface); }
.panel-deep { background: var(--brand-900); color: var(--white); }
.panel-deep h2 { color: var(--white); }
@media (min-width: 720px) { .panel { padding: 40px; } }
@media (min-width: 960px) { .panel { grid-template-columns: 1fr 1fr; padding: 64px; gap: 48px; } }

/* --- Первый экран --- */
.hero {
  padding: 48px 0 72px; overflow: hidden;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(207, 237, 220, .8), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--white));
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 18px; color: var(--muted); margin-top: 24px; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hero-facts li { color: var(--muted); font-size: 14px; }
.hero-facts li::before { content: "✦ "; color: var(--brand); }

@media (min-width: 1024px) {
  .hero { padding: 112px 0 96px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

/* Схема кабинета */
.hero-visual { position: relative; min-width: 0; }
.mock {
  display: flex; overflow: hidden; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.35; color: var(--ink);
}
.mock .icon { width: 13px; height: 13px; }
.mock-nav {
  display: none; flex-direction: column; gap: 1px; width: 156px; flex: none; padding: 14px 10px;
  border-right: 1px solid var(--line); font-weight: 500;
}
.mock-nav b { display: flex; margin: 0 4px 14px; }
.mock-nav b .logo-svg { height: 20px; }
.mock-nav span { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.mock-nav span .icon { color: var(--muted); }
.mock-nav .mock-org { margin-bottom: 10px; padding: 6px 8px; border: 1px solid var(--line); }
.mock-nav .on { background: var(--surface); color: var(--brand); }
.mock-count {
  margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--brand);
  color: var(--white); font: 600 10px/1.6 var(--font);
}
.mock-count-blue { background: var(--blue); }
.mock-count-muted { background: var(--brand-50); color: var(--muted); }
.mock-main { flex: 1; min-width: 0; padding: 16px; background: rgba(243, 248, 245, .6); }
.mock-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.mock-head strong { font-size: 18px; font-weight: 700; }
.mock-buttons { display: flex; gap: 6px; }
.mock-buttons em {
  display: flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--white); font-style: normal; font-weight: 600;
}
.mock-buttons .mock-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.mock-tabs { display: flex; gap: 16px; margin-top: 12px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mock-tabs span { padding: 0 6px 6px; }
.mock-tabs .on { border-bottom: 2px solid var(--brand); }
.mock-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mock-filters span {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--white); color: var(--muted);
}
.mock-filters .mock-strong { color: var(--ink); font-weight: 600; }
.mock-table { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.mock-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 12px; border-top: 1px solid var(--line); font-weight: 500;
}
.mock-row:first-child { border-top: 0; }
.mock-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row > span:nth-child(3) { display: none; }
.mock-th { font-weight: 600; padding: 8px 12px; }
.mock-toast {
  position: absolute; left: -8px; bottom: -28px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.35; max-width: 290px;
}
.mock-toast .icon {
  width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--brand); color: var(--white);
}
.mock-toast b { display: block; color: var(--ink); }
.mock-toast small { color: var(--muted); }

@media (min-width: 560px) {
  .mock-row { grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  .mock-row > span:nth-child(3) { display: block; }
  .mock-toast { left: -24px; }
}
@media (min-width: 640px) { .mock-nav { display: flex; } }

/* Фото под первым экраном */
.photo-band img {
  display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 24px; background: var(--surface);
}
@media (min-width: 720px) { .photo-band img { height: 420px; border-radius: 32px; } }

/* --- Как работает: тёмный раздел --- */
.section-deep { background: var(--brand-900); color: var(--white); }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep .eyebrow { color: var(--brand-200); }
.how-head { display: grid; gap: 32px; align-items: end; }
.how-head img { display: block; width: 100%; height: 256px; object-fit: cover; border-radius: 24px; }
@media (min-width: 840px) { .how-head { grid-template-columns: 1fr 1fr; gap: 40px; } }

.steps {
  list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 1px;
  background: rgba(255, 255, 255, .1); border-radius: 24px; overflow: hidden;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); margin-top: 64px; } }
.step { display: flex; flex-direction: column; gap: 8px; padding: 32px; background: var(--brand-900); }
.step h3 { font-size: 20px; margin-top: 4px; }
.step p { opacity: .7; }
.step-num { color: var(--brand-200); font-weight: 700; letter-spacing: -.02em; }

/* --- Возможности --- */
.features { display: grid; gap: 40px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); column-gap: 40px; row-gap: 48px; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.features article { padding-top: 20px; border-top: 1px solid rgba(18, 32, 26, .15); }
.features h3 { font-size: 16px; }
.features p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* --- Экосистема --- */
.ecosystem h2 { font-size: clamp(30px, 3.4vw, 36px); }
.ecosystem .muted { margin-top: 16px; }
.eco-list { display: grid; gap: 16px; align-content: start; }
.eco-list article { padding: 20px; border-radius: 16px; background: var(--white); }
.eco-list h3 { font-size: 16px; }
.eco-list p { color: var(--muted); font-size: 14px; }

/* --- Безопасность --- */
.security { display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .security { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .security { grid-template-columns: repeat(4, 1fr); } }
.security h3 { font-size: 16px; }
.security h3::before {
  content: ""; display: block; width: 40px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--brand);
}
.security p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Тариф без публичных тарифов */
.price-card {
  max-width: 560px; margin: 0 auto; padding: 32px; text-align: center;
  border: 1px solid var(--line); border-radius: 24px; background: var(--white);
}
.price-card .btn { margin-top: 20px; }

.checklist { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; opacity: .85; }
.checklist li::before { content: "✦"; }

/* Две колонки */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* --- Вопросы --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-weight: 600; color: var(--ink); font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--muted); }

/* --- Форма --- */
.request { padding: 0 0 72px; }
@media (min-width: 1024px) { .request { padding-bottom: 112px; } }
.request-text .eyebrow { color: var(--brand-200); }
.request-mail { opacity: .75; }
.request-mail a { color: var(--white); }
.form-card {
  display: grid; gap: 16px; padding: 24px; background: var(--white); color: var(--text);
  border-radius: 20px;
}
@media (min-width: 720px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field label span[aria-hidden] { color: var(--danger); }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: 16px/1.4 var(--font); color: var(--ink); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 122, 85, .18);
}
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; }
.form-alert { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--danger); font-size: 15px; }

.kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); transition: all .15s;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid rgba(31, 122, 85, .45); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--muted) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Спасибо, 404 */
.message-page { text-align: center; min-height: 60vh; display: grid; align-items: center; }
.message-page .hero-lead { margin: 16px auto 32px; }
.message-page .hero-actions { justify-content: center; }
.since-year { font-size: clamp(56px, 9vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--brand-100); margin-bottom: 8px; }

/* --- Подвал --- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 40px 0 24px; font-size: 14px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin-top: 12px; max-width: 24em; }
.footer-grid nav, .footer-contacts { display: grid; gap: 10px; align-content: start; }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* --- Cookie: полоса внизу, как в Wings --- */
.cookie-notice {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96);
  box-shadow: 0 -16px 44px rgba(12, 67, 45, .12); backdrop-filter: blur(14px);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner { min-height: 104px; padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 18px; }
.cookie-notice__icon { width: 42px; height: 42px; flex: 0 0 42px; fill: var(--brand); }
.cookie-notice__inner p { flex: 1; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cookie-notice__inner p a { color: var(--brand); font-weight: 700; }
.cookie-notice__actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .cookie-notice__inner { padding-top: 16px; padding-bottom: 16px; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; }
  .cookie-notice__icon { width: 34px; height: 34px; flex-basis: 34px; }
  .cookie-notice__inner p { flex: 1 1 calc(100% - 48px); }
  .cookie-notice__actions { width: 100%; }
  .cookie-notice__actions .btn { flex: 1; }
}

/* --- Документы (apps.legal) --- */
.legal-page { max-width: 860px; padding-top: 48px; padding-bottom: 80px; }
.legal-page h1 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 8px; }
.legal-page h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal-page p { margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 20px !important; }
.legal .lead { font-size: 18px; color: var(--ink); }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin: 6px 0; }
.notice { background: var(--brand-50); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 6px; }
.versions { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.versions ul { list-style: none; padding: 0; }
.documents { list-style: none; padding: 0; margin: 24px 0 0; }
.documents li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.documents a { font-size: 18px; font-weight: 700; }
.documents .meta { display: block; margin: 2px 0 0 !important; }
.documents p { margin: 6px 0 0; color: var(--muted); }


/* --- Тарифы из billing.Plan (sections/pricing.html) --- */
.plans { display: grid; gap: 20px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); } }
/* Ровно четыре тарифа — в одну строку, без «висящей» карточки. */
@media (min-width: 1200px) {
  .plans:has(> .plan:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
  .plans:has(> .plan:nth-child(4):last-child) .plan { padding: 28px 24px; }
  .plans:has(> .plan:nth-child(4):last-child) .plan-price b { font-size: 38px; }
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 18px; }
.plan-trial {
  padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--brand-700);
  font-size: 12px; white-space: nowrap;
}
.plan-price { color: var(--muted); }
.plan-price b { color: var(--ink); font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.plan-limits { list-style: none; padding: 16px 0; margin: 0; display: grid; gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.plan-limits li::before { content: "— "; color: var(--muted); font-weight: 400; }
.plan-features { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; font-size: 14px; color: var(--text); flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }
.plan-features .off { color: #9aa8a1; }
.plan-features .off .icon { color: #c3ccc7; }
.plan-note { color: var(--muted); font-size: 13px; }
.plan .btn { margin-top: 8px; padding: 12px 20px; }
.plans-foot { margin-top: 32px; text-align: center; color: var(--muted); }

/* Выделенная карточка — тариф с пробным периодом */
.plan-accent { background: var(--brand); border-color: var(--brand); color: var(--white); box-shadow: var(--shadow-lg); }
.plan-accent h3, .plan-accent .plan-price b, .plan-accent .plan-limits,
.plan-accent .plan-features, .plan-accent .plan-features .icon { color: var(--white); }
.plan-accent .plan-price, .plan-accent .plan-note, .plan-accent .plan-limits li::before { color: rgba(255, 255, 255, .7); }
.plan-accent .plan-limits { border-color: rgba(255, 255, 255, .2); }
.plan-accent .plan-trial { background: rgba(255, 255, 255, .15); color: var(--white); }
.plan-accent .plan-features .off, .plan-accent .plan-features .off .icon { color: rgba(255, 255, 255, .5); }
