/* ===== Базовые сбросы и переменные ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #fff;
    background-color: #000;
    scroll-behavior: smooth;
}

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

:root {
    --black: #000000;
    --white: #ffffff;
    --teal: #00bcd4;
    --teal-dark: #00a0b0;
    --gray-dark: #111;
    --gray-light: #222;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--teal);
    margin: 20px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--teal);
    color: var(--black);
}
.btn-primary:hover {
    background-color: var(--teal-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--black);
}

/* ===== Хедер ===== */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}
.logo span {
    color: var(--white);
}
.header-contacts {
    display: flex;
    gap: 30px;
    align-items: center;
}
.header-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-phone i {
    color: var(--teal);
}
.header-phone:hover {
    color: var(--teal);
}

/* ===== Герой ===== */
.hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    position: relative;
    overflow: hidden;
}
.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,188,212,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.hero-title {
    margin-bottom: 20px;
}
.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}
.hero-feature i {
    color: var(--teal);
    font-size: 1.5rem;
}
.hero-image {
    background: url('images/1.png') no-repeat center/cover;
    border-radius: 20px;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0,188,212,0.2);
    border: 1px solid #333;
}

/* ===== Услуги ===== */
.services {
    background-color: var(--white);
    color: var(--black);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--teal);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}
.service-card h3 {
    margin-bottom: 15px;
}
.service-card p {
    color: #555;
}

/* ===== Преимущества ===== */
.advantages {
    background: var(--black);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.advantage-item {
    text-align: center;
}
.advantage-icon {
    font-size: 3rem;
    color: var(--teal);
    margin-bottom: 20px;
}
.advantage-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.advantage-item p {
    color: #aaa;
}

/* ===== Инфографика этапов ===== */
.car-selection {
    background: linear-gradient(145deg, #0a0a0a 0%, #111 100%);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}
.step-card {
    flex: 1;
    min-width: 180px;
    background: #111;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: 0 15px 30px rgba(0,188,212,0.15);
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--teal);
    color: #000;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,188,212,0.3);
}
.step-icon {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 20px;
}
.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}
.step-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.4;
}
@media (min-width: 992px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 85px;
        left: 10%;
        width: 80%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--teal), var(--teal), transparent);
        z-index: 1;
        opacity: 0.4;
    }
}
@media (max-width: 991px) {
    .step-card {
        min-width: 240px;
        flex: 0 1 calc(50% - 30px);
    }
    .steps-container::before {
        display: none;
    }
}
@media (max-width: 576px) {
    .step-card {
        flex: 0 1 100%;
    }
}

/* ===== Тарифы ===== */
.tariffs {
    background: var(--white);
    color: var(--black);
}
.tariff-slide {
    background: #f4f4f4;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}
.tariff-slide:hover {
    transform: scale(1.03);
    border-color: var(--teal);
}
.tariff-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 15px;
}
.tariff-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--black);
    color: var(--white);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}
.tariff-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}
.tariff-features li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tariff-features i {
    color: var(--teal);
}
.tariff-btn {
    width: 100%;
}

/* ===== Отзывы ===== */
.reviews {
    background: var(--black);
}
.review-slide {
    background: #111;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #333;
    height: 100%;
}
.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #ddd;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.review-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal);
}
.author-name {
    font-weight: 700;
    color: var(--teal);
}
.author-car {
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== Наши работы ===== */
.works {
    background: var(--white);
    color: var(--black);
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.work-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 250px;
}
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.work-item:hover img {
    transform: scale(1.1);
}
.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.work-item:hover .work-overlay {
    transform: translateY(0);
}

/* ===== Форма онлайн-записи ===== */
.online-booking {
    background: var(--black);
}
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #111;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--teal);
    font-size: 1rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: 0.2s;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0,188,212,0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-btn {
    width: 100%;
    background: var(--teal);
    color: #000;
    font-weight: 700;
    padding: 14px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.form-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

/* ===== Контакты ===== */
.contacts {
    background: var(--white);
    color: var(--black);
}
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    background: #f4f4f4;
    padding: 40px;
    border-radius: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--teal);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.contact-item a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
}
.contact-item a:hover {
    color: var(--teal);
}
.map {
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}
.map iframe {
    width: 100%;
    height: 100%;
}

/* ===== Футер ===== */
.footer {
    background: #111;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}
.footer p {
    color: #777;
}

/* ===== Swiper карусели ===== */
.swiper {
    padding: 20px 0 50px;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--teal);
}
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--teal);
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .header .container { flex-direction: column; gap: 15px; }
    .header-contacts { width: 100%; justify-content: center; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-image { height: 300px; order: -1; }
    .map { height: 250px; }
    .step-card { padding: 20px; }
    .form-wrapper { padding: 25px; }
    .contacts {padding: 1.5rem 0.8rem;}
    .section-title {font-size: 1.8rem;}
        /* Переключаем в колонку */
    .contacts-wrapper {flex-direction: column;gap: 1.5rem;}
        /* Увеличиваем размер иконок и делаем их более тач-френдли */
    .contact-item i {font-size: 2rem;width: 2.5rem;}
    .contact-item {gap: 0.8rem;margin-bottom: 1.2rem;font-size: 1rem;}
        /* Увеличиваем область клика для ссылок */
    .contact-item a {display: inline-block;padding: 0.3rem 0;}

    /* Высота карты на мобильных чуть меньше */
        .map iframe {
            height: 280px;
        }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }

    .contact-item {
            font-size: 0.95rem;
        }
        .contact-item i {
            font-size: 1.8rem;
            width: 2rem;
        }
        .map iframe {
            height: 240px;
        }
}