/* ============================================================
   мишка39.рф — точная копия оригинала с Платформы LP
   Цвета (из реального HTML):
     --purple-bar   фон шапки                rgb(141, 38, 182)
     --blue-plate   синяя плашка с текстом   rgb(5, 36, 249)
     --orange       CTA фон                  rgb(251, 125, 40)
     --orange-brd   CTA dashed border        rgb(229, 95, 4)
     --plate-grey   серая плашка hero        rgb(98, 98, 98)
     --red-title    красные заголовки карточек rgb(238, 29, 37)
   Шрифт: Fira Sans Light (300) основной, Fira Sans 400/700 заголовки
   Структура:
     - Шапка фиолетовая, в ней белая карточка с синей плашкой + телефон + CTA
     - Hero — картинка-фон no-repeat (не cover), много padding сверху/снизу
     - Секции карточек персонажей — БЕЛЫЕ
     - Видео — YouTube iframe
     - Галерея — слайдер (как в mumkam)
     - Услуги, видеогалерея — БЕЛЫЕ секции
     - Подвал
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --purple-bar: rgb(141, 38, 182);
  --blue-plate: rgb(5, 36, 249);
  --orange:     rgb(251, 125, 40);
  --orange-hov: rgb(231, 96, 4);
  --orange-brd: rgb(229, 95, 4);
  --plate-grey: rgb(98, 98, 98);
  --red-title:  rgb(238, 29, 37);
  --white:      #fff;
  --text:       #333;
  --max:        1140px;
}

body {
  margin: 0;
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
iframe { border: 0; max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   ШАПКА: фиолетовая полоса (rgb 141,38,182)
   ============================================================ */
