/* Лендинг «Квадера Брокер» (cream-crm.ru), помощь и документы. Без фреймворка, mobile-first.
   Макет — fontpage_v2 (Lovable); цвета — 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;
  --mint: #f7fbf9;
  --white: #fff;
  /* На тёмных разделах */
  --glow: #8fe0ad;
  --on-dark: #fff;
  --on-dark-soft: rgba(255, 255, 255, .72);
  --on-dark-line: rgba(255, 255, 255, .24);
  --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);
  --shadow-card: 0 20px 50px rgba(18, 32, 26, .08);
  --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: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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: 1360px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 900px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }
@media (min-width: 1100px) { .container { padding: 0 40px; } }

.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); }
.center { text-align: center; }

/* --- Кнопки --- */
.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 .icon { width: 17px; height: 17px; }
.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-900); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-900); }
.btn-accent { background: var(--glow); color: var(--brand-900); }
.btn-accent:hover { background: var(--brand-100); color: var(--brand-900); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.btn-outline-light:hover { background: var(--on-dark-line); color: var(--on-dark); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.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, .95); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }

/* Логотип (landing/_logo.html): знак — брендом, «Квадера | Брокер» — текстом. */
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { display: inline-flex; align-items: center; gap: .5em; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-mark svg { width: 1.6em; height: 1.6em; flex: none; }
.logo-plate { fill: var(--brand); }
.logo-tiles { fill: var(--white); }
.logo-name span { margin-left: .45em; padding-left: .45em; border-left: 1px solid var(--line); font-weight: 600; opacity: .75; }
.logo-inverted, .logo-inverted:hover { color: var(--on-dark); }
.logo-inverted .logo-plate { fill: var(--white); }
.logo-inverted .logo-tiles { fill: var(--brand-900); }
.logo-inverted .logo-name span { border-color: rgba(255, 255, 255, .4); }

.site-nav { display: none; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-login { display: none; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.header-login .icon { width: 15px; height: 15px; }
.header-login:hover { color: var(--brand); }
.header-actions .btn { display: none; }
.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: 72px; 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: 560px) { .header-actions .btn { display: inline-flex; } }
@media (min-width: 1100px) {
  .site-nav { display: flex; gap: 26px; 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: 20px; }
  .nav-login, .menu-toggle { display: none; }
  .header-login { display: inline-flex; }
}

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

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head > p:not(.eyebrow):not(.label) { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .label { justify-content: 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-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; }

.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; }

/* Надзаголовок с чертой, заголовок, вводный текст — главная */
.label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.label::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.title { font-size: clamp(30px, 4vw, 44px); font-weight: 750; letter-spacing: -.02em; line-height: 1.16; }
.title em, .cover h1 em { font-style: normal; color: var(--brand); }
.title-xl { font-size: clamp(34px, 4.4vw, 48px); }
.lead { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.narrow-title { max-width: 780px; }
.intro { display: grid; gap: 24px; }
.intro .lead { margin: 0; align-self: end; font-size: 16px; }
@media (min-width: 768px) { .intro { grid-template-columns: 1fr 1fr; } }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 14px; line-height: 1.6; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }

.tile-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 11px; background: var(--brand-50); color: var(--brand); transition: background .2s, color .2s;
}
.tile-icon .icon { width: 22px; height: 22px; }

/* Фон разделов: мятный и тёмный — с подсветкой сверху и вертикальной сеткой */
.band-mint { background: var(--mint); border-top: 1px solid var(--line); }
.band-soft { background: rgba(243, 248, 245, .7); }
.band-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-900); color: var(--on-dark); }
.band-dark::before, .band-dark::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.band-dark::before { background: radial-gradient(60% 130% at 50% 0%, rgba(31, 122, 85, .5), transparent 72%); }
.band-dark::after {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 96px 100%;
  -webkit-mask-image: radial-gradient(72% 110% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(72% 110% at 50% 0%, #000, transparent 78%);
}
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark .label, .band-dark .title em { color: var(--glow); }
.band-dark .lead { color: var(--on-dark-soft); }
.band-dark .ticks .icon { color: var(--glow); }

/* --- Первый экран: фото на всю ширину --- */
.cover { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-900); color: var(--on-dark); }
.cover-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.cover::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(12, 67, 45, .62); }
.cover-content { padding-top: 40px; padding-bottom: 30px; animation: cover-in .6s ease-out both; }
@keyframes cover-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cover-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--on-dark-soft); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.cover-eyebrow span { width: 6px; height: 6px; background: var(--glow); }
.cover h1 { max-width: 780px; margin-top: 24px; color: var(--on-dark); font-size: clamp(34px, 5.6vw, 64px); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.cover h1 em { color: var(--glow); }
.cover-brand { display: block; margin-bottom: 14px; color: var(--on-dark-soft); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.cover-lead { max-width: 540px; margin-top: 22px; color: var(--on-dark-soft); font-size: 14px; line-height: 1.8; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cover-terms { margin-top: 16px; color: var(--on-dark-soft); font-size: 12px; }
.cover-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 590px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--on-dark-line);
}
.cover-bottom p { color: var(--on-dark-soft); font-size: 12px; line-height: 1.8; }
.cover-bottom strong { color: var(--on-dark); font-weight: 500; }
.cover-scroll {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--on-dark-line); border-radius: 50%; color: var(--on-dark); transition: background .18s;
}
.cover-scroll:hover { background: var(--on-dark-line); color: var(--on-dark); }
.cover-scroll .icon { width: 18px; height: 18px; transform: rotate(90deg); }
.cover-caption { display: none; }
@media (min-width: 760px) {
  .cover::before { background: rgba(12, 40, 28, .32); }
  .cover-photo { object-position: center; }
  .cover-content { padding-top: 52px; padding-bottom: 36px; }
}
@media (min-width: 1100px) {
  .cover-caption {
    position: absolute; right: 40px; bottom: 36px; display: flex; flex-direction: column; gap: 7px;
    text-align: right; font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  }
}
@media (min-width: 1600px) { .cover-content { padding-top: 64px; padding-bottom: 42px; } }

