/* =========================================================
   MimoBotics — brand: navy #1E293B, burnt orange #D95D39, logo blue
   ========================================================= */

:root {
  --ink: #1e293b;
  --ink-2: #475569;
  --ink-3: #64748b;
  --blue: #1a6fe0;
  --blue-dark: #1456b4;
  --cyan: #29a8f0;
  --orange: #d95d39;
  --orange-2: #ef7f45;
  --orange-dark: #b8461f;
  --yellow: #ffc93c;
  --green: #16a36f;

  --peach: #fdeee8;
  --sky: #e8f2fe;
  --lilac: #f1f0fb;
  --mint: #e6f6ef;
  --lemon: #fff7dc;

  --line: #e2e8f0;

  --f-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;

  --shadow: 0 18px 40px -22px rgba(30, 41, 59, .3);
  --shadow-soft: 0 10px 30px -18px rgba(30, 41, 59, .25);

  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.12; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.accent { color: var(--orange); }
.lead { color: var(--ink-2); font-size: 1.1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* line icons from the sprite */
svg use { fill: none; }
.i, .tp-ico svg, .ht-pill svg, .why-ico svg, .js-ico svg, .track-ico svg, .th-ico svg, .proj-list svg, .ap-ico svg, .bc-ico svg, .cmp svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.i { width: 18px; height: 18px; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .98rem/1 var(--f-body); padding: 14px 22px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background-color .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(26,111,224,.7); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-orange { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 10px 22px -10px rgba(217,93,57,.8); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #0f172a; }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-soft { background: var(--sky); color: var(--blue-dark); }
.btn-link { background: none; color: var(--ink); padding-left: 6px; padding-right: 6px; text-decoration: underline; text-decoration-color: #cbd5e1; text-decoration-thickness: 2px; }
.btn-link:hover { transform: none; text-decoration-color: currentColor; }

.tag { display: inline-flex; align-items: center; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; line-height: 1; }
.tag-white { background: #fff; color: var(--ink); }

.g-peach { background: linear-gradient(145deg, #fff7f3, #fde4da); }
.g-sky { background: linear-gradient(145deg, #f3f8ff, #dceafe); }
.g-lilac { background: linear-gradient(145deg, #f7f7fd, #e6e5f8); }
.g-mint { background: linear-gradient(145deg, #f2fbf7, #d7f1e5); }
.g-lemon { background: linear-gradient(145deg, #fffbea, #fff0bd); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(30,41,59,.4); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1b2a5a; }
.brand img { width: 38px; height: auto; }
.brand-word { font: 800 1.42rem/1 var(--f-display); letter-spacing: -0.02em; }
.brand-blue { color: var(--blue); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 9px 14px; border-radius: 999px; transition: background-color .15s; }
.main-nav a:hover { background: var(--sky); }
.main-nav a.is-active { background: var(--peach); color: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.header-phone .i { color: var(--orange); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lilac); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 96px); background: linear-gradient(180deg, #fff6f1 0%, #f2f6fe 55%, #fff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(26,111,224,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(26,111,224,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob-1 { width: 420px; height: 420px; background: #ffcdb8; left: -120px; top: 80px; }
.blob-2 { width: 480px; height: 480px; background: #c9defd; right: -140px; top: 160px; }
.deco-gear { position: absolute; width: 150px; left: -50px; top: 330px; fill: #f4a688; opacity: .6; animation: spin 24s linear infinite; }
.ball { position: absolute; border-radius: 50%; }
.ball-orange { width: 54px; height: 54px; left: 7%; top: 120px; background: radial-gradient(circle at 30% 30%, #ffb28f, var(--orange)); box-shadow: 0 14px 24px -10px rgba(217,93,57,.6); animation: float 6s ease-in-out infinite; }
.ball-blue { width: 40px; height: 40px; right: 9%; top: 300px; background: radial-gradient(circle at 30% 30%, #a9d4ff, var(--blue)); box-shadow: 0 14px 24px -10px rgba(26,111,224,.6); animation: float 7s 1s ease-in-out infinite; }
.hero-mascot { position: absolute; right: 5%; top: 40px; width: 150px; transform: rotate(10deg); filter: drop-shadow(0 20px 24px rgba(30,41,59,.25)); animation: bob 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes bob { 0%,100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; text-align: center; }
.topic-pills { list-style: none; margin: 0 auto 28px; padding: 6px; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft); }
.topic-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: .95rem; }
.tp-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.tp-ico svg { width: 17px; height: 17px; }
.tp-orange { background: var(--peach); color: var(--orange); } .tp-blue { background: var(--sky); color: var(--blue); } .tp-navy { background: var(--lilac); color: var(--ink); } .tp-green { background: var(--mint); color: var(--green); }

.hero-title { font-size: clamp(2.6rem, 7vw, 5.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; margin-bottom: 24px; }
.ht-line { display: block; }
.ht-pill { display: inline-grid; place-items: center; vertical-align: middle; width: 1.4em; height: .82em; border-radius: 999px; margin: -0.12em .04em 0; }
.ht-pill svg { width: .46em; height: .46em; stroke-width: 2.6; }
.hp-orange { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 10px 20px -10px rgba(217,93,57,.9); }
.hp-orange svg { animation: spin 6s linear infinite; }
.hp-blue { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 10px 20px -10px rgba(26,111,224,.9); }
.hp-yellow { background: linear-gradient(135deg, #ffe37a, var(--yellow)); color: var(--orange-dark); box-shadow: 0 10px 20px -10px rgba(255,180,0,.9); }
.ht-accent { color: var(--orange); white-space: nowrap; }

.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-2); max-width: 36em; margin: 0 auto 30px; }
.hero-lede strong { color: var(--ink); }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-facts { list-style: none; margin: 0 auto clamp(40px, 5vw, 56px); padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: .98rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .i { color: var(--orange); }
.hero-facts strong { color: var(--ink); }

/* ---------- Game ---------- */
.game { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; text-align: left; max-width: 1040px; margin: 0 auto; padding: 16px; border-radius: var(--r-xl); background: rgba(255,255,255,.8); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(30,41,59,.35); }
.game > * { min-width: 0; }
.game-world { background: linear-gradient(180deg, #d8ebff, #eef6ff); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; border: 2px solid #cfe2fb; }
.gw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gw-title, .gc-title { font-size: 1.1rem; }
.gw-levels { display: flex; align-items: center; gap: 6px; background: #fff; padding: 5px 6px 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.lvl { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--lilac); color: var(--ink-2); font-weight: 800; cursor: pointer; font-family: var(--f-body); }
.lvl.is-on { background: var(--orange); color: #fff; }
.board-wrap { flex: 1; display: grid; place-items: center; }
.board { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; max-width: 460px; padding: 8px; border-radius: 16px; background: #7fcf8f; box-shadow: 0 10px 0 #5aa86a, 0 22px 30px -16px rgba(30,41,59,.4); }
.cell { aspect-ratio: 1; border-radius: 8px; background: #9be0a6; display: grid; place-items: center; font-size: clamp(1rem, 2.6vw, 1.5rem); position: relative; }
.cell:nth-child(odd) { background: #a7e6b1; }
.cell.c-path { background: #ffe7b0; }
.cell.c-rock::after { content: "🪨"; }
.cell.c-tree::after { content: "🌳"; }
.cell.c-flag::after { content: "🏁"; }
.cell.c-bat::after { content: "🔋"; transition: transform .3s, opacity .3s; }
.cell.c-bat.got::after { transform: scale(0) translateY(-20px); opacity: 0; }
.bot { position: absolute; display: grid; place-items: center; transition: transform .38s cubic-bezier(.5,0,.3,1.3); z-index: 2; pointer-events: none; }
.bot-inner { width: 78%; height: 78%; display: grid; place-items: center; }
.bot-inner img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.bot-ring { position: absolute; inset: 0; transition: transform .3s; }
.bot-dir { position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid var(--orange); top: -6px; left: 50%; margin-left: -7px; }
.bot.bump .bot-inner { animation: shake .35s; }
.bot.win .bot-inner { animation: hop .5s 2; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes hop { 50% { transform: translateY(-12px); } }
.gw-goal { font-size: .92rem; color: var(--ink-2); text-align: center; }
.game-code { background: #fff; border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.gc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gc-sub { font-size: .86rem; color: var(--ink-3); margin-top: 2px; }
.editor { background: #f4f6fb; border-radius: 16px; flex: 1; min-height: 220px; display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); }
.editor-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font: 600 .82rem/1 ui-monospace, Consolas, monospace; color: var(--ink-2); }
.block-count { background: #fff; padding: 5px 10px; border-radius: 999px; font-family: var(--f-body); font-weight: 700; color: var(--ink-2); }
.block-count.full { color: var(--orange-dark); }
.program { list-style: none; margin: 0; padding: 4px 10px 12px; counter-reset: ln; display: grid; gap: 2px; align-content: start; }
.program li { counter-increment: ln; }
.program button { width: 100%; text-align: left; display: flex; gap: 14px; align-items: center; border: 0; background: transparent; cursor: pointer; font: 500 .92rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink); padding: 7px 8px; border-radius: 8px; }
.program button::before { content: counter(ln); color: var(--ink-3); width: 1.2em; text-align: right; font-size: .8rem; }
.program button:hover { background: #ffe9e0; text-decoration: line-through; text-decoration-color: #e05a3a; }
.program button .fn { color: var(--blue); }
.program li.running button { background: #fff1c2; }
.program li.error button { background: #ffe0e0; }
.program-empty { position: absolute; inset: 44px 16px auto; text-align: center; color: var(--ink-3); font-size: .9rem; }
.palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; }
.blk { font: 600 .84rem/1 ui-monospace, Consolas, monospace; padding: 12px 8px; border-radius: 12px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s, background-color .15s, transform .1s; }
.blk span { color: var(--orange); font-weight: 800; }
.blk:hover { border-color: var(--orange); background: var(--peach); }
.blk:active { transform: scale(.96); }
.blk:disabled { opacity: .45; cursor: not-allowed; }
.run-btn { padding: 12px 20px; border-radius: 12px; }
.run-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.game-msg { min-height: 1.5em; font-size: .92rem; font-weight: 600; text-align: center; color: var(--ink-2); }
.game-msg.ok { color: var(--green); }
.game-msg.bad { color: #c2410c; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-lilac { background: linear-gradient(180deg, #f4f6fd, #fafbff); }
.section-soft { background: #fafbfe; border-top: 1px solid #eef1f7; border-bottom: 1px solid #eef1f7; }
.section-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-bottom: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 640px; }

/* ---------- Difference ---------- */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.cmp { border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); }
.cmp h3 { font-size: 1.35rem; margin-bottom: 18px; }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp li { display: flex; gap: 12px; align-items: flex-start; }
.cmp svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; flex: none; margin-top: 1px; stroke-width: 2.6; }
.cmp-them { background: #f5f7fa; color: var(--ink-3); }
.cmp-them h3 { color: var(--ink-3); }
.cmp-them svg { background: #e2e8f0; color: #94a3b8; }
.cmp-us { background: var(--ink); color: #e2e8f0; box-shadow: var(--shadow); }
.cmp-us h3 { color: #fff; }
.cmp-us svg { background: var(--orange); color: #fff; }

/* ---------- Ages ---------- */
.ages-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.ages-left h2 { margin-bottom: 16px; }
.ages-left .lead { margin-bottom: 28px; max-width: 30em; }
.age-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.age { border: 0; cursor: pointer; background: #fff; border-radius: 18px; padding: 16px 6px; display: grid; gap: 4px; text-align: center; box-shadow: var(--shadow-soft); font-family: var(--f-body); color: var(--ink); transition: transform .2s, background-color .2s, color .2s; }
.age strong { font: 800 1.55rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.age span { font-size: .78rem; font-weight: 600; color: var(--ink-3); line-height: 1.2; }
.age:hover { transform: translateY(-3px); }
.age.is-on { background: linear-gradient(160deg, var(--orange-2), var(--orange)); color: #fff; transform: translateY(-4px); box-shadow: 0 16px 28px -14px rgba(217,93,57,.9); }
.age.is-on span { color: rgba(255,255,255,.9); }
.road { position: relative; height: 70px; margin-top: 40px; }
.road::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 26px; border-radius: 999px; background: #334155; box-shadow: 0 8px 0 #1e293b; }
.road::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 18px; height: 3px; background: repeating-linear-gradient(90deg, #fff 0 18px, transparent 18px 34px); }
.flag { position: absolute; bottom: 30px; width: 3px; height: 40px; background: #94a3b8; }
.flag::after { content: ""; position: absolute; left: 3px; top: 0; width: 18px; height: 12px; background: var(--green); border-radius: 0 3px 3px 0; }
.flag-l { left: 14px; } .flag-r { right: 30px; }
.road-car { position: absolute; bottom: 26px; left: 6%; width: 64px; height: 30px; border-radius: 12px 12px 8px 8px; background: var(--orange); display: flex; justify-content: center; gap: 10px; padding-top: 7px; transition: left .7s cubic-bezier(.5,0,.3,1.2); z-index: 1; }
.road-car::before, .road-car::after { content: ""; position: absolute; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; }
.road-car::before { left: 6px; } .road-car::after { right: 6px; }
.rc-eye { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }

.ages-panel { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ap-course { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); margin-bottom: 22px; background: linear-gradient(145deg, #fff7f3, #fde4da); }
.ages-panel[data-track="senior"] .ap-course { background: linear-gradient(145deg, #f3f8ff, #dceafe); }
.ages-panel[data-track="master"] .ap-course { background: linear-gradient(145deg, #eef1f6, #dde3ed); }
.ap-ico { width: 60px; height: 60px; display: grid; place-items: center; background: #fff; border-radius: 18px; flex: none; box-shadow: var(--shadow-soft); color: var(--orange); }
.ages-panel[data-track="senior"] .ap-ico { color: var(--blue); }
.ages-panel[data-track="master"] .ap-ico { color: var(--ink); }
.ap-ico svg { width: 30px; height: 30px; }
.ap-label { font-size: .82rem; font-weight: 700; color: var(--orange-dark); }
.ap-course h3 { font-size: 1.55rem; margin: 2px 0 4px; }
.ap-meta { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
#ap-desc { color: var(--ink-2); font-size: .98rem; }
.ap-sub { font-weight: 700; margin-bottom: 10px; }
.ap-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ap-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #f6f8fb; font-weight: 600; font-size: .96rem; }
.ap-list li svg { width: 34px; height: 34px; padding: 7px; background: #fff; border-radius: 10px; flex: none; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ages-panel.swap .ap-course, .ages-panel.swap .ap-list { animation: pop .35s; }
@keyframes pop { from { opacity: .3; transform: translateY(6px); } }

/* ---------- Tracks ---------- */
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.track { position: relative; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; border: 1px solid; }
.t-junior { background: linear-gradient(165deg, #fff8f4, #fde5db); border-color: #fbd5c6; }
.t-senior { background: linear-gradient(165deg, #f4f9ff, #d9e8fd); border-color: #bcd6fb; box-shadow: var(--shadow); }
.t-master { background: linear-gradient(165deg, #f3f5f9, #e1e6ef); border-color: #cfd7e3; }
.track-flag { position: absolute; top: -12px; right: 24px; background: var(--blue); color: #fff; font: 700 .78rem/1 var(--f-body); padding: 7px 12px; border-radius: 999px; }
.track-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.track-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.track-ico svg { width: 28px; height: 28px; }
.t-junior .track-ico { color: var(--orange); } .t-senior .track-ico { color: var(--blue); } .t-master .track-ico { color: var(--ink); }
.track h3 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.track-sub { font-weight: 700; color: var(--ink-2); margin-top: -10px; }
.track > p:not(.track-sub):not(.track-price) { color: var(--ink-2); font-size: .96rem; }
.track-stats { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.track-stats div { background: rgba(255,255,255,.75); border-radius: 12px; padding: 10px 12px; }
.track-stats dt { font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.track-stats dd { margin: 0; font: 800 1rem/1.2 var(--f-display); white-space: nowrap; }
.track-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(30,41,59,.18); display: grid; gap: 2px; }
.track-price span { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.track-price strong { font: 800 2rem/1.1 var(--f-display); letter-spacing: -0.03em; }
.track-price em { font-style: normal; font-size: .88rem; color: var(--ink-2); }
.track-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ---------- Curriculum ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft); }
.tab { border: 0; background: transparent; padding: 11px 18px; border-radius: 999px; font: 700 .94rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--ink); color: #fff; }
.panel { display: grid; gap: 16px; }
.panel[hidden] { display: none; }
.level-card { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); border: 1px solid rgba(30,41,59,.06); }
.lc-orange { background: linear-gradient(160deg, #fff8f4, #fde9e0); }
.lc-sky { background: linear-gradient(160deg, #f5f9ff, #e3eefe); }
.lc-lilac { background: linear-gradient(160deg, #f8f8fd, #ebeaf9); }
.lc-mint { background: linear-gradient(160deg, #f3fbf7, #def4ea); }
.level-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.level-head h3 { font-size: 1.3rem; }
.level-head p { color: var(--ink-2); font-size: .94rem; margin-top: 4px; }
.level-n { display: inline-block; font: 700 .78rem/1 var(--f-body); color: var(--orange-dark); background: #fff; padding: 5px 10px; border-radius: 999px; margin-bottom: 8px; }
.level-fee { font: 800 1.3rem/1 var(--f-display); background: #fff; padding: 10px 16px; border-radius: 14px; white-space: nowrap; box-shadow: var(--shadow-soft); }
.proj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.proj-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.85); border-radius: 14px; padding: 10px 14px 10px 10px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.proj-list svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #fff; color: var(--blue); flex: none; box-shadow: 0 2px 6px rgba(30,41,59,.08); }
.lc-lilac .proj-list svg { color: #5b52c9; } .lc-mint .proj-list svg { color: var(--green); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme { background: rgba(255,255,255,.85); border-radius: 16px; padding: 18px; }
.th-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--peach); color: var(--orange); margin-bottom: 12px; }
.th-ico svg { width: 24px; height: 24px; }
.theme h4 { font-size: 1.02rem; margin-bottom: 4px; }
.theme p { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.panel-note { color: var(--ink-2); font-size: .95rem; padding: 4px 6px; }
.panel-note strong { color: var(--ink); }
.insta-strip { margin-top: 22px; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-md); background: #fff; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); transition: border-color .15s; }
.insta-strip:hover { border-color: #d62976; }
.insta-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); flex: none; }
.insta-ico svg { width: 22px; height: 22px; fill: #fff; }
.insta-strip strong { color: var(--ink); }
.insta-go { margin-left: auto; font-size: 1.8rem; color: var(--ink-3); line-height: 1; }

/* ---------- Fees ---------- */
.fee-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #fff; }
.fee-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .97rem; }
.fee-table th, .fee-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th { font: 800 1.25rem/1.2 var(--f-display); padding-top: 22px; padding-bottom: 18px; }
.fee-table thead th span { display: block; font: 600 .82rem/1.4 var(--f-body); color: var(--ink-3); }
.fee-table tbody th { font-weight: 600; color: var(--ink-2); width: 22%; }
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.fee-table td strong { font: 800 1.45rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.fee-table td small { display: block; color: var(--ink-3); font-size: .84rem; margin-top: 4px; }
.fee-table .hl { background: #f3f8ff; }
.fee-table thead .hl { background: var(--blue); color: #fff; }
.fee-table thead .hl span { color: rgba(255,255,255,.8); }
.fee-table .save { color: var(--green); font-weight: 700; }
.fee-table .ok { color: var(--green); width: 22px; height: 22px; stroke-width: 2.6; }
.fee-note { text-align: center; color: var(--ink-3); margin-top: 18px; font-size: .95rem; }

/* ---------- Journey ---------- */
.journey-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.journey-left { position: sticky; top: 110px; }
.journey-left h2 { margin-bottom: 14px; }
.journey-mascot { width: 220px; height: 220px; margin: 28px 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fde4da 0%, #eef3fd 60%, transparent 70%); }
.journey-mascot img { width: 150px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(30,41,59,.25)); }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.js { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid rgba(30,41,59,.06); }
.js-n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; font: 800 1.25rem/1 var(--f-display); box-shadow: var(--shadow-soft); }
.js h3 { font-size: 1.2rem; margin-bottom: 4px; }
.js p { color: var(--ink-2); font-size: .96rem; }
.js-ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.8); display: grid; place-items: center; color: var(--orange); }
.js-ico svg { width: 28px; height: 28px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.why-left h2 { margin-bottom: 22px; }
.why-strong { font: 700 1.25rem/1.35 var(--f-display); margin-bottom: 12px; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why { padding: 24px; border-radius: var(--r-lg); border: 1px solid rgba(30,41,59,.05); }
.why-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: 22px; color: var(--orange); box-shadow: var(--shadow-soft); }
.why-ico svg { width: 26px; height: 26px; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--ink-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: var(--shadow-soft); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 64px 20px 22px; position: relative; font: 700 1.05rem/1.4 var(--f-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%23d95d39' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Book ---------- */
.book { padding: var(--section) 0; }
.book-card { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(28px, 5vw, 60px); background: linear-gradient(135deg, #1e293b 0%, #1b3c7a 55%, var(--blue) 100%); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.book-bg { position: absolute; inset: 0; pointer-events: none; }
.blob-3 { width: 380px; height: 380px; background: var(--orange); left: -140px; bottom: -160px; opacity: .35; }
.blob-4 { width: 300px; height: 300px; background: var(--cyan); right: 30%; top: -160px; opacity: .3; }
.book-info, .trial-form { position: relative; }
.book-info h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 16px; }
.accent-light { color: #ffb08f; }
.book-info > p { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 28em; }
.book-contacts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.book-contacts a { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; padding: 10px 20px 10px 10px; border-radius: 16px; width: fit-content; transition: background-color .15s; }
.book-contacts a:hover { background: rgba(255,255,255,.12); }
.bc-ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.bc-ico svg { width: 22px; height: 22px; }
.book-contacts small { display: block; font-size: .8rem; color: rgba(255,255,255,.7); }
.book-contacts span:last-child { font: 700 1.1rem/1.25 var(--f-display); }
.trial-form { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 34px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.trial-form h3 { font-size: 1.45rem; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.field input { font: 400 1rem/1.4 var(--f-body); color: var(--ink); padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #f8fafc; width: 100%; }
.field input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(26,111,224,.15); }
.field input[aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; background: #f8fafc; transition: all .15s; }
.seg input:checked + span { background: var(--peach); color: var(--orange-dark); border-color: var(--orange); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-error { color: #b91c1c; font-weight: 600; font-size: .92rem; }
.form-note { font-size: .82rem; color: var(--ink-3); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #f8fafc; padding: 64px 0 100px; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 14px; max-width: 26em; font-size: .95rem; }
.site-footer h3 { font: 700 1rem/1 var(--f-body); margin-bottom: 14px; }
.site-footer nav, .footer-contact { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav a, .footer-contact a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--blue); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .88rem; }

/* ---------- Sticky actions ---------- */
.sticky-cta { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px; }
.sticky-cta .btn { display: none; }
.wa-btn { width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37,211,102,.8); transition: transform .15s; }
.wa-btn:hover { transform: scale(1.07); }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav, .header-phone { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .mobile-nav { display: grid; padding: 0 var(--pad); max-height: 0; overflow: hidden; background: #fff; transition: max-height .3s ease, padding .3s; }
  .mobile-nav.is-open { max-height: 560px; padding: 6px var(--pad) 20px; box-shadow: 0 16px 24px -20px rgba(30,41,59,.4); }
  .mobile-nav a { padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .hero-mascot { width: 110px; right: 2%; }
  .track-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .compare, .ages-grid, .journey-grid, .why-grid, .faq-wrap, .book-card { grid-template-columns: 1fr; }
  .journey-left, .faq-wrap .section-head { position: static; }
  .journey-mascot, .journey-left .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .hero-mascot { display: none; }
  .deco-gear { width: 100px; top: 420px; }
  .topic-pills li { font-size: .85rem; padding-right: 10px; }
  .tp-ico { width: 26px; height: 26px; }
  .hero-title { font-size: clamp(2.05rem, 10.2vw, 2.7rem); }
  .ht-pill { width: 1.2em; }
  .hero-ctas .btn { width: 100%; }
  .hero-facts { flex-direction: column; align-items: center; gap: 8px; }
  .game { padding: 10px; }
  .game-world, .game-code { padding: 14px; }
  .palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blk { font-size: .74rem; padding: 12px 4px; gap: 3px; }
  .run-btn { grid-column: 1 / -1; }
  .age-picker { grid-template-columns: repeat(2, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 11px 8px; font-size: .86rem; }
  .level-head { flex-direction: column; }
  .theme-grid, .why-cards { grid-template-columns: 1fr; }
  .proj-list { grid-template-columns: 1fr; }
  .js { grid-template-columns: auto 1fr; padding: 18px; }
  .js-ico { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .book { padding-top: 48px; }
  .book-card { border-radius: 28px; }
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; padding: 8px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(30,41,59,.35); }
  .sticky-cta .btn { display: inline-flex; flex: 1; }
  .wa-btn { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Brochures ---------- */
.signed-in { font-weight: 600; color: var(--green); background: var(--mint); padding: 10px 16px; border-radius: 999px; font-size: .92rem; }
.brochure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brochure { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform .2s; }
.brochure:hover { transform: translateY(-4px); }
.br-cover { height: 150px; position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 20px; }
.b-junior .br-cover { background: linear-gradient(150deg, #fde4da, #f7b79f); }
.b-senior .br-cover { background: linear-gradient(150deg, #dceafe, #9cc4fa); }
.b-master .br-cover { background: linear-gradient(150deg, #e1e6ef, #a9b6ca); }
.br-cover::before { content: ""; position: absolute; right: 22px; top: 18px; width: 78px; height: 104px; border-radius: 8px; background: #fff; box-shadow: 0 14px 24px -12px rgba(30,41,59,.45); transform: rotate(6deg); }
.br-cover::after { content: "PDF"; position: absolute; right: 30px; top: 30px; font: 800 .72rem/1 var(--f-display); color: #fff; background: var(--orange); padding: 4px 6px; border-radius: 4px; transform: rotate(6deg); }
.br-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-soft); position: relative; z-index: 1; }
.br-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.br-lines { display: grid; gap: 6px; position: relative; z-index: 1; }
.br-lines i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.75); width: 70px; }
.br-lines i:nth-child(2) { width: 50px; } .br-lines i:nth-child(3) { width: 60px; }
.br-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1; }
.br-body p { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.br-body .btn { margin-top: auto; }
.br-body .btn .i { stroke-width: 2.2; }

/* ---------- Modal ---------- */
.modal { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 28px; padding: 30px; box-shadow: 0 40px 80px -30px rgba(15,23,42,.55); color: var(--ink); overflow-y: auto; }
.modal::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f5f9; font-size: 1.5rem; line-height: 1; color: var(--ink-2); cursor: pointer; }
.modal-close:hover { background: #e2e8f0; }
.modal-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding-right: 36px; }
.modal-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--peach); color: var(--orange); display: grid; place-items: center; flex: none; }
.modal-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.modal-head p { color: var(--ink-2); font-size: .92rem; }
.google-area { display: grid; justify-items: center; gap: 14px; margin-bottom: 14px; }
.google-area #google-btn { min-height: 44px; }
.or { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-done { background: var(--mint); color: #0f7a52; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
#brochure-form { display: grid; gap: 12px; }
#brochure-form input[type=text], #brochure-form input[type=email], #brochure-form input[type=tel] { font: 400 1rem/1.4 var(--f-body); color: var(--ink); padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #f8fafc; width: 100%; }
#brochure-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(26,111,224,.15); }
#brochure-form input[readonly] { background: #f1f5f9; color: var(--ink-2); }
#brochure-form input[aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.f-err { color: #b91c1c; font-size: .85rem; font-weight: 600; min-height: 0; margin-top: -4px; }
.f-err:empty { display: none; }
.form-level { margin-top: 0; }

@media (max-width: 1100px) { .brochure-grid { grid-template-columns: 1fr; max-width: 560px; } .br-cover { height: 120px; } }
@media (max-width: 640px) { .modal { padding: 24px 20px; border-radius: 22px; } }

.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid #dadce0; background: #fff; color: #1f1f1f; font: 600 .98rem/1 var(--f-body); cursor: pointer; transition: background-color .15s, border-color .15s; }
.google-btn:hover { background: #f8fafc; border-color: #c4c7cc; }
.google-btn svg { width: 20px; height: 20px; }
