/* ============================================================
   КОНТЕНТ-МАШИНА — Mobile Styles WHITE THEME (max-width: 768px)
   ============================================================ */

:root {
    --bg:           #f0f4f8;
    --bg-alt:       #e8eef5;
    --bg-card:      #ffffff;
    --bg-section:   #f7fafc;
    --border:       rgba(37, 99, 235, 0.12);
    --border-hov:   rgba(37, 99, 235, 0.35);
    --blue:         #2563eb;
    --blue-light:   #60a5fa;
    --blue-pale:    #dbeafe;
    --blue-glow:    rgba(37, 99, 235, 0.18);
    --text:         #1e293b;
    --text-muted:   #64748b;
    --text-dim:     #94a3b8;
    --white:        #ffffff;
    --radius-sm:    8px;
    --radius-md:    13px;
    --radius-lg:    18px;
    --radius-xl:    24px;
    --shadow-sm:    0 2px 8px rgba(37,99,235,0.07);
    --shadow-md:    0 8px 28px rgba(37,99,235,0.10);
    --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
    --font:         'Inter', system-ui, sans-serif;
    --header-h:     60px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    font-size: 15px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, p, .section-label,
.hero-badge, .hero-subtitle, .contact-subtitle,
.footer-copy, .modal-text, .modal-sub { text-wrap: balance; }

.container {
    width: 100%;
    padding: 0 20px;
}

.section-full {
    min-height: 100vh; /* Меняем dvh на vh — это убьет лаги и скачки при скрытии адресной строки */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 28px) 0 52px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 16px var(--blue-glow); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { background: var(--blue-pale); color: var(--blue); border: 1.5px solid var(--border-hov); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-large { padding: 15px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ─────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(240,244,248,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.logo-name { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.logo-tag { font-size: 8px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }

.nav { display: none; }
.btn-header { display: none; }

/* ── BURGER ─────────────────────────────────────────────── */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0 10px;
    -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(240,244,248,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    padding: 20px;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    display: block;
}
.mobile-menu .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ── SECTION HEADER ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 36px; }
.section-label {
    display: inline-block;
    padding: 5px 14px;
    background: var(--blue-pale);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title { font-size: 28px; font-weight: 900; color: var(--text); line-height: 1.15; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
    background: var(--bg);
    padding-top: var(--header-h);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37,99,235,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Gap handled by margins now via order */
    text-align: center;
    padding-top: 28px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: contents; /* Flattens children */
}

.hero-badge    { order: 1; margin-bottom: 24px; }
.hero-title    { order: 2; margin-bottom: 16px; font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--text); letter-spacing: -0.025em; }
.hero-subtitle { order: 3; margin-bottom: 24px; font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.hero-visual   { order: 4; width: 100%; display: flex; justify-content: center; margin-bottom: 32px; }
.hero-stats    { order: 5; margin-bottom: 32px; }
.hero-cta      { order: 6; display: flex; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 28px; }
.hero-cta .btn { width: 100%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--blue-pale);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
}
.badge-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50%      { box-shadow: 0 0 0 5px rgba(37,99,235,0); }
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: 100%;
}
.stat { text-align: center; flex: 1; }
.stat-num { display: block; font-size: 18px; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }

.hero-robot { width: 100%; max-width: 380px; }

/* ── FEATURES (2 мысли на 1 экран) ───────────────────────── */
.features { background: var(--white); padding: 0; }
.features .section-header { padding: 60px 20px 20px; }

.features-grid { display: flex; flex-direction: column; gap: 0; }

.feature-card {
    min-height: auto; /* Снимаем жесткую высоту, чтобы карточки шли естественно (1.5 на экран) */
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Комфортные отступы для плотности */
    text-align: center;
    width: 100%;
}
/* Мощно подтягиваем первую карточку прямо к заголовку */
.features-grid .feature-card:first-child {
    padding-top: 5px; 
}

.feature-img-wrap {
    width: 100%;
    max-width: 360px; /* Увеличили, чтобы картинка была на весь экран */
    margin-bottom: 20px;
}
.feature-img-wrap img { 
    width: 100%; 
    height: auto; 
    transform: scale(1.15); /* Зум для эффекта объема */
}

.feature-body { width: 100%; }
.feature-body h3 { 
    font-size: 24px; 
    font-weight: 900; 
    margin-bottom: 10px; 
    color: var(--text);
}
.feature-body p { 
    font-size: 16px; 
    color: var(--text-muted); 
    line-height: 1.6;
}

/* ── HOW IT WORKS (Неоновый провод и плотность) ────────── */
.how-it-works {
    background: #0f172a; /* Темный фон, чтобы синий провод "горел" */
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.steps-track { 
    position: relative; 
    z-index: 1; 
}

/* МАГИЯ ПРОВОДА: Делаем линии видимыми */
.wire-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block !important;
    opacity: 0.6;
}

/* Колея провода (серая нить) */
#wirePath {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1); 
    stroke-width: 2px;
}

/* Активная часть (синий неон) */
#wireActive {
    fill: none;
    stroke: var(--blue-light); 
    stroke-width: 3px;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px var(--blue));
}

