/*
|------------------------------------------------------------
| Digital Rating - Main Styles
|------------------------------------------------------------
*/

/* Root Variables */
:root{
    --primary:#1890ff;
    --muted:#6b7280;
    --bg:#ffffff;
    --border:#e6e9ee;
    --accent:#111827;
    --gold:#ffd700;
    --silver:#c0c0c0;
    --bronze:#cd7f32;
}

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

/* Header Styles */
.main-header {
    display: flex;
    align-items: center;
    padding: 5px;
    margin: -30px 0px -30px 0px;
}

.logo h1 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

/* Mobile Menu */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 15px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-content li {
    margin-bottom: 5px;
}

.mobile-menu-content a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-content a:hover {
    background: #f0f2f5;
}

.menu-item-with-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.submenu-toggle.active {
    transform: rotate(90deg);
}

.menu-level-1 {
    display: none;
    margin-left: 15px;
    border-left: 2px solid #e0e0e0;
    padding-left: 10px;
}

.menu-level-1.active {
    display: block;
}

/* Category header */
.category-head {
    margin-bottom:18px;
}
.category-title {
    font-size:28px;
    font-weight:700;
    margin:0 0 20px 0;
    color:var(--accent);
}
.category-description {
    color:var(--muted);
    margin-bottom:18px;
    font-size:15px;
}