.trust { background: var(--ink); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-top: 34px; padding-bottom: 34px; }
.trust-item { position: relative; padding-left: 26px; }
.trust-item span { position: absolute; left: 0; top: 4px; color: var(--on-dark-soft); font-size: 10px; }
.trust-item strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; }
.trust-item p { margin-top: 6px; color: var(--on-dark-soft); font-size: 12px; }
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding-left: 30px; border-right: 1px solid var(--on-dark-line); }
  .trust-item:last-child { border: 0; }
  .trust-item strong { font-size: 27px; }
}

/* --- Место для скриншота (landing/_shot.html) --- */
.shot {
  display: flex; flex-direction: column; overflow: hidden; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.shot-hero { aspect-ratio: 16 / 9; }
.shot-wide { aspect-ratio: 16 / 10; }
@media (min-width: 760px) { .shot-hero { aspect-ratio: 16 / 7; } .shot-wide { aspect-ratio: 21 / 9; } }
.shot-chrome { position: relative; display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.shot-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #f26b5b; }
.shot-chrome i:nth-child(2) { background: #f5c04a; }
.shot-chrome i:nth-child(3) { background: #4fc26b; }
.shot-chrome span {
  position: absolute; left: 50%; transform: translateX(-50%); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 16px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 10px;
}
.shot-body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; }
.shot-corner { position: absolute; width: 15px; height: 15px; border: 0 solid var(--brand); opacity: .5; }
.shot-corner:nth-child(1) { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.shot-corner:nth-child(2) { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.shot-corner:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.shot-corner:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.shot-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 50%; color: rgba(31, 122, 85, .5); }
.shot-body p { color: rgba(18, 32, 26, .7); font-size: 14px; font-weight: 500; }
.shot-body small { color: var(--muted); font-size: 12px; }

.workspace { padding: 48px 0; border-bottom: 1px solid var(--line); }
.workspace-grid { display: grid; gap: 28px; align-items: center; }
.workspace .title { font-size: clamp(30px, 3vw, 34px); }
.workspace .lead { max-width: 28em; font-size: 14px; }
@media (min-width: 760px) { .workspace { padding: 70px 0; } .workspace-grid { grid-template-columns: .85fr 1.15fr; gap: 60px; } }

/* --- Для кого: вкладки ролей --- */
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.role-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted);
  font: 500 14px/1 var(--font); cursor: pointer; transition: background .15s, color .15s;
}
.role-tab .icon { width: 16px; height: 16px; }
.role-tab:hover { background: var(--surface); color: var(--ink); }
.role-tab[aria-selected="true"] { background: var(--brand-900); border-color: var(--brand-900); color: var(--white); }
.role-panel { margin-top: 20px; }
.role-text { display: grid; gap: 8px 32px; margin-bottom: 40px; }
.role-text h3 { font-size: 24px; }
.role-text p { margin-top: 16px; max-width: 36em; color: var(--muted); font-size: 14px; line-height: 1.7; }
.role-text .ticks { margin-top: 8px; }
@media (min-width: 768px) { .role-text { grid-template-columns: 1.2fr 1fr; min-height: 155px; } }

/* --- Возможности: вводная полоса и блоки по одной возможности --- */
.process { padding: 58px 0; text-align: center; }
.process .label { justify-content: center; }
.process-title { margin-top: 24px; font-size: clamp(31px, 4.6vw, 54px); line-height: 1.1; }
.process-lead { max-width: 620px; margin: 24px auto 0; color: var(--on-dark-soft); font-size: 15px; line-height: 1.8; }
.process-flow {
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; margin-top: 36px;
  color: var(--on-dark-soft); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.process-flow span::after { content: "→"; margin-inline: 10px; color: var(--glow); }
.process-flow span:last-child::after { content: none; }
.process-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--on-dark-line); }
.process-index a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--on-dark-line); border-radius: 999px; color: var(--on-dark-soft);
  font-size: 12px; font-weight: 500; text-decoration: none; transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.process-index i { font-style: normal; font-size: 10px; color: var(--glow); }
