@font-face {
  font-family: "Montserrat";
  src: local("Montserrat Medium"), local("Montserrat-Medium"),
    url("../fonts/newYear/Montserrat-Medium.woff2") format("woff2"),
    url("../fonts/newYear/Montserrat-Medium.woff") format("woff"),
    url("../fonts/newYear/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: local("Montserrat Bold"), local("Montserrat-Bold"),
    url("../fonts/newYear/Montserrat-Bold.woff2") format("woff2"),
    url("../fonts/newYear/Montserrat-Bold.woff") format("woff"),
    url("../fonts/newYear/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Pangram Sans";
  src: url("../fonts/PPPangramSans-Medium.eot");
  src: local("PP Pangram Sans Medium"), local("PPPangramSans-Medium"),
    url("../fonts/PPPangramSans-Medium.eot?#iefix") format("embedded-opentype"),
    url("../fonts/PPPangramSans-Medium.woff2") format("woff2"),
    url("../fonts/PPPangramSans-Medium.woff") format("woff"),
    url("../fonts/PPPangramSans-Medium.ttf") format("truetype"),
    url("../fonts/PPPangramSans-Medium.svg#PPPangramSans-Medium") format("svg");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Pangram Sans";
  src: url("../fonts/PPPangramSans-Semibold.eot");
  src: local("PP Pangram Sans Semibold"), local("PPPangramSans-Semibold"),
    url("../fonts/PPPangramSans-Semibold.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/PPPangramSans-Semibold.woff2") format("woff2"),
    url("../fonts/PPPangramSans-Semibold.woff") format("woff"),
    url("../fonts/PPPangramSans-Semibold.ttf") format("truetype"),
    url("../fonts/PPPangramSans-Semibold.svg#PPPangramSans-Semibold")
      format("svg");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  background-color: #f1e6e1;
  color: #594651;
}

body {
  width: 100%;
  height: 100%;
  min-width: 590px;
  display: flex;
  flex-direction: column;
}

body.is-locked {
  overflow: hidden;
  padding-right: var(--scrollbar-width);
}

main {
  flex-grow: 1;
  width: 100%;
  min-width: 100%;
}

a {
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

textarea {
  resize: none;
}

:root {
  --header-h: 80px;
}

section[id],
[id].anchor {
  scroll-margin-top: calc(var(--header-h));
}

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

@media (max-width: 590px) {
  .container {
    padding: 0 40px;
  }
}

.button {
  text-transform: uppercase;
  font-size: 30px;
  text-align: center;
  font-family: inherit;
  border: 1px solid #f1e6e1;
  color: #f1e6e1;
  cursor: pointer;

  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* nav */
.nav {
  border-bottom: 1px solid #b22627;
  background-color: #f1e6e1;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
}
.nav__inner {
  display: flex;

  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  align-items: center;
}
.nav__logo {
  width: 142px;
  height: 44px;
  flex-shrink: 0;
  margin-right: 20px;
}
.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav__list {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 3px;
  max-width: 900px;
  width: 100%;
  justify-content: space-between;
}

.nav__list a {
  padding: 15px 0;
  text-transform: uppercase;
  color: #594651;
}

.nav__toggle {
  display: none;
}

@media (max-width: 980px) {
  /* показываем бургер */
  .nav__toggle {
    display: block;
    width: 64px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1002; /* поверх меню */
  }

  /* центральная полоска */
  .nav__toggle span,
  .nav__toggle::before,
  .nav__toggle::after {
    content: "";
    display: block;
    position: absolute;
    width: 64px;
    height: 3px;
    background-color: #594651;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav__toggle span {
    transform: translateY(0);
  }

  .nav__toggle::before {
    transform: translateY(-9px);
  }

  .nav__toggle::after {
    transform: translateY(9px);
  }

  /* ===== состояние OPEN ===== */
  .nav.nav--open .nav__toggle span {
    opacity: 0;
  }

  .nav.nav--open .nav__toggle::before {
    transform: rotate(45deg);
  }

  .nav.nav--open .nav__toggle::after {
    transform: rotate(-45deg);
  }

  .nav__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 96%;
    background: #f1e6e1;
    border-bottom: 1px solid #b22627;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;

    padding: 50px 40px 32px;

    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 1001;

    max-width: unset;
    width: 100%;
    justify-content: unset;
  }

  .nav__list li {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .nav__list a {
    display: inline-block;
    text-align: right;
    padding: 16px 0;
    width: 100%;
    text-transform: uppercase;
    color: #594651;
  }

  .nav.nav--open .nav__list {
    transform: translateY(0);
  }
}

/* ----------hero---------- */
.hero {
  position: relative;
  overflow: hidden;
}

/* фон */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #ffffff;
}

/* затемнение */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

/* контент */
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 485px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
}

.hero__title {
  max-width: 1180px;
  align-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: 125px;
  margin: 0;
}

.hero__title span {
  display: block;
  text-transform: uppercase;
  font-weight: 500;
  color: #f1e6e1;
  margin: 0;
  font-size: 125px;
  line-height: 130px;
}

.hero__title-bottom {
  align-self: flex-end;
}

.hero__address {
  margin-top: -80px;
}

.hero__address p {
  margin: 0;
}
/* бегущая строка */

.stroke {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  width: 100%;
  max-width: 4000px;
  margin: 0 auto;
}
.stroke__item {
  color: #f1e6e1;
  flex-shrink: 0;
  font-size: 30px;
  margin: 0;
  padding: 25px 0;

  line-height: 100%;
  text-transform: uppercase;

  background: url("../img/new-year/ticker-bg.png") repeat-x left center;
  background-size: 100% 100%;

  animation: running-animation 20s linear infinite;
  white-space: nowrap;
}

@keyframes running-animation {
  0% {
    transform: translateZ(0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.address {
  width: 285px;
  line-height: 20px;
  color: #f1e6e1;
}

.address span {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 950px) {
  .hero__content {
    max-width: 746px;
  }
  .hero__title span {
    font-size: 68px;
    line-height: 70px;
  }
  .hero__address {
    margin-top: 0;
  }
}

@media (max-width: 590px) {
  .hero {
    max-width: 590px;
  }
  .hero__content {
    padding-top: 900px;
    padding-bottom: 92px;
    max-width: unset;
  }
  .hero__title {
    max-width: 510px;
    width: 510px;
    font-size: 68px;
    line-height: 70px;
  }

  .stroke__item {
    font-size: 22px;
    line-height: 100%;
    padding: 19px 0;
  }
}

/* announcement */
.announcement {
  color: #000000;
}

.announcement__container {
  display: flex;
  flex-direction: column;
  padding-top: 27px;
  padding-bottom: 13px;
  gap: 30px;
}
.announcement__text {
  max-width: 580px;
  width: 100%;
  align-self: flex-end;
}

.announcement__text p {
  margin: 0;
  color: inherit;
  line-height: 19px;
}

.announcement__photos {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 560fr) minmax(0, 480fr);
  align-items: start;
}

.announcement__photo-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 280 / 230;
}

.card--big {
  width: 100%;
  aspect-ratio: 480 / 612;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 590px) {
  .announcement {
    min-width: 590px;
  }

  .announcement__text {
    max-width: 407px;
  }
  .announcement__photos {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .announcement__photo-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .card {
    width: 192px;
    height: 230px;
  }

  .card--big {
    width: 508px;
    height: 585px;
  }
}

/* banner */
.past {
  background: #f1e6e1;
  overflow: hidden;
}

.past__inner {
  position: relative;
  height: 363px; /* высота секции */
  /* overflow: hidden; */
}

/* ===== фоновые строки ===== */
.past__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  align-content: center;
  gap: 5px; /* расстояние между строками */
}

.past__line {
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 125px;
  line-height: 130px;

  color: #df9f9f;

  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.past__line:nth-child(2n + 1) {
  color: #b1c1b7;
}

/* ===== логотипы сверху ===== */
.past__logos {
  position: relative;
  z-index: 2;

  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  transform: translateX(56px);
  padding-top: 28px;
  will-change: transform;
}

/* блоки логотипов */
.past__logos-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
}

/* пары (два логотипа в одном блоке) */
.past__logos-wrap--pair {
  display: flex;
  flex-direction: column;
  gap: 93px;
  width: 362px;
  align-items: center;
}

.past__img {
  flex-shrink: 0;
  max-height: 94px;
}

.past__img--top {
  align-self: flex-start;
}
.past__img--bottom {
  align-self: flex-end;
}

/* сами картинки */
.past__logos img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ===== адаптив ===== */

@media (max-width: 590px) {
  .past__inner {
    height: 1150px;
  }

  .past__logos {
    transform: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0 40px;
    align-items: stretch;
  }

  /* каждый блок — “строка” на всю ширину */
  .past__logos-wrap {
    width: 100%;
    justify-content: flex-end;
  }

  /* чередование: 2-й справа, 3-й слева... */
  .past__logos-wrap:nth-child(even) {
    justify-content: flex-start;
  }

  .past__logos-wrap--pair {
    width: 100%;
    gap: 28px;
    align-items: stretch;
  }

  /* размеры контейнера под логотип */
  .past__img {
    width: auto;
    height: auto;
    /* width: 355px;
    height: 155px; */
    max-height: none;
  }

  /* логотипы НЕ режем */
  .past__logos img {
    width: min(320px, 78vw);
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* внутри пары: верхний слева, нижний справа */
  .past__img--top {
    align-self: flex-start;
  }
  .past__img--bottom {
    align-self: flex-end;
  }

  .past__line {
    line-height: 125px;
  }
}

/* route */
.route {
  padding: 92px 0 22px;
  background-color: #2f6746;
  background-image: url("../img/new-year/pattern-bg-green.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 100%;
}

.route__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.route__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.route__inner--last {
  margin-top: -110px;
}

.route__date {
  max-width: 816px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: -20px;
}

.route__date p {
  color: #000000;
  font-size: 125px;
  line-height: 130px;
  margin: 0;
  text-transform: uppercase;
}

.route__month {
  align-self: flex-end;
}

.route__wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.route__wrapper--wide {
  gap: 112px;
}

.route__category ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.route__category a {
  color: #000000;
  line-height: 18px;
  font-weight: 500;
}

.route__img {
  width: 180px;
  aspect-ratio: 180 / 217;
}

.route__img--rect {
  width: 280px;
  aspect-ratio: 280 / 217;
}

.route__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #ffffff;
}

.route__button {
  background-color: #2f6746;
  padding: 13px 34px;
  align-self: flex-start;
}

.route__button:hover {
  background-color: #f1e6e1;
  color: #2f6746;
  border-color: #2f6746;
}

.route__address {
  align-self: flex-end;
  color: #000000;
}

.route__address p {
  margin: 0;
}

.route__img-wrap {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

@media (max-width: 1170px) {
  .route__inner {
    flex-direction: column;
    gap: 40px;
  }
  .route__container {
    gap: 40px;
  }
  .route__wrapper {
    gap: 20px;
    align-self: flex-end;
  }

  .route__img {
    width: 100%;
    max-width: 280px;
  }

  .route__wrapper--wide {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) minmax(0, 603px);
    gap: 20px;
    align-items: start;
  }

  .route__wrapper--wide > .route__img {
    width: 100%;
    max-width: 603px;
    aspect-ratio: 603 / 317;
  }

  .route__inner--last {
    margin: 0;
  }

  .route__button {
    align-self: flex-end;
  }
  .route__address {
    align-self: flex-start;
    order: 1;
  }
}

@media (max-width: 740px) {
  .route__date {
    max-width: 441px;
  }
  .route__date p {
    font-size: 67px;
    line-height: 70px;
  }
}

@media (max-width: 590px) {
  .route {
    min-width: 590px;
  }
  .route__container {
    gap: 20px;
  }
  .route__inner {
    flex-direction: column;
    gap: 20px;
  }
  .route__inner--last {
    margin: 0;
  }
  .route__date {
    max-width: 441px;
    margin-bottom: 31px;
  }

  .route__wrapper {
    gap: 20px;
    align-self: flex-end;
  }

  .route__img {
    width: 192px;
    height: 217px;
  }

  .route__wrapper--wide > .route__img {
    width: 403px;
  }

  .route__img--rect > .route__img {
    height: 293px;
  }

  .route__button {
    align-self: flex-end;
  }
  .route__address {
    align-self: flex-start;
    order: 1;
  }
}

/* обертка попапа */
.map-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.map-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* затемнение */
.map-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(132, 126, 122, 0.92);
}

/* панель */
.map-popup__panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 52px 0 34px;
  overflow-y: auto;
}

.map-popup__container {
  width: min(1040px, calc(100vw - 60px));
  max-width: 1040px;
  padding: 0;
  position: relative;
}

@media (max-width: 590px) {
  .map-popup__panel {
    padding: 34px 0 24px;
  }

  .map-popup__container {
    width: calc(100vw - 32px);
  }
}

/* картинка “на всю ширину” в пределах контейнера */
.map-popup__img {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.map-popup__img img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
  display: block;
  object-fit: contain;
}

/* крестик */
.map-popup__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border: 2px solid #b7b1ad;
  border-radius: 999px;
  background: #b22627;
  cursor: pointer;
  display: grid;
  place-items: center;

  transition: background-color 0.3s ease, transform 0.3s ease;
}

.map-popup__close:hover,
.map-popup__close:focus-visible {
  background-color: #991f20;
  transform: scale(1.04);
}

@media (max-width: 590px) {
  .map-popup__close {
    top: -14px;
    right: -8px;
    width: 34px;
    height: 34px;
  }
}

/* рисуем крестик без картинки */
.map-popup__close::before,
.map-popup__close::after {
  content: "";
  width: 14px;
  height: 2px;
  background-color: #6f2526;
  position: absolute;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.map-popup__close::before {
  transform: rotate(45deg);
}
.map-popup__close::after {
  transform: rotate(-45deg);
}

.map-popup__close:hover::before,
.map-popup__close:hover::after,
.map-popup__close:focus-visible::before,
.map-popup__close:focus-visible::after {
  background-color: #f3d8d0;
}

/* -----------map-------- */
.map {
  padding-top: 75px;
  padding-bottom: 80px;
}

.map__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
}

.map__img img {
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
}

@media (max-width: 590px) {
  .map {
    min-width: 590px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .map__container {
    padding: 0 15px;
  }

  .map__img {
    width: 560px;
    height: 325px;
  }
}

/* -------------brand----------- */

.brands {
  background-color: #b22627;
  background-image: url("../img/new-year/pattern-bg-red.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  padding: 134px 0 40px;
  position: relative;
  overflow: hidden;
}

/* ===== верх: фильтры ===== */
.brands__filters-wrap {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.brands__label {
  color: #f1e6e1;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 18px;
  padding-top: 10px;
  white-space: nowrap;
}

/* фильтры горизонтальный скролл */
.brands__filters {
  display: flex;
  gap: 20px;
  align-items: center;
  /* горизонтальная прокрутка */
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.brands__filters::-webkit-scrollbar {
  display: none;
}

/* кнопки фильтра */
.brands__filter {
  flex: 0 0 auto;
  border: 1px solid #f1e6e1;
  background: #f1e6e1;
  color: #2f6746;

  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;

  text-transform: uppercase;
  white-space: nowrap;

  padding: 10px 21px 8px;
  cursor: pointer;

  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.brands__filter.is-active {
  background: transparent;
  color: #f1e6e1;
  border-color: #f1e6e1;
}

.brands__filter:hover {
  background-color: #2f6746;
  color: #f1e6e1;
  border-color: #2f6746;
}

/* ===== слайдер ===== */

.brands__slider-area {
  position: relative;
}
.brands__slider {
  position: relative;
  padding-bottom: 53px !important; /* место под пагинацию */
  /* min-height: 983px; */
  min-height: clamp(760px, 82vh, 983px);
}

.brands__slider .swiper-wrapper {
  align-items: stretch;
}
.brands__slider .swiper-slide {
  height: auto;
  margin-top: 10px !important;
}

/* ===== карточка ===== */
.brand-card {
  background-color: #b22627;
  border-left: 1px solid #f1e6e1;
  border-right: 1px solid #f1e6e1;
  height: 100%;

  display: flex;
  flex-direction: column;
}

/* картинка */
.brand-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.brand-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #ffffff;
}

/* текстовый блок */
.brand-card__content {
  padding: 17px 20px 58px 20px;
  color: #f1e6e1;
}

.brand-card__content h3 {
  margin: 0 0 5px;
  font-weight: 500;
  font-size: 30px;
  line-height: 100%;
  text-transform: uppercase;
}

.brand-card__content p {
  margin: 0;
  font-size: 16px;
  line-height: 18px;
  min-height: 65px;
}

/* ===== стрелки ===== */
.brands__nav {
  position: absolute;
  z-index: 5;
  top: 47%;
  transform: translateY(-39%);
  width: 68px;
  height: 68px;
  border-radius: 999px;

  border: 0;
  cursor: pointer;

  background: #f1e6e1;
  display: grid;
  place-items: center;
}

.brands__prev {
  left: -40px;
}
.brands__next {
  right: -40px;
}

.brands__nav::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("/themes/zavod/assets/img/new-year/arrow.svg") no-repeat center / contain;
}

.brands__prev::before {
  transform: rotate(180deg);
}

/* hover */
.brands__nav:hover {
  background: rgba(241, 230, 225, 0.97);
}

/* ===== пагинация ===== */
.brands__pagination {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: auto;
}

.brands__pagination .swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: rgba(241, 230, 225, 0.45);
  opacity: 1;
  margin: 0 6px !important;
}

.brands__pagination .swiper-pagination-bullet-active {
  background: rgba(241, 230, 225, 0.95);
}

@media (max-width: 590px) {
  .brands {
    padding-top: 50px;
    padding-bottom: 34px;
    overflow-x: hidden;
  }
  .brands__slider-area {
    overflow: visible;
  }

  .brands__slider {
    padding-bottom: 53px !important; /* место под пагинацию */
    /* min-height: 864px; */
  }

  .brands__filters-wrap {
    margin-bottom: 54px;
    gap: 34px;
  }

  .brands__filters {
    gap: 13px;
  }

  .brands__slider.swiper {
    margin-right: -45px !important;
    padding-right: 40px;
  }

  .brands__nav {
    display: none;
  }

  .brand-card__img {
    width: 247px;
    height: 247px;
  }

  .brand-card__content {
    padding-left: 17px;
    padding-right: 17px;
  }

  .brands__pagination {
    left: -20px !important;
  }
}

/* -------------workshop------------ */
.workshops {
  position: relative;
  overflow: hidden;
  height: 832px;
}

.workshops__slider {
  inset: 0;
}

.workshops__slider.swiper {
  position: absolute !important;
}

.workshops__slider .swiper-slide {
  position: relative;
}
.workshops__slider .swiper-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workshops__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* стрелки */
.workshops__prev,
.workshops__next {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #f1e6e1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.workshops__prev {
  left: 26px;
}
.workshops__next {
  right: 26px;
}

.workshops__prev::before,
.workshops__next::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: url("/themes/zavod/assets/img/new-year/arrow.svg") no-repeat center / contain;
}

/* левую стрелку просто разворачиваем */
.workshops__prev::before {
  transform: rotate(180deg);
}

.workshops__prev.swiper-button-disabled,
.workshops__next.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* пагинация */
.workshops__pagination {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 40px !important;
  transform: translateX(-50%);
}

.workshops__pagination > .swiper-pagination-bullet {
  background: #df9f9f;
  width: 12px !important;
  height: 12px !important;
  opacity: 1;
}
.workshops__pagination > .swiper-pagination-bullet-active {
  background: #f1e6e1;
}

/* Заголовок/текст/кнопка поверх */
.workshops__title,
.workshops__textwin,
.workshops__btn {
  position: relative;
  z-index: 6;
}

/* текстовое окно */
.workshops__title {
  margin: 0;
  padding: 56px 26px 0;
  font-size: 125px;
  line-height: 130px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 500;
}

.workshops__textwin {
  position: absolute;
  z-index: 6;
  left: 110px;
  bottom: 82px;
  max-width: 380px;
  min-height: 212px;
  color: #fff;
}

.workshops__counter {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.workshops__titlebox p {
  font-size: 30px;
  line-height: 100%;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 10px;
}
.workshops__descbox p {
  font-size: 16px;
  line-height: 20px;
  margin: 0;
}

.workshops__btn {
  position: absolute;
  z-index: 6;
  right: 26px;
  bottom: 82px;
  padding: 22px 45px;
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

.workshops__btn:hover {
  background-color: #b22627;
  border-color: #b22627;
}

.workshops__textbox.is-leave {
  animation: wsTxtLeave 0.25s ease forwards;
}
.workshops__textbox.is-enter {
  animation: wsTxtEnter 0.25s ease forwards;
}
.workshops__counter.is-leave {
  animation: wsTxtLeave 0.25s ease forwards;
}
.workshops__counter.is-enter {
  animation: wsTxtEnter 0.25s ease forwards;
}

@keyframes wsTxtLeave {
  to {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@keyframes wsTxtEnter {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 830px) {
  .workshops {
    height: 970px;
  }

  .workshops__textwin {
    bottom: 171px;
  }

  .workshops__btn {
    width: 380px;
    text-align: center;
    right: unset;
    left: 26px;
  }
}

@media (max-width: 590px) {
  .workshops {
    min-width: 590px;
    height: 1138px;
  }
  .workshops__title {
    font-size: 67px;
    line-height: 70px;
    padding: 55px 40px 0;
  }
  .workshops__next,
  .workshops__prev {
    display: none;
  }

  .workshops__textwin {
    bottom: 171px;
    left: 40px;
  }

  .workshops__btn {
    width: 510px;
    text-align: center;
    right: unset;
    left: 40px;
  }
}

/* gallery */
.how {
  padding-top: 30px;
  padding-bottom: 34px;
}

.how__title {
  margin: 0 0 30px;
  font-size: 125px;
  line-height: 130px;
  text-transform: uppercase;
  color: #2f6746;
  font-weight: 500;
}

/* Верхние 3 блока */
.how__tabs {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  gap: 20px;
  align-items: start;
  margin-bottom: 30px;
}

.how__tab {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.how__tab.is-active {
  opacity: 1;
}

.how__tab-num {
  display: block;
  color: #594651;
  margin-bottom: 7px;
}
.how__tab-img {
  width: 180px;
  height: 182px;
}
.how__tab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how__tab-date {
  display: block;
  margin-top: 7px;
  color: #594651;
}

/* ===== НИЗ: "ОКНО" галереи ===== */
.how__galleries {
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  min-height: 395px;
}

.how__gallery {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 20px;

  grid-template-columns: minmax(0, 680fr) minmax(0, 480fr);

  align-items: start;

  opacity: 0;
  pointer-events: none;
}

.how__side {
  display: flex;
  align-items: flex-start;
  gap: 20px;

  min-width: 0;
  width: 100%;
}

.how__gallery.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Состояния анимации: старая уезжает влево, новая приезжает справа */
.how__gallery.is-leave {
  animation: howLeave 0.35s ease forwards;
}

.how__gallery.is-enter {
  animation: howEnter 0.45s ease forwards;
}

/* картинки */
.how__img {
  margin: 0;
  overflow: hidden;
}

.how__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how__img--big {
  width: 100%;

  /* max-width: 680px; */
  aspect-ratio: 680 / 395;
  height: auto;
}

.how__img--mid {
  flex: 1 1 280px;
  aspect-ratio: 280 / 185;
  height: auto;
}

.how__img--tall {
  flex: 0 1 180px; /* tall тоже сжимается */
  aspect-ratio: 180 / 313;
  height: auto;
}

/* Кнопка */
.how__button {
  position: absolute;
  right: 0;
  bottom: 0;
  border: 1px solid #2f6746;
  color: #2f6746;
  background-color: #f1e6e1;
  padding: 22px 90px;
}

.how__button:hover {
  background-color: #2f6746;
  color: #f1e6e1;
}

/* ===== keyframes для эффекта "внутри окна" ===== */
@keyframes howLeave {
  to {
    opacity: 0;
    transform: translateX(-6%);
  }
}

@keyframes howEnter {
  from {
    opacity: 0;
    transform: translateX(6%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 590px) {
  .how {
    min-width: 590px;
  }
  .how__title {
    font-size: 67px;
    line-height: 70px;
    margin-bottom: 20px;
  }

  .how__tab-img {
    width: 192px;
    height: 201px;
  }

  .how__tabs {
    grid-template-columns: repeat(3, 192px);
    margin-bottom: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 40px; /* как у контейнера */
    margin: 0 -41px 18px; /* чтобы лента тянулась до краёв экрана */
    scroll-snap-type: x mandatory;
  }
  /* прячем скроллбар */
  .how__tabs::-webkit-scrollbar {
    display: none;
  }
  .how__tabs {
    scrollbar-width: none; /* Firefox */
  }
  .how__galleries {
    min-height: 669px;
  }
  .how__gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .how__img {
    height: 185px;
  }
  .how__img--big {
    width: 510px;
    height: 395px;
  }
  .how__img--mid {
    width: 299px;
  }
  .how__img--tall {
    width: 192px;
  }
}

/* collobaration */
.collobaration {
  background-color: #2f6746;
  background-image: url("../img/new-year/pattern-bg-green.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 186px;
}

.collobaration__title {
  font-size: 30px;
  line-height: 34px;
  font-weight: 500;
  color: #f1e6e1;
  text-transform: uppercase;
  max-width: 290px;
  margin: 0;
  margin-bottom: 53px;
}

.collobaration__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.collobaration__contact {
  color: #f1e6e1;
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-self: flex-end;
  margin-right: 10px;
}

.collobaration__contact p {
  margin: 0;
}

.collobaration__contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.collobaration__contact-wrap ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 19px;
  flex-shrink: 0;
}

.collobaration__contact-wrap a {
  color: inherit;
}

.collobaration__email a {
  text-decoration: underline;
}

.collobaration__list.swiper-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 280px);
  align-items: stretch;
}

.collobaration__item {
  background-color: #ff50a8 !important;
  border-left: 1px solid #f1e6e1;
  border-right: 1px solid #f1e6e1;
}

.collobaration__slider.swiper {
  margin: 0 !important;
  overflow-x: auto; /* включаем горизонтальный скролл */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.collobaration__slider::-webkit-scrollbar {
  display: none;
}

.slide {
  display: flex !important;

  flex-direction: column;
  width: auto !important;
  height: 100%;
  align-self: stretch;
  justify-content: flex-start;
}

.slide__wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
  flex: 1;
  padding: 0 18px 23px 18px;
}

.slide__text-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;

  color: #ffffff;
}

.slide__text-wrap h3 {
  margin: 0;
  font-size: 30px;
  line-height: 38px;
  font-weight: 500;
  text-transform: uppercase;
}

.slide__text-wrap p {
  margin: 0;
  min-height: 65px;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.slide__img {
  width: 278px;
  height: 278px;
}

.slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__button {
  font-size: 22px;
  padding: 14px 31px;
  color: #ff50a8;
  background-color: #f1e6e1;
  border-color: #f1e6e1;
  margin-top: auto;
}

.slide__button:hover {
  color: #f1e6e1;
  background-color: #009cfc;
  border-color: #009cfc;
}

@media (max-width: 590px) {
  .collobaration {
    min-width: 590px;
    overflow-x: hidden;
  }

  .collobaration__title {
    margin-bottom: 35px;
  }

  .collobaration__inner {
    flex-direction: column;
    gap: 67px;
  }

  .collobaration__contact {
    align-self: normal;
  }
  .collobaration__contact-wrap {
    flex-direction: row;
    gap: unset;
    justify-content: space-between;
  }

  .collobaration__list.swiper-wrapper {
    grid-template-columns: repeat(3, 515px);
  }

  .collobaration__slider {
    overflow: visible;
    padding-bottom: 30px !important;
  }

  .collobaration__slider.swiper {
    margin-left: -40px;
    margin-right: -50px !important;
    padding-right: 40px;
  }

  .collobaration__list.swiper-wrapper {
    display: flex !important;
  }

  .collobaration__item.swiper-slide {
    background-color: #ff50a8 !important;
    width: 100%;
    flex-shrink: 0;
  }

  .slide__button {
    text-align: center;
  }

  .slide__img {
    width: 515px;
    height: 400px;
  }

  /* пагинация */
  .collobaration__pagination {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 0 !important;
    transform: translateX(-50%);
  }

  .collobaration__pagination > .swiper-pagination-bullet {
    background: #df9f9f;
    width: 12px !important;
    height: 12px !important;
    opacity: 1;
  }
  .collobaration__pagination > .swiper-pagination-bullet-active {
    background: #f1e6e1;
  }
}

/* footer */

.footer {
  font-family: "PP Pangram Sans";
  position: relative;
  overflow: visible;
  padding: 141px 0 41px;
  color: #9d9d9d;
}

.footer__brand {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-60%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.footer__brand img {
  width: min(1245px, 100%);
  height: auto;
  max-height: 255px;
  object-fit: contain;
}

.footer__wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__wrap--bottom {
  margin-top: 40px;
}

.footer__top-title p {
  font-size: 20px;
  line-height: 22px;
  font-weight: 600;
  margin: 0;
  margin-bottom: 7px;
}

.footer__top-title a {
  color: #9d9d9d;
  font-size: 20px;
  line-height: 22px;
  font-weight: 600;
  padding: 0;
  padding-bottom: 3px;
  border-bottom: 2px solid #9d9d9d;
}

.footer__social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.footer__social-item {
  text-decoration: none;
  min-width: 70px;
  max-width: 70px;
  height: 60px;
  position: relative;
}

.footer__social-item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__social-item svg path {
  fill: #009cfc;
  transition: 0.2s all;
}
.footer__social-item:hover svg path {
  fill: #009cfc;
}

.footer__social-item--color svg path {
  fill: #009cfc;
}

.footer__social-item--color:hover svg path {
  fill: #009cfc;
}

.social__star {
  position: absolute;
  right: 6px;
  top: 12px;
  color: #9d9d9d;
  font-size: 12px;
  line-height: 100%;
}

.footer__social {
  font-size: 12px;
  line-height: 100%;
}

.footer__asterisk p {
  margin: 0;
  margin-top: 3px;

  font-size: 12px;
  line-height: 100%;
}

.footer__logos {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-self: flex-end;
}

.footer__logo-wrap {
  width: 64px;
  height: 25px;
}

.footer__logo-wrap--wide {
  width: 81px;
}

.footer__logo-wrap svg,
.footer__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__logo-wrap svg path {
  fill: #9d9d9d;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 350px;
}

.footer__contacts-wrap {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.footer__phone {
  font-family: inherit;
  font-size: 20px;
  line-height: 22px;
  color: #9d9d9d;
  font-weight: 600;
}

.footer__address {
  font-size: 12px;
  line-height: 100%;
  font-weight: 600;
}

.footer__docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 215px;
}

.footer__docs a {
  color: #9d9d9d;
  font-size: 12px;
  line-height: 100%;
  font-weight: 400;
}

@media (max-width: 590px) {
  .footer {
    padding-top: 75px;
  }
  .footer__brand {
    width: 565px;
    margin: 0 auto;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
  }

  .footer__wrap {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
  .footer__social-wrap {
    width: 100%;
  }
  .footer__social {
    justify-content: space-between;
  }

  .footer__social-item {
    min-width: 90px;
    max-width: 90px;
    height: 90px;
  }

  .social__star {
    right: -3px;
    top: 13px;
    font-size: 18px;
  }

  .footer__wrap--bottom {
    margin-top: 60px;
  }

  .footer__phone {
    font-size: 30px;
  }
  .footer__address {
    font-size: 16px;
    line-height: 23px;
  }

  .footer__contacts {
    gap: 55px;
  }

  .footer__docs a {
    font-size: 16px;
    line-height: 100%;
  }

  .footer__logos {
    order: 1;
    align-self: flex-start;
    align-items: flex-end;
    gap: 65px;
    margin-top: 75px;
  }

  .footer__contacts-wrap {
    gap: 12px;
  }

  .footer__docs {
    max-width: 350px;
    gap: 20px;
  }

  .footer__logo-wrap {
    width: 145px;
    height: 54px;
  }

  .footer__logo-wrap--wide {
    width: 155px;
    height: 48px;
  }
}
