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

:root {
    --bg-color: #050507; 
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; 
    position: relative;
}

/* --- ФОН --- */
.bg-blobs { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: var(--bg-color); }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; animation: moveBlobs 15s infinite alternate ease-in-out; }
.blob-1 { width: 400px; height: 400px; background: #5a189a; top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: #0077b6; bottom: -20%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #9d4edd; top: 40%; left: 40%; animation-delay: -10s; }
@keyframes moveBlobs { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.2); } }

/* --- СТЕКЛО --- */
.glass-panel { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); }

/* --- ТИПОГРАФИКА --- */
.main-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 40px; font-weight: 800; letter-spacing: -1.5px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
h2.section-title { font-size: 1.8rem; margin-bottom: 40px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; text-shadow: 0 4px 10px rgba(0,0,0,0.3);}
h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; color: #fff;}
a { color: var(--text-main); text-decoration: none; transition: all 0.3s; }
.muted-text { color: var(--text-muted); font-size: 1.1rem; }
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }
.mt-100 { margin-top: 100px; }

/* --- МЕНЮ (Капсула) --- */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; margin-top: 20px; border-radius: 20px; position: sticky; top: 20px; z-index: 100; }
.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; }
.main-nav { display: flex; gap: 5px; background: rgba(255, 255, 255, 0.05); padding: 6px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.05); }
.main-nav a { font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); padding: 10px 24px; border-radius: 50px; transition: all 0.3s ease; }
.main-nav a:hover { color: var(--text-main); }
.main-nav a.active { color: var(--text-main); background: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }

/* --- ГЛАВНАЯ --- */
.hero { padding: 60px 0 40px; }
.hero-intro { max-width: 900px; padding: 40px; border-radius: 24px; }
.highlight-text { font-size: 1.6rem; font-weight: 500; margin-bottom: 20px; line-height: 1.4; color: #fff; }
.hero-subtext { font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 40px 30px; border-radius: 24px; transition: transform 0.3s ease, background 0.3s ease; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); }

