/* ============================================================
   top39.ru — Аниматоры Калининград (вёрстка 1-в-1 с оригиналом)
   Тёмная тема, Nunito + Oswald
   ============================================================ */

:root {
  --bg-dark: rgb(20, 21, 23);
  --bg-2: rgb(27, 28, 31);
  --bg-3: rgb(34, 35, 38);
  --hero-overlay: rgba(38, 39, 41, 0.95);
  --plate: rgba(75, 79, 85, 0.27);
  --plate-2: rgba(75, 79, 85, 0.26);
  --orange: rgb(251, 166, 40);
  --orange-brd: rgb(228, 139, 5);
  --orange-hov: rgb(250, 155, 12);
  --green: rgb(0, 179, 93);
  --green-brd: rgb(0, 144, 75);
  --green-icon: rgb(67, 217, 145);
  --green-title: rgb(86, 221, 156);
  --green-line: rgb(180, 240, 211);
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.75);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--green-title); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: "Oswald", "Nunito", sans-serif; font-weight: 400; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 8px 28px;
  background: var(--orange);
  border: 2px dashed var(--orange-brd);
  border-radius: 15px;
  color: #fff !important;
  font: 700 20px "Nunito", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--orange-hov); border-color: rgb(182, 111, 4); }
.btn--green {
  background: var(--green);
  border: 0;
  border-radius: 15px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 400;
}
.btn--green:hover { background: rgb(0, 162, 84); }

/* Кнопка-телефон (прозрачный фон, белый текст) */
.phone-btn {
  display: inline-block;
  padding: 8px 28px;
  background: transparent;
  border: 0;
  border-radius: 25px;
  color: #fff !important;
  font: 700 25px "Nunito", sans-serif;
  text-decoration: none;
  transition: background 0.15s;
}
.phone-btn:hover { background: rgba(232, 164, 225, 0.2); }

/* ============================================================
   HERO — parallax с overlay + 2 ряда (топбар + hero__main)
   ============================================================ */
.hero {
  position: relative;
  background-image: url('media/hero-bg.webp');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 30px;
}

/* ===== Ряд 1 — TOPBAR ===== */
.topbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}
.topbar__left {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
}
.topbar__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #333;
}
.topbar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topbar__title {
  font: 700 22px/1.3 "Nunito", sans-serif;
  color: #fff;
  margin: 0;
  text-align: left;
}
.topbar__subtitle {
  font: 400 15px/1.4 "Nunito", sans-serif;
  color: #fff;
  margin: 6px 0 0;
  text-align: left;
}
.topbar__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ===== Ряд 2 — HERO__MAIN (фото слева 42% / контент справа 58%) ===== */
.hero__main {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 30px;
  margin-top: 24px;
  align-items: center;
}
.hero__photo img {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
.hero__content {
  padding-left: 5px;
}
.hero__title {
  font: 400 52px/1.1 "Oswald", sans-serif;
  color: #fff;
  margin: 0 0 12px;
  text-align: left;
}
.hero__subtitle {
  font: 700 22px/1.4 "Nunito", sans-serif;
  color: #fff;
  margin: 0 0 14px;
  text-align: center;
}

/* ===== Список преимуществ с зелёными ▷-стрелками ===== */
.features { margin-top: 4px; }
.features__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 5px;
  font: 400 18px/1.3 "Nunito", sans-serif;
  color: #fff;
}
.features__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--green-icon);
}

/* ===== HERO CTA (нижняя кнопка) ===== */
.hero__cta {
  text-align: center;
  margin-top: 22px;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section {
  padding: 47px 20px 30px;
}
.section--dark2 { background: var(--bg-2); }
.section--dark3 { background: var(--bg-3); }
.section--darkest { background: var(--bg-dark); }
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section__title {
  font: 400 36px/1.1 "Oswald", sans-serif;
  text-align: center;
  margin: 0 0 8px;
  color: #fff;
}
.section__title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 36px;
}
.section__title-divider .line {
  width: 20px;
  height: 2px;
  background: var(--green-line);
}
.section__title-divider svg {
  width: 33px;
  height: 33px;
  margin: 0 10px;
  fill: var(--green-icon);
}

