html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

/* reCAPTCHA */
.recaptcha-container {
    margin: 12px 0;
    display: flex;
    justify-content: center;
    transform: scale(0.85);
    transform-origin: center center;
}

.recaptcha-container>div {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.recaptcha-container>div:hover {
    box-shadow: 0 4px 20px rgba(206, 38, 1, 0.12);
    border-color: #CE2601;
}

/* reCAPTCHA в секции консультации (тёмный фон) */
.consultation .recaptcha-container {
    margin: 18px 30px;
}

.consultation .recaptcha-container>div {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.consultation .recaptcha-container>div:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 576px) {
    .recaptcha-container {
        transform: scale(0.9);
        transform-origin: center top;
    }
}

@media (max-width: 380px) {
    .recaptcha-container {
        transform: scale(0.78);
        transform-origin: center top;
    }
}

.withpanel .page-wrapper {
    padding-top: 0;
}

.header-nav ul li a.active {
    color: #CE2601;
}

.consultation-item-success-message {
    margin-bottom: 40px;
}

.open-success-message-link {
    display: none;
}

.google-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 40px;
}

.google-table td,
.google-table th {
    padding: 21px 0 24px 45px;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    text-align: center;

}

.google-table tr:nth-child(odd) td {
    background: #F8F6F6;
}

/* Текстовый логотип ПРЕМЬЕР ТРАК */
.logo-text {
    font-family: "Gilroy", sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #131B32;
    text-decoration: none;
    line-height: 1.2;
}

.logo-text:hover {
    color: #CE2601;
    text-decoration: none;
}

.logo-text--footer {
    font-size: 20px;
    color: #fff;
}

.logo-text--footer:hover {
    color: #CE2601;
}

/* Видео-фон хэро */
.main video.main-bg {
    width: 1280px;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 0;
}

.main .container {
    position: relative;
    z-index: 1;
}

/* Hero блок — уменьшённый заголовок */
.main .main-title {
    font-size: 46px;
    line-height: 52px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Hero подзаголовок */
.main-subtitle {
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 640px;
    margin-bottom: 32px !important;
}

/* Hero статистика — стеклянный стиль */
.hero-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    cursor: default;
    min-width: 110px;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stat__number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FF8A3D, #FF4D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat__label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 6px;
}

.hero-stat__divider {
    display: none;
}

/* Мобильная адаптация hero */
@media (max-width: 768px) {
    .main .main-title {
        font-size: 26px;
        line-height: 34px;
        letter-spacing: 1px;
        text-align: center;
        margin-bottom: 14px;
    }

    .main-subtitle {
        font-size: 14px !important;
        text-align: center !important;
        margin-bottom: 22px !important;
        line-height: 1.6 !important;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-stat {
        padding: 14px 10px;
        min-width: 0;
        border-radius: 12px;
    }

    .hero-stat__number {
        font-size: 26px;
    }

    .hero-stat__label {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .main-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .main .main-title {
        font-size: 22px;
        line-height: 30px;
    }

    .main-subtitle {
        font-size: 13px !important;
    }

    .hero-stat {
        padding: 12px 8px;
    }

    .hero-stat__number {
        font-size: 22px;
    }

    .hero-stat__label {
        font-size: 10px;
    }
}

/* ======= Блок «Как мы работаем» ======= */
.how-we-work {
    background: #F8F6F6;
}

.how-we-work .title::before {
    display: none;
}

.how-we-work__desc {
    text-align: center;
    color: #777;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 520px;
    margin: 16px auto 50px;
}

.hww-timeline {
    position: relative;
}

/* Горизонтальная линия через все шаги */
.hww-line {
    position: absolute;
    top: 62px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #CE2601 20%, #CE2601 80%, transparent);
    z-index: 0;
}

.hww-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hww-step {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
    transition: transform 0.3s;
}

.hww-step:hover {
    transform: translateY(-6px);
}

.hww-step__number {
    font-size: 14px;
    font-weight: 800;
    color: #CE2601;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hww-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA5C00, #CB2100);
    color: #fff;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(206, 38, 1, 0.3);
    transition: box-shadow 0.3s, transform 0.3s;
}

.hww-step:hover .hww-step__icon {
    box-shadow: 0 8px 28px rgba(206, 38, 1, 0.45);
    transform: scale(1.08);
}

.hww-step__title {
    font-size: 18px;
    font-weight: 800;
    color: #131B32;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.hww-step__text {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.55;
    max-width: 200px;
    margin: 0 auto;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .hww-line {
        display: none;
    }

    .hww-steps {
        flex-direction: column;
        gap: 28px;
    }

    .hww-step {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 0;
        padding: 22px 24px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .hww-step:hover {
        transform: translateY(-3px);
    }

    .hww-step__number {
        display: none;
    }

    .hww-step__icon {
        margin: 0 14px 0 0;
        min-width: 48px;
        width: 48px;
        height: 48px;
    }

    .hww-step__title {
        margin-bottom: 0;
        font-size: 16px;
    }

    .hww-step__text {
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        padding: 0;
    }
}

/* ======= Карта: мобильная адаптация ======= */
.home-contact__map-link {
    display: none;
}

@media (max-width: 767px) {
    .home-contact__map {
        display: none !important;
    }

    .home-contact__map-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 40px);
        max-width: 400px;
        margin: 20px auto 30px;
        font-style: normal;
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .home-contact__map-link svg {
        flex-shrink: 0;
    }
}

/* ======= Кнопка «Оставить заявку» в карточках услуг ======= */
a.services-item__price {
    cursor: pointer;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    z-index: 4;
    transition: filter 0.3s, transform 0.3s;
}

a.services-item__price:hover {
    text-decoration: none !important;
    filter: brightness(1.15);
    transform: scale(1.05);
}

/* ======= Иконки в блоке «Почему выбирают наш сервис» ======= */
.steps-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA5C00, #CB2100);
    box-shadow: 0 4px 14px rgba(206, 38, 1, 0.25);
    margin-right: 20px;
    flex-shrink: 0;
}
/* Адаптивное видео в разделе ПРЕМЬЕР ТРАК */
.about-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Укажем правильное соотношение сторон, чтобы избежать скачков верстки */
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

@media (max-width: 1200px) {
    .about-list {
        display: flex;
        align-items: center; /* Центрируем видео и текст по вертикали, если высоты разные */
    }
}

@media (max-width: 992px) {
    .about-video {
        aspect-ratio: auto; /* На мобильных/планшетах пусть тянется естественно */
        margin-bottom: 25px;
    }
    
    .about-order {
        order: -1; /* Видео сверху на мобильных */
        margin-bottom: 30px !important;
    }
}
