/* ============================
   Отступы секций п. 2.2 ТЗ
   ============================ */
/* Override home-ref.min.css (76px) → 80px */
.hr-section { padding: 80px 0 !important; }
@media (max-width: 640px) { .hr-section { padding: 48px 0 !important; } }

/* ============================
   Hero SVG Map of Russia
   ============================ */

.hr-map-outer {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.hr-map-wrap {
    position: absolute;
    inset: 0;
}

.hr-russia-svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

/* Base region fill */
.hr-russia-svg path {
    fill: #dce8f5;
    stroke: #fff;
    stroke-width: 0.6;
    transition: fill 0.18s ease, filter 0.18s ease;
    cursor: default;
}


/* Pinned city region highlights */
.hr-russia-svg path[data-code="RU-MOW"],
.hr-russia-svg path[data-code="RU-MOS"],
.hr-russia-svg path[data-code="RU-SPE"],
.hr-russia-svg path[data-code="RU-LEN"] { fill: #a8c8f0; }

.hr-russia-svg path[data-code="RU-KDA"] { fill: #adc9f2; }
.hr-russia-svg path[data-code="RU-PRI"] { fill: #b0cbf3; }
.hr-russia-svg path[data-code="RU-TA"]  { fill: #b2ccf3; }
.hr-russia-svg path[data-code="RU-KHA"] { fill: #b4cef4; }
.hr-russia-svg path[data-code="RU-IRK"] { fill: #b6cff4; }
.hr-russia-svg path[data-code="RU-KYA"] { fill: #b8d1f5; }

/* Subtle glow behind map */
.hr-map-wrap::before {
    content: '';
    position: absolute;
    top: 15%; left: 10%;
    width: 80%; height: 70%;
    background: radial-gradient(ellipse at 40% 50%, rgba(29,143,225,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

.hr-city-badge {
    position: absolute;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(29,143,225,0.22);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 14px rgba(29,143,225,0.14);
    white-space: nowrap;
    animation: badgeFloat 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0; /* shown by JS after positioning */
}
.hr-city-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #1D8FE1;
    flex-shrink: 0;
}
.hr-city-badge .count { color: #1D8FE1; font-weight: 600; }

/* animation-delay only — positions set by JS */
.badge-moscow      { animation-delay: 0s; }
.badge-spb         { animation-delay: 1s; }
.badge-krasnodar   { animation-delay: 2s; }
.badge-vladivostok { animation-delay: 1.5s; }
.badge-kazan       { animation-delay: 1.2s; }
.badge-khabarovsk  { animation-delay: 0.6s; }
.badge-irkutsk     { animation-delay: 1.8s; }
.badge-krasnoyarsk { animation-delay: 2.4s; }

/* ── Region hover interaction ─────────────────── */
.hr-russia-svg path {
    cursor: default;
}
.hr-russia-svg path[data-title] {
    cursor: pointer;
}
.hr-russia-svg path[data-title]:hover,
.hr-russia-svg path.hr-region-active {
    fill: #6ab0e8 !important;
    filter: drop-shadow(0 0 4px rgba(29,143,225,0.35));
}

/* Tooltip */
.hr-map-tooltip {
    position: absolute;
    background: rgba(10,28,58,0.88);
    color: #fff;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
}
.hr-map-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.hr-stat-badge {
    position: absolute;
    top: 4%; right: 3%;
    background: linear-gradient(135deg, #1D8FE1 0%, #1565C0 100%);
    color: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(29,143,225,0.4);
    animation: badgeFloat 5s ease-in-out infinite;
    animation-delay: 0.5s;
    pointer-events: none;
    z-index: 2;
}
.hr-stat-badge .num { font-size: 20px; font-weight: 700; line-height: 1; }
.hr-stat-badge .lbl { font-size: 10px; opacity: 0.85; margin-top: 2px; }

@media (max-width: 992px) {
    .hr-map-outer { display: none !important; }
}

/* ============================
   Блок «Почему HTLPro»
   ============================ */
.hr-why-section {
    background: #f8fafc;
}

.hr-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .hr-why-grid { grid-template-columns: 1fr; gap: 20px; }
}

.hr-why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hr-why-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1d8fe1, #0f6fbe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 22px;
}

.hr-why-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--black, #1a2a4a);
}

.hr-why-item p {
    font-size: 14px;
    color: var(--gray-dark, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* Brands marquee */
.hr-brands-wrap {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--gray, #e2e8f0);
    border-bottom: 1px solid var(--gray, #e2e8f0);
    background: var(--white, #fff);
    user-select: none;
}

.hr-brands-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: hr-brands-scroll 30s linear infinite;
}

.hr-brands-wrap:hover .hr-brands-track {
    animation-play-state: paused;
}

@keyframes hr-brands-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.hr-brands-track span,
.hr-brands-track .hr-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark, #64748b);
    white-space: nowrap;
    text-decoration: none;
}

.hr-brands-track .hr-brand-link:hover {
    color: var(--primary, #2563eb);
}

.hr-brands-track span i,
.hr-brands-track .hr-brand-link i {
    color: var(--primary, #2563eb);
    font-size: 15px;
}

/* Popular regions */
.hr-popular-section {
    background: var(--white, #fff);
}

.hr-regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hr-region-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 16px;
    border-radius: var(--radius-lg, 12px);
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #1a2a4a 0%, #0f3460 100%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hr-region-card:nth-child(even) {
    background: linear-gradient(135deg, #92400e 0%, #c2410c 100%);
}

.hr-region-card:nth-child(3n) {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.hr-region-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    text-decoration: none;
    color: inherit;
}

.hr-region-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hr-region-count {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

@media (max-width: 1024px) {
    .hr-regions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .hr-regions-grid { grid-template-columns: repeat(2, 1fr); }
}
