/* ============================================================
   ЗА ТЕБ - Йога Студио
   Дизайн система + CSS Scroll-driven Animations
   ============================================================ */

/* ------------------ Токени ------------------ */
:root {
  --rose-50:  #FBF5F8;
  --rose-100: #F5E9F0;
  --rose-200: #EBD6E3;
  --rose-300: #DFC0D4;
  --mauve:    #C79FBB;

  --plum-400: #96487F;
  --plum-500: #7A2F66;
  --plum-600: #5E2350;
  --plum-700: #4A1B41;
  --plum-800: #3A1433;
  --plum-900: #2A0E26;
  --plum-950: #1E0A1B;

  --violet:   #8E4A94;
  --gold:     #D9A45B;
  --gold-300: #E9C58E;
  --gold-600: #B67F3C;
  --gold-700: #9A6626;

  --ink:      #33102A;
  --muted:    #5C3A52;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Montserrat', 'Segoe UI', Tahoma, sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;

  --shadow-soft: 0 10px 40px rgba(74, 27, 65, .10);
  --shadow-card: 0 6px 24px rgba(74, 27, 65, .08);
  --shadow-deep: 0 24px 70px rgba(20, 5, 18, .5);

  --radius: 24px;
  --header-h: 84px;
}

/* ------------------ Базови ------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--rose-50);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Стандартни кирилски форми на буквите за максимална четливост */
  font-feature-settings: 'locl' 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
figure { margin: 0; }

::selection { background: var(--plum-600); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--rose-100); }
::-webkit-scrollbar-thumb { background: var(--mauve); border-radius: 8px; border: 2px solid var(--rose-100); }
::-webkit-scrollbar-thumb:hover { background: var(--plum-500); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--tint { background: var(--rose-100); }
.section--dark { background: var(--plum-950); color: var(--rose-100); }

/* ------------------ Типография ------------------ */
.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-300); }

.eyebrow::before,
.hero__eyebrow::before,
.quote__eyebrow::before,
.zoom__eyebrow::before {
  content: "✦";
  margin-right: 12px;
  color: var(--gold);
  letter-spacing: 0;
}

/* Центрираните надписи получават звезда и отдясно за симетрия */
.hero__eyebrow::after,
.quote__eyebrow::after,
.zoom__eyebrow::after,
.practices .container > .eyebrow::after,
.schedule .container > .eyebrow::after,
.steps .container > .eyebrow::after,
.events .container > .eyebrow::after,
.faq .container > .eyebrow::after,
.gallery__head .eyebrow::after {
  content: "✦";
  margin-left: 6px;
  color: var(--gold);
  letter-spacing: 0;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  color: var(--plum-800);
  margin-bottom: 22px;
}
.h2--light { color: var(--rose-50); }

.h2 em, .contact__title em {
  font-style: italic;
  background: linear-gradient(115deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 16px;
}
.lead--light { color: var(--rose-300); }

/* Центрирани заглавия за някои секции */
.practices .container > .eyebrow,
.practices .container > .h2,
.schedule .container > .eyebrow,
.schedule .container > .h2,
.steps .container > .eyebrow,
.steps .container > .h2,
.events .container > .eyebrow,
.events .container > .h2,
.faq .container > .eyebrow,
.faq .container > .h2,
.gallery__head {
  text-align: center;
}
.practices .lead--narrow,
.schedule .lead--narrow,
.steps .lead--narrow,
.events .lead--narrow,
.faq .lead--narrow {
  text-align: center;
  margin-inline: auto;
}

.about__body p:not(.lead):not(.eyebrow),
.teacher__body p:not(.lead):not(.eyebrow):not(.teacher__sign) {
  color: var(--muted);
  margin-bottom: 14px;
}

/* ------------------ Бутони ------------------ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s, background-color .35s, color .35s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -85%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-22deg);
  transition: left .65s cubic-bezier(.4,.1,.3,1);
  pointer-events: none;
}
.btn:hover::before { left: 135%; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }

.btn--primary {
  background: linear-gradient(120deg, var(--plum-600), var(--violet));
  color: #fff;
  box-shadow: 0 10px 28px rgba(94, 35, 80, .35);
}
.btn--primary:hover { box-shadow: 0 16px 38px rgba(94, 35, 80, .45); }

.btn--ghost {
  background: transparent;
  color: var(--plum-700);
  box-shadow: inset 0 0 0 1.6px var(--mauve);
}
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.6px var(--plum-500), 0 10px 26px rgba(74,27,65,.14); }

.btn--light {
  background: linear-gradient(120deg, var(--plum-600), var(--violet));
  color: #fff;
  box-shadow: 0 10px 28px rgba(94, 35, 80, .3);
}

.btn--gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-300));
  color: var(--plum-900);
  box-shadow: 0 12px 32px rgba(217, 164, 91, .35);
}
.btn--gold:hover { box-shadow: 0 18px 44px rgba(217, 164, 91, .5); }

.btn--outline-light {
  background: transparent;
  color: var(--rose-100);
  box-shadow: inset 0 0 0 1.6px rgba(245, 233, 240, .4);
}
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.6px var(--gold-300); color: var(--gold-300); }

/* ------------------ Прогрес лента ------------------ */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1300;
  background: linear-gradient(90deg, var(--plum-500), var(--violet), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ------------------ Хедър ------------------ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 245, 248, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(74, 27, 65, .08);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.header.scrolled::before { opacity: 1; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, 94vw);
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--plum-700); }
.brand__sun { width: 46px; flex: none; overflow: visible; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: .12em;
}
.brand__tag {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .42em;
  margin-top: 4px;
  color: var(--plum-500);
}

