/* ========================================================================
   MotoProspect — Дизайн-система
   Технологичный + байкерский: тёмная тема, оранжевый акцент, крупная типографика
   ======================================================================== */

:root {
    /* Фоны */
    --bg-primary: #0a0a0f;
    --bg-surface: #12131a;
    --bg-surface-2: #1a1c26;
    --bg-surface-hover: #22242f;

    /* Границы */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    /* Текст */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Акценты */
    --accent: #ff6b1a;
    --accent-hover: #ff8544;
    --accent-dim: rgba(255, 107, 26, 0.12);
    --accent-soft: rgba(255, 107, 26, 0.2);

    /* Семантика */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Скругления */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Тени */
    --shadow-glow: 0 0 40px rgba(255, 107, 26, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);

    /* Переходы */
    --t: 0.2s ease;
    --t-slow: 0.4s ease;
}

/* ===== База ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #fff; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-hover); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Типографика ===== */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); margin-top: 0; letter-spacing: -0.01em; }

.display-hero {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.95;
    font-size: clamp(2.5rem, 7vw, 6rem);
}

.display-section {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.05;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.text-accent { color: var(--accent) !important; }
.text-secondary-new { color: var(--text-secondary) !important; }
.text-muted-new { color: var(--text-muted) !important; }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    padding: 6px 12px;
    background: var(--accent-dim);
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    margin-bottom: 1rem;
}

/* ===== Кнопки ===== */
.btn-primary-new,
.btn-outline-new,
.btn-ghost-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary-new {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary-new:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-new {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-outline-new:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost-new {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost-new:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.btn-sm-new { padding: 10px 20px; font-size: 0.8125rem; }
.btn-lg-new { padding: 18px 36px; font-size: 0.9375rem; }

/* Иконочная кнопка */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--t);
    cursor: pointer;
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }

/* Переопределение Bootstrap для обратной совместимости */
.btn.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius) !important;
    transition: all var(--t);
}
.btn.btn-primary:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 107, 26, 0.3);
}

.btn.btn-secondary,
.btn.btn-outline-primary,
.btn.btn-outline-secondary,
.btn.btn-outline-light,
.btn.btn-outline-dark {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius) !important;
    transition: all var(--t);
}
.btn.btn-secondary:hover,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover,
.btn.btn-outline-light:hover,
.btn.btn-outline-dark:hover {
    background: var(--bg-surface-2) !important;
    border-color: var(--accent) !important;
    color: var(--text-primary) !important;
}

.btn.btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
}

.btn.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
}

.btn.btn-warning {
    background: var(--warning) !important;
    border-color: var(--warning) !important;
    color: #000 !important;
    border-radius: var(--radius) !important;
}

.btn.btn-info {
    background: var(--info) !important;
    border-color: var(--info) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
}

/* ===== Хедер (topbar + navbar) ===== */
.topbar {
    background: #050508;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); }

.navbar-new {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-new .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary) !important;
}
.navbar-new .navbar-brand .brand-accent { color: var(--accent); }
.navbar-new .navbar-brand .logo-mark {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent);
    border-radius: 10px;
    color: #fff;
}

.navbar-new .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 16px !important;
    transition: color var(--t);
    position: relative;
}
.navbar-new .nav-link:hover,
.navbar-new .nav-link.active {
    color: var(--text-primary) !important;
}
.navbar-new .nav-link.active::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.navbar-new .dropdown-menu {
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}
.navbar-new .dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9375rem;
}
.navbar-new .dropdown-item:hover,
.navbar-new .dropdown-item:focus {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}
.navbar-new .dropdown-divider { border-top: 1px solid var(--border); margin: 6px 0; }

.navbar-new .navbar-toggler { border-color: var(--border); padding: 6px 10px; }
.navbar-new .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23f4f4f5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
    padding: 80px 0 60px;
}
.hero-video,
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.65) 50%, rgba(10,10,15,0.45) 100%),
      linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.85) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.92;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin-bottom: 1.25rem;
    color: #fff;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 720px;
}
.hero-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ===== Секции ===== */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark { background: var(--bg-primary); }
.section-alt { background: var(--bg-surface); }
.section-accent-bg {
    background:
      linear-gradient(180deg, var(--bg-primary) 0%, #0f0d0a 100%);
    position: relative;
}

.section-header { text-align: center; max-width: 780px; margin: 0 auto 4rem; }
.section-header-left { text-align: left; max-width: 780px; margin: 0 0 4rem; }
.section-header p, .section-header-left p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-top: 1rem;
}

