/* ==========================================================
   РозумничОК · багатосторінковий сайт
   Дружня «наліпкова» естетика: контури, м'які кольори, жорсткі тіні.
   Анімацій мінімум; «Спокійний режим» і prefers-reduced-motion їх вимикають.
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #fff8ec;
  --paper: #ffffff;
  --ink: #1f2a44;
  --muted: #4a5573;

  --sun: #ffc531;
  --sky: #58c0ff;
  --coral: #ff7a6b;
  --coral-d: #d9473a;
  --leaf: #38c690;
  --grape: #b39bff;
  --pink: #ff9fcb;

  --sun-soft: #fff1c4;
  --sky-soft: #e2f4ff;
  --coral-soft: #ffe4df;
  --leaf-soft: #dbf6ea;
  --grape-soft: #eee7ff;
  --pink-soft: #ffe6f1;

  --bd: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 24px;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --header-h: 4.5rem;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C180 0 360 60 540 30S900 0 1080 30 1260 60 1440 30V60H0Z'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a44' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
html[data-size="1"] { font-size: 112.5%; }
html[data-size="2"] { font-size: 125%; }

body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 600;
  color: var(--ink); background: var(--bg); overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral-d); outline-offset: 3px; border-radius: 8px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: fixed; left: 1rem; top: -5rem; z-index: 300; padding: 0.7rem 1.1rem;
  border: var(--bd); border-radius: 14px; background: var(--sun); font-weight: 900; transition: top 0.2s;
}
.skip:focus { top: 1rem; }

/* Draft values from content/*.json ("??") */
mark.draft {
  color: inherit; background: #fff3a6; border-radius: 4px; padding: 0 0.2em;
  outline: 2px dashed #d99a00; outline-offset: 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.badge-draft {
  display: inline-block; align-self: flex-start; margin-bottom: 0.6rem; padding: 0.1rem 0.6rem; border: 2px dashed #d99a00;
  border-radius: 999px; background: #fff3a6; font-size: 0.78rem; font-weight: 800; color: #6b4b00;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: 0.2rem 0.95rem;
  border: var(--bd); border-radius: 999px; background: var(--sun); box-shadow: 2px 2px 0 var(--ink);
  font-weight: 900; font-size: 0.88rem; rotate: -1.5deg;
}
.eyebrow--white { background: var(--paper); }

