:root {
  --promo-height: 42px;
  --page: #f5f8f4;
  --paper: #fffdf8;
  --paper-cool: #eef7fb;
  --ink: #08233f;
  --ink-soft: #31465b;
  --muted: #6d7d8e;
  --line: rgba(11, 47, 82, 0.12);
  --navy: #08233f;
  --blue: #1d6fba;
  --sky: #c9e9f7;
  --mint: #b7eadf;
  --coral: #ff6f59;
  --yellow: #f5c84c;
  --success: #12866f;
  --shadow-soft: 0 24px 70px rgba(12, 37, 66, 0.09);
  --shadow-lift: 0 32px 90px rgba(12, 37, 66, 0.14);
  --radius-card: 16px;
  --radius-soft: 20px;
  --radius-pill: 999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background-color: var(--navy);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  line-height: 1.58;
}

body > main {
  background:
    linear-gradient(180deg, rgba(201, 233, 247, 0.36), rgba(255, 253, 248, 0) 360px),
    linear-gradient(116deg, rgba(255, 111, 89, 0.09), transparent 24%),
    linear-gradient(308deg, rgba(183, 234, 223, 0.16), transparent 35%),
    var(--page);
}

body::before {
  display: none;
}

body::after {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - clamp(32px, 6vw, 80px)));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(52px, 6.5vh, 78px) 0;
  scroll-margin-top: 138px;
}

.section-head {
  display: grid;
  gap: 12px;
  width: min(780px, 100%);
  margin: 0 auto 32px;
  text-align: center;
}

.section-kicker,
.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 3.25rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 3.05rem;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.22;
}

.promo-line {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: var(--promo-height);
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 18px;
  color: #fff9ed;
  background: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.promo-line::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  box-shadow: 0 0 0 6px rgba(245, 200, 76, 0.16);
}

.promo-line__link {
  border: 0;
  padding: 0;
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: var(--promo-height);
  z-index: 45;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(8, 35, 63, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  grid-template-areas: "brand nav account";
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand--header {
  grid-area: brand;
}

.brand__logo {
  width: 118px;
  height: 60px;
  object-fit: contain;
  object-position: center;
}

.header-account {
  grid-area: account;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  min-height: 40px;
  border: 1px solid rgba(8, 35, 63, 0.14);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header-account:hover {
  border-color: rgba(29, 111, 186, 0.28);
  background: var(--paper-cool);
}

.main-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.main-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.35s var(--ease-out-expo), background 0.35s var(--ease-out-expo);
}

.main-nav > a:hover {
  color: var(--navy);
  background: rgba(201, 233, 247, 0.55);
}

.menu-toggle {
  grid-area: toggle;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: 50%;
  padding: 0;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(12, 37, 66, 0.08);
}

.menu-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 0.38s var(--ease-out-expo), opacity 0.2s ease;
}

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

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

.site-header.is-menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.hero {
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) 0 clamp(40px, 5.8vh, 58px);
}

.hero::before {
  display: none;
}

.hero__media {
  position: absolute;
  inset: 24px 0 auto;
  z-index: 0;
  width: 100%;
  height: 70%;
  min-height: 460px;
  overflow: hidden;
  opacity: 0.08;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 72%, transparent);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(0.96);
  transform: scale(1.04);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  grid-template-areas:
    "content portrait"
    "proofs portrait";
  gap: clamp(20px, 4vw, 42px);
  align-items: end;
}

.hero__content {
  grid-area: content;
  max-width: 760px;
  padding-top: clamp(28px, 6vh, 64px);
}

.hero__kicker {
  margin-bottom: 18px;
}

.hero__title {
  color: var(--navy);
}

