:root {
  --bg: #071018;
  --bg-2: #0d1a22;
  --ink: #eef6f0;
  --muted: #9bb0a6;
  --accent: #96e14a;
  --accent-2: #5ad4c6;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --tab-3d: #2ee36a;
  --tab-arduino: #153a7a;
  --tab-robot: #3d8bfd;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="home"] {
  --bg: #071018;
  --bg-2: #10232b;
  --ink: #f3fff4;
  --muted: #a8c0b4;
  --accent: #96e14a;
  --accent-2: #5ad4c6;
}

html[data-theme="model"] {
  --bg: #050806;
  --bg-2: #0c1610;
  --ink: #e9ffe8;
  --muted: #8fb89a;
  --accent: #2ee36a;
  --accent-2: #b7ff3c;
  --card: rgba(46, 227, 106, 0.08);
}

html[data-theme="arduino"] {
  --bg: #06101f;
  --bg-2: #0a1b38;
  --ink: #eaf2ff;
  --muted: #8aa3c7;
  --accent: #3d7cff;
  --accent-2: #7eb6ff;
  --card: rgba(61, 124, 255, 0.1);
}

html[data-theme="robot"] {
  --bg: #07141c;
  --bg-2: #102433;
  --ink: #eef7ff;
  --muted: #9bb4c6;
  --accent: #4aa3ff;
  --accent-2: #9be36a;
}

html[data-theme="robot-14"] {
  --bg: #12240f;
  --bg-2: #1c3a16;
  --ink: #f3ffe8;
  --muted: #b4d39a;
  --accent: #9be36a;
  --accent-2: #d6ff7a;
  --card: rgba(155, 227, 106, 0.1);
}

html[data-theme="robot-56"] {
  --bg: #0a1830;
  --bg-2: #12305a;
  --ink: #eef5ff;
  --muted: #9db6d8;
  --accent: #3d8bfd;
  --accent-2: #79c4ff;
  --card: rgba(61, 139, 253, 0.12);
}

html[data-theme="stem"] {
  --bg: #07151a;
  --bg-2: #0d2a32;
  --ink: #e8fbff;
  --muted: #9bc4cc;
  --accent: #5ad4c6;
  --accent-2: #96e14a;
}

html[data-theme="consult"] {
  --bg: #101018;
  --bg-2: #1a1a28;
  --ink: #f4f1ff;
  --muted: #b8b0d0;
  --accent: #b7a0ff;
  --accent-2: #5ad4c6;
}

html[data-theme="german"] {
  --bg: #1a1408;
  --bg-2: #2a1e0c;
  --ink: #fff6e4;
  --muted: #d4c09a;
  --accent: #e2b23a;
  --accent-2: #ffd36a;
  --card: rgba(226, 178, 58, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  background: var(--bg);
  color: var(--ink);
  transition: background 0.7s var(--ease), color 0.5s var(--ease);
}
body {
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(1200px 700px at 10% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    radial-gradient(900px 600px at 110% 10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 46%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, var(--bg));
  overflow-x: hidden;
}

h1, h2, h3, .brand strong, .tab-title, .stats strong, .slogan, .step legend {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  animation: drift 16s var(--ease) infinite alternate;
}
.orb-a { left: -8%; top: -12%; background: var(--accent); }
.orb-b { right: -10%; bottom: 5%; background: var(--accent-2); animation-delay: -6s; }
.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 72%);
  opacity: 0.35;
}
.circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 55%, white);
  stroke-width: 1.4;
  opacity: 0.28;
}
.circuit path { stroke-dasharray: 12 10; animation: dash 18s linear infinite; }