/* Companies list */
.companies-list {
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* Company row - Р С›Р  Р ВР вЂњР ВР СњР С’Р вЂєР В¬Р СњР В«Р вЂў Р РЋР СћР ВР вЂєР В Р ВР вЂ” Р вЂ™Р С’Р РЃР ВР Тђ Р В¤Р С’Р в„ўР вЂєР С›Р вЂ™ */
.company-row {
    display:grid;
    grid-template-columns: 70px 80px 1fr 180px 60px;
    gap:16px;
    align-items:center;
    background:var(--bg);
    border:1px solid var(--border);
    padding:14px;
    border-radius:10px;
    transition:box-shadow .18s ease, transform .12s ease;
    position:relative;
}
.company-row:hover {
    box-shadow:0 10px 30px rgba(17,24,39,0.06);
    transform:translateY(-2px);
}

/* Р СћР С•Р С—-Р С—Р С•Р В·Р С‘РЎвЂ Р С‘Р С‘ РЎРѓРЎвЂљР С‘Р В»Р С‘ */
.company-row--gold {
    border-left:4px solid var(--gold);
    background:linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}
.company-row--silver {
    border-left:4px solid var(--silver);
    background:linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.company-row--bronze {
    border-left:4px solid var(--bronze);
    background:linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
}

.company-row--gold .company-row__order {
    color:var(--gold);
    font-weight:900;
}
.company-row--silver .company-row__order {
    color:var(--silver);
    font-weight:800;
}
.company-row--bronze .company-row__order {
    color:var(--bronze);
    font-weight:700;
}

/* Order/position */
.company-row__order {
    font-size:20px;
    font-weight:700;
    color:var(--primary);
    text-align:center;
}

/* Logo - Р С›Р  Р ВР вЂњР ВР СњР С’Р вЂєР В¬Р СњР В«Р в„ў Р  Р С’Р вЂ”Р СљР вЂўР   Р ВР вЂ” Р вЂ™Р С’Р РЃР ВР Тђ Р В¤Р С’Р в„ўР вЂєР С›Р вЂ™ */
.company-row__logo {
    display:flex;
    align-items:center;
    justify-content:center;
}
.company-row__logo-img, .company-row__logo-placeholder {
    width:80px; /* Р С›РЎР‚Р С‘Р С–Р С‘Р Р…Р В°Р В»РЎРЉР Р…РЎвЂ№Р в„– РЎР‚Р В°Р В·Р СР ВµРЎР‚ Р С‘Р В· Р Р†Р В°РЎв‚¬Р С‘РЎвЂ¦ РЎвЂћР В°Р в„–Р В»Р С•Р Р† */
    height:80px; /* Р С›РЎР‚Р С‘Р С–Р С‘Р Р…Р В°Р В»РЎРЉР Р…РЎвЂ№Р в„– РЎР‚Р В°Р В·Р СР ВµРЎР‚ Р С‘Р В· Р Р†Р В°РЎв‚¬Р С‘РЎвЂ¦ РЎвЂћР В°Р в„–Р В»Р С•Р Р† */
    border-radius:8px;
    object-fit:contain;
    display:block;
}
.company-row__logo-placeholder {
    background:#f5f7fb;
    color:#9aa4b2;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Meta */
.company-row__meta { }
.company-row__title {
    display:block;
    font-size:18px;
    font-weight:700;
    color:var(--accent);
    text-decoration:none;
    margin-bottom:6px;
}
.company-row__title:hover { opacity:.9; }

.company-row__sub {
    color:var(--muted);
    font-size:14px;
    margin-bottom:8px;
}
.company-row__reviews {
    display: inline-block;
    margin-left: 8px;
    background: #e3f2fd; /* Светло-синий */
    color: #1565c0; /* Тёмно-синий */
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.company-row__reviews:hover {
    background: #bbdefb;
    color: #0d47a1;
    text-decoration: none;
}
.company-row__trust { 
    display: inline-block;
    background: #fff8e6;
    color: #d48806;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}
.company-row__city { color:var(--muted); }

.company-row__excerpt {
    color:#374151;
    font-size:14px;
    margin-top:8px;
}

/* Contacts */
.company-row__contacts {
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-start;
}
.company-row__contacts-label {
    font-size:12px;
    color:var(--muted);
    font-weight:600;
    margin-bottom:4px;
}
.company-row__phone, .company-row__social {
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.company-row__phone:hover, .company-row__social:hover { 
    text-decoration:underline; 
}
.company-row__social-links {
    display:flex;
    flex-direction:column;
    gap:4px;
}
.company-row__social-text {
    font-size:12px;
    color:var(--muted);
}

/* CTA - Р С›Р  Р ВР вЂњР ВР СњР С’Р вЂєР В¬Р СњР В«Р вЂў Р РЋР СћР ВР вЂєР В Р С™Р СњР С›Р СџР С›Р С™ */
.company-row__cta {
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:stretch;
    min-width:120px;
}
.company-row__cta-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #1890ff;
    color: #1890ff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    background: white !important;
}
.company-row__cta-btn:hover { 
    background: #1890ff !important;
    color: white;
}
.company-row__cta-btn--details {
    border: 2px solid #1890ff;
    color: #1890ff;
    background: white !important;
}
.company-row__cta-btn--details:hover {
    background: #1890ff !important;
    color: white;
}
.company-row__cta-btn--website {
    border: 2px solid #10b981;
    color: #10b981;
    background: white !important;
}
.company-row__cta-btn--website:hover {
    background: #10b981 !important;
    color: white;
}

/* Company row Р В±Р ВµР В· РЎвЂљР С•Р С—-Р С—Р С•Р В·Р С‘РЎвЂ Р С‘Р С‘ */
.company-row--no-top {
    grid-template-columns: 80px 1fr 180px 60px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom:20px;
    color:#666;
    font-size:14px;
}

.breadcrumbs a {
    color:#1890ff;
    text-decoration:none;
}

/* Responsive - Р С›Р  Р ВР вЂњР ВР СњР С’Р вЂєР В¬Р СњР В«Р вЂў Р РЋР СћР ВР вЂєР В Р ВР вЂ” Р вЂ™Р С’Р РЃР ВР Тђ Р В¤Р С’Р в„ўР вЂєР С›Р вЂ™ */
@media (max-width: 980px) {
    .company-row {
        grid-template-columns: 60px 64px 1fr 120px;
    }
    .company-row__logo-img, .company-row__logo-placeholder {
        width:64px;
        height:64px;
    }
    .company-row__cta { 
        align-items:stretch; 
        flex-direction:column;
        gap:6px;
    }
    .company-row__cta-btn {
        flex:1;
        padding:10px 12px;
        width:100%;
    }
}

/* Р С›Р  Р ВР вЂњР ВР СњР С’Р вЂєР В¬Р СњР В«Р вЂў Р РЋР СћР ВР вЂєР В Р СљР С›Р вЂР ВР вЂєР В¬Р СњР С›Р в„ў Р С’Р вЂќР С’Р СџР СћР С’Р В¦Р ВР В Р ВР вЂ” Р вЂ™Р С’Р РЃР ВР Тђ Р В¤Р С’Р в„ўР вЂєР С›Р вЂ™ */
@media (max-width: 700px) {
    .company-row {
        grid-template-columns: 1fr;
        gap:8px;
        align-items:flex-start;
    }
    .company-row__order { text-align:left; }
    .company-row__logo { order:0; }
    .company-row__meta { order:1; }
    .company-row__contacts { 
        order:2; 
        flex-direction:column; 
        gap:8px; 
        width:100%;
    }
    .company-row__contacts-label {
        width:100%;
        text-align:center;
        margin-bottom:8px;
        padding-top:8px;
        border-top:1px solid var(--border);
    }
    .company-row__cta { 
        order:3; 
        width:100%; 
        flex-direction:column;
        align-items:stretch;
    }
    .company-row__cta-btn { 
        width:100%; 
        text-align:center; 
        padding:12px 16px;
    }
}

/* Responsive Р Т‘Р В»РЎРЏ Р С”Р С•Р СР С—Р В°Р Р…Р С‘Р в„– Р В±Р ВµР В· РЎвЂљР С•Р С—-Р С—Р С•Р В·Р С‘РЎвЂ Р С‘Р С‘ */
@media (max-width: 980px) {
    .company-row--no-top {
        grid-template-columns: 64px 1fr 120px;
    }
    .company-row--no-top .company-row__logo-img, 
    .company-row--no-top .company-row__logo-placeholder {
        width:64px;
        height:64px;
    }
}

/* Р С›Р  Р ВР вЂњР ВР СњР С’Р вЂєР В¬Р СњР В«Р вЂў Р РЋР СћР ВР вЂєР В Р СљР С›Р вЂР ВР вЂєР В¬Р СњР С›Р в„ў Р С’Р вЂќР С’Р СџР СћР С’Р В¦Р ВР В Р вЂќР вЂєР Р‡ Р С™Р С›Р СљР СџР С’Р СњР ВР в„ў Р вЂР вЂўР вЂ” Р СћР С›Р Сџ-Р СџР С›Р вЂ”Р ВР В¦Р ВР В */
@media (max-width: 700px) {
    .company-row--no-top {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: flex-start;
    }
    .company-row--no-top .company-row__logo { 
        order: 0; 
    }
    .company-row--no-top .company-row__meta { 
        order: 1; 
    }
    .company-row--no-top .company-row__contacts { 
        order: 2; 
        flex-direction: column; 
        gap: 8px; 
        width: 100%;
    }
    .company-row--no-top .company-row__contacts-label {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .company-row--no-top .company-row__cta { 
        order: 3; 
        width: 100%; 
        flex-direction: column;
        align-items: stretch;
    }
    .company-row--no-top .company-row__cta-btn { 
        width: 100%; 
        text-align: center; 
        padding: 12px 16px;
    }
}

/* Р СџР В°Р С–Р С‘Р Р…Р В°РЎвЂ Р С‘РЎРЏ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .prev,
.pagination .next {
    background: var(--bg);
    color: var(--primary);
}

.pagination .prev:hover,
.pagination .next:hover {
    background: var(--primary);
    color: white;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .page-numbers {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Single Company Styles */
.single-company-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* РҐР»РµР±РЅС‹Рµ РєСЂРѕС€РєРё */
.breadcrumbs {
    margin-bottom: 24px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1890ff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* РЁР°РїРєР° РєР°СЂС‚РѕС‡РєРё - 2 РєРѕР»РѕРЅРєРё РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅРѕ */
.sc-header-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
}

.sc-header-main {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Р›РѕРіРѕС‚РёРї СѓРІРµР»РёС‡РµРЅРЅС‹Р№ */
.sc-logo {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    flex-shrink: 0;
}

.sc-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-logo {
    opacity: 0.4;
    font-size: 14px;
    color: #9aa4b2;
    font-weight: 600;
}

/* РРЅС„РѕСЂРјР°С†РёСЏ (РЅР°Р·РІР°РЅРёРµ + СЂРµР№С‚РёРЅРі) */
.sc-header-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-title {
    margin: 0;
    font-size: 32px;
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
}

.trust-badge {
    background: #fff8e6;
    color: #d48806;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    font-size: 15px;
    align-self: flex-start;
}

.trust-badge strong {
    font-weight: 700;
}

/* РљРЅРѕРїРєР° СЃР°Р№С‚Р° СЃРїСЂР°РІР° - РћР РР“РРќРђР›Р¬РќР«Р™ Р”РР—РђР™Рќ */
.sc-header-actions {
    display: flex;
    align-items: center;
}

.sc-button-website {
    display: inline-block;
    padding: 10px 20px;
    background: white !important;
    border: 2px solid #10b981;
    color: #10b981;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
}

.sc-button-website:hover {
    background: #10b981 !important;
    color: white;
}

/* РЎРµРєС†РёРё */
.sc-section {
    margin-bottom: 40px;
}

.sc-section h3 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

.sc-block {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 10px;
}

/* РЎРµС‚РєР° РѕСЃРЅРѕРІРЅРѕР№ РёРЅС„РѕСЂРјР°С†РёРё - Р’ РћР”РќРЈ РљРћР›РћРќРљРЈ */
.sc-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-info-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.sc-info-value {
    font-size: 16px;
    color: #374151;
    font-weight: 600;
}

/* Рћ РєРѕРјРїР°РЅРёРё */
.company-content {
    color: #374151;
    line-height: 1.7;
    font-size: 16px;
}

.company-content p {
    margin-bottom: 16px;
}

.company-content strong {
    font-weight: 700;
    color: #111827;
}

.company-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.company-content li {
    margin-bottom: 10px;
}

/* РљРѕРЅС‚Р°РєС‚С‹ - Р’ РћР”РќРЈ РљРћР›РћРќРљРЈ */
.sc-contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-contact-item-full {
    /* РќРµ РЅСѓР¶РЅРѕ, С‚Р°Рє РєР°Рє СѓР¶Рµ РѕРґРЅР° РєРѕР»РѕРЅРєР° */
}

.sc-contact-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.sc-contact-value {
    font-size: 16px;
    color: #111827;
    font-weight: 600;
}

.sc-contact-value a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-contact-value a:hover {
    color: #0e7ae0;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.social-links a:hover {
    color: #0e7ae0;
    text-decoration: underline;
}

/* Р РµРєРІРёР·РёС‚С‹ - Р’ РћР”РќРЈ РљРћР›РћРќРљРЈ */
.sc-requisites-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-requisite-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-requisite-item-full {
    /* РќРµ РЅСѓР¶РЅРѕ, С‚Р°Рє РєР°Рє СѓР¶Рµ РѕРґРЅР° РєРѕР»РѕРЅРєР° */
}

.sc-requisite-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.sc-requisite-value {
    font-size: 16px;
    color: #374151;
    font-weight: 600;
}

/* Р РµР№С‚РёРЅРіРё (СЃРєСЂС‹С‚С‹) */
.ratings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item {
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-name {
    font-weight: 600;
}

.rating-name a {
    color: #111;
    text-decoration: none;
}

.rating-name a:hover {
    color: #1890ff;
}

.rating-position {
    color: #1890ff;
    font-weight: 700;
}

/* Responsive Single Company */
@media (max-width: 968px) {
    /* РЁР°РїРєР° РІ РєРѕР»РѕРЅРєСѓ */
    .sc-header-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .sc-header-actions {
        width: 100%;
    }
    
    .sc-button-website {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* РЁР°РїРєР° РїРѕР»РЅРѕСЃС‚СЊСЋ РІРµСЂС‚РёРєР°Р»СЊРЅР°СЏ */
    .sc-header-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sc-header-info {
        align-items: center;
    }
    
    .trust-badge {
        align-self: center;
    }
    
    /* Р›РѕРіРѕС‚РёРї РјРµРЅСЊС€Рµ */
    .sc-logo {
        width: 120px;
        height: 120px;
        padding: 14px;
    }
    
    .sc-title {
        font-size: 24px;
    }
    
    .sc-block {
        padding: 10px;
    }
    
    .sc-section {
        margin-bottom: 32px;
    }
    
    .sc-section h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sc-title {
        font-size: 20px;
    }
    
    .sc-logo {
        width: 100px;
        height: 100px;
        padding: 12px;
    }
    
    .single-company-container {
        padding: 15px;
    }
    
    .sc-header-wrapper {
        padding: 20px;
    }
    
    .sc-button-website {
        padding: 12px 20px;
        font-size: 14px;
    }
}


/* Responsive Single Company */
@media (max-width: 1024px) {
    .sc-grid-2 {
        grid-template-columns:1fr !important;
    }
}

@media (max-width: 768px) {
    .sc-logo {
        width:90px !important;
        height:90px !important;
        padding:10px !important;
    }
    .sc-title {
        font-size:22px !important;
    }
    .sc-header {
        gap:20px !important;
    }
}

@media (max-width: 480px) {
    .sc-title {
        font-size:20px !important;
    }
    .sc-logo {
        width:70px !important;
        height:70px !important;
    }
    .sc-button {
        width:100%;
        text-align:center;
        padding:12px !important;
        display:block;
    }
}

/* ========================================= */
/* Р РЋР СћР ВР вЂєР В Р вЂќР вЂєР Р‡ Р вЂњР вЂєР С’Р вЂ™Р СњР С›Р в„ў Р РЋР СћР  Р С’Р СњР ВР В¦Р В« */
/* ========================================= */

/* Р С›РЎРѓР Р…Р С•Р Р†Р Р…Р С•Р в„– Р С”Р С•Р Р…РЎвЂљР ВµР Р…РЎвЂљ Р С–Р В»Р В°Р Р†Р Р…Р С•Р в„– */
.main-content {
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5em;
    color: #333;
    margin-top: 30px;
    text-align: center;
}

.page-content-inner {
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.page-content-inner h2 {
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content-inner h3 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Р СџР С•Р С—РЎС“Р В»РЎРЏРЎР‚Р Р…РЎвЂ№Р Вµ Р С”Р В°РЎвЂљР ВµР С–Р С•РЎР‚Р С‘Р С‘ */
.popular-categories {
    margin: 80px 0;
}

.popular-categories h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #1890ff;
}

.category-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4em;
}

.category-card p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

/* Р СћР С•Р С— Р В°Р С–Р ВµР Р…РЎвЂљРЎРѓРЎвЂљР Р† */
.top-companies {
    margin: 30px 0;
}

.top-companies h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #333;
}

.companies-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.company-showcase-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

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

.company-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 15px;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    color: #9aa4b2;
    font-weight: 600;
    font-size: 14px;
}

.company-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.company-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-badge {
    display: inline-block;
    background: #fff8e6;
    color: #d48806;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: 600;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5em;
}

/* Р С™Р СњР С›Р СџР С™Р В Р СњР С’ Р вЂњР вЂєР С’Р вЂ™Р СњР С›Р в„ў - Р ВР РЋР СџР  Р С’Р вЂ™Р вЂєР вЂўР СњР СњР В«Р вЂў */
.company-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.btn-outline, .btn-website {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #1890ff;
    color: #1890ff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    background: white !important;
    flex: 1; /* Р вЂќР С•Р В±Р В°Р Р†Р В»РЎРЏР ВµР С РЎР‚Р В°Р Р†Р Р…Р С•Р Вµ РЎР‚Р В°РЎРѓР С—РЎР‚Р ВµР Т‘Р ВµР В»Р ВµР Р…Р С‘Р Вµ */
}

.btn-website {
    border-color: #10b981;
    color: #10b981;
    background: white !important;
}

.btn-outline:hover {
    background: #1890ff !important;
    color: white;
}

.btn-website:hover {
    background: #10b981 !important;
    color: white;
}

/* Р РЋРЎвЂљР В°РЎвЂљР С‘РЎРѓРЎвЂљР С‘Р С”Р В° */
.stats-section {
    margin: 80px 0;
    text-align: center;
}

.stats-section h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.stat-card-link:hover {
    cursor: pointer;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1.1em;
    font-weight: 500;
}

/* Р С’Р Т‘Р В°Р С—РЎвЂљР С‘Р Р†Р Р…Р С•РЎРѓРЎвЂљРЎРЉ Р С–Р В»Р В°Р Р†Р Р…Р С•Р в„– - Р ВР РЋР СџР  Р С’Р вЂ™Р вЂєР вЂўР СњР СњР В«Р вЂў Р С™Р СњР С›Р СџР С™Р В */
@media (max-width: 768px) {
    .page-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-showcase {
        grid-template-columns: 1fr;
    }
    
    /* Р ВР РЋР СџР  Р С’Р вЂ™Р вЂєР вЂўР СњР СњР В«Р вЂў Р С™Р СњР С›Р СџР С™Р В Р СњР С’ Р вЂњР вЂєР С’Р вЂ™Р СњР С›Р в„ў - Р  Р С’Р РЋР СћР Р‡Р СњР Р€Р СћР В« Р С™Р С’Р С™ Р СњР С’ Р вЂќР  Р Р€Р вЂњР ВР Тђ Р РЋР СћР  Р С’Р СњР ВР В¦Р С’Р Тђ */
    .company-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .btn-outline, .btn-website {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
    }
    
    .company-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        width:280px;
    }
}
.main-header .logo {
font-weight: 700;
font-size: 32px;
color: #1A202C;
}
/* ============================================
   СТИЛИ ДЛЯ META-INFO (Год, Сотрудники, Город)
   ============================================ */

.company-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 13px;
}

.meta-label {
    color: #6B7280;
    font-weight: 600;
}

.meta-value {
    color: #1F2937;
    font-weight: 500;
}

/* ============================================
   SEO-ТЕКСТ КАТЕГОРИИ (внизу страницы)
   ============================================ */

.category-seo-content {
    margin-top: 60px;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e9ee;
}

/* Заголовки H2 */
.category-seo-content h2 {
    color: #1F2937;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 2px solid #e6e9ee;
}

.category-seo-content h2:first-child {
    margin-top: 0;
}

/* Заголовки H3 */
.category-seo-content h3 {
    color: #374151;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
}

/* Заголовки H4 */
.category-seo-content h4 {
    color: #4B5563;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
}

/* Параграфы */
.category-seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 16px;
}

.category-seo-content p:last-child {
    margin-bottom: 0;
}

/* Списки */
.category-seo-content ul,
.category-seo-content ol {
    margin: 16px 0 20px 0;
    padding-left: 28px;
}

.category-seo-content ul {
    list-style-type: disc;
}

.category-seo-content ol {
    list-style-type: decimal;
}

.category-seo-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #374151;
    font-size: 16px;
}

.category-seo-content ul ul,
.category-seo-content ol ol,
.category-seo-content ul ol,
.category-seo-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Жирный текст */
.category-seo-content strong,
.category-seo-content b {
    color: #1F2937;
    font-weight: 700;
}

/* Курсив */
.category-seo-content em,
.category-seo-content i {
    font-style: italic;
}

/* Ссылки */
.category-seo-content a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.category-seo-content a:hover {
    color: #0e7ae0;
    border-bottom-color: #0e7ae0;
}

/* Цитаты */
.category-seo-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #1890ff;
    background: #f8f9fc;
    font-style: italic;
    color: #4B5563;
}

.category-seo-content blockquote p {
    margin-bottom: 0;
}

/* Код */
.category-seo-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.category-seo-content pre {
    background: #f3f4f6;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.category-seo-content pre code {
    background: transparent;
    padding: 0;
    color: #1F2937;
}

/* Разделитель */
.category-seo-content hr {
    border: none;
    border-top: 2px solid #e6e9ee;
    margin: 32px 0;
}

/* Таблицы (если добавишь) */
.category-seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.category-seo-content table th,
.category-seo-content table td {
    padding: 12px;
    border: 1px solid #e6e9ee;
    text-align: left;
}

.category-seo-content table th {
    background: #f8f9fc;
    font-weight: 600;
    color: #1F2937;
}

.category-seo-content table tr:nth-child(even) {
    background: #f8f9fc;
}

/* Адаптив для SEO-блока */
@media (max-width: 768px) {
    .category-seo-content {
        padding: 24px;
        margin-top: 40px;
    }
    
    .category-seo-content h2 {
        font-size: 22px;
    }
    
    .category-seo-content h3 {
        font-size: 18px;
    }
    
    .category-seo-content h4 {
        font-size: 16px;
    }
    
    .category-seo-content p,
    .category-seo-content li {
        font-size: 15px;
    }
}
/* ============================================
   СТИЛИ ДЛЯ ПОЛЕЙ: ГОД, СОТРУДНИКИ, ГОРОД
   ============================================ */

.company-row__info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.info-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.info-meta-item:hover {
    background: #E5E7EB;
}

.info-meta-label {
    color: #6B7280;
    font-weight: 600;
    font-size: 12px;
}

.info-meta-value {
    color: #1F2937;
    font-weight: 600;
    font-size: 13px;
}

/* Адаптив */
@media (max-width: 700px) {
    .company-row__info-meta {
        gap: 8px;
    }
    
    .info-meta-item {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .info-meta-label {
        font-size: 11px;
    }
    
    .info-meta-value {
        font-size: 12px;
    }
}
/* Кнопки "Показать больше" и "Скрыть" на главной */
#load-more-companies:hover,
#hide-companies:hover,
#load-more-categories:hover,
#hide-categories:hover {
    background: #1890ff !important;
    color: white !important;
}
/* ========================================= */
/* FOOTER STYLES (LIGHT VERSION) */
/* ========================================= */

.site-footer {
    background: #f9fafb; /* светлый фон */
    color: #4b5563;
    margin-top: 80px;
    padding: 50px 0 0;
    border-top: 1px solid #e5e7eb;
}

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

/* Основной блок с 4 колонками */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e5e7eb;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Заголовок логотипа / бренда */
.footer-heading {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 15px 0;
}

/* Описание под логотипом */
.footer-description {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Заголовки колонок */
.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px 0;
}

/* Меню футера */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #1890ff;
}

/* Контакты */
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contacts strong {
    color: #111827;
    font-weight: 600;
}

.footer-contacts a {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: #0e7ae0;
    text-decoration: underline;
}

/* Кнопка-ссылка */
.footer-link-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #1890ff;
    color: #1890ff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.footer-link-btn:hover {
    background: #1890ff;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24,144,255,0.2);
}

