/* Общие стили сайта lidvanto: шрифты, палитра, шапка с меню и языками, кнопки, подвал, метка «Бета».
   Подключают страницы на landing/docs/base.html — /docs/, /blog/, /features/, /compare/, /legal/ (поверх — docs.css,
   он опирается на переменные отсюда: --display, --ink, --line …). 2026-11-17: вынесено из стилей старого лендинга v1
   (static/landing/landing.css), когда продающей страницей осталась только v4 — у неё свои стили (landing/v2 + v3 + v4). */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-cyrillic.3a5ed4d11365.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin.8616dc355070.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../crm_public/fonts/inter/inter-cyrillic.7af197bf2ea6.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../crm_public/fonts/inter/inter-latin.4b73e2ff3024.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Палитра CRM: графит сайдбара, нейтральные серые рабочей области, чёрные кнопки. */
  --ink: #1a1a1a;
  --ink-2: #262626;
  --ink-3: #303030;
  --paper: #f1f1f1;
  --card: #ffffff;
  --line: #e3e3e3;
  --text: #303030;
  --muted: #616161;
  --crm: #0891b2;
  --tracker: #d97706;
  --ads: #e11d48;
  --ai: #7c3aed;
  --good: #16a34a;
  --bad: #dc2626;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* iOS Safari сам увеличивает «мелкий» текст (text autosizing). В макетах CRM, уменьшенных через zoom (.lp-shot__canvas),
   он раздувал заголовки и ссылки постбэков до огромных (2026-11-06). В CRM то же задано в base.css. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.lp {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ui-focus, #005bd3); outline-offset: 3px; border-radius: 6px; }

.lp-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* --- Кнопки ------------------------------------------------------------------ */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 14.5px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.lp-btn--primary { background: #303030; color: #fff; }
.lp-btn--primary:hover { background: #1a1a1a; }
/* На графитовых блоках основная кнопка светлая — как белая кнопка на тёмных карточках CRM. */
:is(.lp-header, .lp-hero, .lp-final) .lp-btn--primary { background: #fff; color: #1a1a1a; }
:is(.lp-header, .lp-hero, .lp-final) .lp-btn--primary:hover { background: #ebebeb; }
.lp-btn--ghost { color: inherit; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.lp-btn--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.lp-btn--light:hover { background: rgba(255, 255, 255, .14); }
/* --- Шапка ------------------------------------------------------------------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 26, 26, .96);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lp-header__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.lp-nav { display: flex; gap: 4px; margin-right: auto; }
.lp-nav a { padding: 8px 11px; white-space: nowrap; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: 14.5px; text-decoration: none; transition: color .2s, background-color .2s; }
.lp-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lp-nav a[aria-current="page"] { color: #fff; }
.lp-header__actions { display: flex; gap: 8px; }
.lp-nowrap { white-space: nowrap; }
.lp-footer { padding: 28px 0; background: var(--ink); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .06); }
.lp-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.lp-footer .lp-logo { color: #fff; font-size: 16px; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-right: auto; } /* на телефоне ссылки переносятся, а не растягивают страницу */
.lp-footer nav a { font-size: 14px; text-decoration: none; }
.lp-footer nav a:hover { color: #fff; }

/* --- Адаптив ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .lp-nav { display: none; }
  .lp-header__actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .lp-wrap { width: min(1200px, 100% - 32px); }
  .lp-header__actions .lp-btn--ghost { display: none; }
  .lp-header__actions > .lp-lang { display: none; }  /* язык — в меню */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Переключатель языка сайта (RU/EN) в шапке */
/* Переключатель языка сайта (landing/_lang_menu.html): <details> с выпадающим списком */
.lp-lang { position: relative; display: inline-flex; }
.lp-lang__current { display: inline-flex; align-items: center; gap: 6px; height: 100%; min-height: 42px; padding: 0 10px; border-radius: 8px; font: 600 13px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; color: rgba(255,255,255,.72); cursor: pointer; list-style: none; user-select: none; }
.lp-lang__current::-webkit-details-marker { display: none; }
.lp-lang__current svg { transition: transform .2s; }
.lp-lang[open] .lp-lang__current svg { transform: rotate(180deg); }
.lp-lang__current:hover, .lp-lang__current:focus-visible, .lp-lang[open] .lp-lang__current { color: #fff; background: rgba(255,255,255,.08); outline: none; }
.lp-lang__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 176px; padding: 6px; border-radius: 12px; background: #242424; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.lp-lang__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: 14px; text-decoration: none; }
.lp-lang__menu a b { width: 22px; font: 600 12px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; color: rgba(255,255,255,.5); }
.lp-lang__menu a:hover, .lp-lang__menu a:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: none; }
.lp-lang__menu a[aria-current] { color: #fff; }
.lp-lang__menu a[aria-current] b { color: #f59e0b; }
/* Узкий телефон: длинная кнопка на испанском/португальском («Experimentar grátis») и меню языка помещаются в шапку */
@media (max-width: 480px) {
  .lp-header__inner { gap: 12px; }
  .lp-header__actions { gap: 4px; }
  .lp-header .lp-btn { height: 38px; padding: 0 12px; font-size: 13.5px; }
  /* 2026-11-09: все кнопки шапки одной высоты — раньше меню (42) было выше «Попробовать бесплатно» (38). */
  .lp-header .lp-menu-btn { width: 38px; height: 38px; border-radius: 11px; }
  .lp-lang__current { min-height: 38px; padding: 0 8px; }
}
/* Совсем узкий экран: в шапке остаётся знак логотипа без надписи — иначе «Попробовать бесплатно» не помещается */
@media (max-width: 430px) {
  .lp-header .lp-logo span { display: none; }
  .lp-header__actions { margin-left: auto; }
}

/* --- Меню шапки на телефоне и планшете -------------------------------------- */
.lp-menu-btn { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.lp-menu-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lp-menu-btn__close, .lp-menu-btn[aria-expanded="true"] .lp-menu-btn__open { display: none; }
.lp-menu-btn[aria-expanded="true"] .lp-menu-btn__close { display: inline; }
.lp-menu { max-height: calc(100svh - 64px); overflow-y: auto; border-top: 1px solid rgba(255, 255, 255, .08); background: #1a1a1a; }
.lp-menu[hidden] { display: none; }
.lp-menu__inner { display: grid; gap: 18px; padding: 14px 0 22px; }
.lp-menu__nav { display: grid; }
.lp-menu__nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .86); font-size: 16px; text-decoration: none; }
.lp-menu__nav a:hover { color: #fff; }
.lp-menu__langs { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-menu__langs a { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78); font-size: 14px; text-decoration: none; }
.lp-menu__langs a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; }
.lp-menu__actions { display: grid; gap: 8px; }
.lp-menu__actions .lp-btn { width: 100%; height: 48px; }
.lp-header .lp-menu .lp-btn--primary { background: #fff; color: #1a1a1a; }
@media (max-width: 1080px) { .lp-menu-btn { display: inline-grid; } }
@media (min-width: 1081px) { .lp-menu { display: none !important; } }
/* Пока открыто меню, нижняя плашка конструктора тарифа («Ваш тариф · К итогу») его не перекрывает. */
body.is-menu-open .pb-mobilebar { display: none; }

/* Закрытая бета (crm_billing/beta.py, 2026-11-15): метка у логотипа, строка над заголовком первого экрана и над тарифами. */
.lp-beta { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: #fbbf24; color: #1a1a1a; font: 700 12px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; } /* DR-3: не меньше 12px */