.section__head { max-width: 44rem; margin-bottom: 2.75rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-weight: 900; font-size: clamp(1.8rem, 3vw + 0.8rem, 2.8rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.section__sub { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.hl { background: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 92%, transparent 92%); padding-inline: 0.05em; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.list-title { margin-bottom: 1.2rem; font-weight: 900; font-size: 1.3rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--wc); --wc: var(--bg); }
.section--tight { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.section--sky { --wc: var(--sky-soft); }
.section--sun { --wc: var(--sun-soft); }
.section--pink { --wc: var(--pink-soft); }
/* Wavy top edge only where the colour changes */
.section--sky, .section--sun, .section--pink,
.section--sky + .section, .section--sun + .section, .section--pink + .section, .phero + .section,
.section--sky + .signup, .section--sun + .signup, .section--pink + .signup { --wave-on: 1; }
.section::before, .signup::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2.4rem; height: 2.5rem; pointer-events: none;
  background: var(--wc); opacity: var(--wave-on, 0);
  -webkit-mask: var(--wave) repeat-x 0 100% / 1440px 100%; mask: var(--wave) repeat-x 0 100% / 1440px 100%;
}
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.4rem; border: var(--bd); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-weight: 900; line-height: 1.2; text-align: center; cursor: pointer; color: var(--ink); background: var(--paper);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--small { padding: 0.42rem 1rem; font-size: 0.95rem; box-shadow: 2px 2px 0 var(--ink); }
.btn--lg { padding: 0.92rem 1.7rem; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--sun { background: var(--sun); }
.btn--coral { background: var(--coral); }
.btn--white { background: var(--paper); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 2.5px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.header.is-stuck { border-bottom-color: var(--ink); }
.header__in { display: flex; align-items: center; gap: 0.9rem; height: var(--header-h); }

.logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 900; font-size: 1.32rem; letter-spacing: -0.01em; flex: none; }
.logo__mark { width: 2.5rem; height: 2.5rem; transition: rotate 0.4s var(--spring); }
.logo:hover .logo__mark { rotate: -10deg; }
.logo b { color: var(--coral-d); font-weight: 900; }
.logo--light { color: var(--bg); }
.logo--light b { color: var(--sun); }

.nav { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; }
.nav a:not(.btn) { padding: 0.32rem 0.75rem; border: 2.5px solid transparent; border-radius: 999px; font-weight: 800; font-size: 0.96rem; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.nav a:not(.btn):hover { background: var(--sun-soft); border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sun); border-color: var(--ink); }
.nav__cta { display: none; }
.header__phone { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 900; white-space: nowrap; }
.header__phone .ico { color: var(--coral-d); }
.header__cta { position: relative; z-index: 2; flex: none; }

.burger { position: relative; z-index: 2; display: none; width: 2.9rem; height: 2.9rem; margin-left: auto; border: var(--bd); border-radius: 50%; background: var(--sun); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; flex: none; }
.burger span { position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 3px; margin-left: -0.575rem; border-radius: 3px; background: var(--ink); transition: transform 0.3s var(--ease); }
.burger span:first-child { transform: translateY(-5px); }
.burger span:last-child { transform: translateY(5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, #d9f1ff 0%, #eef8ff 45%, var(--bg) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-weight: 900; font-size: clamp(2.3rem, 4.6vw + 0.6rem, 4.1rem); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.hero__accent { position: relative; white-space: nowrap; color: var(--coral-d); }
.hero__accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 10q12-12 24 0t24 0 24 0 24 0 24 0 24 0 24 0 24 0' fill='none' stroke='%23ffc531' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.lead { max-width: 36rem; margin: 1.4rem 0 2rem; color: var(--muted); font-size: 1.18rem; font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }
.proof { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.proof li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.85rem 0.28rem 0.45rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 0.92rem; }
.proof li::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--leaf) var(--check) center / 0.68rem no-repeat; }

.hero__media { position: relative; padding: 1rem 1rem 1.5rem 0; }
.hero__frame { position: relative; border: var(--bd); border-radius: 32px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: var(--paper); rotate: 1.5deg; }
.hero__frame .media, .hero__frame .ph { width: 100%; border-radius: 0; border: 0; }
.sticker { position: absolute; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; border: var(--bd); border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 900; font-size: 0.95rem; white-space: nowrap; }
.sticker--1 { left: -1.2rem; bottom: 2.5rem; background: var(--sun); rotate: -4deg; }
.sticker--2 { right: -0.4rem; top: -0.2rem; background: var(--paper); rotate: 5deg; font-family: var(--font-hand); font-size: 1.45rem; padding: 0.15rem 1rem; }

/* ---------- Inner page hero ---------- */
.phero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5rem); background: var(--tone, var(--sky-soft)); }
.phero--sky { --tone: var(--sky-soft); }
.phero--sun { --tone: var(--sun-soft); }
.phero--leaf { --tone: var(--leaf-soft); }
.phero--grape { --tone: var(--grape-soft); }
.phero--pink { --tone: var(--pink-soft); }
.phero--coral { --tone: var(--coral-soft); }
.phero__in { position: relative; z-index: 1; max-width: 50rem; }
.phero__title { font-weight: 900; font-size: clamp(2rem, 3.8vw + 0.8rem, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.phero__sub { max-width: 40rem; margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; font-weight: 700; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.crumbs { margin-bottom: 1.2rem; font-size: 0.92rem; font-weight: 800; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--muted); }
.crumbs a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(31, 42, 68, 0.35); }
.crumbs a:hover { text-decoration-color: var(--coral-d); }
.crumbs [aria-current] { color: var(--muted); }

.doodles { position: absolute; inset: 0; pointer-events: none; color: var(--ink); }
.doodle { position: absolute; }
.doodle--sun { right: 5%; top: 1.5rem; width: 7rem; opacity: 0.95; }
.doodle--cloud { right: 18%; bottom: 1.5rem; width: 7.5rem; }
.doodle--spark { right: 30%; top: 2.5rem; width: 1.6rem; }
.phero--404 { padding-block: clamp(4rem, 10vw, 7rem); text-align: center; }
.phero--404 .phero__in { margin-inline: auto; }
.phero--404 .phero__sub { margin-inline: auto; }
.phero--404 .phero__actions { justify-content: center; }
.nf__code { font-weight: 900; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--sun); -webkit-text-stroke: 3px var(--ink); text-shadow: 6px 6px 0 var(--ink); }

/* ---------- Media placeholders & photos ---------- */
.media { width: 100%; height: auto; object-fit: cover; border: var(--bd); border-radius: var(--radius); background: var(--sky-soft); }
.ph {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 0.6rem; width: 100%; padding: 1.5rem; text-align: center;
  border: var(--bd); border-radius: var(--radius); color: var(--muted);
  background: radial-gradient(rgba(31, 42, 68, 0.13) 1.5px, transparent 2px) 0 0 / 20px 20px, linear-gradient(135deg, var(--sun-soft), var(--sky-soft));
}
.ph__ico { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: var(--bd); border-radius: 50%; background: var(--paper); color: var(--ink); }
.ph__ico .ico { width: 1.7rem; height: 1.7rem; }
.ph__label { max-width: 16rem; padding: 0.15rem 0.7rem; border: 2px dashed rgba(31, 42, 68, 0.45); border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-weight: 800; font-size: 0.88rem; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split__media .media, .split__media .ph { box-shadow: var(--shadow); }
.split__text .section__head { margin-bottom: 1.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0; }
.pills li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.95rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); font-weight: 800; font-size: 0.95rem; }
.pills .ico { color: var(--coral-d); }

