/* =========================================
   1. ШРИФТЫ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
@font-face { font-family: 'Benzin'; src: url('../fonts/Benzin-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Benzin'; src: url('../fonts/Benzin-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Benzin'; src: url('../fonts/Benzin-Semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Benzin'; src: url('../fonts/Benzin-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Benzin'; src: url('../fonts/Benzin-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; }

:root {
    --bg-color: #050505;
    --card-bg: #141414;
    --accent: #7F00FF;
    --accent-hover: #9d3bf5;
    --text-main: #ffffff;
    --text-sec: #b0b0b0;
    --font-head: 'Benzin', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --radius: 24px;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
    width: 100%; max-width: 100%; overflow-x: hidden;
}

* { 
    box-sizing: border-box; margin: 0; padding: 0; 
    /* Глобальный запрет на перенос слов по частям */
    hyphens: none !important; 
    -webkit-hyphens: none !important; 
    -ms-hyphens: none !important; 
    word-break: normal;
    overflow-wrap: normal;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    width: 100%; max-width: 100%; overflow-x: hidden; position: relative;
}

h1, h2, h3, .btn, .logo, .section-title { 
    font-family: var(--font-head); 
    text-transform: uppercase; 
    word-break: normal; 
    overflow-wrap: normal;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ОБЩИЕ СТИЛИ СЕКЦИЙ */
.section { 
    padding: 100px 0; position: relative; z-index: 1; 
    overflow: hidden; max-width: 100vw; 
}

.section-title {
    font-size: clamp(24px, 5vw, 48px);
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-main);
    line-height: 1.2;
    position: relative; z-index: 2;
    word-wrap: normal;
}
.title-left { text-align: left; }

/* ДЕКОР */
.glow-blob {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.glow-left { top: 50%; left: -200px; transform: translateY(-50%); }
.glow-right { top: 20%; right: -300px; }
.glow-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; opacity: 0.6; }

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 5px 15px rgba(127, 0, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap; 
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(127, 0, 255, 0.5);
}

.btn-telegram {
    background-color: #28a3e4; 
    box-shadow: 0 5px 15px rgba(40, 163, 228, 0.2);
}
.btn-telegram:hover { 
    background-color: #208bc4; 
    box-shadow: 0 10px 25px rgba(40, 163, 228, 0.4); 
}

/* ШАПКА */
header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    background: rgba(5, 5, 5, 0.95);
    max-width: 100vw;
    box-sizing: border-box;
}
header.scrolled {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 20px; font-weight: 800; color: var(--text-main); letter-spacing: 1px; 
    white-space: nowrap;
}
nav ul { display: flex; gap: 30px; }
nav a { font-size: 13px; font-weight: 600; color: #ddd; text-transform: uppercase; letter-spacing: 0.5px; }
nav a:hover { color: var(--accent); }
.header-btn { padding: 12px 24px; font-size: 11px; }

/* HERO */
.hero {
    /* Сдвигаем секцию вниз на высоту шапки (~80px) */
    margin-top: 80px;
    
    /* Высота секции за вычетом отступа, чтобы влезла в экран */
    height: calc(100vh - 80px); 
    min-height: 550px;
    
    display: flex; 
    flex-direction: column; 
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4), rgba(5,5,5,0.9)), url('../img/gallery4.jpg') center/cover no-repeat;
    padding-top: 0; 
    overflow: hidden;
}

/* Настройка контейнера внутри Hero */
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 100%;
    /* Отступ уменьшен, т.к. сама секция уже сдвинута вниз */
    padding-top: 50px; 
    padding-bottom: 50px; 
}

.hero h1 {
    font-size: clamp(24px, 3.5vw, 42px);
    line-height: 1.2; margin-bottom: 25px;
    max-width: 1100px; 
    margin-left: auto; margin-right: auto;
    text-shadow: 0 0 30px rgba(0,0,0,0.5); letter-spacing: 1px;
    padding: 0 10px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    margin-top: 0;
}

.hero p {
    font-size: clamp(18px, 3vw, 22px); 
    color: #eee;
    margin-bottom: 40px; 
    max-width: 1100px; margin-left: auto; margin-right: auto;
    padding: 0 15px;
}

.hero-buttons { 
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; 
    padding: 0 20px;
    margin-top: auto; 
    width: 100%;
}

