:root {
  --cream: #f7efe3;
  --warm-cream: #fbf6ee;
  --beige: #e8d6bd;
  --dusty-rose: #d8b4a6;
  --sage: #8f967d;
  --olive: #5f664d;
  --gold: #b9935a;
  --gold-light: #d4b683;
  --brown: #4b3528;
  --soft-brown: #7a5d49;
  --white: #fffaf2;
  --border: rgba(185, 147, 90, 0.35);
  --shadow-sm: 0 4px 12px rgba(75, 53, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(75, 53, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(75, 53, 40, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Raleway", "Lora", sans-serif;
  background: radial-gradient(circle at top left, #fffaf2, var(--cream));
  color: var(--brown);
  line-height: 1.6;
  min-height: 100vh;
}

.script {
  font-family: "Parisienne", cursive;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--brown);
}

h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p { color: var(--soft-brown); font-size: 1rem; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.section-title {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 42px;
}

section { padding: 90px 0; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  background: var(--olive);
  color: white;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}
.btn:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn.secondary {
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--border);
}
.btn.secondary:hover {
  background: rgba(185, 147, 90, 0.08);
  border-color: var(--gold);
}
.btn.gold {
  background: var(--gold);
  color: white;
}
.btn.gold:hover { background: #a07f47; }
.btn.full { width: 100%; }

.card {
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(251, 246, 238, 0.82);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1440px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.logo:hover .logo-img {
  transform: scale(1.06);
  opacity: 0.85;
}

.header-logo-text {
  min-width: 0;
}

/* fallback text logo (used in footer) */
.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  color: var(--gold);
  transition: transform 0.4s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-text strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo-text span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-brown);
  white-space: nowrap;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.85rem;
}
nav.nav-links a {
  color: var(--soft-brown);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
nav.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
nav.nav-links a:hover { color: var(--brown); }
nav.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  align-items: center;
}
.lang-switch select {
  width: auto;
  min-width: 64px;
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.74);
  color: var(--brown);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}
.lang-switch select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 250, 242, 0.96);
}
.lang-switch button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--soft-brown);
  font-family: inherit;
  font-size: inherit;
  padding: 4px 6px;
  transition: color 0.25s ease;
}
.lang-switch button.active { color: var(--brown); font-weight: 700; }
.lang-switch button:hover { color: var(--brown); }
.lang-switch .sep { color: var(--border); }

.nav-auth {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-auth a {
  color: var(--soft-brown);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.nav-auth a.login:hover { color: var(--brown); }
.nav-auth a.signup {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.nav-auth a.signup:hover {
  background: var(--gold);
  color: white;
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brown);
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease, width 0.3s ease;
  margin: 0 auto;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(251, 246, 238, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  border-bottom: 1px solid var(--border);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer a {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--brown);
}
.nav-drawer .nav-auth {
  flex-direction: column;
  margin-top: 12px;
  gap: 12px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(216,180,166,0.25), transparent 30%),
    linear-gradient(135deg, var(--warm-cream), #f1dfc9);
}
.hero::before {
  content: "❦";
  position: absolute;
  right: 6%; top: 6%;
  font-size: 16rem;
  color: var(--gold);
  opacity: 0.12;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out);
}
.hero:hover::before { transform: rotate(-6deg) scale(1.05); }

.hero-content { z-index: 2; max-width: 620px; }
.hero p {
  max-width: 500px;
  margin: 24px 0 32px;
  font-size: 1.1rem;
}

.hero-image {
  position: relative;
  min-height: 580px;
  border-radius: 50% 50% 4% 4%;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #dbc2a5, #f8efe2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: sepia(8%) saturate(95%) brightness(102%);
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 1.2s var(--ease-out);
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image-placeholder {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--soft-brown);
  text-align: center;
  padding: 40px;
}

/* ===== INTRO / WELCOME ===== */
.intro {
  display: grid;
  gap: 48px;
}
.intro-text { max-width: 820px; }
.intro-text p { margin-top: 14px; font-size: 1.05rem; }

.welcome-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.welcome-card {
  position: relative;
  background: rgba(255, 250, 242, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
  transform-origin: left center;
}
.welcome-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  background: rgba(255, 250, 242, 1);
}
.welcome-card:hover::before { transform: scaleX(1); }
.welcome-card .icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
}
.welcome-card:hover .icon { transform: scale(1.15) rotate(-4deg); }
.welcome-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.welcome-card p {
  font-size: 0.92rem;
  color: var(--soft-brown);
}

/* ===== QUOTE BAND ===== */
.quote-band {
  position: relative;
  text-align: center;
  padding: 70px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(95,102,77,0.95), rgba(143,150,125,0.82));
  color: white;
  overflow: hidden;
}
.quote-band::before, .quote-band::after {
  content: "❦";
  position: absolute;
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
  font-family: serif;
}
.quote-band::before { top: 20px; left: 30px; }
.quote-band::after { bottom: 20px; right: 30px; }
.quote-band h2 {
  color: white;
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.quote-band p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 24px;
}

