:root {
    --accent: #BF953F;
    --bg: #050505;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- UTILS --- */
.gold-gradient {
    background: linear-gradient(90deg, #BF953F 0%, #FCF6BA 45%, #B38728 70%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.15em;
}

.gold-bg {
    background: linear-gradient(90deg, #BF953F 0%, #B38728 100%);
}

.gold-border {
    border: 1px solid rgba(191, 149, 63, 0.6);
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.1);
}

.gold-glow {
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-input-style {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: white;
    padding: 1rem 1.5rem;
    width: 100%;
    font-size: 0.875rem;
    transition: border-color 0.3s;
    outline: none;
}

.glass-input-style:focus {
    border-color: #BF953F;
    background: rgba(255, 255, 255, 0.08);
}

.glass-input-style::placeholder {
    color: #6b7280;
}

/* --- NAV --- */
nav a.active {
    color: #BF953F !important;
    text-shadow: 0 0 10px rgba(191, 149, 63, 0.6);
}

.lang-btn {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    font-weight: 700;
    font-size: 10px;
    color: white;
    padding: 4px 8px;
    border-bottom: 2px solid transparent;
}

.lang-btn.active,
.lang-btn:hover {
    opacity: 1;
    color: #BF953F;
    border-bottom: 2px solid #BF953F;
}

.phone-mask {
    letter-spacing: 1px;
}

/* --- CHECKBOXES & SERVICES --- */
.service-checkbox:checked+label {
    border: 1px solid #BF953F;
    background: rgba(191, 149, 63, 0.15);
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.25);
    transform: scale(1.02);
    z-index: 10;
}

.service-checkbox:checked+label::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(191, 149, 63, 0.4), transparent);
    animation: shine-sweep 3s infinite ease-in-out;
    pointer-events: none;
    will-change: transform;
}

@keyframes shine-sweep {
    0% { transform: translateX(-150%) skewX(-20deg); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: translateX(350%) skewX(-20deg); opacity: 0; }
}

/* --- TOGGLE SWITCH --- */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #BF953F;
    border-color: #BF953F;
}

input:checked+.toggle-slider:before {
    transform: translateX(18px);
    background-color: black;
}

/* --- PRICES --- */
.old-price-styled {
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 1.5px;
    color: #9ca3af;
    font-size: 0.75em;
    font-weight: 600;
    font-style: italic;
    display: block;
    text-align: right;
    margin-bottom: -4px;
}

.price-val {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.price-val.standard {
    color: #BF953F;
    text-shadow: 0 0 10px rgba(191, 149, 63, 0.2);
    font-size: 16px;
}

.price-val.promo {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
    font-size: 1.25em;
}

.discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: -2px 2px 10px rgba(239, 68, 68, 0.2);
    letter-spacing: 0.05em;
    z-index: 10;
}

/* --- TABS --- */
.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 110px;
    text-align: center;
    opacity: 0.7;
    height: 100%;
}

.tab-btn:hover {
    opacity: 1;
    border-color: rgba(191, 149, 63, 0.5);
}

.tab-btn.active {
    opacity: 1;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.2), rgba(0, 0, 0, 0));
    border-color: #BF953F;
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.15);
}

.tab-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.05em;
    color: white;
}

.tab-pane {
    display: none;
    animation: fade-in 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE MENU --- */
.hamburger {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 70;
    margin-left: 15px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #BF953F;
    border-radius: 2px;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    min-width: 200px;
    max-width: 260px;
    padding: 0 20px;
    height: 100dvh;
    background-color: rgba(20, 20, 20, 0.9);
    -webkit-backdrop-filter: blur(20px);
    transform: translate3d(100%, 0, 0);
    z-index: 60;
    border-left: 1px solid rgba(191, 149, 63, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#mobile-menu.open {
    transform: translate3d(0, 0, 0);
}

#menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e5e7eb;
    padding: 10px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- TOTAL BAR (PREMIUM FLOATING STYLE) --- */
#totalBar {
    position: fixed;
    bottom: 20px; /* Отступ от низа */
    left: 50%;
    transform: translateX(-50%); /* Центрирование */
    width: 95%;
    max-width: 600px; /* Ограничение ширины */
    
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(16px);
    
    border: 1px solid rgba(191, 149, 63, 0.5); /* Золотая обводка */
    border-radius: 24px; /* Скругленные углы */
    
    padding: 15px 25px;
    z-index: 1000;
    
    display: none; /* JS переключает на flex */
    flex-direction: column-reverse;
    align-items: stretch;
    
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); /* Глубокая тень */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Скрываем бар на десктопах, если там есть боковая панель */
@media (min-width: 1024px) {
    #totalBar {
        display: none !important;
    }
}

