/* Общие сбросы и настройки шрифтов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Ограничивающий контейнер приложения (как экран в Figma) */
.main-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ГЛАВНЫЙ БАННЕР / ШАПКА */
.hero-banner {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #141414;
    background-image: url('https://unsplash.com'); /* Заглушка фары автомобиля на фоне справа */
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

/* Эффект затемнения под текстом */
.hero-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #141414 70%, rgba(20,20,20,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Навигационная панель */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo span {
    color: #8c8c8c;
    font-weight: 400;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.75rem;
    color: #666;
    text-uppercase: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.phone {
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Кнопки соцсетей */
.social-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-social {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-avito {
    background-color: #ff001f; /* Красный неоновый бренд */
    color: #fff;
}

.btn-avito:hover {
    background-color: #d6001a;
    box-shadow: 0 0 15px rgba(255, 0, 31, 0.4);
}

.btn-vk {
    background-color: #2b2b2b;
    color: #9c9c9c;
    border: 1px solid #3a3a3a;
}

.btn-vk:hover {
    background-color: #363636;
    color: #fff;
}

/* СЕТКА С КАРТОЧКАМИ УСЛУГ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Стили карточки */
.service-card {
    position: relative;
    background-color: #141414;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    height: 180px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 60%;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    color: #e0e0e0;
    text-transform: capitalize;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a6a6a6;
}

/* Картинка внутри карточки */
.card-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 90%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Акционный бадж */
.badge-action {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ff001f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Специфические стили для карточки-ссылки */
.link-card {
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
    cursor: pointer;
    align-items: center;
}

.link-card h3 {
    text-transform: none;
}

.arrow-action {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.link-card:hover .arrow-action {
    transform: translateX(5px);
}

/* Мини-иконки для финальной карточки */
.mini-socials {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.icon-vk-mini, .icon-avito-mini {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-block;
}

.icon-vk-mini {
    background-color: #0077ff; /* Цвет ВК */
    position: relative;
}
.icon-vk-mini::before {
    content: 'VK';
    font-size: 9px;
    font-weight: 800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-avito-mini {
    background-color: #73ff00; /* Цвет Авито элементов */
    position: relative;
}

/* АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        height: auto;
        padding: 24px;
        background-image: none; /* Убираем авто на мобилках */
    }

    .hero-blur-bg {
        width: 100%;
    }

    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .contacts {
        align-items: flex-start;
    }

    .social-buttons {
        margin-top: 25px;
        width: 100%;
    }

    .btn-social {
        flex-grow: 1;
    }
}
