@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --max: 1260px;
    --header-h: 88px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --shadow-lg: 0 28px 70px rgba(20, 43, 83, 0.12);
    --shadow-md: 0 14px 38px rgba(20, 43, 83, 0.08);
    --transition: .22s ease;
}

:root[data-theme='light'] {
    --bg: #f4f8ff;
    --bg-elev: rgba(255, 255, 255, 0.88);
    --surface: #ffffff;
    --surface-soft: #edf4ff;
    --surface-strong: #ffffff;
    --text: #10213d;
    --muted: #566780;
    --line: rgba(17, 36, 68, 0.10);
    --line-strong: rgba(17, 36, 68, 0.16);
    --accent: #2c8cff;
    --accent-2: #41c5ff;
    --accent-3: #5af2c7;
    --hero-grad-a: rgba(44, 140, 255, 0.14);
    --hero-grad-b: rgba(65, 197, 255, 0.16);
}

:root[data-theme='dark'] {
    --bg: #071422;
    --bg-elev: rgba(11, 26, 44, 0.82);
    --surface: #0f2035;
    --surface-soft: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(13, 30, 50, 0.96);
    --text: #edf5ff;
    --muted: #98a9bf;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --accent: #53a6ff;
    --accent-2: #63ddff;
    --accent-3: #72f1c5;
    --hero-grad-a: rgba(83, 166, 255, 0.18);
    --hero-grad-b: rgba(99, 221, 255, 0.16);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.36);
    --shadow-md: 0 14px 38px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(900px 520px at 0% -10%, var(--hero-grad-a), transparent 55%),
    radial-gradient(960px 540px at 100% 0%, var(--hero-grad-b), transparent 52%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, #ffffff 12%) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button, input, textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.brand {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.nav-shell {
    min-width: 0;
}

.main-nav {
    min-width: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-item.is-hidden {
    display: none;
}

.nav-link {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover,
.nav-dropdown.open > .nav-link,
.nav-link:focus-visible {
    color: var(--text);
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.dropdown-panel {
    z-index: 30;
}

.more-panel, .solution-panel {
    pointer-events: auto;
}

.final-cta {
    align-items: center;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.caret {
    font-size: 12px;
    opacity: .75;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
    box-shadow: var(--shadow-md);
    display: none;
    gap: 10px;
}

.nav-dropdown.open > .dropdown-panel {
    display: grid;
}

/* .nav-list задаёт white-space: nowrap — иначе тексты в мегаменю не переносятся и наезжают на соседние колонки */
.nav-dropdown > .dropdown-panel {
    white-space: normal;
}

.solution-panel {
    min-width: 620px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dropdown-group {
    display: grid;
    gap: 8px;
}

.dropdown-group > span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
}

.dropdown-panel a {
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--muted);
    transition: var(--transition);
}

.dropdown-panel a:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.more-panel {
    min-width: 220px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    position: relative;
    cursor: pointer;
}

.theme-sun, .theme-moon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

:root[data-theme='dark'] .theme-sun,
:root[data-theme='light'] .theme-moon {
    opacity: 0;
    transform: scale(.68);
}

.lang-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.lang-switch button {
    min-width: 42px;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.lang-switch button.active {
    background: var(--surface-soft);
    color: var(--text);
}

.btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 24px rgba(44, 140, 255, 0.22);
}

:root[data-theme='dark'] .btn-primary {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.btn-secondary {
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-color: var(--line);
}

.desktop-cta {
    white-space: nowrap;
}

.burger {
    --burger-line-w: 20px;
    --burger-line-h: 2px;
    --burger-gap: 5px;
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--burger-gap);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.burger:focus {
    outline: none;
}

.burger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 65%, var(--line));
    outline-offset: 2px;
}

.burger span {
    display: block;
    width: var(--burger-line-w);
    min-width: var(--burger-line-w);
    max-width: var(--burger-line-w);
    height: var(--burger-line-h);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--burger-line-h);
    background: var(--text);
    flex-shrink: 0;
}

.burger span + span {
    margin-top: 0;
}

.mobile-nav {
    display: none;
    padding-bottom: 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-link, .mobile-group-toggle {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-link.is-active,
.mobile-group-toggle.is-active {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface) 88%);
    font-weight: 700;
}

.mobile-group-body {
    display: none;
    padding-top: 8px;
    gap: 8px;
}

.mobile-group-body {
    padding-left: 12px;
    margin-left: 10px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}

.mobile-group-body .mobile-link {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
    font-size: 13px;
}

.mobile-group-body .mobile-link:hover,
.mobile-group-body .mobile-link:focus-visible {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
    color: var(--text);
}

.mobile-group.open .mobile-group-body {
    display: grid;
}

.mobile-group-block {
    display: grid;
    gap: 8px;
}

.mobile-group-block > span {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 2px 0;
}

@media (max-width: 980px) {
    /* mobile header is sticky: allow menu itself to scroll */
    .mobile-nav.open {
        max-height: calc(100vh - var(--header-h) - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    color: var(--muted);
    font-size: 13px;
}

.sep {
    opacity: .5;
}

main section.section, .hero {
    padding: 34px 0;
}

.section-tight {
    padding-top: 12px !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-card, .feature-card, .metric-card, .screen-card, .trust-strip, .quote-card, .cta-band,
.form-shell, .form-card, .contact-info-card, .pricing-table-wrap, .prose-card, .contour-card, .architecture-card {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.hero-card {
    padding: 34px;
    border-radius: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 26px;
}

.hero-compact .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
}

/* hero без правой колонки (только текст слева) */
.hero-card.hero-contacts--no-aside,
.hero-card.hero-contacts.hero-contacts--no-aside,
.hero-card.hero-faq.hero-contacts--no-aside,
.hero-card.hero-demo.hero-contacts--no-aside,
.hero-card.hero-delivery.hero-contacts--no-aside,
.hero-card.hero-cases.hero-contacts--no-aside {
    grid-template-columns: 1fr;
}

.hero-contacts--no-aside .hero-copy {
    max-width: none;
    width: 100%;
}

/* documents — hero без мозаики с экранами */
.hero-card.hero-module.hero-documents--no-aside {
    grid-template-columns: 1fr;
}

.hero-documents--no-aside .hero-copy {
    max-width: none;
    width: 100%;
}

/* modules/booking — hero без мозаики с экранами */
.hero-card.hero-module.hero-booking--no-aside {
    grid-template-columns: 1fr;
}

.hero-booking--no-aside .hero-copy {
    max-width: none;
    width: 100%;
}

.documents-templates-section .section-intro {
    max-width: none;
    width: 100%;
    margin-bottom: 28px;
}

.documents-templates-section .documents-templates-cards {
    width: 100%;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: .97;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-copy p, .section-intro p, .feature-card p, .quote-card p, .screen-card p,
.form-copy p, .contact-info-card p, .pricing-note, .prose-card p, .faq-answer p {
    color: var(--muted);
    line-height: 1.72;
}

.hero-actions, .hero-chips, .cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-chips {
    margin-top: 22px;
}

.hero-chips span, .footer-pills span, .audience-pills span {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-size: 13px;
    font-weight: 600;
}

/* Внешний span + внутренний data-i18n давали двойную «таблетку»; обёртка без бокса, стиль — на внутреннем span. Только если внутри один дочерний span (без текста рядом), иначе ломается чип «<span>…</span> и текст». */
.hero-chips > span:has(> span:only-child),
.footer-pills > span:has(> span:only-child),
.audience-pills > span:has(> span:only-child) {
    display: contents;
}

.hero-visual, .solution-visual, .industry-panel, .delivery-panel, .pricing-side, .contacts-visual {
    display: grid;
    gap: 14px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mosaic-grid.narrow .screen-card:first-child {
    grid-column: span 2;
}

.platform-visual-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.screen-card {
    border-radius: 24px;
    padding: 14px;
    min-height: 100%;
}

.screen-card.is-featured {
    grid-column: span 2;
}

.screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.screen-top span, .screen-top strong {
    color: var(--text);
}

.screen-card img {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-soft), transparent);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.metrics-grid.metrics-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* auto-fit: не держим пять колонок в узкой колонке hero и на мобильных (см. медиазапросы ниже) */
.metrics-grid.metrics-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

/* solutions/property-showcase — первая карточка на всю ширину сетки */
.card-grid.cols-3 .showcase-lead-card {
    grid-column: 1 / -1;
}

.showcase-lead-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: center;
}

.showcase-lead-figure {
    margin: 0;
    justify-self: center;
    width: 100%;
    max-width: min(100%, 560px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-soft), var(--surface));
    box-shadow: var(--shadow-sm);
}

.showcase-lead-figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.showcase-lead-copy .bullet-list {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .showcase-lead-card-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .showcase-lead-figure {
        order: -1;
        max-width: 520px;
        margin-inline: auto;
        width: 100%;
        justify-self: center;
    }
}

.showcase-views-split {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    min-width: 0;
}

.showcase-views-kicker {
    margin: 0 0 14px;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text);
}

.showcase-view-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: showcase-view 0;
}

.showcase-view-list > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
    counter-increment: showcase-view;
}