/* ===== Карточки ===== */
.card-new {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.card-new:hover {
    border-color: var(--accent-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-feature {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-feature:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.card-feature-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface-2);
}
.card-feature-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.card-feature:hover .card-feature-image img { transform: scale(1.06); }
.card-feature-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-feature-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.card-feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}
.card-feature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
}
.card-feature-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}
.card-feature-price small { color: var(--text-muted); font-size: 0.8125rem; margin-right: 4px; }

/* Карточка статистики (dashboard) */
.card-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--t);
}
.card-stat:hover { border-color: var(--accent-soft); }
.card-stat-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.card-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.card-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Карточка инструктора */
.card-instructor {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t);
    height: 100%;
}
.card-instructor:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.card-instructor-photo {
    aspect-ratio: 1;
    background: var(--bg-surface-2);
    overflow: hidden;
    position: relative;
}
.card-instructor-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.15);
    transition: filter var(--t), transform var(--t-slow);
}
.card-instructor:hover .card-instructor-photo img {
    filter: grayscale(0);
    transform: scale(1.04);
}
.card-instructor-body { padding: 1.25rem; }
.card-instructor-name {
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.card-instructor-meta { color: var(--text-muted); font-size: 0.875rem; }
.card-instructor-categories {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 10px;
}

/* ===== Бейджи ===== */
.badge-new {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface-2);
    color: var(--text-secondary);
    line-height: 1.4;
}
.badge-accent {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent-soft);
}
.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.3);
}
.badge-warning {
    background: rgba(234, 179, 8, 0.12);
    color: var(--warning);
    border-color: rgba(234, 179, 8, 0.3);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}
.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Переопределение Bootstrap бейджей */
.badge { border-radius: 999px !important; font-weight: 600; padding: 4px 10px; }
.badge.bg-primary { background: var(--accent-dim) !important; color: var(--accent) !important; }
.badge.bg-success { background: rgba(34, 197, 94, 0.18) !important; color: var(--success) !important; }
.badge.bg-warning { background: rgba(234, 179, 8, 0.18) !important; color: var(--warning) !important; }
.badge.bg-danger { background: rgba(239, 68, 68, 0.18) !important; color: var(--danger) !important; }
.badge.bg-info { background: rgba(59, 130, 246, 0.18) !important; color: var(--info) !important; }
.badge.bg-secondary { background: var(--bg-surface-hover) !important; color: var(--text-secondary) !important; }

/* ===== Timeline «Как проходит обучение» ===== */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--accent-soft) 15%,
      var(--accent-soft) 85%,
      transparent 100%);
    z-index: 0;
}
.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 0.5rem;
}
.timeline-number {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    margin-bottom: 1rem;
    display: block;
}
.timeline-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.75rem;
}
.timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1rem;
}
.timeline-desc { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; }

/* ===== Формы ===== */
.form-control-new,
.form-select-new {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    font-family: inherit;
}
.form-control-new::placeholder { color: var(--text-muted); }
.form-control-new:focus,
.form-select-new:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}

.form-label-new {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Bootstrap form controls override */
.form-control,
.form-select,
input.form-control,
textarea.form-control,
select.form-select {
    background-color: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 14px;
    transition: all var(--t);
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-control:focus,
.form-select:focus {
    background-color: var(--bg-surface) !important;
    border-color: var(--accent) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15) !important;
}
.form-label {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 6px;
}
.form-text { color: var(--text-muted) !important; font-size: 0.8125rem; }

.form-check-input {
    background-color: var(--bg-surface-2) !important;
    border-color: var(--border-strong) !important;
}
.form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}
.form-check-label { color: var(--text-secondary); }

.invalid-feedback { color: var(--danger) !important; }
.is-invalid { border-color: var(--danger) !important; }

/* Select2 / дропдауны стилизуем, если вдруг используются */
select option {
    background: var(--bg-surface-2);
    color: var(--text-primary);
}

