:root {
    /* Основна палітра */
    --primary: #4c6ef5;
    --primary-hover: #3b5bdb;
    --primary-light: rgba(76, 110, 245, 0.1);
    --success: #10b981;
    --success-hover: #059669;
    --dark-bg: #1a202c;
    --dark-card: #2d3748;

    /* Текст та фони */
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    --border-color: #e2e8f0;

    /* Тіні та радіуси */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px rgba(102, 126, 234, 0.2);
    --radius: 12px;
}

/* Темна тема — зміна значень змінних */
[data-theme="dark"] {
    --text-main: #e2e8f0;
    --text-muted: #9ca3af;
    --bg-gradient: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --border-color: #4a5568;
}

/* Базові стилі */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Навігація та Гамбургер */
.navbar-landing {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-landing {
    background: rgba(45, 55, 72, 0.95);
}

/* Стиль кнопки гамбургера */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--text-main); /* Колір ліній підлаштовується під тему */
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Сама іконка гамбургера (SVG через background) */
.icon-menu {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* Малюємо 3 лінії через SVG Data URI */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* Зміна кольору гамбургера для темної теми */
[data-theme="dark"] .icon-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* Щоб посилання в меню було видно */
.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Секції */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Адаптивний розмір */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
}

/* Карточки (Уніфіковані) */
.card, .premium-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
[data-theme="dark"] .card, [data-theme="dark"] .premium-card { background: var(--dark-card); }

.card:hover, .premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

.btn-success {
    background: var(--success);
    color: #fff !important;
}

/* Ціноутворення та перемикач */
.period-toggle {
    display: inline-flex;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    position: relative;
    margin: 2rem auto;
}
[data-theme="dark"] .period-toggle { background: var(--dark-card); }

.period-slider {
    position: absolute;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-amount.old-price {
    color: var(--text-muted);
    font-size: 1.5rem;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
}

/* Калькулятор */
#calculatorResult {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: var(--radius);
    color: white;
    text-align: center;
}
/* Мобільна адаптація Sticky CTA */
@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%; /* Спочатку на всю ширину, або calc(100% - 70px) якщо чат заважає */
        background: white;
        padding: 12px 20px;
        z-index: 9998;
        border-top: 1px solid var(--border-color);

        /* Анімація появи */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(100%); /* Схована за екраном */
    }

    /* Клас, який додає JavaScript при скролі */
    .sticky-cta-mobile.show {
        transform: translateY(0);
    }

    [data-theme="dark"] .sticky-cta-mobile {
        background: var(--dark-card);
    }

    body {
        padding-bottom: 80px; /* Місце під кнопку */
    }
}

/* Приховуємо на десктопі */
@media (min-width: 769px) {
    .sticky-cta-mobile {
        display: none !important;
    }
}

.social-link {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    .social-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        transform: translateY(-3px);
    }