/* Сайт IT-COMP: главная (body.landing) и страницы документов (body.doc).
   Оформление — как у кабинета app.itcomp.kz (public/admin/style.css панели):
   те же токены, шрифт Inter, серый фон, белые скруглённые плитки, синий акцент,
   светло-синие вторичные кнопки и чёрная акцентная. Тёмная тема — только по выбору
   посетителя (кнопка в шапке, <html data-theme="dark">); по умолчанию — светлая. */

/* Inter — локальная копия из панели (fonts/). Переменный шрифт 400–700. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-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: "Inter"; font-style: normal; font-weight: 400 700; 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 700; font-display: swap;
  src: url("fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; 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;
}

/* Rubik — заголовки и цифры (OFL, локальная копия). Казахские буквы — в cyrillic-ext, ₸ — в latin-ext. */
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/rubik-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: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/rubik-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/rubik-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/rubik-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 {
  /* Фирменный зелёный — из логотипа IT-COMP (куб). Белый текст на --brand: контраст ≥ 4.5. */
  --brand: #078040;
  --brand-dark: #066a35;
  --brand-soft: #e2f3e8;
  --brand-softer: #f0f9f3;
  --logo: url("/img/logo-light.png");
  --bg: #f0f1f3;
  --card: #fff;
  --surface: #f4f5f7;
  --surface-hover: #ebecef;
  --border: #e6e7ea;
  --text: #1c1d1f;
  --muted: #6b6e75;
  --ink: #111214;
  --ink-text: #fff;

  --lime: #b5f26b;
  --lime-soft: #ecfdd6;
  --lime-text: #2f6b00;
  --peach: #ffe9c2;
  --peach-soft: #fff4e0;
  --peach-text: #8a4b00;
  --green: #1aa053;
  --no: #a4a7ae;

  --band: #0b2e1d; --band-card: #fff; --band-text: #fff; --band-muted: rgba(255, 255, 255, .68);
  --msg-user: #fff;
  --msg-bot: #dcf2e3;
  --chat-bg: #f4f5f7;

  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, .18);
  --ring: 0 0 0 3px rgba(7, 128, 64, .2);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Rubik", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Галочка / минус / плюс — маски, цвет задаётся background-color */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");

  color-scheme: light;
}
/* Тёмная тема — только по кнопке в шапке (<html data-theme="dark">), по умолчанию сайт светлый.
   Значения — как у панели в [data-theme="dark"]. */
:root[data-theme="dark"] {
  --brand: #2fb86a; --band-card: #10251a; --brand-dark: #4cc983; --brand-soft: #17301f; --brand-softer: #132619; --logo: url("/img/logo-dark.png");
  --bg: #0f1012; --card: #1b1c1f; --surface: #26272b; --surface-hover: #2f3035;
  --border: #2c2d31; --text: #e8e9eb; --muted: #8f939b; --ink: #f2f3f5; --ink-text: #111214;
  --lime-soft: #22311a; --lime-text: #a8e46a; --peach: #3d2e17; --peach-soft: #2e2416; --peach-text: #ffc46b;
  --green: #4cc983; --no: #6c7078;
  --msg-user: #26272b; --msg-bot: #1c3a27; --chat-bg: #151618;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px rgba(61, 139, 255, .3);
  color-scheme: dark;
}

/* ================= Основа ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
::selection { background: rgba(7, 128, 64, .22); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); font-weight: 600; }
b, strong { font-weight: 600; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
svg { flex-shrink: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

* { scrollbar-width: thin; scrollbar-color: rgba(128, 132, 140, .35) transparent; }

/* Логотип IT-COMP: куб и «comp». Для тёмной темы — вариант с белой надписью (токен --logo). */
.logo-i {
  display: inline-block; width: 120px; height: 44px; flex-shrink: 0;
  background: var(--logo) left center / contain no-repeat;
  transition: transform .3s var(--ease-spring);
  animation: logo-in .7s var(--ease-spring) .05s both;
}
.logo:hover .logo-i { transform: scale(1.03); }

