/* Global styles — Masahat Sukoon design foundation
   Use Tailwind utilities for UI. This file holds tokens + base only. */

:root {
  /* Brand palette (from logo) */
  --primary: #D6A2A2;
  --primary-soft: #E8C4C4;
  --primary-deep: #A06B6B;
  --primary-ink: #7A4E4E;
  --sand: #F5F1E9;
  --sand-light: #FAF8F4;
  --sand-dark: #E8E0D4;
  --secondary: #5C4545;
  --text: #5C4545;
  --text-muted: #8A6F6F;
  --white: #FFFFFF;
  --success: #4F8A6B;
  --danger: #C45C5C;

  /* Aliases used across the project */
  --primary-color: var(--primary);
  --secondary-color: var(--secondary);
  --base-font: 'Cairo', sans-serif;

  /* Layout */
  --header-h: 4.75rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 8px 28px rgba(160, 107, 107, 0.1);
  --focus-ring: 0 0 0 3px rgba(214, 162, 162, 0.55);
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--base-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--sand-light);
  line-height: 1.7;
}

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

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

/* Focus visibility (a11y) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--primary-ink);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sand-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

/* Firefox scrollbar */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--sand-light);
}

/* ============================ */
/* ===== SITE CONTAINER ======= */
/* (custom class — avoids Tailwind CDN .container override) */
/* ============================ */
.site-container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .site-container {
    max-width: 1320px;
  }
}

/* ============================ */
/* ===== BUTTON SYSTEM ======== */
/* ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  gap: 0.4rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.0625rem;
  gap: 0.6rem;
}

.btn-primary {
  background: var(--primary-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-ink);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--primary-ink);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.btn-soft:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-ink);
}

.btn-ghost:hover {
  background: var(--sand);
  color: var(--primary-ink);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.section-pad {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 5.5rem;
  }
}

/* ============================ */
/* ===== HOME HERO ============ */
/* ============================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-ken 18s ease-out forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(122, 78, 78, 0.72) 0%,
      rgba(160, 107, 107, 0.35) 45%,
      rgba(214, 162, 162, 0.18) 100%
    );
}

.hero__content {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 3.5rem;
}

.hero__copy {
  max-width: 40rem;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 18px rgba(92, 69, 69, 0.25);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
    transform: none;
  }
}

/* ============================ */
/* ===== COURSE TYPES ========== */
/* ============================ */
.course-types {
  position: relative;
  background-color: var(--sand-light);
  background-image:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(232, 196, 196, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(214, 162, 162, 0.22), transparent 55%);
}

.course-types__intro {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.course-types__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.course-types__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.course-types__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-muted);
}

.course-types__grid {
  display: grid;
  gap: 1.25rem;
}

.type-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.type-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}

.type-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.type-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.65) 0%, rgba(232, 196, 196, 0.28) 100%);
}

.type-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.type-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--secondary);
}

.type-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
  transition: gap 0.25s ease, color 0.25s ease;
}

.type-card:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 107, 107, 0.45);
  box-shadow: 0 14px 34px rgba(160, 107, 107, 0.14);
}

.type-card:hover .type-card__img {
  transform: scale(1.05);
}

.type-card:hover .type-card__cta {
  gap: 0.7rem;
  color: var(--primary-ink);
}

.type-card:focus-visible {
  box-shadow: var(--focus-ring);
}

@media (min-width: 768px) {
  .course-types__intro {
    margin-bottom: 3.25rem;
  }

  .course-types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .type-card__body {
    padding: 1.55rem 1.6rem 1.7rem;
  }

  .type-card__title {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-card,
  .type-card__img,
  .type-card__cta {
    transition: none;
  }

  .type-card:hover {
    transform: none;
  }

  .type-card:hover .type-card__img {
    transform: none;
  }
}

/* ============================ */
/* ===== FEATURED COURSES ===== */
/* ============================ */
.featured {
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(232, 196, 196, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(214, 162, 162, 0.16), transparent 50%),
    var(--sand);
}

.featured__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.featured__intro {
  max-width: 34rem;
}

.featured__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.featured__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.featured__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .featured__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.25rem;
  }

  .featured__lead {
    font-size: 1.02rem;
  }
}

/* ============================ */
/* ===== HOW IT WORKS ========== */
/* ============================ */
.steps {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 196, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(214, 162, 162, 0.18), transparent 50%),
    var(--sand-light);
}

.steps__intro {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  text-align: center;
}

.steps__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.steps__heading {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.steps__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.75rem;
}

.steps__item:last-child {
  padding-bottom: 0;
}

