:root {
  --ink: #121a37;
  --ink-soft: #4f5570;
  --purple: #4c38bb;
  --purple-deep: #34237e;
  --cyan: #12b6df;
  --pink: #ec218f;
  --yellow: #ffec12;
  --paper: #fffdf8;
  --lavender: #f1f0ff;
  --line: #d9d9e5;
  --white: #ffffff;
  --max: 70rem;
  --radius: 1.35rem;
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Poppins", Arial, sans-serif;
  --font-hero: "Nunito", "Poppins", Arial, sans-serif;
}

html,
body {
  overflow-x: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
}

h1,
h2,
h3,
.program,
.price {
  font-family: var(--font-display) !important;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 4.35vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

h3 {
  letter-spacing: -.035em;
}

.topbar {
  background: var(--purple-deep);
  padding: .58rem 0;
}

.nav {
  position: relative;
  top: auto;
  background: #fff;
  border-color: #ecebf1;
  backdrop-filter: none;
}

.nav .shell {
  min-height: 4.25rem;
}

.nav .logo {
  width: 7.5rem;
  filter: none;
}

.links {
  gap: 1.25rem;
}

.button {
  min-height: 3.25rem;
  border-radius: .62rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.links a:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.button.primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 7px 0 rgba(18, 26, 55, .15);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 rgba(18, 26, 55, .15);
}

.hero {
  position: relative;
  min-height: 40rem;
  overflow: hidden;
  background: var(--purple-deep);
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 52%;
  height: auto;
  min-height: 0;
  border-radius: 0;
  background-image: linear-gradient(90deg, rgba(52, 35, 126, .13), transparent 42%), url('/images/tesla-hero-robotika-jesen-2026-fresh.webp');
  background-position: center 54%;
  background-size: cover;
}

.hero-stage {
  position: relative;
  min-height: 40rem;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(35rem, 47%);
  padding: 1rem 0 1.4rem;
}

/* Neutralize the legacy single-column hero rules from tesla-typography.css. */
.hero .hero-stage > .hero-copy:only-child {
  display: block;
  min-height: 0;
  max-width: none;
  padding: 1rem 0 1.4rem;
}

.hero .hero-stage > .hero-copy:only-child h1 {
  max-width: none;
  font-size: clamp(3.6rem, 6vw, 6.5rem);
}

.hero h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: var(--font-hero) !important;
  font-size: clamp(3.5rem, 4.4vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .9;
  text-transform: uppercase;
}

.hero-school,
.hero h1 strong {
  display: block;
  width: max-content;
  max-width: 100%;
  font: inherit;
}

.hero-school b {
  display: inline-block;
  padding: .01em .22em .08em;
  border-radius: .36em;
  background: #d574df;
  color: #fff;
  font-size: .72em;
  letter-spacing: -.06em;
  transform: translateY(-.06em);
}

.hero-tagline {
  max-width: none !important;
  margin: 1rem 0 0;
  color: #fff !important;
  font-family: var(--font-hero);
  font-size: clamp(1.242rem, 2.3vw, 1.668rem) !important;
  font-weight: 800;
}

.hero-emphasis {
  display: inline-block;
  white-space: nowrap;
  padding-bottom: .3em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath d='M5 14 C66 3 162 3 235 11' fill='none' stroke='%23adff4f' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% .52em;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.8rem;
}

.hero-details p {
  min-width: 9.4rem;
  display: grid;
  gap: 0;
  margin: 0;
  padding: .78rem 1rem;
  border-radius: 0 1.4rem 1.4rem 1.4rem;
  background: #c76ae0;
  color: #fff !important;
  font: 800 .96rem/1 var(--font-hero) !important;
  text-transform: uppercase;
}

.hero-details p:first-child {
  background: #b063df;
}

.hero-details span {
  margin-top: .25rem;
}

.hero .actions {
  margin: 2rem 0 0;
}

.hero .secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
}

.hero .secondary:hover {
  background: rgba(255, 255, 255, .1);
}

.proof {
  position: relative;
  z-index: 1;
  background: var(--cyan);
  color: var(--ink);
  padding: 0;
}

.proof .shell {
  gap: 0;
}

.proof .shell > div {
  min-height: 7rem;
  display: grid;
  align-content: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(18, 26, 55, .18);
}

.proof .shell > div:first-child {
  border-left: 1px solid rgba(18, 26, 55, .18);
}

.section {
  padding: clamp(4.5rem, 8.5vw, 7rem) 0;
}

.section:not(.dark):not(.pricing):not(.form-area) {
  background: var(--paper);
}

.intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  margin-bottom: 2.9rem;
}

.intro p,
.section p {
  text-wrap: pretty;
}

.path {
  border-color: var(--line);
}

.path a {
  position: relative;
  min-height: 14rem;
  padding: 1.4rem 1rem 1.6rem;
  border-color: var(--line);
  transition: background .2s ease, transform .2s ease;
}

.path a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: .35rem;
  background: var(--purple);
}

.path a:nth-child(2)::before,
.path a:nth-child(5)::before {
  background: var(--cyan);
}

