/* Базові стилі та ресет */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}
[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

/* Навігація */
.navbar-landing {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
}
[data-theme="dark"] .navbar-landing {
    background: #2d3748;
}

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

/* Hero Section */
.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}
.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    /* Анімація видалена для швидшого рендерингу */
}
[data-theme="dark"] .hero-title {
    color: #e2e8f0;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #718096;
    max-width: 90%;
}
[data-theme="dark"] .hero-subtitle {
    color: #9ca3af;
}

/* Trust Section */
.trust-section {
    background: white;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.trust-badge {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Карточки */
.card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .card {
    background: #2d3748;
    color: #e2e8f0;
}
.integration-card {
    transition: transform 0.3s ease;
}
.integration-card:hover {
    transform: scale(1.05);
}
.integration-card img {
    width: 40px;
    height: 40px;
}

/* Кнопки */
.btn-primary {
    background: #4c6ef5;
    border-color: #4c6ef5;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    color: #fff;
}
[data-theme="dark"] .btn-primary {
    background: #5a7bff;
    border-color: #5a7bff;
}
.btn-primary:hover {
    background: #3b5bdb;
}
[data-theme="dark"] .btn-primary:hover {
    background: #4b6cd9;
}
.btn-success {
    background: #68d391;
    border-color: #68d391;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    color: #fff;
}
[data-theme="dark"] .btn-success {
    background: #9ae6b4;
    border-color: #9ae6b4;
}
.btn-success:hover {
    background: #4ade80;
}
[data-theme="dark"] .btn-success:hover {
    background: #86efac;
}

/* Форми */
.form-control,
.form-select,
textarea {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.2);
}

/* Ціноутворення */
.pricing-card {
    position: relative;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    border-color: #667eea;
    transform: translateY(-8px);
}
.pricing-card.featured {
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
}
.price-currency {
    font-size: 1.5rem;
    color: #6c757d;
}
.price-amount.old-price {
    position: relative;
    color: #9ca3af;
    font-size: 2rem;
    display: inline-block;
}
.price-amount.old-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #ef4444;
    animation: strikethrough 0.6s ease-out forwards;
}
@keyframes strikethrough {
    to {
        width: 100%;
    }
}
.new-price-block {
    display: block;
    margin-top: 0.5rem;
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Перемикач періодів */
.period-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.period-toggle {
    display: inline-flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    gap: 0;
}

[data-theme="dark"] .period-toggle {
    background: #2d3748;
}

.period-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    position: relative;
    color: #6b7280;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.period-btn.active {
    color: white;
}

[data-theme="dark"] .period-btn {
    color: #9ca3af;
}

[data-theme="dark"] .period-btn.active {
    color: white;
}

.period-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.discount-badge-toggle {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 600;
    display: inline-block;
}

.savings-text {
    text-align: center;
    color: #10b981;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
    min-height: 24px;
}

/* Медіа-запити для перемикача */
@media (max-width: 576px) {
    .period-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .discount-badge-toggle {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

/* Модальні вікна */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px 12px 0 0;
}
.modal-title {
    color: white !important;
}
.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Кнопка "Назад наверх" */
.landing-back-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 0;
    z-index: 1000;
    display: none;
}
.landing-back-top i {
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Аудиторія */
.audience-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
}
.audience-badge i {
    color: #0d6efd;
}

/* Калькулятор */
#calculatorResult {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
}
#calculatorResult h5 {
    color: white;
}
#calculatorResult .text-primary {
    color: white !important;
    font-size: 2rem !important;
    font-weight: 700;
}

/* Футер */
.custom-footer {
    background: #1a1a2e;
}

/* Медіа-запити */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    .section {
        padding: 60px 0;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
        min-height: 44px;
        padding: 12px 24px;
    }
    .card {
        margin-bottom: 20px;
    }
    .sticky-cta-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
        display: none;
    }
    .sticky-cta-mobile .btn {
        width: 100%;
        padding: 12px;
        font-weight: 600;
    }
    .landing-back-top {
        bottom: 80px;
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .landing-back-top i {
        font-size: 1.2rem;
    }
    .cta-secondary-mobile {
        display: none;
    }
    #jedidesk {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .sticky-cta-mobile {
        display: none !important;
    }
}