/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
:root {
    --bg: #0a0a0a;
    --text: #fff;
    --accent: #d4af37;
    --gray: #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font: 300 16px/1.8 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.no-scroll { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: .3s; }
a:hover { color: var(--accent); }

ul { list-style: none; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 60px 0; }
.text-center { text-align: center; max-width: 800px; margin: 0 auto; }
.title { text-align: center; font-size: 2rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 40px; font-weight: 400; }
.title::after { content: ''; display: block; width: 50px; height: 2px; background: var(--accent); margin: 15px auto 0; }

.hidden { display: none !important; }

/* Утилиты для отступов */
.mb-15 { margin-bottom: 15px; }
.mb-25 { margin-bottom: 25px; }
.mb-40 { margin-bottom: 40px; }
.mt-30 { margin-top: 30px; }
.accent-text { color: var(--accent); }
.gray-text { color: var(--gray); }

/* --- ШАПКА --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10,10,10,.95);
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo { font-family: 'Great Vibes', cursive; font-size: 1.8rem; font-weight: 400; letter-spacing: 1px; text-transform: none; }
nav ul { display: flex; gap: 20px; font-size: 0.8rem; text-transform: uppercase; }

/* --- ГЛАВНЫЙ ЭКРАН --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/fon.webp') center/cover;
    padding-top: 80px;
    position: relative;
}

.hero h1 { font: 400 6rem 'Great Vibes', cursive; margin-bottom: 10px; }
.hero-subtext { letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.badge { color: var(--accent); font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }

/* --- КНОПКА --- */
.btn {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 25px;
    transition: .3s;
    cursor: pointer;
    background: transparent;
}

.btn:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25); }

/* --- СЕТКИ --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }

/* --- НАГРАДЫ --- */
.award-container {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.award-container img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: all 0.5s ease;
    cursor: zoom-in;
    filter: blur(0.3px);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1.001);
}

.award-container:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.2);
}

.award-container:hover img {
    transform: scale(1.03);
    filter: blur(0px);
}

/* --- ГАЛЕРЕЯ --- */
.gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: .4s;
    cursor: zoom-in;
    filter: grayscale(10%) blur(0.3px);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1.001);
}

.gallery img:hover {
    filter: grayscale(0%) blur(0px);
    transform: scale(1.02) translateZ(0);
}

/* --- ПРАЙС-ЛИСТ --- */
.cat { padding: 25px; border: 1px solid #222; border-radius: 8px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.cat:hover { border-color: var(--accent); box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.2); }
.cat h3 { color: var(--accent); font-size: 1.2rem; margin-bottom: 15px; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 5px; }
.item { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.95rem; }
.item span:last-child { font-weight: 600; }

/* --- КОНТАКТЫ --- */
.contact-section { border-top: 1px solid #222; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 30px; }
.contact-links a { color: var(--accent); font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.contact-links a i { font-size: 1.3rem; }

footer { text-align: center; padding: 20px; border-top: 1px solid #222; color: var(--gray); font-size: 0.8rem; }

/* --- ЛАЙТБОКС --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content { margin: auto; display: block; max-width: 85%; max-height: 85vh; object-fit: contain; border-radius: 5px; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from {transform: scale(0.95); opacity: 0;} to {transform: scale(1); opacity: 1;} }

.close-lightbox { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 2002; }
.close-lightbox:hover { color: var(--accent); }

.lightbox-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 2002;
}

.lightbox-arrow:hover { color: var(--accent); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- SCROLL INDICATOR (СТРЕЛКА ВНИЗ В HERO) --- */
.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text); }
.scroll-indicator svg { animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* --- ЛАЙТБОКС СЧЁТЧИК --- */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    z-index: 2002;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    header { flex-direction: row; }
    header nav { position: fixed; top: 0; left: 0; width: 0; height: 0; }
    .hero h1 { font-size: 4rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .award-container img { height: auto; max-height: 400px; }
    .contact-links { flex-direction: column; gap: 15px; }
    .lightbox-arrow { font-size: 30px; padding: 10px; }
}

/* --- ПЛАВНЫЙ СКРОЛЛ И ФИКС ШАПКИ --- */
html {
    scroll-padding-top: 80px; /* Высота шапки, чтобы она не перекрывала заголовки */
}

/* --- СТИЛИ ГАМБУРГЕРА (Скрыт на ПК) --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text);
    transition: all 0.3s ease-in-out;
}

/* --- АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Показываем бургер на телефонах */
    }

    /* Прячем меню за правый край экрана */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 40px;
        font-size: 1.2rem;
    }

    /* Класс для активного (открытого) меню */
    .nav-links.active {
        right: 0;
    }

    /* Анимация гамбургера в крестик */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* --- СТИЛИ ДЛЯ LENIS (ПЛАВНЫЙ СКРОЛЛ) --- */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- КАРТА GOOGLE --- */
.map-container {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s ease;
    /* Убираем влияние плавного скролла Lenis на саму карту */
    position: relative;
    z-index: 10;
}

.map-container:hover {
    border-color: var(--accent); /* Подсветка золотым при наведении */
}

.map-container iframe {
    display: block;
    width: 100%;
    /* Фильтр делает карту чуть темнее, чтобы она вписывалась в темный дизайн сайта */
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%);
}

/* --- ПЛАВАЮЩАЯ КНОПКА (ТОЛЬКО ДЛЯ МОБИЛЬНЫХ) --- */
.floating-btn {
    display: none; /* По умолчанию скрываем на компьютерах */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent); /* Золотой цвет для привлечения внимания */
    color: var(--bg); /* Черный текст для контраста */
    padding: 15px 35px;
    border-radius: 30px; /* Красивые закругленные края */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4); /* Золотое свечение */
    z-index: 999; /* Чтобы кнопка была поверх всех картинок и текста */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Анимация нажатия */
.floating-btn:active {
    transform: translateX(-50%) scale(0.95);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
    .floating-btn {
        display: flex; /* Показываем кнопку только на экранах < 768px */
        align-items: center;
        justify-content: center;
    }

    /* Делаем отступ у футера, чтобы плавающая кнопка не перекрывала копирайт в самом низу */
    footer {
        padding-bottom: 90px;
    }
}

/* --- ФУТЕР И КОПИРАЙТ --- */
footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #222;
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- СТИЛИ ДЛЯ ПОДПИСИ STRONLAB --- */
.footer-made-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

.stronlab-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text); /* Белый текст по умолчанию */
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Делаем иконку золотой сразу, чтобы она сочеталась с сайтом */
.stronlab-badge svg {
    color: var(--accent);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Красивый эффект при наведении мышки */
.stronlab-badge:hover {
    color: var(--accent); /* Текст становится золотым */
    background: rgba(212, 175, 55, 0.05); /* Еле заметный золотой фон */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15); /* Золотистое свечение вокруг кнопки */
}

.stronlab-badge:hover svg {
    transform: scale(1.1); /* Иконка чуть увеличивается */
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6)); /* Иконка начинает светиться */
}