.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.nav a {
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--plum-600); }

.header__cta { padding: 12px 26px; font-size: .88rem; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
  border-radius: 12px;
}
.burger span {
  display: block;
  width: 24px; height: 2.4px;
  margin-inline: auto;
  border-radius: 3px;
  background: var(--plum-700);
  transition: transform .4s cubic-bezier(.2,.8,.3,1), opacity .3s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ------------------ Hero ------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 30px) 0 90px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__generated {
  position: absolute;
  inset: 8% 12% 4%;
  width: 76%;
  height: 88%;
  object-fit: cover;
  border-radius: 48% 52% 44% 56% / 58% 42% 58% 42%;
  opacity: .22;
  filter: saturate(.88) contrast(.96);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, rgba(0,0,0,.72) 52%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 25%, rgba(0,0,0,.72) 52%, transparent 76%);
  animation: hero-art-breathe 13s ease-in-out infinite alternate;
}
@keyframes hero-art-breathe { to { transform: scale(1.035) translateY(-1.2%); opacity: .28; } }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.blob--1 {
  width: 46vw; height: 46vw;
  top: -14%; left: -12%;
  background: radial-gradient(circle at 35% 35%, #E9C8DE, transparent 68%);
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.blob--2 {
  width: 40vw; height: 40vw;
  top: 16%; right: -14%;
  background: radial-gradient(circle at 40% 40%, rgba(233, 197, 142, .85), transparent 66%);
  animation: blob-drift 19s ease-in-out infinite alternate-reverse;
}
.blob--3 {
  width: 44vw; height: 44vw;
  bottom: -22%; left: 16%;
  background: radial-gradient(circle at 45% 40%, #DCB1E3, transparent 66%);
  animation: blob-drift 22s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 3vh) scale(1.12); }
}

.hero__texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(74, 27, 65, .06) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__sun {
  width: min(44vw, 340px);
  color: var(--plum-700);
  overflow: visible;
  margin-bottom: -8px;
  transform-origin: 50% 88%;
  animation: sun-breathe 5.5s ease-in-out 1.6s infinite alternate;
}
@keyframes sun-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.035); }
}

/* Изгряване на лъчите при зареждане */
.ray {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ray-draw .8s cubic-bezier(.4,.1,.3,1) forwards;
}
.ray:nth-of-type(1) { animation-delay: .30s; }
.ray:nth-of-type(2) { animation-delay: .42s; }
.ray:nth-of-type(3) { animation-delay: .42s; }
.ray:nth-of-type(4) { animation-delay: .54s; }
.ray:nth-of-type(5) { animation-delay: .54s; }
.ray:nth-of-type(6) { animation-delay: .66s; }
.ray:nth-of-type(7) { animation-delay: .66s; }
.ray:nth-of-type(8) { animation-delay: .78s; }
.ray:nth-of-type(9) { animation-delay: .78s; }
@keyframes ray-draw { to { stroke-dashoffset: 0; } }

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 26px 0 10px;
  animation: fade-up 1s .2s cubic-bezier(.2,.8,.3,1) both;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 7.6rem);
  letter-spacing: .07em;
  line-height: 1.02;
  color: var(--plum-800);
  animation: fade-up 1s .32s cubic-bezier(.2,.8,.3,1) both;
}
.hero__title .dot { color: var(--gold); font-weight: 500; }

