/* ===== VARIABLES ===== */
:root {
    /* Colors - Сине-фиолетовая палитра */
    --ast-primary: #6366f1;       /* Красивый сине-фиолетовый */
    --ast-primary-dark: #4f46e5;  /* Более синий */
    --ast-secondary: #4338ca;     /* Темный */
    --ast-text: #333333;
    --ast-light-text: #666666;
    --ast-border: #e2e8f0;
    --ast-background: #ffffff;
    --ast-light-bg: #f8f9fa;
    --ast-accent: #818cf8;        /* Светлый акцент */
    --ast-hover: #4f46e5;
    
    /* Градиент */
    --ast-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    
    /* Typography */
    --ast-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ast-font-weight-normal: 400;
    --ast-font-weight-medium: 500;
    --ast-font-weight-semibold: 600;
    --ast-font-weight-bold: 700;
    
    /* Остальные переменные без изменений */
    --ast-font-size-xs: 0.75rem;
    --ast-font-size-sm: 0.875rem;
    --ast-font-size-base: 1rem;
    --ast-font-size-lg: 1.125rem;
    --ast-font-size-xl: 1.25rem;
    --ast-font-size-2xl: 1.5rem;
    --ast-font-size-3xl: 1.875rem;
    --ast-font-size-4xl: 2.25rem;
    
    /* Spacing */
    --ast-space-1: 0.25rem;
    --ast-space-2: 0.5rem;
    --ast-space-3: 0.75rem;
    --ast-space-4: 1rem;
    --ast-space-5: 1.25rem;
    --ast-space-6: 1.5rem;
    --ast-space-8: 2rem;
    --ast-space-10: 2.5rem;
    --ast-space-12: 3rem;
    --ast-space-16: 4rem;
    
    /* Border radius */
    --ast-radius-sm: 2px;
    --ast-radius: 3px;
    --ast-radius-md: 4px;
    --ast-radius-lg: 6px;
    
    /* Shadows */
    --ast-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ast-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ast-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ast-font-family);
    font-size: var(--ast-font-size-base);
    line-height: 1.6;
    color: var(--ast-text);
    background-color: var(--ast-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ast-space-6);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--ast-font-weight-semibold);
    line-height: 1.3;
    margin-bottom: var(--ast-space-6);
    color: var(--ast-secondary);
}

h1 {
    font-size: var(--ast-font-size-4xl);
    font-weight: var(--ast-font-weight-bold);
}

h2 {
    font-size: var(--ast-font-size-3xl);
    text-align: center;
}

h3 {
    font-size: var(--ast-font-size-2xl);
}

h4 {
    font-size: var(--ast-font-size-xl);
}

p {
    margin-bottom: var(--ast-space-4);
    color: var(--ast-light-text);
}

/* ===== TEXT UTILITIES ===== */
.text-justify {
    text-align: justify !important;
    text-align-last: left; /* Для красивого выравнивания последней строки */
    hyphens: auto; /* Перенос слов при необходимости */
}

/* Для лучшего выравнивания на всех языках */
.text-justify {
    word-spacing: -0.05em; /* Немного уменьшаем межсловный интервал */
}

/* Для мобильных устройств отключаем justify */
@media (max-width: 768px) {
    .text-justify {
        text-align: left !important;
        text-align-last: left;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--ast-space-4) var(--ast-space-8);
    border: none;
    border-radius: var(--ast-radius);
    font-family: inherit;
    font-size: var(--ast-font-size-base);
    font-weight: var(--ast-font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background-color: var(--ast-primary); /* Фиолетовый */
    color: white;
}

.btn-primary:hover {
    background-color: var(--ast-primary-dark); /* Темнее фиолетовый */
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ast-primary); /* Фиолетовый */
    border: 1px solid var(--ast-primary);
}

.btn-secondary:hover {
    background-color: var(--ast-primary);
    color: white;
}

/* Ссылки в меню */
.primary-menu a:hover {
    color: var(--ast-primary); /* Фиолетовый */
}

/* Карточки услуг */
.service-card:hover {
    border-color: var(--ast-primary); /* Фиолетовая рамка */
}

.btn-service:hover {
    background-color: var(--ast-primary); /* Фиолетовый */
    color: white;
    border-color: var(--ast-primary);
}

/* Преимущества */
.advantage-icon {
    color: var(--ast-primary); /* Фиолетовые иконки */
}

