@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* BASE COLORS (SHARED) */
    --accent: #fff2cd;
    --primary: #d4af37;
    --primary-rgb: 212, 175, 55;
    
    /* TYPOGRAPHY (DEFAULTS) */
    --font-family: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* RADII */
    --surface-radius: 18px;
    --btn-radius: 10px;
    --input-radius: 10px;
    
    /* SPACING */
    --btn-padding: 16px;
    
    /* UTILS */
    --transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="dark"] {
    --bg: #090716;
    --text: #ffffff;
    --title-color: #ffffff;
    --muted-color: rgba(255, 255, 255, 0.5);
    --nav-link-color: #ffffff;
    --surface: rgba(255, 255, 255, 0.03);
    --card-shadow-color: rgba(0, 0, 0, 0.4);
    --card-shadow-blur: 40px;
    --card-text: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --btn-text: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(9, 7, 22, 0.85);
    --grad: linear-gradient(135deg, #d4af37 0%, #aa7700 100%);
}

/* LIGHT MODE structural overrides */
[data-theme="light"] {
    --bg: #f8fafc;
    --text: #0f172a;
    --title-color: #0f172a;
    --muted-color: rgba(15, 23, 42, 0.5);
    --nav-link-color: #0f172a;
    --surface: rgba(15, 23, 42, 0.03);
    --card-shadow-color: rgba(15, 23, 42, 0.08);
    --card-shadow-blur: 30px;
    --card-text: #0f172a;
    --border: rgba(15, 23, 42, 0.08);
    --btn-text: #ffffff;
    --input-bg: rgba(15, 23, 42, 0.03);
    --nav-bg: rgba(248, 250, 252, 0.9);
    --glass: rgba(255, 255, 255, 0.7);
    --surface-hover: rgba(15, 23, 42, 0.06);
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --grad: linear-gradient(135deg, #d4af37 0%, #aa7700 100%);
}

[data-theme="light"] .bg-orb { opacity: 0.04; }
[data-theme="light"] .main-nav { backdrop-filter: blur(30px) saturate(1.5); box-shadow: 0 1px 0 var(--border); }
[data-theme="light"] .glass-card { box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
[data-theme="light"] .a-card { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
[data-theme="light"] .input-box { background: rgba(0,0,0,0.03); color: var(--text); }
[data-theme="light"] .notif { background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.08); }


* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    /* Базовый фон */
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-family, 'Outfit', sans-serif);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background var(--transition), color var(--transition);
    position: relative;
    min-height: 100vh;
}

/* Эффект затемненного фона */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/assets/img/bd.jpg') no-repeat center center / cover fixed;
    filter: brightness(0.4) contrast(1.2); /* Deep luxury contrast */
    z-index: -1;
    pointer-events: none;
}

/* --- COMPONENTS --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: var(--surface-radius);
    box-shadow: 0 20px var(--card-shadow-blur) var(--card-shadow-color);
    color: var(--card-text);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.btn-luxe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--grad);
    color: var(--btn-text);
    padding: var(--btn-padding) calc(var(--btn-padding) * 2);
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-luxe:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--grad);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.btn-luxe:active { transform: translateY(0) scale(0.98); }

.input-box {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--input-radius);
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: 0.3s ease;
}

.input-box:focus {
    border-color: var(--primary);
    background: var(--surface-hover);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    font-family: var(--font-serif);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.text-muted {
    color: var(--muted-color);
}

/* --- ANIMATIONS --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVE --- */

/* --- NOTIFICATIONS --- */
.notif {
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-20px);
    background: var(--grad); color: white; padding: 12px 25px; border-radius: 50px;
    font-size: 14px; font-weight: 700; z-index: 10000; opacity: 0; pointer-events: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}
.notif.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- SECURITY --- */
.privacy-blur { filter: blur(40px); pointer-events: none; transition: 0.5s; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .btn-luxe { padding: 14px 24px; border-radius: 8px; }
    .glass-card { border-radius: 14px; }
    .input-box { border-radius: 8px; }
}
