@media (min-width: 1400px) {
  .cars .carousel__button--prev {
    left: -4%;
  }
  
  .cars .carousel__button--next {
    right: -4%;
  }
}
@media (min-width: 1180px) {
  .social-icon:hover {
    background-color: var(--color-red);
  }
  .social-icon--colorful:hover {
    background-color: var(--color-dark);
  }
  .carousel__slide {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(
      (100% - var(--slides-gap) * (var(--slides-to-show) - 1)) /
        var(--slides-to-show)
    );
  }
  .feedback .video__play-button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .feedback .carousel__slide--active .video__play-button {
    opacity: 1;
    pointer-events: auto;
  }
  

}
@media (max-width: 1180px) {
  /* variebles */

  :root {
    --padding-inline: 16px;
  }

  /* snippents */

  
  .logo__icon {
    width: 40px;
  }
  body.active-menu {
    height: 100%;
    overflow: hidden;
  }
  .active-menu .header__menu {
    transform: translateX(0);
  }
  /* header */
  .header__burger {
    display: block;
  }
  .header__contacts-numbers {
    display: none;
  }
  .header__menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);

    background-color: var(--color-light);

    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 50px;

    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    transform: translateX(-100%);
    transition: transform var(--transition-duration);
  }
  .header__menu-list {
    flex-direction: column;
    font-size: 1.5rem;
    row-gap: 40px;
    margin-top: 30px;
  }

  .accordion__button {
    width: 44px;
  }

  .accordion__summary {
    column-gap: 40px;
  }

  .faq__accordion-button-line:nth-child(1) {
    width: 18px;
    height: 2px;
  }
  .faq__accordion-button-line:nth-child(2) {
    width: 2px;
    height: 18px;
  }

  /* menu */

  .menu__copyright {
    margin-block: 60px;
    flex-direction: column-reverse;
    align-items: center;
  }
  .menu__number {
    margin-top: 60px;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    column-gap: 8px;
  }
  .menu__number::before {
    content: "";
    background: url("../icons/phone.svg") no-repeat center / contain;
    width: 24px;
    aspect-ratio: 1;
  }
  .menu__socials {
    margin-top: 22px;
  }

  /* hero */
  .hero {
    margin-top: 44px;
  }
  .hero__text-wrapper {
    display: contents;
  }
  .hero .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hero__title {
    order: 1;
  }
  .hero__image {
    order: 2;
  }
  .hero__description {
    order: 3;
  }
  .hero__button {
    order: 4;
  }

  /* .solutions */

  .solutions {
    padding-block: 64px 18px;
    margin-top: 64px;
  }
  .solutions__text-wrapper {
    display: contents;
  }

  .solutions .container {
    display: flex;
    flex-direction: column;
  }
  .solutions__title {
    order: 1;
  }
  .solutions__description {
    order: 2;
  }
  .solutions__cards {
    order: 3;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;

    margin-bottom: 78px;
  }
  .solutions__card:last-child {
    grid-column: span 2;
  }
  .solutions__button {
    order: 4;
  }
  /* about us */

  .about-us {
    flex-direction: column;
  }
  .about-us .container {
    margin-inline: auto;
    text-align: center;
  }
  .about-us__item::before {
    width: 44px;
  }

  /* cars */
  .cars {
    --cars-card-inner-gap: 16px;
  }

  


  /* process */

  .process__step-content-item {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .process__step {
    padding-left: 0;
  }
  .process__step-button-line {
    width: 13px;
    height: 2px;
  }

  /* benefits */

  .benefits__grid {
    grid-template-columns: 1fr;
  }
  .agreement__benefits .benefits__item {
    grid-column: span 1;
  }

  /* agreement */
  .agreement__text-wrapper {
    flex-direction: column;
    row-gap: 16px;
  }

  /* achievement */

  .carousel {
    --slides-gap: 16px;
    --slides-to-show: 2;
  }

  .achievement .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
  }
  .achievement__header,
  .achievement__header-content {
    display: contents;
  }

  .achievement__button {
    order: 1;
  }

  /* consult */

  .consult .container {
    flex-direction: column;
    align-items: center;
    row-gap: 12px;
  }

  /* footer */
  .footer {
    padding-block: 60px 26px;
  }
  .footer__contacts {
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer__contact {
    row-gap: 12px;
  }
  .footer__map {
    margin-bottom: 24px;
  }
}

/* Планшеты: реально показываем 2–3 слайда (как в --slides-to-show), а не 100%-ную ширину */
@media (min-width: 992px) and (max-width: 1179px) {
  .carousel {
    --slides-to-show: 3;
    --slides-gap: 18px;
  }
}

@media (min-width: 776px) and (max-width: 1179px) {
  .carousel__slide {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(
      (100% - var(--slides-gap) * (var(--slides-to-show) - 1)) /
        var(--slides-to-show)
    );
  }

  .carousel__button {
    width: 56px;
  }

  .feedback .video__play-button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .feedback .carousel__slide--active .video__play-button {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Узкий планшет / портрет: отзывы — компактнее масштаб и стрелки у края */
@media (min-width: 776px) and (max-width: 991px) {
  .feedback .carousel {
    padding-inline: clamp(12px, 3vw, 28px);
  }

  .feedback .carousel__button--prev {
    left: clamp(4px, 1.5vw, 16px);
  }

  .feedback .carousel__button--next {
    right: clamp(4px, 1.5vw, 16px);
  }

  .feedback .carousel__track {
    height: auto;
    min-height: 340px;
    align-items: flex-start;
  }

  .feedback .carousel__slide {
    transform: scale(0.94);
    opacity: 0.72;
  }

  .feedback .carousel__slide--active {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 775px) {

  .button {
    min-width: 100%;
  }
  /* achievement */

  .carousel__track {
    --slides-viewport: 1;
  }

  .carousel__button {
    display: none;
  }

  /* feedback */
  .feedback {
    padding-block: 64px;
  }

  .feedback__title {
    margin-bottom: 28px;
  }

  .feedback .carousel {
    padding-inline: var(--padding-inline);
  }

  .feedback .carousel__track {
    height: auto;
    align-items: stretch;
  }
  

  .feedback .carousel__slide,
  .feedback .carousel__slide--active {
    transform: none;
    opacity: 1;
  }

  .feedback .video {
    max-width: none;
    border-radius: 24px;
  }

  .feedback .video__description {
    opacity: 1;
    margin-top: 16px;
  }

  /* team */
  .team__cards {
    grid-template-columns: minmax(200px, 320px);
    justify-content: center;
  }
  .team__card-figure {
    padding: 0;
    min-height: auto;
    gap: 12px;
  }
  .team__card-image {
    position: relative;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .team__card-caption {
    text-align: center;
  }
  .team__card-contacts-list {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .solutions__cards {
    grid-template-columns: 1fr;
  }
  .solutions__card:last-child {
    grid-column: 1;
  }

  /* about us */

  .about-us .container {
    text-align: start;
  }

  /* guarantees */

  .guarantees__grid {
    grid-template-columns: 1fr;
  }

  .guarantees__item {
    padding: 14px 20px;
  }
  .guarantees__item::before {
    width: 44px;
  }

  /* footer */

  .footer__copyright {
    flex-direction: column-reverse;
    row-gap: 8px;
  }
}