/* ===== CENTRAL QUOTE (Art Nouveau, soft feminine) ===== */
.quote-central {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  margin: 40px auto;
  max-width: 1100px;
  background: rgba(217, 165, 160, 0.18);
  border-radius: 18px;
  overflow: hidden;
}
.quote-central::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid rgba(168, 184, 165, 0.7);
  border-radius: 10px;
  pointer-events: none;
}
.quote-central::after {
  content: "❦";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: rgba(168, 184, 165, 0.9);
  font-family: serif;
  background: var(--cream);
  padding: 0 12px;
  z-index: 2;
}
.quote-central blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.4;
  color: #3F3B38;
  max-width: 800px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.quote-central cite {
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-size: 1.4rem;
  color: #b89844;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-quote-tight {
  padding-top: 32px;
}
.section-quote-tight .quote-central {
  margin-top: 0;
}

/* Decorative script accents (eyebrow, signatures) */
.eyebrow.script-accent {
  font-family: "Parisienne", cursive;
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  margin-bottom: 8px;
}

/* About section: nested blocks for Welcome / Approach / Story */
.about-block + .about-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.about-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 10px;
}
.about-block p + p { margin-top: 12px; }
.about-signature {
  font-family: "Parisienne", cursive;
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: 18px;
  display: inline-block;
}

/* ===== ABOUT ===== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-copy {
  position: relative;
  z-index: 2;
}

.about-image-wrap {
  position: relative;
  padding: 16px 0 16px 16px;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid var(--gold-light);
  border-radius: 220px 220px 8px 8px;
  pointer-events: none;
  z-index: 0;
}
.about-image-wrap::after {
  content: "❦";
  position: absolute;
  top: -10px; right: 10px;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  font-family: serif;
}

.portrait-frame {
  position: relative;
  border: 1px solid var(--gold);
  border-radius: 220px 220px 8px 8px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ead8bf;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.portrait-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(8%) saturate(105%) brightness(102%);
  transition: transform 0.8s var(--ease-out), filter 0.8s ease;
}
.about-image-wrap:hover .portrait-frame img {
  transform: scale(1.04);
  filter: sepia(4%) saturate(110%) brightness(104%);
}

/* ===== LIBRARY / CONTENT GRIDS ===== */
.library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 36px;
}
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--soft-brown);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}
.tab:hover { border-color: var(--gold); color: var(--brown); }
.tab.active {
  background: var(--olive);
  color: white;
  border-color: var(--olive);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.resource-card,
.course-card,
.blog-card {
  display: flex;
  flex-direction: column;
}
.resource-card:hover,
.course-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--beige);
  display: block;
}
.card-img.placeholder {
  display: grid;
  place-items: center;
  color: var(--soft-brown);
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--beige), var(--dusty-rose));
}

.meta {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.price {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--brown);
  margin: 10px 0 16px;
}

/* ===== EVENTS ===== */
.events-list { display: grid; gap: 16px; }
.event-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 8px 0;
  transition: padding-left 0.3s ease;
}
.event-row:hover { padding-left: 8px; }
.event-date {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  line-height: 1.3;
}

/* ===== BOOKING / CONTACT ===== */
.booking-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}
.form { display: grid; gap: 14px; }

input, textarea, select {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  font-family: inherit;
  color: var(--brown);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.85);
}
textarea { min-height: 120px; resize: vertical; }

.calendar-shell {
  display: grid;
  gap: 16px;
}

.calendar-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-fallback {
  background: rgba(143,150,125,0.1);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.calendar-embed {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.socials a:hover {
  color: var(--brown);
  border-color: var(--gold);
  background: rgba(255, 250, 242, 0.96);
  transform: translateY(-2px);
}
.socials a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.socials a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}
.socials a:hover::after { width: 16px; }

/* ===== FOOTER ===== */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 16px;
}
.copyright {
  font-size: 0.8rem;
  color: var(--soft-brown);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  text-align: right;
}