/* Процесс */
.process-step::before {
    background-color: var(--ast-primary); /* Фиолетовые номера */
}

.step-details li::before {
    color: var(--ast-primary); /* Фиолетовые маркеры */
}

/* Специализация экспертов */
.expert-specialization {
    color: var(--ast-primary); /* Фиолетовый текст */
}

/* Форма */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--ast-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); /* Фиолетовая тень */
}

.btn-submit {
    background-color: var(--ast-primary); /* Фиолетовая кнопка */
}

.btn-submit:hover {
    background-color: var(--ast-primary-dark);
}

/* Логотип с градиентом */
.logo h1 {
    background: var(--ast-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--ast-background);
    border-bottom: 1px solid var(--ast-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

/* ===== ЛОГОТИП ===== */
.logo h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--ast-secondary);
    font-weight: var(--ast-font-weight-bold);
}

.logo a {
    text-decoration: none !important;
    color: inherit !important;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ХЕДЕРА ===== */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    z-index: 1002; /* Выше кнопки меню */
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* ===== ОСНОВНОЕ МЕНЮ ДЛЯ ДЕСКТОПА ===== */
.main-navigation {
    display: flex;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu a {
    text-decoration: none;
    color: var(--ast-text);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.primary-menu a:hover {
    color: var(--ast-primary);
}

/* ===== КНОПКА МОБИЛЬНОГО МЕНЮ ===== */
.mobile-menu-toggle {
    display: none; /* Скрыта на десктопе по умолчанию */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 24px;
    background: var(--ast-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.mobile-menu-toggle span:nth-child(2) {
    opacity: 1;
}

.mobile-menu-toggle span:nth-child(3) {
    transform: translateY(8px);
}

/* Активное состояние гамбургера (крестик) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (768px и меньше) ===== */
@media screen and (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }
    
    /* ПОКАЗЫВАЕМ кнопку меню */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Скрываем обычное меню на мобильных */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Скрываем за правым краем */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--ast-background);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        padding: 80px 20px 40px;
        margin: 0;
    }
    
    /* Когда меню активно - показываем */
    .main-navigation.active {
        right: 0;
    }
    
    /* Стили для списка меню */
    .primary-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .primary-menu li {
        width: 100%;
        margin: 0;
    }
    
    .primary-menu a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--ast-border);
        font-size: 1.1rem;
        text-align: left;
    }
    
    .primary-menu a:hover {
        background: rgba(var(--ast-primary-rgb), 0.1);
        color: var(--ast-primary);
    }
    
    /* Блокировка скролла при открытом меню */
    body.menu-open {
        overflow: hidden;
    }
}


    
    /* Адаптивность header */
    .header-content {
        flex-wrap: wrap;
    }
}

/* ===== ПЛАНШЕТЫ (769px - 1024px) ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: none; /* Скрываем кнопку на планшетах */
    }
    
    .primary-menu {
        gap: 1.5rem;
    }
}

/* ===== МОБИЛЬНЫЕ (480px и меньше) ===== */
@media screen and (max-width: 480px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .primary-menu a {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.hero-left .hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary-large {
    background: #ffffff !important; /* Вместо var(--white) */
    color: #667eea !important; /* Вместо var(--primary-blue) */
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-large:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--white);
}

.feature-item span {
    font-size: 14px;
}

.hero-right {
    position: relative;
}

.hero-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.hero-svg-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    animation: fadeInSvg 1s ease 0.3s both;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-direction: column;
    gap: 15px;
}

.hero-image-placeholder i {
    font-size: 4rem;
    opacity: 0.7;
}

