/* Reset & Variables */
:root {
    /* Цветовая палитра - обновленная */
    --primary-color: #3b82f6; /* Более современный синий */
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.1);
    
    --text-main: #1f2937; /* Gray 900 */
    --text-secondary: #4b5563; /* Gray 600 */
    --text-light: #9ca3af; /* Gray 400 */
    
    --bg-white: #ffffff;
    --bg-light: #f9fafb; /* Gray 50 - чище чем предыдущий */
    --bg-accent: #eff6ff; /* Blue 50 - для акцентных блоков */
    
    --border-light: #e5e7eb; /* Gray 200 */
    
    /* Тени - мягкие и глубокие */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-md: 0.75rem; /* 12px */
    --radius-lg: 1rem;    /* 16px */
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* База */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem); /* Адаптивный размер */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.0625rem; /* 17px для лучшей читаемости */
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Helpers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0; /* Больше воздуха */
    position: relative;
    overflow: hidden; /* Чтобы декоративные элементы не вылезали */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding-top: 8rem; /* Чуть меньше сверху */
    padding-bottom: 2rem; /* Сильно меньше снизу, чтобы подтянуть следующую секцию */
    background: linear-gradient(180deg, var(--bg-accent) 0%, #ffffff 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    font-weight: 600; /* Сделано болдом */
}

.hero-image-wrapper {
    margin-top: 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm); /* Исправлено на shadow-sm */
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-accent);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600; /* Сделано болдом */
}

/* Cards (Features, Status, etc) */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: var(--transition);
    height: 100%; /* Одинаковая высота */
    display: flex;
    flex-direction: column;
}

/* Стиль для основных карточек (фичи, бенефиты, процесс, цены, статусы) */
.feature-card,
.process-step,
.status-card,
.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover,
.process-step:hover,
.status-card:hover,
.pricing-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-accent);
    color: var(--primary-color);
}

.icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Status Cards */
.status-card {
    text-align: center;
    align-items: center;
    /* Остальное наследуется */
}

.status-card .icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.status-card.confirmed .icon-box {
    background: #dcfce7; /* Green 100 */
    color: #16a34a; /* Green 600 */
}

.status-card.rejected .icon-box {
    background: #fee2e2; /* Red 100 */
    color: #dc2626; /* Red 600 */
}

.status-card.review .icon-box {
    background: #fef3c7; /* Amber 100 */
    color: #d97706; /* Amber 600 */
}

.content-side h2 + p,
.content-side h3 + p {
    font-weight: 600;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-column img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); /* Исправлено на shadow-sm как у карточек */
    border: 1px solid var(--border-light); /* Добавлена рамка как у карточек */
}

/* Specific images fixes */
.image-side img[src*="page-004.png"] {
    max-width: 80%; /* Уменьшаем конкретную картинку */
    margin: 0 auto;
}

/* Lightbox & Zoom effects */
.zoomable {
    cursor: zoom-in;
    position: relative;
    transition: var(--transition);
}

.zoomable:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg) !important;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Process Steps */
.process-grid {
    counter-reset: process-counter;
}

.process-step {
    text-align: left;
    position: relative;
    /* Базовые стили наследуются от общего блока карточек выше */
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: #bfdbfe;
    line-height: 1;
    margin-bottom: 1rem;
    /* position: absolute;
    top: 1rem;
    right: 1.5rem; */
}

/* Pricing */
.pricing-card {
    /* Базовые стили наследуются */
    padding: 2.5rem; /* Чуть больше паддинг для цен */
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price-type {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    display: block;
}

/* Check list custom */
ul.check-list li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
}

ul.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Footer */
footer {
    background: #111827; /* Gray 900 */
    color: #f3f4f6; /* Gray 100 */
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

footer a {
    color: #9ca3af;
    display: block;
    margin-bottom: 0.75rem;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .two-column .image-side {
        order: -1; /* Картинка сверху */
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
}