.topbar {
  background: var(--purple-bar);
  color: #fff;
  padding: 5px 0;
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
.topbar__row {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 12px;
}

/* Левая колонка: белая карточка + синяя плашка с текстом */
.topbar__card {
  background: #fff;
  border: 1px solid rgb(217, 217, 217);
  border-radius: 5px;
  box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.1);
  padding: 6px;
}
.topbar__title-plate {
  background: var(--blue-plate);
  color: rgb(250, 253, 254);
  padding: 5px;
  text-align: center;
  font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Правая колонка: телефон-кнопка без фона */
.topbar__phone {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 8px 12px;
  font-size: 29px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  letter-spacing: 0.3px;
}
.topbar__phone:hover { color: rgb(202, 202, 202); }

/* CTA-кнопка под шапкой */
.topbar__cta {
  text-align: center;
  padding: 10px 0 5px;
}

/* ============================================================
   КНОПКА «Заказать звонок» (CTA)
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 8px 28px;
  border-radius: 15px;
  border: 2px dashed var(--orange-brd);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
  transition: background .15s ease;
}
.btn:hover { background: rgb(250, 108, 11); border-color: rgb(183, 76, 3); }
.btn:active { background: var(--orange-hov); }

/* ============================================================
   HERO: фоновое фото + плашка текста
   ============================================================ */
.hero {
  background-image: url('/media/hero.jpg');
  background-position: center center;
  background-size: auto;
  background-repeat: no-repeat;
  background-color: #fff;
  color: #fff;
  padding: 151px 16px 200px;
  text-align: center;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero__h1 {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Fira Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: rgb(98, 98, 98);
}
.hero__sub {
  margin: 0;
  text-align: center;
  font-family: "Fira Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.hero__line {
  display: inline;
  background: var(--plate-grey);
  color: #fff;
  padding: 2px 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ============================================================
   КАРТОЧКИ ПЕРСОНАЖЕЙ — БЕЛЫЕ СЕКЦИИ
   ============================================================ */
.persona {
  background: #fff;
  padding: 10px 16px 5px;
}
.persona__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.persona__title {
  margin: 0 0 10px;
  font-family: "Fira Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--red-title);
}
.persona__photo {
  margin: 10px auto;
  max-width: 240px;
}
.persona__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.persona__caption {
  margin: 10px 0;
  font-family: "Fira Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--red-title);
}

/* Вертикальные mp4-видео в карточках персонажей — стиль mumkam */
.persona__video {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 14px auto;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(251, 125, 40, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}
.persona__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s;
}
.video-play-btn svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s;
}
.video-wrap:hover .video-play-btn svg {
  transform: scale(1.08);
}
.video-play-btn.hidden {
  display: none;
}

/* ============================================================
   CTA-row — отдельная строка с кнопкой
   ============================================================ */
.cta-row {
  background: #fff;
  text-align: center;
  padding: 10px 16px 20px;
}

/* ============================================================
   ФОТОГАЛЕРЕЯ — белая секция со слайдером
   ============================================================ */
.gallery {
  background: #fff;
  padding: 20px 16px 10px;
}
.gallery__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.gallery__title {
  margin: 0 0 20px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.4;
  color: var(--text);
}
.slider {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.slider__track-wrap {
  overflow: hidden;
  border-radius: 4px;
}
.slider__track {
  display: flex;
  transition: transform .45s ease;
}
.slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid rgba(51, 51, 51, 0.4);
  background: rgba(255, 255, 255, 0.85);
  color: rgb(51, 51, 51);
  font-size: 14px;
  line-height: 37px;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  text-align: center;
}
.slider__arrow:hover { background: #fff; opacity: 1; }
.slider__arrow--prev { left: -50px; }
.slider__arrow--next { right: -50px; }
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 20px;
}
.slider__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(51, 51, 51, 0.2);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background .3s;
}
.slider__dot.active { background: rgb(51, 51, 51); }

/* ============================================================
   ОСНОВНЫЕ УСЛУГИ — белая секция
   ============================================================ */
.services {
  background: #fff;
  padding: 30px 16px 20px;
}
.services__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
}
.services__title {
  margin: 0 0 18px;
  font-family: "Fira Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--red-title);
  text-transform: uppercase;
  line-height: 1.1;
}
.services__lead {
  margin: 0 0 14px;
  font-family: "Fira Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.services__text {
  margin: 0 0 16px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
.services__row {
  margin: 0 0 4px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}
.services__note {
  margin: 16px 0 8px;
  font-size: 17px;
  text-align: center;
}
.services__note a {
  color: var(--red-title);
  font-weight: 700;
  text-decoration: none;
}
.services__price {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* ============================================================
   SEO-СТАТЬЯ (внизу главной)
   ============================================================ */
.seo {
  background: #fff;
  padding: 30px 16px 40px;
}
.seo__inner {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-family: "Fira Sans", sans-serif;
}
.seo__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--red-title);
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}
.seo__sub {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-bar);
  line-height: 1.3;
}
.seo p {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

@media (max-width: 720px) {
  .seo { padding: 24px 14px 32px; }
  .seo__title { font-size: 19px; }
  .seo__sub { font-size: 16px; margin-top: 20px; }
  .seo p { font-size: 15px; line-height: 1.6; }
}

/* ============================================================
   ВИДЕОГАЛЕРЕЯ — 5 вертикальных карточек в ряд (стиль mumkam)
   ============================================================ */
.videos {
  background: #fff;
  padding: 30px 16px 40px;
  text-align: center;
}
.videos__inner {
  max-width: 1140px;
  margin: 0 auto;
}
.videos__title {
  margin: 0 0 28px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  color: var(--text);
}
.videos__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.videos__item {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(251, 125, 40, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}
.videos__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ============================================================
   ПОДВАЛ — белая секция
   ============================================================ */
.footer {
  background: #fff;
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  margin-top: 24px;
  color: var(--text);
}
.footer__inner > * { margin: 6px 0; }
.footer__copy {
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
}
.footer__phone a {
  font-family: "Fira Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.footer__legal a {
  color: var(--text);
  opacity: 0.6;
  font-size: 13px;
}

/* ============================================================
   МОДАЛКА
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-overlay .modal {
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  padding: 0;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.modal__header {
  padding: 15px;
  color: rgb(25, 25, 25);
  border-bottom: 1px solid rgb(230, 230, 230);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal__title {
  margin: 0;
  font-family: "Fira Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}
.modal__close {
  background: transparent;
  border: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.4;
  padding: 0;
}
.modal__close:hover { opacity: 0.7; }
.modal__body {
  padding: 20px;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__input {
  font-size: 14px;
  padding: 12px 9.6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0;
  width: 100%;
  font-family: "Fira Sans", sans-serif;
  background: #fff;
  line-height: 1.2;
}
.modal__input:focus {
  outline: 0;
  border-color: rgb(63, 178, 233);
  background: rgb(252, 252, 252);
}
.modal__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.modal__submit {
  margin-top: 6px;
  width: 100%;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .slider__arrow--prev { left: 4px; }
  .slider__arrow--next { right: 4px; }
}

/* Планшет: 3 видео в ряд в галерее */
@media (max-width: 1024px) {
  .videos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .topbar__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .topbar__phone { font-size: 26px; }
  .hero {
    padding: 40px 16px 32px;
    background-size: cover;
    background-position: center 20%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero__h1 { font-size: 20px; }
  .hero__sub { font-size: 32px; }
  .persona__title { font-size: 19px; }
  .persona__caption { font-size: 19px; }
  .videos__title { font-size: 51px; }
  .services__title { font-size: 19px; }
  .services__lead { font-size: 16px; }
  .btn { font-size: 18px; padding: 8px 24px; }
  /* Видео на мобиле — одна колонка, ограничиваем ширину */
  .videos__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 280px;
  }
  .persona__video {
    max-width: 260px;
  }
  .video-play-btn svg {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .topbar__phone { font-size: 22px; }
  .hero__h1 { font-size: 18px; }
  .hero__sub { font-size: 26px; }
  .videos__title { font-size: 40px; }
}
