/* Главная (лендинг): Swiss Modernism 2.0 — сетка 12 колонок на всю ширину, тонкие линии вместо карточек, острые углы,
   один акцент (--ab-accent), обычная типографика без градиентного текста и свечений. */

.public:has(.lp) .glow-bg { display: none; }
.public:has(.lp) .public-nav { border-bottom: 1px solid var(--ab-border); backdrop-filter: none; background: var(--ab-bg); padding-left: var(--lp-gutter); padding-right: var(--lp-gutter); }

.public:has(.lp) { --lp-gutter: clamp(16px, 4vw, 72px); --lp-line: 1px solid var(--ab-border); }
.lp .mono { font-family: var(--ab-mono); letter-spacing: 0; }
.lp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }

/* ---------- первый экран ---------- */
.lp-hero { padding: clamp(32px, 6vw, 88px) var(--lp-gutter) clamp(32px, 5vw, 72px); border-bottom: var(--lp-line); row-gap: 40px; align-items: center; }
@media (min-width: 1024px) { .lp-hero { min-height: calc(100dvh - 66px); } }
.lp-hero { position: relative; overflow: hidden; isolation: isolate; }
.lp-hero-text, .lp-hero-side { grid-column: 1 / -1; position: relative; z-index: 1; }
@media (min-width: 1024px) {
    .lp-hero-text { grid-column: 1 / span 7; }
    .lp-hero-side { grid-column: 8 / -1; }
}
.lp-hero-side { display: grid; gap: 16px; }
/* 3D-фон на весь первый экран; панели полупрозрачные, чтобы сфера просвечивала. */
.lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.lp-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--ab-bg) 0%, color-mix(in srgb, var(--ab-bg) 70%, transparent) 38%, transparent 70%); }
@media (max-width: 1023px) { .lp-hero::after { background: color-mix(in srgb, var(--ab-bg) 55%, transparent); } }
.lp-kicker { margin: 0 0 20px; font-size: .82rem; color: var(--ab-text-2); text-transform: lowercase; }
.lp-hero h1 { margin: 0; font-size: clamp(2.2rem, 5.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 18ch; }
.lp-lead { margin: 28px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ab-text-2); }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.lp-note { margin: 16px 0 0; font-size: .85rem; color: var(--ab-accent); }

.lp-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--ab-text); color: var(--ab-text);
    background: transparent; font: 600 1rem var(--ab-font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.lp-btn:hover { background: var(--ab-text); color: var(--ab-bg); }
.lp-btn-main { background: var(--ab-accent); border-color: var(--ab-accent); color: #04121A; }
.lp-btn-main:hover { background: var(--ab-text); border-color: var(--ab-text); color: var(--ab-bg); }
.lp-btn-off { border-style: dashed; color: var(--ab-text-2); border-color: var(--ab-border); cursor: default; }
.lp-btn-off:hover { background: transparent; color: var(--ab-text-2); }
.lp-btn span { transition: transform .15s; }
.lp-btn:hover span { transform: translateX(3px); }

/* Рабочая панель: маршрут запроса. */
.lp-panel { border: var(--lp-line); background: color-mix(in srgb, var(--ab-surface) 86%, transparent); backdrop-filter: blur(6px); }

/* Рекомендуемое приложение — под панелью маршрута. */
.lp-app { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; border: 1px solid var(--ab-accent);
    background: color-mix(in srgb, var(--ab-surface) 88%, transparent); backdrop-filter: blur(6px); }
.lp-app-icon { width: 48px; height: 48px; }
.lp-app-tag { margin: 0 0 6px; font-size: .72rem; color: var(--ab-accent); text-transform: lowercase; }
.lp-app h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.lp-app p { margin: 8px 0 0; color: var(--ab-text-2); font-size: .92rem; line-height: 1.5; }
.lp-app-dl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.lp-btn-sm { min-height: 40px; padding: 0 14px; font-size: .88rem; gap: 8px; }
.lp-btn-sm .mono { font-size: .72rem; opacity: .8; }
.lp-app-more { font-size: .88rem; color: var(--ab-text-2); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.lp-app-more:hover { color: var(--ab-text); }
@media (max-width: 480px) { .lp-app { grid-template-columns: 1fr; } }
.lp-panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: var(--lp-line); font-size: .75rem; color: var(--ab-text-2); }
.lp-panel-head span:first-child { flex: 1; }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ab-success); }
.lp-route { display: grid; grid-template-columns: auto 1fr minmax(160px, 320px) 1fr auto; align-items: center; padding: clamp(18px, 3vw, 40px) 18px; }
.lp-route-node { display: grid; gap: 2px; font-weight: 600; font-size: .95rem; }
.lp-route-node small { font-weight: 400; color: var(--ab-text-2); font-size: .78rem; }
.lp-route-node .mono { font-size: .7rem; color: var(--ab-accent); }
.lp-route-brain .brain { max-width: 320px; }
.lp-route-line { height: 1px; background: repeating-linear-gradient(90deg, var(--ab-border) 0 6px, transparent 6px 10px); margin: 0 8px; }
.lp-panel-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: var(--lp-line); }
.lp-panel-facts div { padding: 12px 14px; }
.lp-panel-facts div + div { border-left: var(--lp-line); }
.lp-panel-facts dt { font-size: .7rem; color: var(--ab-text-2); }
.lp-panel-facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 560px) {
    .lp-route { grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center; }
    .lp-route-line { width: 1px; height: 18px; background: var(--ab-border); }
}

