@layer page-layout {
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--brand-50);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

/* Sticky navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid rgba(232, 229, 241, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 146px;
}
.brand__logo { width: 100%; height: auto; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--brand-600); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.telegram-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.telegram-link svg { width: 22px; fill: currentColor; }
.account-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--brand-700);
  border: 1px solid rgba(91, 54, 217, .35);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, background .2s ease;
}
.account-link:hover { border-color: var(--brand-600); background: #fff; }
.account-link svg { width: 20px; fill: currentColor; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 54, 217, .23);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(91, 54, 217, .3); }
.btn--outline {
  background: rgba(255, 255, 255, .82);
  color: var(--brand-700);
  border-color: rgba(91, 54, 217, .35);
}
.btn--outline:hover { border-color: var(--brand-600); background: #fff; }
.btn--header { min-height: 42px; padding-inline: 17px; }
.btn--full { width: 100%; }

/* Hero: designed to fit in one desktop viewport */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--hero-bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 36px;
}
.hero__content { position: relative; z-index: 4; min-width: 0; }
.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 10px;
  border-radius: 999px;
  background: #f6f5fa;
  color: #393844;
  box-shadow: inset 0 0 0 1px rgba(63, 43, 128, .035);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-600);
  box-shadow: 0 0 0 5px rgba(91, 54, 217, .1);
}
.hero h1 {
  margin: 34px 0 32px;
  max-width: 670px;
  font-size: clamp(42px, 3.25vw, 50px);
  line-height: 1.035;
  letter-spacing: -.047em;
  font-weight: 500;
  overflow-wrap: break-word;
}
.hero__accent { color: var(--brand-600); }
.hero__lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
/* .hero-facts-strip / .hero-fact in design-system.css is the single source of truth for the fact chips. */
.hero__actions { display: flex; gap: 11px; margin-top: 42px; }
.hero__note {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3f3d48;
  font-size: 13px;
  font-weight: 700;
}
.hero__note svg { width: 19px; fill: var(--brand-600); }

/* The generated visual from the approved concept */
.hero-visual {
  min-width: 0;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-visual__image {
  width: min(100%, 715px);
  height: auto;
  max-height: calc(100svh - var(--header-h) - 38px);
  object-fit: contain;
  object-position: center right;
  mix-blend-mode: multiply;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: #24222b;
}
.scroll-cue svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.next-stage { padding: 96px 0; background: var(--brand-50); border-top: 1px solid var(--line); }
.next-stage__label { margin: 0 0 12px; color: var(--brand-600); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.next-stage h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.045em; }
.next-stage p:not(.next-stage__label) { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

@media (max-width: 1240px) {
  .site-nav { gap: 18px; font-size: 13px; }
  .btn--header { display: none; }
  .hero__grid { grid-template-columns: minmax(0, .98fr) minmax(455px, 1.02fr); gap: 20px; }
  .hero h1 { font-size: clamp(42px, 4.1vw, 50px); }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .container { width: min(100% - 36px, var(--container)); }
  .site-nav, .site-header__actions { display: none; }
  .brand { width: 138px; }
  .menu-toggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: 0 11px;
  }
  .menu-toggle span { width: 100%; height: 2px; border-radius: 2px; background: #25232c; transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    inset: var(--header-h) 0 auto;
    padding: 18px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu nav { display: grid; margin-bottom: 18px; }
  .mobile-menu nav a { padding: 13px 4px; border-bottom: 1px solid #f0eef5; font-weight: 700; }

  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 54px; }
  .hero__content { max-width: 760px; }
  .hero h1 { max-width: 690px; font-size: clamp(42px, 6.5vw, 58px); }
  .hero__lead { max-width: 680px; }
  .hero-visual { min-height: 0; justify-content: center; margin-top: 6px; }
  .hero-visual__image { width: min(100%, 700px); max-height: none; mix-blend-mode: normal; }
  .scroll-cue { display: none; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero__grid { padding-top: 26px; padding-bottom: 44px; }
  .eyebrow { font-size: 12px; padding-right: 11px; }
  .hero h1 {
    margin-top: 30px;
    font-size: clamp(30px, 8.5vw, 45px);
    line-height: 1.1;
  }
  .hero__lead { font-size: 15.5px; line-height: 1.5; }
  .hero__actions { display: grid; grid-template-columns: 1fr; margin-top: 38px; }
  .btn { min-height: 52px; }
  .hero__note { margin-top: 20px; }
  .hero-visual { margin-top: 2px; }
  .hero-visual__image { width: 112%; max-width: 112%; margin-inline: -6%; }
  .next-stage { padding: 70px 0; }
}

/* Extra tightening for common 13–14” laptop heights. */
@media (min-width: 981px) and (max-height: 820px) {
  :root { --header-h: 68px; }
  .brand { width: 132px; }
  .hero__grid { padding-top: 18px; padding-bottom: 24px; }
  .hero h1 { margin-top: 17px; margin-bottom: 14px; font-size: clamp(40px, 3.2vw, 49px); }
  .hero__lead { font-size: 15px; line-height: 1.43; }
  .hero__actions { margin-top: 16px; }
  .hero__note { margin-top: 10px; }
  .btn { min-height: 44px; }
  .hero-visual__image { max-height: calc(100svh - var(--header-h) - 24px); }
}

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


/* Logicum hero refinement — stage 3 */
@media (min-width: 981px) {
  .hero {
    align-items: stretch;
  }
  .hero__grid {
    min-height: calc(100svh - var(--header-h));
    align-items: center;
    padding-top: 4px;
    padding-bottom: 16px;
  }
  .hero__content {
    align-self: center;
    transform: translateY(-4px);
  }
  .eyebrow { margin-top: -12px; }
  .hero h1 {
    max-width: 675px;
    margin: 32px 0 30px;
    font-size: clamp(39px, 2.95vw, 46px);
    line-height: 1.075;
    font-weight: 500;
    letter-spacing: -.035em;
  }
  .hero__accent { font-weight: inherit; }
  .hero__lead { max-width: 645px; }
  .hero__actions { margin-top: 50px; }
  .hero-visual { background: var(--hero-bg); }
  .hero-visual__image { mix-blend-mode: normal; }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero__grid { padding-top: 0; padding-bottom: 10px; }
  .hero__content { transform: translateY(4px); }
  .eyebrow { margin-top: -12px; }
  .hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(36px, 2.75vw, 43px);
    line-height: 1.06;
    font-weight: 500;
  }
  .hero__lead { font-size: 14px; line-height: 1.38; }
  .hero__actions { margin-top: 38px; }
  .hero__note { margin-top: 16px; }
}

@media (max-width: 620px) {
  .hero { background: var(--hero-bg); }
  .hero h1 { font-weight: 500; letter-spacing: -.035em; }
}

/* Logo readability */
@media (min-width: 1241px) { .brand { width: 166px; } }
@media (min-width: 981px) and (max-width: 1240px) { .brand { width: 152px; } }
@media (max-width: 980px) { .brand { width: 150px; } }


/* Directions section — stage 4 */
.directions {
  position: relative;
  padding: 96px 0 90px;
  background: #f8f7fc;
  border-top: 1px solid #efedf6;
}
.directions__heading {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  align-items: end;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 40px;
}
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-600);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.directions h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 2.65vw, 40px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 700;
}
.directions__intro {
  max-width: 590px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.directions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.direction-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 25px;
  border: 1px solid #e7e3f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(40, 27, 89, .045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.direction-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 54, 217, .28);
  box-shadow: 0 16px 38px rgba(40, 27, 89, .075);
}
.direction-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.direction-card__age {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
}
.direction-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f6f3ff;
  color: var(--brand-600);
}
.direction-card__icon svg { width: 25px; fill: currentColor; }
.direction-card h3 {
  margin: 0;
  max-width: 520px;
  color: #1e1d25;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
}
.direction-card > p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.direction-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.direction-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #ece9f3;
  border-radius: 999px;
  color: #5c5a67;
  background: #fcfbfe;
  font-size: 12px;
  font-weight: 700;
}
.direction-card__link {
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--brand-700);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease;
}
.direction-card__link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .2s ease;
}
.direction-card__link:hover { color: var(--brand-600); }
.direction-card__link:hover span { transform: translateX(3px); }
.direction-card--advanced {
  background: linear-gradient(145deg, #fff 20%, #fbf9ff 100%);
}
.directions-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 19px 20px;
  border: 1px solid rgba(91, 54, 217, .13);
  border-radius: 20px;
  background: #f1edff;
}
.directions-help__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-600);
}
.directions-help__icon svg { width: 24px; fill: currentColor; }
.directions-help__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.directions-help__text strong {
  color: #25232d;
  font-size: 15px;
  font-weight: 700;
}
.directions-help__text span {
  color: #666270;
  font-size: 13.5px;
  line-height: 1.42;
}
.directions-help__button {
  white-space: nowrap;
  box-shadow: none;
}

/* Keep the hero background neutral as agreed. */
@media (min-width: 981px) {
  .hero,
  .hero-visual { background: #fff; }
}
@media (max-width: 620px) {
  .hero { background: #fff; }
}

@media (max-width: 980px) {
  .directions { padding: 78px 0 72px; }
  .directions__heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    margin-bottom: 32px;
  }
  .directions__intro { max-width: 690px; }
  .direction-card { min-height: 320px; padding: 25px; }
  .directions-help { grid-template-columns: auto minmax(0, 1fr); }
  .directions-help__button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 680px) {
  .directions { padding: 64px 0 60px; }
  .section-kicker { font-size: 11.5px; }
  .directions h2 { font-size: clamp(28px, 7.5vw, 32px); }
  .directions__intro { font-size: 15.5px; }
  .directions__grid { grid-template-columns: 1fr; gap: 12px; }
  .direction-card {
    min-height: 0;
    padding: 22px 20px 20px;
    border-radius: 20px;
  }
  .direction-card__top { margin-bottom: 17px; }
  .direction-card h3 { font-size: 24px; }
  .direction-card > p { font-size: 14.5px; }
  .direction-card__link { margin-top: 24px; padding-top: 0; }
  .directions-help {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px;
  }
  .directions-help__icon { display: none; }
  .directions-help__button { grid-column: auto; }
}


/* Why Logicum — stage 5 */
.why {
  padding: 96px 0 92px;
  background: #fff;
  border-top: 1px solid #efedf6;
}
.why__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .7fr);
  align-items: end;
  gap: 68px;
  margin-bottom: 40px;
}
.why h2 {
  max-width: 790px;
  margin: 0;
  color: #1c1b22;
  font-size: clamp(34px, 2.65vw, 40px);
  line-height: 1.1;
  letter-spacing: -.042em;
  font-weight: 700;
}
.why__intro {
  max-width: 560px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.why-card {
  min-height: 224px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 27px 28px;
  border: 1px solid #e9e6f0;
  border-radius: 22px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 54, 217, .25);
  box-shadow: 0 14px 36px rgba(40, 27, 89, .06);
}
.why-card--live {
  background: linear-gradient(145deg, #f7f4ff 0%, #fff 68%);
  border-color: rgba(91, 54, 217, .18);
}
.why-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f2eeff;
  color: var(--brand-600);
}
.why-card__icon svg {
  width: 27px;
  fill: currentColor;
}
.why-card__body {
  min-width: 0;
}
.why-card__number {
  display: block;
  margin-bottom: 8px;
  color: #9a94aa;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
}
.why-card h3 {
  margin: 0;
  color: #232129;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 700;
}
.why-card p {
  max-width: 520px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}
.why-proof {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid #e8e3f7;
  border-radius: 22px;
  background: #f7f4ff;
}
.why-proof__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-600);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.why-proof__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.why-proof__copy strong {
  color: #28252f;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}
.why-proof__copy span {
  max-width: 820px;
  color: #66616f;
  font-size: 13.5px;
  line-height: 1.45;
}
.why-proof__button {
  white-space: nowrap;
  box-shadow: none;
}

@media (max-width: 980px) {
  .why { padding: 78px 0 74px; }
  .why__heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    margin-bottom: 32px;
  }
  .why__intro { max-width: 700px; }
  .why-card { min-height: 228px; padding: 24px; }
  .why-proof {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .why-proof__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .why { padding: 64px 0 60px; }
  .why h2 {
    font-size: clamp(28px, 7.5vw, 32px);
  }
  .why__intro { font-size: 15.5px; }
  .why__grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    padding: 21px 19px;
    border-radius: 20px;
  }
  .why-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .why-card__icon svg { width: 23px; }
  .why-card h3 { font-size: 21px; }
  .why-card p { font-size: 14.5px; }
  .why-proof {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 19px;
  }
  .why-proof__mark { display: none; }
  .why-proof__button { grid-column: auto; }
}


/* Stage 6 — course data inside directions */
.direction-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 17px;
  color: #55515f;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 700;
}
.direction-card__meta span {
  position: relative;
}
.direction-card__meta span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: #b0aabc;
}
.direction-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: auto;
  padding-top: 24px;
}
.direction-card__links .direction-card__link {
  margin-top: 0;
  padding-top: 0;
}
.directions-help {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.directions-help__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 205px;
  color: #666270;
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
}
.directions-help__price strong {
  color: #28252f;
  font-size: 14px;
  font-weight: 700;
}