/* Светящаяся точка */
#sparkDot {
    fill: var(--white);
    filter: drop-shadow(0 0 10px var(--blue-light));
}

/* 1.5 экрана = 1 мысль */
.step-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto; /* Снимаем прыгающий dvh */
    padding: 40px 20px; /* Идеальные отступы для нужной нам плотности */
    text-align: center;
    width: 100%;
}
/* Прижимаем первую карточку прямо под заголовок */
#stepsTrack .step-row:first-of-type {
    padding-top: 5px;
}

.step-row .step-img-col { 
    order: 1; 
    width: 140px; /* Ужали до охуительного размера из первого блока */
    height: 140px;
    margin: 0 auto 16px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-row .step-img-box img { 
    width: 100%; 
    height: auto; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); 
}

.step-row .step-text-col { 
    order: 2; 
    width: 100%; 
}

.step-text-col h3 { 
    font-size: 22px; /* Чуть-чуть уменьшили */
    font-weight: 800; 
    color: var(--white); 
    margin-bottom: 8px; /* Чуть сдвинули к тексту */
    letter-spacing: -0.01em;
    line-height: 1.1; /* Сжали расстояние между переносами строк */
    width: 100%; /* Гарантируем ширину на весь экран */
}

.step-text-col p { 
    font-size: 16px; 
    color: rgba(255,255,255,0.8); 
    line-height: 1.6; 
}

/* Финальная плашка в шагах */
.premium-frame {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(0,0,0,0));
    border: 1px solid rgba(37,99,235,0.4) !important;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    width: 100%;
    text-align: left;
}

.premium-intro { font-size: 16px; color: var(--white); margin-bottom: 16px; }
.premium-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.premium-list li { display: flex; gap: 10px; font-size: 14px; color: #eee; }
.highlight-text { 
    font-size: 14px; 
    color: var(--blue-light); 
    padding: 14px; 
    background: rgba(37,99,235,0.15); 
    border-left: 3px solid var(--blue); 
    border-radius: 8px; 
}

/* ── PRICING ────────────────────────────────────────────── */
.pricing {
    background: var(--white);
    padding: 60px 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pricing-grid { display: flex; flex-direction: column; gap: 16px; }

.price-card {
    border-radius: var(--radius-lg);
    background: var(--bg-section);
    border: 1px solid var(--border);
}
.price-card.featured {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 8px 32px rgba(37,99,235,0.3);
}
.price-card-inner { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }

.popular-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    width: fit-content;
}
.plan-name { font-size: 20px; font-weight: 800; color: var(--text); }
.price-icon {
    font-size: 32px;
    border-radius: 50%;
    background: rgba(37,99,235,0.08);
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.price-card.featured .price-icon { background: rgba(255,255,255,0.15); }
.price-card.featured .plan-name { color: var(--white); }
.price-amount { font-size: 28px; font-weight: 900; color: var(--text); display: block; line-height: 1; }
.price-card.featured .price-amount { color: var(--white); }
.price-period { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.price-card.featured .price-period { color: rgba(255,255,255,0.7); }
.price-alt { font-size: 12px; color: var(--text-dim); }
.price-card.featured .price-alt { color: rgba(255,255,255,0.6); }
.price-features { display: flex; flex-direction: column; gap: 9px; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); }
.price-card.featured .price-features li { color: rgba(255,255,255,0.85); }
.check-icon { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.price-card.featured .check-icon { color: var(--white); }
.price-card.featured .btn-outline { border-color: var(--white); color: var(--white); }
/* Белая кнопка для популярного тарифа */
.price-card.featured .btn-primary { background: var(--white); color: #1e293b; box-shadow: none; }
.price-card.featured .btn-primary:active { background: #dbeafe !important; transform: scale(0.97); }

/* ── CONTACT ────────────────────────────────────────────── */
.contact {
    background: var(--bg);
    padding: 60px 0 80px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-container { display: flex; flex-direction: column; gap: 40px; }
.contact-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-left .section-label { margin-bottom: 16px; }
.contact-left .section-title { text-align: center; font-size: 32px; }
.contact-subtitle { font-size: 16px; color: var(--text-muted); margin: 16px 0 28px; line-height: 1.7; text-align: center; }
.contact-benefits { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.contact-benefits li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); font-weight: 500; justify-content: center; }
.cb-icon { font-size: 18px; }

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-md);
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text); }
.required-mark { color: var(--blue); }

.form-group input {
    background: var(--bg);
    border: 1.5px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-family: var(--font);
    font-size: 16px; /* prevent iOS zoom */
    color: var(--text);
    transition: var(--transition);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-pale); }
.form-group input.error { border-color: #ef4444; }

/* CHECKBOX */
.checkbox-group { margin-top: -4px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; user-select: none; }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 2px solid rgba(37,99,235,0.3);
    border-radius: 6px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 1px;
}
.checkbox-custom::after { content: '✓'; font-size: 13px; font-weight: 800; color: var(--white); opacity: 0; transform: scale(0.5); transition: var(--transition); }
.checkbox-label input:checked ~ .checkbox-custom { background: var(--blue); border-color: var(--blue); }
.checkbox-label input:checked ~ .checkbox-custom::after { opacity: 1; transform: scale(1); }
.checkbox-text { font-size: 11px; color: var(--text-muted); line-height: 1.65; }
.checkbox-text a { color: var(--blue); text-decoration: underline; }

.btn-submit { padding: 15px; font-size: 15px; }
.btn-loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 24px 0; }
.footer-container { display: flex; flex-direction: column; gap: 14px; }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer .logo { font-size: 14px; color: var(--text); }
.footer .logo img { width: 24px; height: 24px; }
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-dim); }

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(30,41,59,0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 0;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 36px 24px 44px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 -20px 60px rgba(37,99,235,0.12);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.modal-icon { font-size: 40px; margin-bottom: 16px; }
.modal-title { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.modal-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.modal-sub { font-size: 12px; color: var(--text-muted); padding: 10px 14px; background: var(--blue-pale); border-radius: var(--radius-sm); margin-bottom: 20px; }

::selection { background: var(--blue-pale); color: var(--blue); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.2); border-radius: 2px; }

/* ══ DARK THEME OVERRIDES (.section-dark) ══════════════════ */
:root {
    --bg-dark:      #0a0f18;
    --card-dark:    rgba(255,255,255,0.03);
    --border-dark:  rgba(255,255,255,0.08);
    --text-dark:    #ffffff;
    --text-muted-dark: rgba(255,255,255,0.65);
}

.section-dark { background: var(--bg-dark); color: var(--text-dark); }
.section-dark .section-title { color: var(--text-dark); }
.section-dark .section-subtitle { color: var(--text-muted-dark); }
.section-dark .section-label { background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.3); color: var(--blue-light); }

