/* ===== Design tokens ===== */
:root {
  --bg-page: #f7f3ed;
  --bg-card: #ffffff;
  --brand: #3f5d54;
  --brand-deep: #2f4740;
  --accent: #8c4f2c;
  --accent-soft: #f0e3d8;
  --accent-hover: #7c4526;
  --text-primary: #202a26;
  --text-muted: #59665f;
  --line: #e7e0d5;
  --line-strong: #d8cfc0;
  --ring: rgba(140, 79, 44, 0.35);

  --font-heading: Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Liberation Sans", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(32, 42, 38, 0.04), 0 2px 8px rgba(32, 42, 38, 0.05);
  --shadow-md: 0 4px 20px rgba(32, 42, 38, 0.08);

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
  text-wrap: balance;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Icon ===== */
.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  min-height: 48px;
  padding: 0 24px;
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 0 32px; min-height: 56px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.brand:hover { color: var(--text-primary); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, var(--bg-page) 0 22%, transparent 23%),
    conic-gradient(from 0deg, var(--brand), var(--accent), var(--brand));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--text-primary); background: var(--accent-soft); }
.nav-link.is-active { color: var(--text-primary); }
.nav-desktop .btn { margin-left: 8px; }

.nav-mobile { display: none; }
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}
.nav-burger::-webkit-details-marker { display: none; }
.nav-burger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.burger-bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
.nav-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.nav-mobile-panel .nav-link { font-size: 17px; padding: 12px 14px; }
.nav-mobile-panel .btn { margin-top: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(180deg, #f3eee6 0%, var(--bg-page) 100%);
  padding: clamp(64px, 10vw, 120px) 0 clamp(64px, 10vw, 110px);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(247, 243, 237, 0.94) 0%, rgba(247, 243, 237, 0.68) 46%, rgba(247, 243, 237, 0.08) 100%);
}
.mandala {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  color: var(--ring);
  opacity: 0.5;
  z-index: 1;
}
.mandala-rings circle,
.mandala-petals use,
.mandala-core {
  fill: none;
  stroke: currentColor;
}
.mandala-core { fill: currentColor; stroke: none; }
.mandala-petals use { stroke: var(--accent); opacity: 0.5; }

.hero-inner { position: relative; z-index: 2; }
.hero-content {
  max-width: 640px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.9rem, 5vw + 1rem, 3.4rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-free {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 15px;
}

/* ===== Breathing rings around CTA ===== */
.cta-wrap {
  position: relative;
  display: inline-flex;
}
.ring {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--ring);
  border-radius: 50%;
  pointer-events: none;
}
.ring-1 { width: 64px; height: 64px; }
.ring-2 { width: 80px; height: 80px; }
.ring-3 { width: 96px; height: 96px; }
.cta-wrap:hover .ring {
  animation: none;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .ring { animation: breathe 6s ease-out infinite; }
  .ring-2 { animation-delay: 2s; }
  .ring-3 { animation-delay: 4s; }
}
@keyframes breathe {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  70% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.3rem);
  margin-bottom: 12px;
}
.section-lead {
  font-size: 17px;
  color: var(--text-muted);
}

/* ===== Schedule ===== */
.schedule { background: var(--bg-page); }
.schedule-days-nav {
  display: none;
}
.schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(148px, 1fr));
  gap: 12px;
  min-width: 1000px;
}
.schedule-day {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.schedule-day:hover { box-shadow: var(--shadow-md); }
.day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.day-short {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--accent);
}
.day-name {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1.3;
}
.class-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.class-card {
  position: relative;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.class-card:hover {
  border-color: var(--line-strong);
  background: #fbf7f2;
}
.class-time {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--brand);
  margin-bottom: 4px;
}
.class-name {
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.class-teacher {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.class-duration {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.dayoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 8px;
  color: var(--text-muted);
}
.dayoff .ico { width: 28px; height: 28px; color: var(--line-strong); }
.dayoff p { font-size: 15px; }

/* ===== Pricing ===== */
.pricing { background: #f0eae1; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.price-card.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), #fff);
}
.price-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--brand);
}
.price-card.is-featured .price-amount { color: var(--accent); }
.price-badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-note {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== Teachers ===== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.teacher-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.teacher-photo-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  aspect-ratio: 3 / 4;
  background: var(--accent-soft);
}
.teacher-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.teacher-card:hover .teacher-photo { transform: scale(1.04); }
.teacher-name {
  font-size: 20px;
  margin-bottom: 6px;
}
.teacher-role {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.teacher-note {
  font-size: 13px;
  color: #59665f;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.contact-item .ico {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-top: 3px;
}
.contact-item h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-item p { font-size: 16px; }
.contact-phone {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.contact-phone:hover { color: var(--accent); }
.text-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-hours {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brand);
}
.contact-note { font-size: 14px; color: var(--text-muted); }

/* ===== Page hero (sub-pages) ===== */
.page-hero {
  background:
    radial-gradient(110% 80% at 50% -20%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, #f3eee6, var(--bg-page));
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: left;
}
.page-title {
  font-size: clamp(1.9rem, 4vw + 1rem, 3rem);
  margin-bottom: 16px;
}
.page-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ===== Page CTA ===== */
.page-cta {
  margin-top: 48px;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.page-cta p { font-size: 18px; color: var(--text-primary); }
.page-cta .cta-wrap { margin-top: 4px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--brand);
  color: #e9f0ec;
  padding: 56px 0 24px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 32px;
}
.footer-brand .brand-name {
  color: #fff;
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 15px;
  color: #cfe0d7;
  max-width: 320px;
}
.footer-contact p {
  font-size: 15px;
  color: #cfe0d7;
  margin-bottom: 6px;
}
.footer-phone {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  display: inline-block;
  margin: 8px 0;
}
.footer-phone:hover { color: var(--accent-soft); }
.footer-hours { color: #cfe0d7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-size: 14px;
  color: #cfe0d7;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: repeat(7, minmax(132px, 1fr)); }
}

@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; }

  .mandala { right: -220px; width: 460px; height: 460px; opacity: 0.4; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(247, 243, 237, 0.96) 0%, rgba(247, 243, 237, 0.82) 55%, rgba(247, 243, 237, 0.6) 100%);
  }

  .schedule-days-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .day-tab {
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .day-tab:hover { color: var(--text-primary); }
  .day-tab[aria-current="true"] {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
  }

  .schedule-scroll { overflow-x: visible; }
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
  }
  .schedule-day { display: flex; flex-direction: column; }
  .class-list { gap: 8px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