@keyframes fadeInSvg {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-left .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-image-placeholder {
        height: 250px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .feature-item span {
        font-size: 13px;
    }
    
    .hero-svg-image {
        max-height: 250px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) 
                drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-left .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 25px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 8px;
        min-height: 70px;
        justify-content: center;
        align-items: center;
    }
    
    .feature-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .feature-item span {
        font-size: 11px;
        line-height: 1.2;
        font-weight: 500;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 2.4em;
        word-break: break-word;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* ===== SECTIONS COMMON STYLES ===== */
section {
    padding: var(--ast-space-16) 0;
}

section:nth-child(even) {
    background-color: var(--ast-light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--ast-space-12);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--ast-space-8);
}

.service-card {
    background: var(--ast-background);
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius-md);
    padding: var(--ast-space-8);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card:hover {
    border-color: var(--ast-primary);
    box-shadow: var(--ast-shadow);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--ast-gradient);
    border-radius: 50%;
    margin: 0 auto var(--ast-space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

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

.service-description {
    color: var(--ast-primary);
    margin-bottom: var(--ast-space-6);
    flex-grow: 1;
    line-height: 1.6;
    font-weight: 600;
}



.btn-service {
    background-color: transparent;
    color: var(--ast-primary);
    border: 1px solid var(--ast-border);
    padding: var(--ast-space-3) var(--ast-space-6);
    border-radius: var(--ast-radius);
    font-weight: var(--ast-font-weight-medium);
    transition: all 0.2s ease;
    margin-top: auto;
    cursor: pointer;
    width: 100%;
}

.btn-service:hover {
    background-color: var(--ast-primary);
    color: white;
    border-color: var(--ast-primary);
}
/* Стили для списков преимуществ как на Профессия77 */
.service-features {
    text-align: left !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5rem 0 !important;
	list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.6rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.service-features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 16px;
    height: 16px;
    background: var(--ast-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.service-features li:before {
    content: '✓';
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ast-space-8);
}

.advantage-card {
    text-align: center;
    padding: var(--ast-space-8);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background-color: var(--ast-light-bg);
    border-radius: var(--ast-radius);
    margin: 0 auto var(--ast-space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ast-primary);
    font-size: var(--ast-font-size-2xl);
}

.advantage-card h4 {
    margin-bottom: var(--ast-space-4);
}

/* ===== PROCESS SECTION ===== */
.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--ast-space-4);
    align-items: start;
    margin-top: var(--ast-space-12);
}

.process-step {
    position: relative;
    padding: var(--ast-space-8);
    background: var(--ast-background);
    border-radius: var(--ast-radius-md);
    border: 1px solid var(--ast-border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--ast-shadow);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Цифры через псевдоэлементы */
.process-step::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--ast-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--ast-font-weight-bold);
    font-size: var(--ast-font-size-xl);
    z-index: 2;
    box-shadow: var(--ast-shadow);
}

/* Обновляем нумерацию для 3 шагов */
.process-step:nth-child(1)::before { content: '1'; }
.process-step:nth-child(3)::before { content: '2'; }
.process-step:nth-child(5)::before { content: '3'; }
/* Убираем 4-й шаг */
.process-step:nth-child(7)::before { content: ''; }

.process-step h4 {
    margin-top: var(--ast-space-8);
    margin-bottom: var(--ast-space-4);
    color: var(--ast-secondary);
    font-size: var(--ast-font-size-lg);
    font-weight: var(--ast-font-weight-semibold);
}

.process-step p {
    color: var(--ast-light-text);
    margin-bottom: var(--ast-space-4);
    line-height: 1.5;
    font-size: var(--ast-font-size-base);
    flex-grow: 1;
}

/* Стрелки между этапами */
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ast-primary);
    font-size: 1.5rem;
    padding: 0 var(--ast-space-4);
    margin-top: 40px;
}

.process-arrow i {
    animation: pulseArrow 2s infinite;
}

@keyframes pulseArrow {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .process-steps {
        grid-template-columns: 1fr auto 1fr;
        gap: var(--ast-space-6);
    }
    
    .process-step:nth-child(3)::before { content: '2'; }
    .process-step:nth-child(5)::before { content: '3'; }
    
    /* Скрываем стрелки на планшетах */
    .process-arrow:nth-child(4),
    .process-arrow:nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--ast-space-8);
    }
    
    .process-step {
        min-height: 250px;
        padding: var(--ast-space-6);
    }
    
    .process-step::before {
        width: 45px;
        height: 45px;
        font-size: var(--ast-font-size-lg);
        top: -15px;
    }
    
    /* Скрываем все стрелки на мобильных */
    .process-arrow {
        display: none;
    }
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: var(--ast-space-16) 0;
    background: var(--ast-light-bg);
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Изменено */
    gap: var(--ast-space-8);
    align-items: center;
    justify-items: center;
    max-width: 1200px; /* Добавлено */
    margin: 0 auto; /* Добавлено */
}

.partner-logo {
    height: 80px;
    width: 150px;
    background: var(--ast-background);
    border-radius: var(--ast-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ast-space-4);
    transition: all 0.3s ease;
    border: 1px solid var(--ast-border);
}

/* Черно-белые логотипы по умолчанию */

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

