:root {
    --brand-blue: #2563eb;
    --brand-blue-deep: #1d4ed8;
    --brand-emerald: #059669;
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-elevated: 0 28px 70px rgba(15, 23, 42, 0.14);
    --glass-border: rgba(255, 255, 255, 0.55);
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body.landing-page {
    overflow-x: hidden;
    padding: 0;
    align-items: stretch;
}
body {
    font-family: var(--font-display);
    color: #0f172a;
    padding: 0;
    align-items: stretch;
}
body,
.auth-card,
.landing-nav,
.btn-outline,
.landing-brand-title,
.landing-brand-sub,
.landing-nav-menu a,
.landing-hero-title,
.landing-hero-subtitle,
.section-title,
.section-body,
.pricing-card,
.capability-card,
.about-card,
.contact-card,
.landing-faq,
.trust-strip {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.auth-container.landing-root {
    max-width: 1320px;
    width: 100%;
    min-height: 100vh;
    padding: 0 clamp(10px, 2vw, 20px);
    margin: 0 auto;
    box-sizing: border-box;
}
.auth-card.landing-shell {
    width: 100%;
    min-height: 100vh;
    display: block;
    padding: 0 42px 36px;
    margin: 0;
    border-radius: clamp(12px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px) saturate(1.15);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-elevated), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: none;
}
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    margin-left: -42px;
    margin-right: -42px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 42px 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 40%, rgba(255,255,255,0.55) 75%, rgba(255,255,255,0));
    backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.landing-nav-logo {
    width: 52px;
    height: 52px;
    margin: 0;
    flex-shrink: 0;
}
.landing-nav .auth-logo,
.landing-nav-logo {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.landing-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
}
.landing-brand-title {
    font-weight: 600;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: #111827;
    line-height: 1.2;
}
.landing-brand-sub {
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}
.landing-nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}
.landing-nav-menu a {
    color: #4b5563;
    text-decoration: none;
    padding: 6px 2px;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    font-weight: 500;
}
.landing-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-emerald));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.landing-nav-menu a:hover {
    color: #111827;
}
.landing-nav-menu a:hover::after {
    transform: scaleX(1);
}
.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-outline {
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(15,23,42,0.14);
    background: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    cursor: pointer;
    color: #111827;
    white-space: nowrap;
}
.btn-outline:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.theme-toggle-btn {
    min-width: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-primary-hero {
    border-radius: 999px;
    padding: 10px 18px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45), 0 2px 0 rgba(255, 255, 255, 0.15) inset;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary-hero:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.5);
}
.btn-primary-hero:active {
    transform: translateY(0);
}
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: start;
    margin: 32px 0 40px;
    position: relative;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -8%;
    width: 55%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.landing-hero > * {
    position: relative;
    z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
    .landing-hero > div:first-child {
        animation: landingFadeUp 0.65s ease-out both;
    }
    .landing-hero-visual {
        animation: landingFadeUp 0.8s ease-out 0.1s both;
    }
    .trust-strip {
        animation: landingFadeUp 0.7s ease-out 0.2s both;
    }
}
@keyframes landingFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing-hero-title {
    font-size: clamp(1.95rem, 4vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: 14px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.landing-hero-title .hero-line {
    display: block;
}
.landing-hero-title .hero-highlight {
    background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 35%, #059669 70%, #1d4ed8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
    .landing-hero-title .hero-highlight {
        animation: heroGradientShift 8s ease-in-out infinite;
    }
}
@keyframes heroGradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
.landing-hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    max-width: 36em;
}
.landing-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.landing-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.badge-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.landing-hero-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}
.landing-hero-visual {
    border-radius: 20px;
    padding: 0;
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 55%, #f0fdf4 100%);
    color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    overflow: hidden;
}
.hero-showcase {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.hero-showcase-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.75);
}
.hero-showcase-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #334155;
}
.hero-showcase-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #059669;
}
.hero-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: heroLivePulse 2s ease-in-out infinite;
}
@keyframes heroLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}
.hero-showcase-map {
    flex: 1 1 auto;
    min-height: 150px;
    background: linear-gradient(180deg, #e8eef4 0%, #dce6f0 100%);
    overflow: hidden;
}
.hero-map-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 150px;
}
.hero-map-fiber--a {
    stroke-dasharray: 8 6;
    animation: heroFiberFlow 4s linear infinite;
}
@keyframes heroFiberFlow {
    to { stroke-dashoffset: -28; }
}
.hero-map-node--olt {
    animation: heroNodeGlow 3s ease-in-out infinite;
}
.hero-map-node--hub {
    animation: heroNodeGlow 3s ease-in-out infinite 0.6s;
}
@keyframes heroNodeGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-map-fiber--a,
    .hero-live-dot,
    .hero-map-node--olt,
    .hero-map-node--hub {
        animation: none;
    }
}
.hero-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 12px 14px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.hero-stat-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 7px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    min-width: 0;
}
.hero-stat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-stat-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.hero-stat-label {
    font-size: 0.62rem;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.landing-sections {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
    gap: 36px;
    margin: 10px 0 26px;
}
.landing-section {
    margin-bottom: 10px;
}
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    letter-spacing: -0.02em;
}
.section-title span.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
}
.section-body {
    font-size: 0.86rem;
    color: #4b5563;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}
.feature-list li {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 4px;
}
.feature-list li svg {
    margin-top: 1px;
    color: #059669;
}
.landing-pricing {
    margin-top: 8px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}
.pricing-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,0.06);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.18);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}
.pricing-card-network {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
}
.pricing-card > *:not(.pricing-card-network):not(.pricing-ribbon-wrap) {
    position: relative;
    z-index: 1;
}
.pricing-card.pro {
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 22px 60px rgba(37,99,235,0.45);
    position: relative;
    /* Чтобы бейдж «Рекомендуем» не накрывал заголовок */
    padding-top: 38px;
}
/* «Рекомендуем» слева — справа диагональная лента скидки */
.pricing-card.pro::before {
    content: "Рекомендуем";
    position: absolute;
    top: 10px;
    left: 14px;
    right: auto;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #1d4ed8;
    color: white;
    z-index: 3;
}
.pricing-name {
    font-weight: 600;
    font-size: 1.02rem;
}
.pricing-short {
    font-size: 0.8rem;
    color: #6b7280;
}
.pricing-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
/* Ленточка скидки в правом верхнем углу карточки */
.pricing-ribbon-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 108px;
    height: 108px;
    overflow: hidden;
    z-index: 6;
    pointer-events: none;
}
.pricing-ribbon-wrap span {
    position: absolute;
    display: block;
    width: 170px;
    padding: 8px 0;
    top: 24px;
    right: -42px;
    background: linear-gradient(90deg, #059669 0%, #047857 45%, #065f46 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(5, 80, 60, 0.35);
    transform: rotate(45deg);
    transform-origin: center;
}
.pricing-promo-caption {
    font-size: 0.72rem;
    color: #059669;
    font-weight: 600;
    margin-top: 4px;
}
.pricing-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}
.pricing-price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1.05rem;
    font-weight: 600;
}
.pricing-price {
    font-size: 1.4rem;
    font-weight: 700;
}
.pricing-period {
    font-size: 0.8rem;
    color: #6b7280;
}
.pricing-meta {
    font-size: 0.76rem;
    color: #9ca3af;
}
.pricing-cta-btn {
    margin-top: 10px;
    width: 100%;
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111827;
    color: white;
    border: 1px solid transparent;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}