.hero__sub {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 520px;
  animation: fade-up 1s .46s cubic-bezier(.2,.8,.3,1) both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 38px;
  animation: fade-up 1s .6s cubic-bezier(.2,.8,.3,1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Плаващи фото картички */
.pcard {
  position: absolute;
  z-index: 1;
  width: clamp(150px, 15vw, 230px);
  animation: pcard-in 1.2s .9s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes pcard-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pcard--left  { left: 4vw;  top: 26vh; transform: rotate(-7deg); }
.pcard--right { right: 4.5vw; top: 34vh; transform: rotate(6deg); }

.pcard__inner {
  background: #fff;
  padding: 9px 9px 30px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(74, 27, 65, .22);
  animation: pcard-float 6.5s ease-in-out infinite alternate;
}
.pcard--right .pcard__inner { animation-duration: 7.8s; animation-delay: 1.1s; }
.pcard__inner img {
  border-radius: 9px;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
}
@keyframes pcard-float {
  from { transform: translateY(0) rotate(0.001deg); }
  to   { transform: translateY(-14px) rotate(-1.2deg); }
}

/* ------------------ Мобилно приложение ------------------ */
.mobile-app { position: relative; overflow: hidden; background: linear-gradient(145deg, #fff 0%, var(--rose-50) 55%, #f1e3ec 100%); }
.mobile-app::before { content:""; position:absolute; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle,rgba(142,74,148,.13),transparent 68%); right:-170px; top:-180px; }
.mobile-app__grid { display:grid; grid-template-columns:minmax(360px,.92fr) 1.08fr; align-items:center; gap:clamp(56px,8vw,120px); }
.mobile-app__visual { position:relative; min-height:650px; display:flex; align-items:center; justify-content:center; perspective:1200px; }
.app-orbit { position:absolute; border:1px solid rgba(94,35,80,.12); border-radius:50%; }
.app-orbit--one { width:560px; height:560px; }
.app-orbit--two { width:430px; height:430px; border-style:dashed; animation:app-orbit 32s linear infinite; }
@keyframes app-orbit { to { transform:rotate(360deg); } }
.app-phone { position:absolute; width:258px; height:526px; border:8px solid #241321; border-radius:42px; overflow:hidden; background:#fff; box-shadow:0 34px 74px rgba(58,20,51,.25); }
.app-phone--back { transform:translate(-94px,-26px) rotate(-8deg); background:var(--plum-800); }
.app-phone--front { transform:translate(88px,36px) rotate(6deg); padding:50px 18px 22px; color:var(--plum-800); }
.app-phone__top { position:absolute; width:82px; height:22px; border-radius:0 0 15px 15px; background:#241321; left:50%; top:-1px; transform:translateX(-50%); z-index:3; }
.app-phone__hero { width:100%; height:100%; object-fit:cover; opacity:.62; }
.app-phone__content { position:absolute; inset:auto 22px 36px; color:#fff; display:grid; gap:8px; }
.app-phone__content strong { font-family:var(--font-serif); font-size:1.8rem; }
.app-phone__content small { color:rgba(255,255,255,.76); }
.app-pill { font-size:.58rem; letter-spacing:.12em; font-weight:800; color:var(--gold-200); }
.app-phone__logo { display:block; width:68px; height:68px; border-radius:20px; object-fit:cover; margin:0 auto 14px; box-shadow:0 10px 26px rgba(94,35,80,.17); }
.app-phone__brand { display:block; text-align:center; font-family:var(--font-serif); font-size:1.35rem; }
.app-pass-preview { margin-top:20px; padding:18px; border-radius:22px; color:#fff; background:linear-gradient(145deg,var(--plum-800),var(--violet)); display:grid; grid-template-columns:repeat(6,1fr); gap:6px; }
.app-pass-preview span,.app-pass-preview small { grid-column:1/-2; font-size:.62rem; }
.app-pass-preview strong { grid-column:6; grid-row:1/3; font-size:2.2rem; color:var(--gold-200); text-align:right; }
.app-pass-preview i { height:6px; border-radius:4px; background:var(--gold-300); }
.app-barcode { width:78%; height:62px; margin:28px auto 0; background:repeating-linear-gradient(90deg,#21121f 0 2px,transparent 2px 4px,#21121f 4px 7px,transparent 7px 10px); }
.mobile-app__features { display:grid; gap:14px; margin:28px 0 32px; }
.mobile-app__features>div { display:grid; grid-template-columns:40px 1fr; gap:2px 12px; padding:15px 17px; border:1px solid rgba(94,35,80,.09); border-radius:18px; background:rgba(255,255,255,.7); box-shadow:0 12px 34px rgba(58,20,51,.05); }
.mobile-app__features span { grid-row:1/3; width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:var(--gold-500); background:var(--rose-100); }
.mobile-app__features strong { color:var(--plum-800); }
.mobile-app__features small { color:var(--muted); }
.mobile-app__actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.mobile-app__ios { color:var(--muted); font-size:.82rem; max-width:220px; }

.hero__scroll {
  position: absolute;
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: fade-up 1s 1.15s both;
}
.hero__scroll-text {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .34em;
  /* компенсация на разстоянието след последната буква за точно центриране */
  margin-right: -.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1.6px;
  height: 52px;
  background: linear-gradient(var(--plum-500), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: scroll-hint 1.9s cubic-bezier(.4,.1,.4,1) infinite;
}
@keyframes scroll-hint {
  0%   { top: -50%; }
  100% { top: 120%; }
}

/* ------------------ Marquee ------------------ */
.marquee {
  position: relative;
  z-index: 3;
  background: var(--plum-700);
  color: var(--rose-100);
  padding: 16px 0;
  overflow: hidden;
  transform: rotate(-1.1deg) scale(1.02);
  box-shadow: 0 14px 40px rgba(42, 14, 38, .3);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.marquee__track i { color: var(--gold-300); font-style: normal; font-size: .8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Златна лента преди контактите */
.marquee--gold {
  background: linear-gradient(100deg, var(--gold-600), var(--gold) 55%, var(--gold-300));
  color: var(--plum-900);
  transform: rotate(1.1deg) scale(1.02);
  box-shadow: 0 14px 40px rgba(154, 102, 38, .3);
}
.marquee--gold .marquee__track i { color: var(--plum-700); }
.marquee__track--reverse { animation-direction: reverse; }

/* ------------------ Цитат (scrub) ------------------ */
.quote {
  position: relative;
  height: 230vh;
  background: var(--plum-950);
}
.quote__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.quote__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 42% at 22% 24%, rgba(142, 74, 148, .30), transparent 70%),
    radial-gradient(50% 46% at 80% 76%, rgba(122, 47, 102, .38), transparent 70%),
    radial-gradient(34% 30% at 66% 18%, rgba(217, 164, 91, .12), transparent 70%);
}
.quote__wrap {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote__eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .44em;
  color: var(--gold-300);
  margin-bottom: 34px;
}
.quote__text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 4.3rem);
  line-height: 1.3;
  color: var(--rose-50);
  max-width: 17ch;
}
.qword { display: inline-block; opacity: .1; transform: translateY(.18em); }
.quote__sun {
  width: 96px;
  color: var(--gold);
  opacity: .65;
  margin-top: 44px;
  overflow: visible;
}

/* ------------------ За студиото ------------------ */
.about { overflow: clip; }
.about__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about__media { position: relative; min-height: 560px; }
.about__ring {
  position: absolute;
  top: -26px; right: 4%;
  width: 230px; height: 230px;
  border: 2px dashed var(--mauve);
  border-radius: 50%;
  opacity: .6;
  animation: spin 46s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about__photo {
  position: relative;
  width: 74%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about__photo img { aspect-ratio: 3 / 3.9; object-fit: cover; width: 100%; }
.about__photo--small {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: 47%;
  border: 8px solid #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(74, 27, 65, .2);
}
.about__photo--small img { aspect-ratio: 1 / 1; }

.about__facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.about__facts li {
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-card);
  min-width: 128px;
}
.about__facts strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  background: linear-gradient(120deg, var(--plum-600), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__facts span {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------ Практики ------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
}

.card {
  position: relative;
  background: linear-gradient(170deg, #fff 60%, #FDF6FA);
  border-radius: 26px;
  padding: 38px 30px 32px;
  border: 1px solid rgba(74, 27, 65, .07);
  box-shadow: var(--shadow-card);
  transition: transform .45s cubic-bezier(.2,.8,.3,1), box-shadow .45s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 16px;
  width: 92px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 72' fill='none' stroke='%234A1B41' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M26 62 A34 34 0 0 1 94 62'/%3E%3Cline x1='4' y1='62' x2='22' y2='62'/%3E%3Cline x1='98' y1='62' x2='116' y2='62'/%3E%3Cline x1='60' y1='18' x2='60' y2='4'/%3E%3Cline x1='87' y1='29.8' x2='96' y2='19.1'/%3E%3Cline x1='33' y1='29.8' x2='24' y2='19.1'/%3E%3Cline x1='101.6' y1='56.2' x2='113.5' y2='54.5'/%3E%3Cline x1='18.4' y1='56.2' x2='6.5' y2='54.5'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .06;
  transform: rotate(8deg);
  transition: opacity .45s, transform .45s;
  pointer-events: none;
}
.card:hover::after { opacity: .14; transform: rotate(0deg) scale(1.06); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--plum-500), var(--violet), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.card:hover { transform: translateY(-9px); box-shadow: 0 22px 50px rgba(74, 27, 65, .16); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plum-600), var(--violet));
  color: #fff;
  box-shadow: 0 10px 24px rgba(94, 35, 80, .3), 0 0 0 7px rgba(94, 35, 80, .05);
  transition: transform .45s cubic-bezier(.2,.8,.3,1);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.07); }
.card__icon svg { width: 27px; height: 27px; }

.card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.38rem;
  color: var(--plum-800);
  margin: 20px 0 10px;
}
.card p { font-size: .94rem; line-height: 1.75; color: var(--muted); }
.card__meta {
  display: inline-block;
  margin-top: 20px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-700);
  border-top: 1.5px dashed var(--rose-200);
  padding-top: 14px;
}

/* ------------------ График ------------------ */
.week {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: clamp(40px, 6vw, 64px);
}

.day {
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px;
  border: 1px solid rgba(74, 27, 65, .07);
  box-shadow: var(--shadow-card);
  transition: transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s;
}
.day:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(74, 27, 65, .14); }

.day__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--plum-800);
  padding-bottom: 14px;
  position: relative;
}
.day__name::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8px;
  width: 34px; height: 2.6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-300));
}

.slot {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
}
.slot + .slot { border-top: 1.5px dashed var(--rose-200); }

.slot__time {
  flex: none;
  font-weight: 800;
  font-size: .88rem;
  color: var(--plum-600);
  background: var(--rose-100);
  border-radius: 9px;
  padding: 4px 10px;
}
.slot__title { font-size: .94rem; font-weight: 500; line-height: 1.55; }
.slot__title--script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.day--accent {
  background: linear-gradient(140deg, var(--plum-700), var(--plum-500) 60%, var(--violet));
  color: var(--rose-50);
  border: none;
}
.day--accent .day__name { color: #fff; }
.day--accent .slot + .slot,
.day--accent .slot { border-color: rgba(255, 255, 255, .18); }
.day--accent .slot__time { background: rgba(255, 255, 255, .16); color: var(--gold-300); }
.day--accent .slot__title--script { color: var(--gold-300); }
.day__note {
  font-family: var(--font-script);
  font-size: 1.18rem;
  color: rgba(251, 245, 248, .8);
  margin-top: 6px;
}

.day--cta {
  background: transparent;
  border: 2px dashed var(--mauve);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.day--cta p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--plum-700);
  max-width: 24ch;
}

/* Днешният ден, отбелязан автоматично */
.day--today {
  box-shadow: 0 0 0 2.5px var(--gold), 0 16px 40px rgba(217, 164, 91, .25);
}
.today-badge {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--plum-900);
  background: linear-gradient(120deg, var(--gold), var(--gold-300));
  padding: 5px 12px;
  border-radius: 999px;
  vertical-align: 3px;
  box-shadow: 0 4px 14px rgba(217, 164, 91, .4);
  animation: badge-pulse 2.6s ease-in-out infinite alternate;
}