.site-header, .main-tabs, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6vw 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  background: color-mix(in srgb, var(--accent) 18%, #000);
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-mark i {
  display: block;
  border-radius: 3px;
  background: var(--accent);
}
.brand-mark i:nth-child(2) { background: var(--accent-2); height: 60%; align-self: end; }
.brand-mark i:nth-child(3) { background: #fff; opacity: 0.8; height: 70%; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
.years-pill {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
}
.years-pill b { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.viber-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b79ff, #5b47e6);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(115, 96, 242, 0.4);
}
.viber-logo,
.viber-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #d7cfff, #7360F2 54%, #3f2db8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 14px rgba(63, 45, 184, 0.35);
}
.viber-chip .viber-logo {
  width: 36px;
  height: 36px;
}
.viber-logo svg,
.viber-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.phone-viber .viber-logo {
  width: 42px;
  height: 42px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 6vw 8px;
}
.top-nav a {
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.top-nav a:hover, .top-nav a.is-current {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
}

.main-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 6vw 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
}
.tab {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: var(--card);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
}
.main-tabs.four { grid-template-columns: repeat(4, 1fr); }
.tab-3d { background: #12351c; color: #e9ffe8; }
.tab-arduino { background: #10244a; color: #eaf2ff; }
.tab-robot { background: linear-gradient(90deg, #1d3a16 0 50%, #12305a 50% 100%); color: #f3fff4; }
.tab-german { background: #2a1e0c; color: #fff6e4; }
.tab:hover, .tab:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
  outline: none;
}
.tab.is-current { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.tab-3d { border-color: color-mix(in srgb, var(--tab-3d) 55%, var(--line)); }
.tab-arduino { border-color: color-mix(in srgb, #3d7cff 55%, var(--line)); }
.tab-robot { border-color: color-mix(in srgb, var(--tab-robot) 55%, var(--line)); }
.tab-3d:hover, .tab-3d.is-current { background: color-mix(in srgb, var(--tab-3d) 18%, var(--card)); }
.tab-arduino:hover, .tab-arduino.is-current { background: color-mix(in srgb, #153a7a 55%, var(--card)); }
.tab-robot:hover, .tab-robot.is-current { background: color-mix(in srgb, var(--tab-robot) 20%, var(--card)); }
.tab-german { border-color: color-mix(in srgb, #e2b23a 55%, var(--line)); }
.tab-german:hover, .tab-german.is-current { background: color-mix(in srgb, #e2b23a 18%, var(--card)); }
.tab-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 16%, #000);
}
.tab-icon svg { width: 34px; height: 34px; }
.tab-copy { display: flex; flex-direction: column; gap: 2px; }
.tab-kicker { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tab-title { font-size: 1.15rem; line-height: 1.15; }

main { padding: 10px 6vw 80px; }
.view {
  display: none;
  animation: rise 0.7s var(--ease);
}
.view.is-active { display: block; }

.hero, .split, .choose-grid, .tiles, .project-grid, .age-grid {
  display: grid;
  gap: 22px;
}
.hero {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: calc(100vh - 230px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}
h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 0.95; margin: 8px 0 16px; }
h1 b { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.survey-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin: 32px auto 8px;
}
.survey-nav .btn { min-width: 160px; }
.survey-nav #prev-step,
.survey-nav #submit-form {
  display: none !important;
}
.survey-nav.has-back #prev-step {
  display: inline-flex !important;
}
.survey-nav.is-last #next-step {
  display: none !important;
}
.survey-nav.is-last #submit-form {
  display: inline-flex !important;
  min-width: 200px;
}
.cta-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 28px 0 8px;
}
.go-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(760px, 100%);
  margin: 48px auto;
  padding: 32px 28px;
  text-align: center;
  border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--card) 88%, transparent));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 16%, transparent);
}
.go-box .go-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.go-box h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  line-height: 1.2;
}
.go-box p {
  margin: 0 0 6px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.55;
}
.go-box .btn { min-width: 240px; }
.to-signup {
  position: fixed;
  right: 18px;
  top: 44%;
  z-index: 40;
  width: 92px;
  height: 92px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #08120c;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent),
    0 16px 36px color-mix(in srgb, var(--accent) 40%, #000);
  animation: bounce-arrow 1.2s ease-in-out infinite;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.to-signup svg { width: 30px; height: 30px; }
.to-signup.is-leaving {
  opacity: 0;
  transform: scale(0.55) translateY(18px);
  box-shadow: 0 0 0 0 transparent;
  pointer-events: none;
  animation: none;
}
html[data-page="survey"] .to-signup { display: none; }
.viber-card {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 680px;
  margin: 8px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  background: color-mix(in srgb, #7360F2 18%, var(--card));
  border: 2px solid #7360F2;
  box-shadow: 0 18px 40px rgba(115, 96, 242, 0.22);
}
.viber-icon svg { width: 64px; height: 64px; display: block; }
.viber-copy { display: grid; gap: 6px; }
.viber-copy strong {
  color: #c8b8ff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.viber-copy b { font-size: 1.4rem; line-height: 1.2; }
.viber-copy em { color: var(--muted); font-style: normal; }
.phone-viber {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-viber svg { width: 42px; height: 42px; flex: 0 0 42px; }
.phone-viber input { flex: 1; }
.center-hint { text-align: center; }
.form-status { text-align: center; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
[hidden], .btn[hidden] { display: none !important; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #08120c; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }

.stats { display: flex; gap: 28px; padding: 0; margin: 28px 0 0; list-style: none; }
.stats strong { display: block; font-size: 2rem; color: var(--accent); }
.stats span { color: var(--muted); font-size: 0.9rem; }

.hero-stage { position: relative; min-height: 420px; }
.float-card {
  position: absolute;
  width: min(58%, 320px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
.float-card img { width: 100%; height: 180px; object-fit: cover; }
.card-print { top: 10px; right: 8%; }
.card-board { left: 0; top: 150px; animation-delay: -2s; width: min(50%, 250px); }
.card-board img { height: 150px; object-position: top right; }
.card-bot { right: 4%; bottom: 20px; animation-delay: -4s; }
.card-bot img { height: 150px; object-position: right center; }
.gear {
  position: absolute;
  border: 8px dotted color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.g1 { width: 90px; height: 90px; left: 38%; top: 40px; }
.g2 { width: 54px; height: 54px; right: 12%; bottom: 80px; animation-direction: reverse; }

.choose { margin-top: 20px; }
.choose-grid { grid-template-columns: repeat(3, 1fr); }
.choose-grid.four { grid-template-columns: repeat(4, 1fr); }
.theme-german { background: linear-gradient(180deg, rgba(226,178,58,.2), rgba(0,0,0,.25)); }
.prose { max-width: 78ch; }
.prose p { font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.flow {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flow li {
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid var(--line);
  font-weight: 800;
}
.flow li:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--accent);
}
.path-line {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  line-height: 1.7;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.age-grid.two { grid-template-columns: 1fr 1fr; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.choose-card, .age-card, .tiles article, .project-grid article, .note-card, .survey, .photo-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: var(--shadow);
}
.choose-card, .age-card {
  padding: 26px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.choose-card:hover, .age-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.choose-badge, .age-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.choose-card h3, .age-card h2 { margin: 12px 0; }
.choose-go {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent);
}
.theme-3d { background: linear-gradient(180deg, rgba(46,227,106,.16), rgba(0,0,0,.2)); }
.theme-arduino { background: linear-gradient(180deg, rgba(21,58,122,.55), rgba(0,0,0,.25)); }
.theme-robot { background: linear-gradient(180deg, rgba(61,139,253,.2), rgba(155,227,106,.1)); }

.page-head { max-width: 820px; margin-bottom: 28px; }
.split { grid-template-columns: 1fr 1fr; align-items: center; margin: 10px 0 36px; }
.photo-frame { overflow: hidden; min-height: 320px; }
.photo-frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.photo-frame.deep img { object-position: top right; }
.lime-frame { box-shadow: 0 0 0 6px color-mix(in srgb, #9be36a 35%, transparent); }
.blue-frame { box-shadow: 0 0 0 6px color-mix(in srgb, #3d8bfd 35%, transparent); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--line);
}
.feature-list span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  flex: 0 0 28px;
}

.tiles, .project-grid { grid-template-columns: repeat(4, 1fr); margin: 10px 0 24px; }
.tiles article, .project-grid article { padding: 20px; }
.tiles h3, .project-grid h3 { margin: 0 0 8px; }
.tiles p, .project-grid p { margin: 0; color: var(--muted); }

.slogan {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  text-align: center;
  padding: 32px 28px;
  margin: 36px 0 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent));
}

.age-grid { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.age-card.lime { background: linear-gradient(180deg, #24481c, #163014); }
.age-card.blue { background: linear-gradient(180deg, #163868, #0d2244); }
.age-card.pen { background: linear-gradient(180deg, #4a2260, #2a1848); }
.brick-row { display: flex; gap: 8px; margin-bottom: 18px; }
.brick-row i {
  width: 28px;
  height: 18px;
  border-radius: 6px 6px 4px 4px;
  background: var(--accent);
  position: relative;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 50%, #000);
}
.brick-row i::before, .brick-row i::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 8px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 80%, white);
}
.brick-row i::before { left: 4px; }
.brick-row i::after { right: 4px; }
.age-card.lime .brick-row i:nth-child(2) { background: #d6ff7a; }
.age-card.blue .brick-row i:nth-child(2) { background: #79c4ff; }
.age-card.pen .brick-row i:nth-child(2) { background: #7ee0ff; }

.note-card { padding: 20px; margin-bottom: 16px; }
.note-card p { color: var(--muted); margin: 8px 0 0; }

.survey {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
}
.step-label { text-align: center; }
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress i {
  display: block;
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s var(--ease);
}
.step-label { color: var(--muted); margin: 0 0 18px; }
.step { border: 0; padding: 0; margin: 0 0 18px; min-height: 180px; animation: rise 0.45s var(--ease); }
.step legend { font-size: 1.2rem; line-height: 1.35; margin-bottom: 18px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid;
  place-items: center;
  min-height: 88px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  font-size: 1.3rem;
  font-weight: 800;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.choice:hover span, .choice input:focus-visible + span { transform: translateY(-3px); border-color: var(--accent); }
.choice input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field { display: grid; gap: 8px; }
.field span, .field-hint { color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 2px solid var(--line);
  background: color-mix(in srgb, #000 30%, transparent);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.call-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid var(--accent);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.admin-wrap { padding: 10px 6vw 80px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.answers { width: 100%; border-collapse: collapse; min-width: 980px; }
.answers th, .answers td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.answers th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
.form-status { min-height: 1.4em; color: var(--accent-2); }
#dept-limit-hint { text-align: center; margin: 8px 0 0; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  padding: 24px 6vw 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0 0 6px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(40px, 30px, 0); }
}
@keyframes dash { to { stroke-dashoffset: -280; } }
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@media (max-width: 1100px) {
  .main-tabs.four, .choose-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero, .split, .choose-grid, .tiles, .project-grid, .age-grid, .contact-grid, .choose-grid.four, .age-grid.two { grid-template-columns: 1fr; }
  .main-tabs, .main-tabs.four { grid-template-columns: 1fr; position: static; }
  .tab { min-height: 76px; }
  .hero-stage { min-height: 320px; }
  .site-header { flex-wrap: wrap; }
  .header-actions { width: 100%; }
  .go-box .btn { width: min(100%, 420px); }
  .go-box { margin: 32px auto; padding: 24px 18px; }
  .to-signup {
    right: 10px;
    top: auto;
    bottom: 22px;
    width: 76px;
    height: 76px;
    font-size: 0.64rem;
  }
  .to-signup svg { width: 24px; height: 24px; }
  .viber-card { flex-direction: column; text-align: center; }
  h1 { font-size: clamp(2rem, 10vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
