/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #2d2d2d;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===========================
   VARIABLES
=========================== */
:root {
  --green:      #4CAF50;
  --green-dark: #388E3C;
  --teal:       #00C4D8;
  --teal-dark:  #0099A8;
  --olive:      #2d2c08;
  --section-gap: 64px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  padding: 14px 36px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  padding: 14px 36px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-teal:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
}
.header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo {
  color: #2d2d2d;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.header__logo:hover { color: var(--green); }
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__nav-link {
  color: #2d2d2d;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}
.header__nav-link:hover { color: var(--green); }

/* ===========================
   HERO
=========================== */
.hero {
  background: #fff;
  padding-top: 62px;
}
.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__title {
  font-size: 38px;
  font-weight: 900;
  color: #2d2d2d;
  line-height: 1.2;
}
.hero__sub {
  font-size: 18px;
  font-weight: bold;
  color: #2d2d2d;
  line-height: 1.5;
  margin: 0;
}
.hero__photos {
  width: 100%;
  max-width: 480px;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
}
.hero__photos img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.hero__region {
  font-size: 20px;
  font-weight: bold;
  color: #2d2d2d;
}

/* ===========================
   PROGRAM
=========================== */
.program {
  background: var(--olive);
  padding: var(--section-gap) 0;
}
.program__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.section-title {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.3;
  text-align: center;
}
.section-title--dark { color: #2d2d2d; }

.program__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 auto 28px;
  text-align: left;
  width: fit-content;
}
.program__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.program__check {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}
.program__text {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  line-height: 1.45;
}
.program__price {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ===========================
   GALLERY
=========================== */
.gallery {
  background: #fff;
  padding: var(--section-gap) 0 32px;
}
.gallery__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* ===========================
   SLIDER
=========================== */
.slider {
  position: relative;
  margin-top: 28px;
  margin-bottom: 28px;
  user-select: none;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.slider__track-wrap {
  overflow: hidden;
  border-radius: 12px;
}
.slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider__slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #eee;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.slider__arrow:hover {
  background: var(--green);
  transform: translateY(-50%) scale(1.08);
}
.slider__arrow--prev { left: -24px; }
.slider__arrow--next { right: -24px; }
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.slider__dot.active {
  background: var(--green);
  transform: scale(1.3);
}

/* ===========================
   VIDEO
=========================== */
.video-section {
  background: #fff;
  padding: 20px 0 var(--section-gap);
}
.video-section__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.video-single {
  max-width: 300px;
  margin: 24px auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border: 2px solid var(--green);
  aspect-ratio: 9 / 16;
  position: relative;
}
.video-single video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-wrap { cursor: pointer; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  z-index: 2;
}
.video-play-btn svg {
  width: 64px; height: 64px;
  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.1); }
.video-play-btn.hidden { display: none; }

/* ===========================
   CTA STRIP
=========================== */
.cta-strip {
  background: var(--olive);
  padding: 28px 20px;
}
.cta-strip__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.cta-strip__text {
  color: #fff;
  font-size: 16px;
  line-height: 1.55;
}

/* ===========================
   REVIEWS
=========================== */
.reviews {
  background: #fff;
  padding: var(--section-gap) 0;
}
.reviews__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.reviews .slider { max-width: 320px; }
.slider--light .slider__slide {
  background-color: #f5f5f5;
  aspect-ratio: 9 / 16;
  background-size: contain;
}
.slider--light .slider__track-wrap { box-shadow: 0 2px 16px rgba(0,0,0,0.12); }
.slider--light .slider__dot { background: rgba(0,0,0,0.2); }

/* Слайдер для вертикальных фото галереи (Пирожков, Стас и др) */
.gallery .slider--portrait { max-width: 360px; margin: 0 auto 40px; }
.slider--portrait .slider__slide {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: #1a1a04;
}
/* Стрелки на середине фото, а не всего слайдера (фото + точки) */
.slider--portrait .slider__arrow {
  top: 47%;
}
.slider--portrait .slider__dots {
  margin-top: 20px;
  margin-bottom: 24px;
}

/* ===========================
   FAQ
=========================== */
.faq {
  background: #fff;
  padding: var(--section-gap) 0;
}
.faq__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.faq__list {
  margin-top: 28px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.faq__item { border-bottom: 1px solid #e8e8e8; }
.faq__item:last-child { border-bottom: none; }
.faq__question {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #2d2d2d;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, color 0.2s;
}
.faq__question:hover { background: #f0faf0; color: var(--green); }
.faq__question.active { background: #f0faf0; color: var(--green); }
.faq__arrow {
  font-size: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--green);
}
.faq__question.active .faq__arrow { transform: rotate(180deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #f0faf0;
}
.faq__answer.open { max-height: 200px; }
.faq__answer-text {
  padding: 0 20px 18px;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* ===========================
   OTHER PERSONAS (footer-link block)
=========================== */
.other-personas {
  background: #f7f6f0;
  padding: 28px 20px 32px;
  border-top: 1px solid #ecebe0;
}
.other-personas__inner {
  max-width: 1140px;
  margin: 0 auto;
}
.other-personas__title {
  font-size: 15px;
  color: #777;
  font-weight: 500;
  margin: 0 0 18px;
  text-align: center;
  letter-spacing: 0.01em;
}
.other-personas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.other-personas__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
}
.other-personas__card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: #fff;
}
.other-personas__card:hover { opacity: 0.85; transform: translateY(-2px); }
.other-personas__card:hover img { border-color: #4CAF50; }
@media (max-width: 768px) {
  .other-personas { padding: 22px 12px 26px; }
  .other-personas__grid { gap: 10px; }
  .other-personas__card { width: 82px; font-size: 12px; }
  .other-personas__card img { width: 60px; height: 60px; }
}

/* ===========================
   BREADCRUMBS
=========================== */
.breadcrumbs {
  background: #f7f6f0;
  padding: 12px 20px;
  border-bottom: 1px solid #ecebe0;
  font-size: 14px;
}
.breadcrumbs__inner {
  max-width: 1140px;
  margin: 0 auto;
  color: #666;
}
.breadcrumbs a {
  color: #4CAF50;
  text-decoration: none;
  transition: opacity 0.2s;
}
.breadcrumbs a:hover { opacity: 0.75; text-decoration: underline; }
.breadcrumbs__sep {
  margin: 0 8px;
  color: #b9b8a8;
}
.breadcrumbs__current {
  color: #2d2d2d;
  font-weight: 500;
}
@media (max-width: 768px) {
  .breadcrumbs { display: none; }
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--olive);
  padding: 28px 20px;
}
.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  transition: opacity 0.2s;
}
.footer__brand:hover { opacity: 0.8; }
.footer__copy {
  max-width: 1140px;
  margin: 16px auto 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  color: #aaa;
  font-family: Arial, Helvetica, sans-serif;
  transition: color 0.2s;
}
.modal__close:hover { color: #333; }
.modal__title {
  font-size: 24px;
  font-weight: bold;
  color: #2d2d2d;
  margin-bottom: 20px;
  text-align: center;
}
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__input {
  width: 100%;
  padding: 14px 18px;
  font-size: 17px;
  font-family: Arial, Helvetica, sans-serif;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #2d2d2d;
  outline: none;
  transition: border-color 0.2s;
}
.modal__input::placeholder { color: #aaa; }
.modal__input:focus { border-color: var(--green); }
.modal__submit { width: 100%; }

/* ===========================
   MAIN PAGE — USP / PERSONS / STEPS / VIDEOS GRID
=========================== */
.usp { background: #fff; padding: var(--section-gap) 0 32px; }
.usp__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.usp__image { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.usp__image img { width: 100%; display: block; }
.usp__content { display: flex; flex-direction: column; gap: 20px; }
.usp__title { font-size: 28px; font-weight: 900; color: #2d2d2d; line-height: 1.25; }
.usp__sub { font-size: 16px; color: #555; line-height: 1.5; }
.usp__list { display: flex; flex-direction: column; gap: 12px; }
.usp__item { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #2d2d2d; font-weight: bold; }
.usp__check {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}
.usp__cta { margin-top: 12px; align-self: flex-start; }

.persons { background: #fff; padding: 32px 0 var(--section-gap); }
.persons__inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; text-align: center; }
.persons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.person-card {
  display: block;
  text-align: center;
  transition: transform 0.2s;
}
.person-card:hover { transform: translateY(-4px); }
.person-card__name {
  font-size: 18px;
  font-weight: 900;
  color: #2d2d2d;
  margin-bottom: 10px;
  line-height: 1.3;
}
.person-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center top;
  background-color: #eee;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
}
.person-card:hover .person-card__photo { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.steps { background: var(--olive); padding: var(--section-gap) 0; }
.steps__inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; text-align: center; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 32px 0;
}
.step-card { text-align: center; }
.step-card__num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
}
.step-card__title { font-size: 16px; font-weight: bold; color: #fff; line-height: 1.4; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.video-card { text-align: center; }
.video-card__name { font-size: 16px; font-weight: bold; color: #2d2d2d; margin-bottom: 10px; }
.videos-grid .video-single { max-width: 100%; margin: 0; }

/* ===========================
   SEO TEXT BLOCK (внизу страниц персонажей)
=========================== */
.seo-text {
  background: #f5f4ec;
  padding: 64px 20px;
  border-top: 1px solid #e8e6d8;
}
.seo-text__inner {
  max-width: 820px;
  margin: 0 auto;
}
.seo-text__inner h2 {
  font-size: 24px;
  font-weight: 900;
  color: #1f1e0a;
  margin: 40px 0 16px;
  line-height: 1.3;
  padding-left: 16px;
  border-left: 4px solid var(--green);
}
.seo-text__inner h2:first-child { margin-top: 0; }
.seo-text__inner p {
  font-size: 16px;
  line-height: 1.75;
  color: #2d2d2d;
  margin-bottom: 16px;
  word-wrap: break-word;
}
.seo-text__inner strong {
  font-weight: 700;
  color: #1f1e0a;
}
@media (max-width: 768px) {
  .seo-text { padding: 44px 16px; }
  .seo-text__inner h2 { font-size: 20px; margin-top: 32px; padding-left: 12px; border-left-width: 3px; }
  .seo-text__inner p { font-size: 15px; line-height: 1.7; }
}

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 1024px) {
  .persons-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 992px) {
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .usp__inner { grid-template-columns: 1fr; gap: 28px; }
  .usp__cta { align-self: center; }
  .usp__content { text-align: center; align-items: center; }
}

/* ===========================
   RESPONSIVE — MOBILE 768px
=========================== */
@media (max-width: 768px) {
  :root { --section-gap: 48px; }

  .header { display: none; }

  .hero { padding-top: 20px; }
  .hero__title { font-size: 26px; }
  .hero__sub { font-size: 16px; }
  .hero__photos { max-width: 100%; }

  .section-title { font-size: 22px; }

  .video-section__grid { grid-template-columns: 1fr; }
  .video-section__item { max-width: 85%; margin: 0 auto; }

  .persons-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .person-card__name { font-size: 16px; }
  .videos-grid { grid-template-columns: 1fr; gap: 28px; }
  .videos-grid .video-single { max-width: 280px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .usp__title { font-size: 24px; }

  .slider { max-width: 100%; padding: 0 20px; }
  .slider__arrow--prev { left: 0; }
  .slider__arrow--next { right: 0; }
  .slider__slide { aspect-ratio: 4/3; background-size: cover; }
  .reviews .slider { max-width: 280px; padding: 0; }
  .slider--light .slider__slide { aspect-ratio: 9/16; background-size: contain; }

  .btn { min-height: 44px; }
  .btn-teal { min-height: 44px; }

  .cta-strip__inner { flex-direction: column; text-align: center; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .btn { font-size: 16px; padding: 12px 28px; }
  .btn-teal { font-size: 16px; padding: 12px 28px; }
  .section-title { font-size: 20px; }
  .hero__title { font-size: 24px; }
  .modal { padding: 28px 20px; }
}