/* ------------------ Първи стъпки ------------------ */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(44px, 6vw, 70px);
  counter-reset: step;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  left: calc(50% + 76px);
  width: calc(100% - 152px);
  border-top: 2px dashed var(--mauve);
  opacity: .55;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  /* оптична корекция: цифрите на Playfair стоят ниско и леко вдясно в реда */
  padding: 0 .04em .27em 0;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--plum-700);
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 0 0 2px rgba(199, 159, 187, .5);
  position: relative;
}
.step__num::after {
  content: "✦";
  position: absolute;
  top: -6px;
  right: -2px;
  font-size: 1rem;
  color: var(--gold);
}
.step h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--plum-800);
  margin: 22px 0 10px;
}
.step p {
  font-size: .94rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
  margin-inline: auto;
}

/* ------------------ Zoom секция (ретрийти) ------------------ */
.zoom {
  position: relative;
  height: 240vh;
  background: var(--plum-950);
  --ci-x: 26%;
  --ci-y: 22%;
  --ci-r: 36px;
}
.zoom__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.zoom__media {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--ci-y) var(--ci-x) round var(--ci-r));
}
.zoom__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 6, 21, .78) 0%, rgba(24, 6, 21, .12) 45%, transparent 70%);
}
.zoom__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zoom__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(40px, 9vh, 90px);
  transform: translateX(-50%);
  width: min(760px, 90vw);
  text-align: center;
  color: var(--rose-50);
  z-index: 2;
}
.zoom__eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 14px;
}
.zoom__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.zoom__sub {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--rose-200);
}