/* Нижняя строка */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 22px;
    font-size: 13px;
}

.footer-copyright {
    margin: 0;
    color: #9ca3af;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #1890ff;
}

/* Responsive: планшеты */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .site-footer {
        margin-top: 60px;
        padding: 40px 0 0;
    }
}

/* Responsive: мобильные */
@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 6px;
    }
    
    .site-footer {
        margin-top: 40px;
        padding: 30px 0 0;
    }
}
/* Скрытые карточки компаний */
.company-card-hidden {
    display: none !important;
}

/* Кнопка "Показать больше" */
.load-more-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.load-more-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.load-more-btn:hover {
    background: #0e7ae0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.3);
}

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

/* Responsive для кнопки */
@media (max-width: 768px) {
    .load-more-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 30px;
        font-size: 15px;
    }
}
/* Кликабельная карточка компании */
.company-row--clickable {
    cursor: pointer;
}

.company-row--clickable:hover {
    box-shadow: 0 10px 30px rgba(17,24,39,0.1);
    transform: translateY(-3px);
}

.company-row--clickable .company-row__cta-btn {
    position: relative;
    z-index: 2;
}

.company-row--clickable .company-row__title {
    position: relative;
    z-index: 2;
}

/* ========================================
   ИСПРАВЛЕНИЕ: Кнопки "Показать больше" и "Скрыть" 
   на мобильной версии такой же ширины как "Подробнее" и "Сайт"
   ======================================== */

