/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    /* Главный акцентный цвет (зеленый/бирюзовый) */
    --color-primary: #00a987;
    --color-primary-hover: #00957a;
    --color-primary-light: rgba(0, 169, 135, 0.1);

    /* Темные цвета для текста и элементов */
    --color-dark: #191a23;
    --color-dark-secondary: #36363d;
    --color-text-primary: #474748;
    --color-text-secondary: #6c6c6e;

    /* Светлые фоны */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f6f7f9;
    --color-bg-light: #fafbfc;

    /* Дополнительные цвета */
    --color-border: #e5e7eb;
    --color-success: #00a987;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
}

/* ===== RESET И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ТИПОГРАФИКА ===== */
.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    margin-bottom: 65px;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-dark);
    margin-bottom: 24px;
}

h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 16px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.text-large {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
}

/* ===== НАВИГАЦИЯ (HEADER) ===== */
.header {
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

/* ===== КОНТЕЙНЕРЫ И СЕКЦИИ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--color-bg-secondary);
}

/* ===== HERO SECTION ===== */
.section-hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 65px;
    line-height: 1.7;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    margin-top: 40px;
    text-align: center;
}

.calendar-preview {
    max-width: 100%;
    width: 90%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.calendar-preview:hover {
    box-shadow: 0 25px 50px rgba(0, 169, 135, 0.2);
    transform: translateY(-5px);
}

/* ===== КНОПКИ ===== */
.btn {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 5px 18px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 169, 135, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 135, 0.35);
}

.btn-secondary {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-large {
    padding: 10px 20px;
    font-size: 18px;
}

/* ===== PAIN POINTS SECTION ===== */
.pain-points {
    padding: 80px 0;
    background: var(--color-bg-primary);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.pain-item {
    text-align: center;
}

.pain-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pain-icon img {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.pain-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.pain-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.transition-text {
    text-align: center;
    margin-top: 48px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
}

/* ===== SOLUTION SECTION ===== */
.solution-comparison {
    background: var(--color-bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-top: 48px;
}

.solution-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.solution-comparison th {
    background: var(--color-bg-secondary);
    padding: 20px;
    font-weight: 600;
    text-align: left;
    color: var(--color-dark);
    font-size: 18px;
}

.solution-comparison td {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    vertical-align: middle;
}

.solution-comparison tr:hover {
    background: var(--color-bg-light);
}

.before-text {
    color: var(--color-error);
    font-weight: 500;
}

.after-text {
    color: var(--color-success);
    font-weight: 500;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.feature-card {
    background: var(--color-bg-primary);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-icon svg {
    display: block;
    margin: 0 auto;
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.feature-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--color-bg-primary);
    border-radius: 20px;
    padding: 24px 20px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(0, 169, 135, 0.15);
    transform: scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 3px 24px;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-icon {
    font-size: 42px;
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pricing-price .currency {
    font-size: 20px;
    font-weight: 600;
}

.pricing-price .period {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.pricing-discount {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pricing-features__wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pricing-features__wrapper .btn {
    justify-content: center;
    margin: auto;
}
.pricing-features li {
    padding: 5px 0;
    color: var(--color-text-primary);
    position: relative;
    padding-left: 24px;
    font-size: 14px;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.pricing-advantages {
    text-align: center;
    margin-top: 48px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.pricing-advantages .checkmark {
    color: var(--color-success);
    margin-right: 8px;
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    background: var(--color-bg-primary);
    transition: background 0.3s;
    font-size: 16px;
    color: var(--color-dark);
}

.faq-question:hover {
    background: var(--color-bg-light);
}

.faq-arrow {
    transition: transform 0.3s;
    color: var(--color-text-secondary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

.faq-item.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===== CTA SECTION ===== */
.section-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-secondary) 100%);
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: #ffffff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 44px;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 85%;
        margin-bottom: 40px;
    }

    .section-hero {
        padding: 100px 0 80px;
        min-height: 500px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-hero {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 95%;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .container {
        padding: 0 16px;
    }

    .pain-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .nav-menu {
        display: none;
    }

    .solution-comparison {
        overflow-x: auto;
    }

    .solution-comparison table {
        min-width: 500px;
    }

    .hero-image {
        margin-top: 25px;
    }

    .calendar-preview {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .calendar-preview:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    /* Уменьшаем декоративный фон для мобильных */
    .section-hero::before {
        width: 400px;
        height: 400px;
        top: -30%;
        right: -50%;
    }

    /* CTA Section адаптация */
    .section-cta {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .section-hero {
        padding: 40px 0 30px;
    }

    .container {
        padding: 0 12px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 15px;
    }

    .hero-image {
        margin-top: 20px;
    }

    .calendar-preview {
        border-radius: 8px;
    }

    /* Скрываем декоративный фон на маленьких экранах */
    .section-hero::before {
        display: none;
    }

    /* CTA Section для маленьких экранов */
    .section-cta {
        padding: 40px 0;
    }

    .cta-title {
        font-size: 26px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .cta-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
}

/* ===== АНИМАЦИИ ===== */
.hero-content h1 {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
    cursor: default;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--color-primary);
    text-decoration: none;
}

.image-modal-caption {
    margin: 15px 0;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    max-width: 80%;
    line-height: 1.5;
}

/* Мобильная адаптация модального окна */
@media (max-width: 768px) {
    .image-modal-content {
        padding: 10px;
        width: 95%;
    }

    .modal-image {
        max-height: 80vh;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .image-modal-caption {
        font-size: 14px;
        margin: 10px 0;
        max-width: 90%;
    }
}