.footer-credit-copy {
  display: grid;
  gap: 4px;
}

.footer-credit-copy p {
  font-size: 0.78rem;
  color: var(--soft-brown);
}

.footer-credit-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

.footer-credit-github {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 242, 0.72);
  color: var(--gold);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.footer-credit-github:hover {
  color: var(--brown);
  border-color: var(--gold);
  background: rgba(255, 250, 242, 0.96);
  transform: translateY(-2px);
}

.footer-credit-github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== AUTH PAGES (login/signup) ===== */
.auth-shell {
  min-height: calc(100vh - 100px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px 36px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.auth-card .eyebrow { margin-bottom: 24px; }
.auth-card .form { gap: 16px; margin-top: 24px; }
.auth-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--soft-brown);
  margin-top: 4px;
}
.auth-meta a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(185, 147, 90, 0.3);
}
.auth-meta a:hover { text-decoration-color: var(--gold); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--soft-brown);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--soft-brown);
}
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ===== DASHBOARD ===== */
.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding-top: 40px;
}
.sidebar {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 24px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.sidebar a {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--soft-brown);
  font-size: 0.92rem;
  transition: all 0.25s ease;
}
.sidebar a:hover { background: rgba(95,102,77,0.08); color: var(--brown); }
.sidebar a.active {
  background: rgba(95,102,77,0.14);
  color: var(--brown);
  font-weight: 600;
}
.sidebar .sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.dashboard-main { display: grid; gap: 24px; }
.dashboard-greet h2 { margin-bottom: 8px; }
.dashboard-greet p { color: var(--soft-brown); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
}
.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft-brown);
}

.course-progress { display: grid; gap: 18px; }
.progress-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.progress-item:last-child { border-bottom: none; }
.progress-thumb {
  width: 110px;
  height: 70px;
  background: linear-gradient(135deg, var(--beige), var(--dusty-rose));
  border-radius: 8px;
  object-fit: cover;
}
.progress-bar {
  height: 6px;
  background: rgba(95,102,77,0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--olive);
  transition: width 1s var(--ease-out);
}

/* ===== CHECKOUT ===== */
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  max-width: 960px;
  margin: 60px auto;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.summary-line.total {
  border-bottom: none;
  border-top: 2px solid var(--gold);
  margin-top: 12px;
  padding-top: 16px;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}
.payment-method:hover { border-color: var(--gold); }
.payment-method input { width: auto; }
.payment-method.active {
  border-color: var(--gold);
  background: rgba(185, 147, 90, 0.05);
}
.payment-icon {
  font-size: 1.4rem;
  color: var(--gold);
}

.divider-line {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.checkout-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--soft-brown);
}

/* ===== UTILITIES ===== */
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

input[type="checkbox"], input[type="radio"] {
  width: auto;
  padding: 0;
  margin-right: 6px;
  accent-color: var(--olive);
}