.total-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 20;
}

.total-bar-info {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Список услуг внутри бара */
#mobile-summary-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.total-bar.expanded #mobile-summary-list {
    max-height: 40vh;
    overflow-y: auto;
    opacity: 1;
    margin-bottom: 15px;
    margin-top: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-delete-btn {
    color: #ef4444;
    margin-left: auto;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-delete-btn:hover {
    color: #b91c1c;
}

.chevron-icon {
    transition: transform 0.3s ease;
    margin-left: 6px;
}

.total-bar.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* --- MODAL --- */
#contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

#contact-modal.active {
    display: flex;
}

.contact-box {
    width: 90%;
    max-width: 400px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(191, 149, 63, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-opt {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
}

.contact-opt:hover {
    background: #222;
    border-color: #BF953F;
    transform: translateY(-2px);
}

.wa-opt {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
}

.tg-opt {
    background: #0088cc;
    color: white;
}

.ph-opt {
    background: #BF953F;
    color: black;
}

.contact-opt:active {
    transform: scale(0.98);
}

/* --- COOKIE BANNER (PREMIUM FLOATING) --- */
#cookie-banner {
    position: fixed;
    bottom: 30px; /* Отступ от нижнего края */
    left: 50%;
    transform: translateX(-50%); /* Центрирование */
    
    width: 90%; /* Не на всю ширину */
    max-width: 400px; /* Ограничение для больших экранов */
    
    background: rgba(15, 15, 15, 0.9); /* Темный фон */
    backdrop-filter: blur(12px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid rgba(191, 149, 63, 0.3); /* Тонкая золотая рамка */
    border-radius: 16px; /* Скругленные углы */
    padding: 15px 20px;
    
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    
    font-size: 10px;
    color: #ccc;
    
    opacity: 0;
    pointer-events: none; /* Чтобы не мешал пока скрыт */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Глубокая тень */
}

#cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
    bottom: 30px; /* Финальная позиция анимации */
}

/* --- MISC --- */
.extras-btn {
    background: transparent;
    border: 1px solid #BF953F;
    color: #BF953F;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.extras-btn:hover {
    background: rgba(191, 149, 63, 0.1);
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.15);
}

.extras-btn.active {
    background: #BF953F;
    color: black;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
}

.social-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.float-wa {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.float-wa:hover {
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* --- ANIMATIONS & PARTICLES --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.bolt-3d {
    display: inline-block;
    animation: spin3d 4s linear infinite;
    transform-style: preserve-3d;
    margin-left: 5px;
    color: #BF953F;
}

@keyframes rotateLeft {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(-360deg); }
}

@keyframes spin3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #BF953F;
    border-radius: 4px;
}

/* --- FIX FOR LIGHTNING ANIMATION (FINAL) --- */
.bolt-premium-anim {
    display: inline-block;
    animation: rotateLeft 8s linear infinite;

    /* 1. Сообщаем браузеру, что трансформация будет меняться (для оптимизации) */
    will-change: transform;

    /* 2. Принудительное 3D-ускорение (помогает от пикселизации) */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    /* 3. ВАЖНО: Делаем "спину" видимой, чтобы молния не исчезала при вращении */
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;

    /* 4. Магия для сглаживания краев */
    outline: 1px solid transparent; 
    
    /* 5. Улучшаем рендеринг шрифтов/векторов */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 6. Сохраняем 3D контекст */
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Принудительная четкость векторов внутри */
.bolt-premium-anim svg {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    display: block;
}

/* Btn Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}