/* ------------------ Галерия (хоризонтален скрол) ------------------ */
.gallery {
  position: relative;
  height: 320vh;
  background: var(--rose-50);
}
.gallery__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}
.gallery__head { margin-bottom: clamp(26px, 4vh, 48px); }

.gallery__track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.6vw, 34px);
  width: max-content;
  padding-inline: 6vw;
  will-change: transform;
}

.shot { flex: none; }
.shot img {
  height: min(54vh, 500px);
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.shot:hover img { transform: scale(1.025); }
.shot figcaption {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--violet);
  text-align: center;
  margin-top: 12px;
}

.shot--quote {
  display: grid;
  place-items: center;
  min-width: 340px;
  padding: 0 30px;
}
.shot--quote blockquote {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shot__script {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shot--quote blockquote span:last-child {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--plum-700);
}

/* ------------------ Събития ------------------ */
.events { overflow: clip; }
.events__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 34% 68%, rgba(255,255,255,.36), transparent 100%),
    radial-gradient(1.8px 1.8px at 56% 14%, rgba(233,197,142,.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 72% 48%, rgba(255,255,255,.4), transparent 100%),
    radial-gradient(1.6px 1.6px at 88% 76%, rgba(233,197,142,.42), transparent 100%),
    radial-gradient(1.2px 1.2px at 22% 86%, rgba(255,255,255,.3), transparent 100%),
    radial-gradient(1.4px 1.4px at 66% 92%, rgba(255,255,255,.34), transparent 100%),
    radial-gradient(46% 40% at 50% 0%, rgba(122, 47, 102, .35), transparent 70%);
  animation: stars-glow 6s ease-in-out infinite alternate;
}
@keyframes stars-glow {
  from { opacity: .55; }
  to   { opacity: 1; }
}

