/* ============================================
Антрацит ИНФО — Городской портал
Основные стили (обновлённая версия)
============================================ */

:root {
    /* Цветовая гамма — уголь/сталь с оранжевым акцентом */
    --primary: #2d3748;
    --primary-dark: #1a202c;
    --accent: #ed8936;
    --accent-dark: #dd6b20;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f7fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
}

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

body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================
HEADER (НОВАЯ ВЕРСИЯ)
============================================ */

.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 0;
}

/* LOGO */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo em {
    color: var(--accent);
    font-style: normal;
    @media (width <= 768px) {
        display: block;
    }
}
.logo-mark-img {
    width: 38px;
    height: 38px;
    display: block;
}

/* NAV */
.nav {
    display: flex;
    gap: 22px;
    flex: 1;
}
.nav a {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.nav a:hover { color: var(--accent); }
.nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg);
    border-color: var(--primary);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-block { width: 100%; }

/* BURGER */
.burger {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: .2s;
}
.burger:hover { background: var(--bg); }
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: .3s;
}

/* ============================================
MOBILE MENU
============================================ */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 998;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: .2s;
}
.mobile-menu-close:hover { background: var(--bg); color: var(--primary); }

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.mobile-menu-body a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}
.mobile-menu-body a:hover { background: var(--bg); }
.mobile-menu-body a.active {
    background: rgba(237,137,54,.1);
    color: var(--accent);
}
.mobile-menu-body .ico { font-size: 18px; width: 24px; text-align: center; }

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 8px;
}
.mobile-menu-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ============================================
HERO (Главная)
============================================ */

.hero {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237,137,54,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero h1 span { color: var(--accent); }

.hero > .container > p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 36px;
    max-width: 820px;
}
.search-box input {
    flex: 1;
    border: none;
    padding: 18px 22px;
    font-size: 15px;
    outline: none;
    background: transparent;
    min-width: 0;
}
.search-box input::placeholder { color: #a0aec0; }
.search-box select {
    border: none;
    border-left: 1px solid var(--border);
    padding: 0 18px;
    font-size: 14px;
    background: transparent;
    outline: none;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
}
.search-box button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.search-box button:hover { background: var(--accent-dark); }

/* HERO STATS */
.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-stats > div {
    display: flex;
    flex-direction: column;
}
.hero-stats b {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.hero-stats span {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
CATEGORIES (Главная)
============================================ */

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 30px 0;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    box-shadow: var(--shadow);
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.cat-icon { font-size: 28px; margin-bottom: 6px; }
.cat-name { font-weight: 600; font-size: 14px; }

/* ============================================
SECTIONS
============================================ */

section { margin: 36px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.section-head h2 { font-size: 21px; color: var(--primary); }
.section-head a {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}
.section-head a:hover { text-decoration: underline; }

/* ============================================
LISTINGS GRID
============================================ */

.listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.listing {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .2s;
    box-shadow: var(--shadow);
    display: block;
}
.listing:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.listing-img {
    height: 150px;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #a0aec0;
}
.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.listing-body { padding: 13px; }
.listing-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 3px;
}
.listing-title {
    font-size: 15px;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.listing-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ============================================
COMPANIES
============================================ */

.companies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}
.company {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 13px;
    transition: .2s;
    box-shadow: var(--shadow);
}
.company:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.company-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    & img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}
.company-name { font-weight: 700; margin-bottom: 3px; font-size: 15px; }
.company-cat { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.company-rating { color: var(--accent); font-size: 13px; }

/* ============================================
FILTERS (Страница объявлений)
============================================ */

.page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin: 24px 0;
}

.sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    height: fit-content;
    box-shadow: var(--shadow);
}
.sidebar h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--primary);
}
.filter-group { margin-bottom: 18px; }
.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.filter-group input,
.filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
}
.filter-group input:focus,
.filter-group select:focus { border-color: var(--accent); }

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.btn-filter {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.btn-filter-primary {
    background: var(--accent);
    color: #fff;
}
.btn-filter-primary:hover { background: var(--accent-dark); }
.btn-filter-reset {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-filter-reset:hover { background: #edf2f7; }

/* ============================================
SORT BAR
============================================ */

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.result-count { font-size: 14px; color: var(--text-muted); }
.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card);
    outline: none;
}

/* ============================================
DETAIL PAGES
============================================ */

.detail-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.detail-title { font-size: 24px; color: var(--primary); }
.detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

.detail-gallery {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #a0aec0;
    margin-bottom: 24px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.detail-meta-item {
    background: var(--bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}
.detail-meta-item strong {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: 600;
}

.detail-description { line-height: 1.7; color: var(--text); }
.detail-description p { margin-bottom: 12px; }

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}
.btn-secondary:hover { background: #edf2f7; }

/* Контакты в детальной странице */
#contact-info a[href^="tel:"]:hover {
	text-decoration: underline;
}

/* Кнопка "Показать телефон" */
#show-phone-btn {
    position: relative;
}

/* Похожие объявления */
.detail-card + section {
    margin-top: 40px;
}

/* ============================================
FORM (Подача объявления)
============================================ */

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 680px;
    margin: 24px auto;
    box-shadow: var(--shadow);
}
.form-card h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 22px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.form-group label .req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    background: var(--bg);
    transition: .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