.process-index .icon { width: 12px; height: 12px; }
.process-index a:hover { border-color: var(--glow); background: rgba(31, 122, 85, .35); color: var(--on-dark); transform: translateY(-2px); }
@media (min-width: 760px) { .process { padding: 96px 0; } .process-flow { font-size: 11px; } .process-flow span::after { margin-inline: 13px; } }

.feature { padding: 55px 0; border-top: 1px solid var(--line); }
.feature-dark { border-top-color: transparent; }
.feature-grid { display: grid; gap: 30px; align-items: center; }
.feature-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.feature-head .label { margin: 0; }
.feature-num { color: var(--brand); opacity: .38; font-size: 36px; line-height: 1; }
.feature h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.feature-text { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.feature-diff { margin-top: 28px; padding-left: 16px; border-left: 2px solid rgba(31, 122, 85, .4); color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; font-size: 15px; text-decoration: none; }
.feature-link .icon { width: 16px; height: 16px; }
.feature-visual { position: relative; padding: 20px 18px 12px; border-radius: 4px; background: #eff3f1; }
.feature-visual .shot { background: var(--white); box-shadow: var(--shadow-card); }
.feature-marker { display: block; margin-bottom: 15px; color: var(--brand); font-size: 10px; font-weight: 600; }
.feature-caption { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; color: var(--brand); font-size: 11px; font-weight: 500; }
.feature-caption .icon { width: 15px; height: 15px; }
.feature-dark .feature-num, .feature-dark .feature-link, .feature-dark .feature-link:hover { color: var(--glow); }
.feature-dark .feature-text, .feature-dark .feature-diff { color: var(--on-dark-soft); }
.feature-dark .feature-diff { border-color: var(--on-dark-line); }
.feature-dark .feature-visual { background: var(--white); }
.feature-dark .ticks { color: var(--on-dark); }
@media (min-width: 760px) {
  .feature { padding: 85px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 45px; }
  .feature-dark .feature-copy { order: 2; }
  .feature-num { font-size: 44px; }
  .feature-visual { padding: 35px 24px 14px; }
}
@media (min-width: 1100px) { .feature-grid { gap: 100px; } }

.more { display: grid; gap: 20px; margin-top: 48px; }
.more article {
  padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  transition: transform .2s, border-color .2s;
}
.more article:hover { transform: translateY(-4px); border-color: var(--brand); }
.more .tile-icon { margin-bottom: 16px; border-radius: 4px; }
.more h3 { font-size: 16px; }
.more p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (min-width: 640px) { .more { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .more { grid-template-columns: repeat(4, 1fr); } }

/* --- Почему не универсальная CRM; рост в CRM --- */
.gaps, .levels { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .gaps { grid-template-columns: 1fr 1fr; } .levels { grid-template-columns: repeat(3, 1fr); } }
.gap, .level {
  display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); box-shadow: 0 1px 2px rgba(18, 32, 26, .05); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.level { padding: 28px 26px 24px; border-radius: 14px; }
.gap:hover, .level:hover { transform: translateY(-4px); border-color: rgba(31, 122, 85, .45); box-shadow: var(--shadow-card); }
.gap:hover .tile-icon, .level:hover .tile-icon { background: var(--brand); color: var(--white); }
.gap-head { display: flex; align-items: center; justify-content: space-between; }
.gap-num { color: #5f9b80; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.level-num { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gap h3, .level h3 { margin-top: 20px; font-size: 19px; font-weight: 650; }
.level h3 { font-size: 21px; }
.gap > p, .level > p { margin: 10px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.gap-answer {
  display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 13px 15px;
  border: 1px solid rgba(31, 122, 85, .22); border-radius: 9px; background: #f3f8f5; color: var(--ink); font-size: 13px; line-height: 1.6;
}
.gap-answer span {
  flex: none; padding: 3px 8px; border-radius: 5px; background: var(--brand); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.gap-cta, .level-full { background: var(--brand-900); }
.gap-cta { justify-content: center; padding: 30px 28px; border: 0; }
.gap-cta:hover, .level-full:hover { transform: none; border-color: transparent; }
.gap-cta h3 { margin-top: 0; font-size: 25px; }
.gap-cta > p { margin-top: 12px; color: var(--on-dark-soft); }
.gap-cta .btn { align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.chips span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 550; }
.level-full { border: 0; }
.level-full .level-num { color: var(--glow); }
.level-full .tile-icon { background: rgba(255, 255, 255, .12); color: var(--glow); }
.level-full:hover .tile-icon { background: var(--glow); color: var(--brand-900); }
.level-full > p { color: var(--on-dark-soft); }
.level-full .chips span { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: var(--on-dark); }
#how .center { margin-top: 40px; }

/* --- Сравнение --- */
.compare-scroll { margin-top: 40px; overflow-x: auto; border: 1px solid var(--on-dark-line); border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 15px; }
.compare th, .compare td { padding: 18px 22px; border-bottom: 1px solid var(--on-dark-line); vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { padding-block: 22px; background: rgba(255, 255, 255, .07); color: var(--on-dark-soft); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.compare thead th:first-child { width: 34%; }
.compare thead th:last-child { width: 30%; background: rgba(143, 224, 173, .16); letter-spacing: 0; text-transform: none; }
.compare thead .logo-mark { font-size: 15px; }
.compare tbody th { color: var(--on-dark); font-weight: 600; }
.compare td { color: var(--on-dark-soft); }
.compare td:last-child { background: rgba(143, 224, 173, .1); color: var(--glow); font-weight: 550; }
.compare tbody tr:nth-child(even) { background: rgba(255, 255, 255, .045); }
.compare tbody tr:hover { background: rgba(255, 255, 255, .09); }
.compare-yes { display: flex; align-items: center; gap: 10px; }
.compare-yes .icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.compare-note { margin-top: 16px; color: rgba(255, 255, 255, .6); font-size: 12px; }

/* --- Тарифы из billing.Plan (sections/pricing.html) --- */
.pricing-head { display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px; }
.pricing-head .lead { max-width: 52em; margin-top: 16px; font-size: 14px; }
@media (min-width: 768px) { .pricing-head { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.period { display: flex; flex: none; align-self: flex-start; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
@media (min-width: 768px) { .period { align-self: auto; } }
.period button { padding: 8px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; }
.period small { font-size: 12px; }
.period button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
[data-period="month"] .price-year, [data-period="year"] .price-month { display: none; }

.plans { display: grid; gap: 20px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .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; }
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan-trial {
  padding: 5px 12px; border-radius: 999px; background: rgba(31, 122, 85, .12); color: var(--brand);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.plan-price { color: var(--muted); font-size: 14px; }
.plan-price b { color: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan-limits { list-style: none; padding: 16px 0; margin: 0; display: grid; gap: 6px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.plan-limits li::before { content: "— "; }
.plan-features { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--text); flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--brand); }
.plan-features .off { color: #9aa8a1; }
.plan-features .off .icon { color: #c3ccc7; }
.plan-note { color: var(--muted); font-size: 12px; }
.plan .btn { margin-top: 8px; padding: 14px 20px; }
.plans-foot { margin-top: 32px; text-align: center; color: var(--muted); }
.plans-terms { display: grid; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.plans-terms strong { display: block; margin-bottom: 4px; color: var(--ink); }
@media (min-width: 640px) { .plans-terms { grid-template-columns: repeat(3, 1fr); } }

/* Тёмная карточка — тариф с пробным периодом */
.plan-accent { background: var(--brand-900); border-color: var(--brand-900); color: var(--on-dark); }
.plan-accent h3, .plan-accent .plan-price b, .plan-accent .plan-limits, .plan-accent .plan-features { color: var(--on-dark); }
.plan-accent .plan-features .icon { color: var(--glow); }
.plan-accent .plan-price, .plan-accent .plan-note { color: rgba(255, 255, 255, .6); }
.plan-accent .plan-limits { border-color: rgba(255, 255, 255, .18); }
.plan-accent .plan-trial { background: rgba(255, 255, 255, .14); color: var(--on-dark); }
.plan-accent .plan-features .off, .plan-accent .plan-features .off .icon { color: rgba(255, 255, 255, .45); }

/* Тариф без публичных тарифов */
.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; }

/* --- Почему Квадера: фото с затемнением --- */
.experience { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); }
.experience > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.experience::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(12, 67, 45, .85); }
.experience-text { padding-top: 80px; padding-bottom: 80px; }
.experience .label { color: var(--glow); }
.experience .title { max-width: 680px; color: var(--on-dark); }
.experience .lead { max-width: 32em; color: rgba(255, 255, 255, .85); font-size: 14px; }
.experience-facts { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.experience-facts strong { font-size: 36px; font-weight: 700; }
.experience-facts p { margin-top: 6px; font-size: 14px; }
@media (min-width: 640px) {
  .experience::before { background: linear-gradient(90deg, rgba(12, 67, 45, .96), rgba(12, 67, 45, .82) 45%, rgba(12, 67, 45, .25)); }
}

/* --- Безопасность --- */
.security-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .security-grid { grid-template-columns: 1fr 1.5fr; } }
.security { display: grid; gap: 32px; }
@media (min-width: 640px) { .security { grid-template-columns: 1fr 1fr; } }
.security .icon { color: var(--brand); margin-bottom: 12px; }
.security h3 { font-size: 16px; }
.security p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* --- Скоро --- */
.soon { display: grid; gap: 28px 32px; margin-top: 40px; }
@media (min-width: 640px) { .soon { grid-template-columns: 1fr 1fr; } }
.soon article { padding-top: 20px; border-top: 1px solid var(--on-dark-line); }
.soon article div { display: flex; justify-content: space-between; gap: 12px; }
.soon h3 { font-size: 16px; }
.soon span { color: rgba(255, 255, 255, .5); font-size: 10px; text-transform: uppercase; }
.soon p { margin-top: 8px; color: var(--on-dark-soft); font-size: 14px; line-height: 1.65; }

.seo { padding: 48px 0; }
.seo h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.seo p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.checklist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-soft); font-size: 15px; }
.checklist li::before { content: "✦"; color: var(--glow); }

/* Две колонки */
.split { display: grid; gap: 40px; }
@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: 16px; 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); font-size: 14px; line-height: 1.7; }

/* --- Форма --- */
.request { border-top: 5px solid var(--brand); }
.request-mail { color: var(--on-dark-soft); font-size: 14px; }
.request-mail a { color: var(--on-dark); }
.form-card {
  display: grid; gap: 18px; padding: 24px; background: var(--white); color: var(--text);
  border-radius: 24px; box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
}
@media (min-width: 720px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@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: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); transition: all .15s;
}
.chip span:hover { border-color: var(--brand); }
.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; }
.site-footer .logo-mark { font-size: 16px; }
.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); }
.documents .older a { font-size: inherit; font-weight: 400; }
