:root {
  --bg: #f7f2ea;
  --surface: #fffdfa;
  --surface-strong: #132133;
  --text: #1f2a38;
  --muted: #5b6777;
  --line: rgba(19, 33, 51, 0.12);
  --accent: #b88646;
  --accent-dark: #8f6530;
  --accent-soft: rgba(184, 134, 70, 0.12);
  --radius: 24px;
  --shadow: 0 20px 60px rgba(19, 33, 51, 0.08);
  --container: min(1180px, calc(100% - 32px));
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 134, 70, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
img { max-width: 100%; display: block; }
.container { width: var(--container); margin: 0 auto; }
.site-main { overflow: clip; }
.page-section { padding: 88px 0; }
.page-section + .page-section { padding-top: 0; }
.page-section--soft { background: rgba(255,255,255,0.55); }
.page-section--accent { background: linear-gradient(135deg, #132133 0%, #1c3148 100%); color: #f8f4ef; }
.page-hero { padding: 120px 0 48px; }
.page-hero--visual { padding-bottom: 72px; }
.page-hero__grid,
.hero__grid,
.split-banner,
.form-panel__inner,
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; align-items: center; }
.section-heading { max-width: 720px; margin-bottom: 32px; }
.section-heading + .card-grid,
.section-heading + .stats-grid,
.section-heading + .steps-list,
.section-heading + .faq-list { margin-top: 28px; }
.section-heading h2,
.hero h1,
.page-hero h1,
.site-footer h2 { margin: 0 0 16px; font-family: "Cormorant Garamond", serif; line-height: 0.95; letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(3.3rem, 8vw, 6rem); }
.page-hero h1,
.section-heading h2,
.site-footer h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-heading p,
.hero p,
.page-hero p { color: var(--muted); font-size: 1.05rem; }
.section-heading p { max-width: 42rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--accent); font-weight: 800; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: 180ms ease;
  box-shadow: 0 12px 28px rgba(184, 134, 70, 0.18);
}
.button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.page-section--accent .button--ghost { color: #fff; border-color: rgba(255,255,255,0.2); }
.button--small { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.hero { padding: 152px 0 96px; }
.hero__grid { align-items: stretch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__content { display: flex; flex-direction: column; justify-content: center; }
.hero__microcopy {
  margin-top: 20px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.hero__media {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  gap: 18px;
}
.hero__frame-caption {
  max-width: 18rem;
}
.hero-lead-card {
  background: rgba(255, 253, 250, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-lead-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(184, 134, 70, 0.18), transparent 70%);
}
.hero-lead-card h2 {
  margin: 8px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}
.hero-lead-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.hero-lead-card__list li {
  position: relative;
  padding-left: 20px;
}
.hero-lead-card__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.65em;
}
.hero-lead-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-lead-card__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero__trust,
.meta-list,
.steps-list,
.footer-menu,
.site-nav__menu,
.mobile-menu__list { list-style: none; padding: 0; margin: 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__trust li,
.price-tag { font-weight: 800; }
.hero__trust li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(19, 33, 51, 0.08);
}
.hero__frame,
.media-panel,
.card-media,
.card,
.split-banner,
.form-panel,
.site-header,
.mobile-menu,
.map-panel iframe { border-radius: var(--radius); }
.hero__frame,
.media-panel,
.card-media {
  min-height: 460px;
  background:
    linear-gradient(160deg, rgba(184, 134, 70, 0.14), rgba(19, 33, 51, 0.9)),
    linear-gradient(45deg, rgba(255,255,255,0.08), transparent);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.card-media {
  min-height: 220px;
  margin: -28px -28px 20px;
  border-radius: 24px 24px 0 0;
}
.card-media--portrait {
  min-height: 320px;
}
.card-media--review {
  min-height: 180px;
}
.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: var(--container);
  margin: 12px auto 0;
  background: rgba(255,253,250,0.86);
  border: 1px solid rgba(19,33,51,0.08);
  backdrop-filter: blur(16px);
}
.site-header__inner,
.site-footer__grid,
.lead-form__grid,
.stats-grid,
.card-grid { display: grid; gap: 20px; }
.site-header__inner { grid-template-columns: auto 1fr auto; align-items: center; padding: 14px 18px; }
.site-branding__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-branding__mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d7b27d);
  color: #fff; display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; font-weight: 700;
}
.site-branding__text { display: grid; }
.site-branding__text small { color: var(--muted); }
.site-nav__menu { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.site-header__contacts { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; }
.site-header__legal {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(184, 134, 70, 0.14);
  text-decoration: none;
}
.site-header__toggle { display: none; }
.card-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card-grid--benefits,
.card-grid--courses,
.card-grid--teachers,
.card-grid--pricing { align-items: stretch; }
.card,
.split-banner,
.form-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; }
.card--benefit {
  background: linear-gradient(180deg, #fffdfa 0%, #fff6eb 100%);
}
.card h3, .card h2 { margin-top: 0; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 12px; }
.course-card,
.teacher-card,
.review-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.course-card:hover,
.teacher-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(19, 33, 51, 0.12);
  border-color: rgba(184, 134, 70, 0.3);
}
.course-card .eyebrow,
.teacher-card .eyebrow {
  margin-bottom: 8px;
}
.course-card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.teacher-card__text {
  min-height: 4.8em;
}
.teacher-card__link a,
.card__footer a {
  font-weight: 800;
  text-decoration: none;
}
.card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3.6rem); font-family: "Cormorant Garamond", serif; }
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.proof-strip span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.steps-list { counter-reset: steps; display: grid; gap: 12px; }
.steps-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.steps-list li::before {
  counter-increment: steps;
  content: counter(steps);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.process-cta,
.pricing-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.pricing-cta {
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfa 0%, #faf3e8 100%);
}
.pricing-cta p {
  max-width: 40rem;
  margin: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.media-panel--gallery { min-height: 240px; }
.lead-form__honeypot { position: absolute; left: -9999px; }
.lead-form__grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 16px; }
.lead-form__full { grid-column: 1 / -1; }
label span { display: block; margin-bottom: 8px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
input::placeholder,
textarea::placeholder {
  color: #8b95a4;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(184, 134, 70, 0.6);
  box-shadow: 0 0 0 4px rgba(184, 134, 70, 0.12);
  background: #fffdfa;
}
.form-message { margin: 16px 0 0; font-weight: 700; }
.form-message--success { color: #24724d; }
.form-message--error { color: #9f2c2c; }
.lead-form__note { color: var(--muted); font-size: 0.92rem; }
.lead-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.lead-form__support {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose--invert,
.page-section--accent .section-heading p,
.page-section--accent .prose,
.page-section--accent p { color: rgba(248, 244, 239, 0.9); }
.meta-list { display: grid; gap: 12px; }
.meta-list li {
  padding-left: 18px;
  position: relative;
}
.meta-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.7em;
}
.section-link { margin-top: 20px; font-weight: 700; }
.split-banner--compact { grid-template-columns: 1fr auto; }
.split-banner--promo {
  background: linear-gradient(135deg, #fffdfa 0%, #f4ede2 100%);
}
.promo-action { display: flex; align-items: center; justify-content: flex-end; }
.map-panel iframe { width: 100%; min-height: 420px; border: 0; }
.contacts-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}
.contacts-legal {
  margin-top: 18px;
  font-size: 0.94rem;
}
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 40;
  display: none;
  pointer-events: none;
}
.mobile-sticky-cta__inner {
  width: min(100% - 20px, 520px);
  margin: 0 auto;
  background: rgba(19, 33, 51, 0.94);
  color: #fff;
  border-radius: 999px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 18px 50px rgba(19, 33, 51, 0.28);
  pointer-events: auto;
}
.mobile-sticky-cta__button {
  width: 100%;
}
.mobile-sticky-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.site-footer { padding: 72px 0 36px; background: #101c2d; color: #f3ede6; }
.site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; padding-bottom: 24px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }
.footer-menu { display: grid; gap: 8px; }
.mobile-menu { display: none; }
.mobile-menu__legal {
  margin: 0 0 16px;
  padding-top: 18px;
}
.mobile-menu__legal a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(184, 134, 70, 0.14);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .site-nav, .site-header__contacts { display: none; }
  .hero__media { grid-template-rows: auto auto; }
  .site-header__toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 16px;
    border-radius: 999px;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu.is-open { display: block; padding: 0 0 18px; }
  .mobile-menu__list { display: grid; gap: 12px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .hero,
  .page-section,
  .page-hero { padding: 72px 0; }
  .hero__grid,
  .page-hero__grid,
  .split-banner,
  .form-panel__inner,
  .section-grid,
  .split-banner--compact,
  .site-footer__grid,
  .lead-form__grid,
  .stats-grid,
  .card-grid { grid-template-columns: 1fr; }
  .site-header { top: 0; width: 100%; margin-top: 0; border-radius: 0; }
  .container { width: min(100% - 24px, 1180px); }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .hero__frame, .media-panel { min-height: 300px; }
  .hero-lead-card,
  .process-cta,
  .pricing-cta,
  .contacts-cta { align-items: stretch; }
  .lead-form__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .lead-form__support {
    text-align: center;
  }
  .card-media { min-height: 200px; }
  .card-media--portrait { min-height: 260px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .promo-action { justify-content: flex-start; }
  .mobile-sticky-cta { display: block; }
  .form-panel { margin-bottom: 84px; }
}