@media (max-width: 768px) {
    /* Контейнер с кнопками "Показать больше" и "Скрыть" */
    div[style*="text-align: center"] {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 0 15px;
    }
    
    /* Сами кнопки "Показать больше" и "Скрыть" */
    #load-more-companies,
    #hide-companies,
    #load-more-categories,
    #hide-categories {
        width: 100% !important;
        max-width: none !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* НЕ трогаем display - пусть JavaScript управляет видимостью */
}

/* Для экранов 700px и меньше (как у кнопок в карточках) */
@media (max-width: 700px) {
    #load-more-companies,
    #hide-companies,
    #load-more-categories,
    #hide-categories {
        width: 100% !important;
        max-width: none !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        font-size: 14px !important;
    }
}
/* ========================================= */
/* ФИЛЬТРЫ ТРЕТЬЕГО УРОВНЯ (упрощённый дизайн) */
/* ========================================= */

.category-filters-wrapper {
    margin: 50px 0 40px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.filters-main-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 25px 0;
    font-weight: 600;
}

/* Группа фильтров */
.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 500;
    padding-bottom: 0;
    border: none;
}

/* Список элементов фильтра */
.filter-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Элемент фильтра (простая кнопка) */
.filter-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background: #1890ff;
    color: white;
    transform: none;
    box-shadow: none;
}

