/* ====== RESET & BASE ====== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A1A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ====== UTILITIES ====== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: #F5F5F5;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  background: #E05A1B;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background: #C2410C;
}

.btn:active {
  transform: scale(0.98);
}

.btn--large {
  font-size: 1.125rem;
  padding: 18px 40px;
}

.btn--small {
  font-size: 0.875rem;
  padding: 10px 20px;
}

.btn--outline {
  background: transparent;
  color: #C2410C;
  border: 2px solid #E05A1B;
}

.btn--outline:hover {
  background: #C2410C;
  color: #FFFFFF;
}

/* Two-line CTA */
.btn--twoline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}

.btn__sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ====== LINKS ====== */
.link {
  color: #F26522;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  color: #D4551A;
}

.link--large {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

/* ====== MESSENGER ICONS ====== */
.messenger-icon {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.messenger-icon:hover {
  opacity: 1;
}

.messenger-icon--large {
  width: 36px;
  height: 36px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}

/* ====== HEADER ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 72px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1A1A1A;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header__link:hover {
  color: #E40612;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__messengers--mobile {
  display: none;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('assets/images/hero.webp') center/cover no-repeat;
  padding-top: 72px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0;
  text-align: center;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  color: #E40612;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* CTA Block */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-block__phone {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.cta-block__phone .link {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.25rem;
}

.cta-block__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.cta-block__messengers .messenger-icon {
  opacity: 0.9;
}

.cta-block__messengers .messenger-icon:hover {
  opacity: 1;
}

/* ====== AUDIENCE ====== */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.audience-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF3ED;
  border-radius: 10px;
  color: #F26522;
  flex-shrink: 0;
}

.audience-card__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1A1A1A;
}

/* ====== RESULTS ====== */
.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF3ED;
  border-radius: 12px;
  color: #F26522;
  flex-shrink: 0;
}

.result-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.result-card__text {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.5;
}

/* ====== PROGRAMS ====== */
.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.program-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.program-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.program-card__image {
  height: 220px;
  overflow: hidden;
}

.program-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.program-card__age {
  display: inline-block;
  background: #E40612;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  width: fit-content;
}

.program-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.program-card__steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  color: #4B5563;
  padding-left: 12px;
  border-left: 3px solid #F26522;
}

.program-card__desc {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.5;
}

.program-card__meta {
  font-size: 0.8125rem;
  color: #4B5563;
}

.program-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
}

.program-card__body .btn--outline {
  margin-top: auto;
  align-self: flex-start;
}

/* Program details (expandable) */
.program-card__details {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
}

.program-card__summary {
  font-size: 0.875rem;
  font-weight: 600;
  color: #C2410C;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #FFF3ED;
  border-radius: 8px;
  transition: background 0.2s;
}

.program-card__summary:hover {
  background: #FFE4D4;
}

.program-card__summary::-webkit-details-marker {
  display: none;
}

.program-card__summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F26522;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .program-card__summary::before {
  content: '−';
}

.program-card__list {
  margin-top: 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.program-card__list li {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4B5563;
}

/* Extra blocks: intensive, mental */
.programs__extra {
  margin-bottom: 24px;
}

.intensive-block {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.intensive-block__title {
  font-size: 1.125rem;
  font-weight: 700;
  width: 100%;
}

.intensive-block__text {
  font-size: 0.9375rem;
  color: #4B5563;
  flex: 1;
  min-width: 280px;
}

/* ====== LESSONS ====== */
.lessons__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.lesson-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lesson-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF3ED;
  border-radius: 50%;
  color: #F26522;
}

.lesson-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.lesson-card__text {
  font-size: 0.9375rem;
  color: #4B5563;
}

.lessons__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.lessons__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== METHOD ====== */
.method__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

  .method__logo {
    text-align: center;
    margin-bottom: 40px;
  }

  .method__logo-img {
    max-width: 480px;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

.method__text p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.7;
}

.method__text p:last-child {
  margin-bottom: 0;
}

.method__image {
  border-radius: 16px;
  overflow: hidden;
  object-fit: cover;
}

.method__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method__content--full {
  grid-template-columns: 1fr;
}

.method__certs-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.cert-thumb {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cert-thumb img {
  width: 100%;
  height: auto;
}

.method__cta {
  text-align: center;
}

/* ====== GALLERY ====== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== REVIEWS ====== */
.reviews__carousel {
  position: relative;
  overflow: hidden;
}

/* Навигационная панель: ◀  ──●──  1/22  ▶ */
.reviews__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 20px;
}

.reviews__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  color: #1A1A1A;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.reviews__arrow:hover {
  background: #F26522;
  color: #FFFFFF;
  border-color: #F26522;
}

