:root {
  --leaf: #1f6a45;
  --leaf-2: #7f9f3d;
  --ink: #20312a;
  --mahogany: #7f3427;
  --muted: rgba(32, 49, 42, 0.72);
  --moss: #d7e6b5;
  --cream: #fbf3df;
  --paper: #fff7e7;
  --rice: #fffdf4;
  --petal: #f0c9bb;
  --saffron: #e6a21e;
  --saffron-dark: #b96616;
  --clay: #c45732;
  --aqua: #d6ead6;
  --lotus: #c85a70;
  --turmeric: #f3c85b;
  --line: rgba(56, 67, 42, 0.16);
  --shadow: 0 22px 70px rgba(68, 52, 24, 0.14);
  --max: 1180px;
  --display: "Lora", Georgia, serif;
  --sans: "Commissioner", "Avenir Next", "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 76px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

body::selection {
  background: var(--saffron);
  color: white;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(251, 243, 223, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

/* Локът в хедъра: логото на Шри Шри Аюрведа плюс кирилското име.
   Логото е СЪЩИЯТ файл като на doctor.ayurvedabio.com и стои в същия размер, за
   да изглеждат двата сайта като един бранд. Тъмносиньото на логото и зеленото на
   името са двата фирмени цвята - същата двойка, както в хедъра на doctor. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--leaf);
  /* Логото само по себе си е знак с текст. Затова кирилското име е с една степен
     по-тихо от преди (16/700 вместо 18/800) - иначе двата надписа се бият и лока
     изглежда като два лога, залепени един до друг. */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 84px;
  height: auto;
  /* Картинката носи прозрачно поле отвсякъде - около 4px при този размер.
     Без изместването логото изглежда хлътнало спрямо колоната на съдържанието
     под него. Мести се самото поле, не логото. */
  margin-left: -4px;
  transition: opacity 180ms ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  opacity: 0.84;
}

/* Косъм между логото и името: дава на знака собствено поле и превръща името в
   описание, вместо във втори надпис. Цветът следва цвета на лока. */
.brand-name {
  position: relative;
  padding-left: 13px;
}

.brand-name::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 22px;
  background: currentColor;
  opacity: 0.28;
  transform: translateY(-50%);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  display: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.7vw, 24px);
  color: rgba(32, 49, 42, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Кръгчето с профила горе вдясно и падащото меню - както при doctor. */
/* Стои извън .nav-actions, за да не се сгъва в бургера на телефон. На голям
   екран auto-полетата на менюто пазят старото разположение - иначе
   space-between щеше да разпръсне и иконата надалеч от бутоните. */
.site-header.has-account {
  justify-content: flex-start;
  gap: 12px;
}

.site-header.has-account .main-nav {
  margin: 0 auto;
}

.nav-account {
  position: relative;
}

.nav-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(31, 106, 69, 0.28);
  border-radius: 50%;
  background: var(--rice);
  color: var(--leaf);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-avatar svg {
  width: 20px;
  height: 20px;
}

.nav-avatar:hover {
  background: var(--paper);
  border-color: var(--leaf);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 196px;
  padding: 8px;
  border: 1px solid rgba(31, 106, 69, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(32, 49, 42, 0.16);
}

.nav-menu[hidden] {
  display: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-menu a svg {
  width: 18px;
  height: 18px;
  color: var(--leaf);
}

.nav-menu a:hover {
  background: var(--cream);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.phone-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
}

.nav-phone .phone-icon {
  animation: phone-nudge 6s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.contact-phone .phone-icon {
  animation: phone-nudge 4s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.contact-phone {
  gap: 8px;
}

.nav-booking {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}

@keyframes phone-nudge {
  0%, 88%, 100% {
    transform: rotate(0deg) translateX(0);
  }

  90% {
    transform: rotate(-10deg) translateX(-1px);
  }

  92% {
    transform: rotate(10deg) translateX(1px);
  }

  94% {
    transform: rotate(-7deg) translateX(-1px);
  }

  96% {
    transform: rotate(7deg) translateX(1px);
  }

  98% {
    transform: rotate(0deg) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-phone .phone-icon {
    animation: none;
  }

  .contact-phone .phone-icon {
    animation: none;
  }
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 243, 223, 1) 0%, rgba(251, 243, 223, 0.98) 47%, rgba(243, 200, 91, 0.26) 73%, rgba(200, 90, 112, 0.1) 100%),
    linear-gradient(180deg, rgba(251, 243, 223, 0.08), rgba(255, 247, 231, 0.84)),
    url("/assets_web/img/marma-hero.jpg") center right / cover;
  filter: saturate(1.06) contrast(1.02) sepia(0.04);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(127, 159, 61, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 159, 61, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 70px;
  color: var(--ink);
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  border: 1px solid rgba(36, 91, 58, 0.28);
  padding: 7px 12px;
  color: var(--leaf);
  background: rgba(255, 250, 241, 0.74);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--leaf);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--display);
  font-weight: 700;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.08;
}

.hero-copy {
  max-width: 670px;
  color: rgba(21, 37, 63, 0.78);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.48;
}

.hero-signals,
.intro-points,
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-signals {
  margin-top: 26px;
}

.hero-signals span,
.intro-points span,
.trust-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(36, 91, 58, 0.22);
  border-radius: 4px;
  padding: 7px 12px;
  color: var(--leaf);
  background: rgba(255, 250, 241, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.event-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.event-link:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--leaf);
  color: white;
  box-shadow: 0 16px 34px rgba(31, 106, 69, 0.24);
}

.button.primary:hover {
  background: #2c7a50;
}

.button.ghost {
  border-color: rgba(31, 106, 69, 0.35);
  color: var(--leaf);
  background: rgba(255, 247, 231, 0.78);
}

.button.secondary {
  border-color: rgba(31, 106, 69, 0.35);
  color: var(--leaf);
  background: var(--paper);
}

.button.secondary:hover {
  background: #fff3d9;
  border-color: rgba(230, 162, 30, 0.38);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 42px;
}

.proof {
  min-height: 112px;
  border: 1px solid var(--line);
  padding: 17px;
  background: rgba(255, 250, 241, 0.84);
}

.proof strong {
  display: block;
  color: var(--leaf);
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 0.95;
}

.proof span {
  display: block;
  margin-top: 12px;
  color: rgba(21, 37, 63, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.marma-orbit {
  position: absolute;
  right: clamp(26px, 8vw, 128px);
  top: 18vh;
  z-index: 1;
  width: clamp(220px, 30vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(36, 91, 58, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px rgba(36, 91, 58, 0.1),
    0 0 70px rgba(106, 143, 58, 0.18);
}

.marma-orbit::before,
.marma-orbit::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(36, 91, 58, 0.22);
  border-radius: 50%;
  content: "";
}

.marma-orbit::after {
  inset: 36%;
}

.marma-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 8px rgba(217, 147, 50, 0.13), 0 0 30px rgba(217, 147, 50, 0.4);
}

.marma-orbit span:nth-child(1) { left: 48%; top: 9%; }
.marma-orbit span:nth-child(2) { right: 17%; top: 25%; }
.marma-orbit span:nth-child(3) { right: 10%; bottom: 36%; }
.marma-orbit span:nth-child(4) { left: 47%; bottom: 8%; }
.marma-orbit span:nth-child(5) { left: 16%; bottom: 28%; }
.marma-orbit span:nth-child(6) { left: 10%; top: 36%; }
.marma-orbit span:nth-child(7) { left: 49%; top: 48%; }

.event-ribbon {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 48px);
  z-index: 3;
  width: min(380px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(21, 37, 63, 0.18);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.event-ribbon span {
  display: block;
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-ribbon strong {
  font-family: var(--display);
  font-size: 21px;
}

.band,
.section-grid,
.practice-section,
.video-section,
.full-info-section,
.benefits-section,
.teachers-section,
.details-section,
.quote-section,
.register-section,
.site-footer {
  padding-inline: clamp(18px, 5vw, 72px);
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding-top: 88px;
  padding-bottom: 88px;
  background:
    linear-gradient(135deg, rgba(214, 234, 214, 0.96), rgba(255, 226, 163, 0.72) 58%, rgba(240, 201, 187, 0.56)),
    var(--aqua);
}

.intro-body p {
  color: var(--leaf);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.intro-points {
  margin-top: 24px;
}

.intro-points span,
.trust-list span {
  border-color: rgba(37, 79, 59, 0.18);
  color: var(--leaf);
  background: rgba(255, 252, 246, 0.72);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 76px;
  padding-bottom: 76px;
  background: var(--line);
}

.section-grid article {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 36px;
  background: var(--rice);
}

.section-grid article::after {
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(215, 103, 31, 0.22);
  border-radius: 50%;
  content: "";
}

.number {
  display: inline-flex;
  margin-bottom: 72px;
  color: var(--saffron);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.section-grid p,
.register-copy p,
.event-card dd,
.practice-copy p,
.section-head > p,
.quote-section p,
.teacher-grid p,
.details-grid span,
.benefit-grid span,
.info-stack p,
.info-stack li,
.note {
  color: var(--muted);
  line-height: 1.65;
}

.practice-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  background:
    linear-gradient(90deg, rgba(255, 247, 231, 0.94), rgba(255, 253, 244, 0.88)),
    var(--paper);
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
  padding-top: 78px;
  padding-bottom: 78px;
  color: white;
  background:
    linear-gradient(90deg, rgba(32, 49, 42, 0.99) 0%, rgba(31, 106, 69, 0.96) 54%, rgba(127, 159, 61, 0.88) 78%, rgba(230, 162, 30, 0.74) 100%),
    url("/assets_web/img/marma-hero.jpg") center / cover;
}

.video-copy h2 {
  color: white;
}

.video-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

.video-section .eyebrow {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffe2a3;
  background: rgba(255, 255, 255, 0.08);
}

.video-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050b13;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.practice-copy {
  max-width: 650px;
}

.point-map {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(37, 79, 59, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(230, 162, 30, 0.22), transparent 9rem),
    radial-gradient(circle at 50% 55%, rgba(31, 106, 69, 0.2), transparent 12rem),
    linear-gradient(180deg, #fffdf4, #ffe9c4);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.point-map::before {
  position: absolute;
  inset: 8% 25%;
  border: 2px solid rgba(75, 34, 27, 0.1);
  border-radius: 999px 999px 38% 38%;
  content: "";
}

.map-line {
  position: absolute;
  top: 11%;
  bottom: 10%;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(75, 34, 27, 0.32), transparent);
}

.point {
  position: absolute;
  display: inline-flex;
  min-width: 74px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 103, 31, 0.26);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--mahogany);
  background: rgba(255, 252, 246, 0.84);
  box-shadow: 0 12px 36px rgba(75, 34, 27, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.point::before {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 7px rgba(215, 103, 31, 0.14);
  content: "";
}

.p1 { top: 12%; left: 42%; }
.p2 { top: 30%; left: 21%; }
.p3 { top: 45%; right: 20%; }
.p4 { bottom: 27%; left: 33%; }
.p5 { bottom: 10%; right: 27%; }

.full-info-section {
  padding-top: 96px;
  padding-bottom: 96px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(245, 222, 208, 0.36)),
    var(--rice);
}

.info-stack {
  display: grid;
  gap: 18px;
}

.info-stack article {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(63, 38, 23, 0.1);
}

.info-stack article:nth-child(even) {
  background: rgba(255, 248, 239, 0.9);
}

.info-stack h3 {
  color: var(--mahogany);
}

.info-stack p:last-child,
.info-stack ul:last-child {
  margin-bottom: 0;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.info-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(215, 103, 31, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--saffron-dark);
  background: rgba(215, 103, 31, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 42px);
}

.check-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note {
  margin: 24px 0 0;
  border-left: 3px solid var(--saffron);
  padding-left: 14px;
  font-size: 14px;
}

.small-quote {
  width: min(820px, 100%);
  margin: 0 0 18px;
  color: var(--leaf);
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.12;
  text-align: left;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--leaf);
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 6px rgba(215, 103, 31, 0.12);
  content: "";
}

.benefits-section,
.teachers-section {
  padding-top: 90px;
  padding-bottom: 90px;
  background: var(--rice);
}

.benefits-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 240, 230, 0.78), transparent 26rem),
    var(--rice);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.benefit-grid article {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 252, 246, 0.94);
}

.benefit-grid strong,
.details-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--leaf);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
}

.benefit-grid span,
.details-grid span {
  display: block;
}

.teachers-section {
  background:
    linear-gradient(180deg, rgba(245, 222, 208, 0.54), rgba(255, 248, 239, 0.94)),
    var(--paper);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.teacher-grid article {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Портретът стои до името, не като широка лента отгоре.
   Старите снимки бяха колажи диплома + фигура + зелена лента, изрязани в 16/9 -
   в тях лицето заемаше една пета от кадъра. Сега картинката е самият портрет
   (виж assets_web/img/dr-*.jpg), затова е с човешко съотношение и малка. */
.teacher-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.teacher-grid img {
  flex: none;
  width: 112px;
  /* height:auto е задължително. Атрибутите width/height в HTML-а (нужни, за да
     не подскача оформлението при зареждане) стигат до CSS-а като презентационен
     намек `height: 900px`. Той е по-силен от aspect-ratio и картинката излиза
     112 на 900 пиксела. */
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  object-fit: cover;
  object-position: center top;
}

.teacher-grid h3 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 28px);
}

.teacher-role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.teacher-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.details-section {
  padding-top: 86px;
  padding-bottom: 86px;
  background:
    radial-gradient(circle at 10% 0%, rgba(143, 191, 119, 0.2), transparent 24rem),
    var(--paper);
}

.details-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.details-grid div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.events {
  padding-top: 86px;
  padding-bottom: 90px;
  background: var(--rice);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-head > p {
  max-width: 420px;
  margin-bottom: 8px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.event-card {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.event-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.event-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.event-card dt {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}

.event-card dd {
  margin: 0;
  text-align: right;
}

.event-link {
  width: fit-content;
  min-height: 44px;
  border-color: rgba(215, 103, 31, 0.24);
  color: var(--saffron-dark);
  background: rgba(215, 103, 31, 0.08);
}

.quote-section {
  padding-top: 98px;
  padding-bottom: 98px;
  background:
    radial-gradient(circle at 20% 0%, rgba(243, 200, 91, 0.28), transparent 26rem),
    radial-gradient(circle at 90% 20%, rgba(200, 90, 112, 0.22), transparent 22rem),
    linear-gradient(135deg, var(--leaf), #31441f);
  color: white;
}

blockquote {
  width: min(1040px, 100%);
  margin: 0 auto;
  font-size: clamp(36px, 6vw, 82px);
  line-height: 1.03;
  text-align: center;
}

.quote-section p {
  width: min(640px, 100%);
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.register-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  padding-top: 90px;
  padding-bottom: 90px;
}

.register-copy {
  position: sticky;
  top: 92px;
}

.trust-list {
  margin-top: 26px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.static-contact h3 {
  margin: 0;
  color: var(--leaf);
  font-size: clamp(26px, 3vw, 38px);
}

.static-contact p {
  margin: 0;
  color: var(--muted);
}

.price-line {
  border: 1px solid rgba(230, 162, 30, 0.38);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff3d9;
  font-size: 15px;
}

.price-line strong {
  color: var(--leaf);
}

label,
legend {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(32, 23, 19, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(215, 103, 31, 0.14);
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  border: 1px solid rgba(32, 23, 19, 0.14);
  border-radius: 6px;
  padding: 14px;
}

fieldset label,
.consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

fieldset input,
.consent input {
  width: auto;
  margin: 0;
}

.consent {
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.success {
  color: var(--leaf);
}

.form-status.error {
  color: #9c2417;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 38px;
  padding-bottom: 38px;
  background: var(--ink);
  color: white;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-legal {
  margin-top: 18px;
}

.footer-legal a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.legal-page {
  background: var(--cream);
}

.legal-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 76px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
  background: var(--rice);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.legal-card h2 {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.25;
}

.legal-card h3 {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.3;
}

.legal-card p,
.legal-card li {
  color: rgba(21, 37, 63, 0.82);
}

.legal-card ol,
.legal-card ul {
  padding-left: 22px;
}

.legal-card a {
  color: var(--leaf);
  font-weight: 800;
}

.admin-page {
  background: #f7f3ee;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto;
}

.admin-shell section {
  margin-top: 28px;
  padding: 24px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.message-cell {
  max-width: 280px;
  cursor: default;
}

.message-preview {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-message-popover {
  position: fixed;
  z-index: 100;
  width: min(520px, calc(100vw - 32px));
  max-height: 260px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 60px rgba(21, 37, 63, 0.22);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 920px) {
  body {
    padding-top: 68px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 8px 14px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
    font-size: 15px;
  }

  .brand-logo {
    width: 68px;
    margin-left: -3px;
  }

  .brand-name {
    padding-left: 11px;
  }

  .brand-name::before {
    height: 18px;
  }

  /* На телефон профилът остава видим до бургера, а не вътре в него. */
  .site-header.has-account {
    grid-template-columns: minmax(0, 1fr) auto 46px;
    gap: 10px;
  }

  .site-header.has-account .main-nav {
    margin: 2px 0 0;
  }

  .site-header.has-account .nav-account {
    grid-row: 1;
    grid-column: 2;
  }

  .site-header.has-account .menu-button {
    grid-row: 1;
    grid-column: 3;
  }

  .nav-avatar {
    width: 38px;
    height: 38px;
  }

  .menu-button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    justify-self: end;
    border: 1px solid rgba(31, 106, 69, 0.22);
    border-radius: 6px;
    background: rgba(255, 253, 244, 0.82);
    box-shadow: 0 10px 24px rgba(68, 52, 24, 0.08);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--leaf);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle:checked ~ .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav,
  .nav-actions {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 160ms ease, transform 180ms ease, padding 180ms ease, visibility 0s linear 220ms;
  }

  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .nav-actions {
    max-height: 360px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .main-nav {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2px;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    background: rgba(255, 253, 244, 0.96);
    box-shadow: 0 22px 54px rgba(68, 52, 24, 0.14);
  }

  .nav-toggle:checked ~ .main-nav {
    padding: 6px;
  }

  .main-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: rgba(215, 230, 181, 0.38);
    color: var(--leaf);
  }

  .nav-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(255, 253, 244, 0.96);
    box-shadow: 0 22px 54px rgba(68, 52, 24, 0.14);
  }

  .nav-toggle:checked ~ .nav-actions {
    padding: 8px;
  }

  .nav-phone,
  .nav-booking {
    min-height: 42px;
    justify-content: center;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 76px;
    padding-bottom: 260px;
  }

  .marma-orbit {
    top: auto;
    right: -70px;
    bottom: 110px;
    opacity: 0.56;
  }

  .event-ribbon {
    left: 18px;
    right: 18px;
  }

  .intro,
  .video-section,
  .practice-section,
  .register-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .teacher-grid,
  .details-grid,
  .info-columns,
  .check-list.compact {
    grid-template-columns: 1fr;
  }

  .teacher-grid article {
    grid-template-columns: 1fr;
  }

  .register-copy {
    position: static;
  }

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

  .section-grid article {
    min-height: auto;
  }

  .number {
    margin-bottom: 40px;
  }

  .section-head {
    display: block;
  }

  .point-map {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    grid-template-columns: 1fr;
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(40px, 11.5vw, 48px);
    line-height: 1.05;
  }

  .hero-content {
    width: 100%;
    padding-right: 35px;
    padding-left: 35px;
  }

  h2 {
    font-size: clamp(32px, 12vw, 46px);
  }

  .hero-copy {
    max-width: 27ch;
    font-size: 18px;
  }

  .hero-actions {
    width: min(100%, 320px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    max-width: 320px;
  }

  .proof {
    min-height: auto;
  }

  .proof strong {
    font-size: 34px;
  }

  .hero-signals span,
  .intro-points span,
  .trust-list span {
    max-width: 100%;
  }

  .event-card div {
    display: grid;
    gap: 4px;
  }

  .event-card dd {
    text-align: left;
  }

  .point-map {
    min-height: 360px;
  }

  .point {
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
  }

.p2 { left: 8%; }
  .p3 { right: 8%; }
  .p4 { left: 18%; }
  .p5 { right: 14%; }
}

/* Кръгчето с „М" отпадна на 17.08.2026 - хедърът носи истинското лого. */

.app-page {
  min-height: 100vh;
}

.app-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.booking-panel,
.auth-panel,
.dashboard,
.legal-card {
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 48px);
}

.booking-copy h1,
.auth-panel h1,
.dashboard h1 {
  max-width: none;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 70px);
}

.booking-form,
.compact-form {
  display: grid;
  gap: 16px;
}

.booking-form label,
.compact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

/* Отметките и радио бутоните се изключват нарочно. Иначе получават
   width: 100% и min-height: 48px - квадратчето за съгласие ставаше широко
   колкото формата, а скритите радио бутони за таба разпъваха страницата
   настрани (scrollWidth 1834 при 1440). */
.booking-form input:not([type="checkbox"]):not([type="radio"]),
.booking-form select,
.compact-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.radio-row legend {
  padding: 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.radio-row label,
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* `.booking-form label` слага display:grid и е по-специфично от `.check-line`
   (0,1,1 срещу 0,1,0). Заради това редът със съгласието се разпадаше на пет
   реда - квадратче, „Приемам", всеки линк поотделно и една точка най-долу. */
.booking-form .check-line,
.compact-form .check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.booking-form .check-line input {
  flex: none;
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.auth-panel {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
}

.form-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 106, 69, 0.24);
  border-radius: 6px;
  background: rgba(214, 234, 214, 0.6);
}

.form-message.error {
  border-color: rgba(196, 87, 50, 0.32);
  background: rgba(240, 201, 187, 0.55);
}

/* ==========================================================================
   Запазване на час - една страница (виж views/home/book_an_appointment.php).
   Двете „стъпки" са визуални, не отделни екрани: формата е една и се праща
   наведнъж.
   ========================================================================== */

.booking-page {
  display: grid;
  gap: 26px;
  width: min(100%, 720px);
  margin: 0 auto;
}

.booking-intro h1 {
  margin: 6px 0 14px;
  font-size: clamp(34px, 4.4vw, 54px);
}

.booking-single {
  gap: 22px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rice);
  box-shadow: var(--shadow);
}

.booking-single .step {
  display: grid;
  gap: 16px;
  margin: 0;
  border: 0;
  padding: 0;
}

.booking-single .step + .step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.booking-single legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--leaf);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--leaf);
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- табове „нямам / имам профил" ---------- */
.account-choice {
  display: grid;
  gap: 16px;
}

.mode-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tab-row label {
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

#mode-new:checked ~ .tab-row label[for="mode-new"],
#mode-existing:checked ~ .tab-row label[for="mode-existing"] {
  background: var(--leaf);
  color: white;
}

.mode-panel {
  display: grid;
  gap: 16px;
}

.mode-panel[hidden] {
  display: none;
}

/* Ако JS не е тръгнал, панелите не са скрити с [hidden] - тогава ги скрива
   CSS-ът по избраното радио. Полетата в скрития панел нямат required (слага
   се от JS), затова скриването не може да блокира изпращането. */
#mode-new:checked ~ .mode-panel[data-mode="existing"],
#mode-existing:checked ~ .mode-panel[data-mode="new"] {
  display: none;
}

/* Кутията за ботове. Не е display:none - част от ботовете прескачат точно
   това; полето стои извън екрана и е недостъпно с табулация. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- празен график ---------- */
.empty-slots {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(230, 162, 30, 0.38);
  border-radius: 8px;
  background: #fff3d9;
}

.empty-slots h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.empty-slots > p {
  margin: 0;
  color: var(--muted);
}

/* ---------- лента „Следващи дати" ---------- */
.next-dates h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.next-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rice);
}

.next-grid h3 {
  margin: 0;
  font-size: 19px;
}

.next-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.next-date {
  color: var(--leaf) !important;
  font-family: var(--sans);
  font-size: 15px !important;
  font-weight: 800;
}

.next-meta {
  font-size: 13px !important;
}

.next-grid .button {
  margin-top: 6px;
  justify-self: start;
  padding: 9px 14px;
  font-size: 13px;
}

/* „Запази нов час" в профила - води към единствената форма за записване. */
.book-again {
  display: grid;
  gap: 12px;
  align-content: start;
}

.book-again p {
  margin: 0;
  color: var(--muted);
}

.book-again .button {
  justify-self: start;
}

.schedule-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.schedule-list h2 {
  margin-bottom: 4px;
}

.schedule-list article,
.dashboard-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard {
  padding: clamp(20px, 4vw, 36px);
}

.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.dashboard-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.inline-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.inline-action:first-of-type {
  border-top: 0;
}

.inline-action button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--clay);
  border-radius: 6px;
  background: transparent;
  color: var(--clay);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.legal-card {
  padding: clamp(24px, 4vw, 52px);
}

.legal-card h1 {
  max-width: 18ch;
  margin-top: 0;
  font-size: clamp(34px, 5vw, 58px);
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 26px;
}

@media (max-width: 820px) {
  .booking-panel,
  .dashboard-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
  }
}

