@import url("design-tokens.css");

:root {
  color-scheme: light dark;
  --cream: var(--brand-cream);
  --amber: var(--brand-amber);
  --green: var(--brand-green);
  --dark: var(--brand-dark);
  --bg: var(--cream);
  --surface: #fff8ee;
  --surface-green: #e3eee8;
  --text: var(--dark);
  --muted: #536961;
  --line: rgba(14, 49, 41, .18);
  --accent: var(--amber);
  --on-accent: var(--dark);
  --display: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --shell: min(1180px, calc(100% - 48px));
  --section-space: clamp(35px, 4.5vw, 62px);
  --radius: var(--radius-card);
  --pill: var(--radius-pill);
  --shadow: 0 22px 70px rgba(14, 49, 41, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); text-rendering: optimizeLegibility; }
body::after {
  position: fixed;
  z-index: 19;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.72'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  content: "";
  opacity: .045;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(58px, 7.2vw, 104px); }
h2 { max-width: 780px; margin-bottom: 20px; font-size: clamp(42px, 5vw, 72px); }
h3 { margin-bottom: 9px; font-size: 20px; line-height: 1.25; }
.section-shell { width: var(--shell); margin-inline: auto; }
.eyebrow { margin-bottom: 17px; color: var(--green); font-size: var(--font-caption); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: var(--cream); opacity: .8; }
.text-link, .section-more { font-weight: 650; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 5px; }
.text-link:hover, .section-more:hover { color: var(--green); }
.light-link:hover { color: var(--cream); }