/* Таблицы и поля — как в панели (на случай таблиц в документах) */
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 14px; line-height: 20px; outline: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus, select:focus { background: var(--card); border-color: var(--brand); box-shadow: var(--ring); }
code { background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; font-size: .9em; }

/* ================= Страницы документов ================= */
.doc {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(7, 128, 64, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.doc main {
  max-width: 820px; margin: 24px auto 48px; padding: 32px 40px 40px;
  background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
  animation: rise-in .5s var(--ease-out) both;
}
@media (max-width: 860px) { .doc main { margin: 12px 12px 32px; padding: 22px 18px 28px; border-radius: var(--r-lg); } }
.doc h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 8px; }
.doc h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; margin: 32px 0 8px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul { padding-left: 22px; }
.doc li::marker { color: var(--brand); }
.doc .muted { color: var(--muted); font-size: 14px; }
/* Незаполненное место в черновике документа — видно сразу */
.doc mark { background: #fff1b8; color: #6b4b00; padding: 1px 4px; border-radius: 4px; }
.doc table td:first-child { color: var(--muted); white-space: nowrap; }
/* Длинные ИИН, IBAN и адреса в реквизитах не распирают страницу на телефоне */
.doc th, .doc td { overflow-wrap: anywhere; }
@media (max-width: 480px) { .doc table td:first-child { white-space: normal; } }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.doc h2[id] { scroll-margin-top: 16px; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
/* Оглавление длинной оферты: свёрнуто, чтобы не отодвигать текст */
.doc .toc { margin: 20px 0 8px; background: var(--surface); border-radius: var(--r-md); padding: 4px 18px; }
.doc .toc summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.doc .toc ol { margin: 0 0 12px; padding-left: 24px; columns: 2 260px; column-gap: 32px; font-size: 15px; }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
.doc .toc li::marker { color: var(--muted); }
.doc .note { background: var(--brand-soft); border-radius: var(--r-md); padding: 12px 16px; }
.doc nav {
  display: flex; gap: 6px 4px; flex-wrap: wrap; align-items: center;
  margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.doc nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 7px 12px; border-radius: var(--r-sm); transition: background-color .15s ease, color .15s ease; }
.doc nav a:hover { background: var(--surface); }
.doc nav a:not(:first-child) { background: var(--brand-soft); color: var(--brand); }
.doc nav a:not(:first-child):hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%); }
.doc nav a:first-child {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; margin-right: auto;
  font-size: 0; background: none;
}
.doc nav a:first-child:hover { background: none; }
.doc nav a:first-child::before {
  content: ""; width: 98px; height: 36px; flex-shrink: 0;
  background: var(--logo) left center / contain no-repeat;
  transition: transform .3s var(--ease-spring);
}
.doc nav a:first-child:hover::before { transform: scale(1.03); }

/* ================= Главная: общие блоки ================= */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 860px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.landing h1, .landing h2, .landing h3 { margin: 0; text-wrap: balance; }
.landing h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
.landing h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
:where(.landing) p { margin: 0; }
.sub { margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 18px; line-height: 1.5; }

.sec { padding: 96px 0; }
.sec-white { background: var(--card); }
@media (max-width: 760px) { .sec { padding: 64px 0; } .sub { font-size: 16px; } }

/* Кнопки — как в панели: синяя, светло-синяя, чёрная */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: var(--r-sm); border: none;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand-soft) 75%, var(--brand) 12%); }
.btn-ink { background: var(--ink); color: var(--ink-text); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 85%, var(--brand) 15%); }
.btn-white { background: #fff; color: #05552b; }
.btn-white:hover { background: #e8f6ee; }
.btn-outline-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .1); }