/* Цветные логотипы при наведении */
.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Эффект при наведении (без синей обводки) */
.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--ast-shadow-md);
    /* border-color остается исходным */
}

/* Адаптивность для партнеров */
@media (max-width: 1200px) {
    .partners-logos {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--ast-space-6);
    }
}

@media (max-width: 768px) {
    .partners-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--ast-space-6);
    }
    
    .partner-logo {
        height: 70px;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-logo {
        height: 60px;
        width: 100px;
    }
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    background: var(--ast-gradient);
    color: white;
    padding: var(--ast-space-16) 0;
}

.statistics-section h2 {
    color: white;
    text-align: center;
    margin-bottom: var(--ast-space-8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ast-space-8);
    text-align: center;
}

.stat-item {
    padding: var(--ast-space-6);
}

.stat-number {
    font-size: 3.5rem !important; /* Крупные цифры */
    font-weight: var(--ast-font-weight-bold) !important;
    margin-bottom: var(--ast-space-2) !important;
    color: white !important;
    line-height: 1 !important;
    display: block !important;
}

.stat-label {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: var(--ast-font-weight-medium) !important;
    display: block !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ast-space-6);
    }
    
    .stat-number {
        font-size: 3rem !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--ast-space-6);
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-label {
        font-size: 1.1rem !important;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ast-background);
    padding: var(--ast-space-8);
    border-radius: var(--ast-radius-md);
    border: 1px solid var(--ast-border);
}

.form-group {
    margin-bottom: var(--ast-space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--ast-space-2);
    font-weight: var(--ast-font-weight-medium);
    color: var(--ast-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--ast-space-4);
    border: 1px solid var(--ast-border);
    border-radius: var(--ast-radius);
    font-family: inherit;
    font-size: var(--ast-font-size-base);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ast-primary);
    box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.1);
}

.btn-submit {
    width: 100%;
    background-color: var(--ast-primary);
    color: white;
    padding: var(--ast-space-4);
    border: none;
    border-radius: var(--ast-radius);
    font-size: var(--ast-font-size-base);
    font-weight: var(--ast-font-weight-medium);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: var(--ast-hover);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #0f0824 0%, #1a103d 50%, #0f0824 100%);
    color: white;
    padding: var(--ast-space-16) 0 var(--ast-space-8);
}

.site-footer h3,
.site-footer h4 {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--ast-space-12);
    margin-bottom: var(--ast-space-12);
}

.footer-logo h3 {
    color: white;
    margin-bottom: var(--ast-space-6);
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--ast-font-size-2xl);
}

.contact-info p {
    margin-bottom: var(--ast-space-3);
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: var(--ast-space-6);
    margin-top: var(--ast-space-6);
}

.social-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: var(--ast-space-2) var(--ast-space-3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--ast-radius);
}

.social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-menu-list {
    list-style: none;
}

.footer-menu-list li {
    margin-bottom: var(--ast-space-4);
}

.footer-menu-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: var(--ast-space-1) 0;
}

.footer-menu-list a:hover {
    color: white;
    padding-left: var(--ast-space-2);
}

.site-footer .footer-bottom,
.site-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    text-align: center !important;
}

/* Адаптивность подвала */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--ast-space-8);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-menu-list a:hover {
        padding-left: 0;
        background: rgba(255, 255, 255, 0.1);
        padding: var(--ast-space-2) var(--ast-space-4);
        border-radius: var(--ast-radius);
    }
}
/* ===== EXPERTS SECTION ===== */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 столбца */
    gap: var(--ast-space-8);
    margin-top: 40px;
}

.expert-card {
    text-align: center;
    background: var(--ast-background);
    padding: var(--ast-space-8);
    border-radius: var(--ast-radius-md);
    transition: all 0.3s ease;
    border: 1px solid var(--ast-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ast-shadow-md);
}