/* Features Dark Mobile */
.section-dark.features .feature-card {
    background: var(--bg-dark);
    border-color: var(--bg-dark); 
    box-shadow: none;
    flex-direction: column; /* Ensure vertical on dark theme mobile */
    align-items: center;
    text-align: center;
    padding: 24px;
}
.section-dark.features .feature-img-wrap {
    background: transparent;
    border-right: none;
    padding: 0;
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
}
.section-dark.features .feature-body {
    background: transparent;
    padding: 0;
}
.section-dark.features .feature-body h3 { color: var(--text-dark); font-size: 20px; }
.section-dark.features .feature-body p { color: var(--text-muted-dark); font-size: 15px; }

/* Steps Dark Mobile */
.section-dark.how-it-works .step-row { border-bottom-color: rgba(255,255,255,0.08); }
.section-dark.how-it-works .step-img-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.section-dark.how-it-works .step-text-col p { color: var(--text-muted-dark); }

/* ── PREVIEW WINDOWS MOBILE (Expanded Card & Tablet View Trick) ── */
.preview-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
}

.preview-window { 
    /* Расширяем карточку на максимум (учитываем 20px padding контейнера) */
    width: calc(100% + 24px); 
    margin-left: -12px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 10px;
    box-shadow: var(--shadow-md);
}

.preview-win-header { 
    text-align: center; 
    margin-bottom: 20px; 
    padding: 0 10px;
}

.preview-win-title { 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--text); 
    margin-bottom: 6px; 
    line-height: 1.2; 
}

.preview-win-disclaimer { 
    font-size: 13px; 
    color: var(--text-muted); 
    line-height: 1.5; 
}

.preview-frame-wrap { 
    width: 100%; 
    height: 65vh; 
    position: relative; 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    background: var(--white); 
    border: 1px solid var(--border); 
}

.preview-browser-bar { 
    flex-shrink: 0;
    background: #f1f5f9; 
    padding: 8px 10px; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    border-bottom: 1px solid var(--border); 
    z-index: 2;
}

.browser-dot { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }

.browser-url { 
    margin-left: 8px; 
    font-size: 10px; 
    color: var(--text-dim); 
    background: var(--white); 
    padding: 2px 10px; 
    border-radius: 4px; 
    flex-grow: 1; 
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-iframe { 
    position: absolute;
    top: 38px; /* Высота серой плашки браузера */
    left: 0;
    width: 133.33%; 
    /* Рассчитываем высоту так, чтобы после сжатия (0.75) она была 100% */
    height: calc((100% - 38px) * 1.3333); 
    transform: scale(0.75); 
    transform-origin: top left;
    border: none; 
    display: block; 
}

.preview-open-btn { 
    margin-top: 20px; 
    width: fit-content; 
    display: inline-flex;
}