.steps__item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  right: 1.3rem;
  width: 2px;
  height: calc(100% - 2.75rem);
  background: linear-gradient(to bottom, var(--primary), rgba(214, 162, 162, 0.15));
  border-radius: 99px;
}

.steps__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 6px 18px rgba(160, 107, 107, 0.12);
}

.steps__num {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-ink);
}

.steps__panel {
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(214, 162, 162, 0.28);
  box-shadow: 0 8px 24px rgba(160, 107, 107, 0.06);
}

.steps__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-ink);
}

.steps__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--secondary);
}

.steps__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .steps__intro {
    margin-bottom: 3rem;
  }

  .steps__lead {
    font-size: 1.02rem;
  }

  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .steps__item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .steps__item:not(:last-child)::before {
    top: 1.55rem;
    right: 50%;
    left: auto;
    width: calc(100% + 1.5rem);
    height: 2px;
    background: linear-gradient(to left, rgba(214, 162, 162, 0.2), var(--primary), rgba(214, 162, 162, 0.2));
    transform: none;
  }

  .steps__marker {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.15rem;
  }

  .steps__num {
    font-size: 1.15rem;
  }

  .steps__panel {
    width: 100%;
    padding: 1.35rem 1.25rem 1.5rem;
    text-align: center;
  }

  .steps__title {
    font-size: 1.15rem;
  }

  .steps__text {
    font-size: 0.93rem;
  }

  .steps__actions {
    margin-top: 2.75rem;
  }
}

/* ============================ */
/* ===== WHY US ================ */
/* ============================ */
.why {
  background: var(--sand);
}

.why__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.why__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-dark);
  aspect-ratio: 4 / 3;
}

.why__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.why__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.why__lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.why__points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.why__points li {
  position: relative;
  padding-right: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--primary-ink);
}

.why__points li::before {
  content: '';
  position: absolute;
  top: 0.65rem;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.75rem;
  }

  .why__media {
    aspect-ratio: 5 / 4;
    min-height: 22rem;
  }

  .why__lead {
    font-size: 1.05rem;
  }

  .why__points {
    margin-bottom: 2rem;
  }

  .why__points li {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .why__grid {
    gap: 3.5rem;
  }
}

/* ============================ */
/* ===== CONSULT CTA =========== */
/* ============================ */
.consult-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 22rem;
  overflow: hidden;
  color: #fff;
}

.consult-cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.consult-cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.consult-cta__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(92, 69, 69, 0.82) 0%,
      rgba(122, 78, 78, 0.55) 45%,
      rgba(122, 78, 78, 0.35) 100%
    );
}

.consult-cta__content {
  width: 100%;
  padding-block: 3.5rem;
}

.consult-cta__copy {
  max-width: 36rem;
}

.consult-cta__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 244, 0.85);
}

.consult-cta__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.consult-cta__text {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.92);
}

.consult-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .consult-cta {
    min-height: 26rem;
  }

  .consult-cta__content {
    padding-block: 4.5rem;
  }
}

/* ============================ */
/* ===== PAGE INTRO ============ */
/* ============================ */
.page-intro {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(232, 196, 196, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(214, 162, 162, 0.18), transparent 50%),
    var(--sand);
  border-bottom: 1px solid rgba(214, 162, 162, 0.22);
}

.page-intro__inner {
  padding-block: 3rem;
  max-width: 40rem;
}

.page-intro__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.page-intro__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-ink);
}

.page-intro__lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .page-intro__inner {
    padding-block: 4rem;
  }
}

/* ============================ */
/* ===== ABOUT STORY =========== */
/* ============================ */
.about-story {
  background: var(--sand-light);
}

.about-story__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.about-story__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-dark);
  aspect-ratio: 4 / 3;
}

.about-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.about-story__avatar {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.2rem;
}

.about-story__brand {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-ink);
  line-height: 1.3;
}

.about-story__role {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--primary-deep);
}

.about-story__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.about-story__text {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.about-story__points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.about-story__points li {
  position: relative;
  padding-right: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary-ink);
}

.about-story__points li::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
}

@media (min-width: 768px) {
  .about-story__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.75rem;
  }

  .about-story__media {
    aspect-ratio: 5 / 4;
    min-height: 22rem;
  }

  .about-story__text {
    font-size: 1.02rem;
  }
}

@media (min-width: 1024px) {
  .about-story__grid {
    gap: 3.5rem;
  }
}