.path a:nth-child(3)::before {
  background: var(--pink);
}

.path a:nth-child(4)::before {
  background: var(--yellow);
}

.path a:hover {
  background: var(--lavender);
  transform: translateY(-.2rem);
}

.age,
.num {
  color: var(--purple);
}

.dark {
  background: var(--purple-deep);
}

.dark .eyebrow {
  color: var(--cyan);
}

.project-grid {
  grid-template-columns: 1.18fr .91fr .91fr;
  gap: 1rem;
}

.project {
  min-height: 21rem;
  border-radius: 0 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 1rem 2.4rem rgba(18, 26, 55, .24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project:hover {
  transform: translateY(-.35rem);
  box-shadow: 0 1.3rem 3rem rgba(18, 26, 55, .36);
}

.project::before {
  background: linear-gradient(0deg, rgba(30, 20, 86, .88), rgba(30, 20, 86, .3) 38%, rgba(30, 20, 86, .03) 68%);
}

.project:first-child {
  background-image: url('/images/tesla-project-ai-bright-2026.webp');
}

.project:nth-child(2) {
  background-image: url('/images/tesla-project-scratch-bright-2026.webp');
}

.project:nth-child(3) {
  background-image: url('/images/tesla-project-web-bright-2026.webp');
}

.steps {
  gap: 1.5rem;
  border: 0;
  background: transparent;
}

.step {
  position: relative;
  padding: 2rem 0 0;
  border-top: .38rem solid var(--purple);
  background: transparent;
}

.step:nth-child(2) {
  border-color: var(--cyan);
}

.step:nth-child(3) {
  border-color: var(--pink);
}

.step .num {
  margin-bottom: 2rem;
}

.split {
  gap: clamp(2.5rem, 8vw, 7rem);
}

.split .eyebrow,
.form-area .eyebrow {
  color: var(--pink);
}

.feature-list li::before {
  color: var(--cyan);
}

#predavaci.dark {
  background: var(--ink);
}

.teacher {
  border-radius: 0 1.35rem 1.35rem 1.35rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .13);
}

.teacher .eyebrow {
  color: var(--pink);
}

.pricing {
  background: var(--purple);
  color: #fff;
}

.pricing .eyebrow {
  color: var(--cyan);
}

.pricing p {
  color: rgba(255, 255, 255, .88);
}

.pricing .price {
  color: var(--yellow);
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.055em;
}

.pricing .secondary {
  color: #fff;
}

.form-area {
  background: var(--lavender);
}

.form-grid {
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.8rem, 8vw, 7rem);
}

.form-grid > div:last-child {
  padding: clamp(1.35rem, 4vw, 2.65rem);
  border-radius: 0 1.4rem 1.4rem 1.4rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(31, 24, 85, .12);
}

.form input,
.form select,
.form textarea {
  min-height: 3.2rem;
  border-color: #bcbdd0;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid rgba(18, 182, 223, .4);
  border-color: var(--cyan);
}

.footer {
  background: var(--purple-deep);
}