/* ==========================================================================
   Страница на резервацията (/Customer/thank_you) и бутоните в профила.
   Ползва същите променливи от :root - нищо ново в палитрата.
   ========================================================================== */

/* ---------- бутони в "Моите консултации" ---------- */
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pay-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--leaf);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.pay-btn:hover {
  background: #2c7a50;
}

.paid-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(31, 106, 69, 0.32);
  border-radius: 6px;
  background: rgba(214, 234, 214, 0.6);
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

/* Баджът е линк към резервацията - клиентът я отваря и след плащането. */
a.paid-badge:hover {
  background: rgba(214, 234, 214, 0.9);
  border-color: rgba(31, 106, 69, 0.5);
}

/* ---------- потвърждение ---------- */
.ty {
  display: grid;
  gap: 18px;
}

.ty h2,
.ty h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
}

.ty p {
  margin: 0;
}

.ty-hero {
  padding: clamp(28px, 4vw, 44px);
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.ty-badge {
  display: inline-block;
  padding: 6px 15px;
  border: 1px solid rgba(230, 162, 30, 0.5);
  border-radius: 20px;
  background: var(--paper);
  color: var(--saffron-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ty-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(32px, 4.4vw, 56px);
}

.ty-lead {
  max-width: 56ch;
  margin: 14px auto 0 !important;
  color: var(--muted);
  font-size: 17px;
}

.ty-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ty-track li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.ty-track .is-done {
  border-color: rgba(31, 106, 69, 0.4);
  color: var(--leaf);
}

.ty-track .is-now {
  border-color: var(--saffron);
  background: var(--saffron);
  color: #3a2a10;
}

.ty-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(31, 106, 69, 0.14);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}

.ty-track .is-now .ty-dot {
  background: rgba(58, 42, 16, 0.16);
  color: #3a2a10;
}

/* ---------- плащане + резюме ---------- */
.ty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.ty-main {
  display: grid;
  gap: 16px;
}

.ty-price {
  padding: 20px 22px;
  border: 1px solid rgba(230, 162, 30, 0.5);
  border-radius: 8px;
  background: var(--paper);
}

.ty-price strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  color: var(--leaf);
}

