/* =========================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ (ТРЕНДЫ 2026)
   ========================================= */
   :root {
    --bg-dark: #09090b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Цвета бренда География (адаптированные под темную тему) */
    --brand-blue: #0055a5; 
    --brand-yellow: #ffcc00;
    
    /* Акценты для ИИ */
    --primary: #3b82f6; 
    --secondary: #06b6d4; 
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --terminal-green: #4ade80;
    --glass-blur: blur(16px);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.1), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* Анимации */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

/* =========================================
   ШАПКА
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}
.logo-icon { font-size: 24px; }
.header-info {
    display: flex;
    align-items: center;
    gap: 25px;
}
.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--terminal-green);
}
.status-dot {
    width: 8px; height: 8px;
    background: var(--terminal-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--terminal-green);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.phone { font-weight: 600; font-size: 16px; transition: color 0.2s; }
.phone:hover { color: var(--brand-yellow); }
.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }

/* =========================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 160px 5% 60px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
}
.hero h1 span {
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 40px;
}

/* Поиск */
.search-container { width: 100%; max-width: 900px; }
.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}
.search-box:focus-within { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 30px rgba(59, 130, 246, 0.1); }
.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    padding: 15px 20px;
    outline: none;
    font-family: var(--font-family);
}
.search-box input::placeholder { color: #52525b; }
.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    padding: 15px 30px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.search-box button:hover { opacity: 0.9; transform: scale(1.02); }
.search-box button:disabled { opacity: 0.5; cursor: wait; }

.quick-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.tag:hover { background: rgba(59, 130, 246, 0.2); border-color: var(--primary); color: white; transform: translateY(-2px); }

/* =========================================
   ТЕРМИНАЛ ИИ
   ========================================= */
.terminal-container { max-width: 900px; margin: 30px auto; padding: 0 5%; display: none; }
.terminal-window {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.1);
    font-family: var(--font-mono);
}
.terminal-header {
    background: #18181b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #eab308; }
.term-dot.green { background: #22c55e; }
.term-title { margin-left: 10px; font-size: 12px; color: #52525b; }
.terminal-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--terminal-green);
    white-space: pre-wrap;
    min-height: 150px;
}
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--terminal-green); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* =========================================
   КАРТОЧКИ ТУРОВ
   ========================================= */
.results-section { padding: 40px 5% 80px; max-width: 1200px; margin: 0 auto; display: none; }
.section-title { font-size: 22px; font-weight: 600; margin-bottom: 30px; font-family: var(--font-mono); color: var(--text-muted); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

.tour-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.tour-card:hover { transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.badge {
    position: absolute; top: 20px; right: 20px;
    padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 600;
    background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge.hit { background: rgba(234, 179, 8, 0.2); color: #fde047; border-color: rgba(234, 179, 8, 0.3); }
.card-img { height: 160px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1)); border-radius: 16px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.tour-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tour-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 15px; font-family: var(--font-mono); }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.price-block { display: flex; flex-direction: column; }
.price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.price-new { font-size: 24px; font-weight: 800; color: white; }
.btn-book {
    background: rgba(255, 255, 255, 0.1); color: white; padding: 12px 20px;
    border-radius: 12px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.tour-card:hover .btn-book { background: var(--primary); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }

/* =========================================
   ПРЕИМУЩЕСТВА И ПОДВАЛ
   ========================================= */
.features-section {
    padding: 80px 5%; max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
    border-top: 1px solid var(--border-color);
}
.feature-card { text-align: left; padding: 30px; background: rgba(255, 255, 255, 0.02); border-radius: 24px; border: 1px solid var(--border-color); }
.feature-icon { font-size: 40px; margin-bottom: 20px; display: inline-block; }
.feature-card h3 { margin-bottom: 15px; font-size: 20px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

.footer { padding: 40px 5%; border-top: 1px solid var(--border-color); background: #050505; }
.footer-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: var(--text-muted); font-size: 14px; }
.footer-logo { font-weight: 800; font-size: 20px; color: white; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: white; }

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================= */
@media (max-width: 768px) {
    .header-info .header-status { display: none; }
    .header-info .phone { display: none; }
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 32px; }
    .search-box { flex-direction: column; padding: 15px; border-radius: 20px; }
    .search-box input { width: 100%; text-align: center; padding: 10px; }
    .search-box button { width: 100%; justify-content: center; padding: 15px; }
    .terminal-body { font-size: 13px; padding: 15px; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 10px; }
}