/* ===== Таблицы ===== */
.table,
.table thead th,
.table tbody td,
.table tfoot td {
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}
.table {
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
}
.table thead th {
    background: var(--bg-surface-2) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.table tbody td {
    padding: 14px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.table tbody tr:hover td {
    background: var(--bg-surface-2) !important;
}
.table-striped tbody tr:nth-of-type(odd) td {
    background: var(--bg-surface) !important;
}
.table-striped tbody tr:nth-of-type(even) td {
    background: rgba(26, 28, 38, 0.5) !important;
}

/* ===== Alerts ===== */
.alert {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text-primary) !important;
    padding: 14px 18px;
}
.alert-success { border-left: 3px solid var(--success) !important; }
.alert-warning { border-left: 3px solid var(--warning) !important; }
.alert-danger, .alert-error { border-left: 3px solid var(--danger) !important; }
.alert-info { border-left: 3px solid var(--info) !important; }

/* ===== Footer ===== */
.footer-new {
    background: #050508;
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    margin-top: 80px;
    color: var(--text-secondary);
}
.footer-col h6 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a,
.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-primary);
}
.footer-social { display: flex; gap: 10px; margin-top: 1.25rem; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--t);
}
.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Sidebar (личный кабинет) ===== */
.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 80px);
    gap: 0;
}
/* backdrop вне grid-потока по умолчанию */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
}
.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}
.sidebar-header {
    padding: 0 0.5rem 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-user { overflow: hidden; }
.sidebar-username { font-weight: 600; font-size: 0.9375rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-role { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-section-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 1rem 0.5rem 0.5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--t);
    margin-bottom: 2px;
    text-decoration: none;
}
.sidebar-link i { font-size: 1.125rem; width: 20px; text-align: center; }
.sidebar-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}
.sidebar-link.active {
    background: var(--accent-dim);
    color: var(--accent);
}
.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
}

.dash-main {
    padding: 2rem 2.5rem;
    min-width: 0;
}
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.dash-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* Мобильный sidebar */
.sidebar-toggle {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

@media (max-width: 992px) {
    .dash-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 2000;
        transition: left var(--t);
    }
    .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1999;
    }
    .sidebar-backdrop.open { display: block; }
    .sidebar-toggle { display: inline-flex; align-items: center; gap: 6px; }
    .dash-main { padding: 1.5rem 1rem; }
}

/* ===== FullCalendar тёмная тема ===== */
.fc {
    --fc-border-color: var(--border);
    --fc-page-bg-color: var(--bg-surface);
    --fc-neutral-bg-color: var(--bg-surface-2);
    --fc-list-event-hover-bg-color: var(--bg-surface-hover);
    --fc-today-bg-color: rgba(255, 107, 26, 0.06);
    --fc-now-indicator-color: var(--accent);
    --fc-button-bg-color: var(--bg-surface-2);
    --fc-button-border-color: var(--border-strong);
    --fc-button-hover-bg-color: var(--bg-surface-hover);
    --fc-button-hover-border-color: var(--accent);
    --fc-button-active-bg-color: var(--accent);
    --fc-button-active-border-color: var(--accent);
    --fc-event-bg-color: var(--accent);
    --fc-event-border-color: var(--accent);
    --fc-event-text-color: #fff;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}
.fc .fc-toolbar-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-primary);
}
.fc .fc-button {
    text-transform: capitalize;
    font-weight: 600;
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem;
}
.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: var(--text-secondary);
    text-decoration: none;
}
.fc .fc-day-today .fc-daygrid-day-number { color: var(--accent); font-weight: 700; }
.fc-event {
    border: none !important;
    padding: 2px 6px !important;
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 4px !important;
}
.fc-event.status-scheduled { background: var(--accent) !important; color: #fff !important; }
.fc-event.status-completed { background: var(--success) !important; color: #fff !important; }
.fc-event.status-cancelled { background: var(--text-muted) !important; color: #fff !important; }
.fc-event.status-no_show { background: var(--danger) !important; color: #fff !important; }

/* ===== Общее ===== */
hr { border-color: var(--border); opacity: 1; }

.divider { border-top: 1px solid var(--border); margin: 3rem 0; }

.bg-surface { background: var(--bg-surface) !important; }
.bg-surface-2 { background: var(--bg-surface-2) !important; }
.border-soft { border: 1px solid var(--border) !important; }
.rounded-new { border-radius: var(--radius) !important; }
.rounded-lg-new { border-radius: var(--radius-lg) !important; }

/* Bootstrap dropdowns общие */
.dropdown-menu {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 6px !important;
    box-shadow: var(--shadow-lg) !important;
}
.dropdown-item {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-surface-hover) !important;
    color: var(--text-primary) !important;
}
.dropdown-divider { border-top: 1px solid var(--border) !important; }

/* Cards (Bootstrap) */
.card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text-primary);
}
.card-header {
    background: var(--bg-surface-2) !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}
.card-footer {
    background: var(--bg-surface-2) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-secondary);
}