.hero__lead {
  width: min(620px, 100%);
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.17rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero__portrait {
  position: relative;
  grid-area: portrait;
  align-self: start;
  height: clamp(500px, calc(100vh - 210px), 590px);
  min-height: 0;
  border-radius: 18px 18px 52px 18px;
  overflow: hidden;
  background: #e8f5f8;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}

@media (min-width: 901px) {
  .site-main {
    margin-top: -24px;
  }

  .hero__grid {
    column-gap: clamp(20px, 4vw, 42px);
    row-gap: clamp(14px, 1.5vw, 20px);
  }

  .hero__content {
    align-self: start;
  }

  .hero__portrait {
    --hero-portrait-offset: clamp(28px, 6vh, 64px);
    height: auto;
    margin-top: var(--hero-portrait-offset);
    align-self: stretch;
  }

  .hero__portrait img {
    position: absolute;
    inset: 0;
  }
}

.hero__portrait::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, transparent 45%, rgba(8, 35, 63, 0.34)),
    linear-gradient(90deg, rgba(8, 35, 63, 0.1), transparent 45%);
  pointer-events: none;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-out-expo);
}

.hero__portrait:hover img {
  transform: scale(1.055);
}

.hero__note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(250px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-card);
  color: white;
  background: rgba(8, 35, 63, 0.5);
  backdrop-filter: blur(18px);
}

.hero__note span {
  display: block;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.hero__note p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero__proofs {
  container-type: inline-size;
  grid-area: proofs;
  display: grid;
  grid-template-columns: 0.95fr 1.06fr 1.18fr;
  gap: 12px;
  align-items: stretch;
  max-width: 780px;
}

.hero-proof {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(8, 35, 63, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 18px 48px rgba(12, 37, 66, 0.07);
  backdrop-filter: blur(18px);
}

.hero-proof strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.68rem;
  line-height: 1;
}

.hero-proof span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-proof--accent {
  color: #301504;
  background: linear-gradient(135deg, rgba(255, 229, 156, 0.95), rgba(255, 111, 89, 0.18));
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 0;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    background 0.35s var(--ease-out-expo);
}

.btn::after {
  position: absolute;
  inset: auto auto -70% -20%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  content: "";
  transform: translateX(-80%) rotate(18deg);
  transition: transform 0.55s var(--ease-out-expo);
}

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

.btn:hover::after {
  transform: translateX(260%) rotate(18deg);
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.58;
  transform: none !important;
}

.btn--primary {
  color: #24130a;
  background: var(--yellow);
  box-shadow: 0 16px 34px rgba(245, 200, 76, 0.32);
}

.btn--primary:hover {
  background: #ffd86c;
  box-shadow: 0 24px 50px rgba(245, 200, 76, 0.38);
}

.btn--secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(8, 35, 63, 0.1);
}

.btn--secondary:hover {
  background: rgba(238, 247, 251, 0.92);
  box-shadow: inset 0 0 0 1px rgba(29, 111, 186, 0.2), 0 18px 44px rgba(12, 37, 66, 0.1);
}

.btn--full {
  width: 100%;
}

.lead-form,
.test-form {
  display: grid;
  gap: 14px;
}

.lead-form label,
.test-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 35, 63, 0.13);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(29, 111, 186, 0.48);
  background: white;
  box-shadow: 0 0 0 5px rgba(201, 233, 247, 0.65);
}

.check,
.radio {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted);
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.check[hidden] {
  display: none !important;
}

.check input,
.radio input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
  pointer-events: auto;
}

.check a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin: 0;
  color: var(--success);
  font-weight: 800;
}

.form-status:empty {
  display: none;
}

.advantages {
  padding-top: clamp(52px, 6.5vh, 76px);
}

.advantage-grid,
.program-grid,
.teacher-grid {
  display: grid;
  gap: 16px;
}

.advantage-grid {
  container-type: inline-size;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
  align-items: stretch;
}

.feature-card,
.program-card,
.teacher-card,
.format-list article {
  position: relative;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 54px rgba(12, 37, 66, 0.07);
  overflow: hidden;
  transition:
    transform 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo),
    border-color 0.55s var(--ease-out-expo);
}

.feature-card:hover,
.program-card:hover,
.format-list article:hover {
  border-color: rgba(255, 111, 89, 0.28);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 22px;
}

.feature-card:nth-child(2) {
  margin-top: 0;
}

.feature-card:nth-child(3) {
  margin-top: 0;
}

.feature-card:nth-child(4) {
  margin-top: 0;
}

.feature-card--exam {
  background: linear-gradient(145deg, rgba(8, 35, 63, 0.98), rgba(15, 67, 108, 0.94));
  color: white;
}

.feature-card.feature-card--exam p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card__highlight {
  padding: 0 0.04em;
  color: var(--yellow);
  background: linear-gradient(transparent 68%, rgba(245, 200, 76, 0.22) 68%);
  font-weight: 900;
}

.feature-card--path {
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(232, 246, 249, 0.96));
}

.feature-card--group {
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.94), rgba(255, 224, 201, 0.58));
}

.feature-card--method {
  background: linear-gradient(145deg, rgba(245, 253, 250, 0.94), rgba(209, 238, 245, 0.7));
}

.feature-card h3,
.format-list h3 {
  color: currentColor;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.26;
}

.feature-card h3 {
  margin-bottom: 0;
}

.feature-card p,
.program-card p,
.format-list p,
.teacher-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.round-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.92rem;
  font-weight: 900;
}

.founder {
  overflow: hidden;
  color: white;
  background:
    linear-gradient(112deg, rgba(29, 111, 186, 0.26), transparent 42%),
    linear-gradient(320deg, rgba(255, 111, 89, 0.12), transparent 34%),
    var(--navy);
}

.founder::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 84px);
}

.founder__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.founder__portrait {
  position: relative;
  min-width: 0;
  height: 720px;
  margin: 0;
  max-height: 720px;
  border-radius: 18px 18px 66px 18px;
  overflow: hidden;
  background: #dfeff5;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
}

.founder__portrait::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(8, 35, 63, 0.58));
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.8s var(--ease-out-expo);
}

.founder__portrait:hover img {
  transform: scale(1.035);
}

.founder__portrait figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: white;
}

.founder__portrait figcaption strong {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.founder__portrait figcaption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.founder__content {
  min-width: 0;
}

.founder__content h2 {
  max-width: 760px;
  margin: 0 0 12px;
  color: white;
  font-size: 2.65rem;
}

.founder__role {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 1.08rem;
  font-weight: 800;
}

.founder__intro {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
}

.founder__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  margin: 0;
}

.founder__facts > div {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.founder__facts dt {
  margin-bottom: 7px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.founder__facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  line-height: 1.52;
}

.founder__certificates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.founder__certificates p {
  max-width: 470px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.founder__certificates .founder__certificates-label {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 850;
}

.certificate-stack {
  display: block;
  width: 210px;
  height: 42px;
  border: 0;
  padding: 0;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.certificate-stack__action {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-pill);
  padding: 0 14px 0 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.83rem;
  font-weight: 850;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.certificate-stack__action b {
  font-size: 1.2rem;
}

.programs,
.prices,
.contacts {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(238, 247, 251, 0.48));
}

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

.program-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 320px;
  padding: 30px;
}

.program-card--featured {
  grid-row: auto;
  min-height: 320px;
  color: white;
  background:
    linear-gradient(160deg, rgba(8, 35, 63, 0.98), rgba(19, 83, 132, 0.9)),
    var(--navy);
}

.program-card--featured::after,
.program-card--soft::after {
  position: absolute;
  inset: auto 22px 20px auto;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
  opacity: 0.75;
}

.program-card--soft {
  background: linear-gradient(145deg, rgba(232, 246, 249, 0.96), rgba(255, 253, 248, 0.88));
}

.program-card__tag {
  display: inline-flex;
  justify-self: start;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  color: var(--navy);
  background: rgba(201, 233, 247, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.program-card--featured .program-card__tag {
  color: #251404;
  background: var(--yellow);
}

.program-card h3 {
  margin-bottom: 18px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.18;
}

.program-card--featured p,
.program-card.program-card--featured ul {
  color: rgba(255, 255, 255, 0.78);
}

.program-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 26px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.program-card li {
  position: relative;
  padding-left: 22px;
}

.program-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  transform: translateY(-50%);
}

.text-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  border: 1px solid rgba(8, 35, 63, 0.11);
  border-radius: var(--radius-pill);
  padding: 0 18px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.35s var(--ease-out-expo), background 0.35s var(--ease-out-expo);
}

.program-card--featured .text-button {
  color: #201408;
  border-color: transparent;
  background: var(--yellow);
}

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

.format-layout {
  display: block;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  align-items: stretch;
}

.format-list article {
  display: grid;
  height: 100%;
  min-height: 148px;
  align-content: start;
  gap: 6px;
  padding: 20px 24px;
}

.format-list h3 {
  margin-bottom: 0;
}

.format-list article:nth-child(2) {
  margin-top: 0;
}

.format-list article:nth-child(3) {
  margin-top: 0;
}

.price-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.price-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.price-tab.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.header-account:hover,
.main-nav > a:hover,
.btn:not(:disabled):hover,
.text-button:hover,
.price-tab:hover,
.certificate-stack:hover .certificate-stack__action {
  color: var(--navy);
  border-color: rgba(29, 111, 186, 0.28);
  background: var(--paper-cool);
  box-shadow: inset 0 0 0 1px rgba(29, 111, 186, 0.12), 0 14px 30px rgba(12, 37, 66, 0.1);
  transform: translateY(-2px);
}

.price-table {
  display: grid;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid rgba(8, 35, 63, 0.08);
  transition: background 0.25s ease;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row:nth-child(even) {
  background: rgba(238, 247, 251, 0.46);
}

.price-row:hover {
  background: rgba(255, 229, 156, 0.24);
}

.price-row strong {
  color: var(--navy);
  white-space: nowrap;
}

.price-row.hidden {
  display: none;
}

.teacher-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.teacher-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 390px);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
}

.teacher-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 18px;
  align-items: stretch;
}

.teacher-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.teacher-card h3 {
  font-size: 1.06rem;
}

.teacher-card p {
  margin-bottom: 16px;
}

.teacher-card .btn {
  margin-top: auto;
}

.teacher-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: 50%;
  color: var(--navy);
  background: white;
  box-shadow: 0 10px 26px rgba(13, 75, 130, 0.1);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.teacher-card__photo {
  width: 112px;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper-cool);
}

.teacher-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__photo--kristina img {
  object-position: center 20%;
}

.contacts {
  overflow: hidden;
}

.contacts__head {
  margin-bottom: 38px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.contacts__panel {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: var(--radius-card);
  color: white;
  background:
    linear-gradient(145deg, rgba(29, 111, 186, 0.24), transparent 54%),
    var(--navy);
  box-shadow: var(--shadow-soft);
}

.contacts__intro {
  max-width: 440px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
}

.contacts__list {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.contact-link:hover {
  color: var(--yellow);
  transform: translateX(5px);
}

.contact-link__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.contact-link__icon--phone {
  background: rgba(255, 255, 255, 0.94);
}

.contact-link__icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.contact-link__icon--phone img {
  width: 27px;
  height: 27px;
}

.contact-link small,
.contact-link strong {
  display: block;
}

.contact-link small {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
}

.contact-link strong {
  font-size: 1.02rem;
}

.contacts__address {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding-top: 0;
  font-style: normal;
}

.contacts__address span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contacts__address strong {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.map-card {
  position: relative;
  width: 100%;
  min-height: 440px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-soft);
}

.yandex-map-widget {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-soft);
}

.yandex-map-widget > a {
  position: absolute;
  left: 12px;
  z-index: 1;
  color: #9aa8b6;
  font-size: 11px;
}

.yandex-map-widget > a:first-child {
  top: 8px;
}

.yandex-map-widget > a:nth-child(2) {
  top: 24px;
}

.yandex-map-widget iframe {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: var(--radius-soft);
  filter: saturate(0.86) contrast(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .yandex-map-widget iframe {
    pointer-events: none;
  }
}

.site-footer {
  padding: 52px 0 24px;
  color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 111, 89, 0.12), transparent 32%),
    var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(220px, 330px);
  gap: clamp(40px, 8vw, 112px);
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px;
}

.site-footer h3,
.site-footer strong {
  color: white;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.02rem;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: #c9e9f7;
}

.site-footer p {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 38, 0.56);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100dvh - 120px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-soft);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-lift);
}

.modal__dialog h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.08;
}

.modal__dialog--wide {
  width: min(850px, 100%);
}

#test-modal .modal__dialog--wide {
  width: min(820px, 100%);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(201, 233, 247, 0.72);
  cursor: pointer;
  font-size: 1.5rem;
}

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

fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-card);
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 850;
}

.test-intro {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--muted);
}

.test-progress {
  position: sticky;
  top: -30px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

.test-progress strong {
  color: var(--navy);
}

.placement-test {
  display: grid;
  gap: 18px;
}

.test-level {
  display: grid;
  gap: 12px;
}

.test-level__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201, 233, 247, 0.65);
}

.test-level__head h3 {
  margin: 0;
  color: var(--navy);
}

.test-level__head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.placement-question {
  gap: 12px;
  padding: 17px 18px;
  background: rgba(238, 247, 251, 0.44);
}

.placement-question legend {
  max-width: calc(100% - 12px);
  line-height: 1.4;
}

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

.placement-question .radio {
  min-height: 44px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.placement-question .radio:has(input:checked) {
  color: var(--navy);
  border-color: rgba(29, 111, 186, 0.48);
  background: rgba(201, 233, 247, 0.5);
}

.teacher-modal {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 28px;
  align-items: start;
}

.teacher-modal__photo {
  aspect-ratio: 3 / 4;
  min-height: 0;
  max-height: 360px;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--paper-cool);
}

.teacher-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teacher-data {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 16px;
  margin: 22px 0 0;
}

.teacher-data dt {
  color: var(--muted);
  font-weight: 850;
}

.teacher-data dd {
  margin: 0;
}

.teacher-certificates {
  grid-column: 1 / -1;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(8, 35, 63, 0.1);
}

.teacher-certificates h3 {
  margin-bottom: 14px;
  color: var(--navy);
}

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

.teacher-certificate-scan {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 230px;
  padding: 8px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-card);
  background: rgba(238, 247, 251, 0.58);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.teacher-certificate-scan:hover {
  border-color: rgba(29, 111, 186, 0.25);
  box-shadow: 0 12px 30px rgba(13, 75, 130, 0.12);
  transform: translateY(-2px);
}

.teacher-certificate-scan img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  max-height: 320px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
}

.teacher-certificate-scan span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(13, 75, 130, 0.14);
  font-size: 0.75rem;
  font-weight: 900;
}

.certificate-viewer {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.certificate-viewer__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--paper-cool);
  cursor: pointer;
  font-size: 1.8rem;
}

.certificate-preview {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed rgba(29, 111, 186, 0.28);
  border-radius: var(--radius-soft);
  background: rgba(238, 247, 251, 0.58);
  overflow: hidden;
}

.certificate-preview img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.certificate-preview__empty {
  width: min(360px, calc(100% - 40px));
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.certificate-viewer__arrow:disabled {
  cursor: default;
  opacity: 0.34;
}

#certificate-counter {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
}

.legal-page {
  overflow-x: hidden;
  background: var(--navy);
}

.legal-page > main {
  background:
    linear-gradient(180deg, rgba(201, 233, 247, 0.3), transparent 380px),
    linear-gradient(308deg, rgba(183, 234, 223, 0.12), transparent 38%),
    var(--page);
}