/* ================= Шапка ================= */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.menu a:hover { background: var(--surface-hover); }
.menu .menu-login { display: none; }
.top-actions { display: flex; gap: 8px; align-items: center; }
/* Кнопка темы: луна в светлой теме, солнце в тёмной */
.theme-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.theme-btn:hover { background: var(--surface-hover); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: var(--card); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .top-actions { margin-left: auto; }
  .hide-sm { display: none; }
  .menu {
    display: none; position: absolute; left: 12px; right: 12px; top: 72px; flex-direction: column;
    background: var(--card); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-lg);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
  .menu .menu-login { display: block; color: var(--brand); }
}
.logo { white-space: nowrap; }
@media (max-width: 480px) { .hide-xs { display: none; } }
/* Узкие телефоны (360–400): логотип, тема, «Попробовать» и меню должны влезть в одну строку */
@media (max-width: 400px) {
  .top-in { gap: 10px; }
  .top-actions { gap: 6px; }
  .logo-i { width: 92px; height: 34px; }
  .theme-btn { width: 36px; height: 36px; }
  .burger { width: 40px; height: 40px; }
  .top-actions .btn-sm { padding: 8px 12px; }
}
@media (max-width: 340px) {
  .logo-i { width: 78px; height: 30px; }
  .top-actions .btn-sm { padding: 7px 10px; font-size: 13px; }
  .period label > span { padding: 8px 3px; font-size: 12px; }
}