.pricing-card.pro .pricing-cta-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.pricing-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.3);
}
.landing-footer {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    color: #9ca3af;
}
.landing-footer a {
    color: #6b7280;
    text-decoration: none;
}
.landing-footer a:hover {
    text-decoration: underline;
}
section[id] {
    scroll-margin-top: 88px;
}
#capabilities {
    margin: 6px 0 36px;
}
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 36px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfdf5 100%);
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.trust-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}
.trust-item h3 {
    margin: 0 0 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
}
.trust-item p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #64748b;
}
.trust-item {
    padding: 6px 8px;
    margin: -6px -8px;
    border-radius: 12px;
    transition: background 0.15s ease;
}
.trust-item:hover {
    background: rgba(255, 255, 255, 0.65);
}
[data-theme="dark"] .trust-item:hover {
    background: rgba(59, 130, 246, 0.08);
}
.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0 8px;
}
.capability-card {
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.capability-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}
.capability-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.capability-card h3 {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}
.capability-card p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}
.capability-section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    padding-left: 14px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--brand-blue), var(--brand-emerald)) 1;
}
.capability-section-lead {
    font-size: 0.88rem;
    color: #64748b;
    max-width: 720px;
    margin: 0 0 4px;
    line-height: 1.5;
}
.about-card {
    border-radius: 16px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
    height: 100%;
}
.landing-sections {
    align-items: stretch;
}
.landing-section .section-body {
    line-height: 1.55;
}
.landing-faq {
    margin: 28px 0 8px;
    padding: 20px 20px 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.landing-faq h2 {
    margin-bottom: 12px;
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    padding: 12px 4px 12px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item p {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    padding-left: 0;
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
}
.contact-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.contact-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}
.contact-card-hint {
    font-size: 0.75rem;
    color: #94a3b8;
}
.pricing-section-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-size: 0.82rem;
    color: #475569;
}
.pricing-section-intro span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pricing-section-intro svg {
    flex-shrink: 0;
    color: #059669;
}
@media (max-width: 1240px) {
    .landing-brand-sub {
        display: none;
    }
    .landing-nav-menu {
        display: none;
    }
    .landing-nav-actions .btn-outline,
    .landing-nav-actions .btn-primary-hero {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .landing-hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .landing-hero-cta-row .btn-primary-hero,
    .landing-hero-cta-row .btn-outline {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .auth-card:not(.landing-shell) {
        padding: 26px 18px;
    }
    .landing-hero-title {
        font-size: 1.7rem;
    }
    .landing-sections {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .trust-strip {
        grid-template-columns: 1fr;
    }
    .capability-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .landing-hero {
        margin: 18px 0 26px;
        gap: 18px;
    }
    .landing-hero-title {
        font-size: 1.5rem;
    }
    .landing-hero-visual {
        margin-top: 4px;
        padding: 14px 14px 12px;
    }
}

/* Темная тема лендинга продаж */
[data-theme="dark"] .auth-card.landing-shell {
    background: rgba(8, 14, 28, 0.9);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .auth-card:not(.landing-shell) {
    background: rgba(7, 12, 24, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.75);
}
[data-theme="dark"] .landing-hero-title .hero-highlight {
    background: linear-gradient(120deg, #93c5fd 0%, #60a5fa 40%, #34d399 75%, #93c5fd 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .landing-hero::before {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}
[data-theme="dark"] .landing-nav {
    background: linear-gradient(to bottom, #0f172a 0%, rgba(15,23,42,0.98) 28%, rgba(2,6,23,0.88) 58%, rgba(2,6,23,0));
}
[data-theme="dark"] .landing-hero-visual {
    background: linear-gradient(165deg, #0f172a 0%, #0c1929 50%, #0a1628 100%);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .hero-showcase-chrome {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] .hero-showcase-title {
    color: #e2e8f0;
}
[data-theme="dark"] .hero-showcase-map {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}
[data-theme="dark"] .hero-showcase-stats {
    background: rgba(15, 23, 42, 0.88);
    border-top-color: rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] .hero-stat-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] .hero-stat-icon {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
}
[data-theme="dark"] .hero-stat-label {
    color: #94a3b8;
}
[data-theme="dark"] .hero-stat-value {
    color: #f8fafc;
}
[data-theme="dark"] .landing-brand-title,
[data-theme="dark"] .landing-hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .capability-section-title,
[data-theme="dark"] .capability-card h3,
[data-theme="dark"] .contact-card-value,
[data-theme="dark"] .pricing-name,
[data-theme="dark"] .faq-item summary {
    color: #f8fafc;
}
[data-theme="dark"] .landing-brand-sub,
[data-theme="dark"] .landing-nav-menu a,
[data-theme="dark"] .landing-hero-subtitle,
[data-theme="dark"] .section-body,
[data-theme="dark"] .capability-section-lead,
[data-theme="dark"] .capability-card p,
[data-theme="dark"] .trust-item p,
[data-theme="dark"] .pricing-short,
[data-theme="dark"] .pricing-period,
[data-theme="dark"] .faq-item p,
[data-theme="dark"] .contact-card-label,
[data-theme="dark"] .contact-card-hint,
[data-theme="dark"] .landing-footer,
[data-theme="dark"] .landing-footer a {
    color: #94a3b8;
}
[data-theme="dark"] .landing-nav-menu a:hover {
    color: #f8fafc;
}
[data-theme="dark"] .btn-outline {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}
[data-theme="dark"] .btn-outline:hover {
    background: rgba(30, 41, 59, 0.9);
}
[data-theme="dark"] .pricing-cta-btn {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}
[data-theme="dark"] .pricing-cta-btn:hover {
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.7);
}
[data-theme="dark"] .pricing-card.pro .pricing-cta-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(147, 197, 253, 0.35);
    color: #fff;
}
[data-theme="dark"] .badge-pill {
    background: rgba(30, 64, 175, 0.25);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.4);
}
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .capability-card,
[data-theme="dark"] .about-card,
[data-theme="dark"] .contact-card {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.6);
}
[data-theme="dark"] .pricing-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}
[data-theme="dark"] .pricing-card.pro {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 20px 52px rgba(29, 78, 216, 0.45);
}
[data-theme="dark"] .landing-faq,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .pricing-section-intro {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}
[data-theme="dark"] .trust-item-icon {
    background: #0b1220;
    border-color: rgba(96, 165, 250, 0.35);
    color: #60a5fa;
}
[data-theme="dark"] .trust-item h3 {
    color: #f8fafc;
}
[data-theme="dark"] .section-title span.icon,
[data-theme="dark"] .capability-card-icon {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
}
[data-theme="dark"] .faq-item {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] .faq-item summary::after {
    border-top-color: #64748b;
}
[data-theme="dark"] .landing-hero-meta,
[data-theme="dark"] .pricing-meta,
[data-theme="dark"] .pricing-price-old {
    color: #64748b;
}

/* --- Доработки: навигация, секции, CTA, доступность --- */
.landing-nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    padding: 6px 12px;
}
.landing-nav-burger svg {
    flex-shrink: 0;
}
.landing-nav-menu a.is-active {
    color: var(--brand-blue-deep);
    font-weight: 600;
}
.landing-nav-menu a.is-active::after {
    transform: scaleX(1);
}
[data-theme="dark"] .landing-nav-menu a.is-active {
    color: #93c5fd;
}
.landing-nav-overlay {
    display: none;
}
.btn-outline {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-outline:active,
.btn-primary-hero:active {
    transform: translateY(0);
}
.btn-outline:focus-visible,
.btn-primary-hero:focus-visible,
.pricing-cta-btn:focus-visible,
.landing-nav-menu a:focus-visible,
.contact-card:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}
.section-title span.icon {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.landing-block {
    margin: 40px 0 0;
    scroll-margin-top: 96px;
}
.landing-block-head {
    margin-bottom: 14px;
}
.landing-block-head .capability-section-title,
.landing-block-head .section-title {
    margin-bottom: 6px;
}
.hero-stat-value.is-loading {
    color: transparent;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    min-width: 2.5em;
    display: inline-block;
    animation: metricShimmer 1.2s ease-in-out infinite;
}
@keyframes metricShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.landing-hero-visual {
    min-height: 0;
}
#capabilities {
    margin-top: 8px;
}
.landing-pricing {
    margin-top: 0;
}
#contacts.landing-block {
    margin-top: 40px;
}
.faq-item summary {
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.faq-item summary:hover {
    background: rgba(59, 130, 246, 0.06);
}
.faq-item[open] summary {
    color: var(--brand-blue-deep);
    background: rgba(59, 130, 246, 0.08);
}
[data-theme="dark"] .faq-item summary:hover {
    background: rgba(59, 130, 246, 0.12);
}
[data-theme="dark"] .faq-item[open] summary {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.15);
}
.contact-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.contact-card-icon--vk {
    background: linear-gradient(135deg, #dbeafe, #e8f0fe);
    color: #0077ff;
}
.contact-card-icon--vk svg {
    width: 22px;
    height: 22px;
}
[data-theme="dark"] .contact-card-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}
.contact-card-value {
    transition: color 0.15s ease;
}
a.contact-card:hover .contact-card-value {
    color: var(--brand-blue);
}
[data-theme="dark"] a.contact-card:hover .contact-card-value {
    color: #93c5fd;
}
.landing-cta-band {
    margin: 44px 0 28px;
    padding: 22px 24px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 42%, #059669 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}
.landing-cta-band h2 {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.landing-cta-band p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.92;
    max-width: 32em;
    line-height: 1.5;
}
.landing-cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}
.landing-cta-band .btn-primary-hero {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}
.landing-cta-band .btn-primary-hero:hover {
    background: #f8fafc;
    color: #1e40af;
}
.landing-cta-band .btn-outline {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.landing-cta-band .btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
}
.landing-footer {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}
.landing-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    align-items: center;
}
.landing-footer-nav a {
    padding: 2px 4px;
    border-radius: 4px;
}
.landing-footer-nav a:hover {
    text-decoration: none;
    background: rgba(59, 130, 246, 0.1);
}
#pricingCards:empty {
    min-height: 120px;
    position: relative;
}
#pricingCards:empty::after {
    content: 'Загрузка тарифов…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #64748b;
}
[data-theme="dark"] #pricingCards:empty::after {
    color: #94a3b8;
}
[data-theme="dark"] .contact-card-icon--vk {
    color: #4d9fff;
    background: rgba(37, 99, 235, 0.2);
}
[data-theme="dark"] .hero-stat-value.is-loading {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}
[data-theme="dark"] .landing-nav {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}
[data-theme="dark"] .landing-footer {
    border-top-color: rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] .landing-footer-nav a:hover {
    background: rgba(59, 130, 246, 0.15);
}

