/* ============================================================
   BUBBLE BRUSH — style.css
   Общие стили: сброс, кнопки, навигация, футер,
   карточки мастер-классов, FAQ, отзывы, анимации
   ============================================================ */

/* ──────────────────────────────────────────
   СБРОС + БАЗОВЫЕ ТЕГИ
────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: #2d1b4e;
  background: #F7F4FF;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ──────────────────────────────────────────
   ЗАГОЛОВКИ
────────────────────────────────────────── */
h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: 0.03em;
}

h3, h4 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
}

/* Общий заголовок секции */
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #2d1b4e;
  margin-bottom: 2.5rem;
}

/* Жёлтый ромб-декор ✦ */
.diamond {
  color: #fbbf24;
  margin-right: 0.3em;
}

/* Розовый курсив */
.highlight {
  color: #ec4899;
  font-style: italic;
}

/* ──────────────────────────────────────────
   КНОПКИ
────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2.5px solid transparent;
  letter-spacing: 0.01em;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Розовая (основная) */
.btn--primary {
  background: #ED76A9;
  color: #ffffff;
  border-color: #ED76A9;
}
.btn--primary:hover {
  background: #d95f94;
}

/* Книга мастер-класса */
.btn--book {
  background: #ED76A9;
  color: #ffffff;
  border-color: #ED76A9;
}
.btn--book:hover {
  background: #d95f94;
}

/* Контурная (на тёмном фоне) */
.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn--outline:hover {
  background: #ffffff;
  color: #7c3aed;
}

/* Ярко-розовая */
.btn--pink {
  background: #ED76A9;;
  color: #ffffff;
  border-color: #ED76A9;;
}
.btn--pink:hover {
  background:  #d95f94;
}

/* Зелёная */
.btn--green {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
}

/* Кнопка в навигации */
.btn--nav {
  background: #ED76A9;
  color: #ffffff;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-color: #ED76A9;
}

/* Маленькая */
.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