/* ================= Первый экран ================= */
.hero { padding: 64px 0 88px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.015em; font-weight: 700; }
.lead { margin-top: 28px; max-width: 54ch; font-size: 19px; line-height: 1.5; color: var(--muted); }
.offer {
  margin-top: 30px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--card);
  display: grid; gap: 16px; max-width: 560px; box-shadow: var(--shadow-sm);
}
.offer-t { font-size: 17px; line-height: 1.4; }
.offer-t b { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.offer-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.offer-note { font-size: 14px; color: var(--muted); }
.channels { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.channels li { padding: 6px 12px; border-radius: 999px; background: var(--surface-hover); }
@media (max-width: 980px) {
  .hero { padding: 32px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .lead { font-size: 17px; }
}

/* Живая переписка: телефон с печатающимся диалогом */
.demo { position: relative; }
.demo-lang { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.demo-lang button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 10px; cursor: pointer; }
.demo-lang button[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); }
.phone {
  margin: 0; border-radius: 34px; background: var(--card); box-shadow: var(--shadow-lg);
  padding: 10px; max-width: 440px;
}
.phone-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.phone-head b { display: block; font-size: 15px; }
.phone-head div span { font-size: 13px; color: var(--green); }
.chat {
  background: var(--chat-bg); border-radius: 26px; padding: 18px 14px 14px;
  display: flex; flex-direction: column; gap: 10px; min-height: 430px;
}
.msg { max-width: 84%; padding: 10px 14px 8px; border-radius: 18px; font-size: 15px; line-height: 1.45; box-shadow: var(--shadow-sm); }
.msg p + p { margin-top: 6px; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.msg-in { align-self: flex-start; background: var(--msg-user); border-bottom-left-radius: 6px; }
.msg-out { align-self: flex-end; background: var(--msg-bot); border-bottom-right-radius: 6px; }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 18px; border-bottom-right-radius: 6px; background: var(--msg-bot); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .35; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat .appear { animation: msg-in .35s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.lead-card {
  margin-top: 10px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 20px; background: var(--lime-soft); color: var(--lime-text); font-size: 14px; line-height: 1.4;
}
.lead-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.lead-card[hidden] { display: none; }
@media (max-width: 980px) { .phone { max-width: none; } .chat { min-height: 400px; } }

/* ================= Сейчас / с ботом ================= */
.versus { margin-top: 44px; border-radius: var(--r-xl); background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-row + .vs-row { border-top: 1px solid var(--border); }
.vs-row > * { padding: 22px 28px; }
.vs-head { font-size: 14px; font-weight: 600; color: var(--muted); }
.vs-head > * { padding-top: 18px; padding-bottom: 14px; }
.vs-head .vs-new { color: var(--brand); }
.vs-old { color: var(--muted); }
.vs-new { background: var(--brand-softer); font-weight: 500; }
.vs-row:not(.vs-head) .vs-new { display: flex; gap: 12px; }
.vs-row:not(.vs-head) .vs-new::before {
  content: ""; width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; background: var(--brand);
  -webkit-mask: var(--i-check) center / 18px no-repeat; mask: var(--i-check) center / 18px no-repeat;
}
@media (max-width: 760px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > * { padding: 16px 18px; }
  .vs-old { padding-bottom: 6px; font-size: 15px; }
  .vs-new { background: none; padding-top: 0; }
}

/* ================= Продукты ================= */
.products { margin-top: 44px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.product { background: var(--surface); border-radius: var(--r-xl); padding: 30px; }
.product-main { grid-row: span 2; background: var(--band); color: var(--band-text); }
.product-main h3 { color: var(--band-text); font-size: clamp(24px, 2.6vw, 30px); }
.product-main > p { color: var(--band-muted); }
.product > p { margin-top: 10px; font-size: 16px; }
.product-side > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 15px; }
.product-main .ticks { grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 28px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; background: var(--lime-text);
  -webkit-mask: var(--i-check) center / 16px no-repeat; mask: var(--i-check) center / 16px no-repeat;
}
.product-main .ticks li::before { background: var(--lime); }
.soon-strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 18px 24px; border-radius: var(--r-lg); background: var(--peach-soft); color: var(--peach-text); font-size: 15px; }
.soon-strip b { font-weight: 600; }
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .product-main { grid-row: auto; }
  .product-main .ticks { grid-template-columns: 1fr; }
  .product { padding: 24px 20px; }
}

/* ================= Сравните с наймом ================= */
.hire { background: var(--band); color: var(--band-text); }
.hire h2 { color: var(--band-text); max-width: 20ch; }
.hire .sub { color: var(--band-muted); }
.calc { margin-top: 44px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.calc-in, .calc-out { border-radius: var(--r-xl); padding: 28px; }
.calc-in { background: rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 26px; }
.calc-out { background: var(--band-card); color: var(--text); }
.field { display: grid; gap: 8px; }
.field-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 15px; }
.field-top output { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
/* Ползунок нарисован сам: стандартный в тёмной теме браузера выглядит сломанным.
   Заполненная часть — градиент до --p (site.js ставит процент). */
.field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer;
  --p: 50%; --track: linear-gradient(to right, var(--lime) 0 var(--p), rgba(255, 255, 255, .18) var(--p) 100%);
}
.field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--track); }
.field input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--track); }
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(181, 242, 107, .35), 0 2px 6px rgba(0, 0, 0, .35);
}
.field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 4px rgba(181, 242, 107, .35), 0 2px 6px rgba(0, 0, 0, .35);
}
.field input[type="range"]:focus-visible { box-shadow: none; }
.field input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 255, 255, .55); }
.field input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(255, 255, 255, .55); }
.calc-how { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.5; color: var(--band-muted); }
.calc-how b { color: var(--band-text); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); flex-shrink: 0; }
.check small { display: block; font-size: 13px; color: var(--band-muted); }
.bars { display: grid; gap: 18px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 8px; }
.bar-label b { font-variant-numeric: tabular-nums; }
.bar { height: 16px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--muted); transition: width .45s var(--ease-out); }
.bar-bot i { background: var(--brand); width: 100%; }
/* Без JS — 176 из 720 часов; site.js пересчитывает. Не атрибутом style: его запрещает CSP (deploy/Caddyfile). */
.bar [data-bar] { width: 24%; }
.calc-lines { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); font-size: 15px; }
.calc-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total { margin-top: 22px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--brand); }
.calc-total p { font-size: 16px; line-height: 1.45; }
.calc-total b { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; display: block; margin-top: 4px; color: var(--text); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.calc-cta { margin-top: 20px; }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-in, .calc-out { padding: 22px 18px; }
}

