/* ========================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ======================================== */
:root {
    --color-black: #0a0908;
    --color-chocolate: #1a1512;
    --color-gold: #c9a962;
    --color-beige: #e8dcc8;
    --color-warm-brown: #2d2420;
    --color-accent: #B09D85;
    --color-accent-light: #c7ad97;

    /* Тени и эффекты */
    --shadow-glow: 0 0 40px rgba(201, 169, 98, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 0 30px rgba(201, 169, 98, 0.2), inset 0 0 20px rgba(201, 169, 98, 0.05);

    /* Переходы */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif !important;
    background: var(--color-black);
    color: var(--color-beige);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Типографика */
.font-serif {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   УТИЛИТЫ
   ======================================== */
.text-glow {
    text-shadow: var(--shadow-glow);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

/* ========================================
   КОМПОНЕНТЫ: КНОПКИ
   ======================================== */
.btn-glass {
    background-color: rgba(176, 157, 133, 0.3);
    border: 1px solid var(--color-accent);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    background-color: rgba(176, 157, 133, 0.45);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-no-glass {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    cursor: pointer;
}

.btn-no-glass:hover {
    background-color: rgba(176, 157, 133, 0.45);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-solid {
    background-color: var(--color-accent);
    color: #fff;
    transition: all var(--transition-smooth);
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    cursor: pointer;
}

.btn-solid:hover {
    box-shadow: 0 0 40px rgba(201, 169, 98, 0.4);
    transform: translateY(-2px);
    opacity: 1;
}

/* ========================================
   КОМПОНЕНТЫ: КАРТОЧКИ
   ======================================== */
.card-glow {
    background: linear-gradient(145deg, rgba(45, 36, 32, 0.8) 0%, rgba(26, 21, 18, 0.9) 100%);
    border: 1px solid rgba(201, 169, 98, 0.1);
    transition: all var(--transition-slow);
}

.card-glow:hover {
    border-color: rgba(201, 169, 98, 0.3);
    box-shadow: var(--shadow-card), 0 0 40px rgba(201, 169, 98, 0.1);
    transform: translateY(-4px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-bg {
    background-color: #000;
    min-height: 63rem;
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 169, 98, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.mist-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(232, 220, 200, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero_section_relative {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
}

.hero_text_container {
    border-radius: 10px;
    padding: 20px;
}

@media (max-width: 1024px) {
    .hero_text_container {
        background-color: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(201, 169, 98, 0.2);
    }
}

/* ========================================
   РАЗДЕЛИТЕЛИ СЕКЦИЙ
   ======================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 98, 0.3) 50%, transparent 100%);
    margin: 0;
}

/* ========================================
   АККОРДЕОН
   ======================================== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content.open,
.accordion-content.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.accordion-toggle .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-toggle.active .arrow {
    transform: rotate(180deg);
}

/* ========================================
   ПРЕМИУМ-БЛОКИ
   ======================================== */
.premium-dark {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10, 9, 8, 0.98) 0%, var(--color-black) 100%);
}

/* ========================================
   АНИМАЦИИ
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ========================================
   ФОТО И МЕДИА
   ======================================== */
.photo-placeholder {
    background: linear-gradient(145deg, rgba(45, 36, 32, 0.6) 0%, rgba(26, 21, 18, 0.8) 100%);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

img[onerror] {
    object-fit: cover;
}

/* ========================================
   ФУТЕР
   ======================================== */
footer {
    background: var(--color-black);
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

footer a {
    transition: opacity var(--transition-fast);
}

footer a:hover {
    opacity: 0.85;
}

/* ========================================
   ПЛАВАЮЩЕЕ МЕНЮ (Desktop)
   ======================================== */
#floating-menu {
    transition: transform 0.3s ease;
    z-index: 100;
}

#floating-menu.translate-x-full {
    transform: translateX(100%) translateY(-50%);
}

#menu-content-wrapper {
    transition: opacity 0.2s ease;
}

#menu-toggle {
    transition: background-color var(--transition-fast);
}

#menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, rgba(45, 36, 32, 0.95) 0%, rgba(26, 21, 18, 0.98) 100%);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-beige);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

/* ========================================
   ФОРМЫ ОПЛАТЫ
   ======================================== */
.payment-form .form-group {
    margin-bottom: 1.5rem;
}

.payment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-beige);
}

.payment-form input,
.payment-form select,
.payment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(45, 36, 32, 0.5);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 0.5rem;
    color: var(--color-beige);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.payment-form input::placeholder,
.payment-form textarea::placeholder {
    color: rgba(232, 220, 200, 0.5);
}

.payment-form .form-note {
    font-size: 0.875rem;
    color: rgba(232, 220, 200, 0.7);
    margin-top: 0.25rem;
}

/* ========================================
   УВЕДОМЛЕНИЯ
   ======================================== */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(145deg, rgba(45, 36, 32, 0.95) 0%, rgba(26, 21, 18, 0.98) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 0.75rem;
    color: var(--color-beige);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #22c55e;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1024px) {
    .hero-bg {
        min-height: auto;
        padding: 4rem 0;
    }

    .grid {
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .text-4xl {
        font-size: 2rem !important;
    }

    .text-5xl {
        font-size: 2.25rem !important;
    }

    .text-6xl {
        font-size: 2.5rem !important;
    }

    .btn-glass,
    .btn-no-glass,
    .btn-solid {
        width: 100%;
        justify-content: center;
    }

    .flex-col.sm\:flex-row {
        flex-direction: column !important;
    }

    .flex-col.sm\:flex-row>* {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* ========================================
   ДОСТУПНОСТЬ
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Фокус для клавиатуры */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Скрытие скроллбара для модальных окон */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(45, 36, 32, 0.3);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* ========================================
   ПЕЧАТЬ
   ======================================== */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .btn-glass,
    .btn-no-glass,
    .btn-solid,
    #floating-menu,
    .modal-overlay,
    .notification {
        display: none !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}