/* ==========================================================================
   DESIGN TOKENS — Люксовая палитра
   ========================================================================== */
:root {
    /* Цвета */
    --color-black: #0A0A0A;
    --color-black-light: #1A1A1A;
    --color-black-lighter: #2A2A2A;
    --color-white: #FFFFFF;
    --color-white-off: #F5F5F5;
    --color-gold: #D4AF37;
    --color-gold-light: #E8C875;
    --color-gold-dark: #B08C2B;
    --color-silver: #C0C0C0;
    --color-silver-dark: #707070;

    /* Градиенты */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F7EF8A 50%, #D4AF37 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);

    /* Тени */
    --shadow-sm: 0 2px 20px rgba(212,175,55,0.05);
    --shadow-md: 0 4px 30px rgba(212,175,55,0.1);
    --shadow-lg: 0 8px 40px rgba(212,175,55,0.15);
    --shadow-gold: 0 0 30px rgba(212,175,55,0.2);

    /* Шрифты */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-primary: 'Montserrat', sans-serif;

    /* Пространство */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Размеры */
    --header-height: 90px;
    --container-width: 1280px;
    --border-radius: 4px;

    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   ТИПОГРАФИКА
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(3rem, 5vw, 5rem); }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: var(--space-sm);
    color: var(--color-silver);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-gold); }

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left var(--transition-medium);
    z-index: -1;
}

.btn:hover::before { left: 0; }

.btn--primary {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn--outline:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid rgba(212,175,55,0.3);
}

.btn--ghost:hover {
    border-color: var(--color-gold);
    background-color: rgba(212,175,55,0.1);
}

.btn--large { padding: 1.25rem 2.5rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    color: var(--color-black);
    border-radius: 50%;
    font-weight: 700;
}

.logo__accent { color: var(--color-gold); }

.nav__list {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav__link {
    position: relative;
    padding: var(--space-xs) 0;
    font-weight: 500;
    color: var(--color-silver);
}

.nav__link:hover { color: var(--color-white); }

.nav__underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width var(--transition-medium);
}

.nav__link:hover .nav__underline { width: 100%; }
.nav__link--active .nav__underline { width: 100%; }
.nav__link--accent { color: var(--color-gold); }

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
}

.burger__line {
    width: 24px;
    height: 2px;
    background-color: var(--color-gold);
    transition: transform var(--transition-medium);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--color-black);
    border-top: 1px solid rgba(212,175,55,0.1);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer__logo-mark {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.footer__logo-accent { color: var(--color-gold); }

.footer__description {
    color: var(--color-silver);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.footer__quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold-light);
    font-size: 0.875rem;
    border-left: 2px solid var(--color-gold);
    padding-left: var(--space-md);
}

.footer__title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-xs);
}

.footer__links a {
    color: var(--color-silver);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--color-gold); }

.footer__contact-list {
    list-style: none;
}

.footer__contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    color: var(--color-silver);
    font-size: 0.875rem;
}

.footer__contact-list i {
    color: var(--color-gold);
    width: 16px;
}

.footer__social-links {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
}

.footer__newsletter-text {
    font-size: 0.875rem;
    color: var(--color-silver);
    margin-bottom: var(--space-sm);
}

.footer__form {
    display: flex;
    gap: var(--space-xs);
}

.footer__input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-size: 0.875rem;
}

.footer__input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.footer__submit {
    width: 40px;
    height: 40px;
    background: var(--color-gold);
    color: var(--color-black);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer__submit:hover {
    background: var(--color-gold-light);
    transform: translateX(2px);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(212,175,55,0.1);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    font-size: 0.75rem;
    color: var(--color-silver);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    font-size: 0.75rem;
    color: var(--color-silver);
    transition: color var(--transition-fast);
}

.footer__legal a:hover { color: var(--color-gold); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: var(--color-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-gold-light);
    transform: translateY(-4px);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader__content { text-align: center; }

.preloader__logo {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.preloader__text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.2em;
}

.preloader__line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    transition: right var(--transition-medium);
}

.mobile-menu.active { right: 0; }

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.mobile-menu__content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.mobile-menu__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu__list {
    list-style: none;
    flex: 1;
}

.mobile-menu__list li {
    margin-bottom: var(--space-lg);
}

.mobile-menu__list a {
    font-size: 2rem;
    color: var(--color-white);
    font-family: var(--font-serif);
    transition: color var(--transition-fast);
}

.mobile-menu__list a:hover { color: var(--color-gold); }
.mobile-menu__accent { color: var(--color-gold) !important; }

.mobile-menu__footer {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(212,175,55,0.1);
}

.mobile-menu__contact {
    display: block;
    color: var(--color-silver);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE (базовые медиазапросы)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --space-xl: 4rem;
        --space-lg: 2rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav { display: none; }
    .burger { display: flex; }

    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-sm); }
    h1 { font-size: 2rem; }
    .btn { padding: 0.875rem 1.5rem; }
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }