@font-face {
  font-family: "Manrope VF";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Manrope VF";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F;
}

:root {
  --navy: #071c3d;
  --navy-soft: #12365e;
  --blue: #159ac2;
  --blue-deep: #087da4;
  --blue-pale: #eaf7fb;
  --blue-pale-2: #dff2f7;
  --green: #97ca00;
  --green-deep: #6f9d00;
  --green-pale: #f0f8dc;
  --yellow: #f8d95b;
  --coral: #ed6c72;
  --ink: #102a43;
  --text: #496277;
  --white: #ffffff;
  --surface: #f8fbfc;
  --line: #d7e5ea;
  --shadow: 0 18px 42px rgba(7, 28, 61, 0.08);
  --radius: 20px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope VF", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

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

.section {
  padding: 94px 0 100px;
}

.section-compact {
  padding: 70px 0 76px;
}

.section-blue {
  background: linear-gradient(180deg, #effafd 0%, var(--blue-pale) 100%);
}

.site-header {
  position: relative;
  z-index: 30;
  height: 86px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #071c3d 0%, #0b3152 100%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  width: 180px;
  height: 72px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
  padding-top: 26px;
}

.main-nav a,
.login-button {
  font-size: 14px;
  font-weight: 680;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 6px;
}

.login-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 19px;
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #b6df27);
  box-shadow: 0 8px 18px rgba(1, 12, 31, 0.2);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.login-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #a9db14, var(--yellow));
  box-shadow: 0 10px 22px rgba(1, 12, 31, 0.25);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  grid-area: 1 / 1;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

.menu-toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 30%, rgba(21, 154, 194, 0.11), transparent 29%),
    linear-gradient(135deg, #fbfeff 0%, #edf9fc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 115px;
  left: -68px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(151, 202, 0, 0.12);
  border-radius: 55% 45% 52% 48% / 48% 55% 45% 52%;
  background: radial-gradient(circle at 65% 45%, rgba(151, 202, 0, 0.11), rgba(151, 202, 0, 0.025) 64%, transparent 65%);
}

.hero-grid {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 62px 0 68px;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 25px;
  color: var(--navy);
  font-size: clamp(48px, 4.25vw, 62px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.048em;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.035em;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  align-self: center;
}

.hero-visual img {
  position: absolute;
  z-index: 3;
  right: -10px;
  top: 0;
  width: 660px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 24px 18px rgba(7, 28, 61, 0.18));
}

.hero-blob {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 105px;
  width: 470px;
  height: 450px;
  border-radius: 51% 49% 44% 56% / 47% 58% 42% 53%;
  background: linear-gradient(145deg, rgba(210, 242, 250, 0.95), rgba(226, 244, 199, 0.94));
  transform: rotate(-5deg);
}

.hero-ring {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(21, 154, 194, 0.25);
  border-radius: 50%;
}

.ring-one {
  right: 45px;
  bottom: 166px;
  width: 385px;
  height: 385px;
}

.ring-two {
  right: 103px;
  bottom: 224px;
  width: 270px;
  height: 270px;
  border-color: rgba(151, 202, 0, 0.32);
}

.quick-actions {
  position: relative;
  z-index: 5;
  padding: 34px 0 40px;
  border-top: 1px solid #e3eef1;
  border-bottom: 1px solid #e3eef1;
  background: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  --quick-accent: var(--green);
  position: relative;
  min-height: 424px;
  display: grid;
  grid-template-rows: 224px minmax(0, 1fr);
  align-content: stretch;
  gap: 16px;
  padding: 12px 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.quick-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--quick-accent);
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--quick-accent) 52%, var(--line));
  box-shadow: var(--shadow);
}

.quick-questionnaire { --quick-accent: var(--blue); }
.quick-platform { --quick-accent: var(--coral); }

.quick-illustration {
  min-width: 0;
  height: 224px;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--quick-accent) 16%, white);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.quick-illustration img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.quick-copy {
  min-width: 0;
  display: grid;
  grid-template-rows: 52px auto;
  align-content: start;
  padding-right: 36px;
}

.quick-copy strong {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.quick-copy > span {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.quick-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid color-mix(in srgb, var(--quick-accent) 44%, var(--line));
  border-radius: 50%;
  background: var(--white);
  font-size: 18px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.quick-card:hover .quick-arrow {
  color: var(--white);
  background: var(--navy);
  transform: rotate(45deg);
}

.section-header {
  max-width: 900px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 40px;
  font-weight: 770;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.advantage-card {
  --advantage-accent: var(--green-deep);
  --advantage-surface: rgba(255, 255, 255, 0.88);
  min-height: 430px;
  position: relative;
  display: grid;
  grid-template-rows: 210px 58px minmax(0, auto);
  align-content: start;
  row-gap: 13px;
  padding: 19px 22px 22px;
  border: 1px solid color-mix(in srgb, var(--advantage-accent) 19%, white);
  border-radius: var(--radius);
  background: var(--advantage-surface);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--advantage-accent) 55%, white);
  box-shadow: 0 15px 34px rgba(7, 28, 61, 0.07);
}

.advantage-illustration {
  min-width: 0;
  height: 210px;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--advantage-accent) 15%, white);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
}

.advantage-illustration img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.advantage-card h3 {
  min-width: 0;
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.advantage-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.advantage-programs {
  --advantage-accent: #78a900;
  --advantage-surface: #f8fceb;
}

.advantage-interactive {
  --advantage-accent: #128db5;
  --advantage-surface: #f1fbfe;
}

.advantage-teachers {
  --advantage-accent: #4677bd;
  --advantage-surface: #f4f7fd;
}

.advantage-license {
  --advantage-accent: #be8b12;
  --advantage-surface: #fffaf0;
}

.advantage-experience {
  --advantage-accent: #168f83;
  --advantage-surface: #f0fbf8;
}

.advantage-flexibility {
  --advantage-accent: #d85f66;
  --advantage-surface: #fff6f6;
}

.section-header-row {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.section-header-row h2 {
  max-width: 820px;
}

.button-secondary {
  min-height: 52px;
  padding-inline: 25px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--navy);
}

.button-secondary:hover {
  background: var(--blue-deep);
  box-shadow: 0 12px 24px rgba(7, 28, 61, 0.16);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  --program-accent: var(--green);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.program-blue { --program-accent: var(--blue); }
.program-cyan { --program-accent: #60c6dd; }
.program-yellow { --program-accent: var(--yellow); }

.program-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--program-accent) 65%, var(--line));
  box-shadow: 0 15px 32px rgba(7, 28, 61, 0.075);
}

.program-image {
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--program-accent) 8%, white);
}

.program-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--program-art) center / cover no-repeat;
  filter: saturate(0.58) contrast(0.86) brightness(1.13);
  transform: scale(1.01);
  transition: transform 300ms ease, filter 300ms ease;
}

.program-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(7, 28, 61, 0.05));
  pointer-events: none;
  z-index: 3;
}

.program-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.98) brightness(1.045);
  -webkit-mask-image: radial-gradient(ellipse 25% 48% at var(--mascot-focus, 38% 52%), #000 0 58%, rgba(0, 0, 0, 0.95) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 25% 48% at var(--mascot-focus, 38% 52%), #000 0 58%, rgba(0, 0, 0, 0.95) 70%, transparent 100%);
  transition: transform 300ms ease, filter 300ms ease;
}

.program-card:hover .program-image img {
  transform: scale(1.035);
  filter: saturate(0.88) contrast(1) brightness(1.035);
}

.program-card:hover .program-image::before {
  filter: saturate(0.65) contrast(0.89) brightness(1.1);
  transform: scale(1.035);
}

.program-content {
  min-height: 122px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 18px 19px 20px;
  border-top: 4px solid var(--program-accent);
}

.program-card h3 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.program-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.program-card:hover .program-arrow {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
  transform: rotate(45deg);
}

.partners {
  border-top: 1px solid #e6eef1;
  border-bottom: 1px solid #e6eef1;
  background: var(--surface);
}

.partners .section-header {
  margin-bottom: 33px;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  padding: 4px 0;
  border-top: 1px solid rgba(7, 28, 61, 0.08);
  border-bottom: 1px solid rgba(7, 28, 61, 0.08);
}

.partner-row a {
  height: 108px;
  display: grid;
  place-items: center;
  padding: 14px 18px;
}

.partner-row a + a {
  border-left: 1px solid rgba(7, 28, 61, 0.065);
}

.partner-row img {
  width: auto;
  max-width: 88%;
  max-height: 72px;
  object-fit: contain;
  filter: grayscale(0.65);
  opacity: 0.86;
  transition: filter 200ms ease, opacity 200ms ease, transform 200ms ease;
}

.partner-row a:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.teachers {
  overflow: hidden;
}

.teachers-header {
  align-items: flex-end;
  margin-bottom: 34px;
}

.teachers-heading-copy {
  min-width: 0;
}

.teachers-header p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 16px;
}

.teacher-controls {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
  flex: 0 0 auto;
}

.teacher-button {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 9px 22px rgba(7, 28, 61, 0.06);
}

.teacher-carousel {
  position: relative;
}

.teacher-viewport {
  overflow: hidden;
  padding: 7px 2px 15px;
  touch-action: pan-y;
}

.teacher-viewport:focus-visible,
.teacher-details-toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.teacher-track {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  transition: transform 560ms cubic-bezier(0.22, 0.75, 0.28, 1);
  will-change: transform;
}

.teacher-track.is-resetting {
  transition: none;
}

.teacher-card {
  position: relative;
  height: 438px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 154, 194, 0.17);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.96) 0 27%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(155deg, #f7fcfd 0%, #e7f5f7 58%, #d9edf1 100%);
  box-shadow: 0 13px 30px rgba(7, 28, 61, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.teacher-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18px;
  left: 50%;
  width: 246px;
  height: 246px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(151, 202, 0, 0.72), rgba(21, 154, 194, 0.78), rgba(151, 202, 0, 0.22), rgba(151, 202, 0, 0.72));
  box-shadow: 0 18px 42px rgba(21, 154, 194, 0.12);
  transform: translateX(-50%) rotate(-8deg);
  transition: transform 560ms cubic-bezier(0.22, 0.75, 0.28, 1);
}

.teacher-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 23px;
  left: 50%;
  width: 236px;
  height: 236px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translateX(-50%);
}

.teacher-card:hover,
.teacher-card.is-details-open {
  border-color: rgba(151, 202, 0, 0.78);
  box-shadow: 0 20px 42px rgba(7, 28, 61, 0.15);
}

.teacher-card:hover::before,
.teacher-card.is-details-open::before {
  transform: translateX(-50%) rotate(15deg);
}

.teacher-photo-frame {
  position: absolute;
  top: 31px;
  left: 50%;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: #d7e8eb;
  box-shadow: 0 13px 30px rgba(7, 28, 61, 0.16);
  transform: translateX(-50%);
}

.teacher-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(21, 154, 194, 0.1), rgba(255, 255, 255, 0.02) 50%, rgba(7, 28, 61, 0.08));
  mix-blend-mode: soft-light;
}

.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--teacher-photo-position, center);
  filter: saturate(0.92) contrast(1.03) brightness(1.02);
  transform: scale(var(--teacher-photo-scale, 1));
  transform-origin: center var(--teacher-photo-focus-y, 50%);
  transition: transform 620ms cubic-bezier(0.22, 0.75, 0.28, 1), filter 300ms ease;
}

.teacher-card:hover .teacher-photo,
.teacher-card.is-details-open .teacher-photo {
  transform: scale(calc(var(--teacher-photo-scale, 1) + 0.035));
  filter: saturate(1.02) contrast(1.04) brightness(1.02);
}

.teacher-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 13px;
  padding: 19px 18px 17px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 28, 61, 0.73) 0%, rgba(7, 28, 61, 0.9) 42%, rgba(7, 28, 61, 0.97) 100%);
  -webkit-backdrop-filter: blur(9px) saturate(0.9);
  backdrop-filter: blur(9px) saturate(0.9);
  transform: translateY(calc(100% - 142px));
  transition: transform 480ms cubic-bezier(0.22, 0.75, 0.28, 1), background 260ms ease;
}

.teacher-card.is-details-open .teacher-overlay {
  transform: translateY(0);
}

.teacher-summary {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.teacher-summary > div {
  min-width: 0;
}

.teacher-role {
  min-height: 2.7em;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: normal;
}

.teacher-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.teacher-details-toggle {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

.teacher-details-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
}

.teacher-details-toggle span {
  display: none;
  font: inherit;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.teacher-details-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 240ms ease;
}

.teacher-card.is-details-open .teacher-details-toggle svg {
  transform: rotate(45deg);
}

.teacher-details {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 3px 0;
  opacity: 0;
  scrollbar-color: rgba(151, 202, 0, 0.72) rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 340ms ease;
}

.teacher-card.is-details-open .teacher-details {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

.teacher-details::-webkit-scrollbar {
  width: 5px;
}

.teacher-details::-webkit-scrollbar-track {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.teacher-details::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(151, 202, 0, 0.72);
}

.teacher-details p,
.teacher-details li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  line-height: 1.48;
}

.teacher-details p {
  margin: 0 0 10px;
}

.teacher-details ul {
  margin: -3px 0 11px;
  padding-left: 18px;
}

.teacher-details li + li {
  margin-top: 3px;
}

.teacher-details strong {
  color: var(--white);
}

.teacher-details .teacher-quote {
  margin-top: 14px;
  padding-left: 11px;
  color: rgba(255, 255, 255, 0.96);
  border-left: 3px solid var(--green);
  font-weight: 690;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-card:hover .teacher-overlay {
    transform: translateY(0);
  }

  .teacher-card:hover .teacher-details {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 100ms;
  }
}

.trial-cta {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 52%, rgba(21, 154, 194, 0.27), transparent 27%),
    linear-gradient(120deg, #071c3d 0%, #0b2b50 64%, #0b3b59 100%);
}

.trial-cta::after {
  content: "";
  position: absolute;
  top: 52px;
  right: 6%;
  width: 280px;
  height: 280px;
  border: 52px solid rgba(151, 202, 0, 0.075);
  border-radius: 50%;
  pointer-events: none;
}

.trial-grid {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  align-items: center;
  gap: 82px;
}

.trial-mascot {
  position: relative;
  height: 470px;
  display: grid;
  place-items: center;
}

.trial-mascot img {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.26));
}

.trial-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(151, 202, 0, 0.24);
  border-radius: 49% 51% 43% 57% / 48% 43% 57% 52%;
  background: linear-gradient(145deg, rgba(21, 154, 194, 0.16), rgba(151, 202, 0, 0.085));
  box-shadow: 0 0 70px rgba(21, 154, 194, 0.14);
  transform: translate(-50%, -50%) rotate(-6deg);
}

.trial-copy {
  max-width: 740px;
  padding: 58px 0;
}

.trial-copy h2 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.trial-copy p {
  max-width: 700px;
  margin-bottom: 27px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.button-green {
  color: var(--navy);
  background: var(--green);
}

.button-green:hover {
  background: var(--yellow);
  box-shadow: 0 13px 26px rgba(151, 202, 0, 0.18);
}

.reviews {
  background: var(--white);
}

.reviews-header {
  align-items: center;
  margin-bottom: 30px;
}

.review-controls {
  display: flex;
  gap: 10px;
}

.review-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.review-button:hover:not(:disabled) {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
  transform: translateY(-2px);
}

.review-button:disabled {
  cursor: default;
  opacity: 0.34;
}

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

.review-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-viewport {
  overflow-x: auto;
  padding: 4px 0 22px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.review-viewport::-webkit-scrollbar {
  display: none;
}

.review-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.review-track {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
}

.review-card {
  min-width: 0;
  min-height: 248px;
  margin: 0;
  display: grid;
  grid-template-rows: 38px auto;
  align-content: start;
  gap: 8px;
  padding: 24px 28px 26px;
  color: var(--white);
  border-radius: var(--radius);
  background: var(--navy);
  scroll-snap-align: start;
}

.review-card-blue {
  color: var(--ink);
  border: 1px solid rgba(21, 154, 194, 0.18);
  background: var(--blue-pale);
}

.review-card-green {
  color: var(--ink);
  border: 1px solid rgba(151, 202, 0, 0.24);
  background: #f4fae7;
}

.review-card-sky {
  color: var(--ink);
  border: 1px solid rgba(38, 157, 187, 0.17);
  background: #edf9fb;
}

.review-card-lime {
  color: var(--ink);
  border: 1px solid rgba(111, 157, 0, 0.19);
  background: #fbfdee;
}

.review-card-navy {
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
}

.quote-mark {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 0.6;
}

.review-card-blue .quote-mark,
.review-card-sky .quote-mark {
  color: var(--blue);
}

.review-card-green .quote-mark,
.review-card-lime .quote-mark {
  color: var(--green-deep);
}

.review-card p {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.review-progress {
  position: relative;
  width: 190px;
  height: 4px;
  margin: 2px auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: #e3edf0;
}

.review-progress span {
  position: absolute;
  top: 0;
  left: 0;
  width: 37.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: left 160ms ease;
}

.site-footer {
  padding: 56px 0 62px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 5px solid var(--blue);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr 0.8fr;
  gap: 78px;
}

.footer-column h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.3;
}

.footer-column p {
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.65;
}

.footer-column .footer-name {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 19px;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a {
  font-size: 14px;
  transition: color 180ms ease;
}

.footer-column a:hover {
  color: var(--green);
}

@media (max-width: 1350px) {
  :root {
    --container: 1160px;
  }

  .header-inner {
    gap: 28px;
  }

  .main-nav {
    gap: 23px;
  }

  .brand {
    width: 173px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(365px, 0.9fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-visual img {
    right: -5px;
    width: 620px;
  }

  .hero-blob {
    width: 430px;
    height: 425px;
  }

  .quick-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .quick-copy strong {
    font-size: 18px;
  }

  .trial-grid {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 62px;
  }

}

@media (max-width: 1180px) {
  .container {
    width: min(1080px, calc(100% - 48px));
  }

  .hero h1 {
    font-size: 50px;
  }

  .quick-copy > span {
    font-size: 15px;
  }

  .program-card h3 {
    font-size: 18px;
  }

}

@media (max-width: 1000px) {
  .container {
    width: min(940px, calc(100% - 40px));
  }

  .section {
    padding: 78px 0 84px;
  }

  .section-compact {
    padding: 60px 0 66px;
  }

  .hero-grid {
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-visual img {
    right: -15px;
    width: 520px;
    max-height: none;
  }

  .hero-blob {
    right: -8px;
    bottom: 54px;
    width: 360px;
    height: 350px;
  }

  .ring-one {
    right: 10px;
    bottom: 91px;
    width: 305px;
    height: 305px;
  }

  .ring-two {
    right: 55px;
    bottom: 140px;
    width: 215px;
    height: 215px;
  }

  .advantage-grid,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .teacher-card {
    height: 448px;
  }

  .trial-grid {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
  }

  .trial-mascot,
  .trial-mascot img {
    height: 400px;
  }

  .trial-mascot img {
    width: 290px;
  }

  .trial-glow {
    width: 320px;
    height: 320px;
  }

  .review-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .footer-contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    height: 74px;
  }

  .header-inner {
    position: relative;
    gap: 12px;
  }

  .brand {
    width: 145px;
    height: 64px;
  }

  .brand img {
    max-height: 62px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    height: auto;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #092747;
    box-shadow: 0 18px 38px rgba(1, 12, 31, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .main-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 15px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

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

  .header-actions {
    height: auto;
    margin-left: auto;
    padding-top: 0;
  }

  .login-button {
    min-height: 42px;
    padding-inline: 16px;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    max-width: 720px;
    padding: 30px 0 56px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .hero-visual {
    order: -1;
    min-height: 410px;
    margin-top: -8px;
  }

  .programs .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .programs .section-header-row {
    display: contents;
  }

  .programs .section-header-row h2 {
    max-width: none;
    order: 1;
    margin-bottom: 34px;
  }

  .programs .program-grid {
    order: 2;
  }

  .programs .button-secondary {
    order: 3;
    width: 100%;
    margin-top: 24px;
  }

  .hero-visual img {
    top: 0;
    right: auto;
    left: 50%;
    width: 520px;
    max-height: 405px;
    transform: translateX(-50%);
  }

  .hero-blob {
    right: auto;
    bottom: 24px;
    left: 50%;
    width: 360px;
    height: 340px;
    transform: translateX(-50%) rotate(-5deg);
  }

  .ring-one {
    right: auto;
    bottom: 53px;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
  }

  .ring-two {
    right: auto;
    bottom: 96px;
    left: 50%;
    width: 215px;
    height: 215px;
    transform: translateX(-50%);
  }

  .quick-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quick-card {
    min-height: 260px;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 18px;
  }

  .quick-illustration {
    height: 236px;
  }

  .quick-copy {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 10px;
  }

  .partner-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-row a {
    border-top: 0;
    border-left: 1px solid rgba(7, 28, 61, 0.065);
  }

  .partner-row a:nth-child(3n + 1) {
    border-left: 0;
  }

  .partner-row a:nth-child(n + 4) {
    border-top: 1px solid rgba(7, 28, 61, 0.065);
  }

  .trial-cta {
    overflow: hidden;
  }

  .trial-cta::after {
    top: 50%;
    right: -120px;
    width: 240px;
    height: 240px;
    border-width: 42px;
    transform: translateY(-50%);
  }

  .trial-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trial-mascot {
    height: 390px;
  }

  .trial-mascot img {
    width: 280px;
    height: 390px;
  }

  .trial-copy {
    max-width: 680px;
    padding: 0 0 64px;
    text-align: center;
    justify-self: center;
  }

  .review-card p {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .section {
    padding: 58px 0 64px;
  }

  .section-compact {
    padding: 48px 0 52px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 30px;
    line-height: 1.18;
  }

  .section-header-row {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .section-header-row .button {
    width: 100%;
  }

  .hero::before {
    top: 72px;
    left: -110px;
    width: 210px;
    height: 210px;
  }

  .hero-copy {
    padding: 24px 0 46px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual img {
    width: 410px;
    max-height: 325px;
  }

  .hero-blob {
    bottom: 20px;
    width: 294px;
    height: 286px;
  }

  .ring-one {
    bottom: 43px;
    width: 250px;
    height: 250px;
  }

  .ring-two {
    bottom: 82px;
    width: 175px;
    height: 175px;
  }

  .quick-actions {
    padding: 26px 0 32px;
  }

  .quick-card {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto;
    gap: 14px;
    padding: 12px 14px 18px;
  }

  .quick-illustration {
    height: 200px;
    padding: 8px 10px;
  }

  .quick-copy {
    grid-template-rows: auto auto;
    gap: 8px;
    padding-right: 42px;
  }

  .quick-copy strong {
    font-size: 17px;
  }

  .quick-copy > span {
    font-size: 15px;
    line-height: 1.5;
  }

  .quick-arrow {
    right: 15px;
    bottom: 16px;
  }

  .advantage-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    min-height: 0;
    grid-template-rows: 190px 54px auto;
    row-gap: 10px;
    padding: 16px 17px 20px;
  }

  .advantage-illustration {
    height: 190px;
    padding: 7px 10px;
  }

  .advantage-card h3 {
    font-size: 17px;
  }

  .advantage-card p {
    font-size: 15px;
  }

  .program-content {
    min-height: 102px;
    padding: 15px 16px 17px;
  }

  .program-card h3 {
    font-size: 17px;
  }

  .partners .section-header {
    margin-bottom: 26px;
  }

  .partner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-row a {
    height: 92px;
    padding: 12px 14px;
    border-top: 1px solid rgba(7, 28, 61, 0.065);
    border-left: 1px solid rgba(7, 28, 61, 0.065);
  }

  .partner-row a:nth-child(-n + 2) {
    border-top: 0;
  }

  .partner-row a:nth-child(odd) {
    border-left: 0;
  }

  .partner-row a:nth-child(even) {
    border-left: 1px solid rgba(7, 28, 61, 0.065);
  }

  .partner-row img {
    max-width: 82%;
    max-height: 60px;
  }

  .teachers-header {
    margin-bottom: 30px;
  }

  .teachers-header p {
    font-size: 14px;
  }

  .teacher-controls {
    padding-bottom: 0;
  }

  .teacher-track {
    grid-auto-columns: calc(100% - 28px);
    gap: 12px;
  }

  .teacher-card {
    height: 480px;
    border-radius: 19px;
  }

  .teacher-overlay {
    padding: 18px 17px 16px;
  }

  .teacher-details-toggle {
    padding-inline: 11px;
  }

  .teacher-details-toggle span {
    display: inline;
  }

  .teacher-card h3 {
    font-size: 18px;
  }

  .teacher-details p,
  .teacher-details li {
    font-size: 13px;
  }

  .trial-mascot {
    height: 305px;
  }

  .trial-mascot img {
    width: 225px;
    height: 305px;
  }

  .trial-glow {
    width: 260px;
    height: 260px;
  }

  .trial-copy {
    padding-bottom: 50px;
  }

  .trial-copy h2 {
    margin-bottom: 15px;
    font-size: 34px;
  }

  .trial-copy p {
    margin-bottom: 23px;
    font-size: 16px;
    line-height: 1.55;
  }

  .trial-copy .button {
    width: 100%;
  }

  .reviews-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
  }

  .review-button {
    width: 42px;
    height: 42px;
  }

  .review-track {
    grid-auto-columns: calc(100% - 28px);
    gap: 12px;
  }

  .review-card {
    min-height: 260px;
    padding: 22px 22px 24px;
  }

  .review-card p {
    font-size: 16px;
    line-height: 1.5;
  }

  .review-progress {
    width: 150px;
  }

  .site-footer {
    padding: 46px 0 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-contacts {
    grid-column: auto;
  }

  .footer-column h2 {
    margin-bottom: 14px;
  }

  .footer-column li + li {
    margin-top: 11px;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 24px);
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand {
    width: 116px;
    height: 58px;
  }

  .login-button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    top: calc(100% + 7px);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual {
    min-height: 292px;
  }

  .hero-visual img {
    width: 350px;
    max-height: 290px;
  }

  .hero-blob {
    width: 264px;
    height: 256px;
  }

  .ring-one {
    width: 224px;
    height: 224px;
  }

  .ring-two {
    width: 154px;
    height: 154px;
  }

  .section-header h2 {
    font-size: 27px;
  }

  .quick-card {
    min-height: 390px;
    grid-template-rows: 180px auto;
  }

  .quick-illustration {
    height: 180px;
  }

  .advantage-card {
    grid-template-rows: 170px 50px auto;
  }

  .advantage-illustration {
    height: 170px;
  }

  .teacher-card {
    height: 458px;
  }

  .teacher-track {
    grid-auto-columns: calc(100% - 18px);
  }

  .teacher-details-toggle span {
    display: none;
  }

  .trial-mascot {
    height: 270px;
  }

  .trial-mascot img {
    width: 200px;
    height: 270px;
  }

  .trial-glow {
    width: 230px;
    height: 230px;
  }

  .trial-copy h2 {
    font-size: 30px;
  }

  .review-track {
    grid-auto-columns: calc(100% - 18px);
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 29px;
  }

}

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