/* ---------- Brand band ---------- */
.band { position: relative; z-index: 1; padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: var(--ink); color: var(--bg); text-align: center; }
.band__label { margin-bottom: 0.6rem; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); }
.band__quote { max-width: 52rem; margin-inline: auto; font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.8rem, 3vw + 0.8rem, 2.8rem); line-height: 1.2; }

/* ---------- Direction cards (home) ---------- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.4rem; }
.dcard {
  position: relative; display: flex; flex-direction: column; padding: 1.4rem; background: var(--tone); border: var(--bd);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dcard:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.dcard__ico { display: grid; place-items: center; width: 3.8rem; height: 3.8rem; margin-bottom: 1rem; border: var(--bd); border-radius: 18px; background: var(--acc); box-shadow: 2px 2px 0 var(--ink); }
.dcard__ico .ico { width: 1.9rem; height: 1.9rem; }
.dcard__title { font-weight: 900; font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.4rem; }
.dcard__text { color: var(--muted); font-size: 0.98rem; margin-bottom: 1rem; }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.9rem; border-top: 2px dashed rgba(31, 42, 68, 0.3); font-weight: 800; font-size: 0.9rem; }
.dcard__foot > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.dcard__more { color: var(--coral-d); }
.dcard:hover .dcard__more .ico { translate: 3px 0; }
.dcard__more .ico { transition: translate 0.2s var(--ease); }

/* ---------- Class cards (classes page) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.chips a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 0.93rem; transition: background 0.2s; }
.chips a .ico { color: var(--ink); }
.chips a:hover { background: var(--acc); }
.clist { display: grid; gap: 2.2rem; margin: 2.5rem 0 3rem; }
.ccard {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.4rem, 3vw, 2.5rem); padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--paper); border: var(--bd); border-radius: 30px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.ccard:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.ccard:nth-child(even) .ccard__media { order: 2; }
.ccard__media .media { height: 100%; min-height: 16rem; }
.ccard__body { display: flex; flex-direction: column; }
.ccard__title { display: flex; align-items: center; gap: 0.75rem; font-weight: 900; font-size: clamp(1.45rem, 1.5vw + 0.9rem, 1.9rem); line-height: 1.15; margin-bottom: 0.8rem; }
.ccard__ico { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border: var(--bd); border-radius: 14px; background: var(--acc); }
.ccard__ico .ico { width: 1.5rem; height: 1.5rem; }
.ccard__desc { color: var(--muted); margin-bottom: 1.2rem; }
.ccard__h { font-weight: 900; font-size: 1.05rem; margin-bottom: 0.6rem; }
.ccard__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

.illu { position: relative; height: 100%; min-height: 16rem; overflow: hidden; border: var(--bd); border-radius: var(--radius); background: radial-gradient(rgba(31, 42, 68, 0.12) 1.5px, transparent 2px) 0 0 / 22px 22px, var(--tone); display: grid; place-items: center; }
.illu__ico { position: relative; z-index: 1; display: grid; place-items: center; width: 8rem; height: 8rem; border: var(--bd); border-radius: 52% 48% 56% 44% / 48% 54% 46% 52%; background: var(--acc); box-shadow: var(--shadow); }
.illu__ico .ico { width: 3.8rem; height: 3.8rem; }
.illu__dot { position: absolute; border: var(--bd); border-radius: 50%; background: var(--paper); }
.illu__dot--1 { width: 3.5rem; height: 3.5rem; left: 12%; top: 14%; }
.illu__dot--2 { width: 2rem; height: 2rem; right: 14%; top: 22%; background: var(--sun); }
.illu__dot--3 { width: 5rem; height: 5rem; right: 10%; bottom: -1.5rem; background: var(--acc); opacity: 0.6; }

.checks { display: grid; gap: 0.5rem; }
.checks li { position: relative; padding-left: 1.9rem; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--leaf) var(--check) center / 0.68rem no-repeat; }
.checks--lg li { font-size: 1.08rem; }
.checks--lg { gap: 0.9rem; }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.7rem; margin-top: 1.4rem; }
.meta > div { padding: 0.7rem 0.9rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--tone, var(--sun-soft)); }
.meta dt { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.meta dd { font-weight: 900; font-size: 1.02rem; line-height: 1.3; margin-top: 0.15rem; }
.meta--card { margin-top: 0; }
.meta--card > div { background: var(--paper); }

/* ---------- Offer, CTA strip ---------- */
.offer {
  display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem; padding: 1.2rem 1.4rem;
  border: var(--bd); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow);
}
.offer__ico { display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; border: var(--bd); border-radius: 50%; background: var(--coral); }
.offer__ico .ico { width: 1.6rem; height: 1.6rem; }
.offer__text { flex: 1; }
.offer__text b { font-size: 1.12rem; font-weight: 900; }
.offer__text p { color: var(--muted); font-size: 0.98rem; }
.chips + .offer { margin-top: 0; }