.site-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; min-height: 84px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(249, 238, 223, .19); background: var(--dark); color: var(--cream); backdrop-filter: blur(18px); }
.brand img { width: 218px; height: auto; filter: brightness(0) saturate(100%) invert(91%) sepia(11%) saturate(830%) hue-rotate(335deg) brightness(109%); }
.main-nav { display: flex; justify-content: center; gap: clamp(16px, 2vw, 30px); font-size: var(--font-small); }
.main-nav a, .footer-nav a, .footer-contact a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color var(--motion-fast) ease, text-decoration-color var(--motion-fast) ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text-on-dark-accent); text-decoration-color: currentColor; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--green); text-decoration-color: currentColor; }
.menu-button { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-height); padding: 0 24px; border: 1px solid transparent; border-radius: var(--pill); cursor: pointer; font-size: var(--font-small); font-weight: 700; white-space: nowrap; transition: transform var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--amber); color: var(--on-accent); box-shadow: 0 10px 28px rgba(210, 148, 82, .24); }
.button-primary:hover { background: color-mix(in srgb, var(--amber) 88%, white); }
.button-secondary { border-color: var(--dark); color: var(--dark); }
.button-secondary:hover { background: var(--surface); }
.button-cream { background: var(--cream); color: var(--dark); }
.header-cta { min-height: var(--control-height-sm); padding-inline: 19px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr); gap: clamp(34px, 6vw, 86px); align-items: center; min-height: calc(100svh - 84px); padding-block: var(--section-space); }
.hero-lead { max-width: 530px; margin-bottom: 34px; color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.hero-visual { position: relative; min-height: 590px; overflow: hidden; border-radius: 240px 24px 24px 24px; background: var(--surface-green); box-shadow: var(--shadow); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); width: var(--shell); margin: 0 auto; border-block: 1px solid var(--line); }
.trust-strip > div { display: grid; gap: 3px; padding: 24px 30px; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip .eyebrow { margin: 0; }
.trust-strip strong { font-family: var(--display); font-size: 26px; font-weight: 600; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); gap: 46px; align-items: end; margin-bottom: 42px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading > p { color: var(--muted); }
.schedule-section, .practices, .first-visit, .prices-preview, .location, .faq { padding-block: var(--section-space); }
.schedule-heading { align-items: center; }
.schedule-section .schedule-heading { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.schedule-section .day-switch { justify-self: center; }
.day-switch { display: inline-flex; justify-self: end; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); }
.day-button { padding: 10px 16px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 650; }
.day-button span { opacity: .7; }
.day-button.is-active { background: var(--dark); color: var(--cream); }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.schedule-list { min-height: 300px; border-top: 1px solid var(--line); }
.class-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 25px; align-items: center; min-height: 110px; padding: 22px 5px; border-bottom: 1px solid var(--line); }
.class-time strong { display: block; font-family: var(--display); font-size: 32px; line-height: 1; }
.class-time span { color: var(--muted); font-size: var(--font-caption); }
.class-name h3 { margin-bottom: 6px; font-weight: 600; }
.class-name p { margin: 0; color: var(--muted); font-size: var(--font-small); }
.class-space { display: block; margin-top: 7px; color: var(--green); font-size: var(--font-caption); }
.class-space.is-full { color: #9b5538; }
.schedule-note { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 330px; padding: var(--space-6); border-radius: var(--radius); background: var(--green); color: var(--cream); }
.schedule-note h3 { max-width: 260px; font: 500 34px/1 var(--display); }
.schedule-note > p:not(.eyebrow) { opacity: .82; }
.schedule-note .light-link { margin-top: auto; }
.pattern-panel { position: relative; overflow: hidden; background: var(--green); }
.pattern-panel::before { position: absolute; inset: 0; background: url("assets/back.svg") center/cover; content: ""; opacity: .16; pointer-events: none; mix-blend-mode: soft-light; }
.pattern-panel > * { position: relative; }
.schedule-status { display: grid; place-items: center; min-height: 290px; padding: 40px; text-align: center; color: var(--muted); }
.schedule-status p { max-width: 470px; margin: 14px 0 0; }
.loader { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.schedule-error { color: #8b3f2f; }
.section-more { display: inline-flex; gap: 10px; margin-top: 28px; }

.practice-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, minmax(220px, auto)); gap: var(--space-4); }
.practice-feature { position: relative; grid-row: 1 / 3; min-height: 560px; overflow: hidden; border-radius: var(--radius); }
.practice-feature::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(14,49,41,.88)); content: ""; }
.practice-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.practice-feature > div { position: absolute; z-index: 1; right: 32px; bottom: 28px; left: 32px; color: var(--cream); }
.practice-feature h3 { max-width: 540px; font: 500 clamp(32px, 3vw, 48px)/1 var(--display); }
.practice-feature p { margin: 0; }
.practice-item { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.practice-item h3 { max-width: 350px; font: 500 32px/1 var(--display); }
.practice-item p { max-width: 400px; margin-bottom: 0; color: var(--muted); }
.practice-tinted { background: var(--surface-green); }
.practices .section-heading { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.practice-button { grid-column: 1 / -1; justify-self: center; margin-top: 16px; }

.first-visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 9vw, 130px); align-items: start; }
.visit-intro { position: sticky; top: 125px; }
.visit-intro > p:not(.eyebrow) { max-width: 480px; color: var(--muted); }
.visit-steps { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.visit-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.visit-steps > li > span { color: var(--green); font-size: var(--font-caption); font-weight: 700; }
.visit-steps h3 { font: 500 30px/1 var(--display); }
.visit-steps p { margin: 0; color: var(--muted); }

.prices-preview { display: grid; grid-template-columns: .9fr 1.1fr; }
.price-lead { min-height: 570px; padding: 55px; border-radius: var(--radius) 0 0 var(--radius); background: var(--green); color: var(--cream); }
.price-lead h2 { margin-bottom: 12px; font-size: clamp(72px, 9vw, 118px); }
.price-lead > p:not(.eyebrow) { max-width: 380px; margin-bottom: 30px; }
.price-summary { padding: 55px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.summary-row strong { white-space: nowrap; }

.location { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(38px, 7vw, 90px); align-items: center; }
.location-visual { position: relative; min-height: 500px; overflow: hidden; border-radius: 24px 180px 24px 24px; box-shadow: var(--shadow); }
.location-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location-copy > p:not(.eyebrow) { max-width: 490px; color: var(--muted); }
.location-actions { display: flex; align-items: center; gap: var(--space-5); margin-top: 30px; }
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 23px 45px 23px 0; cursor: pointer; font: 500 24px/1.2 var(--display); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: 5px; content: "+"; color: var(--green); font: 400 26px/1 var(--body); }
details[open] summary::after { content: "−"; }
details p { max-width: 620px; margin-bottom: 25px; color: var(--muted); }

.site-footer { margin-top: 0; padding: 64px max(24px, calc((100vw - 1180px) / 2)) 36px; background: var(--dark); color: var(--cream); }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: 70px; align-items: start; }
.footer-logo img { width: 230px; filter: brightness(0) saturate(100%) invert(91%) sepia(11%) saturate(830%) hue-rotate(335deg) brightness(109%); }
.footer-nav, .footer-contact { display: grid; gap: 10px; font-size: var(--font-small); }

