/* === kvestfest theme === */
/* === Палитра: чёрный фон, жёлтый (основной), красный + синий (акценты) === */
/*
    Фоны:     #0a0a0a (глубокий)  #111 (поверхности)  #1a1a1a (карточки)  #222 #2a2a2a (бордеры)
    Жёлтый:   #f0b90b (основной)  #ffd700 (светлее)
    Красный:  #e53935 (основной)  #ef5350 (светлее)
    Синий:    #2196f3 (основной)  #42a5f5 (светлее)
*/

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #0a0a0a;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex-grow: 1; }

a { color: #2196f3; text-decoration: none; transition: color 0.2s; }
a:hover { color: #f0b90b; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.header {
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 32px;
}
.header__logo {
    text-decoration: none;
    flex-shrink: 0;
}
.header__logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #f0b90b;
    letter-spacing: -0.5px;
}
.header__logo:hover .header__logo-text { color: #ffd700; }

.nav { flex: 1; }
.nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__link {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.nav__link:hover { color: #f0b90b; background: rgba(240,185,11,0.08); }
.nav__link--active { color: #f0b90b; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.header-action:hover { background: rgba(240,185,11,0.1); color: #f0b90b; }
.header-action--register {
    background: #f0b90b;
    color: #0a0a0a;
    font-weight: 600;
}
.header-action--register:hover { background: #ffd700; color: #0a0a0a; }
.header-action--logout { color: rgba(255,255,255,0.4); }
.header-action--logout:hover { color: #e53935; background: rgba(229,57,53,0.1); }
.header-action__label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.header-action__points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: rgba(240,185,11,0.15);
    color: #f0b90b;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* ---- Footer ---- */
.footer {
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 40px 0;
    color: rgba(255,255,255,0.6);
}
.footer__inner {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.footer__col { flex: 1; min-width: 200px; }
.footer__logo {
    font-size: 18px;
    font-weight: 700;
    color: #f0b90b;
}
.footer__text { font-size: 14px; margin: 8px 0 0; }
.footer__heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 12px;
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 6px; }
.footer__link {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
}
.footer__link:hover { color: #f0b90b; }
.footer__copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a0e 50%, #111 100%);
    color: #fff;
    padding: 40px 0 28px;
    text-align: center;
}
.hero__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
}
.hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 28px;
}
.hero__advantages {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.advantage {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}
.advantage__icon { font-size: 22px; }

/* ---- Categories bar ---- */
.categories-bar { padding: 12px 0 0; }
.categories-scroll {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.category-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}
.category-link:hover,
.category-link.active {
    background: #2196f3;
    color: #fff;
}

/* ---- Toolbar / Sorting ---- */
.toolbar { padding: 10px 0; }
.toolbar__sort {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.toolbar__sort span { color: rgba(255,255,255,0.4); }
.sort-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.sort-link:hover,
.sort-link.active {
    color: #f0b90b;
    border-bottom-color: #f0b90b;
}

/* ---- Quests Grid ---- */
.quests-grid { padding: 20px 0 60px; }
.quests-grid__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #fff;
}

.quest-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 992px) { .quest-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .quest-cards { grid-template-columns: 1fr; } }

.quest-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.quest-card:hover {
    box-shadow: 0 4px 20px rgba(240,185,11,0.12);
    border-color: #f0b90b;
}

.quest-card__image {
    position: relative;
    height: 200px;
    background: #111;
    overflow: hidden;
}
.quest-card__image img { width: 100%; height: 100%; object-fit: cover; }
.quest-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}
.quest-card__rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f0b90b;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges */
.quest-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 2;
}
.quest-card__badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge--new { background: #e53935; color: #fff; }
.badge--hit { background: #f0b90b; color: #0a0a0a; }
.badge--promo { background: #2196f3; color: #fff; }
.badge--genre,
.quest-card__badge.badge--genre {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.badge--genre-quest       { background: #f0b90b; color: #0a0a0a; }
.badge--genre-performance { background: #2196f3; color: #fff; }
.badge--genre-action      { background: #e53935; color: #fff; }

/* Card body */
.quest-card__body { padding: 16px; flex-grow: 1; }
.quest-card__title { margin: 0 0 10px; font-size: 18px; }
.quest-card__title a { color: #fff; text-decoration: none; }
.quest-card__title a:hover { color: #f0b90b; }
.quest-card__meta { display: flex; gap: 12px; margin-bottom: 12px; }
.meta-item { font-size: 13px; color: rgba(255,255,255,0.4); }
.meta--duration { color: rgba(255,255,255,0.6); }
.meta--trailer { color: #f0b90b; font-weight: 600; }
.meta--schedule { color: #e53935; }

.quest-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.detail--metro { display: flex; align-items: center; gap: 4px; }
.metro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e53935;
    display: inline-block;
    flex-shrink: 0;
}
.metro-distance { color: rgba(255,255,255,0.3); margin-left: 2px; }
.detail--price { font-weight: 700; color: #f0b90b; }

/* Card actions */
.quest-card__actions {
    padding: 12px 16px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 8px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}
.btn--primary {
    background: #f0b90b;
    color: #0a0a0a;
    flex-grow: 1;
}
.btn--primary:hover { background: #ffd700; color: #0a0a0a; }
.btn--outline {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: rgba(255,255,255,0.5);
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 18px;
}
.btn--outline:hover { border-color: #f0b90b; color: #f0b90b; }
.btn--fav { font-size: 22px; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #2a2a2a;
    transition: all 0.2s;
}
.pagination__link:hover { background: #2a2a2a; color: #fff; }
.pagination__link--active {
    background: #f0b90b;
    color: #0a0a0a;
    font-weight: 700;
    border-color: #f0b90b;
}

/* ---- Page (generic content) ---- */
.page { padding: 40px 0 60px; }
.page__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}
.page__content {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.7;
}
.page__content h2 { color: #fff; font-size: 22px; margin: 32px 0 16px; }
.page__content h3 { color: #fff; font-size: 18px; margin: 24px 0 12px; }
.page__content p { margin-bottom: 16px; }
.page__content img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---- Search form ---- */
.search-form {
    display: flex;
    max-width: 560px;
    width: 100%;
}
.hero__search { margin: 0 auto 24px; }
.search-form__input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #2a2a2a;
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: #0a0a0a;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.search-form__input:focus { border-color: #f0b90b; }
.search-form__input::placeholder { color: rgba(255,255,255,0.3); }
.search-form__submit {
    padding: 14px 20px;
    background: #f0b90b;
    color: #0a0a0a;
    border: 2px solid #f0b90b;
    border-radius: 0 10px 10px 0;
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.search-form__submit:hover { background: #ffd700; border-color: #ffd700; }
.search-form--page { max-width: 100%; margin-bottom: 24px; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs__list,
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 14px;
}
.breadcrumb-item { color: rgba(255,255,255,0.4); }
.breadcrumb-item a { color: rgba(255,255,255,0.4); text-decoration: none; }
.breadcrumb-item a:hover { color: #f0b90b; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    margin-right: 8px;
    color: rgba(255,255,255,0.2);
}
.breadcrumbs__list-item { color: rgba(255,255,255,0.4); }
.breadcrumbs__list-item a { color: rgba(255,255,255,0.4); text-decoration: none; }
.breadcrumbs__list-item a:hover { color: #f0b90b; }
.breadcrumbs__list-item.active { color: #fff; }
.breadcrumbs__list-delimiter { color: rgba(255,255,255,0.2); margin: 0 4px; }

/* ---- Forms (general) ---- */
input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):not(.search-form__input),
textarea,
select {
    background: #111;
    color: #fff;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: #f0b90b; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.3); }
label { display: block; margin-bottom: 6px; color: rgba(255,255,255,0.7); font-size: 14px; }

/* ---- Auth pages ---- */
.auth-form {
    max-width: 440px;
    margin: 40px auto;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 32px;
}
.auth-form__title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 24px;
}
.auth-form input:not([type="submit"]):not([type="checkbox"]) {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.auth-form .action {
    width: 100%;
    padding: 12px;
    background: #f0b90b;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-form .action:hover { background: #ffd700; }
.auth-form__footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}
.auth-form__footer a { color: #2196f3; }
.auth-form__footer a:hover { text-decoration: underline; }

/* ---- Message/Notifications ---- */
.message {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.message--success { background: rgba(240,185,11,0.1); border: 1px solid rgba(240,185,11,0.3); color: #f0b90b; }
.message--error   { background: rgba(229,57,53,0.1); border: 1px solid rgba(229,57,53,0.3); color: #ef5350; }
.message--info    { background: rgba(33,150,243,0.1); border: 1px solid rgba(33,150,243,0.3); color: #64b5f6; }

/* ---- Tables ---- */
table { width: 100%; background: #1a1a1a; border-collapse: collapse; color: rgba(255,255,255,0.85); border-radius: 8px; overflow: hidden; }
th { background: #111; color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; }
td { padding: 12px 16px; border-top: 1px solid #2a2a2a; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- Error pages ---- */
.error-page { text-align: center; padding: 60px 0; }
.error-page__code { font-size: 72px; font-weight: 800; color: #f0b90b; }
.error-page__title { font-size: 24px; color: #fff; margin: 16px 0; }
.error-page__text { color: rgba(255,255,255,0.5); margin-bottom: 24px; }

/* ---- SilverStripe Navigator (admin bar) ---- */
#SilverStripeNavigator {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 6px 0;
    background: #111 !important;
    border-top: 1px solid #f0b90b;
}



/* ---- Sidebar map ---- */
.quest-sidebar-map {
    width: 100%;
    height: 200px;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}



/* ---- Quest attributes bar ---- */
.quest-attributes {
    background: linear-gradient(135deg, #111 0%, #1a1a14 50%, #111 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.attr-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.attr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}
.attr-icon {
    font-size: 18px;
    margin-bottom: 2px;
}
.attr-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.attr-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.attr-value-secondary {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .quest-attributes { padding: 14px 0; }
    .attr-list { gap: 4px; }
    .attr-item { min-width: 0; flex: 1; overflow: hidden; }
    .attr-icon { font-size: 13px; }
    .attr-label { font-size: 9px; letter-spacing: 0; }
    .attr-value { font-size: 11px; }
    .attr-value-secondary { font-size: 10px; }
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero__title { font-size: 24px; }
    .hero { padding: 20px 0 16px; }
    .hero__subtitle { font-size: 15px; margin-bottom: 18px; }
    .hero__advantages { gap: 16px; }
    .header__inner { gap: 16px; }
    .nav { display: none; }
    .toolbar__sort { flex-wrap: wrap; gap: 8px; }
    .search-form__input { font-size: 14px; padding: 12px 16px; }
    .search-form__submit { padding: 12px 16px; }
    .header-action { padding: 5px 10px; font-size: 12px; }
    .header-action__label { display: none; }
    .footer__inner { flex-direction: column; gap: 24px; }
}

/* ---- Mobile menu ---- */
@media (max-width: 768px) {
    .nav--mobile {
        background: #0a0a0a;
    }
    .mobile-menu__link {
        color: rgba(255,255,255,0.8);
    }
    .mobile-menu__link:hover {
        color: #f0b90b;
        background: rgba(255,255,255,0.05);
    }
    .mobile-submenu__link { color: rgba(255,255,255,0.7); }
    .mobile-submenu__link:hover { color: #f0b90b; }
}

/* ---- Quest Detail Sidebar ---- */
.quest-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 12px;
}
.quest-booking {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.quest-booking__price { margin-bottom: 16px; }
.price-from { font-size: 24px; font-weight: 700; color: #f0b90b; display: block; }
.price-note { font-size: 12px; color: rgba(255,255,255,0.4); }
.btn--block { width: 100%; margin-bottom: 8px; }
.btn--booking { padding: 14px; font-size: 16px; }
.btn--fav-detail { padding: 10px; font-size: 14px; }

.quest-company, .quest-location {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
}
.company-card { display: flex; gap: 12px; align-items: center; }
.company-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.company-info { display: flex; flex-direction: column; gap: 4px; }
.company-name { font-weight: 700; color: #fff; font-size: 15px; }
.company-phone { color: rgba(255,255,255,0.6); font-size: 13px; }
.company-site { color: #2196f3; font-size: 13px; }

.location-card { font-size: 14px; }
.location-address { color: rgba(255,255,255,0.7); margin: 0; line-height: 1.6; }
.location-address .metro-dot { display: inline-block; vertical-align: middle; }

.quest-more {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
}
.more-list { list-style: none; padding: 0; margin: 0; }
.more-list li { margin-bottom: 6px; }
.more-list a { color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: none; }
.more-list a:hover { color: #f0b90b; }

/* ---- Review form ---- */
.review-form-wrap {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
}
.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-group {}
.form-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-rating input { display: none; }
.star-rating label {
    cursor: pointer;
    font-size: 22px;
    color: #333;
    transition: color 0.15s;
    line-height: 1;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f0b90b;
}
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}
.form-textarea:focus { border-color: #f0b90b; outline: none; }

/* ---- Review list ---- */
.quest-reviews { margin-top: 40px; }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
}
.review-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.review-item__author { font-weight: 600; color: #fff; font-size: 14px; }
.review-item__rating { color: #f0b90b; font-weight: 700; font-size: 14px; }
.review-item__date { color: rgba(255,255,255,0.3); font-size: 12px; margin-left: auto; }
.review-item__text { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---- Map page ---- */
.map-header {
    text-align: center;
    padding: 32px 0 20px;
}
.map-header__title { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.map-header__subtitle { color: rgba(255,255,255,0.5); font-size: 14px; margin: 0; }
#map-container {
    width: 100%;
    height: 600px;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    #map-container { height: 400px; border-radius: 0; }
}

/* ---- Autocomplete ---- */
.autocomplete-dropdown {
    position: absolute;
    z-index: 1000;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.autocomplete-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #222;
    gap: 4px;
    transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item--active {
    background: #222;
}
.autocomplete-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.autocomplete-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.autocomplete-item__genre {
    font-size: 11px;
    color: #f0b90b;
    background: rgba(240,185,11,0.1);
    padding: 1px 6px;
    border-radius: 4px;
}
.autocomplete-item__price {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.autocomplete-item__metro {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.autocomplete-item__metro-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== Company Page Header ========== */
.company-header {
    padding: 30px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.company-header__inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.company-header__logo {
    flex-shrink: 0;
}
.company-header__logo img {
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}
.company-header__title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
}
.company-header__desc {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px 0;
}
.company-header__contacts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.company-contact {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
.company-contact:hover {
    color: #f0b90b;
}
.company-header__stats {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
}
.company-header__stats strong {
    color: #f0b90b;
}

@media (max-width: 576px) {
    .company-header__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .company-header__contacts {
        justify-content: center;
    }
}

/* ===== Статья о бренде (CompanyPageController) ===== */
.company-article {
    padding: 2rem 0;
}

.company-article__body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff;
}

.company-article__body p {
    margin-bottom: 1.2rem;
}

.company-article__body strong {
    color: #ffffff;
}

/* ===== Секция брендов на главной ===== */
.brands-section {
    padding: 3rem 0;
    background: #f8f9fa;
    margin-top: 2rem;
}

.brands-section__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.brand-card__logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f3f5;
    overflow: hidden;
}

.brand-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-card__logo-placeholder {
    font-size: 1.5rem;
}

.brand-card__body {
    min-width: 0;
}

.brand-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-card__count {
    font-size: 0.85rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .company-article__body {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}