.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2rem);
  border: var(--bd); border-radius: 26px; background: var(--sun); box-shadow: var(--shadow);
}
.strip__title { font-weight: 900; font-size: clamp(1.3rem, 1.4vw + 0.8rem, 1.7rem); line-height: 1.2; margin-bottom: 0.3rem; }
.strip p { font-weight: 700; }
.strip__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; flex: none; }

/* ---------- Why / feature tiles ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.why--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why__item { padding: 1.5rem; background: var(--tone); border: var(--bd); border-radius: var(--radius); box-shadow: var(--shadow); }
.why__ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1rem; border: var(--bd); border-radius: 50%; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.why__ico .ico { width: 1.6rem; height: 1.6rem; color: var(--ink); }
.why__item h3 { font-weight: 900; font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.4rem; }
.why__item p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: s; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.2rem 1.3rem; background: var(--paper); border: var(--bd); border-radius: 22px; box-shadow: var(--shadow-sm); }
.step__n { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: var(--bd); border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 900; font-size: 1.25rem; }
.step h3 { font-weight: 900; font-size: 1.15rem; margin-bottom: 0.2rem; }
.step p { color: var(--muted); font-size: 0.98rem; }
.steps--compact .step { padding: 1rem 1.1rem; }
.steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--row .step { grid-template-columns: minmax(0, 1fr); }

/* ---------- School page ---------- */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.skill { padding: 1.5rem; background: var(--paper); border: var(--bd); border-radius: var(--radius); box-shadow: var(--shadow); }
.skill h3 { display: flex; align-items: center; gap: 0.7rem; font-weight: 900; font-size: 1.2rem; margin-bottom: 1rem; }
.skill__ico { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: var(--bd); border-radius: 12px; background: var(--sun); flex: none; }
.agecard { padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--leaf-soft); border: var(--bd); border-radius: 28px; box-shadow: var(--shadow); }
.agecard__ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1rem; border: var(--bd); border-radius: 50%; background: var(--leaf); }
.agecard__ico .ico { width: 1.6rem; height: 1.6rem; }
.agecard__title { font-weight: 900; font-size: 1.5rem; }
.agecard__age { margin: 0.3rem 0 1rem; font-weight: 900; font-size: 2rem; line-height: 1.1; }
.agecard p:not(.agecard__age) { color: var(--muted); }
.agecard p + p { margin-top: 0.8rem; }

.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 60rem; margin-inline: auto; }
.course { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow); }
.course__ico { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: var(--bd); border-radius: 16px; background: var(--acc); }
.course__ico .ico { width: 1.6rem; height: 1.6rem; }
.course h3 { font-weight: 900; font-size: 1.35rem; line-height: 1.2; }
.course p { color: var(--muted); }
.course__details { font-weight: 800; font-size: 0.95rem; }
.course .btn { margin-top: auto; }
.courses--mini { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin: 0 0 1.2rem; max-width: none; }
.courses--mini li { display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--tone); }
.courses--mini b { font-weight: 900; }
.courses--mini span { color: var(--muted); font-size: 0.95rem; }