/* ============================ */
/* ===== COURSES CATALOG ======= */
/* ============================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.catalog {
  background: var(--sand-light);
}

.catalog__toolbar {
  margin-bottom: 1.5rem;
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.catalog__filter {
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(214, 162, 162, 0.45);
  background: #fff;
  color: var(--primary-ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.catalog__filter:hover {
  border-color: var(--primary);
}

.catalog__filter.is-active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.catalog__grid {
  display: grid;
  gap: 1.15rem;
}

.catalog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sand);
}

.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.catalog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.25rem;
}

.catalog-card__tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

.catalog-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-ink);
}

.catalog-card__text {
  margin: 0 0 0.9rem;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--secondary);
}

.catalog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
  transition: gap 0.25s ease, color 0.25s ease;
}

.catalog-card:hover .catalog-card__link,
.catalog-card:focus-within .catalog-card__link {
  border-color: rgba(160, 107, 107, 0.45);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.1);
}

.catalog-card:hover .catalog-card__img,
.catalog-card:focus-within .catalog-card__img {
  transform: scale(1.04);
}

.catalog-card:hover .catalog-card__cta,
.catalog-card:focus-within .catalog-card__cta {
  gap: 0.65rem;
  color: var(--primary-ink);
}

.catalog-card__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.catalog__empty {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .catalog__toolbar {
    margin-bottom: 2rem;
  }

  .catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .catalog-card__title {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog__filter,
  .catalog-card__link,
  .catalog-card__img,
  .catalog-card__cta {
    transition: none;
  }

  .catalog-card:hover .catalog-card__img,
  .catalog-card:focus-within .catalog-card__img {
    transform: none;
  }
}

/* ============================ */
/* ===== COURSE DETAILS ======== */
/* ============================ */
.course-details {
  background: var(--sand-light);
}

.course-details__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-details__crumb a {
  color: var(--primary-deep);
  font-weight: 600;
}

.course-details__crumb a:hover {
  color: var(--primary-ink);
}

.course-details__grid {
  display: grid;
  gap: 1.75rem;
}

.course-details__cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  aspect-ratio: 16 / 10;
}

.course-details__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-details__header {
  margin-top: 1.25rem;
}

.course-details__tag {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

.course-details__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
}

.course-details__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--secondary);
}

.course-details__block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(214, 162, 162, 0.28);
}

.course-details__h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.course-details__text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.course-details__text:last-child {
  margin-bottom: 0;
}

.course-details__video {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1px solid rgba(214, 162, 162, 0.28);
  aspect-ratio: 16 / 9;
}

.course-details__video-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.course-details__video-ph i {
  font-size: 2.25rem;
  opacity: 0.85;
}

.course-details__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.course-details__list li {
  position: relative;
  padding-right: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--primary-ink);
}

.course-details__list li::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
}

.course-details__files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.course-details__file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  color: var(--primary-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.course-details__file i {
  color: var(--primary-deep);
  font-size: 1.15rem;
}

.course-details__file span {
  flex: 1;
}

.course-details__file em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.course-details__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-buy {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.course-buy__label {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.course-buy__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  color: var(--primary-ink);
}

.course-buy__amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.course-buy__currency {
  font-size: 0.95rem;
  font-weight: 600;
}

.course-buy__meta {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.course-buy__btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.course-buy__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.course-buy__alt {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.course-buy__alt:hover {
  color: var(--primary-ink);
}

@media (min-width: 900px) {
  .course-details__grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2rem;
    align-items: start;
  }

  .course-details__aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .course-details__header {
    margin-top: 1.5rem;
  }

  .course-details__block {
    margin-top: 2.25rem;
  }
}

/* ============================ */
/* ===== BOOKING PAGE ========== */
/* ============================ */
.booking {
  background: var(--sand-light);
}

.booking__grid {
  display: grid;
  gap: 1.75rem;
}

.booking__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--primary-ink);
}

.booking__text {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.booking__points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.booking__points li {
  position: relative;
  padding-right: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--primary-ink);
}

.booking__points li::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
}

.booking__note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(232, 196, 196, 0.28);
  border: 1px solid rgba(214, 162, 162, 0.35);
}

.booking__note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--primary-ink);
}

