/* ===== БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
:root {
    --background-color: #0D0D1B;
    --text-color: #FFFFFF;
    --text-color-muted: rgba(228, 228, 235, 0.6);
    --glass-bg: rgba(43, 43, 63, 0.4);
    --glass-border: rgba(119, 119, 147, 0.3);
    --font-family: 'Manrope', sans-serif;
}

body {
    background-image: url('site-background.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main.content { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* ===== ШАПКА (HEADER) ===== */
.site-header { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1120px; z-index: 100; padding: 0 20px; box-sizing: border-box; }
.header-content { display: flex; padding: 12px 24px; justify-content: center; gap: 60px; align-items: center; }
.logo { font-size: 20px; font-weight: 700; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: var(--text-color-muted); text-decoration: none; font-size: 16px; font-weight: 500; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--text-color); }

.hamburger { display: none; }
.mobile-nav-overlay { display: none; }

/* --- ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ: ПРИНУДИТЕЛЬНО СКРЫВАЕМ МОБИЛЬНЫЕ ЭЛЕМЕНТЫ НА ДЕСКТОПЕ --- */
.mobile-only {
    display: none !important;
}


/* ===== ГЛАВНЫЙ ЭКРАН (HERO SECTION) ===== */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 200px;
    padding-bottom: 300px;
}
.hero-section h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    max-width: 1050px;
    margin: 0 0 24px;
    background: linear-gradient(to right, #FFFFFF 40%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.hero-section p { font-size: 18px; font-weight: 400; color: var(--text-color-muted); line-height: 1.6; max-width: 600px; margin: 0 0 40px; }
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.btn-image { display: inline-block; text-decoration: none; transition: transform 0.3s ease; line-height: 0; }
.btn-image:hover { transform: translateY(-3px) scale(1.03); }
.btn-image img { 
    height: 130px;
    width: auto; 
}

/* ===== СЕКЦИЯ КОМПЕТЕНЦИЙ ===== */
.competencies-section {
    padding: 50px 0 100px 0;
    text-align: center;
}
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    place-items: center;
}
.competency-card-link {
    display: inline-block;
    line-height: 0;
}
.competency-card-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease-out;
}
.competency-card-link:hover .competency-card-image {
    transform: translateY(-8px) scale(1.02);
}

/* ===== ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ ГЛАВНЫХ ЗАГОЛОВКОВ ===== */
.competencies-section h2,
.directions-section h2,
.why-section h2,
.process-section h2,
.final-cta-section h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 48px;
    text-align: center;
    background: linear-gradient(to right, #FFFFFF 40%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
    z-index: 10;
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ НАПРАВЛЕНИЙ ===== */
.directions-section { 
    padding: 150px 0 50px 0; 
    text-align: center; 
}
.directions-section h2 { margin-bottom: 60px; }
.directions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 60px; max-width: 900px; margin: 0 auto; position: relative; z-index: 10; }
.direction-card { padding: 16px 24px; font-size: 18px; color: var(--text-color-muted); background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; transition: all 0.3s ease; }
.direction-card:hover { border-color: rgba(255, 255, 255, 0.7); transform: translateY(-3px); }
.soon-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; font-size: 12px; font-weight: 500; color: #000; background-color: #fff; border-radius: 6px; }

/* ===== СЕКЦИЯ 'ПОЧЕМУ HELLOBRAND?' ===== */
.why-section {
    padding: 100px 0;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.why-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
}
.why-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-color);
}
.why-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-muted);
    margin-bottom: 0;
}

/* ===== СЕКЦИЯ 'ЭТАПЫ РАБОТЫ' ===== */
.process-section {
    padding: 100px 0;
}
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}
.process-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}
.process-number {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color-muted);
    flex-shrink: 0;
    line-height: 1.5;
    position: relative;
    left: -42px;
    background-color: var(--background-color);
    padding: 0 10px;
}
.process-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-color);
}
.process-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-muted);
    margin: 0;
}