/* ---------- бегущая строка ---------- */
.lp-ticker { overflow: hidden; border-bottom: var(--lp-line); background: var(--ab-surface); }
.lp-ticker-track { display: flex; width: max-content; animation: lp-marquee 60s linear infinite; }
.lp-ticker:hover .lp-ticker-track { animation-play-state: paused; }
.lp-ticker-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 28px; border-right: var(--lp-line); white-space: nowrap; }
.lp-ticker-item b { font-weight: 600; }
.lp-ticker-item .mono { color: var(--ab-text-2); font-size: .82rem; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.lp-section { border-bottom: var(--lp-line); padding: clamp(40px, 6vw, 96px) var(--lp-gutter); }
.lp-section-head { margin-bottom: clamp(24px, 3vw, 48px); align-items: baseline; row-gap: 8px; }
.lp-index { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--ab-accent); }
.lp-section-head h2 { grid-column: 1 / -1; margin: 0; font-size: clamp(1.7rem, 3.4vw, 3rem); letter-spacing: -.025em; line-height: 1.05; font-weight: 700; }
.lp-section-sub { grid-column: 1 / -1; margin: 6px 0 0; color: var(--ab-text-2); max-width: 60ch; }
@media (min-width: 1024px) {
    .lp-index { grid-column: 1 / span 2; }
    .lp-section-head h2 { grid-column: 3 / span 7; }
    .lp-section-sub { grid-column: 3 / span 7; }
}

/* Шаги: колонки через вертикальные линии. */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: var(--lp-line); }
.lp-steps li { padding: 28px 0; border-bottom: var(--lp-line); }
@media (min-width: 900px) {
    .lp-steps { grid-template-columns: repeat(3, 1fr); border-bottom: var(--lp-line); }
    .lp-steps li { padding: 28px 28px 36px; border-bottom: 0; }
    .lp-steps li:first-child { padding-left: 0; }
    .lp-steps li + li { border-left: var(--lp-line); }
}
.lp-step-num { display: block; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--ab-border); font-weight: 400; margin-bottom: 18px; }
.lp-steps h3 { margin: 0 0 8px; font-size: 1.2rem; }
.lp-steps p { margin: 0; color: var(--ab-text-2); max-width: 36ch; }

/* Таблицы. */
.lp-table-wrap { overflow-x: auto; border-top: var(--lp-line); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.lp-table th, .lp-table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: var(--lp-line); vertical-align: top; }
.lp-table thead th { font-family: var(--ab-mono); font-size: .75rem; font-weight: 400; color: var(--ab-text-2); text-transform: lowercase; }
.lp-table tbody th { font-weight: 600; width: 22%; }
.lp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-no { color: var(--ab-text-2); }
.lp-yes { font-weight: 500; }
.lp-yes::before { content: "→ "; color: var(--ab-accent); font-weight: 700; }
.lp-models tbody th { width: auto; }
.lp-models tbody tr:hover { background: var(--ab-surface); }
.lp-more { margin-top: 18px; border: 0; background: transparent; color: var(--ab-accent); font: 600 1rem var(--ab-font); cursor: pointer; padding: 10px 0; min-height: 44px; }

/* Тарифы: две колонки через вертикальную линию. */
.lp-plans { display: grid; grid-template-columns: 1fr; border-top: var(--lp-line); }
@media (min-width: 900px) { .lp-plans { grid-template-columns: 1fr 1fr; } .lp-plan + .lp-plan { border-left: var(--lp-line); padding-left: clamp(24px, 3vw, 48px); } .lp-plan:first-child { padding-right: clamp(24px, 3vw, 48px); } }
.lp-plan { display: flex; flex-direction: column; gap: 14px; padding: 32px 0; }
.lp-plan + .lp-plan { border-top: var(--lp-line); }
@media (min-width: 900px) { .lp-plan + .lp-plan { border-top: 0; } }
.lp-plan-tag { margin: 0; font-size: .78rem; color: var(--ab-accent); }
.lp-plan h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; }
.lp-plan-text { margin: 0; color: var(--ab-text-2); max-width: 48ch; }
.lp-plan ul { list-style: none; margin: 6px 0 12px; padding: 0; }
.lp-plan li { padding: 10px 0; border-bottom: var(--lp-line); }
.lp-plan li::before { content: "— "; color: var(--ab-text-2); }
.lp-plan .lp-btn { align-self: flex-start; margin-top: auto; }