/* ============================================
ACCOUNT
============================================ */

.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    margin: 24px 0;
}
.account-nav {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    height: fit-content;
    box-shadow: var(--shadow);
}
.account-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
    margin-bottom: 2px;
}
.account-nav a:hover { background: var(--bg); }
.account-nav a.active {
    background: var(--accent);
    color: #fff;
}

/* ============================================
PAGINATION
============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.15);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
    cursor: default;
}

.pagination .pagination-disabled {
    color: var(--text-muted);
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg);
}

.pagination .pagination-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    color: var(--text-muted);
}

.pagination .pagination-dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: default;
    min-width: auto;
    padding: 0 4px;
}

.pagination .pagination-dots:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.pagination svg {
    width: 16px;
    height: 16px;
}

/* Мобильная версия */
@media (max-width: 480px) {
    .pagination {
   gap: 4px;
    }

    .pagination a,
    .pagination span {
   min-width: 36px;
   height: 36px;
   padding: 0 8px;
   font-size: 14px;
   border-radius: 8px;
    }

    .pagination svg {
   width: 14px;
   height: 14px;
    }
}

/* ============================================
FOOTER
============================================ */

footer {
    background: var(--primary);
    color: #a0aec0;
    padding: 36px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}
footer h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 15px;
}
footer a {
    color: #a0aec0;
    display: block;
    padding: 3px 0;
    font-size: 14px;
}
footer a:hover { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.6; }
.copyright {
    border-top: 1px solid #2d3748;
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
}

/* ============================================
NETCAT COMPATIBILITY
============================================ */

.tpl-button {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: .2s;
}
.tpl-button-primary {
    background: var(--accent);
    color: #fff;
}
.tpl-button-primary:hover { background: var(--accent-dark); }
.tpl-button-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.tpl-button-secondary:hover { background: rgba(255,255,255,.1); }

/* ============================================
RESPONSIVE
============================================ */

@media (max-width: 900px) {
    .page-layout,
    .account-layout { grid-template-columns: 1fr; }

    .nav { display: none; }
    .burger { display: flex; }
}

@media (max-width: 768px) {
    .header-actions .btn-outline { display: none; }

    .hero { padding: 40px 0 48px; }
    .hero h1 { font-size: 28px; }
    .hero > .container > p { font-size: 15px; }

    .search-box {
    flex-direction: column;
    border-radius: 12px;
    }
    .search-box input {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    }
    .search-box select {
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding: 13px 18px;
    }
    .search-box button {
    padding: 15px;
    width: 100%;
    }

    .hero-stats { gap: 24px; }
    .hero-stats b { font-size: 22px; }

    .form-row { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; gap: 10px; }
    .detail-price { font-size: 24px; }
    .detail-card { padding: 18px; }
}

@media (max-width: 480px) {
    .categories { grid-template-columns: repeat(2, 1fr); }
    .listings { grid-template-columns: 1fr; }

    .header-actions .btn-primary { padding: 9px 12px; font-size: 13px; }
    .logo { font-size: 17px; line-height: 1; }
    .logo-mark-img { width: 32px; height: 32px; }
}

/* ============================================
   ОШИБКИ ФОРМ + FLASH-СООБЩЕНИЯ
   ============================================ */

.field-error {
    display: block;
    margin-top: 6px;
    color: #e53e3e;
    font-size: 13px;
    font-weight: 500;
}

.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.form-group input.has-error:focus,
.form-group select.has-error:focus,
.form-group textarea.has-error:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Flash-сообщения */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

/* ============================================
   Кнопка выхода в мобильном меню
   ============================================ */

.mobile-menu-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: 0.2s;
}

.mobile-menu-link-btn:hover {
    background: var(--bg);
}

