/* ============================
   Отступы секций п. 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; } }

/* ============================
   Этап 2: Home page additions
   ============================ */

/* Hero preview cards (replacing SVG illustrations) */
.hr-hero-cards {
    display: flex;
    gap: 0;
    position: relative;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px 0;
}

.hr-preview-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    width: 200px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hr-preview-card--1 { z-index: 3; transform: translateX(0) rotate(-2deg); margin-right: -24px; }
.hr-preview-card--2 { z-index: 2; transform: translateY(24px); margin-right: -24px; }
.hr-preview-card--3 { z-index: 1; transform: translateX(0) rotate(2deg); clip-path: inset(0 30% 0 0); }

.hr-preview-photo {
    height: 100px;
    background: linear-gradient(135deg, #1a2a4a 0%, #1d8fe1 100%);
    border-radius: 12px 12px 0 0;
}
.hr-preview-photo--2 { background: linear-gradient(135deg, #0f3460 0%, #16c79a 100%); }
.hr-preview-photo--3 { background: linear-gradient(135deg, #1a2a4a 0%, #e87722 100%); }

.hr-preview-body { padding: 12px 14px 14px; }

.hr-preview-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
}
.hr-preview-line--lg { width: 90%; }
.hr-preview-line--md { width: 70%; }
.hr-preview-line--sm { width: 50%; }

.hr-preview-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
    margin-top: 6px;
}

.hr-preview-dot {
    width: 7px;
    height: 7px;
    background: #16c79a;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .hr-hero-cards { display: none; }
}

/* ============================
   Блок «Почему 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 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark, #64748b);
    white-space: nowrap;
}

.hr-brands-track span 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); }
}
