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

/* ===== ПЕРЕМЕННЫЕ ТЕМ ===== */
:root {
    /* Фоны */
    --bg: #ffffff;           /* основной фон страницы */
    --bg-alt: #f5f1ea;       /* тёплый бежевый — для hero, кнопок и плашек */
    --bg-alt-2: #fafafa;     /* очень светлый фон (input background) */
    --bg-alt-3: #f0f0f0;     /* чуть темнее alt-2 */
    --card-bg: #ffffff;      /* карточки */
    --input-bg: #fafafa;     /* поля ввода */

    /* Текст */
    --ink: #0a0a0a;          /* основной текст */
    --ink-2: #333333;        /* вторичный текст */
    --muted: #8a8a8a;        /* приглушённый текст */
    --muted-2: #bbbbbb;      /* ещё более приглушённый */

    /* Линии */
    --line: #e5e5e5;         /* границы */
    --line-2: #f0f0f0;       /* светлее границы */

    /* Акценты */
    --accent: #0a0a0a;       /* главная кнопка (тёмная в светлой теме, светлая в тёмной) */
    --accent-text: #ffffff;  /* текст на акцентной кнопке */
    --accent-hover: #333333;

    /* "Всегда тёмная" панель — остаётся тёмной в обеих темах для визуального акцента.
       Например: чёрная панель с кнопкой "Забронировать" на странице мотоцикла,
       кнопка в шапке каталога, CTA-блок внизу страницы контактов.
       Текст на ней всегда светлый. */
    --panel-dark: #0a0a0a;
    --panel-dark-hover: #2a2a2a;
    --panel-dark-text: #ffffff;

    /* Статусы (немного меняются в тёмной теме) */
    --green: #16a34a;
    --green-bg: #dcfce7;
    --green-text: #065f46;
    --green-border: #86efac;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --red-text: #991b1b;
    --red-border: #fca5a5;
    --yellow-bg: #fffbeb;
    --yellow-text: #78350f;
    --yellow-border: #fcd34d;
    --orange: #d97706;

    /* Тени и оверлеи */
    --shadow: rgba(0,0,0,0.08);
    --shadow-strong: rgba(0,0,0,0.15);
    --overlay: rgba(0,0,0,0.6);

    /* Футер (в обеих темах футер тёмный) */
    --footer-bg: #0a0a0a;
    --footer-text: #aaaaaa;
    --footer-heading: #ffffff;
}

