:root {
    --primary: #27ae60;
    --dark: #0f172a;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* Общие стили */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    margin-top: 100px; /* Универсальный отступ для всех секций */
}

/* Header */
header {
    text-align: center;
    margin-bottom: 70px;
    margin-top: 0; /* Сбрасываем верхний отступ для шапки */
}
/* --- ТОЛЬКО СТИЛИ МЕНЮ --- */

/* Плавный скролл к якорям */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Чтобы меню не закрывало заголовки секций */
}

/* Сама панель навигации */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-cta {
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-cta:hover {
    background: var(--primary);
}

/* Отступ для самого первого блока (header), чтобы меню его не перекрывало */
header {
    margin-top: 120px !important;
}

/* Скрытие ссылок на мобилках */
@media (max-width: 768px) {
    .nav-links { display: none; }
}
.badge {
    background: #dcfce7;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 24px 0;
    letter-spacing: -2px;
}

.text-gradient {
    background: linear-gradient(90deg, #27ae60, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid Анализатора */
.grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 0;
}

.card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.dark-card {
    background: var(--dark);
    color: white;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header h2 {
    font-family: 'Syne', sans-serif;
    margin: 0;
    font-size: 1.6rem;
}

.icon-green { color: var(--primary); }

/* Элементы управления формой */
.custom-select, .form-input {
    width: 100%;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid #f1f5f9;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.custom-select:focus, .form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.cta-button {
    width: 100%;
    padding: 20px;
    border-radius: 18px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
}

/* Результат анализатора */
.result-box {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #f1f5f9;
}

.result-danger {
    color: var(--danger);
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.res-info {
    margin-bottom: 15px;
}

.res-info i {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    color: var(--primary);
    margin-right: 8px;
}

/* Секция услуг и преимуществ */
.features {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    gap: 30px;
}

.feature-item { text-align: center; flex: 1; }
.feature-item i { color: var(--primary); margin-bottom: 15px; width: 40px; height: 40px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.service-card i {
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card h4 {
    margin: 10px 0;
    font-family: 'Syne', sans-serif;
}

/* Блок "Выгоды" */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s;
}

.benefit-icon {
    background: #f0fdf4;
    color: var(--primary);
    padding: 15px;
    border-radius: 20px;
    display: flex;
}

.benefit-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.benefit-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Блок "Цены" */
.pricing-table-wrapper {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
    margin-top: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    font-family: 'Syne', sans-serif;
    padding: 20px;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
}

.pricing-table td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.price-free {
    color: var(--primary);
    font-weight: 700;
}

/* Блок "Как мы работаем" (Этапы) */
.process-section {
    margin-top: 100px; /* Гарантированный отступ сверху */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step { position: relative; padding: 20px; }

.step-num {
    font-family: 'Syne'; font-size: 3rem; color: var(--primary); opacity: 0.2;
    position: absolute; top: -10px; left: 0; font-weight: 800;
}

.process-step h4 { font-family: 'Syne'; margin-bottom: 10px; position: relative; }

/* FAQ */
.faq-container { 
    max-width: 850px; 
    margin: 40px auto; 
}

.faq-item {
    background: white; border-radius: 20px; padding: 30px; margin-bottom: 20px;
    border: 1px solid #f1f5f9; box-shadow: var(--card-shadow);
}

.faq-item h4 { color: var(--primary); font-family: 'Syne'; margin-bottom: 10px; }

/* Галерея */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
}

.gallery-item {
    height: 300px; border-radius: 25px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; padding: 20px; color: white; position: relative; overflow: hidden;
}

.gallery-item::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}

.gallery-item span { position: relative; z-index: 1; font-weight: 600; }

/* Футер */
.site-footer {
    background: var(--dark); 
    color: white; 
    padding: 80px 0 30px; 
    margin-top: 100px;
    border-radius: 60px 60px 0 0;
}

.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }

.phone-link { color: var(--primary); font-size: 2rem; font-weight: 800; text-decoration: none; display: block; margin-bottom: 10px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; opacity: 0.5; font-size: 0.9rem; }

/* Адаптивность */
@media (max-width: 900px) {
    .grid-container, .features, .benefits-grid, .gallery-grid { 
        grid-template-columns: 1fr; 
    }
    .features { flex-direction: column; }
    .footer-top { flex-direction: column; text-align: center; }
    .phone-link { font-size: 1.5rem; }
}
/* Финальная форма */
.final-cta-section {
    margin-bottom: -50px; /* Немного "наезжаем" на футер для эффекта многослойности */
    position: relative;
    z-index: 10;
}

.cta-card {
    background: white;
    background-image: radial-gradient(at top right, #f0fdf4 0%, white 100%);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 50px;
    border: 1px solid rgba(39, 174, 96, 0.1);
}

.cta-content { flex: 1; }

.cta-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    margin: 20px 0;
    line-height: 1.2;
}

.cta-form { flex: 1; }

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cta-form .form-input {
    margin-bottom: 0; /* Убираем нижний отступ, так как используем gap */
    background: #f8fafc;
}

.shadow-btn {
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
}

.privacy-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 15px;
    text-align: center;
}

/* Адаптивность для формы */
@media (max-width: 900px) {
    .cta-card {
        flex-direction: column;
        padding: 40px 25px;
        text-align: center;
        gap: 30px;
    }
    .form-row {
        flex-direction: column;
    }
    .cta-content h2 { font-size: 2rem; }
}
.faq-item {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-answer p {
    margin: 0;
    padding-top: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Состояние при открытии */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Достаточная высота для текста */
    margin-top: 10px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