.showcase-view-list > li:last-child {
    border-bottom: none;
}

.showcase-view-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 12px 4px 14px 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--muted);
    transition: color 0.15s ease, background 0.15s ease;
    border-radius: 12px;
}

.showcase-view-link:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
}

.showcase-view-link.active {
    color: var(--text);
}

.showcase-view-link.active .showcase-view-title {
    font-weight: 800;
}

.showcase-view-num {
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: inherit;
    padding-top: 2px;
    min-width: 2.25rem;
}

.showcase-view-num::before {
    content: counter(showcase-view, decimal-leading-zero) '.';
}

.showcase-view-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.showcase-view-title {
    display: block;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: inherit;
}

.showcase-view-desc {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted);
}

.showcase-view-link.active .showcase-view-desc {
    color: color-mix(in srgb, var(--muted) 85%, var(--text) 15%);
}

.showcase-views-preview {
    min-width: 0;
}

.showcase-views-preview .screen-shot-card {
    min-height: 200px;
}

.showcase-view-slides {
    position: relative;
}

.showcase-view-slide {
    display: none;
}

.showcase-view-slide.is-active {
    display: block;
}

.showcase-view-slide img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.showcase-view-slide--narrow img {
    display: block;
    margin-inline: auto;
}

.showcase-view-slide--narrow-md img {
    width: 75%;
    max-width: 720px;
}

.showcase-view-slide--narrow-sm img {
    width: 50%;
    max-width: 480px;
}

.showcase-view-bld-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.showcase-view-bld-stack .showcase-view-bld-base {
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.showcase-view-bld-overlay {
    position: absolute;
    right: 0;
    top: 12%;
    width: min(290px, 42%) !important;
    max-width: none !important;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .showcase-views-split {
        grid-template-columns: 1fr;
    }

    .showcase-views-preview {
        order: -1;
    }
}

/* solutions/crm — композит в герое как на старом сайте */
.crm-hero-visual {
    align-self: center;
}

.crm-hero-card-inner {
    border-radius: 26px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: clamp(18px, 3vw, 28px);
}

.crm-hero-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(320px, 52vw);
    padding: 12px 0 24px;
}

.crm-hero-stack .crm-hero-tab {
    position: absolute;
    left: 0;
    top: 0;
    max-width: min(48%, 280px);
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.crm-hero-stack .crm-hero-main {
    position: relative;
    z-index: 2;
    max-width: 78%;
    width: auto;
    height: auto;
    margin-top: clamp(2rem, 6vw, 3.5rem);
    border-radius: 16px;
    box-shadow: none;
}

.crm-hero-stack .crm-hero-menu {
    position: absolute;
    right: 0;
    top: 0;
    max-width: min(42%, 200px);
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    z-index: 3;
}

.crm-hero-cta {
    margin-top: 18px;
    text-align: center;
}

/* solutions/crm_integrate — один кадр в hero */
.crm-integrate-hero-visual {
    align-self: center;
}

.crm-integrate-hero-frame {
    border-radius: 26px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: min(480px, 58vw);
}

.crm-integrate-hero-frame img {
    width: 100%;
    height: min(580px, 72vw);
    display: block;
    object-fit: cover;
    object-position: center 22%;
}

@media (max-width: 720px) {
    .crm-integrate-hero-frame {
        min-height: 0;
    }

    .crm-integrate-hero-frame img {
        height: min(480px, 88vw);
        object-position: center 18%;
    }

    .crm-hero-stack {
        min-height: 0;
        flex-direction: column;
        gap: 12px;
    }

    .crm-hero-stack .crm-hero-tab,
    .crm-hero-stack .crm-hero-menu {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        max-width: 100%;
    }

    .crm-hero-stack .crm-hero-main {
        max-width: 100%;
        margin-top: 0;
    }
}

.crm-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 980px) {
    .crm-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .crm-support-grid {
        grid-template-columns: 1fr;
    }
}

/* CRM: «Интеграции по REST API» — две колонки: текст + список | скрин */
.crm-api-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.crm-api-block-copy {
    max-width: none;
    margin-bottom: 0;
}

.crm-api-block-list {
    margin-top: 8px;
}

