/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* Colors */
    --color-primary: #D4AF37;       /* Золотой */
    --color-primary-light: #F1D279; /* Светлое золото */
    --color-charcoal: #0F1115;      /* Глубокий черный фон */
    --color-deep-ash: #1A1D23;      /* Темно-серый фон секций */
    --color-off-white: #F8F9FA;     /* Текст */
    --color-text-muted: rgba(248, 249, 250, 0.4);
    
    /* Fonts */
    --font-display: 'Syncopate', sans-serif; /* Для заголовков */
    --font-body: 'Inter', sans-serif;        /* Для текста */

    /* Layout & Animation */
    --container-width: 1440px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-charcoal);
    color: var(--color-off-white);
    font-family: var(--font-body);
    overflow-x: hidden; /* Предотвращает горизонтальный скролл */
    line-height: 1.6;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================================
   3. ICON FONT DEFINITION (CRITICAL FIX)
   ========================================= */
/* Этот класс обязателен для отображения иконок Google Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

/* =========================================
   4. UTILITIES & VISIBILITY
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem; /* Отступы для мобилок */
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem; /* Отступы для десктопа */
    }
}

/* Typography Helpers */
.text-gold {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-primary { color: var(--color-primary); }
.bg-charcoal { background-color: var(--color-charcoal); }
.bg-deep-ash { background-color: var(--color-deep-ash); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
}

.title-underline {
    height: 4px;
    width: 8rem;
    background-color: var(--color-primary);
    margin-top: 1rem;
}

/* VISIBILITY LOGIC (MOBILE FIRST) */
/* По умолчанию (мобильные): десктоп скрыт, мобильный показан */
.desktop-only { display: none !important; }
.mobile-only { display: block !important; }

/* Для планшетов и ПК (шире 768px) */
@media (min-width: 768px) {
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
    
    /* Если элементу нужен flex, добавляем спец класс */
    .desktop-only.flex { display: flex !important; }
}

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
    padding: 0.75rem 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

.btn-outline {
    border: 1px solid rgba(212,175,55,0.4);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: #000;
}

.btn-glass {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
}
.btn-glass:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-text {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.btn-text span { transition: transform 0.3s; }
.btn-text:hover span { transform: translateX(5px); }

/* =========================================
   6. NAVIGATION BAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-logo { font-size: 2rem; color: var(--color-primary); }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display); }

.nav-links {
    display: flex;
    gap: 3rem;
}
.nav-links a {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-right: 20px;
}
.nav-links a:hover { color: var(--color-primary); }

.nav-actions {
    display: flex;
    align-items: center;
}

/* HAMBURGER BUTTON (Mobile Only via Utilities) */
.hamburger {
    padding: 0.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    font-size: 2rem; /* Размер иконки */
}

/* =========================================
   7. MOBILE MENU OVERLAY
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px; /* На больших телефонах не во всю ширину */
    background-color: var(--color-charcoal);
    z-index: 200; /* Поверх хедера */
    padding: 2rem;
    
    /* Анимация скрытия */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0); /* Показать */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.mobile-menu-header button {
    color: var(--color-primary);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mobile-links a {
    font-size: 1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
}
.mobile-links a:hover { color: var(--color-primary); }

/* =========================================
   8. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Градиенты для читаемости текста */
.overlay-gradient-r {
    position: absolute; inset: 0; z-index: 10;
    background: linear-gradient(to right, var(--color-charcoal), rgba(15,17,21,0.7), transparent);
}
.overlay-gradient-t {
    position: absolute; inset: 0; z-index: 10;
    background: linear-gradient(to top, var(--color-charcoal), transparent, rgba(15,17,21,0.3));
}

.hero-content {
    position: relative;
    z-index: 20;
    padding-top: 2rem;
}

.hero-inner {
    max-width: 800px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-label .line {
    width: 3rem;
    height: 1px;
    background-color: var(--color-primary);
}
.hero-label span {
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.hero-title {
    font-size: 2.5rem; /* Мобильный размер */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}
@media (min-width: 768px) { .hero-title { font-size: 5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 7rem; } }

.hero-desc {
    font-size: 1rem;
    color: rgba(248, 249, 250, 0.8);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(212,175,55,0.3);
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Вертикально на мобилках */
    gap: 1rem;
}
@media (min-width: 480px) {
    .hero-buttons { flex-direction: row; gap: 2rem; }
}

/* =========================================
   9. MODELS SECTION
   ========================================= */
.section {
    padding: 6rem 0;
}
@media (min-width: 768px) { .section { padding: 10rem 0; } }

.section-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
}
@media (min-width: 768px) {
    .section-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
@media (min-width: 768px) { .section-title { font-size: 3.5rem; } }

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: right;
}

.models-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}
@media (min-width: 768px) { .models-wrapper { gap: 10rem; } }

/* Grid for Models */
.model-row {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобилках */
    gap: 3rem;
    align-items: center;
}

/* Порядок элементов: Картинка всегда сверху на мобилках */
.model-row .model-image-col { order: 1; }
.model-row .model-info-col { order: 2; }

@media (min-width: 900px) {
    .model-row { grid-template-columns: 1.2fr 1fr; gap: 6rem; }
    
    /* Чередование на десктопе */
    .model-row.reverse { grid-template-columns: 1fr 1.2fr; }
    .model-row.reverse .model-info-col { order: 1; }
    .model-row.reverse .model-image-col { order: 2; }
}

.model-image-col { position: relative; }

/* Фоновые цифры */
.bg-number {
    position: absolute;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    font-family: var(--font-display);
    user-select: none;
    z-index: 0;
}
@media (min-width: 768px) { .bg-number { font-size: 12rem; } }
.bg-number.left { top: -3rem; left: -1rem; }
.bg-number.right { top: -3rem; right: -1rem; }

.model-img {
    position: relative;
    z-index: 10;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Анимация парения */
.floating {
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5));
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}
.floating:hover {
    transform: translateY(-20px) scale(1.02);
}

.glass-badge {
    position: absolute;
    bottom: 2rem; left: 2rem;
    background: rgba(26, 29, 35, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    max-width: 250px;
    z-index: 20;
    display: none; /* Скрыто на мобилках */
}
@media (min-width: 768px) { .glass-badge { display: block; } }

.badge-title {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.badge-desc {
    font-size: 0.8rem;
    color: rgba(248,249,250,0.7);
}

.model-tag {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .model-name { font-size: 4rem; } }

.model-desc {
    color: rgba(248,249,250,0.6);
    margin-bottom: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.spec-item {
    border-left: 1px solid rgba(212,175,55,0.3);
    padding-left: 1rem;
}
.spec-label {
    font-size: 0.7rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.spec-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* =========================================
   10. DELIVERY & TIMELINE
   ========================================= */
.border-y {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.center-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.delivery-timeline { position: relative; }

.timeline-line {
    position: absolute;
    top: 3rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary) 20%, var(--color-primary) 80%, transparent);
    opacity: 0.2;
    z-index: 0;
    display: none;
}
@media (min-width: 900px) { .timeline-line { display: block; } }

.timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}
@media (min-width: 600px) { .timeline-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .timeline-grid { grid-template-columns: repeat(4, 1fr); } }

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon-box {
    width: 6rem; height: 6rem;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.2);
    background-color: var(--color-charcoal);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s;
}
.timeline-step:hover .step-icon-box {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(212,175,55,0.2);
}

.step-icon { font-size: 2.5rem; color: var(--color-primary); }

.step-badge {
    position: absolute;
    top: 0; right: 0;
    width: 1.8rem; height: 1.8rem;
    background-color: var(--color-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}
.step-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =========================================
   11. FEATURES & SERVICE
   ========================================= */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 1024px) { .features-wrapper { grid-template-columns: 1fr 1fr; gap: 8rem; } }

.features-left { margin-bottom: 2rem; }
.mb-large { margin-bottom: 3rem; }

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item { display: flex; gap: 1.5rem; }

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.feature-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}
.feature-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.features-right { position: relative; }

.gold-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.glass-card {
    position: relative;
    z-index: 10;
    background: rgba(26, 29, 35, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2rem;
}
@media (min-width: 768px) { .glass-card { padding: 4rem; } }

.watermark {
    position: absolute;
    top: -1.5rem; right: -1rem;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(212,175,55,0.05);
    font-family: var(--font-display);
    user-select: none;
    pointer-events: none;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.service-list {
    display: flex; flex-direction: column; gap: 1rem;
    color: rgba(248,249,250,0.7);
    font-size: 0.9rem;
}
.service-list li { display: flex; align-items: center; gap: 1rem; }

.dot {
    width: 6px; height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.full-width { width: 100%; margin-top: 2rem; text-align: center; }

/* =========================================
   12. FOOTER
   ========================================= */
.footer {
    background-color: #000;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
}

.mb-mid { margin-bottom: 1.5rem; }

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 350px;
}
.sm-text { font-size: 0.8rem; }

.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: var(--color-primary); transition: color 0.3s; }
.social-links a:hover { color: #fff; }

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.85rem; color: rgba(248,249,250,0.6); }
.footer-links a:hover { color: var(--color-primary); }

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.newsletter-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.newsletter-btn {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(248,249,250,0.3);
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.legal-links { display: flex; gap: 1.5rem; }
.legal-links a:hover { color: var(--color-primary); }


/* Мобилка */
@media (min-width: 0px) and (max-width: 900px) {
    .section-header {margin-bottom: 2rem;}
    .section {padding: 70px 0;}
    .model-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .center-header {margin-bottom: 2rem;}
    .footer-links {gap: 0px;}
    .footer-heading {margin-bottom: 10px;}
    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}