/* ——— Медиа-запросы ——— */
@media (min-width: 360px) and (max-width: 1023px) {
    .site-header__nav--desktop,
    .site-header__contact--desktop { display: none; }
    .site-header__mobile-controls {
        display: flex;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .site-header__mobile-call { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-header__mobile-menu {
        /*top: 60px;*/
    }
}
@media (max-width: 759px) {
    .site-header__btn-call__mobile { display: none; }
}
@media (min-width: 360px) and (min-width: 1024px){
    /*.site-header__btn-call__mobile { display: none; }*/
}
@media (max-width: 768px) {
/*@media (min-width: 768px) and (max-width: 1023px) {*/
    .site-header__container { height: 52px; padding: 0 clamp(16px, 5%, 96px); }
    .site-header__nav--desktop,
    .site-header__contact--desktop { display: none; }
    /*.site-header__mobile { display: flex; gap: 16px; }*/

    .site-header__mobile-controls {
        display: flex;
        gap: 16px;
    }

    .site-header__search-btn svg {
        width: 24px;
        height: 24px;
    }

    .site-header__burger-btn svg {
        width: 24px;
        height: 24px;
    }

    .hero-slider { height: 600px; }
    .hero-slider__content { top: 120px; left: 30px; max-width: 320px; }
    .hero-slider__title { font-size: 36px; }
    .hero-slider__subtitle { font-size: 28px; }
    .hero-slider__btn { padding: 10px 20px; font-size: 14px; }
    .hero-slider__nav { bottom: 20px; right: clamp(16px, 5%, 96px); }
    .hero-slider__scroll-down { bottom: 20px; left: clamp(16px, 5%, 96px); }
    /*.hero-slider__arrow { width: 36px; height: 36px;}*/
}
@media (max-width: 1024px) {
    /*@media (min-width: 768px) and (max-width: 1023px) {*/
    .site-header__container {
        height: 52px;
        padding: 0 clamp(16px, 5%, 96px);
    }

    .site-header__nav--desktop,
    .site-header__contact--desktop {
        display: none;
    }
    .site-header__mobile-controls {
        display: flex;
        gap: 16px;
    }
}
@media (max-width: 767px) {
/*@media (min-width: 360px) and (max-width: 767px) {*/
    .site-header__container {
        height: 52px;
        padding: 0 16px 0 0;
        max-width: 360px;
    }
    .site-header__mobile { gap: 12px; }
    .site-header__logo img {
        width: auto;
        max-width: 235px !important;
    }
    .hero-slider {
        height: 470px;
    }

    .hero-slider__content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /*text-align: center;*/
        max-width: 280px;
        padding: 0 16px;
        z-index: 2;
    }

    .hero-slider__title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .hero-slider__subtitle {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    .hero-slider__content h1 {
        font-size: 28px;
    }

    .hero-slider__content h2 {
        font-size: 26px;
    }

    .hero-slider__btn {
        padding: 8px 16px;
        font-size: 12px;
        display: inline-block;
        margin: 0 auto;
    }

    /* Точки — по центру, над стрелками */
    .hero-slider__dots {
        position: absolute;
        bottom: 80px; /* отступ от низа */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 2;
    }

    .hero-slider__dot {
        width: 18px;
        height: 18px;
        cursor: pointer;
        border: none;
        background: none;
        padding: 0;
        outline: none;
    }

    .hero-slider__dot svg {
        width: 100%;
        height: 100%;
        fill: var(--primarylightgrey);
        transition: fill 0.3s ease;
    }

    .hero-slider__dot--active svg {
        fill: var(--gray-scalewhite);
    }

    .hero-slider__dot:hover svg {
        fill: var(--gray-scalegray-4);
    }

    /* Стрелки — НИЖЕ точек, по центру */
    .hero-slider__nav {
        position: absolute;
        bottom: 5px; /* отступ от низа */
        left: 51%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 2;
    }

    .hero-slider__arrow {
        width: 80px;
        height: 80px;
        background: none;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero-slider__arrow svg {
        width: 80px;
        height: 80px;
    }

    .hero-slider__arrow:hover {
        opacity: 0.5;
    }

    /* Иконка прокрутки — скрыта */
    .hero-slider__scroll-down {
        display: none;
    }

    .footer-section__submenu.active {
        display: block;
        max-width: 300px;
    }
}
/* about */
/* ——— Tablet: 768px и меньше ——— */
@media (max-width: 768px) {
    .about-section__container {
        flex-direction: column;
        gap: 24px;
        padding: 0 clamp(16px, 5%, 96px);
    }

    .about-section__title {
        font-size: 32px;
        min-width: auto;
    }

    .about-section__text {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    .about-section__btn {
        padding: 10px 20px;
    }
}

/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 360px) {
    .about-section__container {
        padding: 0 16px;
    }

    .about-section__title {
        font-size: 28px;
    }

    .about-section__text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .about-section__btn {
        width: 100%;
        padding: 8px 16px;
        text-align: center;
    }
}

/* ——— Tablet: 768px и меньше ——— */
@media (max-width: 768px) {
    .expert-section__container {
        flex-direction: column;
        gap: 24px;
        padding: 0 clamp(16px, 5%, 96px);
    }

    .expert-section__title {
        font-size: 32px;
        min-width: auto;
        max-width: 100%;
    }

    .expert-section__text {
        font-size: 16px;
        line-height: 1.4;
    }

    .expert-section {
        padding: 30px 0;
    }
}

/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 360px) {
    .expert-section__container {
        padding: 0 16px;
    }

    .expert-section__title {
        font-size: 28px;
        max-width: 100%;
    }

    .expert-section__text {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* ——— Tablet: 768px и меньше ——— */
@media (max-width: 768px) {
    .why-us-section__container {
        flex-direction: column;
        gap: 24px;
        padding: 0 clamp(16px, 5%, 96px);
    }

    .why-us-section__left {
        width: auto;
    }

    .why-us-section__title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .why-us-section__subtitle {
        font-size: 28px;
        margin-top: 24px;
    }

    .why-us-section__item-title {
        font-size: 16px;
    }

    .why-us-section__item-text {
        font-size: 16px;
        line-height: 1.4;
    }
}

/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 360px) {
    .why-us-section__container {
        padding: 0 16px;
    }

    .why-us-section__title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .why-us-section__subtitle {
        font-size: 24px;
        margin-top: 16px;
    }

    .why-us-section__item-title {
        font-size: 14px;
    }

    .why-us-section__item-text {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 1440px) {
    .contact-form__consent {
        margin-top:15px;
    }
    .consent-label {
        margin-top: -35px;
        margin-left: 40px;
    }
}
@media (max-width: 1024px) {}
/* ——— Tablet: 768px и меньше ——— */
@media (max-width: 768px) {
    .contact-section {
        padding: 30px 0;
    }
    .contact-section__container {
        flex-direction: column;
        gap: 24px;
        padding: 0 clamp(16px, 5%, 96px);
    }

    .contact-section__left {
        display: flex;
        flex-direction: row;      /* Заголовок и подзаголовок — в одну строку */
        align-items: center;      /* Выравнивание по вертикали */
        gap: 16px;                /* Отступ между заголовком и текстом */
        width: 100%;
    }

    .contact-section__title {
        font-size: 32px;
        margin-bottom: 16px;
        width: 50%;
    }

    .contact-section__subtitle {
        font-size: 16px;
        margin: 0;
    }

    .contact-section__form-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .contact-form__row {
        display: flex;
        gap: 16px;
    }

    .contact-form__footer {
        display: flex;
        gap: 24px;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .contact-form__captcha {
        flex-grow: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .captcha-label {
        margin: 0;
    }

    .captcha-info {
        font-size: 14px;
    }

    .contact-form__consent {
        flex-grow: 1;
        display: flex;
        flex-direction: column;        /* ✅ Элементы друг под другом */
        gap: 8px;                      /* Расстояние между чекбоксом, текстом и кнопкой */
        align-items: center;       /* ✅ Не центрировать по горизонтали */
        margin-top:15px;
    }

    .consent-label {
        margin-top: -65px;
        margin-left: 40px;
    }

    .contact-form__btn {
        width: 100%;
        padding: 10px 20px;
    }
}

/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 360px) {
    .contact-section__container {
        padding: 0 16px;
    }

    .contact-section__left {
        flex-direction: column;      /* Заголовок и подзаголовок — в одну строку */
        align-items: center;      /* Выравнивание по вертикали */
        gap: 16px;
    }

    .contact-section__title {
        font-size: 28px;
        width: 100%;
    }

    .contact-section__subtitle {
        font-size: 14px;
        width: 100%;
    }

    .contact-section__form-title {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 8px;
        font-size: 14px;
    }

    .contact-form__row {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form__footer {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form__captcha {
        padding: 0px;
        gap: 8px;
        width: 100%;
    }
    .smart-captcha{
        width: 100% !important;
    }

    .captcha-label {
        font-size: 14px;
    }

    .captcha-info {
        font-size: 12px;
    }

    .contact-form__consent {
        gap: 8px;
    }

    .contact-form__btn {
        padding: 8px 16px;
    }
    .consent-label {
        margin-top: -35px;
        margin-left:30px;
    }
    .contact-form__consent input[type="checkbox"],
    .contact-form__captcha input[type="checkbox"] {
        width: 26px;
        height: 26px;
    }
}

/* ——— Tablet: 768px и меньше ——— */
/*@media (max-width: 768px) {
    .available-section__container {
        padding: 0 clamp(16px, 5%, 96px);
    }

    .available-section__title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .available-section__gallery {
        flex-direction: column;
        gap: 24px;
    }

    .available-section__item {
        padding: 16px;
    }

    .available-section__item img {
        margin-bottom: 12px;
    }

    .available-section__item-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .available-section__nav {
        gap: 0px;
        margin-bottom: 16px;
    }

    .available-section__btn {
        padding: 10px 20px;
    }
}*/

/* ——— Mobile: 360px и меньше ——— */
/*@media (max-width: 360px) {
    .available-section__container {
        padding: 0 16px;
    }

    .available-section__title {
        font-size: 28px;
    }

    .available-section__item {
        padding: 12px;
    }

    .available-section__item img {
        margin-bottom: 8px;
    }

    .available-section__item-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .available-section__nav {
        gap: 0px;
        margin-bottom: 12px;
    }

    .available-section__btn {
        padding: 8px 16px;
    }
}*/
/* ——— 1024px: 2 слайда ——— */
@media (max-width: 1024px) {
    .available-section__item {
        width: calc((100% - 24px) / 2); /* 2 слайда + 1*gap=24px */
    }
    .footer-section__social-row {
        padding: 0 var(--layout-side-padding-1);
    }
    .footer-section__footer-row {
        padding: 0 var(--layout-side-padding-1);
    }
}

/* ——— ≤768px: 1 слайд ——— */
@media (max-width: 768px) {
    .available-section__container {
        padding: 0 clamp(16px, 5%, 96px);
    }

    .available-section__title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .available-section__gallery {
        gap: 16px;
        margin-bottom: 24px;
        padding: 0;
    }

    .available-section__item {
        width: 100%; /* один слайд на всю ширину */
        padding: 16px;
    }

    .available-section__item img {
        margin-bottom: 12px;
    }

    .available-section__item-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .available-section__nav {
        margin-bottom: 16px;
    }


    .available-section__btn {
        padding: 10px 20px;
    }
}

/* ——— ≤360px ——— */
@media (max-width: 360px) {
    .available-section__container {
        padding: 0 16px;
    }

    .available-section__title {
        font-size: 28px;
    }

    .available-section__item {
        padding: 12px;
    }

    .available-section__item img {
        margin-bottom: 8px;
    }

    .available-section__item-title {
        font-size: 14px;
    }

    .available-section__btn {
        padding: 8px 16px;
    }
}

/* ——— 1024px: 2 карточки в строке ——— */
@media (max-width: 1024px) {
    .catalog-section__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 40px;
    }

    /* Уменьшаем отступы, если нужно */
    .catalog-section__item {
        padding: 16px;
    }

    .catalog-section__item img {
        margin-bottom: 16px;
    }

    .catalog-section__item-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .catalog-section__item-specs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .catalog-section__item-param {
        font-size: 14px;
    }

    .catalog-section__btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
        text-align: center;
    }
}

/* ——— Tablet: 768px и меньше ——— */
@media (max-width: 768px) {
    .catalog-section__container {
        padding: 0 clamp(16px, 5%, 96px);
    }

    .catalog-section__title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .catalog-section__gallery {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .catalog-section__item {
        border: none;
        box-shadow: 0 1px 0 var(--primarylightgrey);
    }

    .catalog-section__item-content {
        padding: 16px;
    }

    .catalog-section__item-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .catalog-section__item-specs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .catalog-section__item-spec {
        font-size: 14px;
    }

    .catalog-section__item-param {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .catalog-section__item-param dd {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .catalog-section__item-param span:last-child {
        min-width: 60px;
    }

    .catalog-section__btn {
        width: 100%;
        padding: 10px 20px;
        text-align: center;
    }

    .catalog-section__btn-all {
        padding: 10px 20px;
    }
}

/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 360px) {
    .catalog-section__container {
        padding: 0 16px;
    }

    .catalog-section__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .catalog-section__item-content {
        padding: 12px;
    }

    .catalog-section__item-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .catalog-section__item-spec {
        font-size: 12px;
    }

    .catalog-section__item-param {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .catalog-section__item-param dd {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .catalog-section__item-param span:last-child {
        min-width: 50px;
    }

    .catalog-section__btn {
        padding: 8px 16px;
    }

    .catalog-section__btn-all {
        padding: 8px 16px;
    }
}

/* ——— 1024px: 2 карточки ——— */
@media (max-width: 1024px) {
    .reviews-section__item {
        width: calc((100% - 24px) / 2); /* 2 слайда + 1*gap=24px */
    }
}

/* ——— 768px: 1 карточка ——— */
@media (max-width: 768px) {
    .reviews-section__container {
        padding: 0 clamp(16px, 5%, 96px);
    }

    .reviews-section__title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .reviews-section__gallery {
        gap: 24px;
        margin-bottom: 24px;
    }

    .reviews-section__item {
        width: 100%;
    }

    .reviews-section__item img {
        margin-bottom: 16px;
    }

    .reviews-section__item-content {
        padding: 16px;
    }

    .reviews-section__item-name {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .reviews-section__item-position {
        font-size: 14px;
    }

    .reviews-section__nav {
        margin-bottom: 16px;
    }

   .reviews-section__btn {
        padding: 10px 20px;
    }
}

/* ——— 360px ——— */
@media (max-width: 360px) {
    .reviews-section__container {
        padding: 0 16px;
    }

    .reviews-section__title {
        font-size: 28px;
    }

    .reviews-section__item img {
        margin-bottom: 12px;
    }

    .reviews-section__item-content {
        padding: 12px;
    }

    .reviews-section__item-name {
        font-size: 14px;
    }

    .reviews-section__item-position {
        font-size: 12px;
    }

    .reviews-section__btn {
        padding: 8px 16px;
    }
}


@media (max-width: 1024px) {
    .footer-section__container {
        padding: 0 var(--layout-side-padding-1);
    }
}
/* ——— Tablet: 768px и меньше ——— */
/* ——— Tablet: 768px и меньше ——— */
@media (max-width: 768px) {
    .footer-section__container {
        padding: 0 clamp(16px, 5%, 96px);
    }

    .footer-section__logo img {
        height: 28px;
    }

    .footer-section__menu {
        gap: 24px;
    }

    .footer-section__menu-link,
    .footer-section__menu-toggle {
        font-size: 16px;
        line-height: 1.4;
    }

    .footer-section__submenu-link {
        font-size: 16px;
        line-height: 1.4;
    }

    .footer-section__phone {
        font-size: 24px;
    }

    .footer-section__call-link {
        font-size: 16px;
    }

    .footer-section__social-link {
        width: 28px;
        height: 28px;
    }

    .footer-section__social-link svg {
        width: 28px;
        height: 28px;
    }

    .footer-section__copyright-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__iso-logo {
        width: 32px;
        height: 32px;
    }

    .footer-section__policy-link {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Уменьшаем отступы */
    .footer-section__contact {
        gap: 8px;
    }

    .footer-section__social {
        gap: 8px;
    }

    .footer-section__footer-row {
        padding-top: 16px;
    }
}

/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 360px) {
    .footer-section__container {
        padding: 0 16px;
    }

    .footer-section__logo img {
        height: 24px;
    }

    .footer-section__menu {
        gap: 16px;
    }

    .footer-section__menu-link,
    .footer-section__menu-toggle {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__submenu-link {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__phone {
        font-size: 20px;
    }

    .footer-section__call-link {
        font-size: 14px;
    }

    .footer-section__social-link {
        width: 24px;
        height: 24px;
    }

    .footer-section__social-link svg {
        width: 24px;
        height: 24px;
    }

    .footer-section__copyright-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-section__iso-logo {
        width: 24px;
        height: 24px;
    }

    .footer-section__policy-link {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-section__contact {
        gap: 4px;
    }

    .footer-section__social {
        gap: 4px;
    }

    .footer-section__footer-row {
        padding-top: 8px;
    }
}

/* ——— Tablet: 768px и меньше ——— */
/*@media (max-width: 768px) {
    .footer-section__container {
        flex-direction: column;
        gap: 24px;
        padding: 0 clamp(16px, 5%, 96px);
    }

    .footer-section__left {
        align-items: flex-start;
        order: 1;
    }

    .footer-section__center {
        width: 100%;
        align-items: flex-start;
        order: 3;
    }
    .footer-section__right {
        order: 2;
    }

    .footer-section__nav {
        display: flex;
        gap: 24px;
    }

    .footer-section__menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 32px;
    }

    .footer-section__menu-link,
    .footer-section__menu-toggle {
        font-size: 16px;
        line-height: 1.4;
    }

    .footer-section__submenu-link {
        font-size: 16px;
        line-height: 1.4;
    }

    .footer-section__phone {
        font-size: 24px;
    }

    .footer-section__call-link {
        font-size: 16px;
    }

    .footer-section__social {
        gap: 8px;
    }

    .footer-section__social-link {
        width: 28px;
        height: 28px;
    }

    .footer-section__social-link svg {
        width: 28px;
        height: 28px;
    }

    .footer-section__copyright-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__iso-logo {
        width: 32px;
        height: 32px;
    }

    .footer-section__policy-link {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__contact {
        gap: 8px;
    }

    .footer-section__footer-row {
        padding-top: 16px;
    }
}*/
@media (max-width: 768px) {
    .footer-section__container {
        flex-direction: row;
        flex-wrap: wrap;        /* ← позволяет переносить блоки */
        gap: 0;                 /* ← сбросим gap, будем использовать margin */
        padding: 0 clamp(16px, 5%, 96px);
    }

    .footer-section__left {
        order: 1;
        flex: 1 1 auto;         /* занимает доступное пространство слева */
        display: flex;
        align-items: center;
    }

    .footer-section__right {
        order: 2;
        flex: 0 0 auto;         /* не растягивается, только под содержимое */
        text-align: right;
        margin-left: auto;      /* прижимает к правому краю */
    }

    .footer-section__center {
        order: 3;
        flex: 1 1 100%;         /* занимает всю ширину под логотипом/телефоном */
        width: 100%;
        align-items: flex-start;
        margin-top: 16px;       /* отступ сверху */
    }

    .footer-section__nav {
        display: flex;
        gap: 24px;
    }

    .footer-section__menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 24px;              /* чуть уменьшим для компактности */
    }

    .footer-section__menu-link,
    .footer-section__menu-toggle {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer-section__submenu-link {
        font-size: 12px;
        line-height: 1.4;
    }
    .footer-section__submenu.active {
        margin-left: -30px;
        background-color: var(--gray-scaleblack-1);
        padding: 8px 16px;
    }

    .footer-section__phone {
        font-size: 24px;
    }

    .footer-section__call-link {
        font-size: 16px;
    }

    .footer-section__contact {
        gap: 8px;
    }


    /* Остальные стили без изменений */
    .footer-section__social {
        gap: 8px;
    }

    .footer-section__social-link {
        width: 28px;
        height: 28px;
    }

    .footer-section__social-link svg {
        width: 28px;
        height: 28px;
    }

    .footer-section__copyright-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__iso-logo {
        width: 32px;
        height: 32px;
    }

    .footer-section__policy-link {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__footer-row {
        padding-top: 16px;
    }
    .footer-section__logo{
        margin-top: unset;
    }
}
/* ——— Mobile: 360px и меньше ——— */
@media (max-width: 500px) {
    .footer-section__container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
        align-items: center; /* ← все элементы по центру */
    }

    .footer-section__left {
        align-items: center;
    }

    .footer-section__logo img {
        height: 34px;
    }

    .footer-section__center {
        width: 100%;
        align-items: center;
    }

    .footer-section__right {
        align-items: center;
        text-align: center; /* ← текст по центру */
        margin-left: unset;
    }

    .footer-section__contact {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center; /* ← телефон и звонок по центру */
    }

    .footer-section__nav {
        display: flex;
        gap: 16px;
        justify-content: center; /* ← меню по центру */
    }

    .footer-section__menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 16px;
        justify-content: center; /* ← пункты меню по центру */
    }

    .footer-section__menu-link,
    .footer-section__menu-toggle {
        line-height: 1.4;
    }

    .footer-section__submenu {
        background-color: var(--gray-scaleblack-1);
    }

    .footer-section__submenu-link {
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-section__phone {
        font-size: 20px;
    }

    .footer-section__call-link {
        font-size: 14px;
    }

    .footer-section__social-row {
        justify-content: center;
    }

    .footer-section__social {
        display: flex;
        gap: 4px;
        justify-content: center; /* ← соцсети по центру */
        text-align: center !important;
    }

    .footer-section__social-link {
        width: 32px;
        height: 32px;
    }

    .footer-section__social-link svg {
        width: 32px;
        height: 32px;
    }

    .footer-section__copyright {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center; /* ← копирайт по центру */
    }

    .footer-section__iso-logo {
        width: 24px;
        height: 24px;
    }

    .footer-section__policy-link {
        line-height: 1.4;
        text-align: center;
    }

    /* Уменьшаем отступы */
    .footer-section__contact {
        gap: 4px;
    }

    /* Нижний ряд — политики ПОД копирайтом */
    .footer-section__footer-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding-top: 8px;
        width: 100%;
    }

    .footer-section__footer-left {
        display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: center;
        order: 6;
    }

    .footer-section__footer-right {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 5;
    }

    /* Специфично для 360px — политики под копирайтом */
    .footer-section__footer-row {
        order: 7;
    }
}


/* ——— Позиционирование по умолчанию — под инпутом ——— */
@media (max-width: 1023px) {
    .calendar-popup__container,
    .timepicker-popup__container {
        top: auto;
        left: 0;
        /*bottom: 100%;*/
        transform: none;
        margin-bottom: 8px;
    }

    .popup-arrow {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) rotate(180deg);
    }
}

/* ——— Позиционирование при десктопе — справа от инпута ——— */
@media (min-width: 1024px) {
    .calendar-popup__container,
    .timepicker-popup__container {
        top: 100%;
        left: 0;
        transform: translateY(8px);
        margin-left: -8px;
    }

    .popup-arrow {
        top: 8px;
        left: 8px;
        transform: rotate(-90deg);
    }
}

/* ——— Мобильные попапы ——— */
@media (max-width: 1023px) {
    .calendar-popup__container,
    .timepicker-popup__container {
        max-width: 95vw;
        width: auto;
        overflow-y: auto;
        max-height: 70vh;
        padding: 16px; /* уменьшаем отступы для компактности */
    }

    .calendar-popup__header {
        flex-direction: column;
        gap: 8px;
    }

    .calendar-popup__month-selector {
        width: 100%;
    }

    .calendar-popup__btn-cancel,
    .calendar-popup__btn-select {
        width: 50%;
        font-size: 14px;
        padding: 8px;
    }

    .timepicker-popup__container {
        max-width: 95vw;
        width: auto;
        overflow-y: auto;
        max-height: 70vh;
        padding: 16px;
    }

    .timepicker-popup__time-selector {
        width: 100%;
        gap: 4px;
    }

    .timepicker-popup__hour-select,
    .timepicker-popup__minute-select,
    .timepicker-popup__ampm-select {
        width: 33%;
        font-size: 14px;
        padding: 8px;
    }

    .timepicker-popup__btn-cancel,
    .timepicker-popup__btn-select {
        width: 50%;
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 1023px) {
    /*.calendar-popup__container,
    .timepicker-popup__container {
        position: relative;
    }*/

    .popup-arrow {
        top: -8px !important;
        left: 50% !important;
        transform: translateX(-50%) rotate(180deg) !important;
    }
}

@media (max-width: 768px) {
    .video-popup__container {
        max-width: 95%;
    }
    .video-popup__header {
        padding: 6px 10px;
    }
    .video-popup__title {
        font-size: 12px;
    }
    .video-popup__actions {
        gap: 8px;
        font-size: 11px;
    }
    .video-popup__play-button {
        width: 50px;
        height: 50px;
    }
    .video-popup__footer {
        padding: 6px 10px;
        font-size: 11px;
    }
    .video-popup__close {
        transform: none;
    }
}

/* Для мобильной адаптации */

@media (max-width: 1024px) {
    .filter-group {
        flex: 1 1 calc((100% - 2 * 8px) / 3); /* 3 в строке */
    }
}

@media (max-width: 768px) {
    .filter-group {
        flex: 1 1 100%; /* 1 в строке */
    }
}

@media (max-width: 768px) {
    .pagination {
        padding: 6px 12px;
        gap: 6px;
    }
    .pagination-page,
    .pagination-arrow {
        padding: 3px 6px;
        font-size: 12px;
    }
}
/* Планшет (до 768px) */
@media (max-width: 768px) {
    .banner-content--desktop {
        left: var(--layout-side-padding-1);
        bottom: 60px;
        padding: 24px;
    }

    .banner-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .banner-model {
        /*font-size: 18px;*/
    }
}

/* Мобильный (до 360px) */
@media (max-width: 767px) {
    .banner-content--desktop {
        display: none;
    }

    .banner-content--mobile {
        display: block;
        padding: 20px 12px;
        background-color: var(--gray-scalegray-1);
        color: var(--gray-scalewhite);
        margin-top: 0;
    }

    .banner-title {
        font-family: var(--h2-mobile-font-family);
        font-weight: var(--h2-mobile-font-weight);
        font-size: var(--h2-mobile-font-size);
        line-height: var(--h2-mobile-line-height);
        margin: 0 0 8px;
    }

    .banner-model {
        line-height: 1.5;
        margin: 0 0 16px;
    }

    .btn-order {
        padding: 12px 48px;
        font-size: 14px;
    }
}

/* Планшет и меньше (до 1440px) — остаётся вертикальная компоновка */
@media (max-width: 1440px) {
    .advantages-layout__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-layout__title {
        line-height: 1.2;
    }

    .advantage-item__value {
        line-height: 1.2;
    }
}
@media (max-width: 768px) {
    .advantages-layout__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
/* Мобильный (до 360px) — 1 колонка */
@media (max-width: 360px) {
    .advantages-layout__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantages-layout__title {
        padding-left: 12px;
        padding-right: 12px;
    }

    .advantage-item__value {
        line-height: 1.3;
    }

    .advantage-item__desc {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Десктоп (1920px и выше) — двухколоночная компоновка: заголовок слева, сетка справа */
/*@media (min-width: 1920px) {
    .advantages-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        max-width: 1920px;
        margin: 0 auto;
    }

    .advantages-layout__title {
        width: clamp(200px, 20%, 280px);
        flex-shrink: 0;
    }

    .advantages-layout__grid {
        flex: 1;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}*/

/* Только на маленьком экране — вертикальная компоновка */
@media (max-width: 360px) {
    .specs-block__title_trailer {
        font-size: 24px;
        line-height: 1.3;
        padding-left: 12px;
        padding-right: 12px;
    }

    .specs-layout_trailer {
        flex-direction: column;
        gap: 20px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .specs-table_trailer,
    .specs-description_trailer {
        width: 100%;
    }

    /* Параметры — вертикально */
    .catalog-section__item-param_trailer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }

    .catalog-section__item-param_trailer dt,
    .catalog-section__item-param_trailer dd {
        font-size: 12px;
        line-height: 1.5;
    }

    .catalog-section__item-param_trailer dd {
        text-align: left;
    }
}

/* 360px */
@media (max-width: 360px) {
    .gallery-main_content_gallery {
        max-width: 300px;
    }
}

/* 768px */
@media (min-width: 769px) and (max-width: 1023px) {
    .gallery-main_content_container {
        max-width: 656px;
    }
}

/* 1024px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .gallery-main_content_gallery {
        max-width: 730px;
    }
}

/* 1440px */
@media (min-width: 1440px) and (max-width: 1919px) {
    .gallery-main_content_gallery {
        max-width: 1106px;
    }
}

/* 1920px+ */
@media (min-width: 1920px) {
    .gallery-main_content_gallery {
        max-width: 1546px;
    }
}

@media (min-width: 1025px) {
    .gallery .swiper-slide {
        width: calc(100% - 300px); /* или любая нужная ширина */
    }
}

@media (max-width: 768px) {
    .contact-trailers__container {
        padding: 0 16px;
    }

    .contact-trailers__left {
        flex-direction: column;      /* Заголовок и подзаголовок — в одну строку */
        align-items: center;      /* Выравнивание по вертикали */
        gap: 16px;
    }

    .contact-trailers__title {
        font-size: 28px;
        width: 100%;
    }

    .contact-trailers__subtitle {
        font-size: 14px;
        width: 100%;
    }

    .contact-trailers-img,.contact-trailers-img img{
        position: relative;
        width: 100%;
        padding-top:5px;
    }

    .contact-section__form-title {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 8px;
        font-size: 14px;
    }

    .contact-form__row {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form__footer {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form__captcha {
        padding: 0px;
        gap: 8px;
        width: 100%;
    }
    .smart-captcha{
        width: 100% !important;
    }

    .captcha-label {
        font-size: 14px;
    }

    .captcha-info {
        font-size: 12px;
    }

    .contact-form__consent {
        gap: 8px;
    }

    .contact-form__btn {
        padding: 8px 16px;
    }
    .consent-label {
        margin-top: -35px;
        margin-left:30px;
    }
    .contact-form__consent input[type="checkbox"],
    .contact-form__captcha input[type="checkbox"] {
        width: 26px;
        height: 26px;
    }
}

@media (min-width: 768px) {
    .base-complectation__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .base-complectation__title {
        font-size: 24px;
    }

    .base-complectation__text {
        font-size: 16px;
    }
    .expert-trailer__title {
        font-size: 18px;
        /*padding-top:10px;*/
    }
}
@media (min-width: 1440px) {
    .base-complectation__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .base-complectation__title {
        font-size: 28px;
    }

    .base-complectation__text {
        font-size: 16px;
        line-height: 1.6;
    }

    .base-complectation__item {
        /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
    }
}
@media (max-width: 360px) {
    .expert-trailer__title {
        font-size: 18px;
        max-width: 100%;
        padding-top:10px;
    }
}
@media (max-width: 1440px) {
    .advantages-layout {
        flex-direction: column;
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .bx-breadcrumb--overlay {
        top: 52px;
        margin-left: 16px;
    }
    .bx-breadcrumb--overlay .bx-breadcrumb-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}


/* Мобильная адаптация */
@media (max-width: 768px) {
    .service-text-block {
        padding: 32px 20px;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* До 360px — высота 530px, правый край виден */
@media (max-width: 767px) {
    .service-banner-container {
        height: 530px;
    }
    .service-banner-image {
        height: 530px;
        object-position: right center; /* ← ключевое изменение */
    }
    .service-banner-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .service-banner-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Ровно 768px — высота 616px, правый край виден */
@media (min-width: 768px) and (max-width: 768px) {
    .service-banner-container {
        height: 616px;
    }
    .service-banner-image {
        height: 616px;
        object-position: right center; /* ← ключевое изменение */
    }
}

/* От 361px до 767px — тоже сдвигаем вправо */
@media (min-width: 361px) and (max-width: 767px) {
    .service-banner-image {
        object-position: right center; /* ← чтобы не терять правый край при промежуточных размерах */
    }
}

/* Десктоп: центр (по умолчанию) */
@media (min-width: 769px) {
    .service-banner-container {
        height: auto;
    }
    .service-banner-image {
        object-position: center center;
    }
}

@media (max-width: 1439px) and (min-width: 769px) {
    .tsm-service-about {
        padding: 50px 40px;
        flex-direction: column;
        gap: 30px;
    }

    .tsm-service-about__left {
        flex: 0 0 auto;
        width: 100%;
    }

    .tsm-service-about__title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .tsm-service-about__right {
        width: 100%;
    }

    .tsm-service-about__desc {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 30px;
    }

    .tsm-service-about__contacts-heading,
    .tsm-service-about__cta-heading {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .tsm-service-about__contacts-grid {
        display: flex;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 30px;
    }

    /* На планшете границы не нужны */
    /*.tsm-service-about__contact-card {
        padding-right: 0;
    }

    .tsm-service-about__contact-card:nth-child(odd) {
        border-right: none;
    }*/

    .tsm-service-about__contact-name {
        font-size: 17px;
    }

    .tsm-service-about__contact-position {
        font-size: 13px;
    }

    .tsm-service-about__contact-phone {
        font-size: 15px;
    }

    .tsm-service-about__contact-email {
        font-size: 13px;
    }

    .tsm-service-about__cta-button {
        padding: 12px;
        font-size: 15px;
        border-radius: 3px;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    .tsm-service-about {
        padding: 40px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .tsm-service-about__left {
        width: 100%;
    }

    .tsm-service-about__title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .tsm-service-about__desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .tsm-service-about__contacts-heading,
    .tsm-service-about__cta-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .tsm-service-about__contacts-grid {
        display: flex;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 30px;
    }

    /* На мобильных границы не нужны */
    /*.tsm-service-about__contact-card {
        padding-right: 0;
    }

    .tsm-service-about__contact-card:nth-child(odd) {
        border-right: none;
    }*/

    .tsm-service-about__contact-card {
        gap: 8px;
    }

    .tsm-service-about__contact-name {
        font-size: 16px;
    }

    .tsm-service-about__contact-position {
        font-size: 12px;
    }

    .tsm-service-about__contact-phone {
        font-size: 14px;
    }

    .tsm-service-about__contact-email {
        font-size: 12px;
    }

    .tsm-service-about__cta-button {
        padding: 12px;
        font-size: 14px;
        border-radius: 3px;
        box-sizing: border-box;
    }
    .tsm-service-about__left {
        flex: 0 0 auto;
        width: 100%;
    }
}
@media (max-width: 767px) {
    .tsm-service-about__contacts-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin-bottom: 30px;
    }
    .tsm-service-about__contact-card {
        padding-right: 0;
    }

    .tsm-service-about__contacts-grid .tsm-service-about__contact-card:nth-child(2n+1) {
        border-right: none;
    }
    .tsm-service-about__left {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Планшеты: 768px – 1024px → 2 колонки */
@media (min-width: 768px) and (max-width: 1024px) {
    .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные: до 360px → 1 колонка */
@media (max-width: 767px) {
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильные: ≤360px — одна колонка */
@media (max-width: 360px) {
    .tsm-service-map {
        padding: 40px 20px;
    }

    .tsm-service-map__header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tsm-service-map__title {
        font-size: 28px;
    }

    .tsm-service-map__desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .tsm-service-map__map {
        height: 400px;
    }
}

/* Мобильные устройства */
@media (max-width: 360px) {
    .company-history {
        flex-direction: column;
        padding: 40px 20px;
    }

    .company-history__nav {
        position: static;
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;
    }

    .company-history__content {
        width: 100%;
    }
}
/* 3 колонки: 1440–1920 */
@media (min-width: 1440px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 2 колонки: 1024–1439 */
@media (min-width: 1024px) and (max-width: 1439px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 1 колонка: ≤1023 */
@media (max-width: 1023px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* Мобильные отступы */
@media (max-width: 768px) {
    .news-section {
        padding: 40px 20px;
    }
}


/* 1920 – 1440px: заголовок 30% */
@media (min-width: 1441px) {
    .welcome-title {
        width: 30%;
    }
}

/* 1440 – 1024px: можно оставить как есть или уточнить — но по ТЗ только 1024 = 50% */
@media (max-width: 1440px) and (min-width: 1024px) {
    .welcome-title {
        width: 50%;
    }
}

/* ≤1023px: мобильная версия — 1 колонка */
@media (max-width: 1023px) {
    .welcome-layout {
        flex-direction: column;
        gap: 32px;
    }

    .welcome-title {
        width: 100% !important;
        text-align: left;
        font-size: 28px;
    }

    .welcome-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .welcome-text {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

/* Дополнительно: уменьшаем отступы на малых экранах */
@media (max-width: 768px) {
    .welcome-section {
        padding: 60px 0;
    }

    .welcome-title {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .welcome-section {
        padding: 40px 0;
    }

    .welcome-title {
        font-size: 24px;
        padding: 0 var(--layout-side-padding);
    }
}

@media (max-width: 767px) {
    :root {
        --desktop-h2-font-size: 28px;
    }
    .service-banner-title {
        font-size: 24px !important;
    }
    .tsm-service-map__header {
        grid-template-columns: 1fr !important;
    }
    .specs-layout_trailer {
        flex-direction: column;
        gap: 20px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .specs-table_trailer, .specs-description_trailer {
        width: 100%;
    }
    .specs-item {
        flex-direction: column;
    }
 .contact-section__left {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
.contact-section__title {
    font-size: 28px;
    width: 100%;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .service-banner-title {
        font-size: 40px !important;
    }
}

/* Фикс для вертикального центрирования контента в слайдах */
.hero-slider__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Растягиваем на всю высоту слайда */
    top: 0; /* Обнуляем top: 200px */
    transform: none; /* Сбрасываем трансформации для десктопа */
}

/* На мобильных устройствах сохраняем центрирование через translate */
@media (max-width: 767px) {
    .hero-slider__content {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        height: auto; /* Убираем фиксированную высоту */
        min-height: auto; /* Сбрасываем min-height */
        display: block; /* Отключаем flex на мобильных */
        /*text-align: center;*/ /* Центрируем текст по горизонтали */
        width: 100%; /* На всю ширину */
        max-width: 320px; /* Ограничиваем ширину как в media.css */
    }

    /* Для элементов внутри сохраняем отступы как в оригинале */
    .hero-slider__title {
        margin-bottom: 8px;
    }

    .hero-slider__subtitle {
        margin-bottom: 20px;
    }
}

/* Фикс для вертикального центрирования контента в banner-container на десктопе */
@media (min-width: 768px) {
    .banner-container {
        position: relative;
    }

    .banner-content--desktop {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        top: 0;
        bottom: 0;
        transform: none;
        padding: 0; /* Сбрасываем лишние отступы */
        max-width: 800px;

    }

    /* Сохраняем отступы для текста, если нужны */
    .banner-content--desktop .banner-model {
        margin-bottom: 24px; /* Как в оригинале */
        font-size: var(--desktop-h1-font-size);
    }
}
@media (min-width: 768px) and (max-width: 1023px) {

    .banner-content--desktop .banner-model {
        margin-bottom: 24px; /* Как в оригинале */
        font-size: var(--desktop-h2-font-size);
    }
}