/* Главный слайдер (templates/home.php). Добавлено 2026-11-03. */
.ms-ico-arrow, .ms-ico-pin {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ms-ico-pin { stroke-width: 2; }

/* ---------- карусель ---------- */
.ms-hero-slider { position: relative; border-radius: 20px; }
.ms-hero-slider .splide__track { border-radius: 20px; overflow: hidden; }
.ms-hero-slider .splide__slide { height: auto; }
.ms-hero-slider .splide__slide > .ms-hero { height: 100%; }
.ms-hero-slider .splide__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ms-hero-slider .splide__arrow:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.ms-hero-slider .splide__arrow svg { width: 16px; height: 16px; fill: #fff; }
.ms-hero-slider .splide__arrow--prev { left: 14px; }
.ms-hero-slider .splide__arrow--next { right: 14px; }
.ms-hero-slider .splide__arrow--prev svg { transform: scaleX(-1); }
.ms-hero-slider .splide__pagination {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  transform: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.ms-hero-slider .splide__pagination li { display: flex; margin: 0; list-style: none; }
.ms-hero-slider .splide__pagination__page {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  opacity: 1;
  cursor: pointer;
  transform: none;
  transition: width .35s ease, background .35s ease;
}
.ms-hero-slider .splide__pagination__page.is-active { width: 28px; background: #ff8a1f; transform: none; }

/* анимация появления на активном слайде (только после запуска Splide) */
.ms-hero-slider.is-initialized .ms-hero__content,
.ms-hero-slider.is-initialized .ms-hero__card,
.ms-hero-slider.is-initialized .ms-hero__promo {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
  transition: opacity .6s ease .15s, transform .7s cubic-bezier(.2, .8, .2, 1) .15s;
}
.ms-hero-slider.is-initialized .is-active .ms-hero__content,
.ms-hero-slider.is-initialized .is-active .ms-hero__card,
.ms-hero-slider.is-initialized .is-active .ms-hero__promo { opacity: 1; transform: none; }
.ms-hero-slider.is-initialized .is-active .ms-hero__card,
.ms-hero-slider.is-initialized .is-active .ms-hero__promo { transition-delay: .3s; }
.ms-hero-slider.is-initialized .ms-hero__bg img { animation: none; transform: scale(1.08); transition: transform 7s ease-out; }
.ms-hero-slider.is-initialized .is-active .ms-hero__bg img { transform: scale(1); }

/* ---------- слайд ---------- */
.ms-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  min-height: 470px;
  border-radius: 20px;
  background: #031a33;
  color: #fff;
  font-family: system, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ms-hero *, .ms-hero *::before, .ms-hero *::after { box-sizing: border-box; }

.ms-hero__bg { position: absolute; inset: 0; z-index: -3; }
.ms-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  filter: brightness(1.08) saturate(1.1);
  transform: scale(1.06);
  animation: ms-hero-zoom 18s ease-out forwards;
}
@keyframes ms-hero-zoom { to { transform: scale(1); } }

.ms-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 8% 110%, rgba(255, 140, 26, .28), transparent 60%),
    linear-gradient(90deg, rgba(2, 18, 38, .96) 0%, rgba(3, 28, 58, .88) 32%, rgba(4, 40, 82, .4) 56%, rgba(4, 40, 82, .05) 78%, transparent 100%),
    linear-gradient(0deg, rgba(2, 16, 34, .35) 0%, transparent 40%);
}
.ms-hero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}

.ms-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 470px;
  padding: 48px 56px 44px;
}
.ms-hero__content { max-width: 640px; animation: ms-hero-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ms-hero-in { from { opacity: 0; transform: translateY(18px); } }

.ms-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.ms-hero__badge:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.ms-hero__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}
.ms-hero__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #3ddc84;
  animation: ms-hero-pulse 1.8s ease-out infinite;
}
@keyframes ms-hero-pulse { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }

.ms-hero__title {
  margin: 22px 0 16px;
  font-family: 'Metall Bold', system, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
  color: #fff;
}
.ms-hero__title span {
  background: linear-gradient(90deg, #ffb347 0%, #ff8a1f 55%, #ff6a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ms-hero__lead {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(226, 236, 250, .88);
}

.ms-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.ms-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ms-hero__btn--primary {
  background: linear-gradient(135deg, #ffa53a 0%, #ff7a1a 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 122, 26, .45);
}
.ms-hero__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 122, 26, .55); color: #fff; }
.ms-hero__btn--primary svg { transition: transform .2s ease; }
.ms-hero__btn--primary:hover svg { transform: translateX(3px); }
.ms-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.ms-hero__btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.ms-hero__stats {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.ms-hero__stats li:first-child { padding-left: 0; border-left: 0; }
.ms-hero__stats b {
  font-family: 'Metall Bold', system, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.ms-hero__stats span { font-size: 13px; line-height: 1.3; color: rgba(214, 228, 246, .75); }

.ms-hero__card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 330px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 10, 30, .35);
  color: #fff;
  text-decoration: none;
  animation: ms-hero-in .7s .15s cubic-bezier(.2, .8, .2, 1) both;
  transition: transform .25s ease, border-color .25s ease;
}
.ms-hero__card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .4); color: #fff; }
.ms-hero__card-label {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ff8a1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.ms-hero__card-title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.ms-hero__card-addr { display: flex; align-items: center; gap: 7px; font-size: 14px; color: rgba(230, 240, 252, .9); }
.ms-hero__card-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ms-hero__card-feats span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(240, 246, 255, .92);
}
/* преимущества (вместо цифр) */
.ms-hero__feats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-hero__feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(236, 244, 255, .92);
}
.ms-hero__feats li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 138, 31, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 31, .45);
}

/* большая цифра акции */
.ms-hero__promo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: radial-gradient(circle at 30% 25%, rgba(255, 179, 71, .95), rgba(255, 106, 31, .95) 60%, rgba(214, 72, 10, .95));
  box-shadow: 0 24px 60px rgba(255, 106, 31, .45), inset 0 0 0 10px rgba(255, 255, 255, .08);
  text-align: center;
}
.ms-hero__promo-num {
  font-family: 'Metall Bold', system, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -3px;
  color: #fff;
}
.ms-hero__promo-num small { font-size: 50px; letter-spacing: 0; }
.ms-hero__promo-text { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.25; color: rgba(255, 255, 255, .95); }

.ms-hero__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffb347;
}

/* в карусели: место под стрелки, скругление даёт track */
.ms-hero-slider .ms-hero { border-radius: 0; }
.ms-hero-slider .ms-hero__inner { padding-left: 88px; padding-right: 88px; padding-bottom: 60px; }

@media (max-width: 1200px) {
  .ms-hero__inner { padding: 40px 40px 36px; }
  .ms-hero-slider .ms-hero__inner { padding: 40px 76px 60px; }
  .ms-hero__title { font-size: 48px; }
  .ms-hero__card { width: 290px; }
  .ms-hero__promo { width: 230px; height: 230px; }
  .ms-hero__promo-num { font-size: 76px; }
}
@media (max-width: 1050px) {
  .ms-hero__card, .ms-hero__promo { display: none; }
}
@media (max-width: 760px) {
  .ms-hero { width: auto; min-height: 0; margin: 10px 12px 0; border-radius: 16px; }
  .ms-hero-slider { margin: 10px 12px 0; border-radius: 16px; }
  .ms-hero-slider .splide__track { border-radius: 16px; }
  .ms-hero-slider .ms-hero { margin: 0; border-radius: 0; }
  .ms-hero-slider .ms-hero__inner { padding: 26px 20px 46px; }
  .ms-hero-slider .splide__pagination { right: 0; left: 0; bottom: 18px; justify-content: center; }
  .ms-hero__feats { gap: 8px 14px; }
  .ms-hero__feats li { font-size: 12.5px; }
  .ms-hero__feats li::before { width: 18px; height: 18px; background-size: 11px; }
  .ms-hero__bg img { object-position: 65% 50%; }
  .ms-hero__shade {
    background:
      radial-gradient(500px 300px at 0% 100%, rgba(255, 140, 26, .25), transparent 60%),
      linear-gradient(180deg, rgba(2, 18, 38, .55) 0%, rgba(3, 26, 54, .9) 45%, rgba(2, 18, 38, .97) 100%);
  }
  .ms-hero__lines { display: none; }
  .ms-hero__inner { min-height: 0; padding: 26px 20px 24px; }
  .ms-hero__badge { font-size: 12px; padding: 6px 12px 6px 10px; }
  .ms-hero__title { margin: 70px 0 12px; font-size: 34px; letter-spacing: -.5px; }
  .ms-hero__lead { margin-bottom: 20px; font-size: 14.5px; }
  .ms-hero__actions { flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .ms-hero__btn { width: 100%; height: 50px; font-size: 15px; }
  .ms-hero__stats li { padding: 0 14px; }
  .ms-hero__stats b { font-size: 22px; }
  .ms-hero__stats span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-hero__bg img, .ms-hero__content, .ms-hero__card, .ms-hero__pulse::after { animation: none; }
  .ms-hero__bg img { transform: none; }
  .ms-hero-slider.is-initialized .ms-hero__bg img,
  .ms-hero-slider.is-initialized .is-active .ms-hero__bg img { transform: none; transition: none; }
}