/* Stage 6 — project outcomes */
.projects {
  padding: 96px 0 92px;
  background: #f8f7fb;
  border-top: 1px solid #efedf6;
}
.projects__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr);
  align-items: end;
  gap: 68px;
  margin-bottom: 40px;
}
.projects h2 {
  max-width: 720px;
  margin: 0;
  color: #1c1b22;
  font-size: clamp(34px, 2.65vw, 40px);
  line-height: 1.1;
  letter-spacing: -.042em;
  font-weight: 700;
}
.projects__intro {
  max-width: 570px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e1ec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(39, 27, 80, .045);
}
.project-card__preview {
  height: 235px;
  padding: 22px;
  overflow: hidden;
  background: #f0edf7;
}
.project-card--python .project-card__preview { background: linear-gradient(145deg, #ede8ff, #f8f6ff); }
.project-card--roblox .project-card__preview { background: linear-gradient(145deg, #eaf3ff, #f7fbff); }
.project-card--minecraft .project-card__preview { background: linear-gradient(145deg, #edf7ee, #f8fbf5); }
.project-card__body { padding: 23px 24px 25px; }
.project-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0ecff;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project-card h3 {
  margin: 12px 0 0;
  color: #222028;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 700;
}
.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.project-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}
.project-card__skills span {
  padding: 6px 9px;
  border: 1px solid #e9e5ef;
  border-radius: 9px;
  color: #5b5664;
  background: #fbfafc;
  font-size: 11.5px;
  font-weight: 700;
}
.mock-window {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(65, 49, 112, .16);
  border-radius: 15px;
  background: #1d1b28;
  box-shadow: 0 18px 42px rgba(45, 31, 92, .15);
  transform: rotate(-1deg);
}
.mock-window__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  background: #292637;
  color: #aaa4ba;
  font-size: 10px;
}
.mock-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: #777184; }
.mock-window__bar span { margin-left: 6px; }
.mock-code {
  padding: 18px 16px;
  color: #dcd8eb;
  font: 11px/1.58 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mock-code b { color: #b99aff; font-weight: 700; }
.mock-code em { color: #8ed7b0; font-style: normal; }
.game-scene, .block-scene { position: relative; height: 100%; overflow: hidden; border-radius: 15px; }
.game-scene--roblox { background: #8ec9ed; box-shadow: 0 18px 42px rgba(42, 72, 99, .13); }
.game-scene__sky { position: absolute; inset: 0 0 47%; background: linear-gradient(#83c7ef, #d8effd); }
.game-scene__ground { position: absolute; inset: 53% 0 0; background: linear-gradient(165deg, #a5b0b6 0 35%, #79878e 35% 56%, #aeb7bb 56%); }
.game-scene__block { position: absolute; bottom: 47px; width: 60px; height: 74px; border-radius: 4px; background: #dfe3e7; box-shadow: inset -10px -10px 0 #c7cdd2; }
.game-scene__block--a { left: 25px; }
.game-scene__block--b { left: 95px; height: 112px; background: #d9e4eb; }
.game-scene__character { position: absolute; left: 50%; bottom: 46px; width: 35px; height: 62px; transform: translateX(-50%); background: #2e65b9; border-radius: 4px; }
.game-scene__character::before { content: ""; position: absolute; left: 3px; top: -27px; width: 29px; height: 29px; border-radius: 5px; background: #efc19f; }
.game-scene__character span::before, .game-scene__character span::after { content: ""; position: absolute; top: 15px; width: 12px; height: 38px; background: #f1c52c; }
.game-scene__character span::before { left: -10px; transform: rotate(8deg); }
.game-scene__character span::after { right: -10px; transform: rotate(-8deg); }
.game-scene__code {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 178px;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(31, 28, 43, .88);
  color: #e7e3ef;
  font: 8.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 8px 20px rgba(30, 30, 40, .15);
}
.block-scene { background: linear-gradient(#aedbef 0 48%, #8ec671 48% 100%); box-shadow: 0 18px 42px rgba(47, 82, 47, .1); }
.block-scene__world { position: absolute; inset: 0; }
.block-scene__world span { position: absolute; width: 48px; height: 48px; background: #84b55c; border: 1px solid rgba(40, 88, 39, .18); box-shadow: inset 0 -12px 0 #875e3b; }
.block-scene__world span:nth-child(1) { left: 15px; bottom: 26px; }
.block-scene__world span:nth-child(2) { left: 63px; bottom: 26px; }
.block-scene__world span:nth-child(3) { left: 111px; bottom: 26px; }
.block-scene__world span:nth-child(4) { left: 63px; bottom: 74px; }
.block-scene__world span:nth-child(5) { left: 111px; bottom: 74px; }
.block-scene__world span:nth-child(6) { left: 111px; bottom: 122px; }
.block-scene__program { position: absolute; right: 13px; top: 13px; width: 155px; display: grid; gap: 5px; }
.block-scene__program span { padding: 7px 9px; border-radius: 6px; background: #7357d9; color: #fff; font-size: 8.5px; line-height: 1.15; box-shadow: 0 5px 12px rgba(59, 41, 111, .13); }
.block-scene__program span:nth-child(2) { margin-left: 12px; background: #e2a12c; }
.block-scene__program span:nth-child(3), .block-scene__program span:nth-child(4) { margin-left: 23px; background: #4f9a72; }
.projects-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid #e7e2f1;
  border-radius: 22px;
  background: #fff;
}
.projects-cta__copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.projects-cta__copy strong { color: #28252f; font-size: 16px; line-height: 1.3; font-weight: 700; }
.projects-cta__copy span { max-width: 850px; color: #66616f; font-size: 13.5px; line-height: 1.45; }
.projects-cta__button { white-space: nowrap; box-shadow: none; }

@media (max-width: 1120px) {
  .directions-help { grid-template-columns: auto minmax(0, 1fr) auto; }
  .directions-help__price { grid-column: 2; }
  .directions-help__button { grid-row: 1 / span 2; grid-column: 3; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-card:last-child .project-card__preview { height: 100%; min-height: 260px; }
}
@media (max-width: 980px) {
  .directions-help { grid-template-columns: auto minmax(0, 1fr); }
  .directions-help__price { grid-column: 2; }
  .directions-help__button { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .projects { padding: 78px 0 74px; }
  .projects__heading { grid-template-columns: 1fr; align-items: start; gap: 18px; margin-bottom: 32px; }
  .projects__intro { max-width: 700px; }
  .projects-cta { grid-template-columns: 1fr; }
  .projects-cta__button { width: 100%; }
}
@media (max-width: 680px) {
  .direction-card__meta { margin-top: 14px; }
  .direction-card__meta span + span::before { display: none; }
  .direction-card__links { padding-top: 20px; }
  .directions-help__price { grid-column: auto; min-width: 0; white-space: normal; }
  .projects { padding: 64px 0 60px; }
  .projects h2 { font-size: clamp(28px, 7.5vw, 32px); }
  .projects__intro { font-size: 15.5px; }
  .projects__grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card:last-child { grid-column: auto; display: block; }
  .project-card__preview, .project-card:last-child .project-card__preview { height: 220px; min-height: 0; padding: 16px; }
  .project-card__body { padding: 20px; }
  .project-card h3 { font-size: 21px; }
  .projects-cta { padding: 19px; }
}


/* Project visuals inside the original framed preview */
.project-card__preview {
  padding: 22px;
}

.project-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

@media (min-width: 981px) {
  .project-card__preview {
    height: 250px;
  }

  .project-card:last-child .project-card__preview {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .project-card__preview,
  .project-card:last-child .project-card__preview {
    height: 220px;
    padding: 16px;
  }

  .project-card__image {
    border-radius: 15px;
  }
}


/* ===== Learning process ===== */
.process {
  padding: 94px 0 88px;
  background: #fff;
  border-top: 1px solid #efedf4;
}
.process__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  align-items: end;
  gap: 54px;
  margin-bottom: 38px;
}
.process h2 {
  max-width: 720px;
  margin: 8px 0 0;
  color: #211f27;
  font-size: clamp(34px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.process__intro {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.process__steps::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: #ded9ea;
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 21px;
  border: 1px solid #e7e3ed;
  border-radius: 22px;
  background: #fff;
}
.process-step--accent {
  border-color: #d8cffb;
  background: linear-gradient(180deg, #f8f6ff 0%, #fff 62%);
}
.process-step__top {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.process-step__number {
  min-width: 45px;
  color: var(--brand-600);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
}
.process-step__badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.process-step__icon {
  width: 48px;
  height: 48px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f1edff;
  color: var(--brand-600);
}
.process-step__icon svg {
  width: 25px;
  fill: currentColor;
}
.process-step h3 {
  margin: 20px 0 0;
  color: #26232c;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}
.process-step p {
  margin: 10px 0 0;
  color: #66616e;
  font-size: 14px;
  line-height: 1.5;
}
.process-step__result {
  margin-top: auto;
  padding-top: 18px;
  color: #494451;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}
.process-trial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 25px 27px;
  border: 1px solid #ddd6f5;
  border-radius: 22px;
  background: #f8f6ff;
}
.process-trial__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.process-trial__eyebrow {
  color: var(--brand-600);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.process-trial__copy strong {
  color: #28242f;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
.process-trial__copy > span:last-child {
  max-width: 780px;
  color: #66616e;
  font-size: 13.5px;
  line-height: 1.45;
}
.process-trial__action {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.process-trial__action small {
  color: #6a6573;
  font-size: 11.5px;
  text-align: center;
}

@media (max-width: 1120px) {
  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process__steps::before {
    display: none;
  }
  .process-step {
    min-height: 315px;
  }
}
@media (max-width: 980px) {
  .process {
    padding: 78px 0 74px;
  }
  .process__heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 17px;
    margin-bottom: 30px;
  }
  .process__intro {
    max-width: 720px;
  }
}
@media (max-width: 680px) {
  .process {
    padding: 64px 0 60px;
  }
  .process h2 {
    font-size: clamp(28px, 7.5vw, 32px);
  }
  .process__intro {
    font-size: 15.5px;
  }
  .process__steps {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .process-step {
    min-height: 0;
    padding: 20px;
  }
  .process-step__icon {
    margin-top: 16px;
  }
  .process-step__result {
    margin-top: 18px;
  }
  .process-trial {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .process-trial__action {
    min-width: 0;
  }
  .process-trial__action .btn {
    width: 100%;
  }
}


/* ===== Learning hub inside the process ===== */
.learning-hub {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 36px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid #e1dced;
  border-radius: 24px;
  background: #fbfaff;
}

.learning-hub__copy {
  min-width: 0;
}

.learning-hub__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-600);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.learning-hub h3 {
  max-width: 520px;
  margin: 0;
  color: #27232f;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 700;
}

.learning-hub__copy p {
  max-width: 580px;
  margin: 11px 0 0;
  color: #66616e;
  font-size: 14px;
  line-height: 1.55;
}

.learning-hub__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.learning-hub__feature {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8e4ef;
  border-radius: 17px;
  background: #fff;
}

.learning-hub__feature-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0ecff;
  color: var(--brand-600);
}

.learning-hub__feature-icon svg {
  width: 20px;
  fill: currentColor;
}

.learning-hub__feature > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.learning-hub__feature strong {
  color: #302c36;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.learning-hub__feature small {
  color: #77717d;
  font-size: 11.5px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .learning-hub {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .learning-hub {
    margin-top: 16px;
    padding: 20px;
  }

  .learning-hub h3 {
    font-size: 21px;
  }

  .learning-hub__features {
    grid-template-columns: 1fr;
  }

  .learning-hub__feature {
    min-height: 78px;
  }
}


/* ===== Audit fixes + conversion funnel ===== */
.direction-card__price {
  color: var(--brand-700);
  font-weight: 700;
}

.parent-progress {
  padding: 92px 0;
  background: #faf9ff;
  border-top: 1px solid #efedf4;
}
.parent-progress__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: 62px;
}
.parent-progress h2,
.reviews h2,
.trial h2,
.faq h2 {
  margin: 8px 0 0;
  color: #211f27;
  font-size: clamp(34px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.parent-progress__copy > p:not(.section-kicker) {
  max-width: 620px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.parent-progress__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 27px;
}
.parent-progress__points > div {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #e5e1ed;
  border-radius: 15px;
  background: #fff;
}
.parent-progress__points strong,
.parent-progress__points span {
  display: block;
}
.parent-progress__points strong {
  color: #302c36;
  font-size: 13px;
  line-height: 1.25;
}
.parent-progress__points span {
  margin-top: 3px;
  color: #77717d;
  font-size: 11.5px;
  line-height: 1.35;
}
.parent-dashboard {
  overflow: hidden;
  border: 1px solid #ded9eb;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(42, 27, 93, .10);
}
.parent-dashboard__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid #edeaf2;
  background: #fff;
}
.parent-dashboard__bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.parent-dashboard__bar strong {
  font-size: 13px;
}
.parent-dashboard__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #56b978;
}
.parent-dashboard__status {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff9f2;
  color: #347849;
  font-size: 10.5px;
  font-weight: 700;
}
.parent-dashboard__main {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #faf9ff;
}
.parent-dashboard__course,
.parent-dashboard__feedback,
.parent-dashboard__path {
  padding: 16px;
  border: 1px solid #e8e4ef;
  border-radius: 17px;
  background: #fff;
}
.parent-dashboard__label {
  display: block;
  color: #8a8492;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.parent-dashboard__course strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}
.parent-dashboard__course small {
  display: block;
  margin-top: 7px;
  color: #77717d;
  font-size: 11px;
}
.parent-dashboard__progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8f3;
}
.parent-dashboard__progress i {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-600);
}
.parent-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.parent-dashboard__stats > div {
  padding: 15px;
  border: 1px solid #e8e4ef;
  border-radius: 17px;
  background: #fff;
}
.parent-dashboard__stats strong,
.parent-dashboard__stats span {
  display: block;
}
.parent-dashboard__stats strong {
  font-size: 12px;
}
.parent-dashboard__stats span {
  margin-top: 4px;
  color: #77717d;
  font-size: 10.5px;
}
.parent-dashboard__lines {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.parent-dashboard__lines i {
  height: 7px;
  border-radius: 999px;
  background: #ece9f1;
}
.parent-dashboard__lines i:nth-child(2) { width: 84%; }
.parent-dashboard__lines i:nth-child(3) { width: 61%; }
.parent-dashboard__pathrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: #55505e;
  font-size: 11px;
  font-weight: 700;
}
.parent-dashboard__pathrow span {
  padding: 7px 9px;
  border-radius: 10px;
  background: #f3f0f7;
}
.parent-dashboard__pathrow .is-done {
  background: #eee9ff;
  color: var(--brand-700);
}
.parent-dashboard__note {
  display: block;
  padding: 0 20px 16px;
  color: #96909c;
  background: #faf9ff;
  font-size: 9.5px;
}

/* Reviews */
.reviews {
  padding: 92px 0;
  background: #fff;
}
.reviews__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}
.reviews__heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.review-card {
  position: relative;
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #e5e1ed;
  border-radius: 23px;
  background: #fbfaff;
}
.review-card__quote {
  color: var(--brand-600);
  font-family: var(--font-ui);
  font-size: 48px;
  line-height: .8;
}
.review-card blockquote {
  margin: 19px 0 0;
  color: #3f3a45;
  font-size: 15.5px;
  line-height: 1.62;
}
.review-card footer {
  margin-top: auto;
  padding-top: 24px;
}
.review-card footer strong,
.review-card footer span {
  display: block;
}
.review-card footer strong {
  color: #29252f;
  font-size: 14px;
}
.review-card footer span {
  margin-top: 3px;
  color: #6f6876;
  font-size: 11.5px;
}

/* Trial */
.trial {
  padding: 88px 0;
  background: #f6f3ff;
}
.trial__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr);
  gap: 54px;
  align-items: start;
}
.trial__copy {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}
.trial__copy > p:not(.section-kicker) {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}
.trial__benefits {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.trial__benefits span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #47414f;
  font-size: 13.5px;
  font-weight: 700;
}
.trial__benefits svg {
  width: 20px;
  flex: 0 0 20px;
  fill: var(--brand-600);
}
.trial__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
}
.trial__price strong {
  color: var(--brand-700);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
}
.trial__price span {
  color: #67616f;
  font-size: 13px;
}
.trial-form {
  padding: 25px;
  border: 1px solid #ddd6f5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(60, 38, 133, .10);
}
.trial-form__head strong,
.trial-form__head span {
  display: block;
}
.trial-form__head strong {
  color: #28242f;
  font-size: 19px;
}
.trial-form__head span {
  margin-top: 5px;
  color: #77717d;
  font-size: 12.5px;
  line-height: 1.45;
}
.trial-form__field {
  display: block;
  margin-top: 17px;
}
.trial-form__field > span {
  display: block;
  margin-bottom: 7px;
  color: #524d59;
  font-size: 11.5px;
  font-weight: 700;
}
.trial-form__field input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid #ded9e7;
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: #28242f;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.trial-form__field input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(91, 54, 217, .10);
}
.trial-form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  margin-top: 15px;
  color: #77717d;
  font-size: 10.5px;
  line-height: 1.4;
}
.trial-form__consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--brand-600);
}
.trial-form__consent a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.trial-form__submit {
  width: 100%;
  margin-top: 17px;
}
.trial-form__telegram {
  display: block;
  margin-top: 12px;
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}
.trial-form__message {
  min-height: 18px;
  margin-top: 10px;
  color: #68616e;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}
.trial-form__message.is-success { color: #257044; }
.trial-form__message.is-error { color: #a33535; }
.trial-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* FAQ */
.faq {
  padding: 90px 0 96px;
  background: #fff;
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: 72px;
  align-items: start;
}
.faq__heading {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.faq__heading > p:not(.section-kicker) {
  max-width: 420px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.faq__items {
  border-top: 1px solid #e7e3eb;
}
.faq-item {
  border-bottom: 1px solid #e7e3eb;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #312d38;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1edff;
  color: var(--brand-700);
  font-size: 19px;
  font-weight: 500;
  transition: transform .18s ease;
}
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item > div {
  max-width: 760px;
  padding: 0 48px 21px 0;
  color: #69636f;
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 54px 0 22px;
  background: #17151c;
  color: #fff;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.15fr .8fr .8fr 1fr 1.05fr;
  gap: 34px;
}
.site-footer__brand {
  width: 165px;
  align-self: start;
  padding: 9px;
  border-radius: 15px;
  background: #fff;
}
.site-footer__brand img { display: block; width: 100%; height: auto; }
.site-footer__col,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.site-footer__col strong,
.site-footer__contact strong {
  margin-bottom: 4px;
  font-size: 12.5px;
}
.site-footer__col a,
.site-footer__contact span {
  color: #aaa5b0;
  font-size: 11.5px;
  line-height: 1.35;
}
.site-footer__col a:hover { color: #fff; }
.site-footer__contact .btn {
  min-height: 40px;
  margin-top: 5px;
  padding-inline: 14px;
  border-color: rgba(255,255,255,.26);
  background: transparent;
  color: #fff;
  font-size: 11.5px;
}
.site-footer__social {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.site-footer__social strong {
  margin: 0 0 2px;
  color: #fff;
  font-size: 14px;
}
.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible { border-color: #a996ff; background: rgba(255,255,255,.08); }
.site-footer__social a span { color: #c9bdff; font-size: 17px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #8f8995;
  font-size: 10.5px;
}

@media (max-width: 1100px) {
  .parent-progress__grid,
  .trial__box {
    grid-template-columns: 1fr;
  }
  .trial__copy {
    position: static;
  }
  .parent-dashboard {
    max-width: 760px;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .site-footer__brand,
  .site-footer__contact {
    grid-column: auto;
  }
}
@media (max-width: 820px) {
  .parent-progress,
  .reviews,
  .trial,
  .faq {
    padding-block: 72px;
  }
  .reviews__heading,
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .faq__heading {
    position: static;
  }
  .reviews__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .parent-progress,
  .reviews,
  .trial,
  .faq {
    padding-block: 60px;
  }
  .parent-progress h2,
  .reviews h2,
  .trial h2,
  .faq h2 {
    font-size: clamp(28px, 7.5vw, 32px);
  }
  .parent-progress__points,
  .parent-dashboard__stats {
    grid-template-columns: 1fr;
  }
  .parent-dashboard__bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .review-card {
    min-height: 0;
    padding: 22px;
  }
  .trial__box {
    gap: 30px;
  }
  .trial-form {
    padding: 20px;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand,
  .site-footer__contact {
    grid-column: 1 / -1;
  }
  .site-footer__bottom {
    flex-direction: column;
  }
}


/* ===== Stage 9: conversion cleanup ===== */
html, body {
  max-width: 100%;
}
body {
  overflow-x: clip;
}

/* Fix mobile helper grid: one column below tablet breakpoint. */
@media (max-width: 980px) {
  .directions-help {
    grid-template-columns: 1fr !important;
  }
  .directions-help__icon {
    display: none;
  }
  .directions-help__text,
  .directions-help__price,
  .directions-help__button {
    grid-column: 1 !important;
    min-width: 0;
    width: 100%;
  }
  .directions-help__price {
    white-space: normal;
  }
}

/* Shorter "Why Logicum" with real teacher proof. */
.why--compact .why__heading {
  margin-bottom: 28px;
}
.why-compact__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}
.why-compact__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.why--compact .why-card {
  min-height: 0;
  padding: 22px;
}
.why--compact .why-card__number {
  display: none;
}
.why--compact .why-card h3 {
  margin-top: 0;
}
.teacher-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, .78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid #ddd7ea;
  border-radius: 24px;
  background: #fff;
}
.teacher-card__photo {
  min-height: 330px;
  background: #f7f6f9;
}
.teacher-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 24%;
}
.teacher-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}
.teacher-card__label {
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.teacher-card h3 {
  margin: 8px 0 0;
  color: #28242f;
  font-size: 25px;
  letter-spacing: -.025em;
}
.teacher-card__areas {
  margin: 6px 0 0 !important;
  color: #514b59 !important;
  font-size: 13px !important;
  font-weight: 700;
}
.teacher-card__content > p:last-of-type {
  margin: 16px 0 0;
  color: #6b6570;
  font-size: 14px;
  line-height: 1.52;
}
.teacher-card__link {
  margin-top: 20px;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
}
.teacher-card__link span {
  margin-left: 3px;
}
.teacher-card__social {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Process compacted: same logic, less vertical repetition. */
.process--compact .process__heading {
  margin-bottom: 28px;
}
.process--compact .process-step {
  min-height: 300px;
  padding: 20px;
}
.process--compact .process-step__icon {
  margin-top: 16px;
}
.process--compact .process-step h3 {
  margin-top: 15px;
}
.process--compact .process-step p {
  font-size: 13.5px;
  line-height: 1.45;
}
.process--compact .process-step__result {
  padding-top: 14px;
}
.process-platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #e2ddec;
  border-radius: 18px;
  background: #faf9ff;
}
.process-platform strong {
  color: #322d3a;
  font-size: 13.5px;
  line-height: 1.35;
}
.process-platform span {
  color: #6e6875;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

/* Pricing */
.pricing {
  padding: 90px 0;
  background: #fff;
  border-top: 1px solid #efedf4;
}
.pricing__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 32px;
}
.pricing h2 {
  margin: 8px 0 0;
  color: #211f27;
  font-size: clamp(34px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.pricing__heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.price-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #e4e0e9;
  border-radius: 22px;
  background: #fff;
}
.price-card--primary {
  border-color: #d8cffb;
  background: linear-gradient(180deg, #f8f6ff 0%, #fff 72%);
}
.price-card--trial {
  background: #faf9ff;
}
.price-card__label {
  color: #6e6876;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 13px;
}
.price-card__price strong {
  color: #29252f;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.035em;
}
.price-card--primary .price-card__price strong {
  color: var(--brand-700);
}
.price-card__price span {
  color: #77717d;
  font-size: 12px;
}
.price-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}
.price-card li {
  position: relative;
  padding-left: 19px;
  color: #605a66;
  font-size: 13px;
  line-height: 1.4;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 700;
}
.price-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Footer email */
.site-footer__contact a[href^="mailto:"] {
  color: #fff;
  font-size: 11.5px;
}

/* Mobile compactness */
@media (max-width: 980px) {
  .why-compact__grid {
    grid-template-columns: 1fr;
  }
  .teacher-card {
    max-width: 760px;
  }
  .process-platform {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .process-platform span {
    text-align: left;
  }
  .pricing__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .teacher-card {
    grid-template-columns: 1fr;
  }
  .teacher-card__photo {
    min-height: 260px;
    max-height: 320px;
  }
  .teacher-card__content {
    padding: 22px;
  }
  .process--compact .process-step {
    min-height: 0;
  }
  .pricing {
    padding: 60px 0;
  }
  .pricing h2 {
    font-size: clamp(28px, 7.5vw, 32px);
  }
}


/* ===== Legal hardening: consent + analytics ===== */
.trial-form__privacy {
  margin: 9px 0 0;
  color: #6f6876;
  font-size: 10.5px;
  line-height: 1.45;
}
.trial-form__privacy a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent {
  position: fixed;
  z-index: 300;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #ddd7e8;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 55px rgba(34,23,67,.16);
  backdrop-filter: blur(14px);
}
.cookie-consent[hidden] { display:none; }
.cookie-consent__copy strong,
.cookie-consent__copy span { display:block; }
.cookie-consent__copy strong {
  color:#2d2933;
  font-size:13px;
}
.cookie-consent__copy span {
  margin-top:4px;
  color:#706a76;
  font-size:11.5px;
  line-height:1.45;
}
.cookie-consent__copy a {
  color:var(--brand-700);
  text-decoration:underline;
  text-underline-offset:2px;
}
.cookie-consent__actions {
  display:flex;
  gap:8px;
}
.cookie-consent__actions .btn {
  min-height:42px;
  padding-inline:14px;
  font-size:11.5px;
}
@media(max-width:720px){
  .cookie-consent{
    left:12px;right:12px;bottom:12px;
    grid-template-columns:1fr;
    gap:13px;
    padding:16px;
  }
  .cookie-consent__actions{
    display:grid;
    grid-template-columns:1fr;
  }
}


/* ===== Stage 10: real parent cabinet ===== */
.parent-progress--real {
  padding: 92px 0;
  background: #faf9ff;
  border-top: 1px solid #efedf4;
}
.parent-progress__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  align-items: end;
  gap: 52px;
  margin-bottom: 34px;
}
.parent-progress__heading h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: #211f27;
  font-size: clamp(34px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}
.parent-progress__heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}
.parent-showcase {
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.parent-showcase__nav {
  display: grid;
  gap: 10px;
}
.parent-showcase__tab {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 19px;
  border: 1px solid #e5e1eb;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.parent-showcase__tab:hover {
  border-color: #d5ccef;
}
.parent-showcase__tab.is-active {
  border-color: #cfc3fa;
  background: #f7f4ff;
  box-shadow: 0 12px 28px rgba(73, 49, 150, .08);
}
.parent-showcase__tab-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1eef7;
  color: #6f6876;
  font-size: 10.5px;
  font-weight: 700;
}
.parent-showcase__tab.is-active .parent-showcase__tab-number {
  background: #e9e3ff;
  color: var(--brand-700);
}
.parent-showcase__tab > span:last-child {
  min-width: 0;
}
.parent-showcase__tab strong,
.parent-showcase__tab small {
  display: block;
}
.parent-showcase__tab strong {
  color: #312d37;
  font-size: 13.5px;
  line-height: 1.3;
}
.parent-showcase__tab small {
  margin-top: 5px;
  color: #77717d;
  font-size: 11.5px;
  line-height: 1.45;
}
.parent-showcase__viewer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ddd8e7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(43, 31, 83, .10);
}
.parent-showcase__topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px 11px 17px;
  border-bottom: 1px solid #ece8f0;
}
.parent-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #625c69;
  font-size: 11px;
  font-weight: 700;
}
.parent-showcase__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ba25d;
  box-shadow: 0 0 0 4px #e9f7ee;
}
.parent-showcase__controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.parent-showcase__controls button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e0dbe8;
  border-radius: 10px;
  background: #fff;
  color: #4b4652;
  font: inherit;
  cursor: pointer;
}
.parent-showcase__controls button:hover {
  border-color: #cfc4f3;
  color: var(--brand-700);
}
.parent-showcase__controls > span {
  min-width: 38px;
  color: #6f6876;
  font-size: 10.5px;
  text-align: center;
}
.parent-showcase__controls b {
  color: #443d4c;
}
.parent-showcase__viewport {
  position: relative;
  min-width: 0;
  background: #f5f5f8;
}
.parent-showcase__slide {
  margin: 0;
}
.parent-showcase__slide[hidden] {
  display: none;
}
.parent-showcase__slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1673 / 728;
  object-fit: cover;
  object-position: top center;
  background: #f4f4f7;
}
.parent-showcase__slide figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px 18px;
  align-items: baseline;
  padding: 16px 18px 18px;
  border-top: 1px solid #ece8f0;
  background: #fff;
}
.parent-showcase__slide figcaption strong {
  color: #302b36;
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
}
.parent-showcase__slide figcaption span {
  color: #77717d;
  font-size: 11.5px;
  line-height: 1.45;
}
.parent-showcase__dots {
  display: none;
}
.parent-progress__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.parent-progress__bottom span {
  padding: 8px 11px;
  border: 1px solid #e4dfee;
  border-radius: 999px;
  background: #fff;
  color: #69626f;
  font-size: 10.5px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .parent-progress__heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .parent-showcase {
    grid-template-columns: 1fr;
  }
  .parent-showcase__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .parent-showcase__tab {
    grid-template-columns: 1fr;
  }
  .parent-showcase__tab-number {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 680px) {
  .parent-progress--real {
    padding: 60px 0;
  }
  .parent-progress__heading h2 {
    font-size: clamp(28px, 7.5vw, 32px);
  }
  .parent-showcase {
    display: block;
  }
  .parent-showcase__nav {
    display: none;
  }
  .parent-showcase__viewer {
    border-radius: 19px;
  }
  .parent-showcase__topbar {
    min-height: 50px;
    padding-inline: 13px;
  }
  .parent-showcase__badge {
    font-size: 10px;
  }
  .parent-showcase__slide img {
    aspect-ratio: 1.72 / 1;
    object-fit: cover;
    object-position: top left;
  }
  .parent-showcase__slide figcaption {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 15px 16px;
  }
  .parent-showcase__slide figcaption strong {
    white-space: normal;
  }
  .parent-showcase__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 14px;
    background: #fff;
  }
  .parent-showcase__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d6d1dd;
    cursor: pointer;
  }
  .parent-showcase__dots button.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--brand-600);
  }
  .parent-progress__bottom {
    margin-top: 14px;
  }
}


/* Stage 10.1 — focused teacher-feedback screenshot */
.parent-showcase__slide[data-parent-panel="1"] img {
  aspect-ratio: 2.55 / 1;
  object-fit: contain;
  object-position: center;
  background: #f6f6f8;
}

@media (max-width: 680px) {
  .parent-showcase__slide[data-parent-panel="1"] img {
    aspect-ratio: 1.9 / 1;
    object-fit: cover;
    object-position: top center;
  }
}


/* Stage 10.2 — screenshots at native lossless quality */
.parent-showcase__slide img,
.parent-showcase__slide[data-parent-panel="1"] img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  image-rendering: auto;
}

@media (max-width: 680px) {
  .parent-showcase__slide img,
  .parent-showcase__slide[data-parent-panel="1"] img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
  }
}


/* ===== Stage 11: conversion + mobile + attribution cleanup ===== */

/* Teacher proof */
.teacher-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 2px;
}
.teacher-card__facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #e4dff0;
  border-radius: 999px;
  background: #faf9ff;
  color: #6f6875;
  font-size: 10.5px;
  line-height: 1.2;
}
.teacher-card__facts strong {
  color: #312b38;
  font-size: 11px;
}

/* Pricing: compare like with like */
.pricing__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.price-card__package {
  min-height: 24px;
  margin: 8px 0 0;
  color: #706977;
  font-size: 12px;
  line-height: 1.45;
}
.price-card__package strong {
  color: #34303a;
}
.pricing-trial {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 22px 24px;
  border: 1px solid #ddd6ee;
  border-radius: 20px;
  background: #f8f5ff;
}
.pricing-trial__label {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pricing-trial strong {
  color: #2c2732;
  font-size: 18px;
}
.pricing-trial p {
  margin: 5px 0 0;
  color: #736c79;
  font-size: 12px;
  line-height: 1.45;
}

/* Visible form selection */
.trial-form__selection {
  margin: -2px 0 2px;
  padding: 10px 12px;
  border: 1px solid #e1dbef;
  border-radius: 12px;
  background: #faf8ff;
  font-size: 11px;
  line-height: 1.35;
}
.trial-form__selection[hidden] {
  display: none;
}
.trial-form__selection span {
  color: #6f6876;
}
.trial-form__selection strong {
  margin-left: 4px;
  color: #46349a;
}

/* Full screenshot can always be opened separately */
.parent-showcase__image-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f4f4f7;
  cursor: zoom-in;
}
.parent-feedback-mobile {
  display: none;
}

/* Cookie settings in footer */
.site-footer__cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: .8;
}

/* Mobile: primary CTA comes before proof cards. */
@media (max-width: 680px) {
  .hero__content {
    display: flex;
    flex-direction: column;
  }
  .hero__content .eyebrow { order: 1; }
  .hero__content h1 { order: 2; }
  .hero__lead { order: 3; }
  .hero__actions {
    order: 4;
    margin-top: 20px;
  }
  .hero__note {
    order: 5;
    margin-top: 10px;
  }
  .hero__facts {
    order: 6;
  }

  /* Compact consent bar; buttons stay side by side */
  .cookie-consent {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }
  .cookie-consent__copy span {
    margin-top: 0;
    font-size: 10px;
    line-height: 1.3;
  }
  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .cookie-consent__actions .btn {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 10px;
    line-height: 1.15;
  }

  /* Zoomed mobile proof instead of shrinking the whole UI */
  .parent-showcase__image-link {
    height: auto;
    min-height: 0;
  }
  .parent-showcase__slide img,
  .parent-showcase__slide[data-parent-panel="1"] img {
    max-width: none;
    height: auto;
    object-fit: initial;
    aspect-ratio: auto;
  }
  .parent-showcase__slide[data-parent-panel="0"] img {
    width: 185%;
    transform: translateX(-45%);
  }
  .parent-showcase__slide[data-parent-panel="1"] img {
    width: 160%;
    transform: translateX(-19%);
  }
  .parent-showcase__slide[data-parent-panel="2"] img {
    width: 175%;
    transform: translateX(-16%);
  }
  .parent-showcase__image-link::after {
    content: "Нажмите, чтобы открыть крупнее";
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(29, 27, 34, .82);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    pointer-events: none;
  }

  .parent-showcase__controls button {
    width: 44px;
    height: 44px;
  }
  .parent-showcase__dots {
    gap: 2px;
    padding: 6px 0 10px;
  }
  .parent-showcase__dots button,
  .parent-showcase__dots button.is-active {
    position: relative;
    width: 34px;
    height: 34px;
    background: transparent;
    border-radius: 0;
  }
  .parent-showcase__dots button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d6d1dd;
    transform: translate(-50%, -50%);
  }
  .parent-showcase__dots button.is-active::before {
    width: 22px;
    background: var(--brand-600);
  }

  .parent-feedback-mobile {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
    margin-top: 10px;
  }
  .parent-feedback-mobile > div {
    padding: 10px 11px;
    border: 1px solid #e8e3ee;
    border-radius: 12px;
    background: #faf9fc;
  }
  .parent-feedback-mobile b,
  .parent-feedback-mobile span {
    display: block;
  }
  .parent-feedback-mobile b {
    margin-bottom: 3px;
    color: #3b3350;
    font-size: 10.5px;
  }
  .parent-feedback-mobile span {
    color: #6f6974;
    font-size: 10.5px;
    line-height: 1.4;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }
  .pricing-trial {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }
  .pricing-trial .btn {
    width: 100%;
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Stage 12 — compact entry, legible proof and stable image dimensions. */
.hero__title-mobile { display: none; }
.parent-showcase__image-link { aspect-ratio: 1673 / 728; }
.parent-showcase__slide img,
.parent-showcase__slide[data-parent-panel="1"] img {
  aspect-ratio: 1673 / 728;
}
.parent-showcase__controls button { width: 44px; height: 44px; }
.parent-showcase__slide figcaption strong { white-space: normal; }
.trial-form__message.is-warning { color: #795215; background: #fff7e5; padding: 12px; border-radius: 10px; }
.faq-item a { color: var(--brand-700); text-decoration: underline; }
.cookie-consent { max-height: calc(100svh - var(--header-h) - 24px); overflow-y: auto; }

@media (max-width: 980px) {
  .hero__content { display: flex; flex-direction: column; }
  .hero__content .eyebrow { order: 1; align-self: flex-start; }
  .hero__content h1 { order: 2; margin: 20px 0 16px; }
  .hero__title-desktop { display: none; }
  .hero__title-mobile { display: inline; }
  .hero__lead { order: 3; margin: 0; font-size: 15px; line-height: 1.45; }
  .hero__actions { order: 4; margin-top: 18px; }
  .hero__note { order: 5; margin-top: 10px; }
  .hero__facts { order: 6; }
  .cookie-consent { left: 8px; right: 8px; bottom: 8px; padding: 10px; gap: 8px; grid-template-columns: 1fr; border-radius: 14px; }
  .cookie-consent__copy span { margin: 0; font-size: 11px; line-height: 1.35; }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .cookie-consent__actions .btn { min-height: 44px; padding: 8px; font-size: 11px; line-height: 1.2; }
}
@media (max-width: 680px) {
  .hero__grid { padding-top: 20px; }
  .hero__content h1 { margin-top: 18px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__actions .btn { min-height: 48px; }
  .parent-showcase__slide[data-parent-panel="0"] .parent-showcase__image-link { aspect-ratio: 2048 / 1648.35; }
  .parent-showcase__slide[data-parent-panel="1"] .parent-showcase__image-link { aspect-ratio: 2048 / 1425.6; }
  .parent-showcase__slide[data-parent-panel="2"] .parent-showcase__image-link { aspect-ratio: 2048 / 1559.25; }
  .parent-showcase__slide figcaption strong { font-size: 15px; }
  .parent-showcase__slide figcaption span,
  .parent-showcase__slide figcaption .parent-feedback-mobile span { font-size: 14px; line-height: 1.5; }
  .parent-feedback-mobile b { font-size: 13px; line-height: 1.4; }
  .parent-showcase__dots button,
  .parent-showcase__dots button.is-active { width: 44px; height: 44px; }
}
/* In a short/landscape viewport the consent panel participates in page flow,
   so it cannot cover form fields or CTAs. It remains reachable via the footer. */
@media (max-height: 559px) {
  .cookie-consent { position: static; margin: 12px auto; width: calc(100% - 28px); max-height: none; }
}


/* ===== Stage 20: reviews carousel ===== */
.reviews__heading--carousel {
  align-items: end;
}
.reviews__heading-side {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.reviews__heading-side > p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.reviews-carousel {
  min-width: 0;
  outline: none;
}
.reviews-carousel:focus-visible {
  outline: 2px solid #cfc4f2;
  outline-offset: 6px;
  border-radius: 18px;
}
.reviews-carousel__viewport {
  overflow: hidden;
  margin: -6px;
  padding: 6px;
}
.reviews-carousel__track {
  display: flex;
  gap: 15px;
  will-change: transform;
  transition: transform .34s cubic-bezier(.22,.75,.28,1);
}
.reviews-carousel .review-card {
  flex: 0 0 calc((100% - 15px) / 2);
  min-width: 0;
  min-height: 292px;
  padding: 25px;
}
.reviews-carousel .review-card__quote {
  font-size: 42px;
}
.reviews-carousel .review-card blockquote {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.58;
}
.reviews-carousel .review-card footer {
  padding-top: 20px;
}
.reviews-carousel .review-card footer strong {
  font-size: 13px;
}
.reviews-carousel .review-card footer span {
  font-size: 10.5px;
}
.reviews-carousel__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reviews-carousel__controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ded9e8;
  border-radius: 11px;
  background: #fff;
  color: #46404d;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.reviews-carousel__controls button:hover:not(:disabled) {
  border-color: #cfc4f2;
  background: #faf8ff;
  color: var(--brand-700);
}
.reviews-carousel__controls button:disabled {
  opacity: .35;
  cursor: default;
}
.reviews-carousel__controls > span {
  min-width: 42px;
  color: #6f6876;
  font-size: 10.5px;
  text-align: center;
}
.reviews-carousel__controls b {
  color: #443d4c;
}
.reviews-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.reviews-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7d2df;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.reviews-carousel__dots button.is-active {
  width: 24px;
  background: var(--brand-600);
}

@media (max-width: 820px) {
  .reviews-carousel .review-card {
    flex-basis: 100%;
    min-height: 0;
  }
}
@media (max-width: 620px) {
  .reviews__heading-side {
    gap: 10px;
  }
  .reviews__heading-side > p {
    font-size: 12.5px;
  }
  .reviews-carousel .review-card {
    padding: 22px;
  }
  .reviews-carousel .review-card blockquote {
    font-size: 13.5px;
  }
  .reviews-carousel__controls button {
    width: 42px;
    height: 42px;
  }
  .reviews-carousel__dots {
    gap: 2px;
    margin-top: 10px;
  }
  .reviews-carousel__dots button,
  .reviews-carousel__dots button.is-active {
    position: relative;
    width: 34px;
    height: 34px;
    background: transparent;
    border-radius: 0;
  }
  .reviews-carousel__dots button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d7d2df;
    transform: translate(-50%, -50%);
  }
  .reviews-carousel__dots button.is-active::before {
    width: 22px;
    background: var(--brand-600);
  }
}

/* ===== Student projects showcase ===== */
.showcase {
  padding: var(--section-space) 0;
  background: var(--surface-soft);
}
.showcase__heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.showcase__heading h2 {
  margin: 0;
}
.showcase__heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.5;
}
.showcase-carousel {
  position: relative;
  min-width: 0;
  outline: none;
}
.showcase-carousel:focus-visible {
  outline: 2px solid #cfc4f2;
  outline-offset: 6px;
  border-radius: 24px;
}
.showcase-carousel__viewport {
  overflow: hidden;
  margin: -6px;
  padding: 6px;
}
.showcase-carousel__track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform .34s cubic-bezier(.22,.75,.28,1), height .34s ease;
}
.showcase-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #e2dcee;
  border-radius: 50%;
  background: #fff;
  color: #46404d;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(-50%);
}
.showcase-carousel__arrow--prev { left: -24px; }
.showcase-carousel__arrow--next { right: -24px; }
.showcase-carousel__arrow:hover:not(:disabled) {
  border-color: #cfc4f2;
  color: var(--brand-700);
}
.showcase-carousel__arrow:disabled {
  opacity: .35;
  cursor: default;
}
.showcase-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .72fr) minmax(0, 1.4fr);
  gap: 28px;
  min-width: 0;
  padding: 32px;
  border: 1px solid #e7e2f1;
  border-radius: var(--radius-card);
  background: var(--surface);
}
/* Screenshot without code: description on the left, the wide screenshot on top of the right column, the review under it. */
.showcase-card--no-code:not(.showcase-card--no-review) {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro visual" "intro side";
}
.showcase-card--no-code:not(.showcase-card--no-review) .showcase-card__intro { grid-area: intro; }
/* The student sits right under the description here, not pinned to the bottom of the card. */
.showcase-card--no-code:not(.showcase-card--no-review) .showcase-student { margin-top: 8px; }
.showcase-card--no-code:not(.showcase-card--no-review) .showcase-card__visual { grid-area: visual; align-items: flex-start; }
/* A 16:10 tablet at full column width would make this card taller than the others and stretch every slide. */
.showcase-card--no-code:not(.showcase-card--no-review) .showcase-media--tablet { max-width: 648px; }
.showcase-card--no-code:not(.showcase-card--no-review) .showcase-card__side { grid-area: side; }
/* Without code or review the screenshot is the whole story, so it gets most of the width. */
.showcase-card--no-code.showcase-card--no-review {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
}
.showcase-card--no-code.showcase-card--no-review .showcase-card__side { display: none; }
.showcase-card__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.showcase-card__intro h3 {
  margin: 0;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: var(--heading-track);
}
.showcase-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-card);
  line-height: 1.6;
}
.showcase-student {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--brand-50);
}
.showcase-student__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e4dbff;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.showcase-student__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.showcase-student__meta strong {
  color: #28252f;
  font-size: 15px;
  font-weight: 700;
}
.showcase-student__meta span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.showcase-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.showcase-media { min-width: 0; }
.showcase-media__image {
  display: block;
  width: 100%;
  height: auto;
}
.showcase-media--phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  padding: 9px;
  border-radius: 34px;
  background: #1d1b22;
  box-shadow: 0 18px 40px rgb(42 27 93 / 18%);
}
.showcase-media--phone .showcase-media__image { border-radius: 26px; }
.showcase-media__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 1;
  width: 96px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #1d1b22;
  transform: translateX(-50%);
}
/* A landscape phone needs width: it sits under the description, code and review keep the right column. */
.showcase-card--landscape,
.showcase-card--landscape.showcase-card--no-code:not(.showcase-card--no-review) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro side" "visual side";
}
.showcase-card--landscape .showcase-card__intro { grid-area: intro; }
.showcase-card--landscape .showcase-card__visual { grid-area: visual; justify-content: flex-start; }
.showcase-card--landscape .showcase-card__side { grid-area: side; }
.showcase-media--landscape {
  max-width: 560px;
  width: 100%;
  border-radius: 28px;
}
.showcase-media--landscape .showcase-media__image { border-radius: 20px; }
.showcase-media--tablet {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: 28px;
  background: #1d1b22;
  box-shadow: 0 18px 40px rgb(42 27 93 / 18%);
}
.showcase-media--tablet .showcase-media__image { border-radius: 12px; }
.showcase-media__camera {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b3843;
  transform: translateY(-50%);
}
.showcase-media--window {
  overflow: hidden;
  width: 100%;
  border: 1px solid #e7e2f1;
  border-radius: 16px;
  background: #fff;
}
.showcase-media__bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid #ece8f5;
  background: #f6f4fb;
}
.showcase-media__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d3e6;
}
.showcase-card__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.showcase-code {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #ece8f5;
  border-radius: 16px;
  background: #faf9ff;
}
.showcase-code__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #28252f;
  font-size: 13px;
  font-weight: 700;
}
.showcase-code__language {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.showcase-code__lines {
  overflow-x: auto;
  margin: 12px 0 0;
  padding-left: 26px;
}
.showcase-code__lines .tok-kw { color: #7a3ec8; font-weight: 700; }
.showcase-code__lines .tok-str { color: #217a55; }
.showcase-code__lines .tok-num { color: #b2591f; }
.showcase-code__lines .tok-com { color: #8b8695; font-style: italic; }
.showcase-quote {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas: "mark text" ". author";
  column-gap: 14px;
  row-gap: 8px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #ece8f5;
  border-radius: 16px;
  background: #fff;
}
.showcase-quote__mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 26px;
  line-height: 44px;
}
.showcase-quote blockquote {
  grid-area: text;
  margin: 0;
  color: #302c39;
  font-size: 14.5px;
  line-height: 1.55;
}
.showcase-quote figcaption {
  grid-area: author;
  color: var(--muted);
  font-size: 12.5px;
}
.showcase__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 22px;
}
.showcase-carousel__dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.showcase-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7d2df;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.showcase-carousel__dots button.is-active {
  width: 24px;
  background: var(--brand-600);
}
.showcase__next {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.showcase__next:disabled {
  opacity: .4;
  cursor: default;
}

@media (max-width: 1160px) {
  .showcase-carousel__arrow--prev { left: -10px; }
  .showcase-carousel__arrow--next { right: -10px; }
}
@media (max-width: 1060px) {
  .showcase-card,
  .showcase-card--no-code:not(.showcase-card--no-review) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .showcase-card__side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .showcase-card--no-review .showcase-card__side,
  .showcase-card--no-code .showcase-card__side {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-carousel__arrow { display: none; }
  .showcase-card--landscape,
  .showcase-card--landscape.showcase-card--no-code:not(.showcase-card--no-review),
  .showcase-card--no-code:not(.showcase-card--no-review) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "visual" "side";
  }
  .showcase-card--landscape .showcase-card__visual { justify-content: center; }
}
@media (max-width: 820px) {
  .showcase-card,
  .showcase-card--no-code:not(.showcase-card--no-review),
  .showcase-card--no-code.showcase-card--no-review,
  .showcase-card__side {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-card {
    gap: 22px;
    padding: 24px;
  }
  .showcase-media--phone { max-width: 232px; }
  .showcase-media--landscape { max-width: none; }
  /* Stacked cards differ a lot in height: each slide keeps its own, JS sizes the track to the active one. */
  .showcase-carousel__track { align-items: flex-start; }
}
@media (max-width: 620px) {
  .showcase { padding: 52px 0; }
  .showcase-media--tablet { padding: 9px; border-radius: 20px; }
  .showcase-media--tablet .showcase-media__image { border-radius: 9px; }
  .showcase-media__camera { left: 3px; width: 4px; height: 4px; }
  .showcase__heading p { font-size: 15px; }
  .showcase-card { padding: 20px; }
  .showcase-code { padding: 14px; }
  .showcase-code__lines { padding-left: 22px; }
  .showcase__footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }
  .showcase-carousel__dots { grid-column: 1; }
  .showcase__next {
    grid-column: 1;
    justify-self: stretch;
    justify-content: center;
  }
}
}
