:root {
  --yellow: var(--accent, #ffc400);
  --yellow-soft: #ffd94a;
  --ink: #11100d;
  --cream: #f7f1e7;
  --muted: #bcb4a7;
  --glass: rgba(18, 14, 10, 0.82);
  --line: rgba(255, 255, 255, 0.16);
  --max: 1180px;
}

.draft-preview-banner {
  position: fixed;
  z-index: 1000;
  top: .8rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .55rem .9rem;
  border: 1px solid var(--yellow);
  border-radius: 99px;
  background: rgba(17, 16, 13, .94);
  color: var(--yellow);
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--cream);
  background: #0b0907;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      rgb(10 8 6 / var(--background-overlay, .78)),
      rgb(10 8 6 / var(--background-overlay, .78))
    ),
    var(--background-image, url("/grafiki/tlo/tlo-glowne.webp")) center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 5%, rgba(255, 196, 0, 0.1), transparent 36rem);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 2rem), 1240px);
  margin: 1rem auto 0;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 10, 8, .86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .25);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--yellow); font-weight: 900; text-decoration: none; letter-spacing: .05em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
nav { display: flex; justify-content: center; gap: .4rem; }
.desktop-navigation { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.mobile-navigation { display: none; }
nav a, nav button { padding: .55rem .9rem; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: inherit; text-decoration: none; font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
nav a:hover, nav a:focus-visible, nav button:hover, nav button:focus-visible { background: rgba(255, 196, 0, .14); color: var(--yellow); }
.more-menu { position: relative; }
.more-menu-list {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #100d0a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .52);
}
.more-menu-list[hidden] { display: none; }
.more-menu-list a { width: 100%; border-radius: 11px; text-align: left; white-space: nowrap; }
.header-cta { padding: .6rem 1.15rem; border-radius: 999px; background: var(--yellow); color: #171209; text-decoration: none; font-weight: 900; }
.menu-button { display: none; }
.section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 7rem 0; }
.hero { min-height: clamp(560px, calc(100svh - 90px), 820px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { max-width: 560px; }
.eyebrow { margin: 0 0 1rem; color: var(--yellow); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { max-width: 10ch; color: var(--yellow); font-size: clamp(3.5rem, 7vw, 7.4rem); letter-spacing: -.055em; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.75vw, 3.6rem); letter-spacing: -.04em; }
h3 { font-size: 1.65rem; }
.lead { max-width: 620px; margin: 2rem 0; color: #eee6da; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .75rem 1.35rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 900; }
.button.primary { border-color: var(--yellow); background: var(--yellow); color: #171209; }
.button.secondary { background: rgba(0, 0, 0, .34); color: var(--cream); }
.button:hover { transform: translateY(-2px); }
.hero-card { width: min(100%, 560px); justify-self: end; transform: rotate(1.5deg); padding: 1rem; border: 1px solid rgba(255, 196, 0, .33); border-radius: 22px; background: rgba(12, 9, 7, .74); box-shadow: 0 30px 80px rgba(0, 0, 0, .46); }
.hero-card > img { width: 100%; border-radius: 12px; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.hero-card-grid img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.section-heading { margin-bottom: 3rem; }
.section-heading.split { display: grid; grid-template-columns: 1fr minmax(250px, 420px); align-items: end; gap: 3rem; }
.section-heading.split > p { margin: 0; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.glass { border: 1px solid var(--line); border-radius: 24px; background: var(--glass); backdrop-filter: blur(10px); }
.prose { padding: clamp(1.5rem, 4vw, 3rem); color: #ddd4c8; font-size: 1.05rem; }
.prose p { margin: 0 0 1.5rem; }
.prose p:last-child { margin-bottom: 0; }
.style-list { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.style-list span { display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .42); font-weight: 800; text-transform: uppercase; }
.style-list small { color: var(--yellow); }
.lessons-heading { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.lessons-heading h2 { max-width: 18ch; font-size: clamp(1.75rem, 3.75vw, 3.15rem); }
.lesson-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.lesson-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(31, 25, 19, .94), rgba(13, 11, 9, .9));
  box-shadow: 0 16px 44px rgba(0, 0, 0, .14);
}
.lesson-section-advanced {
  border-color: rgba(255, 196, 0, .42);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 196, 0, .13), transparent 45%),
    linear-gradient(145deg, rgba(31, 25, 19, .94), rgba(13, 11, 9, .9));
}
.lesson-section summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 94px;
  padding: clamp(1.35rem, 3vw, 2rem);
  list-style: none;
}
.lesson-section summary::-webkit-details-marker { display: none; }
.lesson-section summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: -5px; border-radius: 20px; }
.lesson-section summary > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 196, 0, .42);
  border-radius: 50%;
  background: rgba(255, 196, 0, .1);
  color: var(--yellow);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.lesson-section summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.lesson-section[open] summary::after { content: "−"; }
.lesson-section summary small {
  display: block;
  margin-bottom: .35rem;
  color: var(--yellow);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lesson-section h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.18; }
.lesson-section-copy { padding: 0 clamp(1.35rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.2rem); }
.lesson-section p { max-width: 68ch; margin: 0; color: #ddd4c8; font-size: 1.02rem; line-height: 1.75; }
.payments-grid { margin-top: 1rem; }
.price-card { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 2rem 3rem; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 24px; background: linear-gradient(145deg, #ffca14, #f2b800); color: #19140b; box-shadow: 0 22px 60px rgba(0, 0, 0, .2); }
.price-card .eyebrow { color: #19140b; opacity: .72; }
.price-card-heading strong { display: block; font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.payment-points { display: grid; align-content: start; gap: .9rem; margin: 0; padding: 0; list-style: none; counter-reset: payment-point; }
.payment-points li { position: relative; padding-left: 1.9rem; line-height: 1.6; counter-increment: payment-point; }
.payment-points li::before {
  content: counter(payment-point);
  position: absolute;
  top: .1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 50%;
  font-size: .66rem;
  font-weight: 900;
}
.account { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(0, 0, 0, .18); }
.account span { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.account code { display: block; overflow-wrap: anywhere; font-size: .95rem; }
.copy-account { margin-top: .8rem; padding: .45rem .75rem; border: 1px solid rgba(0, 0, 0, .28); border-radius: 999px; cursor: pointer; background: transparent; color: inherit; font-size: .78rem; font-weight: 900; }
.video-card { margin-top: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 24px; background: var(--glass); }
.video-card video { display: block; width: 100%; max-height: 680px; border-radius: 16px; background: #000; }
.custom-section-copy { min-width: 0; padding: clamp(1.5rem, 4vw, 3rem); color: #ddd4c8; }
.custom-section { min-width: 0; overflow-x: clip; }
.custom-section-inner { width: 100%; max-width: var(--max); min-width: 0; margin-inline: auto; }
.custom-section-inner > * { min-width: 0; max-width: 100%; }
.custom-section .section-heading h2 { max-width: 100%; overflow-wrap: anywhere; }
.custom-section-text .custom-section-copy { width: 100%; max-width: 900px; margin-inline: auto; }
.custom-section-copy p { max-width: 78ch; margin: 0 0 1.35rem; overflow-wrap: anywhere; white-space: pre-line; }
.custom-section-copy p:last-of-type { margin-bottom: 0; }
.custom-section-copy .button { margin-top: 1.8rem; }
.custom-section-media-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 1rem; align-items: stretch; }
.custom-section-image { display: grid; min-height: 360px; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.custom-section-image img { width: 100%; height: 100%; object-fit: contain; }
.custom-section-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; max-width: 100%; align-items: stretch; }
.custom-section-card { min-width: 0; width: 100%; padding: clamp(1.35rem, 3vw, 2rem); }
.custom-section-card small { display: block; margin-bottom: 1.25rem; color: var(--yellow); font-weight: 900; letter-spacing: .12em; }
.custom-section-card h3 { margin-bottom: 1rem; overflow-wrap: anywhere; }
.custom-section-card p { margin: 0; color: #ddd4c8; overflow-wrap: anywhere; }
.custom-section-cta { margin-top: 1.5rem; }
.section-preview-page { min-width: 320px; }
.section-preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #100d0a;
}
.section-preview-toolbar > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.section-preview-toolbar button,
.section-preview-toolbar a {
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
}
.section-preview-toolbar button.active { border-color: var(--yellow); background: var(--yellow); color: #171209; }
.section-preview-shell { width: 100%; min-height: calc(100vh - 67px); margin: 0 auto; transition: width .2s ease; }
.section-preview-shell.is-mobile { width: min(375px, 100%); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.teacher-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); }
.teacher-photo { position: relative; width: 100%; aspect-ratio: 4 / 4.5; padding: 0; overflow: hidden; border: 0; cursor: pointer; background: #1b1712; color: white; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.teacher-photo:hover img { transform: scale(1.035); }
.teacher-photo span { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .7rem; border-radius: 999px; background: rgba(0, 0, 0, .68); font-size: .75rem; font-weight: 800; }
.teacher-summary { padding: 1.25rem; }
.teacher-summary p { margin: 0 0 .4rem; color: var(--yellow); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.teacher-summary small { display: block; margin-top: .75rem; color: var(--muted); line-height: 1.45; }
.teacher-dialog { width: min(94vw, 1100px); height: min(88vh, 780px); max-height: none; padding: 0; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 24px; background: #15110d; color: var(--cream); box-shadow: 0 32px 100px rgba(0, 0, 0, .62); }
.teacher-dialog::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(8px); }
.teacher-dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 .15rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; cursor: pointer; background: rgba(0, 0, 0, .76); color: white; font-size: 1.8rem; line-height: 1; backdrop-filter: blur(10px); }
.teacher-dialog-close:hover { border-color: var(--yellow); color: var(--yellow); }
.teacher-dialog-close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.teacher-profile { display: grid; grid-template-columns: minmax(330px, .8fr) 1.2fr; height: 100%; min-height: 0; }
.teacher-profile-media { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; isolation: isolate; background: #080706; }
.teacher-profile-backdrop { position: absolute; inset: -2rem; z-index: -1; width: calc(100% + 4rem); height: calc(100% + 4rem); object-fit: cover; filter: blur(28px) brightness(.38) saturate(.8); transform: scale(1.08); }
.teacher-profile-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(255, 196, 0, .08), transparent 55%), rgba(0, 0, 0, .2); }
.teacher-profile-image { width: 100%; height: 100%; padding: clamp(1rem, 2.5vw, 2rem); object-fit: contain; filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .45)); }
.teacher-profile-copy { min-width: 0; overflow-y: auto; padding: clamp(2.2rem, 5vw, 4rem); padding-right: clamp(4.5rem, 6vw, 5.5rem); scrollbar-color: rgba(255, 196, 0, .42) transparent; scrollbar-width: thin; }
.teacher-profile-copy h3 { margin-bottom: 2rem; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.teacher-profile-bio { color: #d8d0c4; }
.teacher-profile-bio p { margin: 0 0 1.2rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1.5rem 0 1.5rem; }
.gallery-filters button { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: rgba(0, 0, 0, .38); color: var(--cream); }
.gallery-filters button.active { border-color: var(--yellow); background: var(--yellow); color: #171209; }
.gallery-album-select { display: grid; width: min(100%, 380px); gap: .4rem; margin: -1.5rem 0 1.5rem; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.gallery-album-select select { width: 100%; padding: .8rem 2.5rem .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .58); color: var(--cream); font: inherit; font-size: .9rem; font-weight: 800; text-transform: none; letter-spacing: normal; color-scheme: dark; }
.gallery-album-select select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.gallery-item { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 14px; cursor: zoom-in; background: #17120e; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.08); }
.gallery-toggle { display: flex; margin: 2rem auto 0; }
.gallery-load-status { min-height: 1.5rem; margin: .8rem 0 0; color: var(--muted); text-align: center; }
.gallery[aria-busy="true"] { opacity: .72; }
.lightbox { width: min(94vw, 1200px); height: min(92vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #090806; color: white; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(8px); }
.lightbox figure { display: flex; height: 100%; margin: 0; align-items: center; justify-content: center; flex-direction: column; }
.lightbox figure img { max-width: 100%; max-height: calc(100% - 60px); object-fit: contain; }
.lightbox figcaption { display: flex; width: 100%; min-height: 40px; padding: .65rem 1rem; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); }
.lightbox-counter { flex: 0 0 auto; color: var(--yellow); font-size: .8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.lightbox button { position: absolute; z-index: 2; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: white; cursor: pointer; }
.lightbox button:disabled { cursor: default; opacity: .22; }
.lightbox-close { top: .8rem; right: .8rem; width: 42px; height: 42px; font-size: 1.7rem; }
.lightbox-prev, .lightbox-next { top: 50%; width: 48px; height: 48px; font-size: 2rem; }
.lightbox-prev { left: .8rem; }
.lightbox-next { right: .8rem; }
.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.contact-details > p:not(.eyebrow) { max-width: 480px; color: var(--muted); }
address { display: grid; gap: .6rem; margin: 2rem 0; font-style: normal; white-space: pre-line; }
address a { width: fit-content; color: var(--yellow); font-size: 1.25rem; font-weight: 900; text-decoration: none; }
.contact-links { display: flex; gap: 1rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 24px; background: var(--glass); }
.contact-form label { display: grid; gap: .45rem; color: #d8d0c4; font-size: .83rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.contact-form label:has(textarea), .contact-form .consent, .contact-form .button, .success { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: rgba(0, 0, 0, .34); color: white; padding: .8rem .9rem; }
input:focus, textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 196, 0, .13); }
textarea { resize: vertical; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }
.consent input { width: 18px; margin-top: .25rem; }
.success { padding: .8rem 1rem; border: 1px solid #59c986; border-radius: 10px; background: rgba(38, 142, 83, .2); }
footer { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-copyright { line-height: 1.5; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-width: 0; flex-wrap: wrap; }
/* The global header navigation styles also match every nav element. Keep the
   footer links deliberately quiet and readable instead of rendering them as
   large pill buttons on smaller screens. */
footer .footer-links a,
footer .footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-decoration: underline;
  text-transform: none;
}
footer .footer-links a:hover,
footer .footer-links a:focus-visible,
footer .footer-links button:hover,
footer .footer-links button:focus-visible { color: var(--yellow); }
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 196, 0, .5);
  border-radius: 16px;
  background: rgba(31, 24, 13, .94);
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}
.announcement-bar > div { display: grid; line-height: 1.25; }
.announcement-bar span { color: var(--yellow); font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.announcement-bar button { flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid var(--yellow); border-radius: 999px; cursor: pointer; background: var(--yellow); color: #171209; font-weight: 900; }
.announcement-dialog { width: min(94vw, 980px); max-height: min(90vh, 820px); padding: 0; overflow: hidden; border: 1px solid rgba(255, 196, 0, .35); border-radius: 24px; background: #15110d; color: var(--cream); box-shadow: 0 32px 100px rgba(0,0,0,.68); }
.announcement-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(8px); }
.announcement-dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; display: grid; width: 44px; height: 44px; padding: 0 0 .15rem; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; cursor: pointer; background: rgba(0,0,0,.78); color: white; font-size: 1.8rem; }
.announcement-dialog-close:hover, .announcement-dialog-close:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.announcement-dialog-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); max-height: min(90vh, 820px); }
.announcement-dialog-layout.without-image { grid-template-columns: 1fr; }
.announcement-dialog-media { min-height: 0; aspect-ratio: 1; align-self: center; background: white; }
.announcement-dialog-media img { width: 100%; height: 100%; object-fit: contain; background: white; }
.announcement-dialog-copy { min-width: 0; padding: clamp(2.2rem, 5vw, 4rem); padding-right: clamp(3.8rem, 6vw, 5rem); overflow-y: auto; }
.announcement-dialog-copy h2 { margin-bottom: 1.4rem; font-size: clamp(2.2rem, 5vw, 4rem); overflow-wrap: anywhere; }
.announcement-dialog-text { margin: 0 0 1.7rem; color: #ddd4c8; white-space: pre-line; }
.cookie-notice {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255,196,0,.45);
  border-radius: 18px;
  background: #f8f3ea;
  color: #211c16;
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice > div { display: grid; }
.cookie-notice p { margin: .2rem 0; color: #5e554b; font-size: .88rem; line-height: 1.45; }
.cookie-notice a { width: fit-content; color: #695100; font-size: .82rem; font-weight: 800; }
.cookie-notice button { flex: 0 0 auto; min-width: 120px; padding: .7rem 1rem; border: 0; border-radius: 999px; cursor: pointer; background: var(--yellow); color: #171209; font-weight: 900; }
.legal-page { min-height: 100vh; display: grid; place-items: start center; padding: 1rem; }
.legal-card { min-width: 0; width: min(100%, 820px); margin: clamp(1rem, 4vh, 3rem) 0; padding: clamp(1.5rem, 6vw, 4rem); overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 24px; background: var(--glass); }
.legal-card h1 { max-width: none; font-size: clamp(2.5rem, 7vw, 5rem); }
.legal-card > a:first-child { display: inline-block; margin-bottom: 2rem; color: var(--muted); }
.legal-intro { max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.legal-sections { display: grid; gap: 1.7rem; margin-top: 2.5rem; }
.legal-sections section { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal-sections h2 { margin-bottom: .75rem; color: var(--yellow); font-size: clamp(1.3rem, 3vw, 1.75rem); letter-spacing: -.02em; }
.legal-sections p { margin: 0; color: #ddd4c8; white-space: pre-line; }
.back-to-top {
  position: fixed;
  right: max(1rem, calc((100vw - var(--max)) / 2));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--footer-overlap, 0px));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 196, 0, .62);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(17, 14, 10, .9);
  color: var(--yellow);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: bottom .15s ease, opacity .2s ease, transform .2s ease, visibility .2s;
  backdrop-filter: blur(12px);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--yellow); color: #171209; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.back-to-top svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-button { display: grid; justify-self: end; gap: 4px; width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-button span:not(.sr-only) { display: block; height: 2px; background: white; }
  .site-header nav { position: absolute; top: calc(100% + .6rem); right: 0; left: 0; display: none; flex-direction: column; padding: .8rem; border: 1px solid var(--line); border-radius: 18px; background: #100d0a; }
  .site-header nav.open { display: flex; }
  .desktop-navigation { display: none; }
  .mobile-navigation { display: contents; }
  .site-header nav a { text-align: center; }
  .site-header nav button { width: 100%; text-align: center; }
  .header-cta { display: none; }
  .hero, .intro-grid, .payments-grid, .contact-section, .custom-section-media-layout { grid-template-columns: 1fr; }
  .hero-card { width: 100%; justify-self: stretch; }
  .price-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .account { grid-column: auto; }
  .hero { gap: 2.5rem; padding-top: 5rem; }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .teacher-dialog { width: min(94vw, 720px); height: min(92vh, 900px); }
  .teacher-profile { grid-template-columns: 1fr; grid-template-rows: minmax(240px, 38vh) minmax(0, 1fr); }
  .teacher-profile-copy { padding: 2rem; padding-right: 4.5rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .custom-section-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .lesson-sections { grid-template-columns: 1fr; }
  .lesson-section:not([open]) summary { min-height: 82px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  body { overflow-x: clip; }
  body::before { background-position: 58% center; }
  .section { width: calc(100% - 1.5rem); padding: 4.25rem 0; }

  .site-header {
    top: .5rem;
    width: calc(100% - 1rem);
    margin-top: .5rem;
    padding: .55rem .65rem;
    border-radius: 20px;
  }
  .brand { gap: .55rem; font-size: .82rem; }
  .brand img { width: 36px; height: 36px; }
  .brand span { display: inline; }
  .menu-button { width: 40px; height: 40px; }
  .site-header nav {
    top: calc(100% + .45rem);
    max-height: calc(100svh - 84px);
    padding: .55rem;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  }
  .site-header nav a { display: grid; min-height: 44px; place-items: center; padding: .65rem; }

  .hero {
    min-height: auto;
    gap: 2rem;
    padding-top: 3.5rem;
    padding-bottom: 4.25rem;
  }
  h1 { max-width: 9ch; font-size: clamp(2.85rem, 14.5vw, 4rem); line-height: .94; }
  h2 { font-size: clamp(1.6rem, 7.9vw, 2.25rem); line-height: 1; }
  .lead { margin: 1.35rem 0 1.6rem; font-size: 1.06rem; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: .65rem; }
  .hero-actions .button { width: 100%; }
  .hero-card { padding: .65rem; transform: none; border-radius: 18px; }
  .hero-card > img { border-radius: 9px; }
  .hero-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .45rem; }
  .hero-card-grid img { min-height: 0; border-radius: 7px; }

  .section-heading { margin-bottom: 1.8rem; }
  .section-heading.split { grid-template-columns: 1fr; gap: .8rem; }
  .section-heading.split > p { font-size: .96rem; line-height: 1.55; }
  .eyebrow { margin-bottom: .7rem; font-size: .7rem; }
  .glass { border-radius: 18px; }
  .prose { padding: 1.25rem; font-size: .98rem; line-height: 1.65; }
  .prose p { margin-bottom: 1.1rem; }
  .style-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .style-list span { min-height: 54px; gap: .5rem; padding: .7rem; border-radius: 12px; font-size: .78rem; }

  .lessons-heading { margin-bottom: 1.7rem; }
  .lessons-heading h2 { font-size: clamp(1.58rem, 7.5vw, 2.14rem); }
  .lesson-sections { gap: .65rem; }
  .lesson-section { border-radius: 18px; }
  .lesson-section summary { grid-template-columns: auto 1fr auto; gap: .7rem; min-height: 74px; padding: 1rem; }
  .lesson-section summary > span { width: 34px; height: 34px; font-size: .66rem; }
  .lesson-section summary::after { font-size: 1.3rem; }
  .lesson-section h3 { font-size: 1.18rem; line-height: 1.2; }
  .lesson-section-copy { padding: 0 1rem 1.2rem; }
  .lesson-section p { font-size: .94rem; line-height: 1.65; }

  .payments-grid { margin-top: .65rem; }
  .price-card { gap: 1.25rem; padding: 1.25rem; border-radius: 18px; }
  .price-card-heading strong { font-size: clamp(2.35rem, 11vw, 3rem); }
  .payment-points { gap: .8rem; }
  .payment-points li { padding-left: 1.7rem; font-size: .94rem; line-height: 1.55; }
  .account { padding-top: 1.2rem; }
  .account code { font-size: .82rem; letter-spacing: -.02em; }
  .video-card { padding: .4rem; border-radius: 18px; }
  .video-card video { border-radius: 13px; }
  .custom-section-copy { padding: 1.25rem; }
  .custom-section-media-layout { gap: .7rem; }
  .custom-section-image { min-height: 240px; border-radius: 18px; }
  .custom-section-cards { grid-template-columns: 1fr; gap: .65rem; }
  .custom-section-card { padding: 1.2rem; border-radius: 18px; }
  .custom-section-card small { margin-bottom: .8rem; }
  .section-preview-toolbar { align-items: flex-start; flex-direction: column; }

  .teachers { grid-template-columns: 1fr; gap: .7rem; }
  .teacher-card { display: grid; grid-template-columns: minmax(118px, 40%) minmax(0, 1fr); min-height: 178px; border-radius: 18px; }
  .teacher-photo { height: 100%; min-height: 178px; aspect-ratio: auto; }
  .teacher-photo span { right: .55rem; bottom: .55rem; padding: .35rem .55rem; font-size: .67rem; }
  .teacher-summary { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: .9rem; }
  .teacher-summary p { font-size: .62rem; line-height: 1.35; }
  .teacher-summary h3 { font-size: 1.3rem; line-height: 1.08; }
  .teacher-summary small { margin-top: .6rem; font-size: .82rem; line-height: 1.42; }
  .teacher-dialog { width: calc(100vw - 1rem); height: calc(100svh - 1rem); border-radius: 18px; }
  .teacher-dialog-close { top: .75rem; right: .75rem; width: 40px; height: 40px; }
  .teacher-profile { grid-template-rows: minmax(190px, 30vh) minmax(0, 1fr); }
  .teacher-profile-image { padding: .75rem; }
  .teacher-profile-copy { padding: 1.5rem; padding-right: 3.8rem; }
  .teacher-profile-copy h3 { margin-bottom: 1.35rem; font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .teacher-profile-bio { font-size: .94rem; line-height: 1.65; }

  .gallery-filters {
    flex-wrap: nowrap;
    margin: -.6rem -.75rem 1rem;
    padding: .6rem .75rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filters button { flex: 0 0 auto; }
  .gallery-album-select { width: 100%; margin: -.6rem 0 1rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .gallery-item { border-radius: 10px; }
  .gallery-toggle { width: 100%; margin-top: 1.25rem; }
  .lightbox { width: calc(100vw - .5rem); height: calc(100svh - .5rem); border-radius: 12px; }
  .lightbox figcaption { justify-content: space-between; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: .35rem; }
  .lightbox-next { right: .35rem; }

  .contact-section { gap: 1.7rem; }
  .contact-details > p:not(.eyebrow) { font-size: .98rem; }
  address { gap: .45rem; margin: 1.4rem 0; }
  address a { max-width: 100%; overflow-wrap: anywhere; font-size: 1.05rem; }
  .contact-links { flex-wrap: wrap; gap: .6rem 1rem; }
  .contact-form { grid-template-columns: 1fr; gap: .8rem; padding: 1.15rem; border-radius: 18px; }
  .contact-form label { grid-column: 1 / -1; }
  .contact-form textarea { min-height: 140px; }
  .contact-form .button { width: 100%; }

  footer { width: calc(100% - 2rem); align-items: flex-start; flex-direction: column; gap: .7rem; padding: 1.5rem 0 calc(2rem + env(safe-area-inset-bottom)); }
  .footer-copyright { font-size: .8rem; }
  .footer-links { width: 100%; align-items: center; justify-content: flex-start; flex-direction: row; gap: .2rem .85rem; }
  footer .footer-links a,
  footer .footer-links button { min-height: 2.75rem; white-space: nowrap; }
  .announcement-bar { width: calc(100% - 1rem); margin-top: .65rem; border-radius: 14px; }
  .announcement-bar strong { font-size: .9rem; }
  .announcement-dialog { width: calc(100vw - 1rem); max-height: calc(100svh - 1rem); border-radius: 18px; }
  .announcement-dialog-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100svh - 1rem); }
  .announcement-dialog-layout.without-image { display: block; }
  .announcement-dialog-media { min-height: 0; }
  .announcement-dialog-copy { padding: 1.5rem; padding-right: 3.8rem; }
  .announcement-dialog-copy h2 { margin-bottom: 1rem; font-size: clamp(2rem, 11vw, 3rem); }
  .cookie-notice { align-items: stretch; flex-direction: column; gap: .8rem; padding: 1rem; border-radius: 16px; }
  .cookie-notice button { width: 100%; }
  .legal-page { padding: .5rem; }
  .legal-card { margin: .5rem 0; border-radius: 18px; }
  .legal-card h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .legal-sections { gap: 1.35rem; margin-top: 2rem; }
  .back-to-top { right: 1rem; width: 48px; height: 48px; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
  .style-list { grid-template-columns: 1fr; }
  .teacher-card { grid-template-columns: 112px minmax(0, 1fr); }
  .teacher-summary small { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
:root {