.ty-price p {
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 15px;
}

.ty-pays {
  display: grid;
  gap: 14px;
}

.ty-pay {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rice);
}

.ty-pay.is-primary {
  border-color: rgba(31, 106, 69, 0.42);
  box-shadow: var(--shadow);
}

.ty-pay > p {
  color: var(--muted);
  font-size: 15px;
}

.ty-pay-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ty-pay-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(214, 234, 214, 0.7);
  color: var(--leaf);
}

.ty-pay.is-primary .ty-pay-ico {
  background: var(--leaf);
  color: #fff;
}

.ty-pay-ico svg {
  width: 22px;
  height: 22px;
}

.ty-pay h2 {
  font-size: 22px;
  line-height: 1.2;
}

.ty-tag {
  display: block;
  margin-bottom: 2px;
  color: var(--saffron-dark);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ty-pay form {
  margin: 0;
}

.ty-pay-btn {
  width: 100%;
}

.ty-note-test {
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
}

/* Плащането в затъмнен прозорец. Вътрешността е iframe на Stripe и не се
   стилизира оттук - брандирането ѝ е в Stripe > Settings > Branding. */
.ty-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ty-modal[hidden] {
  display: none;
}

.ty-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(32, 49, 42, 0.55);
  backdrop-filter: blur(2px);
}