.section__subtitle {
  font: 500 24px/1.3 "Oswald", sans-serif;
  color: var(--green-title);
  text-align: center;
  margin: 0 0 10px;
}
.section__lead {
  font: 300 18px/1.5 "Nunito", sans-serif;
  text-align: center;
  margin: 0 auto 30px;
  max-width: 720px;
}

/* ============================================================
   ПЕРСОНАЖИ — единый размер карточек через aspect-ratio
   ============================================================ */
.characters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.character {
  background: var(--plate);
  border-radius: 5px;
  padding: 16px 16px 16px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.character:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(86, 221, 156, 0.2);
}
.character__name {
  font: 700 18px/1.3 "Nunito", sans-serif;
  margin-bottom: 12px;
  display: block;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.character__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.character__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   ВИДЕО — вертикальные карточки 9:16 (как на mumkam/мишка39)
   ============================================================ */
.videos__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.video-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(86, 221, 156, 0.4), 0 6px 20px rgba(0, 0, 0, 0.5);
}
.video-card 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; }

/* ============================================================
   ВХОДИТ В ПОЗДРАВЛЕНИЕ
   ============================================================ */
.includes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.includes__item {
  background: var(--plate-2);
  border-radius: 5px;
  padding: 24px 40px;
  text-align: center;
  font-size: 18px;
}

/* ============================================================
   ЗАКАЗАТЬ АНИМАТОРА ОЧЕНЬ ПРОСТО — 4 шага
   ============================================================ */