.crm-api-block-media img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
    .crm-api-block {
        grid-template-columns: 1fr;
    }
}

/* CRM: композиции скринов во вкладках (бронь, документы, финансы) */
.crm-tab-visual-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(300px, 48vw);
    padding: 12px 0;
}

.crm-tab-visual-stack .crm-tab-base {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.crm-tab-visual-stack .crm-tab-overlay {
    position: absolute;
    right: 0;
    top: -2.5rem;
    max-width: min(46%, 290px);
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
    .crm-tab-visual-stack {
        flex-direction: column;
        min-height: 0;
        gap: 12px;
    }

    .crm-tab-visual-stack .crm-tab-overlay {
        position: relative;
        top: auto;
        right: auto;
        max-width: 100%;
    }
}

/* CRM: блок «Интеграции» + «1000+ приложений» — белая карточка на всю ширину контейнера */
.crm-integrations-apps {
    padding-block: clamp(8px, 2vw, 20px);
}

.crm-integrations-apps-panel {
    background: #ffffff;
    color: #10213d;
    border: 1px solid rgba(17, 36, 68, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: clamp(22px, 3.5vw, 40px);
    max-width: 100%;
}

.crm-integrations-apps-panel h2,
.crm-integrations-apps-panel .crm-integrations-apps-panel-title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #10213d;
    font-weight: 700;
}

.crm-integrations-apps-lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #566780;
}

.crm-integrations-apps-copy {
    margin-bottom: clamp(16px, 2.5vw, 22px);
}

.crm-integrations-apps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

.crm-integrations-apps-col {
    min-width: 0;
}

.crm-integrations-apps-col--apps {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 901px) {
    .crm-integrations-apps-col:first-child {
        padding-right: clamp(12px, 2vw, 28px);
        border-right: 1px solid rgba(17, 36, 68, 0.08);
    }
}

@media (max-width: 900px) {
    .crm-integrations-apps-grid {
        grid-template-columns: 1fr;
        gap: clamp(28px, 5vw, 36px);
    }

    .crm-integrations-apps-col:first-child {
        padding-bottom: clamp(20px, 3vw, 28px);
        border-bottom: 1px solid rgba(17, 36, 68, 0.08);
    }
}

.crm-integrations-apps-panel .crm-integration-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    justify-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.crm-integrations-apps-panel .crm-integration-logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(17, 36, 68, 0.1);
    box-shadow: 0 1px 0 rgba(17, 36, 68, 0.04);
}

.crm-integrations-apps-panel .crm-integration-logos img {
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 520px) {
    .crm-integrations-apps-panel .crm-integration-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .crm-integrations-apps-panel .crm-integration-logos li {
        min-height: 48px;
        padding: 8px 10px;
    }
}

.crm-integrations-apps-panel .crm-apps-figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(17, 36, 68, 0.08);
    background: rgba(17, 36, 68, 0.03);
}

.crm-integrations-apps-panel .crm-apps-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

/* запасной вид логотипов вне CRM-панели (если класс используется ещё где-то) */
.crm-integration-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.crm-integration-logos img {
    max-width: 100%;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.crm-apps-figure img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.showcase-benefits-list {
    margin-top: 12px;
}

/* solutions/property-showcase — один кадр витрины у героя */
.hero-showcase-visual {
    align-self: start;
}

@media (min-width: 981px) {
    .hero-showcase-visual {
        position: sticky;
        top: 5.25rem;
    }
}

.showcase-hero-figure {
    position: relative;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--surface-soft) 88%, var(--accent) 8%),
        color-mix(in srgb, var(--surface) 94%, transparent)
    );
    box-shadow:
        var(--shadow-md),
        0 32px 64px -12px color-mix(in srgb, var(--text) 14%, transparent);
}

.showcase-hero-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--accent) 14%, transparent) 0%,
        transparent 42%,
        transparent 100%
    );
    opacity: 0.55;
}

.showcase-hero-figure img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

.showcase-hero-figure.feeds-section-visual {
    margin-top: 12px;
}

@media (max-width: 980px) {
    .hero-card.hero-solution .hero-visual.hero-showcase-visual,
    .hero-card.hero-industry .hero-visual.hero-showcase-visual {
        order: -1;
    }

    .showcase-hero-figure {
        border-radius: 24px;
        max-width: 520px;
        margin-inline: auto;
    }
}

.metric-card {
    border-radius: 24px;
    padding: 20px;
    min-height: 128px;
    min-width: 0;
    overflow-wrap: break-word;
}

.metric-card strong {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--text);
}

/* Только подпись под заголовком — не все span (иначе i18n внутри strong становится серым) */
.metric-card > span {
    color: var(--muted);
    line-height: 1.5;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-intro.section-intro-wide {
    max-width: none;
    width: 100%;
}

.section-intro.compact {
    margin-bottom: 18px;
}

.section-intro h2, .cta-band h2, .contact-info-card h2, .prose-card h2 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.section-contrast {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 60%, transparent), transparent);
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.cols-3, .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-1 {
    grid-template-columns: 1fr;
}

/* contacts — одна колонка островков; правая колонка по высоте как левая */
.contacts-layout.split-block {
    align-items: stretch;
}

.contacts-layout .card-grid.cols-1 {
    gap: 10px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    align-content: stretch;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.contacts-layout .card-grid .feature-card {
    padding: 14px 16px;
    border-radius: 20px;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contacts-layout .card-grid .feature-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.15;
}

.contacts-layout .card-grid .feature-card p {
    margin: 0;
    line-height: 1.45;
    font-size: 14px;
    flex: 1;
}

.contacts-layout .card-grid .feature-card strong {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.feature-card, .quote-card {
    border-radius: 26px;
    padding: 24px;
}

.feature-card h3, .quote-card h3, .contact-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.feature-card.emphasis {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface));
}

.interactive {
    transition: var(--transition);
}

.interactive:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.inline-arrow {
    margin-top: 12px;
    display: inline-flex;
    color: var(--accent);
    font-weight: 800;
}

.trust-strip {
    border-radius: 28px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: center;
}

.audience-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.split-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    gap: 22px;
    align-items: start;
}

.contour-card, .architecture-card, .contact-info-card, .prose-card, .pricing-table-wrap {
    border-radius: 28px;
    padding: 24px;
}

.contour-row {
    min-height: 68px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(5, auto);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contour-row:last-child {
    border-bottom: 0;
}

.contour-row strong {
    min-width: 94px;
}

.stack-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.stack-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.stack-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.stack-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.screen-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Номер шага и текст в одну линию (crm и др., где только span + p) */
.timeline-grid--steps-inline .step-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(14px, 2vw, 20px);
}

.timeline-grid--steps-inline .step-card > span {
    margin-bottom: 0;
    flex-shrink: 0;
}

