:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-bg: #eef2ff;
    --success: #10b981;
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero Section */
header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.025em; line-height: 1.2; }
.subtitle { font-size: 1.2rem; color: #94a3b8; max-width: 800px; margin: 0 auto 40px; }

/* Анимация для смены текста в H1 */
.niche-text {
    color: #818cf8; /* Чуть светлее основного для контраста на темном фоне */
    display: inline-block;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.niche-text.fade-out {
    opacity: 0;
    transform: translateY(5px);
}

.cta-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    width: 260px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { background: rgba(255,255,255,0.2); }

/* Trial Block */
.trial-container { padding: 40px 0; background: #fff; margin-top: -40px; }
.trial-section {
    background-color: var(--accent-bg);
    padding: 50px 40px;
    text-align: center;
    border-radius: 24px;
    border: 2px solid #e0e7ff;
    max-width: 1000px;
    margin: 0 auto;
}
.trial-section h2 { color: var(--primary-dark); margin-bottom: 15px; font-size: 2rem; margin-top: 0; }
.trial-section p { font-size: 1.1rem; margin-bottom: 25px; color: var(--text-main); }

/* ГАЛЕРЕЯ / СЛАЙДЕР С МИНИАТЮРАМИ */
.gallery-section { padding: 60px 0; background: #fff; }
.swiper { width: 100%; padding: 20px 0 50px !important; }
.swiper-slide { 
    transition: 0.3s; 
    cursor: zoom-in;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
}
.swiper-slide:hover { transform: scale(1.03); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.swiper-slide img { 
    width: 100%; 
    height: auto; 
    display: block; 
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast; 
}

/* Lightbox (полноэкранное увеличение) */
#lightbox {
    display: none; position: fixed; z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    justify-content: center; align-items: center; cursor: zoom-out;
    opacity: 0; transition: opacity 0.3s ease;
}
#lightbox.active { opacity: 1; display: flex; }
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 40px rgba(0,0,0,0.6); }


/* Кнопка закрытия для Lightbox */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: transform 0.2s ease;
}

.close-lightbox:hover {
    transform: scale(1.2);
    color: #cbd5e1; /* Светло-серый при наведении */
}

/* Скрытие кнопки на маленьких экранах, если она мешает (опционально) */
@media (max-width: 480px) {
    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
}

/* Common Section Styles */
.section { padding: 10px 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

.feature-card .icon {
    width: 54px; height: 54px;
    background: #eef2ff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; font-size: 28px;
}

.feature-card h3 { margin: 0 0 15px 0; font-size: 1.3rem; font-weight: 700; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 1rem; line-height: 1.6; }

.check-list { list-style: none; padding: 0; margin-top: 15px; }
.check-list li { position: relative; padding-left: 25px; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-main); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    justify-content: center; align-items: center;
    z-index: 1000; backdrop-filter: blur(4px);
}
.modal {
    background: white; padding: 45px; border-radius: 24px;
    max-width: 420px; width: 90%; text-align: center; position: relative;
}
.modal h3 { margin: 0 0 10px; font-size: 1.6rem; }
.modal p { color: var(--text-muted); margin-bottom: 30px; }
.modal .btn { width: 100%; margin-bottom: 12px; color: white !important; }
.modal .btn-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted);
}

footer { background: #fff; border-top: 1px solid #e2e8f0; padding: 80px 0 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.contacts a { display: block; color: var(--primary); text-decoration: none; font-weight: 600; margin-bottom: 8px; font-size: 1.1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .btn { width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
}

/* Pricing Section Styles */
.pricing-card { 
    background: #1e293b; 
    color: white; 
    border-radius: 40px; 
    padding: 80px 40px; 
    text-align: center; 
    margin-top: 40px;
}

.text-white { color: white !important; }
.text-slate { color: #94a3b8 !important; }

.price-tag { 
    font-size: 4rem; 
    font-weight: 800; 
    color: white; 
    margin: 20px 0; 
    letter-spacing: -2px;
}

.price-tag span { 
    font-size: 1.5rem; 
    color: #94a3b8; 
    font-weight: 400; 
    letter-spacing: 0;
}

.pricing-features { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    margin: 30px 0; 
    list-style: none; 
    padding: 0; 
}

.pricing-features li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.1rem; 
}

.pricing-features li::before { 
    content: "✓"; 
    color: var(--success); 
    font-weight: 900; 
    font-size: 1.2rem;
}

.pricing-note { 
    color: #94a3b8; 
    max-width: 600px; 
    margin: 0 auto 40px; 
    font-size: 1rem;
}

/* Фикс для кнопок в модалке, если они слипаются */
.modal .btn {
    text-decoration: none;
    margin-bottom: 12px;
}

/* Специальный стиль для кнопки в блоке цены */
.btn-pricing {
    width: 100% !important;
    max-width: 400px;
    height: 64px;
    font-size: 1.1rem;
    background: var(--primary);
    border-radius: 16px;
    margin: 0 auto;
}

/* Мягкий текст под кнопкой */
.pricing-subnote {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
    font-weight: 500;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .btn-pricing {
        width: 100% !important;
        font-size: 1rem;
    }
}