/* ──────────────────────────────────────────
   НАВИГАЦИЯ
────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(124,58,237,0.08);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 4px 30px rgba(124,58,237,0.14);
}

/* Логотип */
.nav__logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-bubble { color: #2E1B4E; }
.logo-brush  { color: #ED76A9; }

/* Ссылки меню */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav__links li {
  position: relative;
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2d1b4e;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.nav__links a:hover {
  color: #7c3aed;
  background: #f0ebff;
}

/* Активная ссылка (добавляется на каждой странице) */
.nav__active {
  color: #7c3aed !important;
  font-weight: 900 !important;
}

/* Дропдаун */
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(124,58,237,0.18);
  padding: 0.4rem 0;
  min-width: 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown li a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Бургер (мобильное меню) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #2d1b4e;
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ──────────────────────────────────────────
   SKIP LINK (доступность)
────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #7c3aed;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ──────────────────────────────────────────
   КАРТОЧКИ МАСТЕР-КЛАССОВ
────────────────────────────────────────── */
.workshops__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.workshop-card {
  background: linear-gradient(180deg, #2E1B4E 0%, #6A3EB4 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(46,27,78,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(46,27,78,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.workshop-card:first-child { border-top: 5px solid #fbbf24; }
.workshop-card:last-child  { border-top: 5px solid rgba(255,255,255,0.35); }

/* Слайдер внутри карточки */
.workshop-card__slider {
  position: relative;
  background: linear-gradient(180deg, rgba(46,27,78,0.6) 0%, rgba(106,62,180,0.4) 100%);
  backdrop-filter: blur(8px);
  height: 240px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.slider__slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: 1.5rem;
}
.slider__slide img {
  width: auto;
  max-width: 110%;
  height: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  transition: transform 0.5s ease, filter 0.5s ease;
  transform: scale(1);
}
.slider__slide img.zoom-in {
  transform: scale(1.13);
  filter: drop-shadow(0 14px 36px rgba(0,0,0,0.3));
}

/* Кнопки слайдера */
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.slider__btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
}
.slider__btn--prev { left: 0.75rem; }
.slider__btn--next { right: 0.75rem; }

/* Точки слайдера */
.slider__dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider__dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* Текст карточки */
.workshop-card__body { padding: 1.4rem; }
.workshop-card__body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #ffffff;
}
.workshop-card__body p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Теги */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.tag {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ──────────────────────────────────────────
   FAQ
────────────────────────────────────────── */
.faq {
  padding: 5rem 2.5rem;
  max-width: 100%;
  margin: 0;
  position: relative;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.faq__left {
  flex-shrink: 0;
  width: 240px;
}
.faq__left .section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #2d1b4e;
  line-height: 1.15;
  margin-bottom: 0;
}
.faq__content {
  flex: 1;
  max-width: 620px;
}
.faq .section-title { margin-bottom: 2rem; }

.faq-item {
  border-bottom: 1.5px solid #c4b5fd;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2d1b4e;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}
.faq-question:hover,
.faq-question[aria-expanded="true"] {
  color: #7c3aed;
}
.faq-icon {
  font-size: 1.3rem;
  color: #7c3aed;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 200px;
  padding-bottom: 1rem;
}
.faq-answer p {
  color: #7c6897;
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.faq-cta p { font-weight: 700; }
.faq-cta .btn {
  background: #ED76A9;
  border-color: #ED76A9;
  color: #ffffff;
}
.faq-cta .btn:hover {
  background: #d95f94;
  border-color: #d95f94;
}

/* Вертолётик в FAQ */
.faq__helicopter {
  flex-shrink: 0;
  width: 220px;
  position: relative;
  display: flex;
  align-items: stretch;
}
.helicopter-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: helicopter 4s ease-in-out infinite;
}
@keyframes helicopter {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

/* ──────────────────────────────────────────
   ОТЗЫВЫ
────────────────────────────────────────── */
.testimonials {
  background: #2E1B4E;
  padding: 5rem 2.5rem 4rem;
}

.testimonials__layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.testimonials__left {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.testimonials__mascot { margin-top: auto; }
.megaphone-img { width: 220px; height: auto; display: block; }

/* Грид карточек — 3 колонки */
.testimonials__grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 0.9rem 0.9rem 1rem;
  color: #2d1b4e;
  overflow: hidden;
  word-break: break-word;
}

.tcard__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

/* Аватары */
.tcard__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #ffffff;
  flex-shrink: 0;
}
.tcard__avatar--s { background: #6366f1; }
.tcard__avatar--j { background: #f59e0b; }
.tcard__avatar--a { background: #10b981; }
.tcard__avatar--m { background: #ec4899; }
.tcard__avatar--d { background: #8b5cf6; }
.tcard__avatar--n { background: #06b6d4; }
.tcard__avatar--l { background: #f97316; }
.tcard__avatar--p { background: #84cc16; }

.tcard__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tcard__meta strong {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1a0533;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcard__meta span {
  font-size: 0.65rem;
  color: #7c6897;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcard__brand {
  font-size: 0.65rem;
  font-weight: 700;
  color: #7c3aed;
  white-space: nowrap;
  flex-shrink: 0;
}

.tcard__when {
  font-size: 0.65rem;
  color: #7c6897;
  margin-bottom: 0.3rem;
}

.stars {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 1px;
  margin-bottom: 0.45rem;
  display: block;
}

.testimonial-card p {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #2d1b4e;
  margin: 0;
}

/* ──────────────────────────────────────────
   ФУТЕР
────────────────────────────────────────── */
.footer {
  background: #1a0533;
  color: rgba(255,255,255,0.8);
  padding: 4rem 2.5rem 2rem;
}
.footer__inner { max-width: 1100px; margin: 0 auto; }

.footer__brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}
.footer__brand .logo-bubble { color: #c4b5fd; }
.footer__brand .logo-brush  { color: #f472b6; }

.footer__desc {
  max-width: 640px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

/* ── Social icons ── */
.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.footer__social-link:hover {
  background: #ED76A9;
  border-color: #ED76A9;
  color: #ffffff;
  transform: translateY(-2px);
}
.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}

.footer__col-heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
}
.footer__col li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.footer__col a {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}
.footer__col a:hover { color: #c4b5fd; }

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}
.footer__legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__legal a {
  color: rgba(255,255,255,0.38);
  transition: color 0.3s ease;
}
.footer__legal a:hover { color: #c4b5fd; }
.footer__bottom .btn--green { margin-left: auto; }

/* ──────────────────────────────────────────
   АНИМАЦИИ ПОЯВЛЕНИЯ
────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ──────────────────────────────────────────
   АДАПТИВ — ОБЩИЕ
────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Навигация */
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav__hamburger { display: flex; }
  .btn--nav { display: none; }

  /* FAQ */
  .faq {
    flex-direction: column;
    gap: 1rem;
    padding: 3.5rem 1.5rem;
  }
  .faq__left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  .faq__left .section-title { font-size: 2rem; margin-bottom: 0; }
  .faq__content { max-width: 100%; }
  .faq__helicopter {
    display: flex;
    justify-content: center;
    position: static;
    width: 100%;
    height: auto;
    align-items: center;
  }
  .helicopter-img {
    width: 120px;
    height: auto;
    object-fit: contain;
  }

  /* Отзывы */
  .testimonials__layout { flex-direction: column; }
  .testimonials__left {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .testimonials__title {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .megaphone-img { width: 80px; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .faq,
  .testimonials,
  .footer {
    padding: 3.5rem 1.2rem;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__bottom .btn--green { margin-left: 0; }

  /* Отзывы */
  .testimonials { padding: 3rem 1.2rem 3.5rem; }
  .testimonials__left { gap: 1rem; }
  .megaphone-img { width: 60px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card p { font-size: 0.8rem; }
}