/* Pagination */
.page-link {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}
.page-item.active .page-link {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.page-item.disabled .page-link {
    background: var(--bg-surface) !important;
    color: var(--text-muted) !important;
}

/* Modals */
.modal-content {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary);
}
.modal-header,
.modal-footer {
    border-color: var(--border) !important;
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Анимации */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-delay-1 { animation: fadeUp 0.6s ease 0.1s both; }
.fade-up-delay-2 { animation: fadeUp 0.6s ease 0.2s both; }
.fade-up-delay-3 { animation: fadeUp 0.6s ease 0.3s both; }

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
    .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
    .timeline::before { display: none; }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero { min-height: 70vh; padding: 60px 0 40px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .footer-new { padding: 60px 0 24px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .topbar .container { justify-content: center; font-size: 0.75rem; gap: 0.75rem; }
    .topbar .d-none-mobile { display: none; }
}
@media (max-width: 480px) {
    .timeline { grid-template-columns: 1fr; }
    .hero-cta .btn-primary-new,
    .hero-cta .btn-outline-new { width: 100%; }
}

/* ===== Утилиты ===== */
.text-uppercase-new { text-transform: uppercase; letter-spacing: 0.05em; }
.lead-new { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.6; }
.mb-section { margin-bottom: 4rem; }

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface-2);
    display: block;
    border: 1px solid var(--border);
    transition: all var(--t);
}
.gallery-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow), filter var(--t);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--t);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { color: #fff; font-weight: 600; }

.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.gallery-filter {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--t);
    cursor: pointer;
}
.gallery-filter:hover,
.gallery-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Auth split */
.auth-layout {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-visual {
    position: relative;
    overflow: hidden;
    background: #000;
}
.auth-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.9) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}
.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.auth-form {
    width: 100%;
    max-width: 440px;
}
@media (max-width: 992px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
}

/* Errorlist (Django form errors) */
ul.errorlist {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 0.8125rem;
}

/* Helper — прячет старый bg-dark стиль если где-то остался на .navbar-dark */
.navbar-dark.bg-dark { background: var(--bg-surface) !important; }

/* ===== Admin/dash компоненты ===== */

/* Панель — универсальный контейнер */
.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.panel-narrow {
    max-width: 720px;
    padding: 2rem 2.5rem;
}
.panel-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

/* Pill-фильтры (заменяют Bootstrap кнопки в filter-pills) */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--t);
    white-space: nowrap;
}
.pill:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.pill.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent-soft);
}

/* Чипы (бейджи нового стиля) */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.5;
}
.chip-accent  { background: rgba(255,107,26,.12); color: var(--accent); border-color: rgba(255,107,26,.25); }
.chip-success { background: rgba(34,197,94,.12);  color: #4ade80;      border-color: rgba(34,197,94,.25); }
.chip-warning { background: rgba(251,191,36,.12); color: #fbbf24;      border-color: rgba(251,191,36,.25); }
.chip-danger  { background: rgba(239,68,68,.12);  color: #f87171;      border-color: rgba(239,68,68,.25); }
.chip-info    { background: rgba(59,130,246,.12); color: #60a5fa;      border-color: rgba(59,130,246,.25); }
.chip-muted   { background: var(--bg-surface-2); color: var(--text-muted); border-color: var(--border); }

/* Статус-специфичные чипы для бронирований */
.chip-pending   { background: rgba(255,107,26,.12); color: var(--accent); border-color: rgba(255,107,26,.25); }
.chip-confirmed { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.25); }
.chip-completed { background: rgba(113,113,122,.15); color: var(--text-muted); border-color: var(--border); }
.chip-cancelled { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.25); }

/* Таблица нового стиля */
.table-wrap {
    overflow-x: auto;
    margin: -0.5rem;
    padding: 0.5rem;
}
.table-modern {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}
.table-modern thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: transparent;
    white-space: nowrap;
}
.table-modern tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    vertical-align: middle;
}
.table-modern tbody tr:hover td { background: var(--bg-surface-hover); }
.table-modern tbody tr:last-child td { border-bottom: 0; }
.table-modern code {
    background: var(--bg-surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--accent);
}
.table-modern .text-end { text-align: right; }

/* Иконочные кнопки в таблицах */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0.9375rem;
}
.btn-icon-danger:hover { color: #f87171 !important; border-color: #f87171 !important; }

/* Ghost-кнопка сокращённая (использовалась в админке) */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--t);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--bg-surface);
}

/* Формы */
.form-group .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.form-error {
    color: #f87171;
    font-size: 0.8125rem;
    margin-top: 6px;
}
.form-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 6px;
}

/* Gap утилиты (если Bootstrap не подхватывает в тёмной теме) */
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Detail-grid для страниц просмотра */
.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.detail-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    align-items: center;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row > span:first-child {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 640px) {
    .detail-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Info-banner (заменяет Bootstrap alert) */
.info-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
}
.info-banner i { color: var(--accent); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* Журнал / таймлайн лог */
.timeline-log {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.timeline-log li {
    padding: 12px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}
.timeline-log-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}