/* Индикатор: progress bar + counter */
.reviews__indicator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.reviews__progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.reviews__progress-fill {
  height: 100%;
  background: #F26522;
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 4.545%; /* 1/22 по умолчанию */
}

.reviews__counter {
  font-size: 0.8125rem;
  color: #4B5563;
  font-weight: 600;
  white-space: nowrap;
}

/* Трек */
.reviews__track {
  display: flex;
  transition: transform 0.4s ease, height 0.4s ease;
  gap: 24px;
  align-items: flex-start;
}

/* Карточка отзыва */
.review-card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: #F5F5F5;
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1A1A1A;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.review-card__author {
  font-size: 0.875rem;
  font-weight: 700;
  color: #C2410C;
}

/* ====== CTA MODAL ====== */
.modal--cta .modal__content--cta {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: calc(100% - 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.modal--cta .modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #4B5563;
  font-size: 1.5rem;
}

.cta-modal__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1A1A1A;
}

.cta-modal__label {
  font-size: 0.875rem;
  color: #4B5563;
  font-weight: 600;
  margin: 0;
}

.cta-modal__phone {
  font-size: 1.25rem;
  width: 100%;
}

.cta-modal__messengers {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta-modal__hours {
  font-size: 0.8125rem;
  color: #4B5563;
}

/* Подписи в секции контактов */
.contacts__label {
  font-size: 0.875rem;
  color: #4B5563;
  font-weight: 600;
}

/* ====== REVIEWS RESPONSIVE ====== */
@media (max-width: 768px) {
  .reviews__nav {
    gap: 12px;
    padding: 0 0 16px;
  }


  .reviews__arrow {
    width: 36px;
    height: 36px;
  }

  .review-card {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .reviews__nav {
    gap: 8px;
    padding: 0 0 12px;
  }

  .reviews__arrow {
    width: 32px;
    height: 32px;
  }

  .reviews__arrow svg {
    width: 18px;
    height: 18px;
  }

  .reviews__counter {
    font-size: 0.75rem;
  }
}

/* ====== CONTACTS ====== */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__address {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.contacts__hours {
  font-size: 0.9375rem;
  color: #4B5563;
}

.contacts__phone {
  margin-bottom: 8px;
}

.contacts__messengers {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.contacts__map {
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ====== FOOTER ====== */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8125rem;
  color: #4B5563;
}

.footer__messengers {
  display: flex;
  gap: 10px;
}

/* ====== MODAL ====== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.modal__img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ====== RESPONSIVE ====== */

/* Tablet */
@media (max-width: 1024px) {
  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .method__content {
    grid-template-columns: 1fr;
  }

  .method__image {
    aspect-ratio: 16 / 9;
  }

  .contacts__inner {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 1.625rem;
    margin-bottom: 32px;
  }

  /* Header mobile */
  .header__nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: auto;
    background: #FFFFFF;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 20px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav .header__link {
    font-size: 1.25rem;
  }

  .header__messengers--desktop {
    display: none;
  }

  .header__messengers--mobile {
    display: flex;
    gap: 16px;
  }

  .burger {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__title {
    font-size: 1.875rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 12px 20px;
    white-space: normal;
    word-break: break-word;
  }

  .btn--large {
    font-size: 0.9375rem;
    padding: 14px 24px;
  }

  .audience__grid {
    grid-template-columns: 1fr;
  }

  /* Results mobile */
  .results__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Programs mobile */
  .programs__grid {
    max-width: 100%;
  }

  .program-card__image {
    height: 180px;
  }

  /* Lessons mobile */
  .lessons__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Certs mobile */
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cert-thumb {
    min-height: 44px;
    padding: 4px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer mobile */
  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.8125rem;
    padding: 10px 16px;
  }

  .program-card__body {
    padding: 16px;
  }

  .program-card__price {
    font-size: 0.875rem;
  }

  .intensive-block {
    padding: 20px;
  }

  .lessons__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .intensive-block {
    flex-direction: column;
    align-items: flex-start;
  }
}
