/* ============================================
   GrimCRM Landing — Premium Presentation
   ============================================ */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --accent: #6366f1;
    --accent-2: #06b6d4;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #686880;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --danger: #ef4444;
    --success: #22c55e;
    --nav-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
}

/* Nav */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease, border-color .4s ease;
    z-index: 500;
}
.landing-nav.scrolled {
    background: rgba(10, 10, 26, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-logo img { height: 32px; border-radius: 6px; }
.landing-logo span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-nav-links { display: flex; align-items: center; gap: 24px; }
.landing-nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color .2s; }
.landing-nav-links a:hover { color: var(--text-primary); }
.landing-nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

/* Language switcher — слайдер */
.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 3px;
}
.lang-slider {
    position: absolute;
    top: 3px; left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 1;
}
.lang-switch[data-lang="ru"] .lang-slider { transform: translateX(100%); }
.lang-switch a {
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 7px;
    transition: color .2s;
}
.lang-switch a:hover { color: var(--text-primary); }
.lang-switch a.active { color: #fff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all .2s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 499;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s;
}
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu-cta {
    margin-top: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: 3;
    pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}
.orb-1 { width: 420px; height: 420px; background: var(--accent); top: -80px; left: -60px; }
.orb-2 { width: 380px; height: 380px; background: var(--accent-2); bottom: -60px; right: -40px; }
.orb-3 { width: 260px; height: 260px; background: #a855f7; top: 40%; left: 60%; opacity: 0.3; }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-title {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
    text-wrap: balance;
}
.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    margin: 20px auto 36px;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    text-wrap: pretty;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stage {
    position: relative;
    z-index: 2;
    margin-top: 64px;
    width: 100%;
    max-width: 720px;
    height: 380px;
}

.hero-model {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ============================================
   Bottle — плоский 2D
   ============================================ */
.bottle {
    position: relative;
    width: 160px;
    margin: 0 auto;
    animation: bottleFloat 5s ease-in-out infinite;
}
.bottle-cap {
    position: relative;
    width: 54px;
    height: 16px;
    margin: 0 auto;
    background: #3b82f6;
    border-radius: 4px 4px 0 0;
    z-index: 3;
}
.bottle-neck {
    position: relative;
    width: 54px;
    height: 36px;
    margin: 0 auto;
    background: rgba(180, 220, 255, 0.22);
    border-left: 3px solid rgba(180, 220, 255, 0.5);
    border-right: 3px solid rgba(180, 220, 255, 0.5);
    clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.bottle-body {
    position: relative;
    width: 130px;
    height: 230px;
    margin: -2px auto 0;
    background: rgba(180, 220, 255, 0.12);
    border: 3px solid rgba(180, 220, 255, 0.4);
    border-radius: 12px 12px 22px 22px;
    overflow: hidden;
}
.bottle-water {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: #3b82f6;
    border-radius: 0 0 19px 19px;
    opacity: 0.35;
}
.bottle-water::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10%;
    right: -10%;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0.35;
    animation: waterWave 3s ease-in-out infinite;
}
@keyframes waterWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
.bottle-label {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    background: var(--accent);
    color: #fff;
    padding: 10px 10px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
}
.bottle-brand { display: block; font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.bottle-sub { display: block; font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* Вокруг бутыли — пульсирующее свечение */
.bottle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes bottleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* model-glow removed — replaced by .bottle-glow */

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: hintBounce 2s infinite;
    z-index: 2;
}
@keyframes hintBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* Sections */
.section { padding: 100px 24px; position: relative; }
.section-header { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; font-weight: 800; text-wrap: balance; }
.section-subtitle { margin-top: 14px; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

/* Problem/Solution slide */
.slide-section { display: flex; align-items: center; justify-content: center; }
.slide-panel {
    max-width: 900px;
    width: 100%;
    background: linear-gradient(160deg, #151528, #1b1b36);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
}
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pain-list li {
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 16px;
}
.slide-panel-back { margin-top: 28px; }
.slide-panel-back .pain-list li {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Features */
.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 24px;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 211, 238, 0.06));
    margin-bottom: 16px;
    flex-shrink: 0;
}
.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-2);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-card h4 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; font-size: 15px; flex: 1; }

/* How it works — timeline */
.how-section { background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.06), transparent); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glass-border) 15%, var(--glass-border) 85%, transparent);
    transform: scaleX(0);
    transform-origin: left;
}
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.timeline-step {
    position: relative;
    text-align: center;
    padding-top: 72px;
}
.timeline-num {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-2);
    z-index: 2;
}
.timeline-num::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.15);
}
.timeline-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.timeline-desc { font-size: .9rem; color: var(--text-secondary); line-height: 1.65; padding: 0 10px; }

/* Tariffs */
.tariffs-section { background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.06), transparent); }

/* Slider */
.tariff-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 56px;
}
.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
}
.slider-track > .tariff-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

