/* =========================================
   4. HERO-БЛОК НА ГЛАВНОЙ
   ========================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #111827 60%, #2b0a0f 100%);
    color: #fff;
    padding: 40px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(209, 18, 42, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

/* --- Левая часть: контент --- */
.hero__content {
    max-width: 700px;
}

.hero__eyebrow {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 24px;
    background: rgba(209, 18, 42, 0.15);
    border: 1px solid rgba(209, 18, 42, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ff8a9c;
}

.hero__title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero__title-accent {
    background: linear-gradient(135deg, #ff3355 0%, #d1122a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #d1d5db;
}

.hero__subtitle strong {
    color: #fff;
    font-weight: 700;
}

/* --- Кнопки --- */
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* --- Правая часть: Карточка контактов --- */
.hero__contact-card {
    width: 520px; 
    padding: 32px;
    
    background: rgba(45, 55, 72, 0.9); 
    backdrop-filter: blur(12px); 
    
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-top: 3px solid var(--brand-red); 
    border-radius: 16px;
    
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(209, 18, 42, 0.15);
    
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hero__contact-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(209, 18, 42, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero__contact-card-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff; 
    margin-bottom: 24px;
    text-align: center;
    font-weight: 800;
    position: relative;
}

/* Сетка для контактов: 3 колонки для мессенджеров */
.hero__contact-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Базовый стиль строки контакта */
.hero__contact-card-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

/* =========================================
   ГЛАВНЫЙ БЛОК: ТЕЛЕФОН (в красивой рамке)
   ========================================= */
.hero__contact-card-item--phone {
    grid-column: 1 / -1; /* Занимает все 3 колонки */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    margin-bottom: 8px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero__contact-card-item--phone:hover {
    border-color: rgba(209, 18, 42, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(209, 18, 42, 0.15);
}

/* Блоки мессенджеров и почты */
.hero__contact-card-item--wa,
.hero__contact-card-item--tg,
.hero__contact-card-item--email {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 8px;
    gap: 8px;
    box-sizing: border-box;
}

.hero__contact-card-item--wa:hover,
.hero__contact-card-item--tg:hover,
.hero__contact-card-item--email:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Иконки */
.hero__contact-card-icon {
    font-size: 24px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 12px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s;
}

.hero__contact-card-item:hover .hero__contact-card-icon {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff; 
    box-shadow: 0 0 15px rgba(209, 18, 42, 0.5);
}

/* --- СТИЛИ ДЛЯ ИКОНКИ WHATSAPP --- */
.hero__contact-card-icon--wa {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}
.hero__contact-card-item:hover .hero__contact-card-icon--wa {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

/* --- СТИЛИ ДЛЯ ИКОНКИ TELEGRAM --- */
.hero__contact-card-icon--tg {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.4);
    color: #0088cc;
}
.hero__contact-card-item:hover .hero__contact-card-icon--tg {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.6);
}

/* Текст контактов */
.hero__contact-card-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.hero__contact-card-value {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

/* Выделяем главный телефон */
.hero__contact-card-item--phone .hero__contact-card-value {
    font-size: 32px; 
    font-weight: 900;
    color: #ffffff; 
    letter-spacing: -0.5px; 
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    white-space: nowrap; 
}

/* Текст для мессенджеров и email */
.hero__contact-card-item--wa .hero__contact-card-value,
.hero__contact-card-item--tg .hero__contact-card-value,
.hero__contact-card-item--email .hero__contact-card-value {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.hero__contact-card-item--wa .hero__contact-card-label,
.hero__contact-card-item--tg .hero__contact-card-label,
.hero__contact-card-item--email .hero__contact-card-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Адаптивность --- */
@media (max-width: 1100px) {
    .hero__contact-card {
        width: 440px;
    }
    .hero__contact-card-item--phone .hero__contact-card-value {
        font-size: 26px; /* Чуть уменьшаем, чтобы влезло */
    }
    /* На узком ПК мессенджеры могут быть тесными, немного ужимаем текст */
    .hero__contact-card-item--wa .hero__contact-card-value,
    .hero__contact-card-item--tg .hero__contact-card-value,
    .hero__contact-card-item--email .hero__contact-card-value {
        font-size: 13px;
    }
    .hero__contact-card-label {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 60px 0;
    }
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__title {
        font-size: 38px;
    }
    .hero__contact-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 40px 0;
    }
    .hero__title {
        font-size: 28px;
    }
    .hero__subtitle {
        font-size: 15px;
    }
    .hero__eyebrow {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }
    .hero__contact-card {
        padding: 20px;
    }

    /* На телефоне всё встает в один столбец */
    .hero__contact-card-list {
        grid-template-columns: 1fr;
    }
    
    .hero__contact-card-item--phone {
        grid-column: auto; 
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 12px;
    }
    
    .hero__contact-card-item--phone .hero__contact-card-value {
        font-size: 22px; 
    }
    
    .hero__contact-card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    /* На мобильных карточки мессенджеров и email делаем горизонтальными */
    .hero__contact-card-item--wa,
    .hero__contact-card-item--tg,
    .hero__contact-card-item--email {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 16px;
        padding: 12px;
        margin-top: 0; 
        width: 100%;
    }
    
    .hero__contact-card-item--wa .hero__contact-card-label,
    .hero__contact-card-item--tg .hero__contact-card-label,
    .hero__contact-card-item--email .hero__contact-card-label {
        text-align: left;
    }
}