/* ===== Fonts: self-hosted woff2 (Cyrillic + Latin) ===== */
/* Manrope (body) — 400 / 500 / 600 / 700 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond (headings) — 500 / 600 / 700 */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-compatible fallbacks (Recipe A) — no layout shift while woff2 loads */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia");
  size-adjust: 105%;
  ascent-override: 84%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ===== Design tokens ===== */
:root {
  --bg-page: #1c211d;
  --bg-card: #252b25;
  --bg-card-soft: #2a302a;
  --accent: #d9b382;
  --accent-hover: #e6c493;
  --accent-ink: #1c211d;
  --brand: #8fa98f;
  --text-primary: #f5f2e9;
  --text-muted: #b8c0b8;
  --line: #3a423a;

  --thread-hatha: #8fa98f;
  --thread-vinyasa: #d9b382;
  --thread-beginners: #b8c0b8;
  --thread-stretch: #f5f2e9;

  --font-heading: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 72rem;
  --radius: 0.55rem;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; }

/* ===== Accessibility helpers ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(217, 179, 130, 0.35);
  animation: breathe 3.2s ease-in-out infinite;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--small:hover {
  background: var(--accent-hover);
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 179, 130, 0.0); }
  50% { box-shadow: 0 0 0 8px rgba(217, 179, 130, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--primary { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__links {
  display: none;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text-primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 33, 29, 0.55) 0%,
    rgba(28, 33, 29, 0.72) 55%,
    var(--bg-page) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding: 4rem 1.25rem 6rem;
  width: 100%;
}
.hero__eyebrow {
  color: var(--brand);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 12vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.hero__tagline {
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  color: var(--text-primary);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}
.hero__note {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
}

/* ===== Sections ===== */
.section {
  padding-block: 5rem;
}
.section__head {
  margin-bottom: 2.5rem;
}
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.section__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 60ch;
}

/* ===== Schedule table ===== */
.schedule__table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.schedule__table thead {
  display: none;
}
.schedule__table tbody tr {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1rem 1rem 1.5rem;
  position: relative;
  transition: background-color 0.2s ease;
}
.schedule__table tbody tr:last-child { border-bottom: none; }
.schedule__table tbody tr:hover { background: var(--bg-card-soft); }
.schedule__table td {
  display: block;
  padding: 0.15rem 0;
}
.schedule__table td::before {
  content: attr(data-label);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.schedule__time {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.2rem;
}
.schedule__class {
  font-weight: 600;
  color: var(--text-primary);
}
.schedule__day {
  color: var(--text-muted);
  font-weight: 600;
}
.schedule__dur {
  color: var(--text-muted);
}

/* Colored thread (signature element) */
.thread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.thread--hatha::before { background: var(--thread-hatha); }
.thread--vinyasa::before { background: var(--thread-vinyasa); }
.thread--beginners::before { background: var(--thread-beginners); }
.thread--stretch::before { background: var(--thread-stretch); }

/* Sunday rest block */
.schedule__sunday {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.schedule__moon {
  width: 120px;
  height: auto;
}
.schedule__sunday-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.schedule__sunday-text {
  color: var(--text-muted);
  max-width: 60ch;
}

/* ===== Pricing ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.price-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.price-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.price-card__note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 60ch;
}
.price-card--free {
  border-color: var(--accent);
  background: var(--bg-card-soft);
  box-shadow: 0 0 28px rgba(217, 179, 130, 0.14);
}
.price-card--free .price-card__value { color: var(--accent); }

/* ===== Team ===== */
.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.teacher {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.teacher:hover { border-color: var(--brand); }
.teacher__avatar {
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bg-page);
  background: radial-gradient(circle at 30% 25%, var(--brand), #5f7a5f);
}
.teacher:nth-child(2) .teacher__avatar {
  background: radial-gradient(circle at 30% 25%, var(--accent), #b08a55);
}
.teacher:nth-child(3) .teacher__avatar {
  background: radial-gradient(circle at 30% 25%, var(--thread-beginners), #6f766f);
}
.teacher__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}
.teacher__role {
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.contact__block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-style: normal;
}
.contact__line {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  max-width: 60ch;
}
.contact__line--strong {
  font-size: 1.2rem;
  font-weight: 600;
}
.contact__phone {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.contact__phone:hover { text-decoration: underline; }
.contact__block--cta {
  display: flex;
  align-items: center;
}

/* ===== Lead / contact form ===== */
.lead {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.lead__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.lead__intro {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}
.lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}
.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lead-form__field label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.lead-form__field input {
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
  font: inherit;
  padding: 0.7rem 0.9rem;
}
.lead-form__field input::placeholder {
  color: #6f766f;
}
.lead-form__field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lead__note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
}
.lead__note a { color: var(--accent); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
}
.footer__line {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
}
.footer__line a { color: var(--accent); }

/* ===== Desktop (>= 768px) ===== */
@media (min-width: 48rem) {
  .section { padding-block: 6rem; }

  .nav__links {
    display: flex;
    gap: 1.75rem;
  }

  .hero { min-height: 88vh; }
  .hero__content { padding-block: 5rem 7rem; }

  /* Table → real table */
  .schedule__table thead { display: table-header-group; }
  .schedule__table thead th {
    text-align: left;
    padding: 0.9rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }
  .schedule__table tbody tr {
    display: table-row;
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  .schedule__table td {
    display: table-cell;
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
  }
  .schedule__table td::before { display: none; }
  .schedule__time { font-size: 1rem; }
  .schedule__dur { color: var(--text-muted); }
  .schedule__day { color: var(--text-muted); }
  .thread::before { width: 3px; }

  .schedule__sunday {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }
  .schedule__moon { width: 90px; }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .teacher { flex-direction: column; align-items: flex-start; }
  .teacher__avatar { width: 6rem; height: 6rem; }

  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lead-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

@media (min-width: 64rem) {
  .pricing__grid { grid-template-columns: repeat(4, 1fr); }
}
