/* ============================================================
   LYNXREACTOR — ГЛОБАЛЬНЫЕ СТИЛИ
   ============================================================ */

/* ============================================================
   1. ИМПОРТ ШРИФТОВ
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* ============================================================
   2. ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    /* Цвета */
    --color-primary-dark: #0B0B0C;
    --color-secondary-dark: #141416;
    --color-card-bg: #171719;
    --color-light-bg: #F1EEE7;
    --color-gold: #C89A5B;
    --color-gold-light: #D8B477;
    --color-gold-dark: #9A6D35;
    --color-gold-rgba: rgba(200, 154, 91, 0.25);
    --color-gold-rgba-light: rgba(200, 154, 91, 0.08);
    --color-text-primary: #F5F3EF;
    --color-text-secondary: #A6A3A0;
    --color-text-dark: #111111;
    --color-text-light: #FFFFFF;

    /* Шрифты */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Размеры */
    --container-width: 1280px;
    --header-height: 80px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;

    /* Радиусы */
    --radius-btn: 6px;
    --radius-card: 16px;
    --radius-image: 24px;
    --radius-input: 8px;

    /* Переходы */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   3. СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-primary-dark);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-gold-light);
}

/* ============================================================
   4. ВЫДЕЛЕНИЕ ТЕКСТА
   ============================================================ */
::selection {
    background: var(--color-gold);
    color: var(--color-text-dark);
}

/* ============================================================
   5. ТИПОГРАФИКА
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(42px, 8vw, 78px); line-height: 0.95; }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: clamp(28px, 3.5vw, 40px); }
h4 { font-size: clamp(22px, 2.5vw, 32px); }
h5 { font-size: clamp(18px, 1.8vw, 24px); }
h6 { font-size: clamp(16px, 1.4vw, 20px); }

p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* ============================================================
   6. КОНТЕЙНЕР И СЕТКА
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   7. СЕКЦИИ (общие стили)
   ============================================================ */
.section {
    padding: var(--section-padding);
}
.section-dark { background-color: var(--color-primary-dark); }
.section-graphite { background-color: var(--color-secondary-dark); }
.section-light {
    background-color: var(--color-light-bg);
    color: var(--color-text-dark);
}
.section-light p { color: var(--color-text-secondary); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-rgba), transparent);
    margin: 0 auto;
    max-width: 400px;
    opacity: 0.3;
}

/* ============================================================
   8. ЗОЛОТЫЕ АКЦЕНТЫ
   ============================================================ */
.gold-accent { color: var(--color-gold); }

.gold-line {
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    width: 60px;
    margin: 20px 0;
}

.gold-line-center {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    width: 80px;
    margin: 20px auto;
}

/* ============================================================
   9. АНИМАЦИИ (базовые)
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes goldPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   10. УТИЛИТЫ
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-secondary { color: var(--color-text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* ============================================================
   SELECT СТИЛИ — ДЛЯ ВСЕХ ФОРМ
   ============================================================ */

/* Стили для select на сайте */
select.form-control,
select.form-select,
select.form-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--color-text-primary, #F5F3EF) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: var(--font-sans, 'Manrope', sans-serif) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A6A3A0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 44px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

select.form-control:hover,
select.form-select:hover,
select.form-input:hover {
    border-color: rgba(200, 154, 91, 0.3) !important;
}

select.form-control:focus,
select.form-select:focus,
select.form-input:focus {
    outline: none !important;
    border-color: var(--color-gold, #C89A5B) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(200, 154, 91, 0.15) !important;
}

/* Стили для option внутри select */
select.form-control option,
select.form-select option,
select.form-input option {
    background-color: var(--color-card-bg, #171719) !important;
    color: var(--color-text-primary, #F5F3EF) !important;
    padding: 10px 16px !important;
    border: none !important;
}

/* Hover для option */
select.form-control option:hover,
select.form-select option:hover,
select.form-input option:hover {
    background-color: rgba(200, 154, 91, 0.1) !important;
}

/* Для Firefox */
select.form-control:-moz-focusring,
select.form-select:-moz-focusring,
select.form-input:-moz-focusring {
    color: var(--color-text-primary, #F5F3EF) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Для IE/Edge */
select.form-control::-ms-expand,
select.form-select::-ms-expand,
select.form-input::-ms-expand {
    display: none !important;
}

/* ============================================================
   SELECT В АДМИНКЕ (Jazzmin)
   ============================================================ */

/* Основные select в админке */
select.form-control,
select.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(200, 154, 91, 0.15) !important;
}

select.form-control option,
select.form-select option {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
}

/* Select в фильтрах админки */
#changelist-filter select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(200, 154, 91, 0.1) !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
}

#changelist-filter select option {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
}

/* Select в модальных окнах админки */
.modal-content select.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #e6edf3 !important;
}

.modal-content select.form-control option {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ HERO
   ============================================================ */

/* Гарантия заполнения изображениями */
.hero-image-wrapper {
    display: block;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hero stats — прозрачный фон */
.hero-stats {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.stat-item {
    background: rgba(11, 11, 12, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Адаптация для мобильных */
@media (max-width: 1024px) {
    .hero-right,
    .hero-image-wrapper,
    .hero-image-wrapper img {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }

    .hero-image-wrapper {
        min-height: 45vh;
        height: 100%;
    }

    .hero-image-wrapper img {
        min-height: 45vh;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        min-height: 35vh;
    }
    .hero-image-wrapper img {
        min-height: 35vh;
    }
}

@media (max-width: 576px) {
    .hero-image-wrapper {
        min-height: 30vh;
    }
    .hero-image-wrapper img {
        min-height: 30vh;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        min-height: 25vh;
    }
    .hero-image-wrapper img {
        min-height: 25vh;
    }
}

@media (max-width: 360px) {
    .hero-image-wrapper {
        min-height: 20vh;
    }
    .hero-image-wrapper img {
        min-height: 20vh;
    }
}