﻿    :root {
        --primary: #2c3e50;
        --secondary: #3498db;
        --accent: #e74c3c;
        --light: #ecf0f1;
        --dark: #2c3e50;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: var(--dark);
        margin: 0;
        padding: 0;
        line-height: 1.6;
    }

    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
        background-size: cover;
        background-position: center;
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        position: relative;
    }

    .search-form {
        background: rgba(255, 255, 255, 0.9);
        padding: 2rem;
        border-radius: 10px;
        width: 90%;
        max-width: 800px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .stats-card {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .stats-card:hover {
        transform: translateY(-5px);
    }

    .category-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .review-card, .company-card {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 0 10px;
        min-width: 300px;
    }

    .carousel-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .map-container {
        height: 400px;
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-link:hover {
        color: var(--secondary);
    }

    /* dropdown opens via JS click only */

    .mobile-menu {
        display: none;
    }

    @media (max-width: 768px) {
        .desktop-menu {
            display: none;
        }
        .mobile-menu {
            display: block;
        }
        .hero {
            min-height: 60vh;
        }
        .search-form {
            padding: 1.5rem;
            width: 95%;
        }
        .stats-card {
            margin-bottom: 1rem;
        }
        .category-card {
            margin-bottom: 1.5rem;
        }
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    ::-webkit-scrollbar-thumb {
        background: var(--secondary);
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #2980b9;
    }

    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .animate-fadeIn {
        animation: fadeIn 0.5s ease-out forwards;
    }

    .delay-1 { animation-delay: 0.2s; }
    .delay-2 { animation-delay: 0.4s; }
    .delay-3 { animation-delay: 0.6s; }
    .delay-4 { animation-delay: 0.8s; }


/* ============================================================
   CITY STATS BLOCK — профессиональный редизайн
   ============================================================ */

.city-stats-section {
    background: #ffffff;
    padding: 0 0 40px;
}

.city-stats-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.city-stats-heading {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin: 0 0 32px;
    letter-spacing: -0.3px;
}

.city-stats-table {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.city-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.city-stats-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-stats-city-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.city-stats-city-icon svg {
    width: 16px;
    height: 16px;
}

.city-stats-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.city-stats-header-sub {
    font-size: 11px;
    color: #aaa;
    margin-top: 1px;
}

.city-stats-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    padding: 4px 11px;
}

.city-stats-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #16a34a;
    animation: csbDotPulse 2s infinite;
}

@keyframes csbDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.city-stats-row {
    display: grid;
    grid-template-columns: 220px 72px 1fr 110px;
    align-items: center;
    gap: 20px;
    padding: 18px 28px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    cursor: default;
}

.city-stats-row:last-of-type {
    border-bottom: none;
}

.city-stats-row:hover {
    background: #fafafa;
}

.city-stats-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-stats-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.city-stats-row-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.city-stats-row-name {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.city-stats-row-value {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1;
}

.city-stats-chart-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.city-stats-bar-track {
    height: 4px;
    background: #f0f0f0;
    border-radius: 100px;
    overflow: hidden;
}

.city-stats-bar-fill {
    height: 100%;
    border-radius: 100px;
}

.city-stats-bar-fill--blue  { background: #185FA5; }
.city-stats-bar-fill--green { background: #0F6E56; }
.city-stats-bar-fill--amber { background: #BA7517; }

.city-stats-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.city-stats-mini-bar {
    width: 8px;
    border-radius: 2px 2px 0 0;
    flex-shrink: 0;
}

.city-stats-stars {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-bottom: 4px;
}

.city-stats-stars svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.city-stats-rating-dist {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 28px;
}

.city-stats-rating-dist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.city-stats-rating-dist-bar {
    width: 14px;
    border-radius: 2px;
}

.city-stats-rating-dist-lbl {
    font-size: 9px;
    color: #bbb;
    line-height: 1;
}

.city-stats-row-meta {
    font-size: 11px;
    font-weight: 500;
    color: #16a34a;
    white-space: nowrap;
}

.city-stats-row-meta--neutral {
    color: #aaa;
    font-weight: 400;
}

.city-stats-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 28px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.city-stats-footer-text {
    font-size: 11px;
    color: #bbb;
}

.city-stats-footer-link {
    font-size: 11px;
    color: #185FA5;
    text-decoration: none;
    transition: opacity 0.2s;
}

.city-stats-footer-link:hover {
    opacity: 0.7;
}

@media (max-width: 680px) {
    .city-stats-row {
        grid-template-columns: 1fr 60px;
        gap: 12px;
        padding: 14px 16px;
    }
    .city-stats-chart-col,
    .city-stats-row-meta { display: none; }
    .city-stats-header,
    .city-stats-footer { padding: 14px 16px; }
}


/* ============================================================
   NEW COMPANIES BLOCK — редизайн карусели
   ============================================================ */

.nc-section {
    background: #fff;
    padding: 32px 0 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nc-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
    margin: 0;
}

.nc-nav {
    display: flex;
    gap: 6px;
}

.nc-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.nc-btn:hover:not(:disabled) {
    background: #f4f4f4;
    border-color: #ccc;
}

.nc-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.nc-track-wrap {
    overflow: hidden;
}

.nc-track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ---- Карточка ---- */
.nc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
    transition: border-color 0.2s;
}

.nc-card:hover {
    border-color: #ccc;
}

/* Акцентная полоска сверху */
.nc-card-accent {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

/* Изображение */
.nc-card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f4f4f4;
    overflow: hidden;
}

.nc-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.nc-card:hover .nc-card-img {
    transform: scale(1.03);
}

/* Тело карточки */
.nc-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.nc-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nc-card-name:hover {
    color: #185FA5;
}

/* Мета (адрес, телефон) */
.nc-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nc-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.nc-meta-row svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.5;
}

/* Футер карточки */
.nc-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nc-stars-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nc-star polygon {
    fill: #e0e0e0;
}

.nc-star--on polygon {
    fill: #BA7517;
}

.nc-reviews-count {
    font-size: 11px;
    color: #aaa;
    margin-left: 4px;
    white-space: nowrap;
}

.nc-details-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #185FA5;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.nc-details-btn:hover {
    background: #0C447C;
    color: #fff;
}

/* ---- Адаптив ---- */
@media (max-width: 1024px) {
    .nc-card { flex: 0 0 calc(33.333% - 11px); }
}

@media (max-width: 768px) {
    .nc-card { flex: 0 0 calc(50% - 8px); }
    .nc-section { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
    .nc-card { flex: 0 0 calc(100% - 0px); }
}



/* ============================================================
   CATEGORIES BLOCK — концепция H: 3 героя + карточки
   ============================================================ */

/* ── Секция ── */
.ncat-outer {
    background: #f0f2f5;
    padding: 40px 0 48px;
    margin: 0;
    width: 100%;
    display: block;
}

.ncat-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ncat-h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: -.5px;
    display: block;
}

/* ── Общая таблица-сетка ── */
.ncat-tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 0;
    margin: 0 0 10px;
    table-layout: fixed;
}

/* Ключ к равной высоте: td height:100% + div height:100% */
.ncat-td {
    vertical-align: top;
    padding: 0;
    height: 1px; /* trick: allows child div to use height:100% */
}

/* ── Герой-карточка ── */
.ncat-hcard {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 20px 20px 16px;
    height: 100%;
    min-height: 190px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: filter .18s, transform .18s;
}

.ncat-hcard:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.ncat-hcard-empty {
    background: transparent !important;
    cursor: default;
    pointer-events: none;
}

.ncat-hbg {
    position: absolute;
    right: -6px;
    bottom: -12px;
    font-size: 76px;
    font-weight: 900;
    color: rgba(255,255,255,.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.ncat-hlabel {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.ncat-hname {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-shrink: 0;
}

.ncat-hlinks {
    flex: 1;
    margin-bottom: 10px;
}

.ncat-hlink {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.62);
    padding: 3px 0;
    text-decoration: none;
    line-height: 1.3;
    transition: color .15s, font-weight .15s;
}

.ncat-hlink:hover {
    color: #fff;
    font-weight: 700;
}

.ncat-hcount {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.32);
    flex-shrink: 0;
}

/* ── Обычная карточка ── */
.ncat-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    padding: 14px 14px 12px;
    height: 100%;
    min-height: 100px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: filter .18s, transform .18s;
}

.ncat-card:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.ncat-card-empty {
    background: transparent !important;
    cursor: default;
    pointer-events: none;
    min-height: 0;
}

.ncat-cnum {
    position: absolute;
    right: 6px;
    top: 2px;
    font-size: 28px;
    font-weight: 900;
    color: rgba(255,255,255,.1);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.ncat-cname {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
    position: relative;
    flex-shrink: 0;
}

.ncat-clink {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.62);
    padding: 2px 0;
    text-decoration: none;
    line-height: 1.3;
    position: relative;
    transition: color .15s, font-weight .15s;
}

.ncat-clink:hover {
    color: #fff;
    font-weight: 600;
}

.ncat-cmore {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.35);
    margin-top: 4px;
    font-style: italic;
}

/* ── Кнопка «Показать всё» ── */
.ncat-footer {
    text-align: center;
    margin-top: 8px;
}

.ncat-showbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 32px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .2px;
    transition: background .15s;
}

.ncat-showbtn:hover {
    background: #333;
}

.ncat-showbtn svg {
    transition: transform .3s;
    flex-shrink: 0;
}

/* ── Адаптив ── */
@media (max-width: 900px) {
    .ncat-tbl.ncat-tbl-cards {
        border-spacing: 8px 0;
    }
}

@media (max-width: 768px) {
    .ncat-tbl.ncat-tbl-heroes {
        display: block;
    }
    .ncat-tbl.ncat-tbl-heroes tbody,
    .ncat-tbl.ncat-tbl-heroes tr {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .ncat-tbl.ncat-tbl-heroes td {
        display: block;
        width: 100% !important;
        height: auto;
    }
    .ncat-hcard {
        min-height: 140px;
    }
    .ncat-tbl.ncat-tbl-cards {
        display: block;
    }
    .ncat-tbl.ncat-tbl-cards tbody,
    .ncat-tbl.ncat-tbl-cards tr {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .ncat-tbl.ncat-tbl-cards td {
        display: block;
        width: calc(50% - 4px) !important;
        height: auto;
        box-sizing: border-box;
    }
    .ncat-card {
        height: auto;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .ncat-tbl.ncat-tbl-cards td {
        width: 100% !important;
    }
}