/* О СЕБЕ */
.about-section { overflow: hidden; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative; z-index: 2;
}
.experience-badge {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 35px; padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.exp-number {
    font-family: 'Benzin', sans-serif;
    font-weight: 800; font-size: 90px; line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(127, 0, 255, 0.4);
}
.exp-text {
    font-size: 16px; line-height: 1.4; color: white;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.about-text { font-size: 18px; color: var(--text-sec); line-height: 1.8; }
.about-text::first-line { color: var(--text-main); font-weight: 600; }
.about-sign {
    margin-top: 40px;
    font-family: 'Benzin', sans-serif;
    font-size: 16px; color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase; letter-spacing: 3px;
}
.image-container {
    width: 100%; height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}
.image-container img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform 0.7s ease;
}
.about-visual:hover .image-container img { transform: scale(1.03); }

/* УСЛУГИ */
.services-section { overflow: hidden; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; position: relative; z-index: 2;
}
.service-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden; position: relative;
    border: 1px solid rgba(127, 0, 255, 0.2);
    display: flex; flex-direction: column;
    transition: all 0.4s ease; z-index: 2;
}
.service-img-box {
    width: 100%; height: 250px; flex-shrink: 0;
    overflow: hidden; position: relative; background: var(--card-bg);
}
.service-img-box img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.service-content {
    padding: 30px; flex-grow: 1; display: flex; flex-direction: column;
    background-color: var(--card-bg); position: relative; z-index: 2; margin-top: -2px;
}
.service-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-main); transition: color 0.3s; }
.service-card p { 
    color: var(--text-sec); 
    font-size: 17px; 
    line-height: 1.6; 
}
.service-card:hover { 
    transform: translateY(-10px); 
    border-color: rgba(127, 0, 255, 0.8);
    box-shadow: 0 10px 40px rgba(127, 0, 255, 0.3); 
}
.service-card:hover .service-img-box img { transform: scale(1.1); }
.service-card:hover h3 { color: var(--accent); }