.mobile-menu-link-btn .ico {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Кнопка выхода в шапке на мобильном */
@media (max-width: 900px) {
    .header-actions form[action*="logout"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-actions form[action*="logout"] {
        display: none;
    }

    .header-actions a[href*="account"] {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================
   ЗАГРУЗКА ФОТОГРАФИЙ
   ============================================ */

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: #fffaf5;
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: #fff5eb;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 40px;
    line-height: 1;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-text strong {
    font-size: 15px;
    color: var(--primary);
}

.upload-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Превью */
.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.upload-preview:empty {
    display: none;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-preview-item.is-main::after {
    content: "Главное";
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    padding: 0;
    font-family: inherit;
}

.upload-preview-remove:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.upload-preview-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 10px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Адаптив */
@media (max-width: 480px) {
    .upload-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .upload-zone {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 32px;
    }
}

/* ============================================
   ГАЛЕРЕЯ НА СТРАНИЦЕ ОБЪЯВЛЕНИЯ
   ============================================ */

.detail-gallery-wrap {
    margin-bottom: 24px;
}

.detail-gallery-main {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f7fafc;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f7fafc;
}

.detail-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid var(--border);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: 0.2s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.gallery-thumb:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.2);
}

/* Адаптив */
@media (max-width: 480px) {
    .detail-gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }
}

/* ============================================
   КНОПКИ МОДЕРАЦИИ (админ-панель)
   ============================================ */

.btn-mod {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    background: #fff;
    font-family: inherit;
    transition: 0.2s;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.btn-mod:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-mod:active {
    transform: translateY(0);
}

/* Одобрить / опубликовать — зелёный */
.btn-mod-approve {
    color: #38a169;
    border-color: #9ae6b4;
    background: #f0fff4;
}
.btn-mod-approve:hover {
    background: #38a169;
    color: #fff;
    border-color: #38a169;
}

/* Отклонить — красный */
.btn-mod-reject {
    color: #e53e3e;
    border-color: #feb2b2;
    background: #fff5f5;
}
.btn-mod-reject:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}

/* Продано — синий */
.btn-mod-sold {
    color: #3182ce;
    border-color: #90cdf4;
    background: #ebf8ff;
}
.btn-mod-sold:hover {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}

/* В архив — серый */
.btn-mod-archive {
    color: #718096;
    border-color: #cbd5e0;
    background: #f7fafc;
}
.btn-mod-archive:hover {
    background: #718096;
    color: #fff;
    border-color: #718096;
}

/* Вернуть / на модерацию — оранжевый */
.btn-mod-return {
    color: var(--accent-dark);
    border-color: #fbd38d;
    background: #fffaf0;
}
.btn-mod-return:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ — вкладки статусов
   ============================================ */

.account-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    background: transparent;
}

.account-tabs a:hover {
    background: var(--bg);
    color: var(--text);
}

.account-tabs a.active {
    background: var(--accent);
    color: #fff;
}

.account-tabs a .count {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.account-tabs a:not(.active) .count {
    background: var(--bg);
    color: var(--text-muted);
}

/* ============================================
   Карточка объявления в ЛК
   ============================================ */

.account-listing {
    display: flex;
    flex-direction: column;
    position: relative;
}

.account-listing .listing-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.account-listing-actions {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    border-radius: 0 0 var(--radius) var(--radius);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    padding: 0;
    font-family: inherit;
}

.btn-icon:hover:not(:disabled) {
    border-color: var(--accent);
    background: #fff;
    transform: translateY(-1px);
}

.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-icon-danger:hover:not(:disabled) {
    border-color: #e53e3e;
    background: #fff5f5;
}

/* ============================================
   Кнопка выхода в боковом меню ЛК
   ============================================ */

.account-nav-logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e53e3e;
    background: none;
    cursor: pointer;
    margin-top: 4px;
    font-family: inherit;
    transition: 0.2s;
}

.account-nav-logout:hover {
    background: #fff5f5;
}

/* ============================================
   Адаптив для вкладок ЛК
   ============================================ */

@media (max-width: 600px) {
    .account-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-bottom: 16px;
        scrollbar-width: thin;
    }

    .account-tabs a {
        flex-shrink: 0;
        font-size: 13px;
        padding: 7px 12px;
    }

    .account-listing-actions {
        justify-content: space-between;
    }
}

/* ============================================
   СУЩЕСТВУЮЩИЕ ФОТО В РЕДАКТИРОВАНИИ
   ============================================ */

.existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.existing-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
}

.existing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.existing-image-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.existing-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    padding: 0;
    font-family: inherit;
}

.existing-image-remove:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .existing-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   АДМИН-ДАШБОРД
   ============================================ */

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.dash-stat:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.dash-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.dash-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

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

.dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.dash-card h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 18px;
    font-weight: 700;
}

/* График */
.dash-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 180px;
    padding: 10px 0 30px;
    position: relative;
}