@media (max-width: 1240px) {
    .landing-nav-burger {
        display: inline-flex;
    }
    .landing-nav-menu {
        display: none;
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 56px);
        left: 12px;
        right: 12px;
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.35);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(16px);
    }
    .landing-nav.is-menu-open .landing-nav-menu {
        display: flex;
    }
    .landing-nav-menu a {
        padding: 12px 14px;
        border-radius: 10px;
        white-space: normal;
    }
    .landing-nav-menu a:hover {
        background: rgba(59, 130, 246, 0.08);
    }
    .landing-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 25;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .landing-nav.is-menu-open .landing-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    [data-theme="dark"] .landing-nav-menu {
        background: rgba(15, 23, 42, 0.97);
        border-color: rgba(148, 163, 184, 0.25);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
    [data-theme="dark"] .landing-nav-menu a:hover {
        background: rgba(59, 130, 246, 0.15);
    }
}

@media (max-width: 900px) {
    .landing-hero-visual {
        min-height: auto;
    }
    .hero-showcase {
        min-height: auto;
    }
    .hero-showcase-map {
        min-height: 130px;
    }
    .landing-cta-band {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .landing-cta-band-actions {
        width: 100%;
        justify-content: stretch;
    }
    .landing-cta-band-actions .btn-primary-hero,
    .landing-cta-band-actions .btn-outline {
        flex: 1;
        justify-content: center;
    }
}