.howto__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}
.howto__title h2 {
  font: 500 24px/1.3 "Oswald", sans-serif;
  color: var(--green-title);
  margin: 0;
  text-align: center;
}
.howto__title .line {
  width: 30px;
  height: 2px;
  background: var(--green-line);
  flex: 0 0 30px;
}
.howto__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.howto__item {
  text-align: center;
}
.howto__icon {
  width: 90px;
  height: 90px;
  background: var(--green-icon);
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.howto__icon svg {
  width: 50px;
  height: 50px;
  fill: #fff;
}
.howto__item p {
  font: 300 18px/1.4 "Nunito", sans-serif;
  color: #fff;
  margin: 0;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.faq__item {
  display: flex;
  gap: 16px;
  background: var(--plate);
  padding: 22px;
  border-radius: 5px;
}
.faq__num {
  flex: 0 0 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 22px "Oswald", sans-serif;
  color: #fff;
}
.faq__text {
  flex: 1;
  font: 400 17px/1.4 "Nunito", sans-serif;
  align-self: center;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-dark);
}
.contacts__phone {
  display: block;
  font: 700 36px "Oswald", sans-serif;
  color: #fff;
  text-decoration: none;
  margin: 24px auto;
}
.contacts__cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  padding: 22px 20px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.footer a { color: var(--text-dim); }
.footer__legal { margin-top: 6px; }

/* ============================================================
   МОДАЛКА
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  color: #222;
  border-radius: 6px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.modal__header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.modal__title { font: 700 22px "Nunito", sans-serif; margin: 0; }
.modal__close {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.modal__close:hover { color: #222; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 3px solid rgba(0, 0, 0, 0.32);
  border-radius: 4px;
  outline: none;
  font-family: "Nunito", sans-serif;
}
.modal__input:focus { border-color: var(--green-icon); }
.modal__honeypot { position: absolute; left: -9999px; }
.modal__submit { width: 100%; padding: 14px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .topbar { grid-template-columns: 1fr; gap: 16px; }
  .topbar__left { grid-template-columns: 140px 1fr; }
  .topbar__avatar { width: 140px; height: 140px; }
  .topbar__title, .topbar__subtitle { text-align: left; }
  .hero__title { font-size: 48px; }
  .characters__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .howto__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .includes__list { grid-template-columns: 1fr; }
  .faq__list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
  .hero__inner { padding: 24px 16px; }
  .topbar { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .topbar__left {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .topbar__title, .topbar__subtitle { text-align: center; }
  .topbar__avatar { width: 140px; height: 140px; margin: 0 auto; }
  .topbar__right { width: 100%; }
  .phone-btn { font-size: 22px; }

  .hero__main { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .hero__photo img { max-width: 320px; }
  .hero__title {
    font: 400 45px/1.1 "Oswald", sans-serif !important;
    text-align: center;
  }
  .hero__subtitle { font-size: 20px; text-align: center; }
  .features__item { font-size: 17px; }

  .section { padding: 36px 16px; }
  .section__title { font-size: 29px; }
  .characters__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .character { padding: 10px; }
  .character__name { font-size: 15px; min-height: 2.4em; }
  .howto__grid { grid-template-columns: 1fr; gap: 20px; }
  .howto__icon { width: 70px; height: 70px; }
  .howto__icon svg { width: 40px; height: 40px; }
  .howto__title { gap: 12px; }
  .howto__title h2 { font-size: 20px; }
  .videos__grid { grid-template-columns: 1fr; }
  .contacts__phone { font-size: 28px; }
  .btn { font-size: 18px; padding: 8px 24px; }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
  background: var(--bg-2);
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.breadcrumbs__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumbs a {
  color: var(--green-title);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.35);
}
.breadcrumbs__current {
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   SEO-ТЕКСТ (большой контентный блок)
   ============================================================ */
.seo-text {
  background: var(--bg-2);
  padding: 48px 24px;
}
.seo-text__inner {
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--text-dim);
  font-size: 16.5px;
}
.seo-text h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--green-title);
  margin: 32px 0 16px;
  line-height: 1.2;
}
.seo-text h2:first-child { margin-top: 0; }
.seo-text p {
  margin: 0 0 16px;
  color: var(--text-dim);
}
.seo-text strong {
  color: var(--orange);
  font-weight: 700;
}
.seo-text a {
  color: var(--green-title);
  text-decoration: underline;
  text-decoration-color: rgba(86, 221, 156, 0.4);
  text-underline-offset: 3px;
}
.seo-text a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.seo-text ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 16px;
}
.seo-text ul li {
  margin-bottom: 8px;
  color: var(--text-dim);
}

/* ============================================================
   CTA-STRIP (узкая полоса с телефоном)
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hov) 100%);
  padding: 24px 24px;
}
.cta-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.cta-strip__text {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  color: #fff;
  font-weight: 500;
  margin: 0;
}
.cta-strip__phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 24px;
  white-space: nowrap;
}
.cta-strip .btn {
  background: #fff;
  color: var(--orange) !important;
  border-color: rgba(255,255,255,0.5);
}
.cta-strip .btn:hover {
  background: #fff;
  color: var(--orange-brd) !important;
}

@media (max-width: 768px) {
  .seo-text { padding: 32px 16px; }
  .seo-text h2 { font-size: 22px; }
  .seo-text__inner { font-size: 16px; line-height: 1.65; }
  .cta-strip__text { font-size: 18px; }
  .cta-strip__phone { font-size: 22px; }
  .breadcrumbs { font-size: 13px; padding: 12px 0; }
  .breadcrumbs__inner { padding: 0 16px; }
}

/* === Кликабельная шапка-логотип + футер с брендом (2026-05-27) === */
a.topbar__left { text-decoration: none; color: inherit; }
a.topbar__left:hover .topbar__title { opacity: 0.85; }

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 0 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer__brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}
.footer__brand:hover { opacity: 0.85; }
.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.6;
}
.footer__copy a { color: rgba(255,255,255,0.7); text-decoration: underline; }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; gap: 14px; }
  .footer__brand { font-size: 20px; }
}