.dash-chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
    position: relative;
}

.dash-chart-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.dash-chart-column {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: 0.3s;
    position: relative;
}

.dash-chart-bar:hover .dash-chart-column {
    opacity: 0.8;
}

.dash-chart-label {
    position: absolute;
    bottom: -24px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-periods {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.dash-periods > div {
    font-size: 14px;
    color: var(--text-muted);
}

.dash-periods strong {
    color: var(--primary);
    font-weight: 700;
    margin-left: 4px;
}

/* Топ категорий */
.dash-category {
    margin-bottom: 14px;
}

.dash-category:last-child {
    margin-bottom: 0;
}

.dash-category-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.dash-category-head strong {
    color: var(--primary);
}

.dash-category-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.dash-category-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 4px;
    transition: width 0.3s;
    min-width: 4px;
}

/* Списки */
.dash-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.dash-item:hover {
    background: var(--bg);
}

.dash-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary);
}

.dash-item-body {
    flex: 1;
    min-width: 0;
}

.dash-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dash-item-status {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Ссылки управления */
.dash-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    font-size: 14px;
}

.dash-link:hover {
    background: #edf2f7;
    transform: translateX(2px);
}

.dash-link strong {
    flex: 1;
    color: var(--text);
    font-weight: 600;
}

.dash-link-count {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Итого */
.dash-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.dash-total {
    padding: 14px 8px;
    background: var(--bg);
    border-radius: 10px;
}

.dash-total-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.dash-total-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Адаптив */
@media (max-width: 900px) {
    .dash-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-stats {
        grid-template-columns: 1fr;
    }

    .dash-chart {
        height: 140px;
    }

    .dash-chart-value {
        font-size: 11px;
    }

    .dash-totals {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   МАССОВЫЕ ДЕЙСТВИЯ (админ)
   ============================================ */

.bulk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.bulk-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.bulk-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.bulk-checkbox-item {
    display: flex;
    align-items: center;
    padding-top: 4px;
    cursor: pointer;
}

.bulk-checkbox-item-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* Панель массовых действий */
.bulk-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #fffaf0;
    border: 1px solid #fbd38d;
    border-radius: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 80px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bulk-panel-info {
    font-size: 15px;
    color: #7b341e;
}

.bulk-panel-info strong {
    font-size: 18px;
    color: var(--accent-dark);
}

.bulk-panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-panel-actions .btn-mod {
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
}

/* Красная кнопка удаления */
.btn-mod-danger {
    color: #e53e3e;
    border-color: #feb2b2;
    background: #fff5f5;
}

.btn-mod-danger:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}

/* Подсветка выбранной карточки */
.bulk-item {
    transition: 0.2s;
}

.bulk-item:has(.bulk-checkbox-item-input:checked) {
    border-color: var(--accent);
    background: #fffaf5;
}

/* Приглушённый вид удалённых объявлений */
.bulk-item.deleted {
    opacity: 0.85;
    background: #fafafa;
}

.bulk-item.deleted:hover {
    opacity: 1;
    background: #fff;
}

.account-tabs a .count.danger {
    background: #e53e3e;
    color: #fff;
}

/* Адаптив */
@media (max-width: 768px) {
    .bulk-panel {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-panel-actions {
        justify-content: center;
    }

    .bulk-panel-actions .btn-mod {
        flex: 1;
        min-width: 120px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ КНОПКИ В ЛК
   ============================================ */

.btn-icon-success {
    color: #38a169;
}

.btn-icon-success:hover:not(:disabled) {
    border-color: #38a169;
    background: #f0fff4;
}

/* ============================================
   ПАНЕЛЬ МОДЕРАЦИИ НА СТРАНИЦЕ ОБЪЯВЛЕНИЯ
   ============================================ */

.admin-moderation-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff5eb 100%);
    border: 2px dashed #fbd38d;
    border-radius: var(--radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-moderation-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-moderation-label {
    font-size: 14px;
    color: #7b341e;
    white-space: nowrap;
}

.admin-moderation-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
}

.admin-moderation-status strong {
    font-weight: 800;
}

.admin-moderation-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-moderation-actions .btn-mod {
    width: auto;
    padding: 9px 16px;
    font-size: 13px;
}

/* Адаптив */
@media (max-width: 768px) {
    .admin-moderation-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-moderation-info {
        justify-content: center;
    }

    .admin-moderation-actions {
        justify-content: center;
    }

    .admin-moderation-actions .btn-mod {
        flex: 1;
        min-width: 130px;
    }
}

/* ============================================
   ЛОГОТИП КОМПАНИИ В ФОРМЕ
   ============================================ */

.existing-logo {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-top: 8px;
}

.existing-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

.existing-logo form {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
}

/* ============================================
   КАРТОЧКА КОМПАНИИ В ЛК
   ============================================ */

.account-company {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.account-company .company-link {
    display: flex;
    gap: 13px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.account-company-actions {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

/* ============================================
   ОТЗЫВЫ К КОМПАНИЯМ
   ============================================ */

.reviews-section {
    margin: 40px 0;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.reviews-summary-stars {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
}

/* Уведомление */
.review-notice {
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Форма отзыва */
.review-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.review-form-card h3 {
    color: var(--primary);
    font-size: 17px;
}

/* Звёзды для ввода */
.rating-input {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 32px;
    line-height: 1;
}

.rating-star {
    background: none;
    border: none;
    padding: 0;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
    font-family: inherit;
}

.rating-star:hover,
.rating-star.hover,
.rating-star.active {
    color: var(--accent);
    transform: scale(1.05);
}

/* Пустое состояние */
.review-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.review-empty h3 {
    margin-bottom: 8px;
    color: var(--primary);
}

.review-empty p {
    color: var(--text-muted);
    margin: 0;
}

/* Список отзывов */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 2px;
}

.review-badge-owner {
    display: inline-block;
    background: #ebf8ff;
    color: #2b6cb0;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 6px;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-rating {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.review-comment {
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* Ответ компании */
.review-reply {
    margin-top: 16px;
    padding: 14px 18px;
    background: #f0f9ff;
    border-left: 3px solid #3182ce;
    border-radius: 8px;
}

.review-reply-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2b6cb0;
    flex-wrap: wrap;
    gap: 8px;
}

.review-reply-text {
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}

/* Действия */
.review-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

/* Адаптив */
@media (max-width: 600px) {
    .review-header {
        flex-direction: column;
        gap: 8px;
    }

    .review-rating {
        font-size: 16px;
    }

    .rating-input,
    .rating-star {
        font-size: 28px;
    }

    .review-item {
        padding: 16px;
    }
}

/* Фильтр по звёздам */
.reviews-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.reviews-filter-link {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.reviews-filter-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.reviews-filter-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .reviews-filter-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ============================================
   ИЗБРАННОЕ — СЕРДЕЧКО НА КАРТОЧКАХ
   ============================================ */

.listing-wrapper,
.company-wrapper {
    position: relative;
}

/* Кнопка-сердечко */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;

    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #a0aec0;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #e53e3e;
}

.favorite-btn.active {
    color: #e53e3e;
}

.favorite-btn.active:hover {
    color: #c53030;
}

.favorite-btn .favorite-icon {
    transition: transform 0.2s;
}

.favorite-btn.just-added .favorite-icon {
    animation: heart-pop 0.4s ease;
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.favorite-btn-company {
    top: 8px;
    right: 8px;
}

@media (max-width: 480px) {
    .favorite-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

/* Кнопка избранного на детальных страницах (с текстом) */
.favorite-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.favorite-btn-detail:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15);
}

.favorite-btn-detail.active {
    border-color: #e53e3e;
    color: #e53e3e;
    background: #fff5f5;
}

.favorite-btn-detail.active:hover {
    background: #fed7d7;
}

.favorite-btn-detail.just-added .favorite-icon {
    animation: heart-pop 0.4s ease;
}

@media (max-width: 480px) {
    .favorite-btn-detail {
        padding: 8px 14px;
        font-size: 13px;
    }

    .favorite-btn-detail .favorite-text {
        display: none;
    }
}

/* ============================================
   СТРАНИЦА КОНТАКТОВ
   ============================================ */

.contacts-section {
    margin: 30px 0 60px;
}

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

/* Левая колонка */
.contacts-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.contacts-lead {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 32px;
}

.contacts-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contacts-block:last-of-type {
    border-bottom: none;
}

.contacts-block-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacts-block-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 3px;
}

.contacts-block-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

a.contacts-block-value {
    color: var(--accent);
}

a.contacts-block-value:hover {
    text-decoration: underline;
}

.contacts-hint {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contacts-hint strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 14px;
}

.contacts-hint ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Правая колонка */
.contacts-form {
    max-width: none;
    margin: 0;
}

/* Адаптив */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-info h1 {
        font-size: 26px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d3748;
    color: #fff;
    padding: 16px 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.cookie-banner-text a {
    color: #ed8936;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn-sm {
    padding: 8px 20px;
    font-size: 14px;
    width: auto;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner-actions {
        justify-content: space-between;
    }
    .cookie-banner .btn-sm {
        flex: 1;
    }
}