.posters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(44px, 6vw, 70px);
}
.poster {
  position: relative;
  min-width: 0;
}
.poster__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .5s cubic-bezier(.2,.8,.3,1), box-shadow .5s;
}
.poster__media > a { display: block; width: 100%; height: 100%; }
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.poster:hover .poster__media {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 34px 90px rgba(10, 2, 9, .65);
}
.poster:hover img { transform: scale(1.035); }
.poster__media a:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: -5px;
}
.poster figcaption { padding: 18px 6px 0; }
.poster strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--rose-50);
  margin-bottom: 4px;
}
.poster span { display: block; font-size: .9rem; line-height: 1.65; color: rgba(244, 222, 236, .82); }
.poster__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s, gap .2s;
}
.poster__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.poster__link:hover { color: var(--rose-50); gap: 12px; }

/* ------------------ За мен ------------------ */
.teacher__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.teacher__photo {
  position: relative;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.teacher__photo img {
  border-radius: 28px;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  width: 100%;
}
.teacher__badge {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-300));
  color: var(--plum-900);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(217, 164, 91, .45);
  animation: badge-pulse 3.6s ease-in-out infinite alternate;
}
.teacher__badge svg { width: 62px; overflow: visible; }
@keyframes badge-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.teacher__sign {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--violet);
  margin-top: 20px;
}

/* ------------------ Често задавани въпроси ------------------ */
.faq__list {
  max-width: 780px;
  margin: clamp(40px, 6vw, 60px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: #fff;
  border: 1px solid rgba(74, 27, 65, .08);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .35s;
}
.faq__item:hover { box-shadow: 0 14px 36px rgba(74, 27, 65, .13); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--plum-800);
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--violet); }
.faq__icon {
  flex: none;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose-100);
  transition: background .35s, transform .45s cubic-bezier(.2,.8,.3,1);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--plum-600);
  transform: translate(-50%, -50%);
  transition: transform .45s cubic-bezier(.2,.8,.3,1), background .35s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon {
  background: linear-gradient(120deg, var(--plum-600), var(--violet));
  transform: rotate(180deg);
}
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
  background: #fff;
  transform: translate(-50%, -50%);
}
.faq__body { padding: 0 24px 22px; }
.faq__body p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1.5px dashed var(--rose-200);
  padding-top: 16px;
}

/* ------------------ Контакти ------------------ */
.contact {
  background:
    radial-gradient(64% 54% at 50% 108%, rgba(217, 164, 91, .3), transparent 70%),
    radial-gradient(50% 40% at 18% 10%, rgba(142, 74, 148, .25), transparent 70%),
    var(--plum-950);
  overflow: clip;
}
.contact__glow {
  position: absolute;
  left: 50%;
  bottom: -32vh;
  transform: translateX(-50%);
  width: 74vw;
  height: 60vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(233, 197, 142, .16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.contact__wrap {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__sun {
  width: 120px;
  color: var(--gold);
  overflow: visible;
  margin-bottom: 28px;
}
.contact__sun .ray { animation-name: ray-draw, ray-glow; animation-duration: .8s, 3s; animation-delay: 0s, 1s; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; animation-direction: normal, alternate; }
@keyframes ray-glow {
  from { opacity: .55; }
  to   { opacity: 1; }
}
.contact__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  color: var(--rose-50);
  line-height: 1.12;
}
.contact__sub {
  margin-top: 18px;
  max-width: 560px;
  color: var(--rose-300);
  font-size: 1.08rem;
}
.contact__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 38px;
}
.contact__details {
  display: flex;
  gap: clamp(24px, 6vw, 72px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 54px;
}
.contact__details li { display: flex; flex-direction: column; gap: 6px; }
.contact__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(233, 197, 142, .75);
}
.contact__details a, .contact__details span:not(.contact__label) {
  color: var(--rose-100);
  font-size: 1.04rem;
  font-weight: 600;
}
.contact__details a { transition: color .3s; }
.contact__details a:hover { color: var(--gold-300); }
.contact__note {
  margin-top: 30px;
  font-size: .76rem;
  color: rgba(245, 233, 240, .4);
}

/* ------------------ Футър ------------------ */
.footer {
  background: #160714;
  color: var(--rose-200);
  padding: 54px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.brand--footer { color: var(--rose-100); }
.brand--footer .brand__tag { color: var(--mauve); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--rose-300);
  transition: color .3s;
}
.footer__nav a:hover { color: var(--gold-300); }
.footer__copy {
  font-size: .82rem;
  color: rgba(223, 192, 212, .55);
  text-align: right;
  line-height: 1.7;
}
.footer__fine { font-family: var(--font-script); font-size: 1.05rem; color: rgba(233, 197, 142, .6); }

.footer__credit {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
}
.footer__credit p { font-size: .78rem; color: rgba(223, 192, 212, .45); }
.footer__credit a {
  color: rgba(233, 197, 142, .8);
  font-weight: 600;
  transition: color .3s;
}
.footer__credit a:hover { color: var(--gold-300); }

/* ------------------ Към началото ------------------ */
.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plum-600), var(--violet));
  color: #fff;
  box-shadow: 0 12px 30px rgba(42, 14, 38, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s, transform .4s, visibility .4s;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-3px); }