/* ===== ALTERNATING SECTION BACKGROUNDS ===== */
/*
  Секции с классом .section-dark получают тёплый бежево-кремовый фон
  и растягиваются на всю ширину viewport через отрицательные отступы.
  Контент внутри остаётся выровнен по .page max-width.
*/
.section-dark {
  background: linear-gradient(160deg, #ede5d8, #e4d3bc);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .section-dark {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ===== COMING SOON OVERLAY ===== */
.coming-soon-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.coming-soon-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(249, 246, 240, 0.72);
  -webkit-backdrop-filter: blur(6px) saturate(0.7);
  backdrop-filter: blur(6px) saturate(0.7);
  border-radius: 16px;
  z-index: 10;
  pointer-events: none;
}
.coming-soon-wrap::after {
  content: 'Coming soon...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Parisienne", cursive;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--gold);
  white-space: nowrap;
  z-index: 11;
  pointer-events: none;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(185, 147, 90, 0.18);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ===== LANGUAGE SYSTEM ===== */
[lang-target="ru"] { display: none; }
[lang-target="en"] { display: inline; }
body.lang-ru [lang-target="en"] { display: none; }
body.lang-ru [lang-target="ru"] { display: inline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .navbar { padding: 16px 20px; gap: 16px; }
  nav.nav-links { gap: 16px; font-size: 0.8rem; }
  .nav-auth { font-size: 0.72rem; }
  .nav-auth a { padding: 6px 10px; }
}

@media (max-width: 980px) {
  nav.nav-links, .nav-auth { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }

  .hero, .intro, .two-column,
  .booking-panel, .dashboard-shell,
  .checkout-shell, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 54px 28px; gap: 32px; min-height: 0; }
  .hero-image { min-height: 430px; }
  .two-column { gap: 40px; }

  .welcome-row { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr 1fr; }

  .sidebar { position: static; }

  .footer-bottom,
  .footer-credit {
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page { padding: 14px; }
  .welcome-row, .content-grid, .stats-row { grid-template-columns: 1fr; }

  .navbar {
    padding: 12px 14px;
    gap: 10px;
  }
  .logo {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .logo-img { height: 42px; }
  .header-logo-text strong {
    font-size: clamp(0.88rem, 4vw, 1.02rem);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-logo-text span {
    display: block;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-actions { gap: 8px; }
  .lang-switch select {
    min-width: 56px;
    padding: 7px 22px 7px 8px;
    font-size: 0.76rem;
  }
  .nav-hamburger {
    width: 34px;
    height: 34px;
  }
  .calendar-shell-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-embed {
    min-height: 560px;
  }

  .about-section {
    padding: 0;
  }
  .about-layout {
    display: block;
    position: relative;
    min-height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(61, 44, 34, 0.78) 0%, rgba(61, 44, 34, 0.92) 100%);
  }
  .about-layout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 76svh;
    background: linear-gradient(
      to bottom,
      rgba(30, 20, 14, 0.06) 0%,
      rgba(30, 20, 14, 0.14) 24%,
      rgba(30, 20, 14, 0.42) 58%,
      rgba(30, 20, 14, 0.82) 82%,
      rgba(61, 44, 34, 0.98) 100%
    );
    z-index: 1;
  }
  .about-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 76svh;
    padding: 0;
  }
  .about-image-wrap::before,
  .about-image-wrap::after {
    display: none;
  }
  .portrait-frame {
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .portrait-frame img {
    object-position: 52% 24%;
    filter: none;
    transition: none;
  }
  .about-image-wrap:hover .portrait-frame img {
    transform: none;
    filter: none;
  }
  .about-copy {
    min-height: auto;
    padding: 30px 28px 36px;
    padding-top: 30px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
  }
  .about-copy > *:first-child {
    margin-top: 18svh;
  }
  .about-copy h2,
  .about-copy h3,
  .about-copy p,
  .about-copy .about-signature {
    color: white;
  }
  .about-copy .about-block + .about-block {
    border-top-color: rgba(255,255,255,0.22);
  }
  .about-copy .btn.secondary {
    color: white;
    border-color: rgba(255,255,255,0.48);
    background: rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .about-copy .btn.secondary:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.7);
  }

  /* Hero: photo becomes full-bleed background, text overlaid */
  .hero {
    display: block;
    position: relative;
    min-height: calc(100svh - 92px);
    padding: 0;
    border-radius: 12px;
    background: none;
    overflow: hidden;
  }
  .hero::before { display: none; }

  .hero-image {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    z-index: 0;
  }
  .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(30, 20, 14, 0.28) 0%,
      rgba(30, 20, 14, 0.12) 30%,
      rgba(30, 20, 14, 0.28) 48%,
      rgba(30, 20, 14, 0.72) 72%,
      rgba(30, 20, 14, 0.86) 100%
    );
    z-index: 1;
  }
  .hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 50% 50%;
    filter: none;
    transform: none;
    transform-origin: 50% 50%;
    transition: none;
  }
  .hero-image:hover img { transform: none; }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 42svh 28px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100svh - 92px);
  }
  .hero-content .eyebrow { color: rgba(255,255,255,0.75); }
  .hero-content h1 { color: white; font-size: clamp(2.35rem, 9vw, 3.8rem); }
  .hero-content p { color: rgba(255,255,255,0.85); font-size: 1rem; }
  .hero-content .btn {
    align-self: flex-start;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .hero-content .btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
  }
  .event-row, .progress-item, .newsletter, .auth-card .form-row {
    grid-template-columns: 1fr;
  }
  section { padding: 60px 0; }
  .auth-card { padding: 32px 24px; }
}

@media (max-width: 380px) {
  .header-logo-text strong { font-size: 0.82rem; }
  .logo-img { height: 38px; }
  .nav-actions { gap: 6px; }
  .lang-switch select {
    min-width: 50px;
    padding-right: 18px;
  }
}

/* ===== PRINT / REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
