/* ============================================================
   BUBBLE BRUSH — index.css
   Стили только для главной страницы (index.html)
   ============================================================ */

/* ──────────────────────────────────────────
   ГЕРОЙ
────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: #F7F4FF;
  padding: 7.5rem 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: calc(100vh - 7.5rem);
  padding-bottom: 0;
}

.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 4rem;
  max-width: 600px;
}

.hero__center {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
}

/* Большой заголовок H1 */
.hero__h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  color: #2d1b4e;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero__h1-highlight {
  color: #CC7FDA;
  font-style: italic;
  display: block;
}

.hero__sub {
  color: #7c6897;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero__cta {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  padding: 0.85rem 2.5rem;
}

/* Розовые пузыри над персонажем */
.speech-bubble {
  background: #ED76A9;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.10);
  max-width: 220px;
  margin-bottom: 0.75rem;
  animation: floatIn 0.6s ease both;
  position: relative;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 18px;
  border: 10px solid transparent;
  border-top-color: #ED76A9;
  border-bottom: none;
}
.hero__bubbles {
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

/* ──────────────────────────────────────────
   АНИМАЦИИ ГЕРОЯ
────────────────────────────────────────── */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ──────────────────────────────────────────
   СЕКЦИЯ С ПУЗЫРЯМИ И СЛОНОМ
────────────────────────────────────────── */
.bubbles-section {
  background: #F7F4FF;
  overflow: hidden;
  padding: 4rem 2.5rem;
}

.bubbles-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 48px;
}

/* Левая и правая колонки с пузырями */
.bubbles-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  flex: 1;
  max-width: 280px;
  padding: 64px 0;
}
.bubbles-col--right { align-items: flex-start; }
.bubbles-col--left  { align-items: flex-end; }

/* Пузырь */
.bubble {
  position: relative;
  background: #ED76A9;
  color: #ffffff;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 14px 18px;
  border-radius: 10px;
  max-width: 240px;
  box-shadow: 0 4px 20px rgba(237,118,169,0.25);
  animation: floatIn 0.6s ease both;
}

/* Хвостик вправо (пузырь слева от слона) */
.bubble--tail-right::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #ED76A9;
  border-right: none;
}

/* Хвостик влево (пузырь справа от слона) */
.bubble--tail-left::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: #ED76A9;
  border-left: none;
}

/* Задержки появления */
.sb--1 { animation-delay: 0.1s; }
.sb--2 { animation-delay: 0.25s; }
.sb--3 { animation-delay: 0.4s; }
.sb--4 { animation-delay: 0.55s; }

/* Слон */
.bubbles-elephant {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.mascot-elephant {
  width: auto;
  height: 100%;
  max-height: 520px;
  min-height: 300px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(124,58,237,0.12));
  animation: elephant-float 4s ease-in-out infinite;
}
@keyframes elephant-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

/* ──────────────────────────────────────────
   СЕКЦИЯ TAGLINE + ОВЕЧКА
────────────────────────────────────────── */
.tagline-sheep {
  background: #EDE6F7;
  text-align: center;
  padding: 4rem 2rem 0;
  overflow: hidden;
  position: relative;
}

.tagline-bar {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #2d1b4e;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.tagline-bar .diamond { color: #2d1b4e; margin-right: 0.1em; }
.tagline-bar .highlight {
  display: block;
  color: #CC7FDA;
  font-style: normal;
}

.sheep-section {
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
}
.sheep-img {
  width: 340px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(124,58,237,0.12));
  vertical-align: bottom;
}

