/* ===== Base ===== */
:root {
  --bg: #FBF8F3;
  --bg-alt: #F6F1E9;
  --card-bg: #FFFDFA;
  --border: #EFE8DC;
  --border-light: #F1EAE0;
  --border-input: #DFD5C5;
  --text: #2E2A26;
  --text-muted: #58514A;
  --text-dim: #8A7E6D;
  --text-dimmer: #9A8F7F;
  --text-dimmest: #B6AB99;
  --accent: #B4653F;
  --accent-hover: #96502F;
  --sage-bg: #EDF0E9;
  --sage-text: #5F6E57;
  --ph-1: #EDE6DA;
  --ph-2: #F6F1E9;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { margin: 0; }

input, select, button, textarea { font-family: inherit; }

::selection { background: #E4DBCB; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--accent); font-style: italic; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.eyebrow--tag { margin-bottom: 16px; }

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sage-text);
}

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin-bottom: 40px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}
.section__head .section__title { margin-bottom: 0; }

.section__desc {
  max-width: 340px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 40px;
}
.section__desc--wide { max-width: 520px; margin-top: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--text);
}
.btn--outline:hover { background: #F3EDE3; color: var(--text); }

.btn--sm { padding: 12px 20px; min-height: 44px; font-size: 13.5px; }
.btn--block { width: 100%; margin-top: auto; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: flex; align-items: baseline; gap: 9px; color: var(--text); }

.logo__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo__tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.nav { display: none; gap: 22px; align-items: center; margin-left: auto; }

.nav a { color: var(--text-muted); font-size: 14px; }
.nav a:hover { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.burger {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 10px 20px 26px;
  gap: 2px;
}

.nav-mobile a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 16px;
}
.nav-mobile a:not(.btn):last-of-type { border-bottom: none; }

.nav-mobile__cta {
  margin-top: 14px;
  text-align: center;
  border-bottom: none !important;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .burger { display: none; }
  .nav-mobile { display: none !important; }
}

/* ===== Photo placeholders ===== */
.photo-placeholder {
  position: relative;
  background-image: repeating-linear-gradient(135deg, var(--ph-1) 0 11px, var(--ph-2) 11px 22px);
  overflow: hidden;
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder--hero { aspect-ratio: 4 / 5; border-radius: 220px 220px 26px 26px; flex: 1; }
.photo-placeholder--direction { aspect-ratio: 3 / 2; border-radius: 18px; }
.photo-placeholder--portrait { aspect-ratio: 3 / 4; border-radius: 24px; }
.photo-placeholder--square { aspect-ratio: 1; border-radius: 22px; }

/* ===== Hero ===== */
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px) 0 0;
}

.hero__content { padding: 8px 0 24px; min-width: 0; }

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  margin: 26px 0 0;
}

.hero__text {
  max-width: 460px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.75;
  color: var(--text-muted);
  margin: 26px 0 0;
  text-wrap: pretty;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; }

.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-dimmer);
  margin-top: 4px;
}

.hero__visual { position: relative; padding-bottom: 24px; display: flex; }

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 18px 40px -28px rgba(46, 42, 38, 0.5);
  max-width: 220px;
}

.hero__badge-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1.2; }
.hero__badge-text { font-size: 13px; color: var(--text-dimmer); margin-top: 6px; line-height: 1.5; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 72px);
}

.about-text {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 24px 0 0;
  text-wrap: pretty;
}

.values { display: flex; flex-direction: column; gap: 16px; }

.value-card {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: 24px;
  background: var(--bg-alt);
}

.value-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--accent);
  line-height: 1.2;
  min-width: 28px;
}

.value-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; line-height: 1.2; font-weight: 400; }
.value-card p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 8px 0 0; }

/* ===== Directions ===== */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.direction-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(46, 42, 38, 0.45); }

.direction-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 27px; margin-top: 22px; line-height: 1.15; }
.direction-card p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 10px 0 22px; text-wrap: pretty; }

.direction-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.tag { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; }
.tag--sage { background: var(--sage-bg); color: var(--sage-text); }
.tag--sand { background: var(--bg-alt); color: var(--text-dim); }

/* ===== Schedule ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.schedule-day {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
}

.schedule-day__short { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--text-dimmest); }

.schedule-session { display: flex; flex-direction: column; }
.schedule-time { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.schedule-title { font-size: 14.5px; margin-top: 3px; line-height: 1.35; }
.schedule-teacher { font-size: 12.5px; color: var(--text-dimmer); margin-top: 2px; }

/* ===== Teachers ===== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.teacher-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 27px; margin-top: 18px; line-height: 1.15; }
.teacher-card__spec { font-size: 13px; color: var(--accent); margin-top: 5px; letter-spacing: 0.02em; }
.teacher-card p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 10px 0 0; text-wrap: pretty; }

/* ===== Prices ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.plan-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 26px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card--featured { border-color: var(--accent); }

.plan-card__flag {
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.plan-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 26px; line-height: 1.2; }
.plan-card__note { font-size: 13.5px; color: var(--text-dimmer); margin-top: 6px; line-height: 1.6; }
.plan-card__price { font-family: 'Cormorant Garamond', serif; font-size: 44px; margin-top: 22px; line-height: 1; }
.plan-card__per { font-size: 13px; color: var(--text-dimmer); margin-top: 4px; margin-bottom: 26px; }

.trial-banner {
  margin-top: 22px;
  border-radius: 26px;
  background: var(--sage-bg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trial-banner__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.trial-banner__text { font-size: 15px; color: var(--text-muted); margin-top: 10px; max-width: 520px; line-height: 1.7; }

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.review-card {
  margin: 0;
  padding: 32px 28px;
  border-radius: 26px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.review-card__quote { font-family: 'Cormorant Garamond', serif; font-size: 44px; color: var(--text-dimmest); line-height: 0.7; height: 20px; }
.review-card blockquote { margin: 0; font-size: 16px; line-height: 1.8; color: var(--text); text-wrap: pretty; }

.review-card figcaption { margin-top: 24px; display: flex; align-items: center; gap: 12px; }

.avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-image: repeating-linear-gradient(135deg, var(--ph-1) 0 6px, var(--ph-2) 6px 12px);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__name { display: block; font-size: 14.5px; }
.review-card__meta { display: block; font-size: 12.5px; color: var(--text-dimmer); margin-top: 2px; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.gallery-link { font-size: 14.5px; }

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-block { margin-top: 32px; }
.contact-block:first-of-type { margin-top: 0; }

.contact-block__label {
  font-size: 12.5px;
  color: var(--text-dimmer);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-block__value { font-size: 17px; margin-top: 6px; line-height: 1.6; }
.contact-block__note { color: var(--text-dim); }

.contact-phone { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--text); }
.contact-phone:hover { color: var(--accent); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.map-placeholder {
  aspect-ratio: 4 / 3;
  min-height: 320px;
  border-radius: 26px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }

.footer__inner {
  padding: 52px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer__desc { font-size: 14px; color: var(--text-dim); margin-top: 10px; line-height: 1.7; max-width: 240px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-head { font-size: 12.5px; color: var(--text-dimmer); letter-spacing: 0.06em; text-transform: uppercase; }
.footer__col a { font-size: 14.5px; color: var(--text-muted); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px 20px 40px;
  border-top: 1px solid #E7DFD2;
}
.footer__bottom span { font-size: 12.5px; color: var(--text-dimmest); }
