/* Studio — site chrome (header, footer, language switch, mobile menu).
   Loaded by every page that uses the Studio layout, including sections that
   keep their own page CSS (activities, level test, store, portal). Tokens are
   re-declared on the chrome elements so a host page's own :root variables
   (--ink, --line, --muted …) can't leak in, and every rule is class-scoped. */

:root {
  --st-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.st-header, .st-footer, .st-chrome-tokens {
  --bg: #FAF8F5; --surface: #FFFFFF; --ink: #17171C; --muted: #5D5D66; --faint: #8A8A93;
  --line: #ECE7DF; --line-strong: #DDD6CB;
  --ws: #E8521A; --ws-soft: #FDEEE6; --ws-ink: #A8380C;
  --cl: #2D5BE3; --cl-soft: #E9EFFD; --cl-ink: #1E3FA6;
  --ct: #12936B; --ct-soft: #E2F5EE; --ct-ink: #0B6B4D;
  --sec: var(--ws); --sec-soft: var(--ws-soft); --sec-ink: var(--ws-ink);
  --shadow-sm: 0 1px 2px rgba(23,23,28,.05);
  --shadow-lg: 0 2px 4px rgba(23,23,28,.04), 0 24px 48px -18px rgba(23,23,28,.22);
  --font: var(--st-font); --wrap: 1180px; --gutter: 16px; --ease: cubic-bezier(.2,.7,.2,1);
  font-family: var(--st-font); font-size: 16px; line-height: 1.6; color: var(--ink);
  -webkit-font-smoothing: antialiased; text-align: left;
}
@media (min-width: 640px) { .st-header, .st-footer, .st-chrome-tokens { --gutter: 24px; } }
.st-footer .st-c-ws { --sec: var(--ws); --sec-soft: var(--ws-soft); --sec-ink: var(--ws-ink); }
.st-footer .st-c-cl { --sec: var(--cl); --sec-soft: var(--cl-soft); --sec-ink: var(--cl-ink); }
.st-footer .st-c-ct { --sec: var(--ct); --sec-soft: var(--ct-soft); --sec-ink: var(--ct-ink); }
.st-header *, .st-header *::before, .st-header *::after,
.st-footer *, .st-footer *::before, .st-footer *::after { box-sizing: border-box; }
.st-header :where(ul, ol, li, p, h2), .st-footer :where(ul, ol, li, p, h2) { margin: 0; padding: 0; list-style: none; }
.st-header a, .st-footer a { color: inherit; text-decoration: none; }
.st-header .st-wrap, .st-footer .st-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.st-header { max-width: none; width: auto; margin: 0; }
body.present .st-header, body.present .st-footer, body.present .site-preview-bar { display: none !important; }

/* ── HEADER ─────────────────────────────────────────────────────────── */
.st-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.st-header-in { display: flex; align-items: center; gap: 12px; height: 64px; }

.st-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.st-logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: -.02em;
  box-shadow: inset 0 -3px 0 var(--ws);
}
.st-logo-text { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.st-logo-text span { color: var(--ws); }

.st-nav { margin-left: auto; }
.st-nav ul { display: flex; align-items: center; gap: 2px; }
.st-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s;
}
.st-nav a:hover { background: rgba(23,23,28,.05); color: var(--ink); }
.st-nav a.is-active { color: var(--sec-ink); background: var(--sec-soft); }
.st-nav-workshops.is-active { --sec-ink: var(--ws-ink); --sec-soft: var(--ws-soft); }
.st-nav-classes.is-active   { --sec-ink: var(--cl-ink); --sec-soft: var(--cl-soft); }
.st-nav-contact.is-active   { --sec-ink: var(--ct-ink); --sec-soft: var(--ct-soft); }

.st-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.st-lang {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(23,23,28,.06);
}
.st-lang a {
  min-width: 38px; padding: 5px 10px; border-radius: 999px; text-align: center;
  font-size: .78rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s;
}
.st-lang a:hover { color: var(--ink); }
.st-lang a.is-current { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.st-burger {
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font: 700 .85rem var(--font); color: var(--ink); cursor: pointer;
}
.st-burger-bars, .st-burger-bars::before, .st-burger-bars::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.st-burger-bars::before, .st-burger-bars::after { content: ''; position: absolute; left: 0; }
.st-burger-bars::before { top: -5px; }
.st-burger-bars::after { top: 5px; }
.st-burger[aria-expanded="true"] .st-burger-bars { background: transparent; }
.st-burger[aria-expanded="true"] .st-burger-bars::before { transform: translateY(5px) rotate(45deg); }
.st-burger[aria-expanded="true"] .st-burger-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1099px) {
  .st-burger { display: inline-flex; }
  .st-actions { margin-left: auto; }
  .st-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 10px var(--gutter) 18px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .st-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .st-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .st-nav a { padding: 13px 14px; border-radius: 12px; font-size: 1.02rem; color: var(--ink); }
  .st-nav-workshops::before, .st-nav-classes::before, .st-nav-contact::before {
    content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: middle; position: relative; top: -1px;
  }
  .st-nav-workshops::before { background: var(--ws); }
  .st-nav-classes::before { background: var(--cl); }
  .st-nav-contact::before { background: var(--ct); }
  html.menu-open body { overflow: hidden; }
  html.no-js .st-nav { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; padding: 0; border: 0; }
  html.no-js .st-burger { display: none; }
  html.no-js .st-header-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 420px) {
  .st-logo-text { font-size: .92rem; }
  .st-burger-label { display: none; }
  .st-burger { padding: 0 12px; }
}
@media (max-width: 360px) {
  .st-logo-text { display: none; }
}


/* ── FOOTER ─────────────────────────────────────────────────────────── */
.st-footer { margin-top: auto; background: #131317; color: rgba(255,255,255,.66); padding: 44px 0 0; font-size: .92rem; }
.st-footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.st-footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.st-footer .st-logo-text { color: #fff; }
.st-footer .st-logo-mark { background: #fff; color: var(--ink); }
.st-footer-brand p { max-width: 36ch; }
.st-lang--footer { background: rgba(255,255,255,.08); }
.st-lang--footer a { color: rgba(255,255,255,.6); min-width: 0; padding: 6px 14px; }
.st-lang--footer a:hover { color: #fff; }
.st-lang--footer a.is-current { background: #fff; color: var(--ink); }
.st-footer-col h2 { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; color: #fff; }
.st-footer-col h2 a::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sec); margin-right: 8px; }
.st-footer-col ul { display: grid; gap: 8px; }
.st-footer-col a { transition: color .2s; overflow-wrap: anywhere; }
.st-footer-col a:hover { color: #fff; }
.st-footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 36px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.09);
  font-size: .8rem; color: rgba(255,255,255,.42);
}
.st-footer-bottom a:hover { color: #fff; }
.st-admin { font-size: .74rem; color: rgba(255,255,255,.3); }
@media (max-width: 479px) { .st-footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .st-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .st-footer-brand { grid-column: auto; }
}

.st-footer h2 { font-family: inherit; line-height: 1.3; }