.legal-page .site-header {
  top: 0;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 96px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid rgba(8, 35, 63, 0.08);
  background:
    linear-gradient(112deg, rgba(29, 111, 186, 0.13), transparent 46%),
    linear-gradient(320deg, rgba(255, 111, 89, 0.1), transparent 34%),
    rgba(255, 253, 248, 0.72);
}

.legal-hero .container {
  position: relative;
}

.legal-hero h1 {
  max-width: 1040px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.legal-hero p {
  width: min(720px, 100%);
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  padding: 40px 0 84px;
}

.legal-layout--single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.legal-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 3px;
  align-self: start;
  padding: 10px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 54px rgba(12, 37, 66, 0.06);
  backdrop-filter: blur(14px);
}

.legal-nav a {
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.legal-nav a:hover {
  color: var(--navy);
  background: rgba(201, 233, 247, 0.52);
}

.legal-content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.legal-block {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 20px 60px rgba(12, 37, 66, 0.065);
  scroll-margin-top: 104px;
}

.legal-block h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.legal-block p,
.legal-block li,
.legal-block a,
.legal-block dd,
.document-placeholder {
  overflow-wrap: anywhere;
}

.info-table {
  display: grid;
  gap: 10px;
}

.info-table div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(8, 35, 63, 0.1);
}

.info-table dt {
  color: var(--muted);
  font-weight: 850;
}

.info-table dd {
  margin: 0;
}

.doc-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.doc-list a,
.doc-list span {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(8, 35, 63, 0.1);
  border-radius: 14px;
  background: rgba(238, 247, 251, 0.54);
}

.doc-list small {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.document-meta li {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  color: var(--navy);
  background: rgba(201, 233, 247, 0.58);
  font-size: 0.84rem;
  font-weight: 900;
}

.document-placeholder {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 20px;
  border: 1px dashed rgba(29, 111, 186, 0.28);
  border-radius: 18px;
  background: rgba(238, 247, 251, 0.54);
}

.document-placeholder p {
  margin: 0;
  color: var(--muted);
}

.reveal,
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
}

.is-revealed,
[data-reveal-stagger] > .is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.52s var(--ease-out-expo), transform 0.52s var(--ease-out-expo);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: hero-enter 0.68s var(--ease-out-expo) both;
  }
}