/* ПРЯМОУГОЛЬНЫЕ ФОТО */
.expert-photo {
    width: 250px;
    height: 250px;
    margin: 0 auto var(--ast-space-6);
    overflow: hidden;
    border-radius: 8px;
    background: var(--ast-light-bg);
    border: 2px solid var(--ast-border);
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.expert-card:hover .expert-photo img {
    transform: scale(1.05);
}

.expert-no-photo {
    background: linear-gradient(135deg, var(--ast-primary), var(--ast-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--ast-font-size-3xl);
    font-weight: var(--ast-font-weight-bold);
}

.expert-name {
    color: var(--ast-secondary);
    margin-bottom: var(--ast-space-2);
    font-size: var(--ast-font-size-xl);
    font-weight: var(--ast-font-weight-semibold);
}

.expert-specialization {
    color: var(--ast-primary);
    font-weight: var(--ast-font-weight-medium);
    margin-bottom: var(--ast-space-4);
    font-size: var(--ast-font-size-base);
    padding: var(--ast-space-2) var(--ast-space-4);
    background: var(--ast-light-bg);
    border-radius: var(--ast-radius);
    display: inline-block;
}

.expert-description {
    color: var(--ast-light-text);
    font-size: var(--ast-font-size-sm);
    line-height: 1.5;
    margin-top: var(--ast-space-4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--ast-space-4);
    }
    
    .experts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
    
    .expert-photo {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--ast-font-size-3xl);
    }
    
    h2 {
        font-size: var(--ast-font-size-2xl);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--ast-space-4);
        text-align: center;
    }
    
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .experts-grid,
    .advantages-grid,
    .process-steps,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--ast-space-8);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .expert-photo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    section {
        padding: var(--ast-space-12) 0;
    }
    
    .service-card,
    .expert-card,
    .advantage-card,
    .process-step {
        padding: var(--ast-space-6);
    }
    
    .hero-section {
        padding: var(--ast-space-12) 0;
    }
    
    .expert-photo {
        width: 180px;
        height: 180px;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        background: #00ff00 !important; /* Зеленый на десктопе */
    }
}
/* Мобильное меню с меньшей иконкой */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        width: 24px; /* Уменьшил ширину */
        height: 18px; /* Уменьшил высоту */
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 1.5px; /* Уменьшил толщину линий */
        background: #333;
        transition: 0.3s;
        transform-origin: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px); /* Уменьшил смещение */
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px); /* Уменьшил смещение */
    }

    /* Остальные стили меню остаются прежними */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        padding: 80px 20px 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .primary-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        margin-top: 20px;
    }

    .primary-menu li {
        margin-bottom: 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: menuItemFade 0.5s ease forwards;
    }

    .primary-menu li:nth-child(1) { animation-delay: 0.1s; }
    .primary-menu li:nth-child(2) { animation-delay: 0.2s; }
    .primary-menu li:nth-child(3) { animation-delay: 0.3s; }
    .primary-menu li:nth-child(4) { animation-delay: 0.4s; }
    .primary-menu li:nth-child(5) { animation-delay: 0.5s; }

    .primary-menu a {
        display: block;
        padding: 18px 0;
        text-decoration: none;
        color: white;
        font-size: 20px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        text-align: center;
    }

    .primary-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 15px;
        color: white;
    }

    @keyframes menuItemFade {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Скрываем обычное меню на мобильных */
@media (max-width: 768px) {
    .main-navigation:not(.active) {
        display: none;
    }
}
/* ===== ОПИСАНИЯ СЕКЦИЙ ===== */
.section-description {
    font-size: var(--ast-font-size-lg);
    color: var(--ast-light-text);
    text-align: center; /* Центрируем как заголовки */
    max-width: 800px;
    margin: 0 auto var(--ast-space-12);
    line-height: 1.6;
    display: block; /* Убедимся что отображается */
}

/* Специфичные стили для разных секций */
.statistics-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптивность - ОБЯЗАТЕЛЬНО показываем в мобильной версии */
@media (max-width: 768px) {
    .section-description {
        display: block !important; /* Принудительно показываем */
        font-size: var(--ast-font-size-base);
        padding: 0 var(--ast-space-4);
        margin-bottom: var(--ast-space-8);
        text-align: center; /* Центрируем на мобильных */
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-description {
        font-size: var(--ast-font-size-sm);
        padding: 0 var(--ast-space-2);
        line-height: 1.5;
    }
}
/* ===== FLIP CARDS ADVANTAGES ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ast-space-6);
    perspective: 1000px;
}

.flip-card {
    background: transparent;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: var(--ast-radius-lg);
    box-shadow: var(--ast-shadow);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--ast-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--ast-space-8);
}

.flip-card-front {
    background: var(--ast-background);
    border: 1px solid var(--ast-border);
    color: var(--ast-text);
}

.flip-card-back {
    background: var(--ast-gradient);
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}

.flip-card-back p {
    color: white;
    font-size: var(--ast-font-size-base);
    line-height: 1.5;
    margin: 0;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: var(--ast-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ast-space-6);
    color: white;
    font-size: 1.8rem;
}

.flip-card-front h4 {
    color: var(--ast-secondary);
    font-size: var(--ast-font-size-lg);
    font-weight: var(--ast-font-weight-semibold);
    margin: 0;
}

/* Мобильная версия - переворот по клику */
@media (max-width: 768px) {
    .flip-card {
        height: 200px;
    }
    
    .flip-card-inner {
        transition: transform 0.6s;
    }
    
    .flip-card.active .flip-card-inner {
        transform: rotateY(180deg);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--ast-space-4);
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: var(--ast-space-6);
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: var(--ast-space-4);
    }
    
    .flip-card-back p {
        font-size: var(--ast-font-size-sm);
    }
}

/* Анимация появления карточек */
@keyframes flipCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.flip-card {
    animation: flipCardAppear 0.6s ease-out forwards;
}

.flip-card:nth-child(1) { animation-delay: 0.1s; }
.flip-card:nth-child(2) { animation-delay: 0.2s; }
.flip-card:nth-child(3) { animation-delay: 0.3s; }
.flip-card:nth-child(4) { animation-delay: 0.4s; }
.flip-card:nth-child(5) { animation-delay: 0.5s; }
.flip-card:nth-child(6) { animation-delay: 0.6s; }
/* ===== SUCCESS CASES SECTION ===== */
.success-cases-section {
    padding: 64px 0;
    background: #ffffff; /* Белый фон */
}

.success-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ast-space-8);
    margin-top: var(--ast-space-12);
}