.timeline-grid--steps-inline .step-card > p {
    flex: 1;
    min-width: 0;
}

/* Страница export: ряд площадок (типографские плашки, без сторонних логотипов) */
.export-portals-section .export-portals-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

a.export-portal-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 14px 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-sm);
    text-align: center;
    line-height: 1.25;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a.export-portal-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

a.export-portal-tile:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
    outline-offset: 3px;
}

.export-portal-tile strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: font-size 0.2s ease;
}

a.export-portal-tile:hover strong {
    font-size: 17px;
}

.export-portal-tile span.export-portal-note {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.step-card {
    border-radius: 26px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

/* Маркер шага: только прямой дочерний span. */
.step-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-soft));
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.bullet-list {
    margin: 18px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

.bullet-list li {
    color: var(--muted);
    line-height: 1.65;
}

.form-shell {
    border-radius: 30px;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    gap: 20px;
}

/* contacts — блок с формой: текст слева, карточка формы справа */
.form-shell.contacts-form {
    gap: clamp(22px, 4vw, 36px);
    padding: clamp(22px, 3.5vw, 34px);
    align-items: stretch;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--surface) 88%, var(--accent) 10%),
        color-mix(in srgb, var(--surface) 92%, var(--accent-2) 8%)
    );
    border-color: color-mix(in srgb, var(--line) 70%, var(--accent) 18%);
}

.form-copy--lead {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
}

.form-copy--lead h2 {
    margin: 10px 0 14px;
    font-size: clamp(24px, 1.2vw + 1.2rem, 36px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text);
}

.form-copy--lead .lead-accent {
    margin: 0 0 12px;
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.form-copy--lead .lead-note {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.form-shell.contacts-form .form-card {
    align-self: stretch;
    padding: 1.5rem 1.4rem;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface-strong) 97%, transparent);
    box-shadow: var(--shadow-md);
}

.form-shell.contacts-form .form-card form {
    gap: 14px;
}

.form-card {
    border-radius: 24px;
    padding: 22px;
}

.form-card form {
    display: grid;
    gap: 12px;
}

.field {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
}

textarea.field {
    min-height: 132px;
    resize: vertical;
}

.form-success {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent-3) 18%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent-3) 45%, var(--line));
}

.form-success.visible {
    display: block;
}

.contact-direct {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.contact-direct div {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.contact-direct span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.cta-band {
    border-radius: 30px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.quote-card {
    position: relative;
}

.quote-card::before {
    content: '“';
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 58px;
    line-height: 1;
    opacity: .08;
}

.contact-card {
    border-radius: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.contact-card strong {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.contact-list a, .contact-list span {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 20px 18px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.pricing-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pricing-note {
    margin-top: 14px;
}

.site-footer {
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(200px, .5fr));
    gap: 24px;
    align-items: start;
}

.footer-brand {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.footer-brand p {
    max-width: 620px;
}

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.site-footer h4 {
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.site-footer a, .site-footer span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1180px) {
    .desktop-cta {
        display: none;
    }

    .header-row {
        grid-template-columns: auto 1fr auto;
    }

    .solution-panel {
        min-width: 540px;
    }

    .card-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics-grid,
    .metrics-grid.metrics-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .hero-card, .split-block, .form-shell, .cta-band, .trust-strip, .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 8vw, 54px);
    }

    .card-grid.cols-3, .card-grid.cols-4, .timeline-grid, .screen-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .platform-visual-stack, .mosaic-grid {
        grid-template-columns: 1fr 1fr;
    }

    .screen-card.is-featured, .mosaic-grid.narrow .screen-card:first-child {
        grid-column: auto;
    }

    .audience-pills {
        justify-content: flex-start;
    }

    /* demo: Bitrix24 inline form can visually overlap copy on narrow viewports */
    .hero-card.hero-demo {
        display: flex;
        flex-direction: column;
    }

    .hero-card.hero-demo .hero-copy {
        order: 0;
    }

    .hero-card.hero-demo .hero-visual {
        order: 1;
        margin-top: 18px;
        position: static;
    }

    .hero-card.hero-demo .form-card {
        width: 100%;
        position: static;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .hero-card, .feature-card, .metric-card, .screen-card, .step-card, .cta-band, .form-shell, .form-card,
    .contact-info-card, .pricing-table-wrap, .prose-card, .contour-card, .architecture-card, .trust-strip {
        border-radius: 22px;
    }

    .hero-card {
        padding: 24px;
    }

    .card-grid.cols-3, .card-grid.cols-4, .timeline-grid, .screen-gallery, .platform-visual-stack, .mosaic-grid, .metrics-grid,
    .metrics-grid.metrics-grid-5 {
        grid-template-columns: 1fr;
    }

    .cta-band-actions {
        width: 100%;
    }

    .cta-band-actions .btn {
        flex: 1 1 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* v5 refinements */
.site-header {
    background: color-mix(in srgb, var(--bg) 84%, rgba(255, 255, 255, .62));
}

.nav-list {
    gap: 6px;
}

.nav-link {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 15px;
}

.dropdown-panel {
    top: calc(100% + 10px);
    padding: 16px;
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 22px 44px rgba(16, 33, 61, 0.14);
    border-color: color-mix(in srgb, var(--line-strong) 120%, transparent);
}

:root[data-theme='dark'] .dropdown-panel {
    box-shadow: 0 26px 48px rgba(0, 0, 0, .38);
}

.solution-panel {
    min-width: 930px;
    max-width: min(930px, calc(100vw - 80px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dropdown-group {
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 48%, var(--surface) 52%);
    align-content: start;
}

.dropdown-group > span {
    font-size: 13px;
    letter-spacing: .08em;
}

.dropdown-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: transparent;
    font-size: 15px;
    line-height: 1.35;
}

.dropdown-panel a:hover {
    background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.more-panel {
    min-width: 240px;
    gap: 8px;
}

.nav-dropdown.open > .more-panel {
    display: grid;
}

.hero-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-soft) 48%, var(--surface) 52%));
}

.media-preview-grid,
.media-grid {
    display: grid;
    gap: 18px;
}

.media-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.cols-1 {
    grid-template-columns: 1fr;
}

.media-card {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    align-content: start;
}

.media-card.is-featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-soft) 46%, var(--surface) 54%));
}

.media-frame {
    position: relative;
    background: #eef3fb;
    border-bottom: 1px solid var(--line);
    min-height: 220px;
}

:root[data-theme='dark'] .media-frame {
    background: #0a1626;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-copy {
    padding: 18px 18px 20px;
    display: grid;
    gap: 10px;
}

.media-copy strong {
    font-size: 18px;
    line-height: 1.2;
}

.media-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .solution-panel {
        min-width: 760px;
        max-width: calc(100vw - 48px);
    }

    .media-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .media-preview-grid,
    .media-grid.cols-4,
    .media-grid.cols-3,
    .media-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .solution-panel {
        min-width: 0;
        grid-template-columns: 1fr;
    }
}