/* Тёмная тема применяется через атрибут data-theme="dark" на html */
[data-theme="dark"] {
    /* Фоны */
    --bg: #0f0f10;
    --bg-alt: #1a1a1d;
    --bg-alt-2: #1f1f22;
    --bg-alt-3: #26262a;
    --card-bg: #18181b;
    --input-bg: #1f1f22;

    /* Текст */
    --ink: #f5f5f5;
    --ink-2: #d5d5d5;
    --muted: #909090;
    --muted-2: #666666;

    /* Линии */
    --line: #2a2a2e;
    --line-2: #232327;

    /* Акцент — инвертируется: в тёмной теме кнопка становится белой */
    --accent: #f5f5f5;
    --accent-text: #0a0a0a;
    --accent-hover: #e0e0e0;

    /* Тёмная панель в тёмной теме чуть светлее фона, чтобы читалась */
    --panel-dark: #2a2a2e;
    --panel-dark-hover: #3a3a3e;
    --panel-dark-text: #f5f5f5;

    /* Статусы — приглушены для тёмного фона */
    --green: #22c55e;
    --green-bg: #0c2a1a;
    --green-text: #86efac;
    --green-border: #14532d;
    --red: #f87171;
    --red-bg: #2a1216;
    --red-text: #fca5a5;
    --red-border: #5c1a1a;
    --yellow-bg: #2a2010;
    --yellow-text: #fcd34d;
    --yellow-border: #5c3a13;
    --orange: #fb923c;

    /* Тени — сильнее, оверлей — плотнее */
    --shadow: rgba(0,0,0,0.4);
    --shadow-strong: rgba(0,0,0,0.7);
    --overlay: rgba(0,0,0,0.8);

    /* Футер становится ещё темнее фона */
    --footer-bg: #050505;
    --footer-text: #999999;
    --footer-heading: #e5e5e5;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logo span { color: var(--muted); font-weight: 400; }

/* Меню — горизонтальное на десктопе, выпадающее на мобилке (см. media query) */
.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover { color: var(--muted); }

.header-phone {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone::before {
    content: '';
    width: 8px; height: 8px;
    background: #1ec55f;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(30,197,95,0.2);
}


/* ===== HERO — КОМПАКТНЫЙ ===== */
.hero {
    background: var(--bg-alt);
    padding: 50px 40px 40px;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 15px;
    color: var(--ink-2);
    opacity: 0.75;
    max-width: 520px;
    line-height: 1.5;
}

/* Галочки-таблетки справа */
.hero-perks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.perk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    padding: 8px 14px;
    background: var(--card-bg);
    border-radius: 100px;
    border: 1px solid var(--line);
}

.perk-ic {
    width: 18px;
    height: 18px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Адаптив HERO */
@media (max-width: 900px) {
    .hero { padding: 32px 20px; }
    .hero-top {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .hero-perks { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .hero-title { font-size: 26px; }
    .perk { font-size: 12px; padding: 6px 12px; }
}


/* ===== CATALOG ===== */
.catalog { padding: 48px 40px 80px; }

.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.catalog-count {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.catalog-count span {
    color: var(--muted);
    font-weight: 400;
    margin-left: 8px;
}

/* ===== BIKES GRID ===== */
.bikes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bike-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}

.bike-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}

.bike-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ededed 0%, #dcdcdc 100%);
    overflow: hidden;
}

.bike-media svg.bike-img {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: auto;
    transition: transform 0.3s;
}

.bike-card:hover .bike-media svg.bike-img {
    transform: translateX(-48%) scale(1.04);
}

.bike-tag {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bike-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.bike-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.bike-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.bike-specs-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-val { font-size: 14px; font-weight: 700; }

.spec-key {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bike-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.bike-price-val {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bike-price-val .from {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-right: 4px;
}

.bike-price-per {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.book-btn {
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    padding: 11px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.bike-card:hover .book-btn {
    background: var(--panel-dark-hover);
}

/* ===== BIKE DETAIL ===== */
.bike-detail { padding: 32px 40px 80px; overflow: hidden; }

.back-link {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 24px;
}

.back-link:hover { color: var(--ink); }

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ededed 0%, #dcdcdc 100%);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.detail-img {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: auto;
}

.detail-brand {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-name {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-top: 6px;
}

.detail-meta {
    font-size: 15px;
    color: var(--muted);
    margin-top: 8px;
}

.detail-desc {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-spec {
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: 10px;
}

.ds-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.ds-val {
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}

/* ===== BOOKING PANEL ===== */
.booking-panel {
    margin-top: 28px;
    padding: 28px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 16px;
}

.booking-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.booking-price .from {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.booking-price .amount {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.booking-price .per {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.booking-deposit {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-field label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-field input,
.booking-field textarea {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.booking-field textarea {
    resize: vertical;
    min-height: 60px;
}

.booking-field input:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.booking-calc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 14px;
}

.booking-calc strong {
    font-size: 18px;
    font-weight: 800;
}

.book-cta {
    width: 100%;
    background: var(--card-bg);
    color: var(--ink);
    padding: 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
    transition: all 0.2s;
}

.book-cta:hover { background: var(--bg-alt-3); }

.book-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 6px;
}

/* ===== FLASH (ошибки) ===== */
.flash {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.flash-success { background: var(--green-bg); color: var(--green-text); }
.flash-error { background: var(--red-bg); color: var(--red-text); }

/* ===== SUCCESS PAGE ===== */
.success-page {
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
}

.success-box {
    max-width: 540px;
    width: 100%;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green-bg);
    color: var(--green);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
}

.success-box h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.success-lead {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 32px;
}

.success-details {
    background: var(--bg-alt);
    border-radius: 14px;
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 28px;
}

.success-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.success-row:last-child { border-bottom: none; }

.success-label { color: var(--muted); }
.success-val { font-weight: 600; }

.success-row.total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid var(--ink);
    border-bottom: none;
    font-size: 17px;
}

.success-row.total .success-val { font-weight: 800; }

.success-contact { margin-bottom: 24px; color: var(--muted); }

.success-phone {
    display: inline-block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.success-back {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.success-back:hover { color: var(--ink); }

/* ===== FOOTER ===== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 40px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-brand-logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    max-width: 340px;
    line-height: 1.5;
}

.footer-col h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.footer-col a:hover { color: var(--footer-heading); }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .bikes-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-media { position: static; }
}

@media (max-width: 640px) {
    .header-inner { padding: 14px 20px; }
    .hero { padding: 32px 20px 20px; }
    .hero-top { grid-template-columns: 1fr; }
    .hero-sub { text-align: left; }
    .catalog, .bike-detail { padding-left: 20px; padding-right: 20px; }
    .bikes-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .detail-specs { grid-template-columns: 1fr; }
    .booking-dates { grid-template-columns: 1fr; }
    .booking-panel { padding: 20px; }
}
/*
ДОБАВИТЬ В КОНЕЦ static/css/style.css
Стили для реальных фотографий мотоциклов
*/

/* Фото в карточке на главной */
.bike-media .bike-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bike-card:hover .bike-media .bike-photo {
    transform: scale(1.04);
}

/* Фото на странице мотоцикла */
.detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ЗАНЯТЫЕ ДАТЫ НА СТРАНИЦЕ МОТОЦИКЛА ===== */
.busy-periods {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--yellow-bg);
    border: 1px solid #fdba74;
    border-radius: 10px;
}
.busy-periods h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    margin-bottom: 10px;
}
.busy-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.busy-badge {
    display: inline-block;
    padding: 6px 10px;
    background: var(--card-bg);
    border: 1px solid #fdba74;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--yellow-text);
}

/* ===== СТАТУС ПРОВЕРКИ ДАТ ===== */
.date-status {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    min-height: 20px;
    margin-top: -4px;
}
.date-status:empty { display: none; }
.date-status.checking {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}
.date-status.available {
    background: rgba(22,163,74,0.15);
    color: var(--green-text);
    border: 1px solid rgba(34,197,94,0.3);
}
.date-status.unavailable {
    background: rgba(220,38,38,0.15);
    color: var(--red-text);
    border: 1px solid rgba(220,38,38,0.3);
}

/* Отключённая кнопка */
.book-cta:disabled {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
}
.book-cta:disabled:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== ФИЛЬТРЫ НА ГЛАВНОЙ ===== */
.filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: flex-end;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin: 0;
    box-shadow: 0 8px 30px rgba(26,22,18,0.06);
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-item input,
.filter-item select {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: var(--ink);
}

.filter-submit {
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    height: 42px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.filter-submit:hover { background: var(--panel-dark-hover); }

.filter-reset {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
}

.filter-reset:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.no-bikes {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-alt);
    border-radius: 16px;
}

.no-bikes-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-bikes h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.no-bikes p {
    color: var(--muted);
    margin-bottom: 20px;
}

.filter-reset-btn {
    display: inline-block;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* RESPONSIVE для фильтров */
@media (max-width: 900px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .filter-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 500px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

/* ===== ИНДИКАТОР ДОСТУПНОСТИ НА КАРТОЧКЕ ===== */
.status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.bike-card { position: relative; }
.bike-media { position: relative; }

.status-badge.status-available {
    background: rgba(22, 163, 74, 0.95);
    color: #fff;
}

.status-badge.status-busy {
    background: rgba(217, 119, 6, 0.95);
    color: #fff;
}

/* Значок кол-ва фото */
.photo-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Ссылки в карточке — медиа и имя */
.bike-media-link,
.bike-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bike-media-link { overflow: hidden; }

.bike-link:hover .bike-name { color: var(--muted); }

.book-btn { cursor: pointer; border: none; font-family: inherit; }
.book-btn:hover { background: var(--panel-dark-hover); }

/* ===== ГАЛЕРЕЯ НА СТРАНИЦЕ МОТОЦИКЛА ===== */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ededed 0%, #dcdcdc 100%);
    border-radius: 20px;
    overflow: hidden;
}

.gallery-main .detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    transition: all 0.15s;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb:hover { opacity: 0.85; }

.thumb.active {
    border-color: var(--ink);
    transform: scale(1.03);
}

/* ===== КОМПАКТНАЯ ПАНЕЛЬ БРОНИ НА СТРАНИЦЕ МОТОЦИКЛА ===== */
.booking-panel-compact {
    margin-top: 28px;
    padding: 24px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 16px;
}

.booking-panel-compact .booking-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.booking-panel-compact .booking-price .from {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.booking-panel-compact .booking-price .amount {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.booking-panel-compact .booking-price .per {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.booking-panel-compact .booking-deposit {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    margin-bottom: 18px;
}

.book-cta {
    display: inline-block;
    width: 100%;
    background: var(--card-bg);
    color: var(--ink);
    padding: 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.book-cta:hover { background: var(--bg-alt-3); }

.book-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 10px;
}

/* ===== МОДАЛЬНОЕ ОКНО БРОНИРОВАНИЯ ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    overflow-y: auto;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.25s;
}

.modal-overlay.is-open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    border: none;
    transition: background 0.15s;
    z-index: 2;
}

.modal-close:hover { background: rgba(0,0,0,0.1); }

.modal-header {
    padding: 24px 28px;
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.modal-bike-photo {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-alt-3);
    flex-shrink: 0;
}

.modal-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 4px;
}

.modal-price {
    font-size: 13px;
    color: var(--muted);
}

.modal-section {
    padding: 20px 28px;
    border-bottom: 1px solid var(--line-2);
}

.modal-section:last-of-type { border-bottom: none; }

.modal-section h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-field:last-child { margin-bottom: 0; }

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.form-field .req { color: var(--red, #dc2626); }

.form-field input,
.form-field textarea {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-alt-2);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--card-bg);
}

.form-field textarea {
    resize: vertical;
    min-height: 60px;
}

/* Статус проверки дат */
.date-status {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    margin: 4px 0;
}

.date-status:empty { display: none; }
.date-status.checking { background: var(--bg-alt); color: var(--muted); }
.date-status.available { background: var(--green-bg); color: var(--green-text); border: 1px solid var(--green-border); }
.date-status.unavailable { background: var(--red-bg); color: var(--red-text); border: 1px solid var(--red-border); }

/* Расчёт в модалке */
.booking-calc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: 10px;
    font-size: 13px;
    margin: 4px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.calc-breakdown {
    font-size: 12px;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
    display: block;
    line-height: 1.4;
}

.calc-total-line {
    font-weight: 600;
}

.calc-total-line strong {
    font-size: 16px;
    font-weight: 800;
}

.calc-pay-now {
    padding-top: 4px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

.calc-pay-now span {
    color: var(--muted);
    font-size: 12px;
}

.calc-pay-now strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--orange);
}

.booking-calc strong {
    font-size: 16px;
    font-weight: 800;
}

/* Блок про оплату брони */
.booking-fee-note {
    padding: 12px 14px;
    background: var(--yellow-bg);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    font-size: 13px;
    color: var(--yellow-text);
    line-height: 1.5;
    margin-top: 10px;
}

.booking-fee-note strong { display: block; margin-bottom: 4px; font-size: 14px; }

.modal-footer {
    padding: 20px 28px;
    background: var(--bg-alt-2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 16px 16px;
    position: sticky;
    bottom: 0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--panel-dark);
    color: var(--panel-dark-text);
}

.btn-primary:hover { background: var(--panel-dark-hover); }

.btn-primary:disabled {
    background: var(--muted-2);
    cursor: not-allowed;
    color: var(--panel-dark-text);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-secondary:hover { background: var(--bg-alt-3); }

/* ===== WARN-BOX НА СТРАНИЦЕ УСПЕХА ===== */
.warn-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: var(--yellow-bg);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
}

.warn-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warn-box strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--yellow-text);
}

.warn-box p {
    font-size: 13px;
    color: var(--yellow-text);
    line-height: 1.5;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal {
        max-height: 92vh;
        height: auto;
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-header { padding: 20px; }
    .modal-section { padding: 16px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }
    .modal-footer button { width: 100%; }
    .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

/* ===== СТАТУС ПРОВЕРКИ ТЕЛЕФОНА В МОДАЛКЕ ===== */
.phone-status {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.4;
}

.phone-status:empty { display: none; }

.phone-status.blacklisted {
    padding: 8px 10px;
    background: var(--red-bg);
    color: var(--red-text);
    border: 1px solid var(--red-border);
    border-radius: 6px;
    font-weight: 600;
}

.phone-status.known {
    color: var(--green-text);
    font-weight: 600;
}

/* ===== ШАПКА: ДЕЙСТВИЯ СПРАВА ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt, #f5f5f5);
    color: var(--ink);
    border-radius: 50%;
    transition: all 0.2s;
    text-decoration: none;
}

.header-social:hover {
    background: #229ED9;
    color: #fff;
    transform: translateY(-1px);
}

/* Бургер — только на мобилке */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Футер: ссылка Telegram */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.footer-social:hover {
    background: #229ED9;
    color: #fff;
}

/* ===== БЛОК "УСЛУГИ" НА ГЛАВНОЙ ===== */
.services {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 32px;
}

.services-head {
    margin-bottom: 28px;
}

.services-head h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.services-head p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s, transform 0.15s;
}

.service-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 32px;
    line-height: 1;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.service-card p {
    font-size: 14px;
    color: var(--ink-2, #444);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.service-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line-2);
}

.service-price {
    font-size: 16px;
    font-weight: 700;
}

.service-btn {
    padding: 10px 20px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.service-btn:hover { background: var(--panel-dark-hover); }

/* ===== СТРАНИЦА МОТОЦИКЛА: ПЛАШКА СТАТУСА СВЕРХУ ===== */
.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-header-row .back-link {
    margin-bottom: 0;
}

.detail-status-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    flex-shrink: 0;
}

.detail-status-banner.available {
    background: var(--green-bg);
    color: var(--green-text);
    border: 1px solid var(--green-border);
}

.detail-status-banner.busy {
    background: var(--yellow-bg);
    color: var(--yellow-text);
    border: 1px solid #fcd34d;
}

.detail-status-banner .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.detail-status-banner.available .status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.detail-status-banner.busy .status-dot {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.detail-status-banner strong {
    font-size: 13px;
    font-weight: 700;
}

/* Подтекст спрячем на десктопе (плашка компактная), покажем на мобилке */
.detail-status-banner .status-sub {
    display: none;
    font-size: 12px;
    opacity: 0.8;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contacts-page {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 32px;
}

.contacts-head {
    margin-bottom: 32px;
}

.contacts-head h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.contacts-head p {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    margin-bottom: 60px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contacts-block {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.contacts-block h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 10px;
}

.contacts-address {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.contacts-directions {
    font-size: 14px;
    color: var(--ink-2, #555);
    line-height: 1.55;
}

.contacts-phone {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.contacts-phone:hover { color: var(--ink-2); }

.contacts-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #229ED9;
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.contacts-telegram:hover { background: #1a85b8; }

.contacts-map {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-alt-3);
    min-height: 400px;
    position: relative;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

.map-placeholder {
    padding: 40px 28px;
    text-align: center;
    color: var(--muted);
}

.map-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.map-placeholder h3 {
    font-size: 18px;
    color: var(--ink);
    margin: 0 0 8px;
}

.map-placeholder ol {
    text-align: left;
    max-width: 340px;
    margin: 18px auto 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.7;
}

.map-placeholder a {
    color: var(--ink);
    text-decoration: underline;
}

/* CTA внизу страницы контактов */
.contacts-cta {
    padding: 40px 32px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 20px;
    text-align: center;
}

.contacts-cta h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.contacts-cta p {
    font-size: 15px;
    opacity: 0.7;
    margin: 0 0 22px;
}

.contacts-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contacts-cta-btn {
    padding: 13px 28px;
    background: var(--card-bg);
    color: var(--ink);
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s;
}

.contacts-cta-btn:hover { transform: translateY(-1px); }

.contacts-cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.contacts-cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 900px) {
    /* Шапка — позиция для абсолютного меню */
    header { position: relative; }
    .header-inner { padding: 14px 20px; }

    /* Меню прячем, показываем бургер */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 20px;
        box-shadow: 0 10px 40px var(--shadow);
        z-index: 50;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line-2);
    }
    .nav-links a:last-child { border-bottom: none; }

    .nav-burger { display: flex; }

    /* Шапка: телефон чуть меньше */
    .header-phone {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* Сервисы в одну колонку */
    .services-grid { grid-template-columns: 1fr; }
    .services { padding: 0 20px; }
    .services-head h2 { font-size: 26px; }

    /* Контакты в одну колонку */
    .contacts-layout { grid-template-columns: 1fr; gap: 20px; }
    .contacts-page { padding: 0 20px; margin: 20px auto 40px; }
    .contacts-head h1 { font-size: 28px; }
    .contacts-map { min-height: 300px; }
    .contacts-map iframe { min-height: 300px; }

    /* Страница мотоцикла */
    .detail-layout { grid-template-columns: 1fr !important; gap: 20px; }
    .bike-detail { padding: 24px 20px; }
    .detail-name { font-size: 26px !important; }
    .detail-specs { grid-template-columns: repeat(2, 1fr) !important; }

    .detail-status-banner {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        flex-wrap: wrap;
    }
    .detail-status-banner strong { font-size: 14px; }
    .detail-status-banner .status-sub {
        display: block;
        width: 100%;
        margin-left: 18px;
        font-size: 11px;
    }

    /* Галерея */
    .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .gallery-main { border-radius: 14px; }
}

@media (max-width: 600px) {
    /* На маленьких — телефон становится круглой кнопкой с SVG-иконкой */
    .header-phone {
        font-size: 0;
        padding: 0;
        background: var(--bg-alt);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        transition: background 0.15s;
    }
    .header-phone:hover { background: var(--bg-alt-3); }
    /* Убираем старую зелёную точку */
    .header-phone::before {
        content: '';
        width: 18px;
        height: 18px;
        background: transparent;
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center;
                mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center;
        background-color: var(--ink);
        border-radius: 0;
    }

    .hero { padding: 20px; }
    .hero-top { margin-bottom: 20px; }
    .hero-title { font-size: 24px; }

    .filter-bar { grid-template-columns: 1fr 1fr; }
    .catalog { padding: 0 16px; }
    .bikes-grid { grid-template-columns: 1fr !important; }

    /* Карточка мотоцикла — мобилка */
    .bike-detail { padding: 16px; }
    .detail-info { padding-top: 0; }
    .detail-name { font-size: 22px !important; }
    .detail-brand { font-size: 13px; }
    .detail-meta { font-size: 13px; }
    .detail-desc { font-size: 14px; line-height: 1.5; }

    /* Харки в 2 колонки, мельче текст */
    .detail-specs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .detail-spec { padding: 12px; }
    .ds-label { font-size: 11px; }
    .ds-val { font-size: 16px; }

    /* Занятые периоды */
    .busy-periods h4 { font-size: 13px; }
    .busy-badge { font-size: 12px; padding: 6px 10px; }

    /* Панель бронирования */
    .booking-panel-compact {
        padding: 20px;
        margin-top: 20px;
    }
    .booking-panel-compact .booking-price .amount { font-size: 26px; }
    .book-cta { padding: 14px; font-size: 14px; }

    /* Галерея на мобилке */
    .gallery-main { aspect-ratio: 16 / 12; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }

    /* Страница успеха брони */
    .success-page { padding: 20px; }
    .success-box { padding: 24px 20px; }
    .success-box h1 { font-size: 22px; }
    .success-lead { font-size: 14px; }

    /* Модалка */
    .modal-header { flex-direction: column; align-items: flex-start; text-align: left; }
    .modal-bike-photo { width: 100%; max-width: 120px; }

    /* Контакты */
    .contacts-head h1 { font-size: 24px; }
    .contacts-block { padding: 16px; }
    .contacts-phone { font-size: 18px; }
    .contacts-cta { padding: 28px 20px; }
    .contacts-cta h2 { font-size: 22px; }
    .contacts-cta-actions { flex-direction: column; }
    .contacts-cta-btn { width: 100%; text-align: center; }

    /* Услуги */
    .service-card { padding: 20px; }
    .service-card h3 { font-size: 18px; }
    .service-cta { flex-direction: column; gap: 10px; align-items: stretch; }
    .service-btn { text-align: center; }
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ===== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    color: var(--ink);
    border-radius: 50%;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.theme-toggle:hover {
    background: var(--line);
}
.theme-toggle .theme-icon-dark { display: none; }
.theme-toggle .theme-icon-light { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }

/* ===== ТАБЛИЦА ЦЕН НА СТРАНИЦЕ МОТОЦИКЛА ===== */
.prices-table {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.prices-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14px;
}

.prices-label {
    color: rgba(255,255,255,0.7);
}

.prices-val {
    font-weight: 700;
    font-size: 17px;
}

.prices-val small {
    font-weight: 400;
    opacity: 0.7;
    font-size: 12px;
}

.prices-row.highlight {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px dashed rgba(255,255,255,0.15);
}

.prices-row.highlight .prices-label {
    color: #4ade80;
    font-weight: 600;
}

.prices-row.highlight .prices-val {
    color: #4ade80;
    font-size: 18px;
}

/* Тёмная тема — та же структура просто работает */
[data-theme="dark"] .prices-row.highlight .prices-label,
[data-theme="dark"] .prices-row.highlight .prices-val {
    color: var(--green-text);
}

/* ===== ТЁМНАЯ ТЕМА: ТОЧЕЧНЫЕ ПРАВИЛА ===== */

/* Фон под фото мотоциклов — нейтральный в обеих темах */
[data-theme="dark"] .bike-media,
[data-theme="dark"] .gallery-main {
    background: #111;
}

/* фото мотоциклов не инвертируем в тёмной теме */

/* Тёмная тема: заголовок на панели услуг */
[data-theme="dark"] .service-card {
    background: var(--card-bg);
    border-color: var(--line);
}

/* Автозаполнение Chrome иначе белеет */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset;
}

/* Выделение текста — более заметное в тёмной теме */
[data-theme="dark"] ::selection {
    background: rgba(255,255,255,0.2);
    color: var(--ink);
}

/* Scrollbar в тёмной теме */
[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-alt); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Placeholder текст в тёмной теме */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--muted-2);
}

/* ===== СТРАНИЦЫ УСЛУГ (ОБУЧЕНИЕ / ГАРАЖ) ===== */
.service-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

/* Герой */
.service-page-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 70px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 70px;
}

.service-page-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 14px;
    padding: 6px 12px;
    background: var(--bg-alt);
    border-radius: 100px;
}

.service-page-hero-text h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 18px;
}

.service-page-hero-text p {
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 420px;
}

.service-page-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s;
    text-decoration: none;
}

.service-page-cta:hover { background: var(--panel-dark-hover); }

/* Фото-заглушки */
.service-page-photo {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    gap: 8px;
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.photo-placeholder-icon { font-size: 36px; }

.photo-placeholder p {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    margin: 0;
}

.photo-placeholder span {
    font-size: 12px;
    color: var(--muted);
}

/* Контент */
.service-page-content {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.service-page-content h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

/* Форматы */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.format-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.15s;
}

.format-card:hover { border-color: var(--ink); }

.format-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.format-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.format-card p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0;
}

.format-price {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.format-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

/* Сетка фото-заглушек */
.photos-grid-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.photos-grid-placeholder .photo-placeholder {
    aspect-ratio: 4/3;
    border-radius: 12px;
    border: 2px dashed var(--line);
    background: var(--bg-alt);
    min-height: unset;
}

.photos-hint {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

/* Ценник */
.pricing-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-2);
    font-size: 15px;
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row.highlight {
    background: var(--bg-alt);
}

.pricing-label { color: var(--ink-2); }

.pricing-val {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pricing-row.highlight .pricing-val { color: var(--green); }

.pricing-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-2);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-a {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0;
}

/* CTA внизу */
.service-cta-block {
    padding: 48px 40px;
    background: var(--panel-dark);
    color: var(--panel-dark-text);
    border-radius: 20px;
    text-align: center;
}

.service-cta-block h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--panel-dark-text);
}

.service-cta-block p {
    font-size: 15px;
    opacity: 0.7;
    margin: 0 0 24px;
}

.service-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-cta-btn {
    padding: 13px 28px;
    background: #fff;
    color: #0a0a0a;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
    display: inline-block;
}

.service-cta-btn:hover { transform: translateY(-1px); background: #f0f0f0; }

.service-cta-btn.outline {
    background: transparent;
    color: var(--panel-dark-text);
    border: 1px solid rgba(255,255,255,0.35);
}

.service-cta-btn.outline:hover { background: rgba(255,255,255,0.1); }

/* Мобилка */
@media (max-width: 900px) {
    .service-page { padding: 0 20px 60px; }
    .service-page-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 50px;
        margin-bottom: 50px;
    }
    .service-page-photo { order: -1; }
    .formats-grid { grid-template-columns: 1fr; }
    .photos-grid-placeholder { grid-template-columns: 1fr 1fr; }
    .service-cta-block { padding: 32px 24px; }
    .service-cta-actions { flex-direction: column; }
    .service-cta-btn { text-align: center; }
}

@media (max-width: 600px) {
    .service-page-hero-text h1 { font-size: 28px; }
    .photos-grid-placeholder { grid-template-columns: 1fr; }
    .pricing-row { padding: 14px 16px; }
    .faq-item { padding: 16px 18px; }
}

/* Кликабельная карточка услуги */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.service-card-link:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* Защита фото от системной инверсии цветов (iOS Smart Invert) */
@media (inverted-colors) {
    img,
    .bike-img,
    .gallery-main img,
    .detail-photo,
    .gallery-thumb img,
    .modal-bike-photo {
        filter: invert(1);
    }
}