/* Убираем различия между системными и несистемными */
.filter-item--city,
.filter-item--tag {
    background: #f5f5f5;
}

.filter-item--city:hover,
.filter-item--tag:hover {
    background: #1890ff;
    color: white;
}

.filter-item-name {
    font-weight: 400;
}

.filter-item-count {
    font-size: 13px;
    opacity: 0.7;
    font-weight: 400;
    display: none; /* Скрываем счётчик как на референсе */
}

/* Адаптив */
@media (max-width: 768px) {
    .category-filters-wrapper {
        margin: 40px 0 30px 0;
    }
    
    .filters-main-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .filter-group {
        margin-bottom: 25px;
    }
    
    .filter-group-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .filter-items-list {
        gap: 8px;
    }
    
    .filter-item {
        font-size: 13px;
        padding: 7px 14px;
    }
}
/* Активный фильтр */
.filter-item--active {
    background: #1890ff !important;
    color: white !important;
    font-weight: 700;
    border-color: #1890ff !important;
}

.filter-item--active:hover {
    background: #0d7de0 !important;
    color: white !important;
}

/* ========================================= */
/* БЛОК ОТЗЫВЫ - УЛУЧШЕННЫЙ ДИЗАЙН */
/* ========================================= */

.company-reviews__form-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 40px;
    margin-top: 40px;
}

