:root {
    /* Основные цвета светлой темы */
    --bg-color: #f8faff; /* Очень светлый, едва уловимый синевато-серый фон */
    --card-bg: #ffffff; /* Чисто белые карточки */
    
    /* Синий акцентный цвет */
    --accent-color: #0056b3; 
    --accent-glow: rgba(0, 86, 179, 0.2);
    
    /* Текст для светлой темы */
    --text-main: #2d3436; /* Темно-серый для основного текста (не чисто черный, чтобы не резать глаза) */
    --text-dim: #636e72; /* Серый для второстепенного текста */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Бесшовные градиентные пятна (светлые) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    pointer-events: none;
}

.glow-1 {
    top: 10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 70%);
}

.glow-2 {
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.04) 0%, transparent 70%);
}

/* Эффект сетки на фоне (инвертирован под светлый фон) */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 86, 179, 0.04) 1px, transparent 1px),
        linear-gradient(90px, rgba(0, 86, 179, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ШАПКА И ЛОГОТИП --- */
header {
    padding: 25px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.desktop-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease;
    display: block;
}

.mobile-logo {
    height: 55px; 
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease;
    display: none; 
}

header.scrolled .desktop-logo {
    height: 55px; 
}

header.scrolled .mobile-logo {
    height: 45px;
}

/* --- НАВИГАЦИЯ --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: 4px;
    text-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-main {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-main:hover {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 5px 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* --- ОБЩИЕ СТИЛИ СЕКЦИЙ --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- О ФИРМЕ (ABOUT) --- */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 2px solid rgba(0, 86, 179, 0.1);
    padding-left: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--accent-color);
    line-height: 1;
}

.stat-desc {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 600;
}

/* --- УСЛУГИ (SERVICES) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid rgba(0, 86, 179, 0.05);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-color);
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.08);
}

.service-card:hover::before {
    height: 100%;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    filter: drop-shadow(0 4px 6px var(--accent-glow));
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* --- ПРОЕКТЫ (PROJECTS) --- */
.projects-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-item {
    padding: 20px 35px;
    background: #ffffff;
    border: 1px solid rgba(0, 86, 179, 0.1);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.project-item:hover {
    border-color: var(--accent-color);
    background: rgba(0, 86, 179, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* --- ФУТЕР (ПОДВАЛ) И КОНТАКТЫ --- */
footer {
    padding: 100px 0 40px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 86, 179, 0.1);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    align-items: center;
}

.footer-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: 2px;
}

.footer-info p {
    color: var(--text-dim);
    margin-bottom: 20px;
    max-width: 400px;
}

.contact-details p {
    margin-bottom: 8px;
    color: var(--text-dim);
}

.contact-details strong {
    color: var(--accent-color);
}

.footer-action {
    display: flex;
    justify-content: flex-end;
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 86, 179, 0.1);
    padding-top: 30px;
}

/* --- МОДАЛЬНОЕ ОКНО КОНТАКТОВ --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Оставляем затемнение фона, чтобы белое окно выделялось */
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeInBg 0.3s forwards;
}

.modal-content {
    background: #ffffff;
    border-top: 4px solid var(--accent-color);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    opacity: 0; 
}

.modal.show .modal-content {
    animation: lightPopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightPopup {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
        box-shadow: 0 0 0 rgba(0, 86, 179, 0);
    }
    70% {
        transform: scale(1.05) translateY(10px);
        box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    }
}

.close-btn {
    color: var(--text-dim);
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.modal-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dim);
}

.neon-link {
    display: inline-block;
    margin-top: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    word-break: break-word;
}

.neon-link:hover {
    color: #003d82; /* Темно-синий при наведении */
}

/* Стили для блока промокода */
.promo-box {
    background: rgba(0, 86, 179, 0.05); /* Легкий синий фон */
    border: 2px dashed var(--accent-color); /* Пунктирная синяя рамка */
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
}

.promo-code {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 5px;
    padding: 2px 8px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 4px;
}

/* --- ГАЛЕРЕЯ ПРОЦЕССА РАБОТЫ (WORK PROCESS) --- */
.process-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки для двух фото */
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.1);
    background: #fff;
}

.process-img {
    width: 100%;
    height: 400px; /* Фиксированная высота, чтобы фото смотрелись одинаково */
    object-fit: cover; /* Обрезает фото так, чтобы оно красиво заполняло блок */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .process-img {
    transform: scale(1.05); /* Легкое увеличение при наведении */
}

/* Выезжающая синяя плашка с текстом */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Градиент от вашего синего цвета к прозрачному */
    background: linear-gradient(to top, rgba(0, 86, 179, 0.95), rgba(0, 86, 179, 0));
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transform: translateY(100%); /* Прячем плашку вниз */
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0); /* Показываем плашку при наведении */

}

/* --- АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ --- */
@media (max-width: 900px) {
    .about-grid, .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
    }
    
    /* Добавляем вот это, чтобы фото стали друг под другом */
    .process-gallery {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    /* Делаем высоту фото чуть меньше для телефонов */
    .process-img {
        height: 300px; 
    }
    
    .hero h1 { 
        font-size: 3rem; 
    }
    
    .stats { 
        border-left: none; 
        border-top: 2px solid rgba(0, 86, 179, 0.1); 
        padding-left: 0; 
        padding-top: 30px; 
        flex-direction: row; 
        justify-content: center; 
        gap: 40px;
    }
    
    nav ul { display: none; }
    .footer-action { justify-content: center; }
    header { padding: 20px 20px; }
    header.scrolled { padding: 10px 20px; }
    .desktop-logo { display: none; }
    .mobile-logo { display: block; }
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 15px; 
        width: 95%; 
    }
    
    .modal-content h3 {
        font-size: 1.2rem; 
    }
    
    .neon-link {
        font-size: 1.1rem; 
    }
    
    .hero h1 { 
        font-size: 2.3rem; 
    }
}

/* Контейнер для кнопки и текста под ней */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем содержимое */
    gap: 15px; /* Отступ между кнопкой и текстом */
}

/* Стили для текста под кнопкой */
.promo-under-btn {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-weight: 500;
}

.promo-under-btn strong {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    padding: 0 4px;
}