/* ---------- About page ---------- */
.principles { display: grid; gap: 1rem; }
.principles li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.principles__ico { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: var(--bd); border-radius: 14px; background: var(--sun); }
.principles h4 { font-weight: 900; font-size: 1.1rem; }
.principles p { color: var(--muted); font-size: 0.98rem; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.trust__item { padding: 1.4rem; background: var(--paper); border: var(--bd); border-radius: 22px; box-shadow: var(--shadow-sm); }
.trust__n { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 0.8rem; border: var(--bd); border-radius: 50%; background: var(--leaf); }
.trust__item h3 { font-weight: 900; font-size: 1.12rem; margin-bottom: 0.3rem; }
.trust__item p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Teachers ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.tlist { display: grid; gap: 2rem; }
.tcard { background: var(--paper); border: var(--bd); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.tcard__photo .media, .tcard__photo .ph { border: 0; border-bottom: var(--bd); border-radius: 0; }
.tcard__body { padding: 1.3rem 1.4rem 1.5rem; }
.tcard__role { display: inline-block; margin-bottom: 0.5rem; padding: 0.1rem 0.75rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); font-weight: 900; font-size: 0.85rem; }
.tcard__name { font-weight: 900; font-size: 1.35rem; line-height: 1.2; margin-bottom: 0.4rem; }
.tcard__spec { color: var(--muted); font-size: 0.98rem; }
.tcard--full { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
.tcard--full .tcard__photo .media, .tcard--full .tcard__photo .ph { height: 100%; border-bottom: 0; border-right: var(--bd); }
.tcard--full .tcard__body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.tcard--full .tcard__name { font-size: 1.7rem; }
.tcard__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 1.2rem 0; }
.tcard__facts > div { padding: 0.7rem 0.9rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--sky-soft); }
.tcard__facts dt { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.tcard__facts dd { font-weight: 800; }
.tcard__about { font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.filters button { padding: 0.38rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 800; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.ggrid a { display: block; border-radius: var(--radius); transition: transform 0.2s var(--ease); }
.ggrid a:hover { transform: translateY(-3px); }
.ggrid .media { box-shadow: var(--shadow-sm); }
.ggrid .ph { box-shadow: var(--shadow-sm); }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.4rem; align-items: start; margin-top: 2rem; }
.igrid .instagram-media, .rcard__video .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; border-radius: 18px !important; }
.igcta { display: flex; align-items: center; gap: 1.2rem; padding: clamp(1.2rem, 3vw, 1.8rem); border: var(--bd); border-radius: 26px; background: var(--grape-soft); box-shadow: var(--shadow); margin-top: 2.5rem; }
.igcta__ico { display: grid; place-items: center; flex: none; width: 3.6rem; height: 3.6rem; border: var(--bd); border-radius: 18px; background: var(--pink); }
.igcta__ico .ico { width: 1.7rem; height: 1.7rem; }
.igcta > div { flex: 1; }
.igcta h2 { font-weight: 900; font-size: 1.3rem; line-height: 1.2; }
.igcta p { color: var(--muted); }
.igcta--flush { margin-top: 0; background: var(--paper); }
.igcta__kicker { font-weight: 900; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-d) !important; }
.igcta__meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-weight: 800; color: var(--ink) !important; }

/* ---------- Reviews ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2rem 1.4rem; align-items: start; padding-top: 0.9rem; }
.rcard { position: relative; padding: 1.6rem 1.5rem 1.4rem; background: var(--paper); border: var(--bd); border-radius: var(--radius); box-shadow: var(--shadow); }
.rcard__mark { position: absolute; top: -0.9rem; left: 1.2rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: var(--bd); border-radius: 50%; background: var(--sun); font-weight: 900; font-size: 2rem; line-height: 1; padding-top: 0.6rem; }
.rcard__text p { font-size: 1.04rem; }
.rcard__shot { display: block; margin-top: 1rem; }
.rcard__shot .media { box-shadow: none; }
.rcard__video { margin-top: 1rem; }
.rcard__video iframe { width: 100%; aspect-ratio: 9 / 16; max-height: 32rem; border: var(--bd); border-radius: 18px; }
.rcard > .btn { margin-top: 1rem; }
.rcard__who { display: flex; flex-direction: column; margin-top: 1rem; padding-top: 0.9rem; border-top: 2px dashed rgba(31, 42, 68, 0.3); }
.rcard__who span { color: var(--muted); font-size: 0.92rem; }
.empty { display: flex; align-items: center; gap: 1.3rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper); border: 2.5px dashed var(--ink); border-radius: 26px; }
.empty__ico { display: grid; place-items: center; flex: none; width: 3.6rem; height: 3.6rem; border: var(--bd); border-radius: 50%; background: var(--sky); }
.empty__ico .ico { width: 1.7rem; height: 1.7rem; }
.empty > div { flex: 1; }
.empty h3 { font-weight: 900; font-size: 1.25rem; }
.empty p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 50rem; margin-inline: auto; }
.faq__item { background: var(--paper); border: var(--bd); border-radius: 20px; box-shadow: var(--shadow-sm); }
.faq__item[open] { background: var(--paper); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem;
  cursor: pointer; list-style: none; font-weight: 900; font-size: 1.08rem; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 2.1rem; height: 2.1rem; border: var(--bd); border-radius: 50%; background: var(--sun); transition: background 0.2s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.85rem; height: 3px; margin: -1.5px 0 0 -0.425rem; border-radius: 3px; background: var(--ink); transition: rotate 0.25s var(--ease); }
.faq__item summary i::after { rotate: 90deg; }
.faq__item[open] summary i { background: var(--coral); }
.faq__item[open] summary i::after { rotate: 0deg; }
.faq__a p { padding: 0 1.25rem 1.2rem; color: var(--muted); font-weight: 700; }

/* ---------- Sign-up section ---------- */
.signup { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--bg); --wc: var(--bg); }
.signup__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 4.5vw, 3.5rem); border: var(--bd); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink);
  background: radial-gradient(rgba(255, 255, 255, 0.55) 2px, transparent 2.5px) 0 0 / 26px 26px, var(--sky);
}
.signup__text > p { margin: 1rem 0 1.3rem; font-size: 1.1rem; font-weight: 700; }
.signup__text .hl { background-image: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 92%, transparent 92%); }
.signup__offer { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); font-size: 1rem !important; }
.signup__offer .ico { flex: none; margin-top: 0.15rem; color: var(--coral-d); }
.ticks { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; font-weight: 800; }
.ticks li { display: flex; align-items: center; gap: 0.65rem; }
.ticks li::before { content: ""; flex: none; width: 1.45rem; height: 1.45rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun) var(--check) center / 0.75rem no-repeat; }
.signup__alt { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.signup__formwrap { padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow); }