.capability-grid {
    align-items: stretch;
}

.capability-grid .feature-card {
    min-height: 100%;
}

.dropdown-group > span {
    color: var(--text);
    opacity: .72;
}


/* ==== Merged v5.2 header layer ==== */
.header-row-v52 {
    column-gap: 24px;
    row-gap: 18px;
    min-height: 82px;
}

.brand-v52 {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.brand-copy {
    display: grid;
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-size: 1.04rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-v52 .brand-copy strong {
    font-size: calc(1.04rem * 1.3);
    line-height: 1;
    font-weight: 800;
}

.brand-copy small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.1;
    margin-top: 4px;
}

.nav-shell-v52 {
    min-width: 0;
    display: flex;
    justify-content: center;
    padding-inline-end: 4px;
}

.nav-v52 {
    width: 100%;
}

.nav-list-v52 {
    gap: 5px;
}

.nav-list-v52 .nav-link {
    color: var(--text);
    font-weight: 650;
    padding: 0 7px;
    min-height: 40px;
}

.nav-list-v52 .nav-item:not(.nav-dropdown) .nav-link:hover, .nav-list-v52 .nav-link:focus-visible, .nav-list-v52 .nav-dropdown.open > .nav-link {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-color: var(--line);
}

.nav-list-v52 .nav-link.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface) 88%);
}

.nav-list-v52 .nav-link.nav-trigger.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
}

.solution-panel-v52 {
    min-width: min(880px, calc(100vw - 32px));
    grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
    padding: 20px;
    border-radius: 24px;
}

.mega-intro {
    padding: 16px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--line);
    display: grid;
    align-content: start;
    gap: 10px;
}

.eyebrow-static {
    margin: 0;
}

.eyebrow-static::before {
    display: none;
}

.mega-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.mega-lead {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}

.mega-link {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    min-height: 150px;
}

.mega-link:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    transform: translateY(-1px);
}

.mega-link.is-active {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.mega-link strong {
    font-size: 1rem;
    line-height: 1.2;
}

.mega-link small {
    color: var(--muted);
    line-height: 1.45;
}

.mega-kicker {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.header-actions-v52 {
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-inline-start: 2px;
    min-width: 0;
}

.site-header .lang-switch,
.site-header .theme-toggle {
    min-height: 44px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.site-header .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-header .lang-switch button {
    min-width: 40px;
    height: 34px;
    border-radius: 10px;
}

.mobile-nav-v52 {
    padding-bottom: 18px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 200;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 14px;
}

.skip-link:focus {
    left: 16px;
    top: 12px;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.noscript-panel {
    min-height: 60vh;
    display: grid;
    align-items: center;
    padding: 48px 0;
    background: var(--bg);
    color: var(--text);
}

.noscript-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-md);
}

.noscript-inner p {
    margin: 0 0 12px;
    line-height: 1.65;
    color: var(--muted);
}

.noscript-inner p:last-child {
    margin-bottom: 0;
}

.noscript-brand {
    margin-bottom: 16px !important;
    color: var(--text) !important;
    font-size: 1.25rem;
}

.noscript-links {
    margin-top: 4px;
    font-size: 0.95rem;
}

.noscript-links a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.noscript-links a:hover {
    color: var(--accent-2);
}

.noscript-sep {
    color: var(--line-strong);
    text-decoration: none;
}

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

@media (max-width: 1280px) {
    .brand-copy small, .desktop-cta {
        display: none;
    }

    .nav-list-v52 {
        gap: 4px;
    }
}

@media (max-width: 1180px) {
    .nav-shell-v52, .header-actions-v52 .desktop-cta {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    /* Две колонки: логотип + компактная панель справа — без пустого «разрыва» посередине */
    .header-row-v52 {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
    }

    .header-actions-v52 {
        gap: 10px;
        padding-inline-end: max(4px, env(safe-area-inset-right, 0px));
    }

    /* Единая панель: одна высота, одно скругление, общая обводка */
    .site-header .lang-switch,
    .site-header .theme-toggle,
    .site-header .burger {
        box-sizing: border-box;
        border: 1px solid var(--line);
        background: color-mix(in srgb, var(--surface) 92%, transparent);
    }

    .site-header .theme-toggle,
    .site-header .burger {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .site-header .lang-switch {
        height: 44px;
        min-height: 44px;
        padding: 0 5px;
        border-radius: 12px;
    }

    .site-header .lang-switch button {
        min-width: 36px;
        height: 34px;
        border-radius: 8px;
    }
}

@media (max-width: 520px) {
    .header-row-v52 {
        column-gap: 10px;
    }

    .site-header .header-actions-v52 {
        gap: 8px;
    }

    .site-header .lang-switch {
        padding: 0 4px;
        gap: 3px;
    }

    .site-header .lang-switch button {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
        border-radius: 7px;
    }

    .site-header .theme-toggle,
    .site-header .burger {
        width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 11px;
    }

    .site-header .burger {
        --burger-line-w: 18px;
        --burger-gap: 4px;
    }

    .site-header .lang-switch {
        height: 40px;
        min-height: 40px;
        border-radius: 11px;
    }
}

@media (max-width: 380px) {
    .site-header .lang-switch button {
        min-width: 26px;
        padding-inline: 1px;
        font-size: 10px;
    }
}

@media (max-width: 820px) {
    .header-row-v52 {
        gap: 12px;
    }
}


/* ==== v5.2 block restore + CTA refinements ==== */
.dropdown-panel {
    transform: translateX(var(--dropdown-shift, 0px));
}

.solution-panel-v52 {
    min-width: min(760px, calc(100vw - 32px));
    max-width: min(760px, calc(100vw - 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.solution-panel-v52 .mega-intro {
    grid-column: 1 / -1;
    min-width: 0;
}

.mega-link {
    min-height: 0;
    min-width: 0;
}

.mega-lead,
.mega-link small {
    overflow-wrap: break-word;
}

.section-head-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.section-head-inline h2 {
    margin: 10px 0 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.lead-inline {
    color: var(--muted);
    line-height: 1.72;
    margin: 0;
}

.tag-switch {
    display: grid;
    gap: 18px;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.tag-btn.active, .tag-btn:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), color-mix(in srgb, var(--accent-2) 12%, var(--surface)));
}

.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 18px;
    align-items: start;
}

/* Вкладка «Виды отображения»: один ряд — слева список из 10 пунктов, справа превью */
.tab-panel[data-panel="views"].active,
.tab-panel[data-panel="crm-pick"].active {
    grid-template-columns: 1fr;
}

.tab-panel.active {
    display: grid;
}

.tab-panel-visual {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.screen-shot-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: var(--shadow-md);
}

.screen-shot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.visual-islands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.island {
    min-height: 160px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-2) 10%, var(--surface)));
    display: grid;
    align-content: space-between;
    gap: 14px;
}

.island.tall {
    grid-row: span 2;
    min-height: 336px;
}

.island h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.island p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.island strong {
    font-size: .95rem;
}

.panel-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.panel-copy h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.check {
    padding: 14px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
    border: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.55;
}

/* platform — «Как выглядит продукт»: подпись к табам, сегментированная группа */
.platform-product-look .product-look-tabs-heading {
    margin: 0 0 10px;
}

.platform-product-look .product-look-tabs-hint {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
}

.platform-product-look .tag-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 75%, transparent);
}

