/* ── 1439 ── */
@media (max-width: 1439.98px) {
  .split {
    grid-template-columns: 46% 32% 1fr;
  }

  .product__wrapper {
    grid-template-columns: minmax(0, 28fr) minmax(0, 44fr) minmax(0, 28fr);
  }
}

/* ── 1023 ── */
@media (max-width: 1023.98px) {
  :root {
    --header-height: 60px;
  }

  /* на телефоне шапка — логотип и «Коллекция» — всегда на месте, на плашке в цвет подвала */
  .header {
    position: fixed;
    color: var(--color-footer-text);
    background-color: var(--color-footer);
  }

  .header._logo-only {
    right: 0;
  }

  /* шапка из одного логотипа той же высоты, что и обычная */
  .header._logo-only .header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__wrapper {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-block: 8px;
  }

  .header__nav,
  .header__contact {
    display: none;
  }

  .header__logo {
    margin-top: 0;
    color: var(--color-footer-text);
  }

  .header__logo-svg {
    width: 54px;
  }

  .burger {
    display: block;
    color: var(--color-footer-text);
  }

  /* первый экран — лента образов на всю высоту экрана под шапкой; лента продолжает ехать */
  .hero {
    height: auto;
    min-height: 0;
    padding-top: var(--header-height);
  }

  .hero-ticker {
    height: calc(100svh - var(--header-height));
  }

  .hero-ticker__item {
    width: calc((100svh - var(--header-height)) * 9 / 16);
    min-width: 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* на сенсорных экранах наведения нет — название и цена всегда видны, сразу под фото */
  .card__veil,
  .feature__veil {
    display: none;
  }

  .card__caption {
    position: static;
    padding: 8px 10px 18px;
    font-size: 13px;
    line-height: 130%;
    opacity: 1;
    transform: none;
  }

  .feature__item {
    aspect-ratio: auto;
    overflow: visible;
    background-color: transparent;
  }

  .feature__item .feature__img {
    height: auto;
    aspect-ratio: 3 / 4;
    background-color: var(--color-surface);
  }

  .feature__caption {
    position: static;
    padding: 8px 0 0;
    font-size: 14px;
    line-height: 130%;
    opacity: 1;
    transform: none;
  }

  .card__cat,
  .feature__cat {
    display: none;
  }

  .catalog {
    padding-top: calc(var(--header-height) + 48px);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .split__text,
  .split__link {
    grid-column: 1;
  }

  .split__text {
    margin-right: 0;
  }

  .split__link {
    grid-row: auto;
    justify-self: start;
    width: max-content;
    border-bottom-color: currentColor;
  }

  .split__link._subscribe {
    display: none;
  }

  .split .row-label {
    padding-inline: 0;
  }

  /* на телефоне колонки друг под другом: сверху большое фото, под ним малая карточка */
  .feature__wrapper,
  .feature__wrapper._reverse {
    flex-direction: column;
    height: auto;
  }

  .feature__col {
    width: 100%;
    height: 100vh;
    height: 100svh;
  }

  .feature__wrapper + .feature__wrapper {
    margin-top: 0;
  }

  .feature__col._photo {
    order: 0;
  }

  .feature__col._cards,
  .feature__wrapper._reverse .feature__col._cards {
    order: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .feature__item {
    position: relative;
    top: auto;
    width: 66%;
  }

  .product__wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .product {
    padding-top: var(--header-height);
  }

  .product__gallery {
    order: -1;
    width: 100%;
    margin-inline: 0; /* у слайдера по умолчанию auto — без этого он растягивается на все фото */
    overflow: hidden;
  }

  .product__track {
    flex-direction: row;
    gap: 0;
  }

  /* точки лежат на светлой плашке, поэтому видны и на тёмных фото */
  .product__gallery .product__dots {
    position: absolute;
    top: auto;
    left: 50%;
    right: auto;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 6px 9px;
    background-color: rgba(253, 253, 252, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .product__gallery .product__dots:empty {
    display: none;
  }

  .product__gallery .product__dots .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0;
    background-color: var(--color-primary);
    border-radius: 3px;
    opacity: 0.3;
    transition: width 0.3s ease, opacity 0.3s ease;
  }

  .product__gallery .product__dots .swiper-pagination-bullet-active {
    width: 18px;
    opacity: 1;
  }

  .product__col,
  .product__col._last {
    position: static;
    margin-top: 0;
    margin-bottom: 0;
  }

  .product__media {
    flex-shrink: 0;
    width: 100%;
  }

  /* в «Других моделях» на телефоне две карточки — один ровный ряд */
  .grid._related > .card ~ .card ~ .card {
    display: none;
  }

  .row-label._in-grid {
    margin-bottom: 8px;
  }

  .split__link._in-grid {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    margin-left: var(--page-pad);
  }

  .footer__wrapper {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }

  .footer__col._last {
    grid-column: auto;
  }

  /* на планшете и телефоне подвал обычный, без шторки */
  .footer {
    position: relative;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer__mark {
    margin-bottom: 10px;
  }

  .footer__service {
    text-align: left;
  }

  .doc__wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── 767 ── */
@media (max-width: 767.98px) {
  .not-found__title {
    font-size: 34px;
  }
}

/* ── 479 ── */
@media (max-width: 479.98px) {
  .mobile-panel__link {
    font-size: 26px;
  }
}

/* ── низкий экран: подвал не помещается целиком — без шторки ── */
@media (max-height: 699.98px) {
  .footer {
    position: relative;
  }
}

/* ── без анимаций ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