/* Слайдер */
.slider-section { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; overflow: hidden; padding: 40px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.slider-track { display: flex; gap: 30px; width: max-content; animation: scroll 60s linear infinite; }
.slide img { height: 450px; width: 350px; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); pointer-events: none; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Кнопки */
.vision { padding: 60px 40px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; }
.big-quote { font-size: 2.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 40px; letter-spacing: -0.5px; text-align: center; }
.cta-buttons { display: inline-flex; justify-content: center; gap: 10px; background: rgba(255, 255, 255, 0.05); padding: 8px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.05); }
.glass-btn { display: inline-block; padding: 16px 35px; font-size: 1.05rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background: #e6e6e6; color: #000; } .btn-primary:hover { background: #ffffff; transform: scale(1.02); }
.btn-outline { background: transparent; color: var(--text-main); } .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* --- УСЛУГИ (ЗИГ-ЗАГ) --- */
.service-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-text { flex: 1; padding: 30px; border-radius: 24px; }
.service-title { font-size: 2rem; line-height: 1.2; margin-bottom: 25px; color: #fff; }
.service-price { margin-bottom: 25px; font-size: 1.1rem; }
.service-price div { margin-bottom: 8px; }
.service-price strong { color: #fff; font-weight: 700; }
.service-list { list-style: none; margin-bottom: 25px; color: var(--text-muted); font-size: 0.95rem; }
.service-list li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.service-list li::before { content: "•"; position: absolute; left: 0; color: #fff; }
.service-meta { font-size: 0.9rem; color: #888; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }

/* Блок картинки / видео */
.service-img-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; 
    border-radius: 24px;
    background: transparent;
    overflow: hidden;
}

/* И для картинок, и для видео */
.service-img-box img,
.service-img-box video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Показывает целиком */
    border-radius: 24px;
}

/* --- ВАЖНО ЗНАТЬ --- */
.info-section { display: flex; align-items: center; gap: 50px; margin-top: 120px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; overflow: hidden; }
.info-content { padding: 50px; flex: 1; }
.info-title { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; }
.info-text { color: var(--text-muted); margin-bottom: 30px; }
.info-img { flex: 1; height: 500px; }
.info-img img { width: 100%; height: 100%; object-fit: cover; }
.btn-capsule { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid #fff; color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.btn-capsule:hover { background: #fff; color: #000; }

/* --- ПАКИ --- */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 40px; }
.pack-card { padding: 40px 30px; border-radius: 24px; display: flex; flex-direction: column; }
.pack-card ul { list-style: none; margin-bottom: 20px; flex-grow: 1; }
.pack-card li { margin-bottom: 12px; font-size: 0.95rem; color: #ddd;}
.pack-card li::before { content: "—"; position: absolute; left: 0; color: var(--text-muted); }
.pack-card .price { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; text-align: center; }
.pack-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; text-align: center; }
.accent-pink { color: var(--text-main); text-transform: uppercase; }

/* --- ПОРТФОЛИО --- */
.portfolio-grid { column-count: 3; column-gap: 20px; }
.portfolio-item { break-inside: avoid; margin-bottom: 20px; background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); border-radius: 24px; overflow: hidden; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.portfolio-item img, .portfolio-item video { width: 100%; height: auto; display: block; border-radius: 24px; transition: opacity 0.3s; }
.portfolio-item:hover img, .portfolio-item:hover video { opacity: 0.8; }
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img, .lightbox video { max-width: 90%; max-height: 90%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); object-fit: contain; display: none; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: #ffffff; font-size: 45px; font-weight: 300; cursor: pointer; line-height: 1; transition: color 0.3s; z-index: 1001; }
.lightbox-close:hover { color: var(--text-muted); }

/* --- ПОДВАЛ --- */
footer { text-align: center; padding: 60px 40px; border-radius: 24px; margin-bottom: 60px; }
footer h2 { margin-bottom: 10px; font-size: 1.8rem; }
footer .desc { color: var(--text-muted); margin-bottom: 30px; }
footer .socials { font-size: 1.1rem; }
footer .socials a { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
footer .socials a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* --- АНИМАЦИЯ --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
    .features-grid, .services-grid { grid-template-columns: 1fr; }
    .service-row, .service-row.reverse, .info-section { flex-direction: column; gap: 30px; }
    .service-img-box { width: 100%; height: 300px; }
    .info-img { width: 100%; height: 300px; order: -1; }
    .portfolio-grid { column-count: 2; }
    .main-title { font-size: 3.5rem; }
}

@media (max-width: 600px) {
    header { flex-direction: column; gap: 15px; padding: 20px; border-radius: 16px; top: 10px; }
    .main-nav { gap: 5px; flex-wrap: nowrap; justify-content: center; padding: 4px; overflow-x: auto; max-width: 100%;}
    .main-nav a { padding: 8px 16px; font-size: 0.75rem; white-space: nowrap; } 
    .portfolio-grid { column-count: 1; }
    .lightbox-close { top: 15px; right: 20px; font-size: 35px; }
    .main-title { font-size: 2.5rem; }
    .hero-intro, .feature-card, .vision, footer { padding: 30px 20px; border-radius: 16px; }
    .highlight-text { font-size: 1.3rem; }
    .cta-buttons { flex-direction: column; width: 100%; border-radius: 24px; }
    .glass-btn { width: 100%; text-align: center; border-radius: 16px; }
    .blob-1 { width: 250px; height: 250px; }
    .blob-2 { width: 300px; height: 300px; }
}

/* ========================================== */
/* ПЛАВАЮЩАЯ КНОПКА И МОДАЛЬНОЕ ОКНО КОНТАКТОВ */
/* ========================================== */

/* Круглая белая кнопка внизу */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}

/* Темный фон при открытии визитки */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Сама карточка-визитка */
.contact-modal {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 24px;
    padding: 40px 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.contact-overlay.active .contact-modal {
    transform: translateY(0);
}

/* Крестик закрытия */
.close-contact {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-contact:hover {
    color: #fff;
}

/* Фото, Имя, Телефон */
.contact-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid #333;
}

.contact-name {
    font-family: 'Inter', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-subtitle {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.contact-phone {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Кнопки соцсетей внутри карточки */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.btn-contact-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
}

.btn-contact-solid {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-contact-solid:hover {
    background: #e6e6e6;
}

/* Адаптив для телефона */
@media (max-width: 600px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .contact-modal {
        padding: 30px 20px;
    }
    .contact-name {
        font-size: 1.5rem;
    }
}

/* --- СТИЛИ ЮРИДИЧЕСКОГО ОКНА --- */
.legal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000; /* Выше всех */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.legal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.legal-modal {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 50px 40px;
    border-radius: 30px;
    position: relative;
    overflow-y: auto; /* Прокрутка если текст длинный */
}

.close-legal {
    position: absolute;
    top: 25px; right: 30px;
    font-size: 35px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.close-legal:hover { color: #fff; }

.legal-content h2 { 
    font-size: 1.8rem; 
    margin-bottom: 20px; 
    text-align: left; 
    text-transform: uppercase; 
}

.legal-content p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 15px; 
    line-height: 1.7; 
}

/* Юридические ссылки в футере */
.legal-links { margin-top: 40px; display: flex; justify-content: center; gap: 25px; font-size: 0.75rem; }
.legal-links a { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.legal-links a:hover { color: #fff; }
.copyright { margin-top: 20px; font-size: 0.7rem; color: #444; text-transform: uppercase; letter-spacing: 2px; text-align: center;}