.footer-legal { display: flex; justify-content: space-between; gap: 30px; align-items: end; border-top: 1px solid rgba(249,238,223,.18); padding-top: 25px; font-size: var(--font-caption); opacity: .75; }
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: underline; text-underline-offset: 4px; }
.mobile-bar { display: none; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 145px) var(--section-space); border-bottom: 0; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { max-width: 890px; }
.page-hero p:not(.eyebrow) { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 19px; }
.content-section { padding-block: var(--section-space); }
.content-section + .content-section { padding-top: var(--section-space); }
.wide-schedule .schedule-layout { grid-template-columns: 1fr; }
.wide-schedule .schedule-list { min-height: 0; border-top: 0; }
.wide-schedule .class-row:last-child { border-bottom: 0; }
.schedule-page-heading { grid-template-columns: 1fr; justify-items: center; }
.schedule-page-heading .day-switch { justify-self: center; max-width: 100%; overflow-x: auto; }
.schedule-page-heading .day-button { flex: 0 0 auto; white-space: nowrap; }
.schedule-all { display: flex; justify-content: center; margin-top: 38px; }
.page-schedule .page-hero, .page-prices .page-hero { padding-bottom: var(--section-space); border-bottom: 0; }
.page-schedule .page-hero h1, .page-prices .page-hero h1 { margin-bottom: 12px; }
.page-schedule .page-hero + .content-section, .page-prices .page-hero + .content-section { padding-top: var(--section-space); }
.info-note { margin-top: 30px; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--surface-green); color: var(--muted); }

