/* ===== CSS Variables ===== */
:root {
    --text: #01215C;
    --btn: #04997C;
    --btn-hover: #037a63;
    --accent: #53B850;
    --bg: #f6f8fa;
    --surface: #fff;
    --text-secondary: #4a5c6c;
    --border: #e1e5ea;
    --gold: #d4a017;
    --icon: #8899aa;
    --shadow: 0 2px 8px rgba(1,33,92,0.05), 0 16px 40px rgba(1,33,92,0.07);
}

/* ===== Typography ===== */
body {
    font-family: 'Golos Text', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.hero h1,
.section-head h2,
.tariff-name,
.tariff-price,
.btn,
.hero-eyebrow,
.eyebrow,
.tab,
.step-num,
.nav a,
.faq-q,
.floating-chat,
.tariff-badge {
    font-family: 'Manrope', sans-serif;
}

h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
.btn { font-weight: 700; }
.tab { font-weight: 700; }
.eyebrow { font-weight: 800; }
.hero-eyebrow { font-weight: 700; }
.faq-q { font-weight: 700; }
.tariff-name { font-weight: 800; }
.tariff-price { font-weight: 900; }
.step-num { font-weight: 800; }

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.01em; margin-bottom: 16px; text-align: center; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { color: var(--text-secondary); }
.eyebrow { display: block; font-size: 13px; font-weight: 700; color: var(--btn); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; text-align: center; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { font-size: 17px; margin-top: 12px; }

/* ===== Smooth Scroll ===== */
html { scroll-behavior: smooth; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; text-decoration: none; font-family: inherit; transition: all 0.2s; }
.btn-primary { background: var(--btn); color: #fff; !important }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(4,153,124,0.3); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--btn); color: var(--btn); }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 16px 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.9rem; }
.nav a:hover { color: var(--btn); }
.nav .btn-primary {
    color: #ffffff !important;
}
.nav .btn-primary:hover {
    color: #ffffff !important;
}
@media(max-width:768px){.nav{display:none}}

/* ===== Icons ===== */
.icon-svg { width: 36px; height: 36px; stroke: var(--icon); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Hero ===== */
.hero { padding: 80px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;gap:40px}}
.hero-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #e6f7f2; color: var(--btn); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-secondary); margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.hero-trust strong { color: var(--text); }
.hero-visual { background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); border-radius: 20px; padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; border-radius: 12px; }

/* ===== Niches ===== */
.niche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media(max-width:900px){.niche-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.niche-grid{grid-template-columns:1fr}}
.niche { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color 0.15s, transform 0.15s; text-align: center; }
.niche:hover { border-color: var(--btn); transform: translateY(-2px); }
.niche-icon { width: 40px; height: 40px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.niche-icon svg { width: 28px; height: 28px; stroke: var(--icon); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.niche h3 { font-size: 16px; margin-bottom: 4px; }
.niche p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===== Problems ===== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
@media(max-width:900px){.problem-grid{grid-template-columns:1fr}}
.problem { padding: 28px; border-radius: 14px; background: #f0f2f5; border: 1px solid var(--border); }
.problem-num { font-size: 13px; color: var(--icon); font-weight: 700; margin-bottom: 8px; }
.problem h3 { font-size: 18px; margin-bottom: 6px; }
.problem p { font-size: 14px; margin: 0; }

/* ===== Solution ===== */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:900px){.solution-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.solution-grid{grid-template-columns:1fr}}
.solution-card { background: var(--surface); border-radius: 14px; padding: 28px; border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s; text-align: center; }
.solution-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.solution-icon { width: 44px; height: 44px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.solution-icon svg { width: 28px; height: 28px; stroke: var(--icon); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.solution-card h3 { font-size: 18px; }
.solution-card p { font-size: 14px; margin: 0; }

/* ===== UTP ===== */
.utp { background: var(--text); color: #fff; }
.utp h2 { color: #fff; }
.utp .section-head p { color: #aaa; }
.utp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media(max-width:900px){.utp-list{grid-template-columns:1fr}}
.utp-item { display: flex; gap: 14px; align-items: flex-start; }
.utp-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.utp-item h4 { font-size: 16px; margin-bottom: 4px; color: #fff; }
.utp-item p { color: #aaa; font-size: 14px; margin: 0; }

/* ===== How it works ===== */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.tab { padding: 10px 22px; border-radius: 999px; background: #f0f2f5; color: var(--text-secondary); font-size: 14px; font-weight: 600; transition: all 0.15s; cursor: pointer; border: 1.5px solid transparent; }
.tab.active { background: var(--btn); color: #fff; }

/* Steps - Desktop */
.steps { display: none; }
.steps.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fafafa; border-radius: 14px; padding: 28px; border: 1px solid var(--border); text-align: center; }
.step img { width: 100%; border-radius: 12px; margin-top: 16px; border: 1px solid var(--border); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--btn); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; margin: 0; }

/* ===== Marquee ===== */
.marquee { background: var(--text); color: #fff; padding: 16px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 25s linear infinite; }
.marquee-item { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; padding: 0 32px; opacity: 0.9; }
.marquee-item .sep { color: var(--gold); margin: 0 16px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== Demo ===== */
.demo-grid { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 24px; align-items: stretch; }
@media(max-width:900px){.demo-grid{grid-template-columns:1fr}}
.demo-instruction { background: var(--surface); border-radius: 18px; padding: 32px 20px; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.demo-instruction h3 { font-size: 1.1rem; margin-bottom: 12px; }
.demo-instruction ol { text-align: left; padding-left: 20px; color: var(--text-secondary); font-size: 0.9rem; }
.demo-instruction ol li { margin-bottom: 8px; }
.demo-link { display: inline-block; margin-top: 16px; color: var(--btn); font-weight: 600; }

/* ===== Forms ===== */
.form-card { background: var(--surface); border-radius: 18px; padding: 32px 24px; border: 1px solid var(--border); }
.form-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.form-subtitle { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 24px; text-align: center; }
.step-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--btn); margin-bottom: 8px; }

/* Calendar */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calendar-title { font-weight: 700; font-size: 1rem; }
.nav-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); cursor: pointer; font-size: 1rem; color: var(--text); font-family: inherit; }
.nav-btn:hover { border-color: var(--btn); color: var(--btn); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.weekday { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); padding: 4px 0; }
.day-btn { padding: 8px 4px; border: 1.5px solid transparent; border-radius: 8px; background: var(--bg); cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text); font-family: inherit; transition: 0.2s; }
.day-btn:hover { border-color: var(--btn); color: var(--btn); }
.day-btn.selected { background: var(--btn); color: #fff; border-color: var(--btn); }
.day-btn.today { border-color: var(--accent); }
.day-btn.past { opacity: 0.3; cursor: not-allowed; }
.day-btn.empty { background: transparent; cursor: default; }

/* Time slots */
.time-slots { margin-bottom: 20px; }
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn { padding: 10px 8px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); font-weight: 600; font-size: 0.85rem; cursor: pointer; font-family: inherit; color: var(--text); transition: 0.2s; }
.slot-btn:hover { border-color: var(--btn); color: var(--btn); }
.slot-btn.selected { background: var(--btn); color: #fff; border-color: var(--btn); }
.slot-btn.busy { background: #f0f2f5; color: #aaa; cursor: not-allowed; text-decoration: line-through; }

/* Form fields */
.field { margin-bottom: 14px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.9rem; font-family: inherit; background: var(--bg); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { height: 70px; resize: vertical; }

.submit-btn { width: 100%; padding: 14px; background: var(--btn); color: #fff; border: none; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; }
.submit-btn:hover { background: var(--btn-hover); }
.status { text-align: center; margin-top: 12px; font-size: 0.85rem; min-height: 20px; }
.status.success { color: var(--accent); }
.status.error { color: #d32f2f; }

/* ===== Consent ===== */
.consent { 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    margin: 12px 0; 
    font-size: 0.7rem; 
    color: var(--text-secondary); 
    line-height: 1.4; 
    max-width: 100%;
}
.consent input { 
    width: 14px; 
    height: 14px; 
    margin-top: 2px; 
    flex-shrink: 0; 
    cursor: pointer; 
    flex: 0 0 14px;
}
.consent label { 
    cursor: pointer; 
    font-size: 0.7rem; 
    line-height: 1.4; 
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}
.consent a { 
    color: var(--btn); 
    text-decoration: underline; 
    white-space: nowrap;
}

/* ===== Benefits ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:900px){.benefits-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.benefits-grid{grid-template-columns:1fr}}
.benefit { padding: 24px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--border); text-align: center; }
.benefit-icon { width: 40px; height: 40px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.benefit-icon svg { width: 28px; height: 28px; stroke: var(--icon); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 16px; margin-bottom: 6px; }
.benefit p { font-size: 14px; margin: 0; }

/* ===== Tariffs ===== */
.tariffs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
@media(max-width:768px){.tariffs-grid{grid-template-columns:1fr}}
.tariff { background: var(--surface); border-radius: 16px; padding: 32px; border: 1.5px solid var(--border); display: flex; flex-direction: column; position: relative; transition: transform 0.2s, box-shadow 0.2s; text-align: center; }
.tariff:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tariff.popular { border: 2px solid var(--btn); }
.tariff-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--btn); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.tariff-name { font-size: 14px; font-weight: 700; color: var(--btn); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.tariff-price { font-size: 36px; font-weight: 900; margin-bottom: 4px; }
.tariff-price span { font-size: 15px; color: var(--text-secondary); font-weight: 400; }
.tariff-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.tariff-features { list-style: none; margin-bottom: 24px; text-align: left; flex: 1; }
.tariff-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); display: flex; gap: 10px; align-items: flex-start; }
.tariff-features li::before { content: "✓"; color: var(--btn); font-weight: 700; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; cursor: pointer; }
.faq-q { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 15px; user-select: none; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--btn); font-weight: 400; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; padding: 0 24px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ===== Guarantees ===== */
.guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:900px){.guarantee-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.guarantee-grid{grid-template-columns:1fr}}
.guarantee { padding: 28px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--border); text-align: center; }
.guarantee-icon { width: 44px; height: 44px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.guarantee-icon svg { width: 28px; height: 28px; stroke: var(--icon); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guarantee h3 { font-size: 17px; margin-bottom: 6px; }
.guarantee p { font-size: 14px; margin: 0; }

/* ===== Contact ===== */
.contact-card { background: var(--surface); border-radius: 20px; padding: 40px; border: 1px solid var(--border); max-width: 500px; margin: 0 auto; }
.contact-card .field { margin-bottom: 14px; }
.contact-card label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.contact-card input, .contact-card textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.9rem; font-family: inherit; background: var(--bg); }
.contact-card textarea { height: 80px; resize: vertical; }

/* ===== Final CTA ===== */
.final-cta { background: var(--text); color: #fff; text-align: center; padding: 72px 0; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #aaa; font-size: 17px; margin-bottom: 28px; }
.final-cta .btn-primary { background: var(--btn); color: #fff; !important }

/* ===== Footer ===== */
.footer { 
    background: #ffffff;
    color: var(--text);
    padding: 48px 0 24px; 
    font-size: 13px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 32px; 
    margin-bottom: 32px; 
}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr 1fr;gap:24px}}
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { 
    color: var(--text-secondary);
    margin-top: 12px; 
    font-size: 13px; 
    line-height: 1.6; 
}
.footer-col h4 { 
    color: var(--text);
    font-size: 14px; 
    margin-bottom: 14px; 
    font-weight: 700; 
}
.footer-col a { 
    display: block; 
    padding: 4px 0; 
    color: var(--text-secondary);
    transition: color 0.15s; 
    text-decoration: none; 
}
.footer-col a:hover { 
    color: var(--btn);
}
.footer-bottom { 
    padding-top: 24px; 
    border-top: 1px solid var(--border);
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 12px; 
    color: var(--text-secondary);
}

/* ===== Floating Chat ===== */
.floating-chat { position: fixed; bottom: 24px; right: 24px; z-index: 40; background: var(--btn); color: #fff; padding: 14px 20px; border-radius: 999px; box-shadow: 0 12px 30px rgba(4,153,124,0.3); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: transform 0.15s, background 0.15s; text-decoration: none; }
.floating-chat:hover { background: var(--btn-hover); transform: translateY(-2px); color: #fff; }
.floating-chat .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,0.6)} 70%{box-shadow:0 0 0 10px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 39;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--btn);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(4,153,124,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--btn-hover);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: modalSlideUp 0.4s ease;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-icon { font-size: 56px; margin-bottom: 16px; display: block; }
.modal h2 { font-size: 28px; margin-bottom: 12px; color: var(--text); }
.modal p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.modal-close { min-width: 160px; }

/* ===== Spinner ===== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ===== Steps - Mobile ===== */
.steps-mobile { 
    display: none; 
}

/* ===== Mobile Gallery ===== */
@media(max-width:900px){
    .steps { display: none !important; }
    .steps.active { display: none !important; }
    .steps-mobile { 
        display: block !important; 
    }
    
    .gallery { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
    .gallery-text { padding: 20px 20px 12px; text-align: center; flex-shrink: 0; }
    .gallery-text h3 { font-size: 1.1rem; margin-bottom: 4px; }
    .gallery-text p { font-size: 0.9rem; }
    .gallery-image { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
    .gallery-image img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); }
    .gallery-nav { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 16px; flex-shrink: 0; }
    .gallery-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); cursor: pointer; font-size: 1.2rem; color: var(--text); font-family: inherit; display: flex; align-items: center; justify-content: center; }
    .gallery-dots { display: flex; gap: 8px; }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; cursor: pointer; transition: 0.2s; }
    .dot.active { background: var(--btn); width: 20px; border-radius: 50px; }
}

/* ===== Page Load Animations ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-header { animation: fadeInDown 0.6s ease forwards; }
.animate-hero { animation: fadeInScale 0.8s ease 0.2s forwards; opacity: 0; }
.animate-niches { animation: slideInLeft 0.7s ease 0.4s forwards; opacity: 0; }
.animate-problems { animation: slideInRight 0.7s ease 0.6s forwards; opacity: 0; }
.animate-solution { animation: fadeInScale 0.8s ease 0.8s forwards; opacity: 0; }
.animate-utp { animation: slideInLeft 0.7s ease 1.0s forwards; opacity: 0; }
.animate-how { animation: fadeInScale 0.8s ease 1.2s forwards; opacity: 0; }
.animate-demo { animation: slideInRight 0.7s ease 1.4s forwards; opacity: 0; }
.animate-benefits { animation: fadeInScale 0.8s ease 1.6s forwards; opacity: 0; }
.animate-tariffs { animation: slideInLeft 0.7s ease 1.8s forwards; opacity: 0; }
.animate-faq { animation: fadeInScale 0.8s ease 2.0s forwards; opacity: 0; }
.animate-guarantees { animation: slideInRight 0.7s ease 2.2s forwards; opacity: 0; }
.animate-contact { animation: fadeInScale 0.8s ease 2.4s forwards; opacity: 0; }
.animate-cta { animation: fadeInDown 0.6s ease 2.6s forwards; opacity: 0; }

/* ===== Fade-in Animation (scroll) ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }
.fade-in:nth-child(7) { animation-delay: 0.6s; }
.fade-in:nth-child(8) { animation-delay: 0.7s; }

/* ===== Decorative Elements ===== */
.hero-visual {
    position: relative;
    overflow: hidden;
}
.hero-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(4,153,124,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--btn), var(--accent));
    border-radius: 99px;
    margin: 0 auto 24px;
}
.solution-card,
.tariff,
.benefit,
.guarantee {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover,
.tariff:hover,
.benefit:hover,
.guarantee:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(1,33,92,0.10);
}
.tariff.popular {
    position: relative;
    border-color: var(--btn);
}
.tariff.popular::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--btn), var(--accent), var(--btn));
    z-index: -1;
    opacity: 0.15;
    filter: blur(6px);
}
.btn-primary {
    background: linear-gradient(135deg, var(--btn), var(--btn-hover));
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(4,153,124,0.35);
}
.floating-chat .pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Enhanced Hero Background ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5f0 40%, #f0f7ff 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(4,153,124,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(1,33,92,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 1;
}

/* ===== Animated Icons ===== */
.niche-icon svg,
.solution-icon svg,
.benefit-icon svg,
.guarantee-icon svg {
    transition: transform 0.4s ease, stroke 0.3s ease;
}
.niche:hover .niche-icon svg,
.solution-card:hover .solution-icon svg,
.benefit:hover .benefit-icon svg,
.guarantee:hover .guarantee-icon svg {
    transform: scale(1.15) rotate(-4deg);
    stroke: var(--btn);
}

/* ===== Responsive Overrides ===== */
@media(max-width:768px){
    section{padding:56px 0}
    .demo-grid{grid-template-columns:1fr}
    .demo-instruction{order:-1}
}
@media(max-width:600px){
    .hero h1{font-size:28px}
    .tariffs-grid{grid-template-columns:1fr}
    .floating-chat{padding:12px 16px;font-size:13px;bottom:16px;right:16px}
}

/* ===== Жёсткое скрытие мобильной галереи на десктопе ===== */
@media(min-width:901px){
    .steps-mobile {
        display: none !important;
    }
}
/* ===== Demo forms mobile fix ===== */
.demo-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
@media(max-width:900px){
    .demo-forms-grid {
        grid-template-columns: 1fr !important;
    }
}