.success-case-card {
    background: var(--ast-background);
    border-radius: var(--ast-radius-lg);
    padding: var(--ast-space-8);
    box-shadow: var(--ast-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--ast-border);
    display: flex;
    flex-direction: column;
}

.success-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ast-shadow-md);
    border-color: var(--ast-primary);
}

.success-case-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--ast-space-6);
    padding-bottom: var(--ast-space-4);
    border-bottom: 1px solid var(--ast-border);
}

.success-client-avatar {
    width: 60px;
    height: 60px;
    background: var(--ast-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: var(--ast-space-4);
}

.success-client-info h4 {
    color: var(--ast-secondary);
    margin: 0 0 var(--ast-space-1) 0;
    font-size: var(--ast-font-size-lg);
}

.success-client-info p {
    color: var(--ast-light-text);
    margin: 0;
    font-size: var(--ast-font-size-sm);
}

.success-case-content {
    flex-grow: 1;
    margin-bottom: var(--ast-space-6);
}

.success-case-content h5 {
    color: var(--ast-primary);
    margin: 0 0 var(--ast-space-4) 0;
    font-size: var(--ast-font-size-base);
    font-weight: var(--ast-font-weight-semibold);
}

.success-case-content p {
    color: var(--ast-text);
    line-height: 1.6;
    margin-bottom: var(--ast-space-6);
}

.success-case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ast-space-4);
    background: var(--ast-light-bg);
    padding: var(--ast-space-4);
    border-radius: var(--ast-radius);
}

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

.success-stat-number {
    display: block;
    color: var(--ast-primary);
    font-size: var(--ast-font-size-lg);
    font-weight: var(--ast-font-weight-bold);
}

.success-stat-label {
    display: block;
    color: var(--ast-light-text);
    font-size: var(--ast-font-size-xs);
    margin-top: var(--ast-space-1);
}

.success-case-quote {
    background: var(--ast-light-bg);
    padding: var(--ast-space-4);
    border-radius: var(--ast-radius);
    border-left: 3px solid var(--ast-primary);
}

.success-case-quote p {
    color: var(--ast-text);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
    font-size: var(--ast-font-size-sm);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .success-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ast-space-6);
    }
}

@media (max-width: 768px) {
    .success-cases-grid {
        grid-template-columns: 1fr;
        gap: var(--ast-space-6);
    }
    
    .success-case-card {
        padding: var(--ast-space-6);
    }
    
    .success-case-header {
        flex-direction: column;
        text-align: center;
    }
    
    .success-client-avatar {
        margin-right: 0;
        margin-bottom: var(--ast-space-4);
    }
    
    .success-case-stats {
        grid-template-columns: 1fr;
    }
}
.btn-service {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-service:hover {
    background: #5a6fd8;
}