.platform-product-look .tag-btn {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--accent) 12%);
    background: var(--surface);
    min-height: 44px;
    padding: 10px 20px;
    color: var(--text);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent);
}

.platform-product-look .tag-btn:hover {
    background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.platform-product-look .tag-btn.active {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--accent) 12%), var(--surface));
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--text);
}

.platform-product-look .tag-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
}

.platform-product-look .screen-shot-card {
    border-radius: 20px;
}

.platform-product-look .tab-panel-visual {
    gap: 12px;
}

.platform-product-look .product-look-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.platform-product-look .product-look-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-product-look .product-look-card-kicker {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 80%, var(--muted));
    line-height: 1.3;
}

.platform-product-look .product-look-card h4 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.platform-product-look .product-look-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--muted);
}

/* Маркер: только прямой дочерний span; вложенный span с текстом не стилизуем. */
.feature-list li > span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
    color: var(--text);
    font-weight: 800;
}

.feature-list li > div {
    min-width: 0;
}

/* solutions/property-showcase — вкладки: в разметке один span на пункт (текст), без пары «маркер 28px + колонка» */
.showcase-capabilities .panel-copy .feature-list {
    display: block;
    padding-left: 1.35em;
    list-style: disc;
}

.showcase-capabilities .panel-copy .feature-list li {
    display: list-item;
    grid-template-columns: unset;
    margin-bottom: 10px;
}

.showcase-capabilities .panel-copy .feature-list li:last-child {
    margin-bottom: 0;
}

.showcase-capabilities .panel-copy .feature-list li > span {
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    background: none;
    color: inherit;
    font-weight: inherit;
}

.cta-band-contrast {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-3) 10%, var(--surface)));
}

.cta-kickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cta-kicker {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .solution-panel-v52 {
        min-width: min(680px, calc(100vw - 32px));
        max-width: min(680px, calc(100vw - 32px));
    }

    .section-head-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .tab-panel, .compare-grid, .check-grid {
        grid-template-columns: 1fr;
    }

    .visual-islands {
        grid-template-columns: 1fr;
    }

    .platform-product-look .product-look-grid {
        grid-template-columns: 1fr;
    }

    .island.tall {
        grid-row: auto;
        min-height: 220px;
    }

    .solution-panel-v52 {
        min-width: min(92vw, 420px);
        max-width: min(92vw, 420px);
        grid-template-columns: 1fr;
    }

    .ecosystem-hero-card {
        grid-template-columns: 1fr;
    }

    .ecosystem-hero-visual {
        order: -1;
    }

    .platform-value-row .stat-promo-box {
        justify-self: center;
        width: 100%;
        max-width: 400px;
    }
}

/* Платформа: hero с чипами-ссылками и блоки ценности с boostodrom.ru */
.platform-ecosystem-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 14px;
}

.ecosystem-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ecosystem-chip:hover,
.ecosystem-chip:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-soft));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
    outline: none;
}

.ecosystem-chip.is-active {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-soft));
}

.platform-ecosystem-desc {
    margin: 0 0 20px;
    min-height: 4.5em;
    color: var(--muted);
    line-height: 1.72;
    font-size: 15px;
}

.ecosystem-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecosystem-hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, var(--surface-soft), transparent);
}

/* Полноширинная схема платформы (локализуемые JPG в assets/images/general/) */
.platform-scheme-section {
    padding-top: 8px;
    padding-bottom: 8px;
}

.platform-scheme-wrap {
    max-width: min(1120px, 100%);
    margin-inline: auto;
}

.platform-scheme-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.platform-value-strip .section-intro.compact {
    margin-bottom: 0;
}

.platform-value-strip .section-intro h2 {
    font-size: clamp(26px, 3.4vw, 42px);
}

.platform-value-row {
    align-items: center;
}

/* Desktop two columns; default 1 col so narrow viewports are not squeezed beside stat-promo-box. */
.platform-value-row.split-block {
    grid-template-columns: 1fr;
}

@media (min-width: 861px) {
    .platform-value-row.split-block {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    }
}

.platform-value-row .stat-promo-box {
    width: 100%;
    box-sizing: border-box;
    justify-self: stretch;
    min-width: 0;
}

.stat-promo-box {
    border-radius: 28px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-md);
    padding: 28px 32px;
    text-align: center;
}

.stat-promo-value {
    display: block;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--text);
}

.stat-promo-label {
    display: block;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--muted);
    line-height: 1.25;
}

/* Тарифы: сравнительная таблица */
.pricing-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
}

.pricing-matrix {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
}

.pricing-matrix th,
.pricing-matrix td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.pricing-matrix thead th {
    font-weight: 700;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    font-size: 15px;
}

.pricing-matrix th:first-child,
.pricing-matrix td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
    min-width: 180px;
    max-width: min(42vw, 320px);
    box-shadow: 4px 0 12px -6px rgba(0, 0, 0, 0.12);
}

.pricing-matrix .pricing-matrix-col--highlight {
    border-left: 2px solid var(--line);
    border-right: 2px solid var(--line);
    background: color-mix(in srgb, var(--surface) 90%, var(--accent) 10%);
}

.pricing-check {
    color: #16a34a;
    font-weight: 700;
}

.pricing-no {
    color: #dc2626;
    font-weight: 700;
}

.pricing-tier-card {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.pricing-tier-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.pricing-tier-price {
    font-size: clamp(1.25rem, 2vw, 1.45rem);
    font-weight: 700;
    margin: 0 0 10px;
}

.pricing-tier-footnote {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
}

.pricing-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    margin: 0 0 14px;
}

.pricing-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    margin: 0;
}

.pricing-pill > span {
    text-align: left;
}