/* ──────────────────────────────────────────
   СЕКЦИЯ МАСТЕР-КЛАССОВ (на главной)
────────────────────────────────────────── */
.workshops {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────
   ПОЧЕМУ МЫ
────────────────────────────────────────── */
.why-choose {
  background: #F7F4FF;
  padding: 5rem 2rem 7rem;
  position: relative;
  overflow: hidden;
}

/* Заголовок */
.why-h2-visible {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #2d1b4e;
  line-height: 1.12;
  margin-bottom: 0.5rem;
  max-width: 520px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.why-h2-visible .diamond { color: #ED76A9; font-size: 0.7em; vertical-align: middle; }

/* Старый SVG-заголовок — скрыт */
.why-h2, .why-heading-visual { display: none; }

.why-choose__sub {
  font-size: 48px;
  color: #2E1B4E;
  margin-bottom: 2.5rem;
  text-align: center;
}
.why-choose__sub strong {
  color: #ED76A9;
  font-style: italic;
}

/* Зигзаг-грид */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 2;
  align-items: start;
}

.why-col--left  { align-self: start; }
.why-col--right { align-self: start; margin-top: 3.5rem; }
.why-col--right:last-child { margin-top: 3.5rem; }

/* Карточка */
.why-card {
  border-radius: 10px;
  padding: 1.5rem 1.3rem;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 32px rgba(46,27,78,0.18), inset 0 1px 0 rgba(255,255,255,0.2);
  width: 100%;
  min-height: 320px;
  animation: cardSlideUp 0.6s ease both;
}
.why-col--left:nth-child(1) .why-card  { animation-delay: 0s; }
.why-col--right:nth-child(2) .why-card { animation-delay: 0.15s; }
.why-col--left:nth-child(3) .why-card  { animation-delay: 0.3s; }
.why-col--right:nth-child(4) .why-card { animation-delay: 0.45s; }
.why-card:hover {
  transform: scale(1.07) translateY(-4px);
  box-shadow: 0 20px 48px rgba(46,27,78,0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}

.why-card__icon {
  font-size: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.why-card__icon--right { justify-content: flex-end; }

.why-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 900;
  color: #2E1B4E;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}
.why-card p {
  font-size: 16px;
  line-height: 1.55;
  color: #2E1B4E;
}

/* Розово-серый градиент (карточки 1, 3) */
.why-card--white,
.why-card--yellow {
  background: linear-gradient(180deg, #CFB3CA 0%, #E4D8D9 100%);
}
.why-card--white h3, .why-card--yellow h3 { color: #2E1B4E; }
.why-card--white p,  .why-card--yellow p  { color: #2E1B4E; }

/* Бирюзовый градиент (карточка 4) */
.why-card--outline {
  background: linear-gradient(180deg, #0B9895 0%, #10C9C7 100%);
  border: 1px solid rgba(255,255,255,0.3);
}
.why-card--outline h3 { color: #2E1B4E; }
.why-card--outline p  { color: #2E1B4E; }

/* Текст под сеткой */
.why-text {
  max-width: 400px;
  color: #7c6897;
  font-size: 0.88rem;
  line-height: 1.65;
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
}
.why-text p + p { margin-top: 0.4rem; }

/* Декоративная лестница справа */
.why-cloud {
  position: absolute;
  bottom: 0; right: -1rem;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
}
.cloud-img {
  width: auto;
  height: auto;
  max-height: 420px;
  max-width: 420px;
  object-fit: contain;
  object-position: bottom right;
}

/* ──────────────────────────────────────────
   СТАТЬИ/БЛОГ (блок на главной)
────────────────────────────────────────── */
.articles {
  padding: 5rem 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.articles .section-title { margin-bottom: 2rem; }
.articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.article-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(124,58,237,0.10);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px rgba(124,58,237,0.18);
}
.article-card__img {
  background: #f0ebff;
  height: 160px;
  overflow: hidden;
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.article-card:hover .article-card__img img {
  transform: scale(1.04);
}
.article-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.9rem 1.2rem 0.3rem;
}
.article-card p {
  color: #7c6897;
  font-size: 0.88rem;
  padding: 0 1.2rem 0.8rem;
  line-height: 1.55;
}
.article-card .btn { margin: 0 1.2rem 1.2rem; }

/* ──────────────────────────────────────────
   АДАПТИВ ГЛАВНОЙ
────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 6rem 2rem 3rem;
  }
  .hero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero__left {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
  }
  .hero__h1 { font-size: clamp(3rem, 9vw, 4.5rem); }
  .hero__sub { margin: 0 auto 1.8rem; }
  .hero__center {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    transform: scale(0.72);
    transform-origin: top center;
  }

  /* Секция пузырей */
  .bubbles-section__inner { gap: 24px; }
  .bubbles-col { max-width: 220px; gap: 16px; padding: 48px 0; }
  .mascot-elephant { max-height: 380px; min-height: 240px; }
  .bubble { font-size: 13px; padding: 12px 14px; }

  /* Почему мы */
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
  }
  .why-col--left, .why-col--right, .why-col--right:last-child {
    margin-top: 0;
    align-self: auto;
    width: 100%;
  }
  .why-card { min-height: auto; width: 100% !important; }
  .why-card__icon { font-size: 60px; }
  .why-card h3 { font-size: 1.8rem; }
  .why-h2-visible { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .why-text { max-width: 100%; text-align: center; }
  .why-cloud {
    position: absolute;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    height: auto;
  }
  .cloud-img { width: 180px; height: auto; max-width: 50vw; object-fit: contain; }
}

@media (max-width: 600px) {
  .hero { padding: 5.5rem 1.5rem 2.5rem; }
  .hero__h1 { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .workshops, .why-choose, .articles { padding: 3.5rem 1.2rem; }
  .why-choose { padding-bottom: 220px; }
  .tagline-bar { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .sheep-img { width: 240px; }
  .bubbles-section { padding: 1.5rem 1.2rem; }

  /* Пузыри на мобиле — всё в колонку, хвостик вниз */
  .bubbles-section__inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0;
  }
  .bubbles-col--left,
  .bubbles-col--right {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    gap: 14px;
    padding: 0;
  }
  .bubble--tail-right::after,
  .bubble--tail-left::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ED76A9;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom: none;
  }
  .bubble { max-width: 300px; text-align: center; font-size: 13px; }
  .bubbles-elephant { order: 2; align-self: center; }
  .mascot-elephant {
    width: clamp(160px, 55vw, 260px);
    height: auto;
    min-height: unset;
    max-height: unset;
  }
}

/* ──────────────────────────────────────────
   АНИМИРОВАННАЯ ПАЛИТРА (герой, правая часть)
────────────────────────────────────────── */
.palette-scene {
  position: relative;
  width: 480px;
  height: 460px;
}

/* Светлый овальный фон */
.palette-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 300px;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,255,255,0.55), rgba(230,210,255,0.35));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 60px rgba(160,100,220,0.22), inset 0 2px 8px rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}

/* Цветные шарики */
.orb {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 3px 8px rgba(255,255,255,0.4);
  animation: orbFloat 4s ease-in-out infinite;
}
.orb-1 { width:56px; height:56px; background:radial-gradient(circle at 35% 35%,#ff6b6b,#c0392b); top:40px;  left:170px; animation-delay:0s; }
.orb-2 { width:48px; height:48px; background:radial-gradient(circle at 35% 35%,#ffd93d,#f39c12); top:55px;  left:245px; animation-delay:0.4s; }
.orb-3 { width:52px; height:52px; background:radial-gradient(circle at 35% 35%,#6bcb77,#27ae60); top:105px; left:295px; animation-delay:0.8s; }
.orb-4 { width:60px; height:60px; background:radial-gradient(circle at 35% 35%,#4d96ff,#2980b9); top:185px; left:285px; animation-delay:1.2s; }
.orb-5 { width:64px; height:64px; background:radial-gradient(circle at 35% 35%,#c77dff,#7b2fff); top:245px; left:225px; animation-delay:1.6s; }
.orb-6 { width:56px; height:56px; background:radial-gradient(circle at 35% 35%,#00d2ff,#0077b6); top:270px; left:135px; animation-delay:2s; }
.orb-7 { width:44px; height:44px; background:radial-gradient(circle at 35% 35%,#ff9a9e,#e84393); top:200px; left:80px;  animation-delay:0.6s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.04); }
}

/* Кисть */
.brush {
  position: absolute;
  top: 28px;
  left: 220px;
  width: 10px;
  height: 240px;
  background: linear-gradient(180deg, #e8d5ff 0%, #b39ddb 40%, #8b6a9e 100%);
  border-radius: 5px 5px 2px 2px;
  transform: rotate(-35deg);
  transform-origin: bottom center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
  animation: brushSway 5s ease-in-out infinite;
}
.brush::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -4px;
  width: 18px;
  height: 28px;
  background: linear-gradient(180deg, #daa520, #a0522d);
  border-radius: 0 0 50% 50%;
}
.brush::after {
  content: '✦';
  position: absolute;
  top: -20px;
  left: -8px;
  color: #c4b5fd;
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px #c4b5fd);
}
@keyframes brushSway {
  0%, 100% { transform: rotate(-35deg); }
  50%       { transform: rotate(-30deg) translateY(-6px); }
}

/* Таблички-указатели */
.signs {
  position: absolute;
  right: 20px;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sign {
  padding: 10px 20px 10px 16px;
  border-radius: 6px 20px 20px 6px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: transform 0.2s;
  animation: signFloat 3s ease-in-out infinite;
}
.sign:hover { transform: translateX(4px); }
.sign::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-right: 12px solid;
}
.sign-1 { background:#fce4ec; color:#c2185b; animation-delay:0s; }
.sign-1::before { border-right-color:#fce4ec; }
.sign-2 { background:#fff9c4; color:#f57f17; animation-delay:0.5s; }
.sign-2::before { border-right-color:#fff9c4; }
.sign-3 { background:#e8f5e9; color:#2e7d32; animation-delay:1s; }
.sign-3::before { border-right-color:#e8f5e9; }
.sign-4 { background:#e3f2fd; color:#1565c0; animation-delay:1.5s; }
.sign-4::before { border-right-color:#e3f2fd; }

@keyframes signFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Жемчужины */
.pearl {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9), rgba(220,200,240,0.6));
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 2px 8px rgba(160,100,220,0.2);
  animation: pearlFloat 6s ease-in-out infinite;
}
.pearl-1 { width:10px; height:10px; top:150px; left:110px; animation-delay:0.2s; }
.pearl-2 { width:7px;  height:7px;  top:180px; left:350px; animation-delay:0.7s; }
.pearl-3 { width:12px; height:12px; top:320px; left:170px; animation-delay:1.2s; }
.pearl-4 { width:8px;  height:8px;  top:90px;  left:310px; animation-delay:1.7s; }
.pearl-5 { width:14px; height:14px; top:350px; left:280px; animation-delay:2.2s; }

@keyframes pearlFloat {
  0%, 100% { transform: translateY(0) rotate(0); opacity:1; }
  50%       { transform: translateY(-12px) rotate(180deg); opacity:0.7; }
}

/* Мишка */
.teddy {
  position: absolute;
  left: 10px;
  bottom: 30px;
  font-size: 5rem;
  filter: drop-shadow(0 8px 16px rgba(160,100,220,0.25)) saturate(0.5) sepia(0.3) hue-rotate(230deg);
  animation: teddySway 4s ease-in-out infinite;
}
@keyframes teddySway {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg) translateY(-8px); }
}

/* Фиолетовое свечение снизу */
.paint-splash {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 80px;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,170,240,0.55), transparent 70%);
  filter: blur(12px);
}

/* ── Footer 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;
}