.company-reviews__form-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
}

/* ===================================
   ОТЗЫВЫ - Построчный дизайн (обновлено 20.01.2026)
   =================================== */

/* Список отзывов - построчно */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

/* Карточка отзыва */
.review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Шапка отзыва */
.review-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.review-item__author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-item__author {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.review-item__date {
    font-size: 13px;
    color: #999;
}

/* Рейтинг */
.review-item__rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.review-item__rating {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-item__rating-value {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Текст отзыва */
.review-item__content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Цветовая маркировка по рейтингу */
.review-item--rating-5 {
    border-left: 4px solid #4caf50;
}

.review-item--rating-4 {
    border-left: 4px solid #8bc34a;
}

.review-item--rating-3 {
    border-left: 4px solid #ffc107;
}

.review-item--rating-2 {
    border-left: 4px solid #ff9800;
}

.review-item--rating-1 {
    border-left: 4px solid #f44336;
}

/* Пустое состояние */
.reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===================================
   ФОРМА ДОБАВЛЕНИЯ ОТЗЫВА (обновлено)
   =================================== */

.review-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

/* Убираем синюю рамку вокруг секции отзывов */
.sc-section {
    border: none !important;
    outline: none !important;
}

/* Убираем фокус с формы */
.review-form:focus,
.review-form:focus-within {
    outline: none;
    border: none;
}

/* Стили для уведомления после отправки */
.review-notice {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
}

.review-notice--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.review-notice--success strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.review-notice--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}







.review-form__field {
    margin-bottom: 20px;
}

.review-form__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.review-form__field input[type="text"],
.review-form__field input[type="email"],
.review-form__field select,
.review-form__field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.review-form__field input:focus,
.review-form__field select:focus,
.review-form__field textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.review-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.review-form__field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Honeypot (скрытое поле от спама) */
.review-form__honeypot {
    position: absolute;
    left: -9999px;
}

/* Кнопка отправки */
.review-form__submit {
    background: #1890ff;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.review-form__submit:hover {
    background: #0d7dd9;
}

/* Уведомления */
.review-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 15px;
}

.review-notice--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.review-notice--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.review-notice--pending {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.review-notice--exists {
    background: #e7f3ff;
    border: 1px solid #1890ff;
    color: #004085;
}

/* ===================================
   СЧЕТЧИК ОТЗЫВОВ В КАРТОЧКАХ
   =================================== */

.company-row__reviews-count {
    margin-left: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* ===================================
   АДАПТИВНОСТЬ
   =================================== */

@media (max-width: 768px) {
    .review-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-item__rating-wrapper {
        align-items: flex-start;
    }
    
    .review-form {
        padding: 20px;
    }
    
    .review-form__submit {
        width: 100%;
    }
}