@container (max-width: 620px) {
  .hero__proofs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .header-inner {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
  }

  .hero__portrait {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --promo-height: 58px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .promo-line {
    flex-direction: column;
    gap: 4px;
  }

  .header-inner {
    position: relative;
    grid-template-areas: "brand toggle account";
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
  }

  .brand__logo {
    width: 104px;
    height: 54px;
  }

  .menu-toggle {
    display: grid;
    justify-self: center;
  }

  .header-account {
    justify-self: end;
    font-size: 0.82rem;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    z-index: 2;
    display: grid;
    width: min(268px, calc(100vw - 24px));
    justify-content: stretch;
    justify-items: stretch;
    gap: 0;
    padding: 6px 0;
    border: 1px solid rgba(8, 35, 63, 0.1);
    border-top: 0;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 24px 54px rgba(12, 37, 66, 0.14);
    backdrop-filter: blur(18px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transform-origin: top;
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease,
      transform 0.38s var(--ease-out-expo);
  }

  .main-nav > a {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    border-radius: 0;
    padding: 0 18px;
    font-size: 0.9rem;
  }

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

  .hero {
    padding-top: 24px;
  }

  .hero__media {
    min-height: 420px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "portrait"
      "proofs";
  }

  .hero__content {
    padding-top: 34px;
  }

  .hero__portrait {
    width: min(520px, 100%);
    height: 520px;
    margin-top: 0;
    min-height: 520px;
    justify-self: center;
  }

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

  .founder__portrait {
    width: min(520px, 100%);
    height: auto;
    justify-self: center;
    aspect-ratio: 4 / 5;
  }

  .advantage-grid,
  .program-grid,
  .format-layout,
  .contacts__grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contacts__panel {
    min-height: auto;
  }

  .advantage-grid {
    grid-auto-rows: auto;
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .format-list article:nth-child(2),
  .format-list article:nth-child(3) {
    margin-top: 0;
  }

  .format-list {
    grid-template-columns: 1fr;
  }

  .program-card--featured {
    grid-row: auto;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 32px 0 70px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --promo-height: 58px;
  }

  h1 {
    font-size: 1.95rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.85rem;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 52px 0;
    scroll-margin-top: 150px;
  }

  .promo-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: left;
  }

  .promo-line::before {
    display: none;
  }

  .header-inner {
    grid-template-areas: "brand toggle account";
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 6px;
    padding: 8px 0;
  }

  .brand__logo {
    width: 84px;
    height: 44px;
  }

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

  .header-account {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 14px 0 34px;
  }

  .hero__media {
    min-height: 320px;
  }

  .hero__content {
    padding-top: 10px;
  }

  .hero__lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__actions {
    gap: 9px;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .hero__portrait {
    width: min(448px, 100%);
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 16px 16px 34px 16px;
  }

  .hero__portrait img {
    object-position: center 32%;
  }

  .hero__note {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .hero__proofs {
    display: none;
  }

  .founder__grid {
    gap: 34px;
  }

  .founder__portrait {
    max-height: 520px;
    border-radius: 16px 16px 40px 16px;
  }

  .founder__content h2 {
    font-size: 1.82rem;
  }

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

  .founder__certificates {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .certificate-stack {
    width: min(210px, 100%);
    margin-top: 6px;
  }

  .feature-card,
  .program-card,
  .format-list article {
    min-height: auto;
    padding: 22px;
  }

  .price-tabs {
    justify-content: flex-start;
  }

  .price-tab {
    flex: 1 1 auto;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .map-card {
    min-height: 400px;
    height: 400px;
  }

  .contacts__head {
    margin-bottom: 28px;
  }

  .contacts__panel {
    padding: 24px;
  }

  .contact-link {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .teacher-card {
    grid-template-columns: 86px 1fr;
  }

  .teacher-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .teacher-grid {
    grid-auto-columns: minmax(250px, 82vw);
  }

  .teacher-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .teacher-card__photo {
    width: 86px;
  }

  .teacher-modal {
    grid-template-columns: 1fr;
  }

  .teacher-modal__photo {
    aspect-ratio: 3 / 4;
    min-height: 0;
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .placement-question__options {
    grid-template-columns: 1fr;
  }

  .teacher-data,
  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .teacher-certificate-grid {
    grid-template-columns: 1fr;
  }

  .certificate-viewer {
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
  }

  .certificate-viewer__arrow {
    width: 36px;
    height: 36px;
  }

  .modal {
    padding: 22px 18px;
  }

  #trial-modal .modal__dialog,
  #test-modal .modal__dialog {
    width: min(350px, 100%);
    max-height: calc(100dvh - 112px);
    padding: 24px 18px;
  }

  .modal__dialog h2,
  .legal-block h2 {
    font-size: 1.55rem;
  }

  .legal-hero {
    padding: 38px 0 28px;
  }

  .legal-hero h1 {
    font-size: clamp(1.72rem, 8vw, 2.2rem);
    line-height: 1.08;
  }

  .legal-hero p {
    margin-top: 16px;
    font-size: 0.95rem;
  }

  .legal-layout {
    gap: 16px;
    padding: 24px 0 56px;
  }

  .legal-nav {
    display: none;
  }

  .legal-block {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .doc-list a,
  .doc-list span {
    flex-direction: column;
    gap: 5px;
  }

  .doc-list small {
    text-align: left;
  }

  .document-placeholder {
    padding: 16px;
    border-radius: 14px;
  }
}

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

  .reveal,
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