.footer .logo {
  filter: brightness(0) invert(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 2rem, var(--max));
  }

  .topbar .shell {
    display: flex;
    flex-direction: column;
    gap: .1rem;
  }

  .nav .shell {
    min-height: 4.5rem;
    align-items: center;
  }

  .nav .logo {
    width: 6.8rem;
  }

  .links {
    gap: .5rem;
  }

  .links .button {
    min-height: 2.9rem;
    padding-inline: .85rem;
    font-size: .83rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    height: 27.5rem;
    background-position: center 56%;
    transform: translateY(-3.85rem);
  }

  .hero-stage {
    min-height: 0;
    margin-top: -5.75rem;
    padding: 0 0 2.65rem;
  }

  .hero .hero-stage {
    padding: 0 0 2.65rem;
  }

  .hero-copy {
    width: min(40rem, 100%);
    padding: 1.1rem clamp(1.5rem, 6vw, 2.75rem) 2.5rem;
    border-radius: 0 2rem 0 0;
    background: var(--purple);
    box-shadow: 1rem 1rem 0 rgba(18, 26, 55, .2);
  }

  .hero .hero-stage > .hero-copy:only-child {
    padding: 1.1rem clamp(1.25rem, 6vw, 3rem) 2.5rem;
  }

  .hero .hero-stage > .hero-copy:only-child h1 {
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }

  .proof .shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof .shell > div {
    min-height: 5.8rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(18, 26, 55, .18);
  }

  .proof .shell > div:nth-child(odd) {
    border-left: 1px solid rgba(18, 26, 55, .18);
  }

  .intro,
  .split,
  .price-wrap,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .path {
    grid-template-columns: 1fr 1fr;
  }

  .path a {
    min-height: 10.75rem;
  }

  .project-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .project:first-child {
    grid-row: auto;
  }

  .steps {
    gap: 2.25rem;
  }

  .step {
    padding-top: 1.45rem;
  }

  .step .num {
    margin-bottom: 1.25rem;
  }

  .pricing .price-wrap {
    align-items: start;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 2rem, var(--max));
  }

  .topbar {
    font-size: .72rem;
  }

  .nav .shell {
    min-height: 4rem;
  }

  .nav .logo {
    width: 5.8rem;
  }

  .links .button {
    max-width: 9.25rem;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    line-height: 1.12;
  }

  .hero-photo {
    height: 21.75rem;
    background-position: 53% 57%;
    transform: translateY(-5rem);
  }

  .hero-stage {
    width: 100%;
    margin-top: -8.1rem;
    padding-bottom: 2.65rem;
  }

  .hero .hero-stage {
    padding: 0 0 2.65rem;
  }

  .hero-copy {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: .8rem 1rem 2.15rem;
    border-radius: 0;
    box-shadow: none;
  }

  .hero .hero-stage > .hero-copy:only-child {
    padding: .8rem 1rem 2.15rem;
  }

  .hero .hero-stage > .hero-copy:only-child h1 {
    font-size: clamp(2.3rem, 10.8vw, 2.75rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10.7vw, 3rem);
  }

  .hero-tagline {
    font-size: 1.185rem !important;
  }

  .hero-details {
    gap: .55rem;
    margin-top: 1.45rem;
  }

  .hero-details p {
    min-width: 0;
    flex: 1 1 8rem;
    padding: .7rem .75rem;
    font-size: .943rem !important;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.4rem;
  }

  .hero .button {
    width: 100%;
  }

  .proof .shell > div {
    padding: .8rem .75rem;
  }

  .proof strong {
    font-size: .92rem;
  }

  .proof span {
    font-size: .78rem;
  }

  .section {
    padding: 4.75rem 0;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .path {
    grid-template-columns: 1fr;
  }

  .path a {
    min-height: 0;
    gap: 1rem;
    padding: 1.35rem .85rem 1.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .program {
    font-size: 1.45rem;
  }

  .project {
    min-height: 18rem;
  }

  .teacher {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .teacher img {
    height: 7.5rem;
  }

  .teacher h3 {
    font-size: 1.35rem;
  }

  .teacher li,
  .teacher p {
    font-size: .82rem;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .form textarea,
  .form button {
    grid-column: auto;
  }

  .footer .shell {
    flex-direction: column;
  }
}

/* Mobile navigation uses progressive disclosure while keeping the primary CTA visible. */
.menu-toggle,
.header-cta,
.mobile-contact {
  display: none;
}

@media (max-width: 800px) {
  .topbar {
    display: none !important;
  }

  .nav {
    position: relative;
    z-index: 20;
  }

  .nav .shell {
    min-height: 4.5rem;
    display: flex;
    gap: .55rem;
  }

  .nav .shell > a:first-child {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .header-cta {
    min-height: 2.75rem;
    margin-left: auto;
    padding: .65rem .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .72rem;
    background: var(--yellow);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    padding: .65rem;
    display: inline-grid;
    place-content: center;
    gap: .27rem;
    border: 0;
    border-radius: .72rem;
    background: var(--purple-deep);
    color: #fff;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 1.35rem;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(.39rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-.39rem) rotate(-45deg);
  }

  .menu-toggle:focus-visible,
  .header-cta:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
  }

  .nav .links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 21;
    display: grid;
    gap: 0;
    padding: .7rem 1rem 1rem;
    background: var(--paper);
    border-top: 1px solid rgba(52, 35, 126, .12);
    box-shadow: 0 1.2rem 2.5rem rgba(37, 25, 90, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-.65rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .nav.menu-open .links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav .links a,
  .nav .links a:not(.button) {
    min-height: 3rem;
    display: flex;
    align-items: center;
    padding: .7rem .35rem;
    border-bottom: 1px solid rgba(52, 35, 126, .12);
    font-size: 1rem;
  }

  .nav .links .button {
    width: 100%;
    max-width: none;
    margin-top: .7rem;
    justify-content: center;
    border-bottom: 0;
  }

  .mobile-contact {
    display: block;
    background: var(--paper);
    color: var(--purple-deep);
    border-bottom: 1px solid rgba(52, 35, 126, .14);
  }

  .mobile-contact .shell {
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .8rem;
    padding-block: .65rem;
  }

  .mobile-contact span {
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .mobile-contact a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: .45rem .65rem;
    border-radius: .6rem;
    background: var(--purple-deep);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .header-cta {
    padding-inline: .65rem;
    font-size: .72rem;
  }

  .mobile-contact .shell {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .mobile-contact a {
    width: max-content;
  }
}

/* Desktop: keep the display headline fully inside its editorial column. */
@media (min-width: 801px) {
  .hero-photo {
    inset: 0 0 0 52%;
  }

  .hero-copy {
    width: min(35rem, 50%);
  }

  .hero .hero-stage > .hero-copy:only-child {
    width: min(35rem, 50%);
  }

  .hero .hero-stage > .hero-copy:only-child h1 {
    max-width: 100%;
    font-size: clamp(3.4rem, 4.2vw, 3.9rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero h1 strong {
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
  }
}
