:root {
  --purple: #4b3a73;
  --purple-mid: #6a53a8;
  --purple-soft: #f3eefb;
  --cyan: #1ab3cc;
  --cyan-soft: #e9f9fc;
  --magenta: #da1e5b;
  --magenta-soft: #fff0f5;
  --yellow: #f7be00;
  --yellow-soft: #fff8df;
  --gold: #c49a2e;
  --ink: #302a3f;
  --muted: #6b6580;
  --line: rgba(75, 58, 115, 0.14);
  --paper: #ffffff;
  --page: #fbfaff;
  --shadow: 0 18px 42px rgba(75, 58, 115, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Mulish", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  translate: 0 -160%;
}
.skip-link:focus { translate: 0; }

/* The school-wide header is the page's only navigation bar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(75, 58, 115, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.site-header .nav {
  display: flex;
  width: min(1500px, 100%);
  min-height: 84px;
  margin: 0 auto;
  padding: 10px 28px;
  align-items: center;
  gap: 22px;
}

.site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--purple);
  text-decoration: none;
}

.site-header .brand img { width: auto; height: 44px; object-fit: contain; }
.site-header .brand > span {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.06;
}

.site-header .nav-links {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 16px;
}

.site-header .nav-links > a {
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.stem-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  padding: 78px max(28px, calc((100% - 1320px) / 2)) 70px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: 64px;
  background: #f8f5fc;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/programs/mazais-tehnopratnieks.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0.08;
  filter: saturate(0.8);
}

.hero-copy, .stem-lab { position: relative; z-index: 1; }
.hero-copy { max-width: 700px; }

.eyebrow {
  margin: 0;
  color: var(--magenta);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stem-hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.stem-hero h1 span { color: var(--magenta); }

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: translate 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover { translate: 0 -2px; }
.button-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 13px 26px rgba(218, 30, 91, 0.22);
}
.button-primary:hover { background: #bd174d; }
.button-secondary {
  border-color: rgba(75, 58, 115, 0.3);
  background: rgba(255, 255, 255, 0.76);
  color: var(--purple);
}
.button-secondary:hover { border-color: var(--purple-mid); background: #fff; }

.hero-facts {
  display: flex;
  margin: 32px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 11px 22px;
  color: var(--purple);
  list-style: none;
}

.hero-facts li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  font-weight: 700;
}

.hero-facts li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.stem-lab {
  min-height: 500px;
}

.lab-label {
  position: absolute;
  top: 12px;
  left: 50%;
  margin: 0;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  translate: -50% 0;
  white-space: nowrap;
}

.stem-system {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 430px;
  translate: -50% -47%;
}

.system-ring {
  position: absolute;
  border: 1px dashed rgba(75, 58, 115, 0.34);
  border-radius: 50%;
  animation: ring-spin 30s linear infinite;
}

.ring-one { inset: 42px; }
.ring-two { inset: 104px; animation-direction: reverse; animation-duration: 22s; }

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 148px;
  height: 148px;
  translate: -50% -50%;
  border: 2px solid var(--purple);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 18px 36px rgba(75, 58, 115, 0.24);
  animation: core-pulse 4s ease-in-out infinite;
}

.system-core strong {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 29px;
  font-weight: 800;
}

.system-core small { margin-top: 2px; color: #dcd5ef; font-size: 11px; }

.stem-node {
  position: absolute;
  display: flex;
  width: 106px;
  height: 106px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--purple);
  box-shadow: 0 13px 28px rgba(75, 58, 115, 0.16);
  animation: node-float 5s ease-in-out infinite;
}

.stem-node b {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.stem-node small { font-size: 11px; font-weight: 700; }
.node-s { top: 0; left: 162px; background: #83ddec; }
.node-t { top: 162px; right: 0; background: #b9a6ef; animation-delay: -1.2s; }
.node-e { bottom: 0; left: 162px; background: #f49abb; animation-delay: -2.4s; }
.node-m { top: 162px; left: 0; background: #f6ce48; animation-delay: -3.6s; }

.lab-chip {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid var(--purple);
  border-radius: 4px;
  background: #fff;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(75, 58, 115, 0.12);
  animation: chip-drift 4.8s ease-in-out infinite;
}

.chip-one { top: 78px; left: 4px; rotate: -4deg; }
.chip-two { right: 2px; bottom: 54px; rotate: 4deg; animation-delay: -1.6s; }
.chip-three { right: 0; top: 83px; rotate: 3deg; animation-delay: -3.2s; }

.stem-guide {
  width: min(1180px, calc(100% - 48px));
  margin: 68px auto;
  padding: 44px;
  border: 1px solid rgba(75, 58, 115, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 5%, rgba(26, 179, 204, 0.12), transparent 30%),
    radial-gradient(circle at 94% 92%, rgba(218, 30, 91, 0.1), transparent 31%),
    #fff;
  box-shadow: 0 22px 54px rgba(75, 58, 115, 0.11);
}

.stem-guide-intro {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.stem-guide-intro h2 {
  margin: 10px 0 8px;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.stem-guide-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.stem-guide-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stem-guide-link {
  display: grid;
  min-height: 166px;
  padding: 22px;
  align-content: start;
  border: 1px solid rgba(75, 58, 115, 0.11);
  border-radius: 18px;
  background: rgba(251, 250, 255, 0.9);
  color: var(--purple);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, translate 180ms ease;
}

.stem-guide-link > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-mid);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.stem-guide-link strong {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.stem-guide-link small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stem-guide-link:hover,
.stem-guide-link:focus-visible {
  border-color: rgba(218, 30, 91, 0.36);
  box-shadow: 0 14px 28px rgba(75, 58, 115, 0.12);
  outline: none;
  translate: 0 -3px;
}

.stem-guide-action {
  display: flex;
  width: min(650px, 100%);
  margin: 28px auto 0;
  padding: 18px 20px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 18px;
  background: var(--purple);
  text-align: center;
}

.stem-guide-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.stem-guide-action .button {
  flex: 0 0 auto;
}

.audience-strip {
  display: flex;
  min-height: 76px;
  padding: 18px 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 34px;
  background: var(--purple);
  color: #fff;
}

.audience-strip p {
  margin: 0;
  color: #f7d45e;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.audience-strip span {
  position: relative;
  padding-left: 19px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.audience-strip span::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  content: "";
  rotate: 45deg;
}

.program-section,
.practical-section {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 94px 0 108px;
  scroll-margin-top: 96px;
}

.section-heading {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: end;
  gap: 60px;
}

.section-heading h2,
.benefits-copy h2,
.request-copy h2 {
  margin: 14px 0 0;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.audience-picker {
  display: grid;
  margin-bottom: 34px;
  overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.audience-button {
  min-height: 64px;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.audience-button:last-child { border-right: 0; }
.audience-button span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.audience-button:hover { background: var(--purple-soft); }
.audience-button.is-active { background: var(--purple); color: #fff; }
.audience-button.is-active span { color: #ded7ef; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.program-card {
  --accent: var(--purple-mid);
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(75, 58, 115, 0.08);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, translate 0.22s ease;
}

.program-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
  translate: 0 -4px;
}

.program-card.is-hidden { display: none; }
.program-card.is-entering { animation: card-enter 0.42s ease both; animation-delay: calc(var(--order) * 45ms); }
.program-art { --accent: var(--magenta); }
.program-cubetto { --accent: var(--cyan); }
.program-robots { --accent: var(--purple-mid); }
.program-theatre { --accent: var(--gold); }

.program-media {
  position: relative;
  height: 232px;
  overflow: hidden;
  flex: 0 0 232px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
}

.program-media::before {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: linear-gradient(rgba(75, 58, 115, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 58, 115, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
}

.media-caption {
  position: absolute;
  right: 15px;
  bottom: 14px;
  left: 15px;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
}

.idea-card {
  position: absolute;
  top: 52px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 126px;
  height: 98px;
  translate: -50% 0;
  border: 2px solid var(--purple);
  border-radius: 6px;
  place-items: center;
  background: #fff;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 7px 8px 0 rgba(75, 58, 115, 0.15);
}
.card-emotion { margin-left: -110px; rotate: -10deg; background: #ffd8e5; }
.card-technique { z-index: 3; background: #d9f5fa; }
.card-action { margin-left: 110px; rotate: 10deg; background: #fff0ae; }

.grid-route {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 330px;
  height: 166px;
  translate: -50% 0;
  border: 2px solid rgba(75, 58, 115, 0.22);
  background-image: linear-gradient(rgba(75, 58, 115, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 58, 115, 0.16) 1px, transparent 1px);
  background-size: 55px 55px;
}

.wood-robot {
  position: absolute;
  top: 75px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 68px;
  translate: -50% 0;
  border: 2px solid var(--purple);
  border-radius: 24px 24px 12px 12px;
  background: #e5b66c;
  box-shadow: 7px 7px 0 rgba(75, 58, 115, 0.16);
  animation: robot-step 5s ease-in-out infinite;
}

.wood-robot::before,
.wood-robot::after {
  position: absolute;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  content: "";
}
.wood-robot::before { left: 19px; }
.wood-robot::after { right: 19px; }
.wood-robot i { position: absolute; right: 18px; bottom: 14px; left: 18px; height: 2px; background: var(--purple); }

.route-block {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  border: 2px solid var(--purple);
  border-radius: 5px;
  place-items: center;
  color: var(--purple);
  font-weight: 800;
}
.block-up { top: 36px; left: 20%; background: #f8d34d; }
.block-right { right: 19%; bottom: 43px; background: #8addbd; }
.route-goal { position: absolute; top: 46px; right: 25%; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--magenta); }

.robots-media {
  background: linear-gradient(135deg, #ece8fb 0%, #f8f6fd 52%, #e2daf7 100%);
}

.robot-track {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 330px;
  height: 150px;
  translate: -50% 0;
  border: 2px dashed rgba(75, 58, 115, 0.4);
  border-radius: 74px;
}

.robot-track::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(106, 83, 168, 0.28);
  border-radius: inherit;
  content: "";
}

.sensor-robot {
  position: absolute;
  top: 78px;
  left: calc(50% - 40px);
  z-index: 2;
  width: 80px;
  height: 62px;
  border: 2px solid var(--purple);
  border-radius: 16px 16px 9px 9px;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(75, 58, 115, 0.16);
  animation: sensor-drive 5.4s ease-in-out infinite;
}

.sensor-robot::before,
.sensor-robot::after {
  position: absolute;
  bottom: -10px;
  width: 22px;
  height: 13px;
  border-radius: 4px;
  background: var(--purple);
  content: "";
}
.sensor-robot::before { left: 8px; }
.sensor-robot::after { right: 8px; }
.sensor-robot i {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 15px;
  height: 15px;
  translate: -50% 0;
  border: 4px solid var(--cyan);
  border-radius: 50%;
}

.sensor-signal {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(31, 181, 205, 0.15);
  animation: signal-pulse 2.4s ease-in-out infinite;
}
.signal-one { top: 53px; left: 27%; }
.signal-two { right: 25%; bottom: 54px; animation-delay: -1.2s; }
.sensor-goal {
  position: absolute;
  top: 48px;
  right: 28%;
  z-index: 2;
  width: 30px;
  height: 30px;
  rotate: 45deg;
  border: 2px solid var(--purple);
  background: var(--yellow);
}

.stage-curtain { position: absolute; top: 0; bottom: 0; z-index: 1; width: 42%; background: #7a3460; }
.curtain-left { left: 0; clip-path: polygon(0 0, 100% 0, 68% 100%, 0 100%); }
.curtain-right { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 32% 100%); }
.stage-person { position: absolute; bottom: 42px; z-index: 2; width: 38px; height: 65px; border-radius: 20px 20px 7px 7px; background: var(--purple); }
.stage-person::before { position: absolute; top: -20px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--purple); content: ""; }
.person-one { left: 32%; }
.person-two { left: 48%; height: 78px; background: var(--magenta); }
.person-two::before { background: var(--magenta); }
.person-three { right: 30%; height: 59px; }

.program-body {
  display: flex;
  padding: 25px;
  flex: 1 1 auto;
  flex-direction: column;
}

.program-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.program-topline > span:last-child {
  color: var(--accent);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 4px;
  align-items: center;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
}
.status-approved { background: #dff6ed; color: #246f55; }
.status-method { background: var(--magenta-soft); color: #a71949; }
.status-draft { background: var(--yellow-soft); color: #796000; }
.status-upcoming { background: var(--magenta-soft); color: #a71949; }

.program-audience {
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.program-card h3 {
  margin: 8px 0 10px;
  color: var(--purple);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

.program-summary { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.key-points {
  display: flex;
  margin-top: 17px;
  flex-wrap: wrap;
  gap: 7px;
}

.key-points span {
  padding: 5px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
}

.program-facts {
  display: grid;
  margin: 20px 0 0;
  padding-top: 17px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
}

.program-facts div { min-width: 0; }
.program-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.program-facts dd { margin: 3px 0 0; color: var(--purple); font-size: 12px; font-weight: 800; line-height: 1.4; }

.program-details {
  margin-top: 20px;
  padding: 17px 0 2px 16px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}

.program-details h4 { margin: 0 0 7px; color: var(--purple); font-family: "Poppins", Arial, sans-serif; font-size: 14px; }
.program-details p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.program-details ul { margin: 0 0 14px; padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.program-details li + li { margin-top: 5px; }
.draft-note { padding: 10px 12px; background: var(--yellow-soft); color: #6f5800 !important; }

.level-list { margin-bottom: 13px; }
.level-list article { padding: 12px 0; border-bottom: 1px solid var(--line); }
.level-list article:first-child { padding-top: 0; }
.level-list article > span { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.level-list h4 { margin-top: 3px; }
.level-list article p { margin-bottom: 0; }

.card-actions {
  display: flex;
  margin-top: auto;
  padding-top: 23px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-actions-single { justify-content: flex-start; }

.details-toggle,
.add-action {
  min-height: 42px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.details-toggle {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid var(--purple);
  border-radius: 0;
  background: transparent;
  color: var(--purple);
}
.details-toggle:hover { border-color: var(--accent); color: var(--accent); }

.add-action {
  padding: 9px 13px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
}
.add-action:hover { border-color: var(--accent); background: var(--accent); }

.benefits-section {
  display: grid;
  padding: 96px max(28px, calc((100% - 1264px) / 2));
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 78px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: 96px;
}

.benefits-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.inline-link { display: inline-flex; margin-top: 12px; align-items: center; gap: 8px; color: var(--purple); font-weight: 800; text-decoration: none; }
.inline-link span { color: var(--magenta); font-size: 18px; transition: translate 0.2s ease; }
.inline-link:hover { color: var(--magenta); }
.inline-link:hover span { translate: 4px 0; }

.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit-grid article { min-height: 194px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-grid article > span { display: grid; width: 38px; height: 38px; margin-bottom: 23px; border-radius: 50%; place-items: center; background: var(--cyan-soft); color: var(--purple); font-size: 12px; font-weight: 800; }
.benefit-grid article:nth-child(2) > span { background: var(--magenta-soft); }
.benefit-grid article:nth-child(3) > span { background: var(--yellow-soft); }
.benefit-grid article:nth-child(4) > span { background: var(--purple-soft); }
.benefit-grid h3 { margin: 0 0 6px; color: var(--purple); font-family: "Poppins", Arial, sans-serif; font-size: 17px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.process-section {
  padding: 94px max(28px, calc((100% - 1264px) / 2)) 104px;
  background: var(--purple);
  color: #fff;
  scroll-margin-top: 96px;
}

.section-heading-dark h2 { color: #fff; }
.section-heading-dark .eyebrow { color: #f7d45e; }
.section-heading-dark > p { color: #d4cce6; }

.process-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.process-grid li {
  position: relative;
  min-height: 228px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.process-grid li:last-child { border-right: 0; }
.process-grid li:hover { background: rgba(255, 255, 255, 0.06); }
.process-grid li > span { display: grid; width: 42px; height: 42px; margin-bottom: 42px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 50%; place-items: center; color: #f7d45e; font-family: "Poppins", Arial, sans-serif; font-weight: 800; }
.process-grid h3 { margin: 0 0 8px; color: #fff; font-family: "Poppins", Arial, sans-serif; font-size: 19px; }
.process-grid p { margin: 0; color: #d4cce6; font-size: 14px; line-height: 1.6; }

.practical-section { padding-bottom: 92px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); background: #fff; }
.faq-list summary { position: relative; padding: 22px 54px 22px 0; color: var(--purple); font-family: "Poppins", Arial, sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 18px; right: 6px; display: grid; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; place-items: center; color: var(--magenta); content: "+"; font-family: Arial, sans-serif; font-size: 20px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 860px; margin: -5px 0 0; padding: 0 54px 23px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.request-section {
  display: grid;
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 98px 0 108px;
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.22fr);
  align-items: start;
  gap: 82px;
  scroll-margin-top: 96px;
}

.request-copy > p:not(.eyebrow) { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.contact-person { display: flex; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); align-items: center; gap: 14px; }
.contact-person > span { display: grid; width: 50px; height: 50px; border-radius: 50%; place-items: center; background: var(--cyan); color: #fff; font-family: "Poppins", Arial, sans-serif; font-size: 15px; font-weight: 800; }
.contact-person div { display: flex; flex-direction: column; gap: 2px; }
.contact-person strong { color: var(--purple); font-size: 13px; }
.contact-person a { color: var(--muted); font-size: 13px; text-decoration: none; }
.contact-person a:hover { color: var(--magenta); }

.request-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--magenta);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.request-form label { display: block; margin-bottom: 17px; color: var(--purple); font-size: 13px; font-weight: 800; }
.optional { color: #898397; font-size: 11px; font-weight: 500; }
.request-form input:not([type="checkbox"]), .request-form select, .request-form textarea { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #cfc9d8; border-radius: 5px; background: #fdfcff; color: var(--ink); outline: none; }
.request-form input:not([type="checkbox"]), .request-form select { min-height: 47px; }
.request-form textarea { resize: vertical; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { border-color: var(--purple-mid); box-shadow: 0 0 0 3px rgba(106, 83, 168, 0.12); }
.request-form [aria-invalid="true"] { border-color: var(--magenta) !important; }
.consent { display: flex !important; margin: 2px 0 18px !important; align-items: flex-start; gap: 10px; color: var(--muted) !important; font-weight: 600 !important; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple-mid); }
.form-error { margin: 0 0 15px; padding: 10px 12px; border-left: 4px solid var(--magenta); background: var(--magenta-soft); color: #8e173f; font-size: 13px; }
.form-success { margin: 0 0 15px; padding: 10px 12px; border-left: 4px solid var(--cyan); background: var(--cyan-soft); color: #285b65; font-size: 13px; font-weight: 700; }
.stem-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent a { color: var(--purple); font-weight: 800; }
.button-submit { width: 100%; border: 0; background: var(--magenta); color: #fff; }
.button-submit:hover { background: var(--purple); }
.button-submit:disabled { cursor: wait; opacity: 0.72; }
.form-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.stem-supporters {
  display: grid;
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 88px;
  grid-template-columns: minmax(240px, 0.65fr) minmax(480px, 1.35fr);
  align-items: center;
  gap: 72px;
}

.supporter-logo {
  display: flex;
  min-height: 150px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.supporter-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.supporter-logo-stem img { max-width: 360px; }
.supporter-logo-funding img { max-width: 760px; }

.stem-footer {
  padding: 46px max(28px, calc((100% - 1264px) / 2)) 22px;
  border-top: 1px solid var(--line);
  background: #f3eef8;
}

.footer-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.footer-brand span { font-size: 11px; }
.footer-main > p { max-width: 400px; margin: 0; color: var(--muted); font-size: 13px; }
.footer-main > div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-main > div a { color: var(--purple); font-size: 12px; font-weight: 800; text-decoration: none; }
.footer-main > div a:hover { color: var(--magenta); }
.footer-bottom { margin: 30px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: 360px;
  padding: 14px 17px;
  border-radius: 6px;
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

@keyframes ring-spin { to { rotate: 360deg; } }
@keyframes core-pulse { 50% { scale: 1.04; box-shadow: 0 22px 44px rgba(75, 58, 115, 0.3); } }
@keyframes node-float { 50% { translate: 0 -9px; } }
@keyframes chip-drift { 50% { translate: 0 -7px; } }
@keyframes robot-step { 50% { translate: calc(-50% + 40px) 9px; rotate: 4deg; } }
@keyframes sensor-drive { 50% { translate: 58px 18px; rotate: 5deg; } }
@keyframes signal-pulse { 50% { scale: 1.25; opacity: 0.62; } }
@keyframes card-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0; } }

@media (max-width: 1180px) {
  .school-home { display: none; }
  .stem-hero { grid-template-columns: minmax(0, 1fr) 430px; gap: 36px; }
  .stem-hero h1 { font-size: 48px; }
  .stem-system { scale: 0.9; }
}

@media (max-width: 980px) {
  .stem-hero { min-height: 0; padding-top: 68px; grid-template-columns: 1fr; gap: 18px; }
  .hero-copy { max-width: 760px; }
  .stem-lab { min-height: 460px; }
  .stem-guide-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-section, .request-section { grid-template-columns: 1fr; }
  .stem-supporters { grid-template-columns: 1fr; gap: 24px; }
  .benefits-section { gap: 48px; }
  .request-section { gap: 48px; }
  .request-copy { max-width: 700px; }
}

@media (max-width: 760px) {
  .stem-hero { padding: 54px 20px 42px; }
  .stem-hero h1 { font-size: 41px; }
  .hero-lead { font-size: 16px; }
  .stem-lab { min-height: 400px; }
  .stem-system { scale: 0.76; }
  .stem-guide { width: min(100% - 32px, 1180px); margin: 46px auto; padding: 30px 22px; }
  .program-section, .practical-section, .request-section { width: min(100% - 32px, 1320px); padding-top: 70px; padding-bottom: 78px; }
  .stem-supporters { width: min(100% - 32px, 1320px); padding-bottom: 70px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading h2, .benefits-copy h2, .request-copy h2 { font-size: 34px; }
  .audience-picker { grid-template-columns: repeat(2, 1fr); }
  .audience-button:nth-child(2) { border-right: 0; }
  .audience-button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .program-grid { grid-template-columns: 1fr; }
  .benefits-section { padding: 72px 20px; }
  .process-section { padding: 72px 20px 80px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .process-grid li:last-child { border-bottom: 0; }
  .process-grid li > span { margin-bottom: 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  #programmas, #ieguvumi, #process, #praktiski, #pieteikums { scroll-margin-top: 96px; }
}

@media (max-width: 520px) {
  .stem-hero h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-facts { flex-direction: column; gap: 9px; }
  .stem-lab { min-height: 328px; }
  .stem-system { scale: 0.59; }
  .lab-label { top: 4px; }
  .lab-chip { display: none; }
  .stem-guide-links { grid-template-columns: 1fr; }
  .stem-guide-link { min-height: 0; }
  .stem-guide-action { align-items: stretch; flex-direction: column; gap: 14px; }
  .stem-guide-action .button { width: 100%; }
  .audience-strip { justify-content: flex-start; gap: 13px 20px; }
  .program-media { height: 204px; flex-basis: 204px; }
  .idea-card { width: 102px; height: 83px; font-size: 10px; }
  .card-emotion { margin-left: -82px; }
  .card-action { margin-left: 82px; }
  .grid-route { width: 280px; }
  .robot-track { width: 280px; }
  .program-body { padding: 21px; }
  .program-card h3 { font-size: 22px; }
  .program-facts { grid-template-columns: 1fr; gap: 9px; }
  .program-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .program-facts dd { text-align: right; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .details-toggle, .add-action { width: 100%; }
  .details-toggle { border: 1px solid var(--line); border-radius: 5px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .request-form { padding: 22px 18px; }
  .faq-list summary { font-size: 14px; }
  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .stem-node {
    animation-name: node-float-gentle !important;
    animation-duration: 9s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: ease-in-out !important;
  }
  @keyframes node-float-gentle { 50% { translate: 0 -4px; } }
}