.pricing-crm-panel {
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--accent) 12%);
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--surface) 92%, var(--accent) 8%) 0%,
        var(--surface) 48%,
        color-mix(in srgb, var(--surface) 96%, var(--accent-3) 4%) 100%
    );
    box-shadow: var(--shadow-md);
    padding: clamp(24px, 3.5vw, 40px);
}

.pricing-crm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.2fr);
    gap: clamp(28px, 4vw, 44px);
    align-items: center;
}

.pricing-crm-copy {
    min-width: 0;
}

.pricing-crm-title {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pricing-crm-lead {
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.55;
}

.pricing-crm-copy .pricing-tier-price {
    margin-top: 16px;
}

.pricing-crm-cta {
    margin-top: 12px;
    display: inline-flex;
}

.pricing-crm-visual {
    min-width: 0;
    width: 100%;
    max-width: 560px;
    justify-self: end;
}

.pricing-crm-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(280px, 42vw);
    max-height: min(520px, 70vh);
    padding: clamp(12px, 2vw, 20px);
    border-radius: 22px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    line-height: 0;
}

.pricing-crm-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(480px, 58vh);
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}

@media (max-width: 900px) {
    .pricing-crm-row {
        grid-template-columns: 1fr;
    }

    .pricing-crm-visual {
        order: -1;
        justify-self: center;
        max-width: min(520px, 100%);
    }

    .pricing-crm-figure {
        min-height: min(240px, 50vw);
        max-height: none;
    }

    .pricing-crm-photo {
        max-height: min(420px, 65vw);
    }
}

.pricing-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.pricing-get-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 900px) {
    .pricing-get-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-get-grid img {
    width: 52px;
    height: auto;
    display: block;
}

.pricing-get-grid h4 {
    margin: 12px 0 8px;
    font-size: 1.05rem;
}

.pricing-hint {
    cursor: help;
    color: var(--muted);
    font-size: 0.85em;
}

.pricing-hero-single {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pricing-hero-img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Старые браузеры без color-mix(): упрощённый фон body (основные токены сохраняются). */
@supports not (color: color-mix(in srgb, white, black)) {
    :root[data-theme='light'] body {
        background: radial-gradient(900px 520px at 0% -10%, rgba(44, 140, 255, 0.12), transparent 55%),
        radial-gradient(960px 540px at 100% 0%, rgba(65, 197, 255, 0.14), transparent 52%),
        linear-gradient(180deg, var(--bg) 0%, #e9f0fc 100%);
    }

    :root[data-theme='dark'] body {
        background: radial-gradient(900px 520px at 0% -10%, rgba(83, 166, 255, 0.14), transparent 55%),
        radial-gradient(960px 540px at 100% 0%, rgba(99, 221, 255, 0.12), transparent 52%),
        linear-gradient(180deg, var(--bg) 0%, #050d18 100%);
    }
}

/* Broker cabinet (solutions/agent-cabinet): 16:9 landscape UI screenshots */
.agent-cabinet-page .cabinet-gallery-strip {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.agent-cabinet-page .cabinet-gallery-strip .media-card {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    align-content: start;
}

.agent-cabinet-page .cabinet-gallery-strip .media-frame.cabinet-frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center center;
}

.agent-cabinet-page .cabinet-gallery-strip .cabinet-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    background: #eef3fb;
    display: block;
}

:root[data-theme='dark'] .agent-cabinet-page .cabinet-gallery-strip .cabinet-frame img {
    background: #0a1626;
}

.agent-cabinet-page .cabinet-gallery-strip .media-copy {
    padding: 16px 20px 20px;
}

.agent-cabinet-page .cabinet-gallery-strip .media-copy strong {
    font-size: 17px;
}

.agent-cabinet-page .cabinet-gallery-strip .media-copy p {
    font-size: 15px;
}

.agent-cabinet-page .hero-cabinet-figure {
    margin: 0;
    border-radius: 24px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--surface-soft);
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center center;
}

.agent-cabinet-page .hero-cabinet-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    vertical-align: top;
}

.agent-cabinet-page .cabinet-stack {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}

/* Agent cabinet: hero — заголовок и текст, затем картинка (как в блоках ниже) */
.agent-cabinet-page .hero-card.hero-solution.hero-cabinet-hero {
    grid-template-columns: 1fr;
    gap: clamp(22px, 4vw, 36px);
}

.agent-cabinet-page .hero-cabinet-hero .hero-copy {
    max-width: 900px;
}

.agent-cabinet-page .hero-cabinet-hero .hero-cabinet-visual {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
}

/* Блоки сценариев: заголовок + 2 пункта, затем слайдер */
.agent-cabinet-page .cabinet-feature-block {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.5vw, 40px);
}

.agent-cabinet-page .cabinet-feature-intro {
    margin-bottom: 0;
}

.agent-cabinet-page .cabinet-feature-benefits {
    margin-top: 6px;
}

.agent-cabinet-page .agent-cabinet-slider {
    width: 100%;
    min-width: 0;
}

.agent-cabinet-page .agent-cabinet-slider-viewport {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    align-items: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 28px;
    outline: none;
}

.agent-cabinet-page .agent-cabinet-slider-viewport:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}

.agent-cabinet-page .agent-cabinet-slider-track {
    display: contents;
}

.agent-cabinet-page .agent-cabinet-slide {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    align-self: start;
    width: 100%;
}

.agent-cabinet-page .agent-ui-card--slide {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
}

/* Высота блока = шапка + натуральная высота картинки (без фиксированного 16:9 и без выравнивания под самый высокий слайд) */
.agent-cabinet-page .agent-cabinet-slider .screen-card.agent-ui-card {
    min-height: 0;
}

.agent-cabinet-page .agent-cabinet-slider .agent-ui-card--slide img {
    flex: none;
    aspect-ratio: auto;
    height: auto;
    width: 100%;
    object-fit: contain;
    object-position: top center;
}

.agent-cabinet-page .agent-cabinet-slider .agent-ui-card .screen-top {
    flex-shrink: 0;
}

.agent-cabinet-page .agent-cabinet-slider-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.agent-cabinet-page .agent-cabinet-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.agent-cabinet-page .agent-cabinet-slider-btn:hover:not(:disabled) {
    background: var(--surface-soft);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.agent-cabinet-page .agent-cabinet-slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.agent-cabinet-page .agent-cabinet-slider-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agent-cabinet-page .agent-cabinet-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 45%, var(--line));
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.agent-cabinet-page .agent-cabinet-slider-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

/* Agent cabinet marketing refresh */
.agent-cabinet-page .hero-sublead {
    margin-top: 10px;
}

