:root {
            --bg-dark: #121212;
            --bg-light: #1a1a1a;
            --accent: #c5a880; /* Премиальное золото */
            --text-white: #ffffff;
            --text-gray: #a0a0a0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-family: Arial, Helvetica, sans-serif; /* Автономный надежный шрифт для текста */
            background-color: var(--bg-dark);
            color: var(--text-white);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 100px 0;
        }

        /* ==========================================
           ЛОКАЛЬНАЯ CSS АНИМАЦИЯ ПРИ СКРОЛЛЕ
           ========================================== */
        
        /* Начальное состояние элементов до появления на экране (скрыты и смещены) */
        .reveal-up {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }
        
        .reveal-left {
            opacity: 0;
            transform: translateX(50px);
            transition: opacity 1s ease-out, transform 1s ease-out;
        }
        
        .reveal-right {
            opacity: 0;
            transform: translateX(-50px);
            transition: opacity 1s ease-out, transform 1s ease-out;
        }
        
        .reveal-zoom {
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        /* Класс активации, который добавит JavaScript при прокрутке */
        .active-scroll {
            opacity: 1 !important;
            transform: translate(0, 0) scale(1) !important;
        }

        /* Шапка сайта */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            background: rgba(18, 18, 18, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            border-bottom: 1px solid rgba(197, 168, 128, 0.1);
        }

        .logo {
            font-family: Georgia, serif; /* Премиальный шрифт для заголовков */
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 2px;
        }

        .logo span {
            color: var(--accent);
        }

        .nav a {
            color: var(--text-white);
            text-decoration: none;
            margin-right: 30px;
            transition: 0.3s;
            font-size: 14px;
        }

        .nav a:hover {
            color: var(--accent);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .header-img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--accent);
        }
 /* Кнопки с премиальным плавным свечением */
        .btn {
            display: inline-block;
            padding: 16px 35px;
            border-radius: 0px; /* Строгие дорогие прямые углы */
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            transition: all 0.4s ease;
            cursor: pointer;
        }

        .btn-primary {
            background: var(--accent);
            color: #000;
            border: 1px solid var(--accent);
        }

        .btn-primary:hover {
            background: transparent;
            color: var(--accent);
            box-shadow: 0 0 25px rgba(197, 168, 128, 0.5);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-white);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            color: var(--accent);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        }

        .btn-nav {
            padding: 10px 20px;
            font-size: 11px;
            border: 1px solid var(--accent);
            color: var(--accent);
        }

        .btn-block {
            width: 100%;
            text-align: center;
        }

        /* Главный экран */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 140px 5% 60px 5%;
            /* ЛОКАЛЬНЫЙ ФОН: Картинка hero-bg.jpg должна лежать в папке img */
            background: #121212 url('img/hero-bg.jpg') no-repeat center center/cover;
            overflow: hidden;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.7) 100%);
            z-index: 1;
        }

        .hero-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            z-index: 2;
            gap: 50px;
        }

        .hero-content {
            flex: 1;
            max-width: 650px;
        }

        .hero-content h1 {
            font-family: Georgia, serif;
            font-size: 52px;
            line-height: 1.2;
            margin: 20px 0;
        }

        .hero-content .subtitle {
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 3px;
            font-size: 13px;
            font-weight: 600;
        }

        .hero-content p {
            color: var(--text-gray);
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 40px;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
        }

        .hero-image-block {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            max-width: 550px;
        }

        .hero-right-img {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: cover;
            border: 1px solid var(--accent);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        }

        /* Преимущества и Сетки */
        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title h2 {
            font-family: Georgia, serif;
            font-size: 40px;
            margin-bottom: 15px;
        }

        .section-title p {
            color: var(--accent);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .card {
            background: var(--bg-light);
            padding: 45px;
            border: 1px solid rgba(255,255,255,0.03);
            transition: 0.4s ease;
        }

        .card:hover {
            border-color: var(--accent);
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        }

        .card h3 {
            margin-bottom: 15px;
            font-size: 22px;
            font-family: Georgia, serif;
        }

        .card p {
            color: var(--text-gray);
            line-height: 1.7;
            font-size: 15px;
        }

        /* Видео */
        .video-section {
            background: var(--bg-light);
        }

        .video-container {
            position: relative;
            padding-bottom: 56.25%; 
            height: 0;
            overflow: hidden;
            max-width: 950px;
            margin: 0 auto;
            box-shadow: 0 30px 60px rgba(0,0,0,0.6);
            border: 1px solid rgba(197, 168, 128, 0.2);
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Отзывы */
        .review-card {
            background: var(--bg-dark);
            padding: 45px;
            border-left: 3px solid var(--accent);
            border-top: 1px solid rgba(255,255,255,0.02);
            border-right: 1px solid rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.02);
            transition: 0.3s ease;
        }

        .review-card:hover {
            background: #161616;
            transform: translateX(5px);
        }

        .review-text {
            font-style: italic;
            color: var(--text-gray);
            line-height: 1.8;
            margin-bottom: 25px;
            font-size: 15px;
        }

        .review-author {
            font-weight: 600;
            color: var(--accent);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Форма */
        .form-section {
            /* ЛОКАЛЬНЫЙ ФОН ФОРМЫ: Картинка form-bg.jpg должна лежать в папке img */
            background: linear-gradient(rgba(18,18,18,0.85), rgba(18,18,18,0.95)), #1a1a1a url('img/form-bg.jpg') center/cover;
            padding: 120px 0;
            display: flex;
            justify-content: center;
        }

        .form-container {
            background: #000000;
            padding: 60px;
            max-width: 650px;
            width: 90%;
            border: 1px solid var(--accent);
            box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        }

        .form-container h2 {
            font-family: Georgia, serif;
            font-size: 36px;
            margin-bottom: 15px;
            text-align: center;
        }

        .form-container p {
            color: var(--text-gray);
            text-align: center;
            margin-bottom: 40px;
            font-size: 15px;
            line-height: 1.6;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group input, .form-group select {
            width: 100%;
            padding: 18px;
            background: #0f0f0f;
            border: 1px solid rgba(255,255,255,0.08);
            color: #fff;
            outline: none;
            transition: 0.3s;
            font-size: 14px;
        }

        .form-group input:focus, .form-group select:focus {
            border-color: var(--accent);
            background: #151515;
        }

        .status-message {
            margin-top: 20px;
            text-align: center;
            font-weight: 600;
            font-size: 14px;
        }

        /* Подвал */
        .footer {
            background: #0a0a0a;
            padding: 80px 0;
            border-top: 1px solid rgba(255,255,255,0.03);
            font-size: 14px;
            color: var(--text-gray);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 50px;
        }

        .footer h3 {
            color: var(--accent);
            margin-bottom: 25px;
            font-size: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .footer p {
            line-height: 1.8;
            margin-bottom: 10px;
        }

        .social-links a {
            color: var(--text-white);
            text-decoration: none;
            margin-right: 20px;
            transition: 0.3s;
            font-weight: 600;
            font-size: 13px;
        }

        .social-links a:hover {
            color: var(--accent);
        }

        /* Адаптивный интерфейс */
        @media (max-width: 1024px) {
            .hero-wrapper { flex-direction: column; text-align: center; gap: 40px; }
            .hero-content { max-width: 100%; }
            .hero-buttons { justify-content: center; }
        }

        @media (max-width: 768px) {
            .nav, .header-img, .hero-image-block { display: none; }
            .hero { padding-top: 120px; }
            .hero-content h1 { font-size: 36px; }
            .hero-buttons { flex-direction: column; gap: 15px; }
            .form-container { padding: 30px; }
        }
		/* ==========================================
   БЛОК КВАДРАТНОЙ ГАЛЕРЕИ (ФОТО РАБОТ)
   ========================================== */
.gallery-section {
      background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    /* Сетка: 4 колонки на больших экранах, автоматически уменьшается на мобильных */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Расстояние между квадратами */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Секретный хак для идеального квадрата 1:1 в CSS */
    aspect-ratio: 1 / 1; 
    border: 1px solid rgba(197, 168, 128, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет квадрат без деформации */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-overlay-text h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 5px;
}

.gallery-overlay-text p {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Эффекты при наведении */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay-text {
    transform: translateY(0);
    opacity: 1;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Квадраты поменьше на смартфонах */
        gap: 12px;
    }
    .gallery-overlay-text {
        opacity: 1;
        transform: translateY(0);
        padding: 15px 10px;
    }
    .gallery-overlay-text h3 {
        font-size: 14px;
    }
    .gallery-overlay-text p {
        font-size: 10px;
    }
}
/* ==========================================
   МОДАЛЬНОЕ ОКНО ДЛЯ УВЕЛИЧЕНИЯ ФОТО
   ========================================== */
.modal {
    display: none; /* Изначально скрыто */
    position: fixed;
    z-index: 2000; /* Поверх шапки */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px); /* Премиальное размытие заднего плана */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Класс для плавного показа через JS */
.modal.modal-show {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--accent); /* Золотая рамка для фото */
    box-shadow: 0 0 30px rgba(197, 168, 128, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.modal-show .modal-content {
    transform: scale(1);
}

/* Кнопка закрытия (крестик) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-white);
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding-top: 40px;
    }
    .modal-close {
        right: 20px;
        top: 10px;
    }
}

css/* ==========================================
   ВИДЖЕТ ЖИВОЙ АКТИВНОСТИ (TOAST)
   ========================================== */
.live-toast {
    position: fixed;
    bottom: -100px; /* Изначально спрятано внизу */
    left: 30px;
    background: #000000;
    border: 1px solid var(--accent);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    width: 320px;
    transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    opacity: 0;
}

/* Класс для плавного появления виджета */
.live-toast.toast-show {
    bottom: 30px;
    opacity: 1;
}

.toast-icon {
    font-size: 24px;
    background: var(--bg-light);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.toast-body {
    flex: 1;
}

.toast-body h4 {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 2px;
}

.toast-body p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.3;
}

.toast-time {
    display: block;
    font-size: 10px;
    color: var(--accent);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .live-toast {
        left: 5%;
        width: 90%;
        bottom: -120px;
    }
    .live-toast.toast-show {
        bottom: 20px;
    }
}

/* ==========================================
   ВИДЖЕТ ЖИВОЙ АКТИВНОСТИ (TOAST)
   ========================================== */
.live-toast {
    position: fixed !important; /* Принудительно фиксируем поверх всего */
    bottom: -150px !important;  /* Надежно прячем глубоко под экран */
    left: 30px !important;
    background: #000000 !important;
    border: 1px solid #c5a880 !important; /* var(--accent) напрямую */
    padding: 15px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    z-index: 9999 !important; /* Самый высокий приоритет слоя */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    width: 320px !important;
    opacity: 0 !important; /* Изначально полностью невидимый */
    transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease !important;
}

/* Класс для плавного выезда и показа виджета */
.live-toast.toast-show {
    bottom: 30px !important;   /* Выезжает снизу вверх */
    opacity: 1 !important;     /* Становится видимым */
}

.toast-icon {
    font-size: 24px !important;
    background: #1a1a1a !important; /* var(--bg-light) напрямую */
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(197, 168, 128, 0.3) !important;
}

.toast-body {
    flex: 1 !important;
}

.toast-body h4 {
    font-size: 14px !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    font-weight: 600 !important;
}

.toast-body p {
    font-size: 12px !important;
    color: #a0a0a0 !important; /* var(--text-gray) напрямую */
    line-height: 1.3 !important;
}

.toast-time {
    display: block !important;
    font-size: 10px !important;
    color: #c5a880 !important;
    margin-top: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

@media (max-width: 480px) {
    .live-toast {
        left: 5% !important;
        width: 90 !important;
        bottom: -150px !important;
    }
    .live-toast.toast-show {
        bottom: 20px !important;
    }
}

/* ==========================================
   БЛОК ЦЕН И ОНЛАЙН-РАСЧЕТА (КАЛЬКУЛЯТОР)
   ========================================== */
.pricing-section {
    background: var(--bg-light);
}

.calculator-container {
    background: #000000;
    border: 1px solid var(--accent);
    padding: 50px;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.calculator-container h3 {
    font-family: Georgia, serif;
    font-size: 26px;
    text-align: center;
    margin-bottom: 10px;
}

.calc-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 40px;
}

.calc-step {
    margin-bottom: 30px;
}

.calc-step label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.calc-step input[type="number"], .calc-step select {
    width: 100%;
    padding: 16px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: Arial, sans-serif;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.calc-step input[type="number"]:focus, .calc-step select:focus {
    border-color: var(--accent);
}

.calc-result-box {
    background: #0f0f0f;
    border-left: 3px solid var(--accent);
    padding: 25px;
    margin: 40px 0 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result-box span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-gray);
}

#calc-total-val {
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(197, 168, 128, 0.3);
}

@media (max-width: 768px) {
    .calculator-container { padding: 30px 20px; }
    .calc-result-box { flex-direction: column; gap: 15px; text-align: center; }
    #calc-total-val { font-size: 26px; }
}

/* Регистрация премиального шрифта для заголовков */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Регистрация премиального шрифта для основного текста */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    font-family: 'Montserrat', Arial, sans-serif; /* Для всего текста */
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', Georgia, serif; /* Для дорогих заголовков */
}