.ty-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 20px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(32, 49, 42, 0.28);
}

.ty-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ty-modal-x:hover {
  background: var(--paper);
}

.ty-checkout {
  min-height: 300px;
}

.ty-modal-note {
  margin: 12px 0 0;
  color: #6d7b74;
  font-size: 12px;
  text-align: center;
}

.ty-card-error {
  margin: 10px 0 0;
}

@media (max-width: 520px) {
  .ty-modal {
    padding: 0;
    align-items: flex-end;
  }

  .ty-modal-box {
    max-width: none;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
}

.ty-bank {
  display: grid;
  margin: 0;
}

.ty-bank > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.ty-bank > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ty-bank dt {
  min-width: 108px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ty-bank dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.ty-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.ty-hint {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.ty-paid {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(31, 106, 69, 0.42);
  border-radius: 8px;
  background: rgba(214, 234, 214, 0.55);
}

.ty-paid-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.ty-paid h2 {
  font-size: 24px;
  color: var(--leaf);
}

.ty-paid p {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 15px;
}

.ty-side {
  position: sticky;
  top: 24px;
}

.ty-summary {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rice);
  box-shadow: var(--shadow);
}

.ty-summary-top h2 {
  margin-top: 4px;
  font-size: 26px;
  color: var(--leaf);
}

.ty-rows {
  display: grid;
  margin: 0;
}

.ty-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ty-rows > div:last-child {
  border-bottom: 0;
}

.ty-rows dt {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ty-rows dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

.ty-rows .ty-when dd {
  color: var(--leaf);
  font-size: 18px;
  font-weight: 800;
}

/* ---------- подготовка, видео, помощ ---------- */
.ty-block {
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rice);
}

.ty-block > h2 {
  margin: 6px 0 22px;
  font-size: clamp(26px, 3vw, 38px);
}

.ty-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ty-guides li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ty-guides h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.ty-guides p {
  color: var(--muted);
  font-size: 15px;
}

.ty-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--saffron);
  color: #3a2a10;
  font-weight: 800;
}

.ty-fig {
  color: var(--saffron-dark);
  font-family: var(--sans);
  font-weight: 800;
}

.ty-note {
  margin-top: 18px !important;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
}

.ty-video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #12241a;
}

.ty-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ty-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: 8px;
  background: #173d2b;
  color: #fff;
}

.ty-help h2 {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 32px);
}

.ty-help p {
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.78);
}

.ty-tel {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ty-guides {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .ty-grid {
    grid-template-columns: 1fr;
  }

  .ty-side {
    position: static;
    order: -1;
  }
}

@media (max-width: 520px) {
  .ty-bank > div {
    display: block;
  }

  .ty-rows > div {
    flex-wrap: wrap;
  }

  .ty-rows dd {
    text-align: left;
  }

  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