/* Arrow buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(21, 21, 40, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .25s, border-color .25s, transform .25s;
}
.slider-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-50%) scale(1.08);
}
.slider-btn:active {
    transform: translateY(-50%) scale(0.96);
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-prev { left: 0; }
.slider-next { right: 0; }

/* Disabled state when at start/end */
.slider-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: transparent;
    cursor: pointer;
    transition: background .3s, border-color .3s, transform .3s;
    padding: 0;
}
.slider-dot:hover { border-color: rgba(255,255,255,0.5); }
.slider-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Tariff card (unchanged appearance) */
.tariff-card {
    background: linear-gradient(160deg, #151528, #1b1b36);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    user-select: none;
}
.tariff-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}
.tariff-card h4 { font-size: 20px; margin-bottom: 6px; }
.tariff-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.tariff-price {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 14px 0;
    line-height: 1.2;
}
.tariff-currency { font-size: 15px; font-weight: 600; }
.tariff-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tariff-features li { color: var(--text-secondary); font-size: 14px; }
.tariff-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Bot section */
.bot-section { background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.06), transparent); }
.bot-stage {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.bot-phone {
    justify-self: center;
    width: 280px;
    height: 560px;
    background: #0d0d20;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
}
.bot-phone-screen {
    width: 100%;
    height: 100%;
    background: #101024;
    border-radius: 30px;
    overflow: hidden;
    padding: 20px 14px;
}
.bot-chat { display: flex; flex-direction: column; gap: 10px; }
.bot-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.bot-in {
    align-self: flex-start;
    background: #1e1e3a;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.bot-out {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.bot-text .section-title { margin-bottom: 16px; }
.bot-text p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.bot-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bot-list li {
    padding-left: 28px;
    position: relative;
    color: var(--text-primary);
    font-size: 15px;
}
.bot-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats */
.stats-section { padding: 80px 24px; }
.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

/* Contact / form */
.contact-section { background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.06), transparent); }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-head { text-align: center; margin-bottom: 40px; }
.contact-head p { color: var(--text-secondary); margin-top: 12px; line-height: 1.6; }

.lead-form {
    background: linear-gradient(160deg, #151528, #1b1b36);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.form-field .req { color: var(--danger); }
.form-field input,
.form-field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field-invalid input,
.form-field-invalid textarea { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 13px; }
.form-note { margin-top: 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.lead-form .btn-lg { width: 100%; }
.lead-form .form-field { margin-bottom: 20px; }

/* Success — модальное окно поверх страницы */
.lead-success {
    text-align: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn .35s ease;
    padding: 24px;
}
.lead-success .success-card {
    background: linear-gradient(160deg, #151528, #1b1b36);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    max-width: 420px;
    width: 100%;
    animation: successPop .5s cubic-bezier(.5, 1.6, .5, 1);
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes successPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--success), #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
    animation: successPop .6s cubic-bezier(.5, 1.6, .5, 1);
}
@keyframes successPop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lead-success h3 { font-size: 28px; margin-bottom: 12px; }
.lead-success p { color: var(--text-secondary); margin-bottom: 24px; }

/* Footer */
.landing-footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-footer .landing-logo {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.landing-footer p { color: var(--text-muted); font-size: 14px; }
.footer-hours {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.7;
}

/* Floating back-to-top */
.to-top-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(21, 21, 40, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease, background .25s, border-color .25s;
    pointer-events: none;
}
.to-top-float.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.to-top-float:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}
.to-top-float svg { width: 22px; height: 22px; }

/* Responsive — tablet */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-nav-links { display: none; }
    .landing-nav-right .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
}
/* Responsive — mobile */
@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }
    .hero-stage { height: 320px; margin-top: 40px; }
    .bottle { transform: scale(0.85); }
    .bottle-body { width: 110px; height: 190px; }
    .bottle-cap { width: 44px; height: 14px; }
    .bottle-neck { width: 44px; height: 30px; }
    .bottle-label { top: 32px; width: 92px; }
    .bottle-glow { width: 160px; height: 160px; }
    .features-grid { grid-template-columns: 1fr; }
    /* Timeline mobile — vertical */
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 31px;
        width: 2px;
        height: auto;
        right: auto;
        background: linear-gradient(transparent, var(--glass-border) 10%, var(--glass-border) 90%, transparent);
        transform: scaleY(0);
        transform-origin: top;
    }
    .timeline-steps { grid-template-columns: 1fr; gap: 48px; }
    .timeline-step { text-align: left; padding-top: 0; padding-left: 80px; }
    .timeline-num { top: 0; left: 0; transform: none; width: 62px; height: 62px; font-size: 1rem; }
    .timeline-title { text-align: left; }
    .timeline-desc { text-align: left; padding: 0; }
    .lead-form { padding: 28px 20px; }
    .section { padding: 70px 20px; }
    /* Slider mobile */
    .tariff-slider { padding: 0 16px; }
    .slider-track > .tariff-card {
        flex: 0 0 100%;
    }
    .slider-btn { width: 36px; height: 36px; }
    .slider-btn svg { width: 18px; height: 18px; }
    .slider-prev { left: 0; }
    .slider-next { right: 0; }
    /* Footer mobile */
    .landing-footer {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 28px 20px;
    }
    .landing-footer .landing-logo {
        position: static;
        transform: none;
        align-self: flex-start;
    }
    .landing-footer .landing-logo img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-scroll-hint { animation: none; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
