@media (min-width: 48em) {
  .footer__copyright {
    justify-content: flex-end !important;
  }
}

.section--projects {
  padding: 80px 0;
}

.projects__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.project-item {
  width: calc(33.333% - 20px);
  text-align: center;
}
.project-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ======= Стили основного меню ======= */
.header__menu {
  display: flex !important;
  gap: 25px !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.header__menu > li {
  position: relative !important;
  list-style: none !important;
}

.header__menu > li > a {
  display: block !important;
  padding: 12px 18px !important;
  color: #000 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.3s ease !important;
}

.header__menu > li > a:hover {
  color: #f7d663 !important;
}

/* ======= Подменю ======= */
.header__menu .submenu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #fff !important; /* как вся шапка */
  padding: 10px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  min-width: 200px !important;
  border: 1px solid #eee !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
  opacity: 0 !important;
  transform: translateY(5px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
  z-index: 999 !important;
}

.header__menu li:hover > .submenu {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ======= Ссылки подменю ======= */
.header__menu .submenu li a {
  display: block !important;
  padding: 10px 18px !important;
  color: #000 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.25s ease, background 0.25s ease !important;
}

.header__menu .submenu li a:hover {
  color: #f7d663 !important;
  background-color: rgba(247, 214, 99, 0.1) !important;
}

/* ======= Адаптив ======= */
@media (max-width: 768px) {
  .header__menu {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .header__menu > li {
    margin-right: 0 !important;
  }

  .header__menu .submenu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 15px !important;
    transform: none !important;
    opacity: 1 !important;
    display: none !important;
  }

  .header__menu li:hover > .submenu {
    display: block !important;
  }
}


@media (max-width: 768px) {
  /* Прячем обычное меню и соцсети */
  .header__menu.show-for-medium,
  .header__social.show-for-medium {
    display: none !important;
  }
 }

.slider-fullscreen {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider-slide {
  position: relative;
  height: 100vh;
}

.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  will-change: transform;
}

.slide-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}

/* Контент по центру */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 30px 30px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;

  background: rgba(246, 210, 85, 0.4);
  border-radius: 50px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.slide-title {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1.2;
}
.slide-subtitle {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}
.slide-cta {
  display: inline-block;
  padding: .75rem 2rem;
  background: #f6d255;
  color: #000;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  transition: background .3s;
}
.slide-cta:hover {
  background: #e5c547;
}

/* Контейнер для кнопки — просто отступ сверху и центрирование */
.promo__holder_slider {
  margin-top: 2rem;
  text-align: center;
  display: block; /* убираем flex, чтобы не было сложностей */
}

.promo__btn {
  all: unset;
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(135deg, #f6d255 0%, #f4c542 100%);
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-align: center;
  user-select: none;
  line-height: 1.2;
  border: none !important;
  outline: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.promo__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #ffd94d 0%, #f6d255 100%);
}


/* Центровка кнопки */
.slide-content {
  text-align: center;
}


.slide-content .promo__btn {
  padding: 15px 35px !important;
  font-size: 12px !important;
  border-radius: 24px !important;
}


.projects-slider__wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-slider__slide {
  padding: 15px;
  text-align: center;
}

.projects-slider__slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.slider-arrow {
 all: unset;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  color: white;
  font-size: 36px;
  line-height: 1;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  color: #f6d255;
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-prev::before,
.slider-next::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.slider-prev::before {
  transform: rotate(-135deg);
}

.slider-next::before {
  transform: rotate(45deg);
}


/* Пагинация */
.slider-dots {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.slider-dots .dot {
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.slider-dots .slick-active .dot,
.slider-dots .dot:hover {
  background: #f6d255;
}


/* Внутренний контейнер: flex-ряд */
.projects .projects-slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
}

/* Левая колонка */
.projects .projects-slide-text {
  z-index: 3;
  flex: 1 1 45%;
  padding: 40px;
  color: #fff;
  /* опции фона/блюра по вкусу */
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.projects-slide-text {
  position: relative;
  z-index: 2; /* чтобы текст был поверх логотипа */
}

.projects-slide-text::before {
  content: "";
  position: absolute;
  top: -40px;  /* смещение логотипа */
  left: 0;
  width: 400px;
  height: 500px;
  background-image: url('/assets/img/logo-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  z-index: -1; /* логотип за текстом */
  opacity: 0.5; /* прозрачность по вкусу */
  pointer-events: none;
}


/* ============================
   Projects Slider Styles
   ============================ */


/* Затемнение слайдов, чтобы логотип был чуть виднее */
.projects__slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2); /* лёгкое затемнение */
  z-index: 1;
  pointer-events: none;
}

/* Контент слайдов выше логотипа */
.projects__slider,
.projects .projects-slide-inner {
  position: relative;
  z-index: 2;
}

.projects-logo-bg {
  position: fixed;
  top: 50%;
  left: 50px; /* отступ от левого края */
  width: 600px;
  height: 600px;
  background: url('../img/logo-bg.png') no-repeat center center;
  background-size: contain;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}



/* Контент слайдера поверх логотипа */
.projects__slider,
.projects .projects-slide-inner {
  position: relative;
  z-index: 1;
}


/* Обёртка слайдов */
.projects__slider {
  height: 100%;
  position: relative;
  z-index: 2; /* поверх фона */
}

/* Внутренний контейнер flex для одного слайда */
.projects .projects-slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 40px;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* поверх фона */
}

/* Левая колонка: текст, кнопки, номер */
.projects .projects-slide-text {
  position: relative;
  flex: 1 1 45%;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 3;
}

/* Заголовок */
.projects .projects-slide-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Подзаголовок */
.projects .projects-slide-subtitle {
  font-size: 22px;
  margin-bottom: 24px;
  color: #f0f0f0;
}

/* Основная кнопка CTA */
.projects .projects-slide-cta {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(135deg, #4fd1c5 0%, #2c7a7b 100%);
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  margin-right: 12px;
}
.projects .projects-slide-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Вспомогательная кнопка “Информация” */
.projects .projects-slide-btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s;
}
.projects .projects-slide-btn:hover {
  background: #fff;
  color: #000;
}

/* Счётчик: текущий/всего */
.projects .projects-slide-number {
  display: inline-block;
  position: absolute;
  bottom: 20px;
  left: 40px;
  z-index: 10;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Правая колонка — картинка */
.projects .projects-slide-image {
  position: relative;
  flex: 1 1 50%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Фон и оверлей (если нужны) */
.projects .projects-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.projects .projects-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}


/* Пагинация-точки */
.projects .projects-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 9;
}
.projects .projects-dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.projects .projects-dots .slick-active .dot,
.projects .projects-dots .dot:hover {
  background: #4fd1c5;
}

/* Декоративная картинка позади текста (если нужна) */
.projects-slide-decoration {
  position: absolute;
  top: -40px;
  left: 0;
  width: 400px;
  height: 500px;
  background-image: url('/assets/img/logo_bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

/* Адаптив */
@media (max-width: 768px) {
  .projects .projects-slide-inner {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .projects .projects-slide-text,
  .projects .projects-slide-image {
    width: 100%;
    flex: auto;
  }
  .projects .projects-slide-image {
    height: 50vh;
  }
}

.banner-wrapper {
  position: relative;
  background-color: #f6d255; /* фон */
  padding: 40px 0;
  overflow: hidden;
}

.banner-slider .slick-slide {
  float: none;
  height: auto;
}

.banner-slide.slick-center img {
  transform: scale(1);
  opacity: 1;
}

.banner-slide:not(.slick-center) img {
  transform: scale(0.85);
  opacity: 0.5;
}


/* общие стили */
.banner-slide img {
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Контейнер стрелок */
.promo-arrows,
.projects-arrows,
.banner-arrows {
    position: absolute; /* растягиваем на весь слайдер */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between; /* стрелки по краям */
    align-items: center; /* центр вертикально */
    pointer-events: none; /* клики проходят только по кнопкам */
    z-index: 1;
}

/* Сами стрелки */
.promo-arrows .slider-arrow,
.projects-arrows .slider-arrow,
.banner-arrows .slider-arrow {
    pointer-events: auto; /* кликабельны */
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 9999;
}

.promo-arrows .slider-arrow:hover,
.projects-arrows .slider-arrow:hover,
.banner-arrows .slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Убираем старые top/transform для проектов и баннера */
.projects .projects-arrows,
.banner-arrows {
    top: 0 !important;
    transform: none !important;
}


.topline {
  background: #FFD200;         /* фирменный жёлтый */
  padding: 8px 15px;           /* чуть больше воздуха */
}

/* Контейнер в жёлтой полоске */
.topline .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Блок "Адреса салонов" */
.topline__addresses {
  position: relative;
  cursor: pointer;
}

/* Заголовок (иконка + текст) */
.topline__addresses .header__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.topline__addresses .header__label:hover {
  background: rgba(0, 0, 0, 0.05);
}

.topline__addresses svg {
  width: 16px;
  height: 16px;
  fill: #222;
}

.topline__addresses .header__contacts {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  padding: 10px 0;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 240px;
  z-index: 10000;
}


/* показываем при hover */
.topline__addresses:hover .header__contacts {
  display: block !important;
}

/* Элемент адреса */
.topline__addresses .header__contacts div {
  padding: 8px 15px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s ease;
  white-space: nowrap; /* чтобы не ломало строки */
}

.topline__addresses .header__contacts div:hover {
  background: #f9f9f9;
  color: #000;
}

.topline__addresses .header__contacts.open {
  display: block !important;
}



.city-select {
  position: relative;          /* чтобы стрелка работала */
  margin-left: 0;
}

.city-select select {
  background: #fff;            /* белый фон для читаемости */
  border: 1px solid #e0e0e0;   /* светлая обводка */
  border-radius: 8px;          /* лёгкое скругление */
  font-size: 15px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  padding: 6px 32px 6px 10px;  /* место под стрелку справа */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.25s ease;  /* плавность при hover */
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.city-select select:hover {
  border-color: #bbb;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.city-select select:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.city-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #444;  /* стрелочка */
  transform: translateY(-40%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.city-select select:focus + .city-select::after {
  transform: translateY(-40%) rotate(180deg); /* анимация стрелки */
}

/* ====== STEPS: модернизированный стиль с полоской ====== */
.steps {
  --step-circle-size: 80px;
  --step-gap: 20px;
  text-align: center;
  background: #fdf8f0; /* мягкий светлый фон для секции */
  padding: 60px 20px 60px;
  border-radius: 12px; /* закругленные края секции */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Заголовок секции с акцентной полоской */
.steps__heading .title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
  text-align: center;
  line-height: 1.1;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.steps__heading .title::after {
  content: "";
  display: block;
  width: 60px; /* длина полоски */
  height: 4px;  /* толщина полоски */
  background: #f6d255; /* акцентный цвет */
  margin: 8px auto 0;
  border-radius: 2px;
}

/* сетка шагов */
.steps__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-bottom: 40px;
}

/* отдельный шаг */
.step {
  text-align: center;
  background: #fff; /* карточка на фоне секции */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.step__icon {
  width: var(--step-circle-size);
  height: var(--step-circle-size);
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__icon img {
  max-width: calc(var(--step-circle-size) * 0.5);
  height: auto;
  display: block;
}

.step__title {
  color: #111;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.step__text {
  color: #444;
  font-size: 14px;
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.4;
}

/* кнопка */
.steps__footer {
  text-align: center;
}
.steps__link {
  display: inline-block;
  padding: 16px 32px;
  background: #f6d255;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.steps__link:hover {
  background: #e0b847;
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* адаптив */
@media (max-width: 1024px) {
  .steps__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
}

@media (max-width: 768px) {
  .steps__timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* --- ПЕРЕБИВАЕМ СТАРЫЕ СВОЙСТВА --- */
.questions__image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.questions__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.questions__content {
  position: relative !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 40px 20px !important;
  z-index: 3 !important;
  color: #fff !important;
}

/* --- ТЕМНЫЙ ФОН ДЛЯ ЧИТАЕМОСТИ --- */
.questions::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2;
}

/* Заголовок */
.questions__content .title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Форма */
.questions__form .form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100%;
}

/* Поле */
.questions__form input[type="text"],
.questions__form input[type="tel"] {
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  font-size: 16px;
  border: none;
  border-radius: 50px; /* более округлые края */
  background: #fff;
  color: #111;
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.questions__form input[type="text"]:focus,
.questions__form input[type="tel"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Кнопка */
.questions__form button {
  all: unset;
  display: inline-block;
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: #f6d255;
  border-radius: 50px; /* те же закругления, что у поля */
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

/* Hover */
.questions__form button:hover {
  background: #e0b847;
  color: #333;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.questions__row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
}

.questions__row input {
  max-width: 400px !important;
  width: 100% !important;
}

.questions__row button {
  max-width: 220px !important;
  width: 100% !important;
}

/* Адаптив */
@media screen and (max-width: 768px) {
  .questions__content .title {
    font-size: 28px;
  }
}


/* фон не ловит клики */
.marquiz__bg {
  pointer-events: none !important;
  z-index: 2147483646 !important; /* чуть ниже модалки */
}

/* сама модалка ловит клики */
.marquiz__modal {
  z-index: 2147483648 !important;
  pointer-events: auto !important;
}

/* кнопка закрытия всегда поверх */
#marquiz__close {
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  width: 40px !important;
  height: 40px !important;
  z-index: 2147483649 !important; /* выше всех */
  cursor: pointer !important;
  pointer-events: auto !important;
}

@media (max-width: 1023px) {
  .marquiz__modal {
    width: 95% !important;       /* почти вся ширина */
    max-width: none !important;  /* убираем ограничение */
    height: auto !important;     /* растягивается по контенту */
    max-height: 95vh !important; /* ограничиваем по высоте экрана */
    padding: 15px !important;    /* меньше паддинги */
  }
}

div.marquiz__modal[style] {
  height: 737px !important;
  max-height: none !important;
}