/* ================= Запуск ================= */
.launch { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.launch li { position: relative; padding: 26px 24px 28px; border-radius: var(--r-xl); background: var(--card); }
.launch li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 18px;
}
.launch li.free { background: var(--brand); color: #fff; }
.launch li.free::before { background: rgba(255, 255, 255, .18); color: #fff; }
.launch li.free h3 { color: #fff; }
.launch li.free p { color: rgba(255, 255, 255, .85); }
.launch h3 { font-size: 18px; }
.launch p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .launch { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .launch { grid-template-columns: 1fr; } }

/* ================= Тарифы ================= */
.pricing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.period { display: inline-flex; gap: 4px; padding: 4px; margin: 0; border: 0; border-radius: 14px; background: var(--surface); }
.period label { cursor: pointer; }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period label > span { display: inline-block; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.period em { font-style: normal; color: var(--lime-text); }
.period input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.period input:focus-visible + span { box-shadow: var(--ring); }
.trial-line { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-text); font-size: 15px; font-weight: 500; }
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan { position: relative; padding: 28px 26px; border-radius: var(--r-xl); background: var(--surface); display: flex; flex-direction: column; }
.plan-hot { background: var(--card); box-shadow: 0 0 0 2px var(--brand), var(--shadow-md); }
.badge { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.plan h3 { font-size: 24px; }
.plan-for { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 3em; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.price-note { margin-top: 4px; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.price-note s { margin-left: 6px; }
.plan .btn { margin-top: 22px; }
.plus { margin-top: 24px; font-size: 14px; font-weight: 600; }
.lines { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: 15px; }
.lines li { display: flex; gap: 10px; }
.lines li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; background: var(--brand);
  -webkit-mask: var(--i-check) center / 16px no-repeat; mask: var(--i-check) center / 16px no-repeat;
}
.lines .soon { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--peach); color: var(--peach-text); font-size: 12px; font-weight: 600; }
.plan-custom { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: var(--r-xl); background: var(--surface); }
.plan-custom p { margin-top: 6px; color: var(--muted); max-width: 64ch; }
.pay-note { margin-top: 16px; color: var(--muted); font-size: 15px; text-align: center; }
.pay-note b { color: var(--text); font-weight: 600; }
@media (max-width: 480px) {
  .period { display: flex; width: 100%; }
  .period label { flex: 1; }
  .period label > span { display: block; text-align: center; padding: 9px 6px; font-size: 13px; }
}
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan-for { min-height: 0; } }

/* ================= Вопросы ================= */
.faq { margin-top: 36px; display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: var(--r-lg); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; background: var(--muted);
  -webkit-mask: var(--i-plus) center / 20px no-repeat; mask: var(--i-plus) center / 20px no-repeat; transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); display: grid; gap: 10px; max-width: 72ch; }

/* ================= Финальный призыв ================= */
.sec-cta {
  color: #fff;
  /* В тон полосе калькулятора: глубокий зелёный и мягкое свечение цвета куба из логотипа. */
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(47, 184, 106, .38), transparent 62%),
    radial-gradient(620px 380px at 0% 100%, rgba(181, 242, 107, .14), transparent 60%),
    var(--band);
}
.cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.sec-cta h2 { color: #fff; }
.cta p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 52ch; }
.cta .chat-hint { font-size: 15px; background: rgba(255, 255, 255, .14); padding: 12px 16px; border-radius: var(--r-sm); }
.cta-org { font-size: 14px !important; color: rgba(255, 255, 255, .7) !important; }
.cta-box { display: grid; gap: 10px; }
.contact-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: #fff; font-weight: 500; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.sec-cta :focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; gap: 28px; } }

/* ================= Кейс «Мы сами так работаем» ================= */
.sec-case { padding-top: 0; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px 48px; align-items: center; padding: 40px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow-sm); }
.case-kicker { margin: 0 0 10px; color: var(--brand); font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.case-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-stats li { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--brand-softer); }
.case-stats b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); line-height: 1; font-weight: 700; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.case-stats span { font-size: 15px; line-height: 1.4; color: var(--text); }
.case-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 980px) { .case { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .case { padding: 24px 18px; }
  .case-stats { grid-template-columns: 1fr; gap: 10px; }
  .case-stats li { grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 16px 18px; }
  .case-stats b { font-size: 30px; }
}

/* ================= Подвал ================= */
.foot { padding: 28px 0 96px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Плашка «Скидка 5% на первую оплату по приглашению» (site.js, ?ref=КОД) */
.ref-badge {
  margin: 12px auto 0; width: fit-content; max-width: calc(100% - 32px);
  padding: 8px 16px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 14px; font-weight: 600; text-align: center;
}
/* На телефоне плашка — в одну строку: в две она превращалась в «каплю» */
@media (max-width: 640px) {
  .ref-badge { font-size: 13px; padding: 6px 14px; }
}