/* ---------- Form ---------- */
.field { display: grid; gap: 0.35rem; min-width: 0; margin: 0 0 0.95rem; padding: 0; border: 0; }
.field label { font-weight: 900; font-size: 0.95rem; }
.opt { font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.65rem 0.95rem; border: var(--bd); border-radius: 14px; background: var(--paper);
  font-weight: 700; transition: box-shadow 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.85rem center / 1.1rem no-repeat; }
.field textarea { min-height: 5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--sun); }
.field-row { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 0.9rem; }
.field__err { color: #b3261e; font-size: 0.86rem; font-weight: 800; }
.field__err:empty { display: none; }
.field.is-error input, .field.is-error select { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { margin: 0.2rem 0 1rem; }
.consent__label { position: relative; display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; font-weight: 700; font-size: 0.92rem; line-height: 1.4; }
.consent__label input { position: absolute; inset: 0 auto auto 0; width: 1.55rem; height: 1.55rem; margin: 0; opacity: 0; cursor: pointer; }
.consent__box { flex: none; position: relative; width: 1.55rem; height: 1.55rem; border: var(--bd); border-radius: 8px; background: var(--paper); transition: background 0.2s; }
.consent__box::after { content: ""; position: absolute; left: 0.42rem; top: 0.1rem; width: 0.45rem; height: 0.85rem; border: solid var(--ink); border-width: 0 3px 3px 0; rotate: 45deg; scale: 0; transition: scale 0.2s var(--ease); }
.consent__label input:checked + .consent__box { background: var(--sun); }
.consent__label input:checked + .consent__box::after { scale: 1; }
.consent__label input:focus-visible + .consent__box { outline: 3px solid var(--coral-d); outline-offset: 3px; }
.consent.is-error .consent__box { border-color: #b3261e; }
.consent .field__err { display: block; margin-top: 0.35rem; }
.consent .field__err:empty { display: none; }
/* Turnstile ("interaction-only"): invisible unless Cloudflare needs a click, it manages its own visibility */
.captcha { margin-bottom: 0.6rem; }
.captcha__err { display: block; margin-top: 0.35rem; }

.form__btn { margin-top: 0.3rem; }
.spinner { position: absolute; width: 1.4rem; height: 1.4rem; opacity: 0; border: 3px solid rgba(31, 42, 68, 0.3); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.form__btn-text { transition: opacity 0.2s; }
.form__btn.is-loading { pointer-events: none; }
.form__btn.is-loading .form__btn-text { opacity: 0; }
.form__btn.is-loading .spinner { opacity: 1; }
.form__error { margin-top: 0.9rem; padding: 0.8rem 1rem; border: 2.5px solid #b3261e; border-radius: 14px; background: #fff0ee; color: #7a1912; font-weight: 800; font-size: 0.95rem; }
.form__error a { text-decoration: underline; text-underline-offset: 3px; }
.form__note { margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

.success { padding: 1.5rem 0.5rem; text-align: center; }
.success h3 { font-weight: 900; font-size: 1.55rem; margin: 1rem 0 0.5rem; }
.success p { color: var(--muted); margin-bottom: 1.4rem; }
.success__check { width: 5rem; margin: 0 auto; fill: var(--leaf-soft); stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.success__check circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw 0.6s ease-out 0.1s forwards; }
.success__check path { fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.4s ease-out 0.6s forwards; }

/* ---------- Contacts ---------- */
.contacts-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; }
.ccontacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ccontacts > .cinfo:last-child:nth-child(odd) { grid-column: 1 / -1; } /* odd number of cards (e.g. no opening hours yet): no hole */
.cinfo { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem; background: var(--paper); border: var(--bd); border-radius: 22px; box-shadow: var(--shadow-sm); }
.cinfo__ico { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: var(--bd); border-radius: 50%; background: var(--sun); }
.cinfo h3 { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.cinfo .big { display: block; font-weight: 900; font-size: 1.12rem; line-height: 1.3; }
.cinfo a.big:hover { color: var(--coral-d); }
.cinfo p:not(.big) { color: var(--muted); font-size: 0.92rem; }
.hours li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.15rem 0; font-size: 0.95rem; }
.hours li + li { border-top: 1.5px dashed rgba(31, 42, 68, 0.25); }
.msgr { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.msgr__btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 0.9rem; transition: transform 0.2s var(--ease); }
.msgr__btn:hover { transform: translateY(-2px); }
.msgr__btn--ig { background: var(--pink-soft); }
.msgr__btn--tg { background: var(--sky-soft); }
.msgr__btn--vb { background: var(--grape-soft); }
.map { position: relative; min-height: 22rem; border: var(--bd); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; background: var(--sky-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__open { position: absolute; left: 1rem; bottom: 1rem; }

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 1.5rem; background: var(--ink); color: #f1e9d6; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand p { max-width: 22rem; margin: 1rem 0; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.25; color: var(--bg); }
.footer__ig { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; }
.footer__ig:hover, .footer a:hover { color: var(--sun); }
.footer__h { margin-bottom: 1rem; font-weight: 900; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); }
.footer li + li { margin-top: 0.5rem; }
.footer li a { font-weight: 700; }
.footer__contacts li { display: flex; align-items: center; gap: 0.55rem; }
.footer__contacts .ico { color: var(--sun); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 2px dashed rgba(255, 255, 255, 0.22); font-size: 0.92rem; font-weight: 700; }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
.modal { width: min(34rem, 100% - 1.5rem); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.modal::backdrop, .lightbox::backdrop { background: rgba(31, 42, 68, 0.6); }
.modal__card { position: relative; max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.3rem, 4vw, 2rem); background: var(--paper); border: var(--bd); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); }
.modal[open] .modal__card { animation: pop 0.3s var(--ease) both; }
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: var(--bd); border-radius: 50%; background: var(--paper); cursor: pointer; }
.modal__close:hover { background: var(--sun-soft); }
.modal__title { font-weight: 900; font-size: 1.7rem; line-height: 1.15; padding-right: 2.5rem; }
.modal__sub { margin: 0.5rem 0 1.3rem; color: var(--muted); }

.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox__fig { display: grid; place-items: center; gap: 0.8rem; height: 100%; padding: 4.5rem 4.5rem 2rem; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border: var(--bd); border-radius: 18px; background: var(--paper); }
.lightbox__fig figcaption { color: #fff; font-weight: 800; text-align: center; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border: var(--bd); border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer; }
.lightbox__btn .ico { width: 1.5rem; height: 1.5rem; }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- Quick contact (FAB) ---------- */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 140; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.fab__toggle { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: var(--bd); border-radius: 50%; background: var(--coral); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.2s var(--ease); }
.fab__toggle .ico { width: 1.7rem; height: 1.7rem; }
.fab__toggle:hover { transform: translate(-2px, -2px); }
.fab__toggle[aria-expanded="true"] { background: var(--paper); }
.fab__menu { display: grid; gap: 0.45rem; padding: 0.6rem; background: var(--paper); border: var(--bd); border-radius: 20px; box-shadow: var(--shadow); animation: pop 0.25s var(--ease) both; transform-origin: 100% 100%; }
.fab__menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; border-radius: 12px; font-weight: 800; white-space: nowrap; }
.fab__menu a:hover { background: var(--sun-soft); }

/* ---------- Accessibility panel ---------- */
.a11y { position: fixed; left: 1rem; bottom: 1rem; z-index: 140; }
.a11y__toggle { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: var(--bd); border-radius: 50%; background: var(--sun); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.2s var(--ease); }
.a11y__toggle:hover { transform: translate(-2px, -2px); }
.a11y__panel { position: absolute; left: 0; bottom: 4rem; width: 18.5rem; padding: 1.1rem; background: var(--paper); border: var(--bd); border-radius: 20px; box-shadow: var(--shadow); transform-origin: 0 100%; animation: pop 0.25s var(--ease) both; }
.a11y__title { margin-bottom: 0.6rem; font-weight: 900; font-size: 1.1rem; }
.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: 0.5rem 0; border-top: 2px dashed rgba(31, 42, 68, 0.3); font-weight: 800; font-size: 0.95rem; cursor: pointer; }
.a11y__row small { display: block; font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.a11y__sizes { display: flex; gap: 0.3rem; }
.a11y__sizes button { min-width: 2.5rem; height: 2.5rem; padding: 0 0.4rem; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); font-weight: 900; cursor: pointer; }
.a11y__sizes button[aria-pressed="true"] { background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.a11y input[role="switch"] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 3rem; height: 1.8rem; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer; transition: background 0.2s; }
.a11y input[role="switch"]::after { content: ""; position: absolute; left: 0.18rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); transition: translate 0.2s var(--ease); }
.a11y input[role="switch"]:checked { background: var(--leaf); }
.a11y input[role="switch"]:checked::after { translate: 1.2rem 0; }
.a11y__reset { width: 100%; margin-top: 0.6rem; padding: 0.55rem; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--paper); font-weight: 900; cursor: pointer; }
.a11y__reset:hover { background: var(--sun-soft); }

/* ---------- Reveal on scroll (subtle) ---------- */
.js .reveal { opacity: 0; translate: 0 1.2rem; transition: opacity 0.5s ease var(--delay, 0s), translate 0.6s var(--ease) var(--delay, 0s), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .header__phone span { display: none; }
}

@media (max-width: 1040px) {
  .burger { display: block; }
  .header__cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .header__phone { margin-left: auto; }
  .header__phone + .header__cta { margin-left: 0; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 0.4rem;
    margin: 0; padding: 5rem 1.5rem 2rem; background: var(--sun); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0s linear 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.25s, visibility 0s; }
  .nav a:not(.btn) { font-weight: 900; font-size: 1.55rem; }
  .nav a[aria-current="page"] { background: var(--paper); }
  .nav__cta { display: inline-flex; margin-top: 1rem; }

  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 30rem; margin-inline: auto; width: 100%; }
  .split, .contacts-layout { grid-template-columns: minmax(0, 1fr); }
  .split__media { order: -1; }
  .why, .why--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccard, .ccard:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .ccard:nth-child(even) .ccard__media { order: 0; }
  .ccard__media .media, .illu { min-height: 12rem; max-height: 18rem; }
  .signup__card { grid-template-columns: minmax(0, 1fr); border-radius: 28px; }
  .strip { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .doodle--cloud, .doodle--spark { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .container { width: min(1180px, 100% - 2rem); }
  .header__cta { display: none; }
  .header__phone { margin-left: auto; }
  .burger { margin-left: auto; }
  .header__phone ~ .burger { margin-left: 0; }
  .hero__cta .btn, .phero__actions .btn { width: 100%; }
  .sticker--1 { left: 0.2rem; }
  .why, .why--4, .trust, .skills, .steps--row, .ccontacts, .meta, .tcard__facts, .courses { grid-template-columns: minmax(0, 1fr); }
  .tcard--full { grid-template-columns: minmax(0, 1fr); }
  /* home page: compact horizontal cards instead of three tall photos in a column */
  .tgrid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .tgrid .tcard { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); }
  .tgrid .tcard__photo .media, .tgrid .tcard__photo .ph { height: 100%; aspect-ratio: auto !important; border-bottom: 0; border-right: var(--bd); padding: 0.8rem; }
  .tgrid .tcard__photo .media { padding: 0; }
  .tgrid .ph__label { display: none; }
  .tgrid .tcard__body { padding: 1rem 1.1rem; }
  .tgrid .tcard__name { font-size: 1.15rem; }
  .tgrid .tcard__spec { font-size: 0.92rem; }
  .tcard--full .tcard__photo .media, .tcard--full .tcard__photo .ph { border-right: 0; border-bottom: var(--bd); max-height: 26rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .offer, .igcta, .empty { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .doodle--sun { width: 4.5rem; top: 0.8rem; right: 3%; }
  .phero__in { padding-right: 3.5rem; }
  .phero--404 .phero__in { padding-right: 0; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .lightbox__fig { padding: 4.5rem 0.8rem 5rem; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 1rem; translate: none; }
  .map { min-height: 18rem; }
  .a11y__panel { width: min(18.5rem, calc(100vw - 2rem)); }
  .fab__toggle, .a11y__toggle { width: 3.2rem; height: 3.2rem; }
}

/* ---------- High contrast ---------- */
.is-contrast {
  --bg: #ffffff; --paper: #ffffff; --ink: #000000; --muted: #111111;
  --sun-soft: #fff8cf; --sky-soft: #eef8ff; --coral-soft: #fff0ee; --leaf-soft: #eafaf3; --grape-soft: #f3efff; --pink-soft: #fff0f7;
  --coral-d: #a8281c;
}
.is-contrast .hero { background: #fff; }
.is-contrast .doodles, .is-contrast .section::before, .is-contrast .signup::before { display: none; }
.is-contrast .phero, .is-contrast .section--sky, .is-contrast .section--sun, .is-contrast .section--pink { background: #f3f3f3; }

/* ---------- Calm mode / reduced motion ---------- */
.is-calm *, .is-calm *::before, .is-calm *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
.is-calm .reveal { opacity: 1 !important; translate: none !important; }
.is-calm .success__check circle, .is-calm .success__check path { stroke-dashoffset: 0; }
.is-calm .spinner { animation: spin 0.8s linear infinite !important; animation-duration: 0.8s !important; animation-iteration-count: infinite !important; }