.totop svg { width: 20px; height: 20px; }

/* ============================================================
   CSS SCROLL-DRIVEN ANIMATIONS
   Активни само при поддръжка (html.sda)
   ============================================================ */
@supports (animation-timeline: view()) {

  /* --- Прогрес лента, свързана със скрола --- */
  html.sda .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }

  /* --- Хедърът става плътен при скрол --- */
  html.sda .header::before {
    transition: none;
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }

  /* --- Hero съдържанието се отдалечава при скрол --- */
  html.sda .hero__content {
    animation: hero-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0vh 100vh;
  }
  html.sda .hero__scroll {
    animation-name: fade-up, hero-out;
    animation-duration: 1s, 1s;
    animation-delay: 1.15s, 0s;
    animation-timing-function: cubic-bezier(.2,.8,.3,1), linear;
    animation-fill-mode: both, both;
    animation-timeline: auto, scroll(root);
    animation-range: normal, 0vh 90vh;
  }

  /* --- Паралакс елементи --- */
  html.sda .parallax {
    animation: parallax-y linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  /* Плаващите картички пазят и входната си анимация */
  html.sda .pcard.parallax {
    animation-name: pcard-in, parallax-y;
    animation-duration: 1.2s, 1s;
    animation-delay: .9s, 0s;
    animation-timing-function: cubic-bezier(.2,.8,.3,1), linear;
    animation-fill-mode: both, both;
    animation-timeline: auto, view();
    animation-range: normal, cover 0% cover 100%;
  }

  /* --- Общи reveal анимации --- */
  html.sda [data-reveal] {
    animation: reveal-rise linear both;
    animation-timeline: view();
    animation-range: entry 8% entry 52%;
  }

  /* Лек каскаден ефект за картички и плакати */
  html.sda .cards .card:nth-child(2),
  html.sda .posters .poster:nth-child(2),
  html.sda .week .day:nth-child(2),
  html.sda .week .day:nth-child(5) {
    animation-range: entry 16% entry 62%;
  }
  html.sda .cards .card:nth-child(3),
  html.sda .posters .poster:nth-child(3),
  html.sda .week .day:nth-child(3),
  html.sda .week .day:nth-child(6) {
    animation-range: entry 24% entry 72%;
  }
  html.sda .cards .card:nth-child(4),
  html.sda .posters .poster:nth-child(4) {
    animation-range: entry 32% entry 82%;
  }
  html.sda .steps__grid .step:nth-child(2) { animation-range: entry 18% entry 66%; }
  html.sda .steps__grid .step:nth-child(3) { animation-range: entry 28% entry 78%; }

  /* --- Цитат: дума по дума, обвързано със скрола --- */
  html.sda .quote { view-timeline: --quote block; }
  html.sda .qword {
    animation: qword-in linear both;
    animation-timeline: --quote;
    animation-range: cover calc(15% + var(--i) * 3.4%) cover calc(24% + var(--i) * 3.4%);
  }
  html.sda .qword--gold {
    animation-name: qword-in-gold;
  }
  html.sda .quote__sun {
    animation: quote-sun-in linear both;
    animation-timeline: --quote;
    animation-range: cover 56% cover 72%;
  }

  /* --- Zoom секция: изображението се разгръща --- */
  html.sda .zoom { view-timeline: --zoom block; }
  html.sda .zoom__media {
    animation: zoom-unclip linear both;
    animation-timeline: --zoom;
    animation-range: contain 0% contain 62%;
  }
  html.sda .zoom__media img {
    animation: zoom-img linear both;
    animation-timeline: --zoom;
    animation-range: contain 0% contain 100%;
  }
  html.sda .zoom__caption {
    animation: caption-in linear both;
    animation-timeline: --zoom;
    animation-range: contain 42% contain 64%;
  }

  /* --- Галерия: хоризонтално движение при вертикален скрол --- */
  html.sda .gallery { view-timeline: --gal block; }
  html.sda .gallery__track {
    animation: gal-slide linear both;
    animation-timeline: --gal;
    animation-range: contain 0% contain 100%;
  }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes header-solid {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-out {
  to { opacity: 0; transform: translateY(-70px) scale(.96); }
}

@keyframes parallax-y {
  from { transform: translateY(calc(var(--par, 30) * 1px)) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(calc(var(--par, 30) * -1px)) rotate(var(--rot, 0deg)); }
}

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes qword-in {
  from { opacity: .1; transform: translateY(.18em); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qword-in-gold {
  from { opacity: .1; transform: translateY(.18em); color: var(--rose-50); }
  to   { opacity: 1; transform: translateY(0); color: var(--gold-300); }
}
@keyframes quote-sun-in {
  from { opacity: 0; transform: translateY(24px) scale(.8); }
  to   { opacity: .65; transform: translateY(0) scale(1); }
}

@keyframes zoom-unclip {
  from { clip-path: inset(var(--ci-y) var(--ci-x) round var(--ci-r)); }
  to   { clip-path: inset(0% 0% round 0px); }
}
@keyframes zoom-img {
  from { transform: scale(1.18); }
  to   { transform: scale(1); }
}
@keyframes caption-in {
  from { opacity: 0; transform: translateX(-50%) translateY(44px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes gal-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% + 100vw)); }
}

/* ============================================================
   Резервен вариант (html.no-sda): JS + IntersectionObserver
   ============================================================ */
html.no-sda [data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s cubic-bezier(.2,.8,.3,1), transform .9s cubic-bezier(.2,.8,.3,1);
}
html.no-sda [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

html.no-sda .qword {
  transition: opacity .45s ease, transform .45s ease, color .45s ease;
}
html.no-sda .qword.on { opacity: 1; transform: translateY(0); }
html.no-sda .qword--gold.on { color: var(--gold-300); }

html.no-sda .zoom__caption { opacity: 0; }
html.no-sda .gallery__track { transform: translateX(0); }

/* ============================================================
   Адаптивност
   ============================================================ */
@media (max-width: 1180px) {
  .pcard--left { left: 2vw; }
  .pcard--right { right: 2vw; }
}

@media (max-width: 1080px) {
  .pcard { display: none; }
  .header__cta { display: none; }
}
@media (max-width: 880px) {
  .mobile-app__grid { grid-template-columns:1fr; }
  .mobile-app__visual { min-height:570px; order:2; transform:scale(.88); margin:-45px 0; }
}
@media (max-width: 540px) {
  .hero__generated { inset:12% -20% 5%; width:140%; }
  .mobile-app__visual { min-height:510px; transform:scale(.72); margin:-85px -70px; }
}

@media (max-width: 1000px) {
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 992px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(30, 10, 27, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.2,.8,.3,1);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--rose-100);
  }
  .nav a::after { height: 2.4px; }

  .burger { display: flex; margin-left: auto; }
  body.nav-open .burger span { background: var(--rose-100); }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 0; margin-bottom: 40px; }
  .about__photo { width: 82%; }
  .teacher__grid { grid-template-columns: 1fr; }
  .teacher__photo { max-width: 440px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { text-align: center; }
}

/* Галерията става естествен хоризонтален скрол на малки екрани */
@media (max-width: 900px) {
  .gallery { height: auto; }
  .gallery__sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding-top: 0;
  }
  .gallery { padding: clamp(80px, 10vw, 130px) 0; }
  .gallery__track {
    width: auto;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    animation: none !important;
  }
  .shot { scroll-snap-align: center; }
  .shot img { height: min(52vh, 420px); }

  .zoom { height: 200vh; --ci-x: 12%; --ci-y: 16%; --ci-r: 26px; }
  .quote { height: 200vh; }
}

@media (max-width: 640px) {
  .hero__title { letter-spacing: .04em; }
  .hero__actions .btn { padding: 13px 26px; font-size: .88rem; }
  .marquee__track span { font-size: .74rem; letter-spacing: .26em; }
  .about__facts li { flex: 1 1 40%; min-width: 0; padding: 14px 16px; }
  .about__photo { width: 92%; }
  .about__photo--small { width: 52%; bottom: -22px; }
  .teacher__badge { width: 86px; height: 86px; right: -10px; bottom: -18px; }
  .teacher__badge svg { width: 48px; }
  .contact__details { gap: 22px; flex-direction: column; }
  .totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .quote__text { max-width: 14ch; }
  .faq__item summary { font-size: .98rem; padding: 17px 18px; }
  .faq__body { padding: 0 18px 18px; }
}

/* ============================================================
   Намалено движение
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }

  .progress { display: none; }

  [data-reveal], .qword, .hero__content, .hero__scroll,
  .hero__eyebrow, .hero__title, .hero__sub, .hero__actions, .pcard {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .ray { stroke-dashoffset: 0 !important; animation: none !important; }

  .quote, .zoom, .gallery { height: auto !important; }
  .quote__sticky, .zoom__sticky, .gallery__sticky {
    position: static !important;
    height: auto !important;
  }
  .quote__sticky { padding: 100px 0; }
  .zoom__sticky { height: 70vh !important; }
  .zoom__media { clip-path: none !important; animation: none !important; }
  .zoom__caption { opacity: 1 !important; animation: none !important; }
  .quote__sun { opacity: .65 !important; }
  .gallery__track {
    animation: none !important;
    transform: none !important;
    width: auto;
    overflow-x: auto;
  }
  .marquee__track { animation: none !important; }
}