.class-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--space-4); }
.class-card { display: flex; flex-direction: column; min-height: 360px; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.class-card h2 { margin-bottom: 13px; font-size: 36px; font-weight: 600; }
.class-card p:not(.eyebrow) { max-width: 520px; color: var(--muted); }
.class-icon { display: block; width: 54px; height: 54px; margin-bottom: 24px; background: var(--green); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.page-classes .page-hero, .page-contacts .page-hero { border-bottom: 0; }

.price-group { margin-bottom: var(--section-space); }
.price-group-head { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: end; margin-bottom: 32px; }
.price-group-head p { color: var(--muted); }
.page-prices .price-group-head { grid-template-columns: 1fr; }
.page-prices .price-group-head h2 { margin-bottom: 0; }
.price-table { border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 30px; align-items: center; padding: 25px 4px; border-bottom: 1px solid var(--line); }
.price-row h3, .price-row p { margin: 0; }
.price-row p { color: var(--muted); font-size: var(--font-small); }
.price-row strong { font: 600 25px/1 var(--display); text-align: right; }
.price-highlight { padding: var(--space-6); border-radius: var(--radius); background: var(--dark); color: var(--cream); }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.team-card { display: grid; grid-template-columns: 170px 1fr; gap: var(--space-5); min-height: 280px; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.team-portrait { display: grid; place-items: end start; min-height: 220px; padding: 18px; border-radius: 90px 18px 18px 18px; background: var(--surface-green) url("assets/back.svg") center/cover; color: var(--dark); font: 500 72px/1 var(--display); }
.team-portrait-photo { overflow: hidden; padding: 0; background: var(--surface-green); }
.team-portrait-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center; }
.team-card h2 { font-size: 37px; }
.team-card p { color: var(--muted); }
.team-card .tags { margin-top: auto; color: var(--green); font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.contact-card { min-height: 220px; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
.contact-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 55%, var(--line)); box-shadow: 0 18px 42px rgba(14, 49, 41, .12); }
.contact-card h2 { margin-bottom: 14px; font-size: 38px; }
.contact-card > a { display: inline-block; margin-top: 22px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --surface: #173f35;
  --surface-green: #255747;
  --text: var(--cream);
  --muted: #c4d2cb;
  --line: rgba(249, 238, 223, .19);
  color: var(--text);
  background: linear-gradient(112deg, #071f19 0%, #0b2a22 22%, #0E3129 46%, #174739 70%, #225846 100%);
}
main::before,
main::after { position: absolute; z-index: 0; content: ""; pointer-events: none; }
main::before { inset: -24% -18% 18% 28%; background: radial-gradient(ellipse at 82% 12%, rgba(249, 238, 223, .22) 0%, rgba(62, 131, 108, .72) 28%, rgba(62, 131, 108, .28) 48%, transparent 72%); filter: blur(72px); }
main::after { inset: 38% -20% -28% 22%; background: radial-gradient(ellipse at 68% 62%, rgba(210, 148, 82, .2) 0%, rgba(62, 131, 108, .18) 34%, transparent 68%); filter: blur(92px); }
main > * { position: relative; z-index: 1; }
.page-contacts .page-hero {
  padding-bottom: var(--section-space);
  background: transparent;
  color: var(--cream);
}
.page-contacts .content-section { padding-block: var(--section-space); }
.address-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; margin-bottom: 18px; border-color: transparent; background: #3E836C; color: var(--cream); }
.address-card h2 { max-width: 720px; }
.address-card p { color: var(--cream); opacity: .82; }
.address-card > a { display: inline-flex; justify-self: end; margin-top: 0; text-decoration: none; }
.address-card > a:hover { background: color-mix(in srgb, var(--amber) 88%, white); box-shadow: 0 14px 32px rgba(14, 49, 41, .22); }




.offer-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 80px; align-items: start; }
.offer-aside { position: sticky; top: 120px; padding: 22px; border-radius: var(--radius-sm); background: var(--surface-green); font-size: 13px; }
.offer-aside p { margin: 0; }
.legal-copy { font-family: var(--body); font-size: 15px; line-height: 1.68; }
.legal-copy h2 { margin: 50px 0 18px; font: 650 24px/1.25 var(--body); letter-spacing: 0; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin-bottom: 18px; }
.legal-copy .requisites { margin-top: 50px; padding: var(--space-6); border-radius: var(--radius); background: var(--surface-green); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #0E3129; --surface: #173f35; --surface-green: #255747; --text: #F9EEDF; --muted: #c4d2cb; --line: rgba(249,238,223,.19); --on-accent: #0E3129; --shadow: 0 22px 70px rgba(0,0,0,.25); }
  .brand img, .footer-logo img { filter: brightness(0) saturate(100%) invert(91%) sepia(11%) saturate(830%) hue-rotate(335deg) brightness(109%); }
  .button-secondary { border-color: var(--cream); color: var(--cream); }
  .day-button.is-active { background: var(--cream); color: var(--dark); }
  .price-highlight { background: var(--green); }
  .team-portrait { color: var(--cream); }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 190px 1fr auto; }
  .brand img { width: 185px; }
  .main-nav { gap: 15px; }
  .main-nav a:nth-child(4) { display: none; }
  .hero { grid-template-columns: 1fr 410px; }
  .hero-visual { min-height: 520px; }
  .schedule-layout { grid-template-columns: 1fr 285px; }
  .team-card { grid-template-columns: 120px 1fr; }
}

@media (max-width: 800px) {
  :root { --shell: min(100% - 32px, 680px); --bg: var(--dark); --surface: #173f35; --surface-green: #255747; --text: var(--cream); --muted: #c4d2cb; --line: rgba(249,238,223,.19); }
  body { padding-bottom: 65px; }
  .brand img { filter: brightness(0) saturate(100%) invert(91%) sepia(11%) saturate(830%) hue-rotate(335deg) brightness(109%); }
  .site-header { grid-template-columns: 1fr auto; min-height: 74px; padding: 10px 16px; }
  .brand img { width: 178px; }
  .header-cta { display: none; }
  .menu-button { position: relative; z-index: 2; display: grid; width: 48px; height: 44px; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; color: var(--text); cursor: pointer; }
  .menu-button span { display: block; width: 18px; height: 1px; background: currentColor; }
  .menu-button b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .main-nav { position: fixed; inset: 0; display: none; width: 100vw; min-height: 100dvh; flex-direction: column; justify-content: flex-start; gap: var(--space-5); overflow-y: auto; padding: 100px 35px; background: var(--dark); color: var(--cream); font: 500 39px/1 var(--display); }
  .main-nav.is-open { display: flex; }
  body.menu-open .mobile-bar { display: none; }
  .main-nav a:nth-child(4) { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 64px 32px; }
  .hero-copy { order: 0; }
  .hero-visual { order: 1; height: 480px; min-height: 0; border-radius: 160px 20px 20px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { padding-inline: 5px; }
  .trust-strip > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .day-switch { justify-self: start; }
  .schedule-layout { grid-template-columns: 1fr; }
  .class-row { grid-template-columns: 72px minmax(0, 1fr); }
  .class-row .button { grid-column: 2; justify-self: start; }
  .schedule-note { min-height: 300px; }
  .practice-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .practice-feature { grid-row: auto; min-height: 500px; }
  .first-visit, .prices-preview, .location, .faq { grid-template-columns: 1fr; }
  .visit-intro { position: static; }
  .price-lead { min-height: 450px; border-radius: var(--radius) var(--radius) 0 0; }
  .price-summary { border-top: 0; border-left: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .location-visual { min-height: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-logo { grid-column: 1 / -1; }
  .mobile-bar { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1.35fr; min-height: 64px; background: var(--dark); color: var(--cream); }
  .mobile-bar a { display: grid; place-items: center; font-size: 13px; font-weight: 700; }
  .mobile-bar a:last-child { margin: 7px; border-radius: var(--pill); background: var(--amber); color: var(--on-accent); }
  .button-secondary { border-color: var(--cream); color: var(--cream); }
  .day-button.is-active { background: var(--cream); color: var(--dark); }
  .class-catalog { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .class-card { min-height: 300px; }
  .price-group-head { grid-template-columns: 1fr; }
  .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .address-card { grid-template-columns: 1fr; }
  .address-card > a { justify-self: start; }

  .offer-layout { grid-template-columns: 1fr; gap: 35px; }
  .offer-aside { position: static; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(46px, 13vw, 58px); }
  .page-hero h1 { font-size: clamp(38px, 11vw, 48px); }
  h2 { font-size: clamp(39px, 12vw, 56px); }
  .hero-actions, .location-actions { align-items: flex-start; flex-direction: column; gap: var(--space-4); }
  .hero-visual { height: 410px; }
  .schedule-section, .practices, .first-visit, .location, .faq { padding-block: var(--section-space); }
  .day-switch { width: 100%; }
  .day-button { flex: 1; }
  .class-row { grid-template-columns: 62px minmax(0, 1fr); gap: 15px; padding-block: 20px; }
  .class-time strong { font-size: 27px; }
  .practice-feature { min-height: 430px; }
  .practice-feature > div { inset-inline: 22px; bottom: 22px; }
  .price-lead, .price-summary { padding: 34px 25px; }
  .location-visual { min-height: 360px; border-radius: 20px 120px 20px 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-logo { grid-column: auto; }
  .footer-legal { align-items: flex-start; flex-direction: column; }
  .class-card { min-height: 245px; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 15px; }
  .team-card { grid-template-columns: 1fr; }
  .team-portrait { min-height: 170px; border-radius: 20px 90px 20px 20px; }
  .team-portrait-photo img { min-height: 170px; aspect-ratio: 4 / 3; }
  .contact-card { min-height: 190px; }

  .page-home { --section-space: 70px; }
  .page-home .hero-actions,
  .page-home .practice-button,
  .page-home .visit-intro > .button { display: none; }
  .page-home .class-row { align-items: start; }
  .page-home .class-time { padding-top: 2px; }
  .page-home .class-time strong { font-size: 22px; }
  .page-home .location-visual { display: none; }
  .page-home .location-copy h2 { font-size: 32px; line-height: 1.04; }
  .page-home .location-actions { align-items: center; flex-direction: row; gap: 16px; }
  .page-home .location-actions .button { min-height: 46px; padding-inline: 18px; }
  .page-home .faq { gap: 35px; }
  .page-prices { --section-space: 70px; }
  .page-schedule { padding-bottom: 0; }
  .page-schedule .mobile-bar { display: none; }
}

/* Shared component states and responsive safeguards. */
main { --semantic-accent: var(--text-on-dark-accent); --semantic-danger: var(--text-on-dark-danger); }
main .eyebrow, main .class-space, main .team-card .tags,
main .visit-steps > li > span, main summary::after { color: var(--semantic-accent); }
main .eyebrow-light { color: var(--cream); }
main .schedule-error, main .class-space.is-full { color: var(--semantic-danger); }
main .button-secondary { color: var(--cream); border-color: var(--cream); }
main .day-button.is-active { background: var(--cream); color: var(--dark); }
main .text-link:hover, main .section-more:hover { color: var(--semantic-accent); }
.class-icon { background-color: var(--semantic-accent); }
.class-card h2, .team-card h2, .contact-card h2,
.practice-item h3, .schedule-note h3 { font-size: var(--font-card-title); }
.button { white-space: normal; text-align: center; padding-block: var(--space-2); }
.day-button { min-height: var(--control-height-sm); }
.button:disabled, .day-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.day-switch { max-width: 100%; overflow-x: auto; }
.day-button { flex-shrink: 0; }
h1, h2, h3, p, .text-link { overflow-wrap: anywhere; }
.hero > *, .team-card > *, .section-heading > *, .contact-card > * { min-width: 0; }
.site-header { backdrop-filter: none; }
.main-nav.is-open { overscroll-behavior: contain; }
@media (min-width: 801px) and (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (min-width: 801px) and (max-width: 980px) {
  .site-header { grid-template-columns: 150px 1fr auto; padding-inline: var(--space-4); }
  .brand img { width: 145px; }
  .main-nav { gap: var(--space-3); font-size: var(--font-caption); }
  .main-nav a:nth-child(4) { display: block; }
  .header-cta { padding-inline: var(--space-3); }
}
@media (max-width: 800px) {
  body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .mobile-bar { padding-bottom: env(safe-area-inset-bottom); }
  .main-nav a { min-height: var(--control-height-sm); }
}
@media (max-width: 560px) {
  .page-schedule { padding-bottom: 0; }
  .visit-steps li { grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4); }
}

/* Compact introductions on inner pages only. */
.date-navigation { width: 100%; min-width: 0; display: flex; justify-content: center; }
.date-scroll-button { display: none; }
@media (min-width: 801px) {
  .page-hero { padding-top: clamp(40px, 5vw, 72.5px); }
  main .page-hero.page-hero { padding-bottom: calc(var(--section-space) / 2); }
  main .page-hero.page-hero + .content-section { padding-top: calc(var(--section-space) / 2); }
  .page-hero h1 { margin-bottom: 12px; }
  .page-hero .eyebrow { margin-bottom: calc((17px - var(--font-caption) * 1.55) / 2); }
  .page-schedule .page-hero h1, .page-prices .page-hero h1 { margin-bottom: 6px; }
  body:not(.page-home) .section-heading { margin-bottom: 21px; gap: 23px; }
  .price-group-head { margin-bottom: 16px; }
}
/* Time and class title share typography and the top of their grid row. */
.class-row { align-items: start; }
.class-row .class-time { padding-top: 0; }
.class-row .class-time strong,
.class-row .class-name h3 { font: 600 20px/1.25 var(--body); }
@media (max-width: 800px) {
  .date-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
  .date-navigation .day-switch { width: 100%; min-width: 0; }
  .date-scroll-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--cream); cursor: pointer; font-size: 22px; }
  .date-scroll-button:disabled { opacity: .3; cursor: default; }
}