/* Терминал. */
.lp-term { border: var(--lp-line); background: #05080F; }
:root[data-theme="light"] .lp-term { background: #0B1120; }
.lp-term-tabs { display: flex; border-bottom: 1px solid #1E2A44; overflow-x: auto; }
.lp-term-tabs button { min-height: 44px; padding: 0 18px; border: 0; border-right: 1px solid #1E2A44; background: transparent; color: #8A97AE; font: 500 .85rem var(--ab-mono); cursor: pointer; white-space: nowrap; }
.lp-term-tabs button.on { color: #E6EDF7; background: #0D1526; box-shadow: inset 0 -2px 0 var(--ab-accent); }
.lp-term-body { margin: 0; padding: 22px 24px; color: #D6DEEA; font-size: .88rem; line-height: 1.7; overflow-x: auto; white-space: pre; }

/* Вопросы. */
.lp-faq { border-top: var(--lp-line); }
.lp-faq details { border-bottom: var(--lp-line); }
.lp-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; position: relative; min-height: 44px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--ab-mono); color: var(--ab-accent); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq p { margin: 0 0 22px; color: var(--ab-text-2); max-width: 70ch; }

/* Подвал. */
.lp-footer { padding: clamp(32px, 5vw, 72px) var(--lp-gutter) calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.lp-footer-mark { font-size: clamp(3rem, 13vw, 13rem); font-weight: 700; letter-spacing: -.05em; line-height: .85; color: var(--ab-surface-2); white-space: nowrap; user-select: none; }
.lp-footer-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: .8rem; color: var(--ab-text-2); }
.lp-footer-row a { color: var(--ab-accent); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .lp-ticker-track { animation: none; } }

/* ---------- скриншоты: широкий кадр приложения + высокий кадр телефона, ниже три равных ---------- */
.lp-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.lp-shot { grid-column: 1 / -1; margin: 0; display: grid; gap: 10px; align-content: start; }
.lp-shot a { display: block; border: var(--lp-line); background: var(--ab-surface); overflow: hidden; }
.lp-shot img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.lp-shot a:hover img { transform: scale(1.015); }
.lp-shot a:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 3px; }
.lp-shot figcaption { font-size: .92rem; color: var(--ab-text-2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lp-shot figcaption .mono { font-size: .7rem; color: var(--ab-accent); text-transform: lowercase; }
@media (min-width: 900px) {
    .lp-shot { grid-column: span 4; }
    .lp-shot-wide { grid-column: span 8; }
    .lp-shot-tall { grid-column: span 4; }
    /* Телефон целиком, по центру ячейки и той же высоты, что и широкий кадр рядом. */
    .lp-shot-tall a { display: flex; justify-content: center; padding: 18px 0; aspect-ratio: auto;
        height: calc((100vw - 2 * var(--lp-gutter)) * 8 / 12 * 900 / 1440 - 6px); box-sizing: border-box; }
    .lp-shot-tall img { width: auto; height: 100%; border-radius: 22px; border: 1px solid var(--ab-border); }
    .lp-shot-tall a:hover img { transform: none; }
}
/* Нижний ряд — одинаковые пропорции, кадр прижат к верху. */
.lp-shot:not(.lp-shot-wide):not(.lp-shot-tall) a { aspect-ratio: 16 / 10; }
.lp-shot:not(.lp-shot-wide):not(.lp-shot-tall) img { height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 899px) {
    .lp-shot-tall a { display: flex; justify-content: center; padding: 16px 0; }
    .lp-shot-tall img { width: min(300px, 80%); border-radius: 20px; border: 1px solid var(--ab-border); }
}
@media (prefers-reduced-motion: reduce) { .lp-shot img { transition: none; } }

/* Шапка на главной — в той же стилистике: без градиента и свечения, острые углы. */
.public:has(.lp) .public-nav .btn { border-radius: 0; min-height: 40px; }
.public:has(.lp) .public-nav .btn-primary { background: var(--ab-accent); color: #04121A; box-shadow: none; }
.public:has(.lp) .public-nav .btn-primary:hover { background: var(--ab-text); color: var(--ab-bg); box-shadow: none; }
.public:has(.lp) .public-nav .icon-btn { border-radius: 0; }