/* ОТЗЫВЫ */
.reviews-wrapper {
    max-width: 800px; margin: 0 auto;
    position: relative; background: var(--card-bg);
    border-radius: var(--radius); padding: 40px;
    border: 1px solid rgba(255,255,255,0.05); z-index: 2;
}
.review-slide { display: none; text-align: center; animation: fadeIn 0.5s; }
.review-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.video-preview {
    width: 100%; aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; position: relative;
    overflow: hidden;
}
.preview-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; opacity: 0.7; transition: 0.5s;
}
.video-preview:hover { border-color: var(--accent); box-shadow: 0 0 30px rgba(127, 0, 255, 0.2); }
.video-preview:hover .preview-img { transform: scale(1.05); opacity: 0.5; }
.play-icon {
    width: 70px; height: 70px; background: var(--accent); border-radius: 50%;
    color: white; font-size: 24px; display: flex; align-items: center; justify-content: center;
    padding-left: 5px; transition: 0.3s; z-index: 2; position: relative;
    box-shadow: 0 0 20px rgba(127, 0, 255, 0.4);
}
.video-preview:hover .play-icon { transform: scale(1.1); background: white; color: var(--accent); }
.review-nav { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.nav-btn {
    width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: white; cursor: pointer; transition: 0.3s;
    display:flex; align-items:center; justify-content:center;
}
.nav-btn:hover { background: var(--accent); }

/* ГАЛЕРЕЯ */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px; grid-auto-flow: dense; position: relative; z-index: 2;
}
.gallery-item {
    height: 250px; border-radius: 12px; overflow: hidden;
    position: relative; cursor: pointer; background-color: #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(127, 0, 255, 0.2); z-index: 3;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:nth-child(1), .gallery-item:nth-child(8) { grid-column: span 2; }
@media (max-width: 600px) { .gallery-item:nth-child(n) { grid-column: span 1; } }

/* MODALS & LIGHTBOXES */
.modal, .lightbox {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.open, .lightbox.open { display: flex; opacity: 1; }
#contactModal { background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); }

.modal-content {
    background-color: #1a1a1a; padding: 50px; border-radius: var(--radius);
    width: 90%; max-width: 450px; position: relative; text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ОТСТУП СНИЗУ ДЛЯ ТЕКСТА В МОДАЛЬНОМ ОКНЕ */
.modal-content p {
    margin-bottom: 30px; 
    color: #b0b0b0;
}
.modal-content h2 {
    margin-bottom: 15px;
}

.lightbox-img {
    max-width: 90%; max-height: 90vh; border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5); animation: zoomIn 0.3s;
}
.video-container-modal {
    width: auto; max-width: 95%; height: auto; max-height: 80vh; aspect-ratio: unset;
    background: #000; border-radius: 16px; overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8); animation: zoomIn 0.3s;
    display: flex; justify-content: center; align-items: center;
}
#lightbox-video { width: auto; height: auto; max-width: 100%; max-height: 80vh; object-fit: contain; }

@keyframes zoomIn { from {transform: scale(0.9); opacity:0;} to {transform: scale(1); opacity:1;} }

.lb-close {
    position: absolute; top: 20px; right: 30px;
    font-size: 40px; color: #fff; cursor: pointer; transition: 0.3s; z-index: 3001;
}
.lb-close:hover { color: var(--accent); }
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; cursor: pointer; transition: 0.3s; user-select: none; z-index: 3001;
}
.lb-prev:hover, .lb-next:hover { background: var(--accent); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

.close { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #777; cursor: pointer; }
.close:hover { color: white; }

input {
    width: 100%; padding: 16px; margin-bottom: 15px; border-radius: 12px;
    border: 1px solid #333; background: #0a0a0a; color: white;
    font-family: var(--font-body); font-size: 16px;
}
input:focus { outline: none; border-color: var(--accent); }

/* ФУТЕР & ОФФЕР */
footer {
    background-color: var(--card-bg); 
    padding: 80px 0 30px; 
    margin-top: 80px;
    border-radius: 40px 40px 0 0; 
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.urgent-offer {
    display: inline-block; 
    max-width: 700px; 
    width: 100%; 
    margin: 0 auto 50px auto; 
    padding: 30px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(35, 10, 50, 1) 100%);
    border: 1px solid rgba(127, 0, 255, 0.3); 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    position: relative; 
    overflow: hidden;
}
.urgent-offer::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(127,0,255,0.1) 0%, transparent 60%); pointer-events: none;
}
.offer-content { 
    display: flex; align-items: center; justify-content: center; 
    gap: 20px; position: relative; z-index: 2; 
}
.offer-icon {
    width: 50px; height: 50px; background: var(--accent); color: white;
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.5); flex-shrink: 0;
}
.offer-text { text-align: left; }
.offer-text p { font-size: 18px; font-weight: 600; line-height: 1.3; color: white; margin: 0; }
.offer-text span { color: #fff; border-bottom: 2px solid var(--accent); }
.footer-contacts { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 40px; 
    width: 100%;
}
.copyright { color: #555; font-size: 12px; }

/* АДАПТИВ (MOBILE) */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .title-left { text-align: center; }
    .experience-badge { justify-content: center; border-bottom: none; margin-bottom: 20px; }
    .about-visual { order: -1; max-width: 100%; }
    .image-container { height: 400px; }
    .glow-blob { width: 300px; height: 300px; opacity: 0.3; }
    .section-title { font-size: 32px; }
}
@media (max-width: 768px) {
    .nav-wrapper { 
        display: flex;
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 15px; 
    }
    nav ul { display: none; } 
    .logo { 
        font-size: 13px; 
        max-width: 120px; 
        white-space: normal; 
        line-height: 1.1; 
        text-align: left;
    }
    .header-btn { 
        padding: 10px 16px; 
        font-size: 10px; 
        white-space: nowrap;
    }
    .hero h1 { font-size: 22px; line-height: 1.3; } 
    
    .hero-buttons { flex-direction: column; width: 100%; }
    
    .hero {
        /* На мобильных чуть меньший отступ сверху, т.к. шапка меньше */
        margin-top: 70px;
        height: calc(100vh - 70px);
    }

    .hero .container {
        padding-bottom: 100px; 
        padding-top: 40px;
    }
    
    .section-title {
        font-size: 26px; 
    }
    
    .footer-contacts {
        flex-direction: column; 
        align-items: center;
        gap: 15px; 
    }
    .btn { 
        width: 100%; 
        white-space: normal; 
        line-height: 1.2;
        padding: 15px 20px;
        height: auto; 
    }
    .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 18px; }
    .offer-content { flex-direction: column; text-align: center; gap: 15px; }
    .offer-text { text-align: center; }
    .section { padding: 60px 0; }
    .gallery-grid { grid-template-columns: 1fr; } 
    .gallery-item:nth-child(n) { grid-column: span 1; }
    .reviews-wrapper { padding: 20px; }
}