/* ===== ФИНАЛЬНАЯ СЕКЦИЯ (CTA) И ПОДВАЛ (FOOTER) ===== */
.final-cta-section { 
    padding: 150px 0; 
    text-align: center; 
}
.final-cta-section h2 { margin-bottom: 24px; }
.final-cta-section p { font-size: 18px; color: var(--text-color-muted); line-height: 1.6; max-width: 600px; margin: 0 auto 40px; }

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.cta-button:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.site-footer-bottom { 
    text-align: center; 
    padding: 40px 0;
    margin-top: 50px; 
    color: var(--text-color-muted); 
    font-size: 14px; 
    border-top: 1px solid var(--glass-border); 
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ ПРОКРУТКЕ ===== */
.competency-card-link, 
.direction-card, 
.why-card,
.process-item,
.final-cta-section h2, 
.final-cta-section p, 
.cta-button, .mobile-button, .mobile-card { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}
.competency-card-link.visible, 
.direction-card.visible, 
.why-card.visible,
.process-item.visible,
.final-cta-section h2.visible, 
.final-cta-section p.visible, 
.cta-button.visible, .mobile-button.visible, .mobile-card.visible { 
    opacity: 1; 
    transform: translateY(0); 
}
.competencies-grid > .competency-card-link:nth-child(1) { transition-delay: 0s; }
.competencies-grid > .competency-card-link:nth-child(2) { transition-delay: 0.2s; }
.competencies-grid > .competency-card-link:nth-child(3) { transition-delay: 0.4s; }
.direction-card:nth-of-type(1) { transition-delay: 0.1s; }
.direction-card:nth-of-type(2) { transition-delay: 0.2s; }
.direction-card:nth-of-type(3) { transition-delay: 0.3s; }
.direction-card:nth-of-type(4) { transition-delay: 0.4s; }
.direction-card:nth-of-type(5) { transition-delay: 0.5s; }
.direction-card:nth-of-type(6) { transition-delay: 0.6s; }
.direction-card:nth-of-type(7) { transition-delay: 0.7s; }
.why-grid > .why-card:nth-child(1) { transition-delay: 0s; }
.why-grid > .why-card:nth-child(2) { transition-delay: 0.2s; }
.why-grid > .why-card:nth-child(3) { transition-delay: 0.4s; }
.process-item:nth-child(1) { transition-delay: 0s; }
.process-item:nth-child(2) { transition-delay: 0.2s; }
.process-item:nth-child(3) { transition-delay: 0.4s; }
.process-item:nth-child(4) { transition-delay: 0.6s; }

/* ===== СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН ===== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); max-width: 600px; width: 90%; background: #1a1a2e; border: 1px solid var(--glass-border); border-radius: 16px; padding: 32px; z-index: 1001; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; color: var(--text-color); }
.modal.active { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.modal-close-btn { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-color-muted); font-size: 28px; cursor: pointer; line-height: 1; padding: 0; transition: color 0.3s ease; }
.modal-close-btn:hover { color: var(--text-color); }
.modal h3 { font-family: 'Inter', sans-serif; font-size: 28px; margin-top: 0; margin-bottom: 16px; background: linear-gradient(to right, #FFFFFF 60%, rgba(255, 255, 255, 0.5) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }
.modal p { font-size: 16px; line-height: 1.6; color: var(--text-color-muted); margin-bottom: 24px; }
.modal h4 { font-family: 'Inter', sans-serif; font-size: 18px; margin-bottom: 12px; }
.modal ul { list-style: none; padding-left: 0; }
.modal ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--text-color-muted); }
.modal ul li::before { content: '✓'; position: absolute; left: 0; color: #8a2be2; }

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (ПОЛНАЯ ПЕРЕРАБОТКА) ===== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .desktop-only,
    .main-nav {
        display: none !important;
    }

    .mobile-only {
        display: grid !important; /* Усиливаем, чтобы перебить !important у десктопной версии */
    }

    .hamburger {
        display: flex;
    }
    .mobile-nav-overlay {
        display: flex;
    }

    main.content { 
        padding: 0 20px; 
    }
    
    .header-content { 
        justify-content: space-between;
    }
    .hero-section { 
        padding-top: 120px; 
        padding-bottom: 80px; 
    }
    .hero-section h1, 
    .competencies-section h2, 
    .directions-section h2, 
    .why-section h2, 
    .process-section h2, 
    .final-cta-section h2 { 
        font-size: 32px;
        line-height: 1.3;
    }
    .hero-section p, 
    .final-cta-section p { 
        font-size: 16px; 
    }

    .hero-buttons.mobile-only {
        display: flex !important; /* Усиливаем, чтобы перебить !important у десктопной версии */
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        gap: 16px;
    }

    .mobile-button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 18px 24px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-color);
        text-decoration: none;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 14px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        box-sizing: border-box;
    }
    .mobile-button:hover {
        border-color: rgba(255, 255, 255, 0.7);
        transform: translateY(-3px);
    }
    .mobile-button::after {
        content: '→';
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    .mobile-button:hover::after {
        transform: translateX(5px);
    }
    
    .competencies-section { 
        padding: 40px 0 60px 0; 
    }
    .competencies-grid.mobile-only {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mobile-card {
        padding: 28px 24px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        text-align: left;
        transition: all 0.3s ease;
        cursor: pointer;
    }
     .mobile-card:hover {
        border-color: rgba(255, 255, 255, 0.7);
        transform: translateY(-5px);
    }
    .mobile-card h3 {
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        font-weight: 500;
        color: var(--text-color);
        margin: 0 0 10px;
    }
    .mobile-card p {
        font-size: 15px;
        color: var(--text-color-muted);
        line-height: 1.6;
        margin: 0;
    }
    
    .directions-section { 
        padding: 60px 0; 
    }
    .directions-section h2 { 
        margin-top: 0; 
    }
    .directions-grid { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 90%;
        padding: 24px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .modal h3 {
        font-size: 24px;
    }
    .modal p, .modal ul li {
        font-size: 15px;
    }

    .process-section {
        padding: 60px 0;
    }
    .process-timeline { 
        padding-left: 20px; 
        gap: 30px;
    }
    .process-number { 
        left: -32px; 
    }
    .process-item {
        gap: 20px;
    }
    .process-content h3 {
        font-size: 20px;
    }
    .process-content p {
        font-size: 15px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2001;
    }
    .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    .hamburger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(13, 13, 27, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .mobile-nav-links a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 28px;
        font-weight: 500;
    }

    .hero-section .mobile-button,
    .competencies-section .mobile-card {
        opacity: 1;
        transform: translateY(0);
    }
}