/* Nomadium — лендинги (EN / RU / CN). Собирается вместе с landing/build_landing.py */
:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --page: #F6F7F9;
  --card: #FFFFFF;
  --line: #E4E7EC;
  --line-2: #D0D5DD;
  --accent: #2449F5;
  --accent-dark: #1A36C4;
  --accent-soft: #EEF2FF;
  --mark: #F04438;
  --mark-soft: #FEF3F2;
  --ok: #12B76A;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --wrap: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --head: 'Outfit', 'Inter', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
.lang-cn { --head: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Outfit', sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.lang-cn h1 { letter-spacing: 0; line-height: 1.25; }
.lang-cn h2, .lang-cn h3 { letter-spacing: 0; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.w-full { width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font); padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-text { background: none; color: var(--ink-2); padding-left: 10px; padding-right: 10px; }
.btn-text:hover { color: var(--accent); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- шапка */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 247, 249, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-mark { height: 34px; width: auto; display: block; }
.logo-word { height: 14px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: rgba(16, 24, 40, .05); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; padding: 3px; background: rgba(16, 24, 40, .06); border-radius: 9px; }
.lang-switch a { white-space: nowrap; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 5px 9px; border-radius: 7px; line-height: 1; }
.lang-switch a.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.lang-switch a:not(.is-active):hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--page); }
.mobile-nav nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mobile-nav nav > a { text-decoration: none; padding: 12px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }

/* ---------------------------------------------------------------- первый экран */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 16ch; text-wrap: balance; }
.lang-cn .hero-copy h1 { max-width: 16em; }
.lead { margin-top: 22px; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof svg { color: var(--ok); flex: none; }

/* окно каталога со схемой */
.epc { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -24px rgba(16, 24, 40, .18); overflow: hidden; }
.epc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.epc-car { font-weight: 600; }
.epc-tag { color: var(--muted); background: var(--page); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.epc-drawing { background-color: #FBFCFD; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; border-bottom: 1px solid var(--line); }
.epc-drawing { background-image: linear-gradient(rgba(208, 213, 221, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(208, 213, 221, .45) 1px, transparent 1px); }
.epc-svg { width: 100%; height: auto; }
.epc-svg .axis { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.epc-svg .fill { fill: #fff; stroke: #344054; stroke-width: 1.4; transition: fill .2s, stroke .2s; }
.epc-svg .hatched { fill: url(#hatch); }
.epc-svg .hatch { stroke: #98A2B3; stroke-width: 1; }
.epc-svg .thin { fill: none; stroke: #98A2B3; stroke-width: 1; }
.epc-svg .leader { stroke: var(--mark); stroke-width: 1; }
.epc-svg .dot { fill: var(--mark); }
.epc-svg .bubble { fill: #fff; stroke: var(--mark); stroke-width: 1.5; transition: fill .15s; }
.epc-svg .callout text { font: 600 13px var(--mono); fill: var(--mark); pointer-events: none; transition: fill .15s; }
.epc-svg .callout { cursor: pointer; outline: none; }
.epc-svg .callout:focus-visible .bubble { stroke-width: 3; }
.epc-svg .callout.is-on .bubble { fill: var(--mark); }
.epc-svg .callout.is-on text { fill: #fff; }
.epc-svg .part.is-on .fill { stroke: var(--mark); fill: var(--mark-soft); }
.epc-svg .part.is-on .hatched { fill: url(#hatch); }
.epc-table-wrap { overflow-x: auto; }
.epc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.epc-table th { white-space: nowrap; text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.epc-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.epc-table tr:last-child td { border-bottom: 0; }
.epc-table th:first-child, .epc-table td:first-child { padding-left: 18px; width: 44px; }
.epc-table td.num { font: 600 13px var(--mono); color: var(--mark); }
.epc-table td.mono { white-space: nowrap; }
.epc-table tbody tr { cursor: pointer; }
.epc-table tbody tr.is-on td { background: var(--mark-soft); }
.epc figcaption { padding: 10px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: #FBFCFD; }

/* ---------------------------------------------------------------- секции */
.section { padding: 88px 0; }
.section-tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); }

/* возможности: не одинаковые карточки, а сетка с линиями */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.feature { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.feature:nth-child(2n) { border-right: 0; }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.feature p { margin-top: 8px; color: var(--ink-2); }
.feature-sample { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); }
.feature-sample::before { content: ""; display: block; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); margin-bottom: 14px; }

.who { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.who-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.who ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.who li { border-top: 2px solid var(--ink); padding-top: 16px; }
.who li p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* как начать */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 28px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child { padding-bottom: 0; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--head); background: var(--page); border: 1px solid var(--line-2); }
.step:first-child .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { padding-top: 9px; }
.step p { margin-top: 6px; color: var(--ink-2); }
.trial-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 36px; position: relative; overflow: hidden; }
.trial-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); }
.trial-card h3 { font-size: 1.6rem; font-weight: 700; }
.trial-card p { margin: 12px 0 28px; color: #D0D5DD; }

/* марки */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 54px; font-size: 14px; font-weight: 500; }
.brand img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.brand .ph { width: 30px; height: 30px; flex: none; border-radius: 7px; background: var(--page); display: grid; place-items: center; font: 700 13px var(--head); color: var(--muted); }
.brand span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; font-size: 13.5px; }
.brand.is-extra { display: none; }
.brands.is-open .brand.is-extra { display: flex; }
#brandsMore { margin-top: 24px; }
.brands-skel { height: 54px; border-radius: 10px; background: linear-gradient(90deg, #EEF0F3 0, #F7F8FA 50%, #EEF0F3 100%); background-size: 200% 100%; animation: skel 1.4s infinite linear; }
@keyframes skel { to { background-position: -200% 0; } }

/* тарифы */
.periods { display: flex; justify-content: center; gap: 4px; padding: 4px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; margin: 0 auto 36px; }
.periods button { font: 600 14px var(--font); border: 0; background: none; color: var(--ink-2); padding: 9px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.periods button em { font-style: normal; color: var(--ok); font-weight: 700; margin-left: 4px; }
.periods button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 24px 48px -28px rgba(36, 73, 245, .45); padding: 34px 30px; margin: -8px 0; }
.plan-badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.plan-text { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 2.9em; }
.plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price b { font: 700 2.3rem/1.1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.plan-corp .plan-price b { font-size: 1.9rem; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-save { min-height: 22px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.plan-requests { margin-top: 14px; padding: 10px 12px; background: var(--page); border-radius: 9px; font-weight: 600; font-size: 14.5px; }
.plan-featured .plan-requests { background: var(--accent-soft); color: var(--accent-dark); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { color: var(--accent); flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.pricing-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.req-box { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 26px 28px; }
.req-box h3 { font-size: 1.05rem; }
.req-box ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.req-box li { display: grid; gap: 1px; font-size: 14.5px; }
.req-box li span { color: var(--muted); }
.trial-strip { background: var(--accent-soft); border-radius: var(--r-lg); padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.trial-strip p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.trial-strip .btn { align-self: flex-start; }

/* вопросы */
.faq-wrap { max-width: 820px; }
.faq-tabs { display: flex; gap: 6px; margin: 28px 0 12px; border-bottom: 1px solid var(--line); }
.faq-tabs button { font: 600 15px var(--font); background: none; border: 0; padding: 10px 4px; margin-right: 18px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.faq-tabs button.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: transform .2s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* призыв */
.cta-band { background: var(--accent); color: #fff; padding: 64px 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-row p { margin-top: 10px; color: #DCE3FF; font-size: 1.08rem; max-width: 36em; }

/* контакты */
.contacts { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.contact-main { display: grid; gap: 12px; align-content: start; }
.contact-link, .contact-phones { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 600; }
a.contact-link:hover { border-color: var(--ink); }
.contact-link svg, .contact-phones svg { color: var(--accent); flex: none; margin-top: 2px; }
.contact-phones div { display: grid; gap: 4px; }
.contact-phones a { text-decoration: none; }
.contact-phones a:hover { color: var(--accent); }
.contact-facts { margin: 0; display: grid; gap: 22px; }
.contact-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-facts dd { margin: 0; font-size: 15px; color: var(--ink-2); }

/* подвал */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-row p { margin-top: 10px; }
.logo-sm .logo-mark { height: 26px; }
.logo-sm .logo-word { height: 11px; }
@media (max-width: 420px) { .header-row .logo-word { height: 11px; } .header-row .logo-mark { height: 28px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 520px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- окно регистрации */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--card); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 32px 64px -16px rgba(16, 24, 40, .35); animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: var(--page); color: var(--ink); }
.modal-card h2 { font-size: 1.6rem; padding-right: 32px; }
.modal-text { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
#registerForm { margin-top: 22px; display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-login { padding-top: 14px; border-top: 1px dashed var(--line-2); }
.field { display: grid; gap: 5px; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field-label .opt { font-weight: 400; color: var(--muted); }
.field input { width: 100%; font: 400 15px var(--font); color: var(--ink); padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #98A2B3; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 73, 245, .15); }
.field input.is-bad { border-color: var(--mark); box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.field input[name="username"] { font-family: var(--mono); }
.field-hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { display: block; padding-right: 44px; }
.pass-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--muted); cursor: pointer; border-radius: 7px; }
.pass-toggle[aria-pressed="true"] { color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.agree a { color: var(--accent); }
.form-error { background: var(--mark-soft); color: #B42318; border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.reg-done { text-align: center; padding: 12px 4px 4px; }
.done-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #ECFDF3; color: var(--ok); }
.reg-done h2 { padding: 0; }
.reg-done p { margin: 12px auto 26px; color: var(--ink-2); max-width: 30em; }
.reg-done p b { font-family: var(--mono); color: var(--ink); }
body.modal-open { overflow: hidden; }


/* бейдж «B2B SaaS» над заголовком и блок «Как устроен сервис» */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.hero-badge svg { flex: none; }
.about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.about-grid h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.about-grid ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.about-grid li { border-top: 2px solid var(--accent); padding-top: 16px; }
.about-grid li p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 680px) { .about-grid ul { grid-template-columns: 1fr; gap: 20px; } }

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 1240px) {
  .main-nav a:last-child { display: none; }
  .header-row { gap: 20px; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .header-actions .lang-switch, .header-actions .btn-text { display: none; }
}
@media (max-width: 960px) {
  .hero { padding-top: 32px; }
  .hero-grid, .start-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { max-width: 16ch; }
  .who { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-featured { margin: 0; order: -1; }
  .pricing-foot { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .header-actions .btn-primary { padding: 8px 12px; font-size: 13.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0; padding: 24px; }
  .feature:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .who ul { grid-template-columns: 1fr; gap: 20px; }
  .epc-bar { padding: 10px 14px; }
  .epc-table th:first-child, .epc-table td:first-child { padding-left: 14px; }
  .epc-table { font-size: 12.5px; }
  .epc-table td { padding: 6px 8px; }
  .periods { width: 100%; }
  .periods button { flex: 1; padding: 9px 6px; font-size: 13px; }
  .periods button em { display: block; margin: 2px 0 0; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 20px 20px 0 0; padding: 26px 20px 22px; max-height: 94vh; max-height: 94dvh; }
  .trial-card { padding: 28px 24px; }
  .faq-item p { padding-right: 0; }
}
@media (max-width: 380px) {
  .header-actions .btn-primary { display: none; }
}

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