/* CSS RESET & БАЗОВЫЕ НАСТРОЙКИ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: #ffffff;
}

body {
    line-height: 1.6;
}

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

/* СЕТКИ И ОТСТУПЫ */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ЗАГОЛОВКИ И ТЕКСТ СЕКЦИЙ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-header.align-left {
    text-align: left;
    margin-left: 0;
}

.section-tagline {
    display: block;
    color: #0066cc;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111111;
}

.section-desc {
    color: #666666;
    margin-top: 12px;
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #0066cc;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ШАПКА САЙТА (HEADER) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #0066cc;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: #444444;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #0066cc;
}

/* HERO-СЕКЦИЯ С ВИДЕО */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(0, 102, 204, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-top: 70px; /* Компенсация высоты фиксированной шапки */
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* СЕКЦИЯ ПРЕИМУЩЕСТВ (КАРТОЧКИ) */
.feature-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111111;
}

.feature-card p {
    color: #666666;
    font-size: 14px;
}

/* СЕКЦИЯ УСЛУГ */
.service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

.service-content h3 {
    font-size: 18px;
    color: #111111;
    margin-bottom: 8px;
}

.service-content p {
    color: #666666;
    font-size: 14px;
}

/* СЕКЦИЯ КОНТАКТОВ И ФОРМА */
.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: #0a192f;
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-info {
    padding: 50px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 15px;
    opacity: 0.9;
}

.contact-form-wrapper {
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #a8b2d1;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
}

/* ВНУТРЕННЯЯ СТРАНИЦА (ABOUT) */
.internal-page {
    margin-top: 70px; /* Отступ под фиксированную шапку */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 15px;
    color: #444444;
}

.about-text h3 {
    margin: 25px 0 15px 0;
    color: #111111;
}

.about-text ul {
    list-style-type: square;
    padding-left: 20px;
    color: #555555;
}

.about-text ul li {
    margin-bottom: 8px;
}

.about-image-placeholder {
    width: 100%;
    height: 350px;
}

.placeholder-box {
    width: 100%;
    height: 100%;
    background-color: #f0f4f8;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ПОДВАЛ САЙТА (FOOTER) */
.site-footer {
    background-color: #111111;
    color: #888888;
    padding: 60px 0 20px 0;
    font-size: 14px;
    border-top: 1px solid #222222;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-info .logo {
    color: #ffffff;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-desc {
    max-width: 400px;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul a:hover {
    color: #ffffff;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #222222;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ) */
@media (max-width: 768px) {
    /* 2. СКРЫТИЕ ВИДЕО НА МОБИЛЬНЫХ И ЗАМЕНА НА СТАТИЧНУЮ КАРТИНКУ */
    .hero-video {
        display: none; /* Полностью скрываем видео элемент */
    }
    
    .hero-section {
        /* ЗАМЕНИТЕ 'img/hero-mobile-bg.jpg' на путь к вашей реальной оптимизированной картинке */
        background-image: url('img/hero-mobile-bg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Сброс размеров текста для мобильных */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .grid-2, .grid-3, .contact-block, .about-grid, .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info, .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 10px;
    }
    
    .main-nav .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}
