/* ── Шрифты подключены здесь же, а не отдельным файлом: лишняя таблица
   стилей — это ещё один блокирующий запрос перед первой отрисовкой. ── */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-var-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-var-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-var-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-var-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;
}

/* ===================================================================
   СРМРитуал — общие стили посадочных страниц и блога.

   Приведены к дизайну главной: светлый фон, Manrope в заголовках,
   фирменный фиолетовый #7c3aed, тёмная кнопка действия. Раньше эти
   страницы были тёмными в индиговой гамме — человек, перешедший
   с главной, попадал будто на другой сайт.

   Здесь намеренно нет backdrop-filter: размытие на липкой шапке
   заставляет браузер перерисовывать её на каждом кадре прокрутки,
   и на слабых машинах страница начинает мигать.
   =================================================================== */
:root {
  --bg: #fff; --bg2: #f6f7f9; --sf: #fff; --sf2: #f6f7f9;
  --border: #e4e7ec; --text: #101828; --muted: #475467;
  --pri: #7c3aed; --pri-d: #6d28d9; --pri-soft: #f3eeff;
  --ink-btn: #292d34;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 55%, #fb923c 100%);
  --ok: #027a48; --warn: #b54708; --err: #b42318;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh;
}
a { color: var(--pri); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pri-d); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Цветной акцент в заголовке — тот же градиент, что в финале главной */
.grad-text {
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== ШАПКА ===== */
.nav { position: sticky; top: 0; z-index: 100; padding: 0;
  background: #fff; border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
/* Знак несёт собственную заливку, подложка ему не нужна */
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark svg { display: block; }
.brand-name { font-family: 'Manrope', Inter, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.brand-accent { color: var(--pri); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login-link { font-size: 14.5px; font-weight: 600; color: var(--text); }
.nav-login-link:hover { color: var(--pri); }
@media (max-width: 600px) { .nav-login-link { display: none; } }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  background: var(--ink-btn); color: #fff !important; border-radius: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em; transition: background .2s; }
.nav-cta:hover { background: #16181d; }

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.crumbs { padding: 26px 0 0; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after { content: '›'; color: #98a2b3; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--pri); }
.crumbs li[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ===== ПЕРВЫЙ ЭКРАН ===== */
.p-hero { position: relative; padding: 42px 0 60px; overflow: hidden;
  background: linear-gradient(180deg, #faf9ff, #fff 70%); }
.p-hero::before { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 140%;
  background: radial-gradient(ellipse, rgba(124,58,237,.10), transparent 70%); pointer-events: none; }
.p-hero-inner { position: relative; z-index: 1; }
.p-tag { display: inline-block; padding: 5px 14px; border-radius: 100px; background: var(--pri-soft);
  font-size: 12.5px; font-weight: 700; color: var(--pri); margin-bottom: 18px; letter-spacing: .02em; }
.p-h1 { font-family: 'Manrope', Inter, sans-serif; font-size: clamp(32px, 5vw, 54px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.035em; margin-bottom: 20px; max-width: 900px; }
.p-lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 760px; line-height: 1.6; margin-bottom: 30px; }
.p-lead strong { color: var(--text); font-weight: 600; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em; transition: background .2s, border-color .2s;
  cursor: pointer; border: none; font-family: inherit; text-decoration: none; }
.btn-primary { background: var(--ink-btn); color: #fff !important; }
.btn-primary:hover { background: #16181d; color: #fff !important; }
.btn-ghost { background: #fff; color: var(--text) !important; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--pri); color: var(--pri) !important; }
.p-micro { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.p-micro span { display: inline-flex; align-items: center; gap: 6px; }
.p-micro svg { color: var(--ok); }

/* ===== СОДЕРЖАНИЕ ===== */
.p-section { padding: 70px 0; }
.p-section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.p-section h2 { font-family: 'Manrope', Inter, sans-serif; font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 18px; }
.p-section h3 { font-family: 'Manrope', Inter, sans-serif; font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800; letter-spacing: -.02em; margin: 30px 0 12px; color: var(--text); }
.p-section h4 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.p-section p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.p-section p strong, .p-section li strong { color: var(--text); font-weight: 600; }
.p-section ul { margin: 10px 0 20px 20px; }
.p-section ul li { position: relative; padding-left: 10px; margin-bottom: 8px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.p-section ul li::before { content: ""; position: absolute; left: -14px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--pri); }
.p-section blockquote { margin: 24px 0; padding: 18px 22px; background: var(--pri-soft);
  border-left: 3px solid var(--pri); border-radius: 10px; color: var(--text); font-style: normal; }

/* Сетки карточек */
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin: 24px 0; }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.p-card:hover { transform: translateY(-3px); border-color: #d6bbfb;
  box-shadow: 0 18px 40px -22px rgba(16,24,40,.22); }
.p-card h3 { font-size: 18px; margin: 0 0 10px; }
.p-card p { margin: 0; font-size: 15px; }
.p-card-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 11px;
  background: var(--pri-soft); color: var(--pri); align-items: center; justify-content: center; margin-bottom: 14px; }

/* Таблица */
/* Таблицы шире телефона и прокручиваются вбок. Тени у краёв появляются,
   только когда за краем действительно есть содержимое: два слоя закреплены
   за содержимым (local), два — за рамкой (scroll), и они гасят друг друга
   в крайних положениях. Без этой подсказки человек не догадается тянуть. */
.p-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 14px; border: 1px solid var(--border);
  background:
    linear-gradient(90deg, #fff 40%, rgba(255,255,255,0)) left center / 44px 100% no-repeat local,
    linear-gradient(270deg, #fff 40%, rgba(255,255,255,0)) right center / 44px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(16,24,40,0.16), rgba(16,24,40,0)) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(16,24,40,0.16), rgba(16,24,40,0)) right center / 16px 100% no-repeat scroll,
    #fff; }
.p-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.p-table th, .p-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
.p-table th { background: var(--bg2); font-weight: 700; font-size: 12.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; }
.p-table tr:last-child td { border-bottom: none; }
.p-table .ok { color: var(--ok); font-weight: 600; }
.p-table .bad { color: var(--err); }

/* Блок призыва */
.p-cta { background: var(--pri-soft); border: 1px solid #e3d6ff; border-radius: 22px;
  padding: 44px 36px; text-align: center; margin: 30px 0; }
.p-cta h2 { margin-bottom: 12px; }
.p-cta p { color: var(--muted); margin-bottom: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }
.p-cta .p-actions { justify-content: center; }

/* Вопросы и ответы */
.p-faq { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.p-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0; transition: border-color .2s; }
.p-faq details[open] { border-color: #d6bbfb; }
.p-faq summary { list-style: none; cursor: pointer; padding: 17px 22px; font-weight: 700; color: var(--text);
  font-size: 15.5px; position: relative; padding-right: 50px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--pri); transition: transform .2s; }
.p-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.p-faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Теги */
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.p-tags span, .p-tags a { display: inline-block; padding: 6px 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 100px; font-size: 12.5px; color: var(--muted); }
.p-tags a:hover { color: var(--pri); border-color: var(--pri); }

/* ===== ПОДВАЛ ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 54px 0 28px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.6; max-width: 340px; }
.footer-col h3, .footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--pri); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.footer-bottom strong { color: var(--text); font-weight: 600; }

/* ===== БЛОГ ===== */
.article { padding: 30px 0 70px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted);
  margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article-meta strong { color: var(--text); font-weight: 600; }
.article h2 { font-family: 'Manrope', Inter, sans-serif; font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; margin: 40px 0 14px; line-height: 1.2; letter-spacing: -.03em; }
.article h3 { font-family: 'Manrope', Inter, sans-serif; font-size: clamp(18px, 2vw, 22px);
  font-weight: 800; letter-spacing: -.02em; margin: 28px 0 10px; }
.article p { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.article ul, .article ol { margin: 10px 0 22px 20px; }
.article ul li { font-size: 17px; line-height: 1.75; color: var(--muted); margin-bottom: 10px; }
.article ol { list-style: decimal; padding-left: 22px; }
.article ol li { font-size: 17px; line-height: 1.75; color: var(--muted); margin-bottom: 10px; }
.article blockquote { font-style: normal; color: var(--text); font-size: 17px; }

/* min() в минимуме колонки: без него на экране уже 320px карточка не сжимается
   и вылезает за край, а тень обрезается overflow-x у body. */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin: 30px 0; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); border-color: #d6bbfb;
  box-shadow: 0 20px 44px -24px rgba(16,24,40,.24); }
.blog-card-cover { aspect-ratio: 16/9; background: var(--grad); display: flex; align-items: center;
  justify-content: center; color: #fff; font-family: 'Manrope', Inter, sans-serif; font-size: 34px;
  font-weight: 800; letter-spacing: -.03em; padding: 24px; text-align: center; line-height: 1.12; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 12px; color: #98a2b3; margin-bottom: 8px; }
.blog-card h2 { font-family: 'Manrope', Inter, sans-serif; font-size: 19px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 10px; line-height: 1.28; }
.blog-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.blog-card .more { color: var(--pri); font-size: 13px; font-weight: 700; }

/* ===== АДАПТИВ ===== */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav.mobile-open { position: relative; }
  .nav.mobile-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 8px 24px 14px; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); }
  /* Строка меню сама по себе высотой 24px — пальцем в неё попасть трудно,
     поэтому в открытом меню каждый пункт добирает высоту отступами. */
  .nav.mobile-open .nav-links a { padding: 11px 0; font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .p-hero { padding: 30px 0 46px; }
  .p-section { padding: 50px 0; }
  .p-cta { padding: 32px 20px; }
  .article { padding: 20px 0 50px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .p-actions .btn { width: 100%; justify-content: center; }
  .p-cta { padding: 26px 18px; }
  .nav-cta { display: none; }
  /* Таблицы прокручиваются вбок; уплотняем ячейки, чтобы влезало больше
     и прокручивать приходилось реже. */
  .p-table th, .p-table td { padding: 10px 12px; font-size: 13.5px; }
}

/* ── Мобильный: пальцем нужно попадать без прицеливания. Ссылки-строчки
   в подвале и карточках получают зону нажатия около 40px, длинные слова
   в заголовках переносятся, а не вылезают за край экрана. ── */
@media (max-width: 720px) {
  .footer-col a { padding: 9px 0; }
  .blog-card .more { display: inline-block; padding: 8px 0; }
  .crumbs a { display: inline-block; padding: 4px 0; }
  .p-tags span, .p-tags a { padding: 8px 14px; }
  .p-faq summary { padding-top: 19px; padding-bottom: 19px; }
}
.p-h1, .p-section h2, .p-section h3, .article h2, .article h3, .blog-card h2 { overflow-wrap: anywhere; }

/* ===== ФОРМА ЗАЯВКИ =====
   На посадках её раньше не было вовсе: главная кнопка вела на главную
   страницу, и человек, нажавший «Попробовать 14 дней», оказывался там,
   где уже находился. Разметка и поведение те же, что на главной. */
.p-overlay { position: fixed; inset: 0; background: rgba(16,24,40,0.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px; }
.p-overlay.open { display: flex; }
.p-modal { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 30px; }
.p-modal h3 { font-family: 'Manrope', Inter, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.p-modal .m-sub { font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.p-field { margin-bottom: 13px; }
.p-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.p-field input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 16px; font-family: inherit; outline: none; }
.p-field input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(124,58,237,0.14); }
.p-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted);
  margin: 12px 0; line-height: 1.45; }
.p-consent input { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--pri); }
.p-consent a { text-decoration: underline; }
.p-done { text-align: center; padding: 18px 0; display: none; }