.agent-cabinet-page .agent-ui-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.agent-cabinet-page .agent-ui-card .screen-top {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.agent-cabinet-page .agent-ui-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: top center;
    background: #eef3fb;
}

:root[data-theme='dark'] .agent-cabinet-page .agent-ui-card img {
    background: #0a1626;
}

.agent-cabinet-page .agent-ui-card--compact {
    padding: 12px;
}

.agent-cabinet-page .agent-ui-card--compact .screen-top {
    margin-bottom: 8px;
    font-size: 12px;
}

.agent-cabinet-page .agent-shot-stack,
.agent-cabinet-page .agent-visual-grid {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.agent-cabinet-page .agent-visual-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-cabinet-page .agent-visual-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .agent-cabinet-page .agent-visual-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .agent-cabinet-page .agent-visual-grid-2,
    .agent-cabinet-page .agent-visual-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* property-showcase — вкладка «Коммерческое предложение»: шире колонка с превью + слайдер из 3 КП */
.tab-panel[data-panel="cp"] {
    grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.76fr);
    gap: 22px;
}

.showcase-capabilities .screen-shot-card--offer-slider {
    padding: 0;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider {
    width: 100%;
    min-width: 0;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-viewport {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    align-items: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 28px;
    outline: none;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-viewport:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-track {
    display: contents;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slide {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    align-self: start;
    width: 100%;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
    background: color-mix(in srgb, var(--surface-soft) 55%, var(--surface));
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 0 4px 12px;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-btn:hover:not(:disabled) {
    background: var(--surface-soft);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 45%, var(--line));
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.showcase-capabilities .screen-shot-card--offer-slider .agent-cabinet-slider-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

@media (max-width: 900px) {
    .tab-panel[data-panel="cp"] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* privacy — островок hero как на faq; текст политики в prose-card */
.prose-card.privacy-policy-document {
    padding: clamp(22px, 3vw, 34px);
}

.prose-card.privacy-policy-document h2 {
    margin: clamp(22px, 2.5vw, 28px) 0 12px;
    font-size: clamp(1.12rem, 1.8vw, 1.28rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
}

.prose-card.privacy-policy-document h2:first-of-type {
    margin-top: 0;
}

.prose-card.privacy-policy-document h3 {
    margin: 18px 0 10px;
    font-size: clamp(1.02rem, 1.5vw, 1.12rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--text);
}

.prose-card.privacy-policy-document .privacy-table-wrap {
    margin: 0 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.prose-card.privacy-policy-document table.privacy-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.88rem;
    line-height: 1.45;
}

.prose-card.privacy-policy-document table.privacy-table th,
.prose-card.privacy-policy-document table.privacy-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.prose-card.privacy-policy-document table.privacy-table th {
    font-weight: 650;
    background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
}

.prose-card.privacy-policy-document table.privacy-table tbody tr:last-child td {
    border-bottom: none;
}

.prose-card.privacy-policy-document p {
    margin: 0 0 14px;
}

.prose-card.privacy-policy-document ul {
    margin: 0 0 16px;
    padding-left: 1.35em;
}

.prose-card.privacy-policy-document li {
    margin-bottom: 8px;
}

.prose-card.privacy-policy-document a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-card.privacy-policy-document a:hover {
    color: var(--text);
}

.prose-card .privacy-policy-meta {
    font-size: 0.95rem;
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
}

/* modules/analytics — hero как обычные страницы: слева, без центрирования */
.analytics-module-page .hero-card.hero-module.hero-analytics-hero {
    grid-template-columns: 1fr;
}

.analytics-module-page .hero-analytics-hero .hero-copy {
    max-width: none;
    margin-inline: 0;
}

.analytics-module-page .hero-analytics-hero .hero-copy h1,
.analytics-module-page .hero-analytics-hero .hero-copy p,
.analytics-module-page .hero-analytics-hero .hero-actions,
.analytics-module-page .hero-analytics-hero .hero-chips {
    text-align: left;
    justify-content: flex-start;
}

/* modules/import — hero как agent-cabinet: заголовок и текст, затем картинка */
.import-module-page .hero-card.hero-module.hero-import-hero {
    grid-template-columns: 1fr;
    gap: clamp(22px, 4vw, 36px);
}

.import-module-page .hero-import-hero .hero-copy {
    max-width: 900px;
}

.import-module-page .hero-import-hero .hero-import-visual,
.import-module-page .import-section-visual {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    min-width: 0;
}

/* Блок «CSV / правки» — как hero: колонка, сверху текст */
.import-module-page .import-stacked {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 4vw, 36px);
}

.import-module-page .import-stacked .section-intro {
    max-width: 900px;
}

/* Высота рамки = натуральная высота скриншота */
.import-module-page .hero-import-figure,
.import-module-page .import-section-figure {
    margin: 0;
    border-radius: 24px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--surface-soft);
    display: block;
    width: 100%;
    line-height: 0;
}

.import-module-page .hero-import-figure img,
.import-module-page .import-section-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* modules/import — табы «Проверки, параметры…»: текст справа как на property-showcase */
.import-module-page .import-screen-tabs .panel-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.import-module-page .schedule-sample {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 14px;
    color: var(--muted);
    background: var(--surface-soft);
}

/* Глобально: img[data-page-zoom] открывает лайтбокс (site.js — page-zoom-modal) */
img[data-page-zoom] {
    cursor: zoom-in;
}

.page-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template: 1fr / 1fr;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
}

.page-zoom-modal[hidden] {
    display: none !important;
}

.page-zoom-backdrop {
    grid-area: 1 / 1;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--ink, #071422) 78%, transparent);
    cursor: pointer;
}

.page-zoom-panel {
    grid-area: 1 / 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.page-zoom-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    flex-shrink: 0;
    pointer-events: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.page-zoom-toolbar-spacer {
    flex: 1;
    min-width: 8px;
}

.page-zoom-pct {
    min-width: 3.25rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    color: var(--muted);
}

.page-zoom-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.page-zoom-tool:hover {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-soft));
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.page-zoom-tool--secondary {
    font-size: 1.1rem;
}

.page-zoom-close {
    font-size: 1.5rem;
    font-weight: 300;
}

.page-zoom-viewport {
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: auto;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    pointer-events: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    user-select: none;
}

.page-zoom-viewport.is-dragging {
    cursor: grabbing;
    touch-action: none;
}

.page-zoom-img {
    display: block;
    margin: 0 auto;
    max-width: none;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    -webkit-user-drag: none;
}

@media (max-width: 520px) {
    .page-zoom-toolbar {
        gap: 6px;
        padding: 8px 10px;
    }

    .page-zoom-tool {
        min-width: 36px;
        min-height: 36px;
        font-size: 1.1rem;
    }
}
