/* 1. ОБЩИЕ ПЕРЕМЕННЫЕ */
:root {
    --dark: #121212;
    --steel: #4682B4;
    --white: #ffffff;
    --gray: #f4f4f4;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero-btns {
    margin-top: 3%;
}

/* 2. НАВИГАЦИЯ */
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); }
.solid-nav { background: var(--dark); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--white); text-decoration: none; font-weight: 900; font-size: 24px; text-transform: uppercase; display: flex; align-items: center;}
.logo span { color: var(--steel); }
nav a { color: var(--white); text-decoration: none; margin-left: 25px; font-weight: 700; font-size: 13px; text-transform: uppercase; transition: var(--transition); }
nav a:hover { color: var(--steel); }
.header-contacts a { color: var(--steel); text-decoration: none; font-weight: 900; }

/* 3. ГЛАВНЫЙ ЭКРАН (HERO) */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; width: 100%; }
.hero-content h1 { font-size: clamp(2rem, 8vw, 4rem); font-weight: 900; margin-top: 20px; margin-bottom: 20px; line-height: 1.1; }

/* 4. КНОПКИ */
.btn-main, .btn-submit { background: var(--steel); color: var(--white); padding: 16px 45px; border-radius: 4px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); display: inline-block; text-transform: uppercase; }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(70,130,180,0.4); }
.btn-outline { border: 2px solid var(--dark); color: var(--dark); padding: 14px 40px; text-decoration: none; font-weight: 700; transition: var(--transition); display: inline-block; text-transform: uppercase; }
.btn-outline:hover { background: var(--dark); color: var(--white); }

/* 5. ПРЕИМУЩЕСТВА */
.benefits { background: var(--dark); color: var(--white); padding: 80px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.benefit-item i { font-size: 40px; color: var(--steel); margin-bottom: 20px; }

/* 6. ПЛИТКИ НА ГЛАВНОЙ (2х2) */
.home-services-preview { padding: 100px 0; background: var(--white); }
.section-title { text-align: center; font-size: 32px; margin-bottom: 50px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }

.preview-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Ровно 2 колонки */
    gap: 25px; /* Отступы между плитками */
}

.preview-item { 
    position: relative; 
    height: 350px; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    cursor: pointer;
}

.preview-img { 
    display: block;
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.preview-item:hover .preview-img { 
    transform: scale(1.1); /* Увеличение фото */
}

.preview-label { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 30px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.85)); 
    color: white; 
    font-weight: 700; 
    font-size: 1.3rem; 
    pointer-events: none;
}

/* 7. УСЛУГИ (ОТДЕЛЬНАЯ СТРАНИЦА) */
.services-section {padding: 150px 0 100px; background: var(--gray);}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }

.service-card { position: relative; height: 450px; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.card-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.service-card:hover .card-img { transform: scale(1.1); }
.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 35px; background: linear-gradient(transparent, rgba(0,0,0,0.95)); color: var(--white); }
.card-description { opacity: 0; max-height: 0; transition: 0.5s ease; font-size: 15px; margin-top: 10px; }
.service-card:hover .card-description { opacity: 1; max-height: 100px; }

/* 8. ГАЛЕРЕЯ (16 ФОТО) */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 40px 0; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; transition: 0.4s; cursor: pointer; border: 2px solid transparent; }
.gallery-item img:hover { transform: scale(1.02); filter: brightness(1.1); border-color: var(--steel); }

/* 9. ФОРМА */
.cta-section { padding: 100px 0; background: #222; }
.form-wrapper { max-width: 600px; margin: 0 auto; background: var(--white); padding: 50px; border-radius: 15px; }
input, select { width: 100%; padding: 16px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 16px; }

/* 10. КОНТАКТЫ */
.contact-section { padding: 150px 0 100px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.contact-card { padding: 45px; background: var(--gray); border-radius: 12px; transition: var(--transition); }
.contact-card:hover { transform: translateY(-5px); background: #eee; }
.contact-card i { font-size: 35px; color: var(--steel); margin-bottom: 25px; }
.contact-card a { text-decoration: none; color: var(--dark); font-weight: 800; }

/* 11. АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .hero-content h1 { font-size: 2.2rem; }
    .preview-grid { grid-template-columns: 1fr; } /* На мобилках плитки в одну колонку */
    .btn-outline { margin: 15px 0 0 0; width: 100%; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; }
}

footer { background: #000; color: #777; padding: 50px 0; text-align: center; border-top: 1px solid #1a1a1a; font-size: 14px; }

/* Видео в услугах: 2 плитки на весь ряд */
.video-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Ровно две колонки */
    gap: 30px; 
    margin-top: 40px;
}

.video-row video { 
    width: 100%; 
    height: 400px; /* Увеличили высоту для солидности */
    border-radius: 12px; 
    background: #000; 
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Стили для модального окна (увеличение фото) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 3px solid var(--white);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active { display: flex; }
.lightbox.active img { transform: scale(1); }

@media (max-width: 768px) {
    .video-row { grid-template-columns: 1fr; } /* На мобилках одно под другим */
    .video-row video { height: 250px; }
}

/* Обновленная правая часть шапки */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--white);
    font-size: 13px;
}

.info-item i {
    color: var(--steel);
    font-size: 14px;
}

.phones {
    display: flex;
    flex-direction: column;
}

.phones a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    transition: var(--transition);
    margin: 0; /* Сброс отступов из старых стилей */
    font-size: 14px;
}

.phones a:hover {
    color: var(--steel);
}

.schedule {
    font-weight: 400;
    opacity: 0.8;
}

/* Иконка Телеграма */
.tg-link {
    color: var(--white);
    font-size: 28px;
    transition: var(--transition);
    text-decoration: none;
}

.tg-link:hover {
    color: #26A5E4; /* Цвет Telegram */
    transform: scale(1.1);
}

/* Адаптив для новой шапки */
@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    header {
        position: relative; /* На мобильных лучше не фиксировать, если шапка большая */
    }
}

@media (max-width: 600px) {
    .contact-section, .services-section {
        padding: 20px 0 100px;
    }
    .hero-overlay {
        align-items: baseline;
    }
    .header-info {
        display: none; /* Скрываем детальную инфо на совсем маленьких экранах, оставляя лого и TG */
    }
    .nav-container {
        padding: 10px;
    }
}