.booking__panel {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.booking-form__fieldset {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.booking-form__legend {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.booking-form__types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.booking-type {
  cursor: pointer;
}

.booking-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-type__box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.85rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(214, 162, 162, 0.4);
  background: var(--sand-light);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.booking-type__box strong {
  font-size: 0.95rem;
  color: var(--primary-ink);
}

.booking-type__box em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.booking-type input:checked + .booking-type__box {
  border-color: var(--primary-deep);
  background: rgba(232, 196, 196, 0.35);
}

.booking-type input:focus-visible + .booking-type__box {
  box-shadow: var(--focus-ring);
}

.booking-form__field {
  margin-bottom: 1rem;
}

.booking-form__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-ink);
}

.booking-form__optional {
  font-weight: 500;
  color: var(--text-muted);
}

.booking-form__field input,
.booking-form__field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(214, 162, 162, 0.45);
  background: var(--sand-light);
  color: var(--secondary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.booking-form__field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.booking-form__field input::placeholder,
.booking-form__field textarea::placeholder {
  color: var(--text-muted);
}

.booking-form__field input:focus,
.booking-form__field textarea:focus {
  outline: none;
  border-color: var(--primary-deep);
  box-shadow: var(--focus-ring);
}

.booking-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
}

.booking-form__status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.booking-form__status.is-success {
  background: rgba(79, 138, 107, 0.12);
  color: var(--success);
}

.booking-form__status.is-error {
  background: rgba(196, 92, 92, 0.12);
  color: var(--danger);
}

@media (min-width: 900px) {
  .booking__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
  }

  .booking__panel {
    padding: 1.6rem;
  }
}

/* ============================ */
/* ===== CONTACT PAGE ========== */
/* ============================ */
.contact {
  background: var(--sand-light);
}

.contact__grid {
  display: grid;
  gap: 1.75rem;
}

.contact__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--primary-ink);
}

.contact__text {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.contact__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel:hover {
  border-color: rgba(160, 107, 107, 0.45);
  box-shadow: 0 8px 22px rgba(160, 107, 107, 0.08);
}

.contact-channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(232, 196, 196, 0.4);
  color: var(--primary-ink);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-channel__body strong {
  font-size: 0.98rem;
  color: var(--primary-ink);
}

.contact-channel__body em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact__panel {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.contact__form-title {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-ink);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
  }

  .contact__panel {
    padding: 1.6rem;
  }
}

/* ============================ */
/* ===== ABOUT VISION ========== */
/* ============================ */
.about-vision {
  background: var(--sand);
}

.about-vision__intro {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.about-vision__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.about-vision__heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.about-vision__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-vision__grid {
  display: grid;
  gap: 1rem;
}

.vision-item {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 162, 162, 0.28);
}

.vision-item__title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-ink);
}

.vision-item__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .about-vision__intro {
    margin-bottom: 2.5rem;
  }

  .about-vision__lead {
    font-size: 1.02rem;
  }

  .about-vision__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .vision-item {
    padding: 1.55rem 1.4rem;
  }

  .vision-item__title {
    font-size: 1.15rem;
  }

  .vision-item__text {
    font-size: 0.95rem;
  }
}

/* ============================ */
/* ===== SITE FOOTER ========== */
/* ============================ */
.site-footer {
  margin-top: auto;
  background:
    radial-gradient(ellipse 55% 50% at 100% 0%, rgba(232, 196, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(214, 162, 162, 0.16), transparent 50%),
    var(--sand);
  border-top: 1px solid rgba(214, 162, 162, 0.28);
  color: var(--secondary);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.25rem;
}

.site-footer__brand {
  max-width: 22rem;
}

.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.site-footer__logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.2rem;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-footer__brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
  line-height: 1.25;
}

.site-footer__brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.site-footer__about {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.site-footer__cta {
  width: fit-content;
}

.site-footer__title {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.site-footer__list,
.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.site-footer__list a,
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--secondary);
  transition: color 0.25s ease;
}

.site-footer__list a:hover,
.site-footer__contact a:hover {
  color: var(--primary-ink);
}

.site-footer__contact i {
  width: 1.1rem;
  text-align: center;
  color: var(--primary-deep);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 1.15rem 1.5rem;
  border-top: 1px solid rgba(214, 162, 162, 0.25);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 162, 0.4);
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary-deep);
  font-size: 1rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.site-footer__social a:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary-ink);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.75rem;
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 0.85fr 0.85fr 1.1fr;
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.25rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__list a,
  .site-footer__contact a,
  .site-footer__social a {
    transition: none;
  }
}

/* ============================ */
/* ===== AUTH PAGES =========== */
/* ============================ */
.auth {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(232, 196, 196, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(214, 162, 162, 0.18), transparent 50%),
    var(--sand-light);
}

.auth__panel {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.6rem 1.35rem 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.auth__brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth__logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  border-radius: 0.85rem;
  background: var(--sand-light);
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.25rem;
}

.auth__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.auth__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
}

.auth__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.auth__form {
  margin-bottom: 1.15rem;
}

.auth__switch {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
}

.auth__switch a {
  font-weight: 700;
  color: var(--primary-deep);
}

.auth__switch a:hover {
  color: var(--primary-ink);
}

@media (min-width: 768px) {
  .auth__panel {
    padding: 2rem 1.75rem 1.9rem;
  }
}

/* Locked course content (after purchase / login gate) */
.course-locked {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(214, 162, 162, 0.3);
  background: var(--sand);
  min-height: 14rem;
}

.course-locked__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(
      to top,
      rgba(250, 248, 244, 0.96) 0%,
      rgba(245, 241, 233, 0.88) 55%,
      rgba(245, 241, 233, 0.78) 100%
    );
}

.course-locked__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(232, 196, 196, 0.45);
  color: var(--primary-ink);
  font-size: 1.15rem;
}

.course-locked__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.course-locked__text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.course-locked__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

/* ============================ */
/* ===== PRELOADER ============ */
/* ============================ */
html.is-loading,
html.is-loading body {
  overflow: hidden;
}

/* Instant cover before partial injects (empty placeholder) */
html.is-loading body > [data-partial='preloader'] {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(232, 196, 196, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(214, 162, 162, 0.2), transparent 55%),
    var(--sand-light);
}

/* Skip preloader on in-site navigation (same session) */
html.is-preloaded [data-partial='preloader'],
html.is-preloaded .preloader {
  display: none !important;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(232, 196, 196, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(214, 162, 162, 0.2), transparent 55%),
    var(--sand-light);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__glow {
  position: absolute;
  width: min(22rem, 70vw);
  height: min(22rem, 70vw);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 162, 162, 0.28) 0%, transparent 70%);
  animation: preloader-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.preloader__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.25rem;
}

.preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(214, 162, 162, 0.28);
  border-top-color: var(--primary-deep);
  border-right-color: var(--primary);
  animation: preloader-spin 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.preloader__logo {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.35rem;
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.12);
  animation: preloader-breathe 2.4s ease-in-out infinite;
}

.preloader__brand {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
  letter-spacing: 0.02em;
}

.preloader__hint {
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.preloader__bar {
  width: 8.5rem;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(214, 162, 162, 0.28);
}

.preloader__bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  animation: preloader-bar 1.35s ease-in-out infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloader-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes preloader-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes preloader-bar {
  0% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(-250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__glow,
  .preloader__ring,
  .preloader__logo,
  .preloader__bar-fill {
    animation: none;
  }

  .preloader__ring {
    border-color: var(--primary);
  }
}

/* ============================ */
/* ===== SCROLL TOP BTN ======= */
/* ============================ */
#scrollTopBtn {
  transform: translateY(20px);
}

#scrollTopBtn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

/* ============================ */
/* ===== HEADER NAVIGATION ===== */
/* ============================ */
.nav-link {
  position: relative;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-deep);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 99px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active style managed by layout.js */
.nav-link.text-primary-ink::after {
  width: 100%;
  background-color: var(--primary-ink);
}

.nav-link-mobile {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  width: fit-content;
}

.nav-link-mobile::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-deep);
  transition: width 0.3s ease;
  border-radius: 99px;
}

.nav-link-mobile:hover::after {
  width: 2.5rem;
}

.nav-link-mobile.text-primary-ink {
  color: var(--primary-ink) !important;
}

.nav-link-mobile.text-primary-ink::after {
  width: 3.5rem;
  background-color: var(--primary-ink);
}

/* ============================ */
/* ===== MOBILE FULL MENU ===== */
/* ============================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background-color: #FAF8F4;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(214, 162, 162, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(160, 107, 107, 0.12), transparent 50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.25rem);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  min-height: 100%;
  min-height: 100dvh;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu__logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.65rem;
  border: 1px solid rgba(214, 162, 162, 0.35);
  background: #fff;
}

.mobile-menu__brand-text {
  display: flex;
  flex-direction: column;
}

.mobile-menu__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-ink);
  line-height: 1.2;
}

.mobile-menu__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.mobile-menu__close {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 162, 0.4);
  background: #fff;
  color: var(--primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.mobile-menu__close:hover {
  background: var(--sand);
}

.mobile-menu__close:active {
  transform: scale(0.95);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 2rem 0.25rem;
  flex: 1;
  justify-content: center;
}

.mobile-menu__nav .nav-link-mobile {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  color: var(--secondary);
  padding: 0.15rem 0;
}

.mobile-menu__nav .nav-link-mobile:hover {
  color: var(--primary-deep);
}

.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(214, 162, 162, 0.25);
}

.mobile-menu__cta {
  width: 100%;
}

.mobile-menu__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mobile-menu__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.15rem;
  color: var(--primary-deep);
}

.mobile-menu__social a:hover {
  color: var(--primary-ink);
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 1280px) {
  .mobile-menu {
    display: none !important;
  }
}


