:root {
  --text: #18211f;
  --muted: #61706b;
  --line: #dbeaf2;
  --surface: #ffffff;
  --soft: #f5fbff;
  --accent: #1f8fd1;
  --accent-dark: #0f6fa8;
  --warm: #dff3ff;
  --ink: #101817;
  --shadow: 0 18px 55px rgba(24, 33, 31, 0.12);
}

body.fortland-public-shell {
  --paper: #ffffff;
  --grid: #d6e5f5;
  --grid-strong: #c2d7ee;
  --ink: #1b2430;
  --ink-soft: #56697e;
  --blue: #2748c8;
  --blue-bright: #3b66f5;
  --blue-bg: #eaf0fe;
  --red: #e03e45;
  --line: rgba(27, 36, 48, 0.1);
  overflow-x: hidden;
  background-color: #ffffff;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:has(body.fortland-public-shell) {
  max-width: 100%;
  overflow-x: hidden;
}

body.fortland-public-shell h1,
body.fortland-public-shell h2,
body.fortland-public-shell h3 {
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.fortland-public-shell .site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(146, 183, 226, 0.55);
  padding: 10px clamp(18px, 4vw, 56px) 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.94));
  box-shadow: 0 18px 44px -36px rgba(31, 72, 145, 0.38);
  backdrop-filter: blur(16px);
}

body.fortland-public-shell .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright) 60%, var(--red));
}

body.fortland-public-shell .brand-modern {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

body.fortland-public-shell .brand-mark,
body.fortland-public-shell .mobile-cabinet {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 10px 24px -12px rgba(39, 72, 200, 0.68);
}

body.fortland-public-shell .brand-copy {
  display: grid;
  line-height: 1.08;
}

body.fortland-public-shell .brand-copy strong {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 900;
  white-space: nowrap;
}

body.fortland-public-shell .brand-copy small {
  margin-top: 3px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.fortland-public-shell .main-nav {
  gap: clamp(20px, 2.4vw, 38px);
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 900;
}

body.fortland-public-shell .nav-link {
  position: relative;
  padding: 10px 0;
  color: var(--ink);
}

body.fortland-public-shell .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.22s;
}

body.fortland-public-shell .nav-link:hover,
body.fortland-public-shell .nav-link.is-active {
  color: var(--blue);
}

body.fortland-public-shell .nav-link:hover::after,
body.fortland-public-shell .nav-link.is-active::after {
  transform: scaleX(1);
}

body.fortland-public-shell .dropdown-menu {
  top: calc(100% + 16px);
  border: 2px solid var(--grid-strong);
  border-radius: 16px;
  box-shadow: 0 22px 50px -26px rgba(27, 36, 48, 0.45);
}

body.fortland-public-shell .messenger-action {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow:
    0 14px 28px -16px rgba(27, 36, 48, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body.fortland-public-shell .messenger-action img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

body.fortland-public-shell .messenger-action svg {
  width: 31px;
  height: 31px;
  display: block;
}

body.fortland-public-shell .cabinet-action,
body.fortland-public-shell .lesson-action,
body.fortland-public-shell .button {
  min-height: 52px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

body.fortland-public-shell .cabinet-action {
  border: 2px solid var(--grid-strong);
  color: var(--ink);
  background: #fff;
}

body.fortland-public-shell .lesson-action,
body.fortland-public-shell .button.primary {
  background: linear-gradient(145deg, var(--red), #c42a31);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(224, 62, 69, 0.78);
}

body.fortland-public-shell main {
  background: transparent;
}

body.fortland-public-shell .section,
body.fortland-public-shell .about-hero,
body.fortland-public-shell .contact,
body.fortland-public-shell .documents-page,
body.fortland-public-shell .auth-section {
  max-width: min(1140px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

body.fortland-public-shell .section-heading,
body.fortland-public-shell .page-hero,
body.fortland-public-shell .auth-panel,
body.fortland-public-shell .contact-manager-panel,
body.fortland-public-shell .contact-form-panel,
body.fortland-public-shell .documents-card,
body.fortland-public-shell .legal-page,
body.fortland-public-shell .news-card,
body.fortland-public-shell .program-card,
body.fortland-public-shell .review-card,
body.fortland-public-shell .teacher-card,
body.fortland-public-shell .price-card,
body.fortland-public-shell .about-feature-grid article,
body.fortland-public-shell .showcase-grid article,
body.fortland-public-shell .history-grid article,
body.fortland-public-shell .success-grid article {
  border: 1px solid var(--grid-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px -32px rgba(27, 36, 48, 0.28);
}

body.fortland-public-shell .section-heading {
  padding: clamp(26px, 4vw, 42px);
}

body.fortland-public-shell .section-heading h1,
body.fortland-public-shell .section-heading h2,
body.fortland-public-shell .page-hero h1 {
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.06;
}

body.fortland-public-shell .section-heading p,
body.fortland-public-shell .page-hero p,
body.fortland-public-shell .contact p {
  color: var(--ink-soft);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
}

body.fortland-public-shell .contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 24px;
  padding: 40px 0;
}

body.fortland-public-shell .contact-manager-panel,
body.fortland-public-shell .contact-form-panel {
  padding: clamp(28px, 4vw, 42px);
}

body.fortland-public-shell .contact-manager-panel {
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  color: #fff;
}

body.fortland-public-shell .contact-manager-panel p {
  color: rgba(255, 255, 255, 0.9);
}

body.fortland-public-shell .contact-form input,
body.fortland-public-shell .contact-form textarea,
body.fortland-public-shell .contact-form select,
body.fortland-public-shell .auth-panel input {
  border: 2px solid var(--grid-strong);
  border-radius: 14px;
  background: #fff;
}

body.fortland-public-shell .contact-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

body.fortland-public-shell .contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

body.fortland-public-shell .contact-consent a {
  color: var(--blue);
}

body.fortland-public-shell .contact-consent.is-invalid {
  color: var(--red);
}

body.fortland-public-shell .site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 38px auto 24px;
  border: 2px solid var(--grid-strong);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px -38px rgba(27, 36, 48, 0.32);
}

body.fortland-public-shell .footer-main {
  padding: clamp(28px, 4vw, 42px);
}

body.fortland-public-shell .footer-nav h3 {
  color: var(--blue);
  font-family: inherit;
}

body.fortland-public-shell .footer-bottom {
  border-top: 1px solid var(--grid-strong);
  color: var(--ink-soft);
}

@media (max-width: 1180px) {
  body.fortland-public-shell .lesson-action {
    display: none;
  }
}

@media (max-width: 980px) {
  body.fortland-public-shell .site-header {
    grid-template-columns: auto 1fr auto;
  }

  body.fortland-public-shell .brand-copy {
    display: none;
  }

  body.fortland-public-shell .mobile-actions {
    display: flex;
  }

  body.fortland-public-shell .mobile-cabinet {
    display: none;
  }

  body.fortland-public-shell .main-nav,
  body.fortland-public-shell .header-actions {
    display: none;
  }

  body.fortland-public-shell .mobile-menu {
    border-left: 2px solid var(--grid-strong);
    background: #fff;
  }

  body.fortland-public-shell .mobile-nav a,
  body.fortland-public-shell .mobile-nav summary {
    min-height: 58px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
  }

  body.fortland-public-shell .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.fortland-public-shell .site-header {
    min-height: 66px;
    padding: 10px 16px;
  }

  body.fortland-public-shell .site-header .messenger-actions {
    display: flex;
  }

  body.fortland-public-shell .brand-mark,
  body.fortland-public-shell .mobile-cabinet {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  body.fortland-public-shell .section,
  body.fortland-public-shell .about-hero,
  body.fortland-public-shell .contact,
  body.fortland-public-shell .documents-page,
  body.fortland-public-shell .auth-section,
  body.fortland-public-shell .site-footer {
    max-width: none;
    width: calc(100% - 32px);
  }

  body.fortland-public-shell .section-heading h1,
  body.fortland-public-shell .section-heading h2,
  body.fortland-public-shell .page-hero h1 {
    font-size: 34px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  min-height: 96px;
  padding: 8px clamp(24px, 4vw, 56px) 14px;
  border-bottom: 3px solid #f0f0f0;
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(132px, 14vw, 210px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(18px, 2.1vw, 36px);
  color: var(--ink);
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 750;
}

.nav-item {
  position: relative;
}

.has-menu::after {
  position: absolute;
  top: 100%;
  left: -28px;
  width: calc(100% + 56px);
  height: 34px;
  content: "";
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.has-menu:hover .chevron,
.has-menu:focus-within .chevron {
  transform: translateY(2px) rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  display: grid;
  min-width: 300px;
  gap: 18px;
  padding: 30px 30px 28px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 70px rgba(16, 24, 23, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.has-menu:hover .dropdown-menu,
.has-menu:focus-within .dropdown-menu,
.has-menu.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  color: var(--ink);
  font-size: clamp(18px, 1.05vw, 20px);
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 14px;
}

.cabinet-action,
.lesson-action,
.button {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.cabinet-action {
  gap: 10px;
  min-height: 56px;
  padding: 0 clamp(18px, 1.4vw, 26px);
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
  font-size: clamp(17px, 1vw, 20px);
}

.lesson-action {
  padding: 0 clamp(22px, 1.7vw, 32px);
  background: var(--accent);
  color: white;
  font-size: clamp(17px, 1.15vw, 24px);
}

.lesson-action:hover {
  background: var(--accent-dark);
}

.button:hover,
.lesson-action:hover,
.cabinet-action:hover,
.tab:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 23, 0.16);
  transform: translateY(-2px);
}

.button:focus-visible,
.lesson-action:focus-visible,
.cabinet-action:focus-visible,
.tab:focus-visible {
  outline: 3px solid rgba(31, 143, 209, 0.28);
  outline-offset: 3px;
}

.button:active,
.lesson-action:active,
.cabinet-action:active,
.tab:active {
  box-shadow: 0 6px 16px rgba(16, 24, 23, 0.14);
  transform: translateY(0);
}

.messenger-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messenger-action {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.messenger-action:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 23, 0.16);
  transform: translateY(-2px);
}

.messenger-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messenger-action svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.messenger-action img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.account-icon {
  width: 28px;
  height: 28px;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-toggle {
  display: none;
}

.menu-backdrop,
.mobile-menu {
  display: none;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(20px, 6vw, 84px);
  background: var(--soft);
}

.login-panel {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 44px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  color: var(--muted);
  font-weight: 850;
}

.login-form input {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
  background: #f5fbff;
  color: var(--ink);
  font: inherit;
}

.login-form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(31, 143, 209, 0.18);
}

.login-form button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-alert {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.login-alert[data-type="error"] {
  border-color: rgba(223, 46, 49, 0.35);
  background: rgba(223, 46, 49, 0.08);
  color: #b22525;
}

body.login-home-header {
  background-color: #ffffff !important;
  background-image: linear-gradient(#d6e5f5 1px, transparent 1px), linear-gradient(90deg, #d6e5f5 1px, transparent 1px);
  background-size: 26px 26px;
}

body.login-home-header .login-main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(146, 183, 226, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.94));
  box-shadow: 0 18px 44px -36px rgba(31, 72, 145, 0.38);
  backdrop-filter: blur(16px);
}

body.login-home-header .login-main-nav::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2748c8, #3b66f5 60%, #e03e45);
  content: "";
  pointer-events: none;
}

body.login-home-header .login-nav-wrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

body.login-home-header .login-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 22px;
}

body.login-home-header .login-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: #1b2430;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

body.login-home-header .login-logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #3b66f5, #2748c8);
  box-shadow: 0 10px 24px -12px rgba(39, 72, 200, 0.68);
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
}

body.login-home-header .login-logo-text {
  display: grid;
  line-height: 1.08;
}

body.login-home-header .login-logo-text small {
  margin-top: 3px;
  color: #2748c8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.login-home-header .login-nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  color: #1b2430;
  font-size: 22px;
  font-weight: 900;
}

body.login-home-header .login-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #1b2430;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s;
}

body.login-home-header .login-nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: #2748c8;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.22s;
}

body.login-home-header .login-nav-links a:hover,
body.login-home-header .login-nav-links a.active {
  color: #2748c8;
  transform: translateY(-1px);
}

body.login-home-header .login-nav-links a:hover::after,
body.login-home-header .login-nav-links a.active::after {
  transform: scaleX(1);
}

body.login-home-header .login-nav-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg) translateY(-3px);
}

body.login-home-header .login-nav-right,
body.login-home-header .login-nav-msgr {
  display: flex;
  align-items: center;
}

body.login-home-header .login-nav-right {
  flex-shrink: 0;
  gap: 14px;
}

body.login-home-header .login-nav-msgr {
  gap: 10px;
}

body.login-home-header .login-msgr {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 14px 28px -16px rgba(27, 36, 48, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: 0.18s;
}

body.login-home-header .login-msgr:hover {
  box-shadow: 0 20px 36px -18px rgba(27, 36, 48, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: translateY(-3px) scale(1.08);
}

body.login-home-header .login-msgr svg {
  display: block;
  width: 31px;
  height: 31px;
}

body.login-home-header .login-msgr-wa {
  background: #25d366;
}

body.login-home-header .login-msgr-tg {
  background: #2aabee;
}

body.login-home-header .login-msgr-max {
  background: linear-gradient(135deg, #31c7e8 0%, #3c6fe8 52%, #a13ce8 100%);
}

body.login-home-header .login-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(145deg, #e03e45 0%, #c42a31 100%);
  box-shadow: 0 14px 30px -18px rgba(224, 62, 69, 0.78);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 900;
  white-space: nowrap;
}

body.login-home-header .login-nav-login:hover {
  box-shadow: 0 20px 38px -18px rgba(224, 62, 69, 0.9);
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
}

body.login-home-header .login-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 2px solid #c2d7ee;
  border-radius: 12px;
  background: #ffffff;
  color: #1b2430;
  cursor: pointer;
}

body.login-home-header .login-nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: 0.2s;
}

body.login-home-header .login-nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.login-home-header .login-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

body.login-home-header .login-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.login-home-header .login-mobile-menu {
  position: absolute;
  top: 64px;
  right: 16px;
  left: 16px;
  display: none;
  gap: 6px;
  border: 2px solid #c2d7ee;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 22px 50px -26px rgba(27, 36, 48, 0.45);
}

body.login-home-header .login-mobile-menu.open {
  display: grid;
}

body.login-home-header .login-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1b2430;
  font-weight: 800;
}

body.login-home-header .login-mobile-menu a:hover {
  background: #eaf0fe;
  color: #2748c8;
}

@media (max-width: 980px) {
  body.login-home-header .login-nav-login {
    display: none;
  }
}

@media (max-width: 900px) {
  body.login-home-header .login-nav-links {
    display: none;
  }

  body.login-home-header .login-nav-toggle {
    display: flex;
  }

  body.login-home-header .login-nav-inner {
    position: relative;
  }
}

@media (max-width: 620px) {
  body.login-home-header .login-nav-right {
    gap: 8px;
  }

  body.login-home-header .login-nav-msgr {
    gap: 7px;
  }

  body.login-home-header .login-msgr {
    width: 42px;
    height: 42px;
  }

  body.login-home-header .login-msgr svg {
    width: 25px;
    height: 25px;
  }

  body.login-home-header .login-logo {
    gap: 0;
    font-size: 0;
  }

  body.login-home-header .login-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  body.login-home-header .login-logo-text {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  overflow: hidden;
  color: var(--ink);
}

.hero::after {
  display: none;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(84px, 12vw, 150px) clamp(20px, 6vw, 84px) 120px;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: min(780px, calc(100vh - 96px));
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 84px);
  background:
    radial-gradient(circle at 84% 24%, rgba(31, 143, 209, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fffafa 52%, #fbf1f3 100%);
}

.hero-home .hero-content {
  width: auto;
  padding: 0;
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.7vw, 58px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 22px);
}

.hero-copy-strong {
  color: var(--ink);
  font-weight: 780;
}

.hero-list {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 720;
}

.hero-list li {
  position: relative;
  padding-left: 34px;
}

.hero-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  border: 0;
  padding: 0 22px;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: clamp(380px, 38vw, 510px);
  align-items: center;
  border-radius: 40px;
}

.hero-visual-image {
  width: min(620px, 100%);
  aspect-ratio: 1 / 1;
  justify-self: end;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 28px 80px rgba(16, 24, 23, 0.12);
}

.hero-orbit {
  position: absolute;
  inset: 8% 4% 2% 0;
  border: 5px solid rgba(31, 143, 209, 0.3);
  border-radius: 48% 52% 45% 55%;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-lesson-card {
  position: absolute;
  right: 10%;
  bottom: 15%;
  display: grid;
  width: clamp(190px, 18vw, 260px);
  gap: 6px;
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 24px;
  background: white;
  box-shadow: 18px 18px 0 rgba(31, 143, 209, 0.24);
  animation: heroCard 5.5s ease-in-out infinite;
}

.hero-lesson-card span {
  display: block;
  width: 70px;
  height: 70px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center 54% / 34px 4px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center 40% / 4px 34px no-repeat;
}

.hero-lesson-card strong {
  font-size: 38px;
  line-height: 1;
}

.hero-lesson-card small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-teacher {
  position: absolute;
  top: 12%;
  left: 20%;
  width: clamp(190px, 18vw, 250px);
  height: clamp(260px, 25vw, 340px);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-head {
  position: absolute;
  top: 0;
  left: 52px;
  width: 96px;
  height: 96px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 42%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 65% 42%, var(--ink) 0 4px, transparent 5px),
    #fff;
}

.hero-head::before {
  position: absolute;
  top: 18px;
  left: -18px;
  width: 132px;
  height: 64px;
  border-radius: 50% 50% 42% 42%;
  background: var(--ink);
  content: "";
  z-index: -1;
}

.hero-head::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 28px;
  height: 14px;
  border-bottom: 4px solid var(--accent);
  border-radius: 0 0 24px 24px;
  content: "";
}

.hero-body {
  position: absolute;
  top: 92px;
  left: 28px;
  width: 150px;
  height: 160px;
  border: 5px solid var(--ink);
  border-radius: 46px 46px 28px 28px;
  background: #ffffff;
}

.hero-body::before,
.hero-body::after {
  position: absolute;
  content: "";
}

.hero-body::before {
  top: 30px;
  left: 40px;
  width: 70px;
  height: 60px;
  border: 4px solid var(--warm);
  border-radius: 10px;
  transform: rotate(-7deg);
}

.hero-body::after {
  right: 28px;
  bottom: 24px;
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-arm {
  position: absolute;
  top: 128px;
  right: -2px;
  width: 116px;
  height: 34px;
  border-top: 5px solid var(--ink);
  border-right: 5px solid var(--ink);
  transform: rotate(-28deg);
  transform-origin: left center;
  animation: heroPoint 3.8s ease-in-out infinite;
}

.hero-student {
  position: absolute;
  width: 112px;
  height: 132px;
  border: 5px solid var(--ink);
  border-radius: 36px 36px 18px 18px;
  background: #ffffff;
  animation: heroFloat 5.2s ease-in-out infinite;
}

.hero-student span {
  position: absolute;
  top: -46px;
  left: 24px;
  width: 64px;
  height: 64px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 42%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 66% 42%, var(--ink) 0 3px, transparent 4px),
    #fff;
}

.hero-student-one {
  bottom: 15%;
  left: 10%;
  background: #fbf1f3;
}

.hero-student-two {
  right: 32%;
  bottom: 2%;
  background: #ffe9e9;
  animation-delay: -1.5s;
}

.hero-wave {
  position: absolute;
  height: 16px;
  border-bottom: 5px solid var(--ink);
  border-radius: 50%;
}

.hero-wave-one {
  right: 8%;
  bottom: 5%;
  width: 250px;
}

.hero-wave-two {
  right: 21%;
  bottom: 0;
  width: 180px;
}

.hero-spark {
  position: absolute;
  width: 46px;
  height: 46px;
  animation: heroSpin 8s linear infinite;
}

.hero-spark::before,
.hero-spark::after {
  position: absolute;
  inset: 20px 0 auto;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero-spark::after {
  transform: rotate(90deg);
}

.hero-spark-one {
  top: 14%;
  right: 10%;
}

.hero-spark-two {
  bottom: 22%;
  left: 0;
  animation-delay: -2s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes heroCard {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }
  50% {
    transform: translate(-8px, -14px) rotate(2deg);
  }
}

@keyframes heroPoint {
  0%,
  100% {
    transform: rotate(-28deg);
  }
  50% {
    transform: rotate(-18deg);
  }
}

@keyframes heroSpin {
  to {
    transform: rotate(360deg);
  }
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.why-school {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 84px);
  background: #fbf1f3;
}

.why-school-heading {
  max-width: 1280px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.why-school-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.02;
}

.why-school-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  max-width: 1580px;
  margin: 0 auto;
}

.why-card {
  position: relative;
  min-height: clamp(420px, 32vw, 560px);
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 24, 23, 0.06), rgba(16, 24, 23, 0.7)),
    var(--why-image, none) center / cover no-repeat,
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 80% 18%, rgba(31, 143, 209, 0.18), transparent 24%),
    radial-gradient(circle at 18% 84%, rgba(31, 143, 209, 0.22), transparent 26%);
  box-shadow: 0 24px 60px rgba(16, 24, 23, 0.08);
}

.why-card::before,
.why-card::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.why-card::before {
  top: 32px;
  right: 34px;
  width: 54px;
  height: 54px;
  border-right: 6px solid var(--warm);
  border-bottom: 6px solid var(--warm);
  transform: rotate(45deg);
  opacity: 0.9;
}

.why-card::after {
  right: 26px;
  bottom: 28px;
  width: 128px;
  height: 52px;
  border-bottom: 8px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-10deg);
  opacity: 0.78;
}

.why-card-photo .why-card-content {
  color: white;
}

.why-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 34px);
  color: var(--ink);
}

.why-card-content span {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why-card-photo .why-card-content span {
  color: var(--warm);
}

.why-card-content h3 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: break-word;
  font-size: clamp(28px, 2.35vw, 38px);
  hyphens: auto;
  line-height: 1.06;
}

.why-card-content p {
  max-width: 100%;
  margin: 18px 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

.home-pricing {
  position: relative;
  padding: clamp(68px, 8vw, 118px) clamp(20px, 6vw, 84px);
  background: #f7f8f5;
  color: var(--ink);
  overflow: hidden;
}

.home-pricing::before {
  position: absolute;
  inset: auto -8% -18% 42%;
  height: 360px;
  border-radius: 50%;
  background: rgba(31, 143, 209, 0.12);
  filter: blur(60px);
  content: "";
}

.home-pricing-heading {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}

.home-pricing-heading h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 98px);
  line-height: 0.98;
}

.home-pricing-heading p {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 760;
}

.pricing-class-picker {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.pricing-help {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.pricing-age-hint {
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 4;
  width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 24, 23, 0.16);
  transform: translateX(-50%);
}

.pricing-age-hint strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.15;
}

.pricing-age-hint table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 15px;
}

.pricing-age-hint th,
.pricing-age-hint td {
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  text-align: left;
}

.pricing-age-hint th {
  color: var(--ink);
  font-weight: 900;
}

.course-class-section {
  background: #fbfcfa;
}

.course-class-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 760;
}

.course-class-note strong {
  color: var(--accent);
}

.pricing-class-list,
.pricing-tariff-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pricing-class-list button,
.pricing-tariff-switch button {
  min-height: 58px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 26px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 760;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.pricing-class-list button:hover,
.pricing-tariff-switch button:hover {
  transform: translateY(-2px);
}

.pricing-class-list button.is-active,
.pricing-tariff-switch button.is-active {
  border-color: var(--warm);
  background: var(--warm);
  color: var(--ink);
}

.pricing-tariff-switch {
  position: relative;
  z-index: 1;
  margin: clamp(28px, 4vw, 46px) auto 0;
}

.pricing-tariff-switch button {
  min-height: 54px;
  font-size: clamp(18px, 1.5vw, 22px);
}

.pricing-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  max-width: 680px;
  margin: clamp(32px, 4vw, 56px) auto 0;
}

.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 46px);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 24, 23, 0.1);
  opacity: 0.74;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.pricing-card.is-active {
  background: #f7edf0;
  opacity: 1;
  transform: translateY(0);
}

.pricing-ribbon {
  position: absolute;
  top: 22px;
  right: -54px;
  width: 210px;
  padding: 10px 0;
  background: var(--accent);
  color: white;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
}

.pricing-card-head > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(31, 143, 209, 0.16);
  color: #13878c;
  font-weight: 900;
}

.pricing-card h3 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.pricing-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  background: rgba(31, 143, 209, 0.24);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 850;
  line-height: 1.25;
}

.pricing-card li::before {
  position: absolute;
  left: 14px;
  color: #52b241;
  content: "✓";
}

.pricing-card strong {
  display: block;
  margin-top: auto;
  color: var(--accent);
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1;
}

.pricing-card .button {
  width: fit-content;
  margin-top: 24px;
}

.transfer-guide {
  padding: clamp(68px, 8vw, 118px) clamp(20px, 6vw, 84px);
  background: #fbf1f3;
}

.transfer-guide-heading {
  max-width: 1280px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.transfer-guide-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.02;
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  max-width: 1580px;
  margin: 0 auto;
}

.transfer-card {
  position: relative;
  min-height: clamp(380px, 28vw, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(16, 24, 23, 0.76)),
    var(--transfer-image, none) center / cover no-repeat,
    linear-gradient(145deg, #ffffff, #fbf1f3);
  box-shadow: 0 24px 60px rgba(16, 24, 23, 0.08);
}

.transfer-card-wide {
  grid-column: auto;
}

.transfer-card.is-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(16, 24, 23, 0.7)),
    var(--transfer-image, none) center / cover no-repeat,
    linear-gradient(145deg, #efd7dc, #f8edf0);
}

.transfer-card::before,
.transfer-card::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.transfer-card::before {
  top: 30px;
  right: 32px;
  width: 54px;
  height: 54px;
  border-right: 6px solid var(--warm);
  border-bottom: 6px solid var(--warm);
  transform: rotate(45deg);
  opacity: 0.82;
}

.transfer-card::after {
  right: 28px;
  bottom: 26px;
  width: 132px;
  height: 52px;
  border-bottom: 8px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-10deg);
  opacity: 0.78;
}

.transfer-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 36px);
  color: white;
}

.transfer-card-content span {
  margin-bottom: 10px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transfer-card-content h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.04;
}

.transfer-card-content p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

.transfer-card-content .button {
  width: fit-content;
  margin-top: 26px;
  border-color: rgba(255, 255, 255, 0.82);
  background: white;
  color: var(--ink);
}

.transfer-card-content .button.primary {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: white;
  color: var(--ink);
}

.action-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.action-modal.is-open {
  display: grid;
}

.action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 23, 0.48);
}

.action-modal__panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 42px);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(16, 24, 23, 0.22);
  outline: none;
}

.action-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.action-modal h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

.action-modal p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.action-modal__actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.action-modal__actions a,
.action-modal__actions button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 0 18px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.action-modal__actions a:first-child,
.action-modal__actions button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.quick-stats article {
  min-height: 118px;
  padding: 28px clamp(22px, 4vw, 54px);
  background: var(--surface);
}

.quick-stats strong {
  display: block;
  font-size: 28px;
}

.quick-stats span {
  color: var(--muted);
}

.section,
.contact {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 6vw, 84px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 650px;
}

.section h2,
.contact h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.audience-grid,
.two-sides-grid,
.showcase-grid,
.review-grid,
.about-feature-grid,
.history-grid,
.success-grid {
  display: grid;
  gap: 18px;
}

.audience-grid,
.showcase-grid,
.review-grid,
.history-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.two-sides-grid,
.success-grid {
  grid-template-columns: repeat(2, 1fr);
}

.role-list article,
.price-panel,
.faq-list details,
.audience-grid article,
.two-sides-grid article,
.showcase-grid article,
.review-grid article,
.about-feature-grid article,
.history-grid article,
.success-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.audience-grid article,
.two-sides-grid article,
.showcase-grid article,
.review-grid article,
.about-feature-grid article,
.history-grid article,
.success-grid article {
  min-height: 260px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-feature-grid article {
  min-height: clamp(170px, 14vw, 220px);
  padding: clamp(22px, 2.4vw, 30px);
}

.about-feature-grid article h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
}

.audience-grid article {
  border-radius: 18px;
}

.role-list h3 {
  margin: 24px 0 10px;
  font-size: 24px;
}

.role-list p,
.two-sides-grid p,
.showcase-grid p,
.about-feature-grid p {
  margin: 0;
  color: var(--muted);
}

.programs-showcase,
.courses-showcase {
  background: #fbfcfa;
}

.courses-showcase {
  padding-top: clamp(48px, 7vw, 92px);
}

.programs-heading {
  max-width: none;
  margin-bottom: 54px;
  text-align: center;
}

.programs-heading h2 {
  font-size: clamp(46px, 5.8vw, 86px);
  line-height: 0.95;
}

.program-feature-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 1.03fr) minmax(260px, 1.03fr);
  grid-template-rows: repeat(2, minmax(260px, auto));
  gap: 24px;
}

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

.program-card {
  position: relative;
  display: flex;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 42px);
  background: #fbf1f3;
  color: var(--ink);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.program-card::before,
.program-card::after {
  position: absolute;
  color: var(--ink);
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  content: "+";
}

.program-card::before {
  top: 52%;
  right: 10%;
  transform: rotate(18deg);
}

.program-card::after {
  bottom: 18%;
  left: 16%;
  transform: rotate(-12deg);
}

.program-card.is-accent {
  background: #efd7dc;
}

.program-card-photo,
.program-card-photo.is-accent {
  background:
    linear-gradient(180deg, rgba(16, 24, 23, 0.08) 0%, rgba(16, 24, 23, 0.72) 100%),
    var(--program-image, none) center / cover no-repeat,
    #efd7dc;
  color: white;
}

.program-card-photo::before,
.program-card-photo::after,
.program-card-photo .program-art {
  display: none;
}

.program-card-photo .program-copy small {
  color: rgba(255, 255, 255, 0.88);
}

.program-card-photo .program-arrow {
  background: white;
  color: var(--ink);
}

.program-card-large {
  grid-row: span 2;
  min-height: 560px;
  flex-direction: column;
  justify-content: space-between;
}

.program-feature-card {
  flex-direction: column;
  justify-content: space-between;
}

.program-copy {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 78%;
  gap: 16px;
}

.program-card-large .program-copy {
  max-width: 84%;
}

.program-copy strong {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.02;
}

.program-feature-card .program-copy strong {
  font-size: clamp(24px, 2vw, 32px);
}

.program-copy small {
  color: rgba(16, 24, 23, 0.72);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.45;
}

.program-feature-card .program-copy small {
  font-size: clamp(16px, 1.2vw, 20px);
}

.program-arrow {
  position: relative;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  margin-top: auto;
  background: var(--ink);
  color: white;
  font-size: 28px;
  font-weight: 800;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.program-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.program-actions span {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0 28px;
  background: white;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.program-actions span:first-child {
  background: var(--ink);
  color: white;
}

.program-card:hover,
.program-card:focus-visible {
  box-shadow: 0 26px 70px rgba(24, 33, 31, 0.16);
  transform: translateY(-4px);
}

.program-card:hover .program-arrow,
.program-card:focus-visible .program-arrow {
  transform: rotate(45deg);
}

.program-card:hover .program-art,
.program-card:focus-visible .program-art {
  transform: translate(4px, -4px);
}

.program-art {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  transition: transform 180ms ease;
}

.program-art span,
.program-art::before,
.program-art::after {
  position: absolute;
  display: block;
  border: 4px solid var(--ink);
  content: "";
}

.program-art-laptop {
  top: 58px;
  right: 48px;
  width: 270px;
  height: 190px;
}

.program-art-laptop span {
  left: 46px;
  bottom: 20px;
  width: 178px;
  height: 112px;
  border-radius: 8px;
  background: #fffafa;
}

.program-art-laptop span::before {
  position: absolute;
  top: 36px;
  left: 22px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 950;
  content: "x²";
}

.program-art-laptop::before {
  left: 28px;
  bottom: 0;
  width: 220px;
  height: 22px;
  border-radius: 5px 5px 16px 16px;
  background: #fbf1f3;
}

.program-art-laptop::after {
  top: 0;
  right: 0;
  width: 64px;
  height: 42px;
  border-radius: 8px;
  background: white;
  box-shadow: -200px 92px 0 -18px #fffafa;
}

.program-art-book,
.program-art-paper,
.program-art-puzzle,
.program-art-course {
  right: clamp(28px, 4vw, 58px);
  bottom: 34px;
  width: 160px;
  height: 118px;
}

.program-art-book span {
  right: 0;
  bottom: 0;
  width: 96px;
  height: 94px;
  border-radius: 10px 18px 10px 10px;
  background: white;
  transform: rotate(8deg);
}

.program-art-book::before {
  left: 8px;
  bottom: 6px;
  width: 82px;
  height: 76px;
  border-radius: 30px 8px 8px 30px;
  background: white;
  transform: rotate(-12deg);
}

.program-art-book::after {
  right: 18px;
  top: 22px;
  color: var(--accent);
  border: 0;
  font-size: 44px;
  font-weight: 950;
  content: "A";
}

.program-art-paper span {
  right: 16px;
  bottom: 0;
  width: 86px;
  height: 110px;
  background: white;
  transform: rotate(11deg);
}

.program-art-paper::before {
  left: 20px;
  bottom: 0;
  width: 86px;
  height: 96px;
  border-radius: 6px;
  background: #fffafa;
  transform: rotate(-9deg);
}

.program-art-paper::after {
  top: 8px;
  right: 12px;
  width: 18px;
  height: 42px;
  border-color: var(--accent);
  border-radius: 999px;
  transform: rotate(10deg);
}

.program-art-puzzle span {
  right: 8px;
  bottom: 8px;
  width: 86px;
  height: 70px;
  border-color: var(--accent);
  border-radius: 8px;
  background: white;
}

.program-art-puzzle::before {
  left: 24px;
  bottom: 8px;
  width: 82px;
  height: 70px;
  border-radius: 8px;
  background: #fffafa;
}

.program-art-puzzle::after {
  top: 4px;
  right: 6px;
  width: 58px;
  height: 42px;
  border-color: #efd7dc;
  border-radius: 8px;
  background: white;
}

.program-art-course span {
  right: 18px;
  bottom: 4px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: white;
}

.program-art-course::before {
  left: 16px;
  bottom: 16px;
  width: 104px;
  height: 64px;
  border-radius: 16px;
  background: #fbf1f3;
  transform: rotate(-12deg);
}

.program-art-course::after {
  top: 4px;
  right: 4px;
  width: 72px;
  height: 36px;
  border-color: white;
  border-radius: 999px;
  background: #efd7dc;
}

.audience-grid strong,
.history-grid strong,
.success-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
}

.audience-grid span,
.history-grid span,
.success-grid span {
  color: var(--muted);
}

.two-sides,
.mission-section,
.success-section {
  background: var(--soft);
}

.showcase-section {
  background: #ffffff;
}

.review-grid article {
  min-height: 190px;
  color: var(--muted);
  font-size: 20px;
}

.reviews-heading {
  max-width: none;
  text-align: center;
}

.review-marquee {
  position: relative;
  overflow: hidden;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.review-marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: reviewMarquee 46s linear infinite;
}

.review-marquee article {
  display: grid;
  width: min(520px, 86vw);
  min-height: 224px;
  align-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 820;
  line-height: 1.24;
}

.review-marquee p {
  margin: 0;
}

.review-marquee span {
  color: #ffc928;
  font-size: clamp(34px, 3vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1;
}

.review-marquee strong {
  color: var(--accent);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 900;
}

@keyframes reviewMarquee {
  to {
    transform: translateX(-50%);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  background: var(--soft);
}

.role-list {
  display: grid;
  gap: 14px;
}

.role-list article {
  padding: 24px;
}

.role-list h3 {
  margin-top: 0;
}

.price-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.tab.is-active {
  background: var(--accent);
  color: white;
}

.price-panel {
  display: none;
  max-width: 760px;
  margin-top: 18px;
  padding: 30px;
}

.price-panel.is-active {
  display: block;
}

.price-panel strong {
  display: block;
  font-size: 30px;
}

.price-panel span {
  color: var(--muted);
  font-size: 18px;
}

.faq {
  padding-top: clamp(42px, 5vw, 68px);
  padding-bottom: clamp(42px, 5vw, 68px);
  background: #ffffff;
}

.faq .section-heading {
  max-width: 920px;
  margin-bottom: 24px;
  margin-right: auto;
  margin-left: auto;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.faq-list details {
  border-radius: 18px;
  padding: 24px 28px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 21px;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.72fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  background: var(--ink);
  color: white;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.contact-no-form {
  grid-template-columns: minmax(280px, 680px);
  justify-content: end;
}

.contact-form-panel {
  width: min(100%, 640px);
  justify-self: end;
}

.contact-form-panel h2 {
  margin: 0 0 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(31, 143, 209, 0.18);
  border-radius: 16px;
  padding: 0 18px;
  background: #fbf1f3;
  color: var(--ink);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b9a8ad;
}

.contact-form textarea {
  min-height: 132px;
  padding-top: 16px;
  resize: vertical;
}

.contact-manager-panel {
  display: grid;
  width: min(100%, 680px);
  justify-self: start;
  gap: 10px;
}

.contact-manager-panel p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.form-message {
  margin: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #e9f8ef;
  color: #176b3a;
  font-weight: 800;
}

.form-message[data-type="error"] {
  background: #f8e8eb;
  color: #b22525;
}

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

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.lead-modal.is-open {
  display: grid;
}

.lead-modal-open {
  overflow: hidden;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 23, 0.48);
}

.lead-modal__panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 42px);
  background: white;
  box-shadow: 0 28px 80px rgba(16, 24, 23, 0.22);
  outline: none;
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.lead-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

.lead-modal__panel > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.lead-modal__button {
  width: 100%;
  margin-top: 28px;
  border: 0;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.lead-modal__button:hover {
  background: var(--accent-dark);
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  padding: 24px;
}

.booking-modal.is-open {
  display: grid;
}

.booking-modal-open {
  overflow: hidden;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 40, 0.52);
}

.booking-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(500px, 0.96fr) minmax(500px, 1fr);
  width: min(1264px, calc(100vw - 18px));
  max-height: min(720px, calc(100dvh - 12px));
  overflow: hidden;
  border: 1px solid rgba(10, 42, 84, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(12, 28, 40, 0.28);
  outline: none;
}

.booking-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(6, 18, 46, 0.54);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
}

.booking-modal__visual {
  position: relative;
  min-height: 708px;
  overflow: hidden;
  background: #f4fbff;
}

.booking-modal__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

.booking-modal__visual h2 {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 128px 34px 0;
  color: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.08;
  text-shadow:
    -0.7px -0.7px 0 rgba(7, 92, 175, 0.72),
    0.7px -0.7px 0 rgba(7, 92, 175, 0.72),
    -0.7px 0.7px 0 rgba(7, 92, 175, 0.72),
    0.7px 0.7px 0 rgba(7, 92, 175, 0.72),
    0 2px 5px rgba(7, 92, 175, 0.28);
  -webkit-text-stroke: 0.35px rgba(7, 92, 175, 0.38);
}

.booking-modal__decor {
  position: absolute;
  z-index: 1;
  display: block;
  color: rgba(7, 92, 175, 0.8);
}

.booking-modal__decor svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-modal__decor-cap {
  top: 58px;
  right: 114px;
}

.booking-modal__decor-book {
  top: 162px;
  right: 74px;
}

.booking-modal__content {
  display: grid;
  align-content: start;
  padding: 28px 86px 16px 48px;
  color: var(--ink);
}

.booking-modal__content h2 {
  max-width: 570px;
  margin: 0;
  color: #071d47;
  font-size: 42px;
  line-height: 1.02;
}

.booking-modal__content > p {
  max-width: 540px;
  margin: 8px 0 12px;
  color: #1c2737;
  font-size: 17px;
  line-height: 1.38;
}

.booking-modal__content > p strong {
  color: #075fd6;
  font-weight: 950;
}

.booking-modal__price {
  display: grid;
  grid-template-columns: 58px minmax(210px, auto) 1fr;
  gap: 0 18px;
  align-items: center;
  max-width: 510px;
  overflow: hidden;
  border: 1px solid rgba(10, 42, 84, 0.16);
  border-radius: 12px;
  background: #f8fcff;
}

.booking-modal__discount {
  display: grid;
  width: 54px;
  height: 70px;
  place-items: center;
  align-self: start;
  margin-left: 12px;
  background: linear-gradient(180deg, #ffc64d, #f4aa2f);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
}

.booking-modal__price strong {
  padding: 12px 0 10px;
  color: #075caf;
  font-family: var(--font-sans);
  font-size: 50px;
  font-weight: 700;
  line-height: 0.95;
}

.booking-modal__old-price {
  display: grid;
  gap: 4px;
  min-height: 58px;
  align-content: center;
  border-left: 1px solid rgba(10, 42, 84, 0.18);
  padding-left: 28px;
  color: #1c2737;
}

.booking-modal__old-price small {
  color: #1c2737;
  font-size: 16px;
  text-transform: lowercase;
}

.booking-modal__old-price s {
  color: rgba(28, 39, 55, 0.48);
  font-size: 26px;
}

.booking-modal__price p {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 9px 18px;
  background: #fff7e9;
  color: #1c2737;
  font-size: 16px;
}

.booking-modal__price p span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #f0bd4d;
  border-radius: 50%;
  color: #f0a72f;
  font-weight: 950;
}

.booking-modal__lead {
  margin: 10px 0 0;
  color: #1c2737;
  font-size: 16px;
}

.booking-modal__form {
  display: grid;
  max-width: 512px;
  gap: 6px;
  margin-top: 12px;
}

.booking-modal__field {
  position: relative;
  display: block;
}

.booking-modal__field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.booking-modal__form input[type="text"],
.booking-modal__form input[type="email"],
.booking-modal__form input[type="tel"] {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(10, 42, 84, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.booking-modal__form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(31, 143, 209, 0.18);
}

.booking-modal__submit {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 8px;
  background: #075fd6;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.booking-modal__submit span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  font-family: var(--font-serif);
  font-weight: 900;
}

.booking-modal__submit:hover,
.booking-modal__submit:focus-visible {
  background: #034cab;
  box-shadow: 0 14px 28px rgba(7, 95, 214, 0.22);
  transform: translateY(-2px);
}

.booking-modal__submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.booking-modal__consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  border-radius: 6px;
  padding: 2px;
  color: rgba(16, 24, 23, 0.7);
  font-size: 10px;
  line-height: 1.18;
}

.booking-modal__consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #075fd6;
}

.booking-modal__consent a {
  color: #075fd6;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-modal__consent.is-invalid {
  background: #fff1f1;
  color: #9b1c1c;
}

.booking-modal__consent.is-invalid input {
  outline: 2px solid #d72d2d;
  outline-offset: 2px;
}

.booking-modal__message {
  min-height: 18px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.booking-modal__message:empty {
  display: none;
}

.booking-modal__message[data-type="success"] {
  color: #0f7a3c;
}

.booking-modal__message[data-type="error"] {
  color: #b22525;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) clamp(20px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 143, 209, 0.12), transparent 28%),
    linear-gradient(145deg, #ffffff, #fbf1f3);
}

.process-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) clamp(20px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 82% 24%, rgba(31, 143, 209, 0.12), transparent 24%),
    linear-gradient(145deg, #ffffff, #fbf1f3);
}

.teachers-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.42fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: end;
  padding: clamp(52px, 7vw, 92px) clamp(20px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 80% 24%, rgba(31, 143, 209, 0.7), transparent 22%),
    linear-gradient(145deg, #ffffff, #f4fbfb);
}

.price-hero {
  padding: clamp(52px, 7vw, 92px) clamp(20px, 6vw, 84px) clamp(50px, 7vw, 88px);
  background:
    radial-gradient(circle at 86% 20%, rgba(31, 143, 209, 0.12), transparent 24%),
    linear-gradient(145deg, #ffffff, #f4fbfb);
}

.reviews-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.42fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) clamp(20px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 82% 26%, rgba(31, 143, 209, 0.72), transparent 24%),
    linear-gradient(145deg, #ffffff, #f4fbfb);
}

.program-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.45fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) clamp(20px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 84% 24%, rgba(31, 143, 209, 0.72), transparent 24%),
    linear-gradient(145deg, #ffffff, #f4fbfb);
}

.program-hero .section-heading {
  margin-bottom: 0;
}

.program-hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
}

.program-hero p {
  max-width: 790px;
  color: var(--muted);
  font-size: 22px;
}

.program-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
}

.program-price span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.program-price strong {
  color: var(--accent);
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
}

.program-hero-card {
  display: grid;
  min-height: 250px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 34px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
  transform: rotate(-3deg);
}

.program-hero-card span {
  color: var(--accent);
  font-size: clamp(68px, 9vw, 120px);
  font-weight: 950;
  line-height: 1;
}

.program-hero-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 850;
}

.hero-image-card,
.program-hero-image {
  display: grid;
  min-height: auto;
  place-items: center;
  border: 1px solid rgba(31, 143, 209, 0.18);
  border-radius: 22px;
  padding: clamp(10px, 2vw, 18px);
  background:
    radial-gradient(circle at 82% 18%, rgba(31, 143, 209, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 255, 0.98));
  box-shadow: 0 24px 56px rgba(31, 143, 209, 0.16);
  transform: none;
}

.hero-image-card img,
.program-hero-image img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.tasks-section,
.course-about-section,
.touch-section {
  background: var(--soft);
}

.subjects-section {
  background: #ffffff;
}

.tasks-grid,
.subject-grid {
  display: grid;
  gap: 18px;
}

.tasks-grid {
  grid-template-columns: repeat(3, 1fr);
}

.subject-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tasks-grid article,
.subject-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(31, 143, 209, 0.1), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: var(--shadow);
}

.subject-grid article {
  border-color: rgba(31, 143, 209, 0.18);
  box-shadow: 0 18px 42px rgba(31, 143, 209, 0.1);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.subject-grid article:hover {
  border-color: rgba(31, 143, 209, 0.34);
  box-shadow: 0 22px 52px rgba(31, 143, 209, 0.16);
  transform: translateY(-2px);
}

.tasks-grid article {
  min-height: 230px;
}

.tasks-grid h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.tasks-grid p {
  margin: 0;
  color: var(--muted);
}

.subject-grid article {
  display: grid;
  min-height: 118px;
  place-items: center;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}

.reviews-hero .section-heading {
  margin-bottom: 0;
}

.reviews-hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 1;
}

.reviews-hero sup {
  color: var(--accent);
  font-size: 0.3em;
  vertical-align: super;
}

.reviews-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 22px;
}

.reviews-hero-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 270px;
  border: 1px solid rgba(31, 143, 209, 0.22);
  border-radius: 18px;
  padding: 32px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 201, 40, 0.24), transparent 26%),
    linear-gradient(145deg, rgba(31, 143, 209, 0.14), rgba(255, 255, 255, 0.96) 58%),
    #ffffff;
  box-shadow: 0 24px 56px rgba(31, 143, 209, 0.16);
}

.reviews-hero-card strong {
  color: var(--accent);
  font-size: clamp(58px, 7vw, 92px);
  line-height: 1;
}

.reviews-hero-card .reviews-hero-stars {
  color: #ffc928;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.reviews-hero-card span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.reviews-hero-card small {
  color: rgba(16, 24, 23, 0.56);
  font-size: 16px;
  font-weight: 750;
}

.courses-hero {
  padding: clamp(48px, 6vw, 78px) clamp(20px, 6vw, 84px) clamp(34px, 5vw, 58px);
  background: linear-gradient(180deg, #fffafa 0%, #fbf1f3 100%);
}

.courses-hero .section-heading {
  width: min(1040px, 100%);
  margin-bottom: 0;
  margin-inline: auto;
}

.courses-hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1;
}

.courses-hero sup {
  margin-left: 4px;
  color: var(--ink);
  font-size: 0.28em;
  vertical-align: super;
}

.courses-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.36;
}

.courses-catalog-section {
  padding-top: 28px;
  background: #fbf1f3;
}

.course-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1040px, 100%);
  margin: 0 auto 34px;
}

.course-filter button {
  min-height: 36px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.course-filter button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.course-grid {
  display: grid;
  width: min(1040px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-card {
  display: grid;
  min-height: 412px;
  align-content: space-between;
  border: 0;
  border-radius: 14px;
  padding: 26px 22px 22px;
  background: white;
  box-shadow: none;
  text-align: center;
}

.course-card[hidden] {
  display: none;
}

.course-ages {
  margin: 0 0 12px;
  color: #1f8fd1;
  font-size: 14px;
  font-weight: 750;
}

.course-card h2 {
  min-height: 58px;
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
}

.course-card p:not(.course-ages) {
  margin: 0;
  color: #a4aab2;
  font-size: 14px;
}

.course-card-top {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.course-wave {
  width: 58px;
  height: 14px;
  background:
    radial-gradient(14px 8px at 10px 5px, transparent 58%, var(--accent) 60% 72%, transparent 74%) 0 0 / 28px 14px repeat-x;
}

.course-media {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #dce8e8;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-media strong {
  position: absolute;
  bottom: 12px;
  left: 12px;
  border-radius: 8px;
  padding: 4px 12px;
  background: #fbf1f3;
  color: #14bcca;
  font-size: 16px;
  line-height: 1.25;
}

.contact-page-hero {
  padding: clamp(48px, 6vw, 78px) clamp(20px, 6vw, 84px) clamp(46px, 7vw, 84px);
  background: radial-gradient(circle at 82% 22%, rgba(151, 226, 224, 0.6), transparent 34%), var(--soft);
}

.contact-page-hero .section-heading {
  max-width: 940px;
  margin-bottom: 0;
}

.contact-page-hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 1;
}

.contact-page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 22px;
}

.contact-methods-section {
  background: #ffffff;
}

.contact-methods-card {
  display: grid;
  grid-template-columns: minmax(320px, 680px) 1fr;
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(circle at 86% 50%, rgba(31, 143, 209, 0.22), transparent 30%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 48%, #f1fbff 100%);
  box-shadow: var(--shadow);
}

.contact-methods-card h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

.contact-methods-note {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 750;
}

.contact-phone {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

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

.contact-social-grid a {
  display: grid;
  min-height: 140px;
  align-content: space-between;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.contact-social-grid a:nth-child(2),
.contact-social-grid a:nth-child(3) {
  background: var(--soft);
}

.contact-social-grid span {
  color: var(--muted);
  font-weight: 800;
}

.contact-social-grid strong {
  font-size: 24px;
}

.contact-social-icons {
  display: flex;
  grid-column: 1;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 8px;
}

.contact-social-icons .messenger-action {
  width: clamp(78px, 6vw, 96px);
  height: clamp(78px, 6vw, 96px);
  flex: 0 0 auto;
}

.contact-social-icons .messenger-action img {
  width: clamp(68px, 5.2vw, 84px);
  height: clamp(68px, 5.2vw, 84px);
}

.reviews-page-section,
.review-form-section {
  background: #ffffff;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.review-card,
.review-video-card {
  display: grid;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.review-card[hidden] {
  display: none;
}

.review-card p {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.review-card .review-card-stars {
  display: block;
  margin-bottom: 22px;
  color: #ffc928;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.review-card footer {
  display: grid;
  gap: 4px;
  align-self: end;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 23, 0.12);
}

.review-card strong {
  font-size: 20px;
}

.review-card span,
.review-card time {
  color: var(--muted);
}

.review-green {
  background: #edf8f0;
}

.review-violet {
  background: #f3efff;
}

.review-orange {
  background: #fff3e2;
}

.review-blue {
  background: #edf6ff;
}

.review-video-card {
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--ink);
  color: white;
}

.review-video-card button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.review-video-card button span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid white;
}

.review-video-card strong {
  margin-top: 20px;
  font-size: 28px;
}

.review-video-card p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
}

.reviews-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.messenger-help-card {
  align-items: center;
}

.messenger-help-card p {
  margin: 0 0 22px;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.messenger-help-card .messenger-actions {
  gap: 16px;
}

.messenger-help-card .messenger-action {
  width: 74px;
  height: 74px;
  border-radius: 20px;
}

.price-hero .section-heading {
  max-width: 980px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  text-align: center;
}

.price-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
}

.price-hero p {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 22px;
}

.price-hero .tariff-card {
  width: min(100%, 620px);
  margin: clamp(28px, 4vw, 44px) auto 0;
  text-align: center;
}

.price-hero .tariff-card .button {
  justify-self: center;
}

.price-page-section {
  background: #ffffff;
}

.price-class-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tariff-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.tariff-panel.is-active {
  display: grid;
}

.tariff-card,
.additional-tariff-grid article {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 430px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tariff-card-featured {
  border: 3px solid var(--accent);
}

.tariff-label {
  margin: 0;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.tariff-card h2,
.additional-tariff-grid h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.tariff-card p:not(.tariff-label),
.additional-tariff-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.tariff-card strong,
.additional-tariff-grid strong {
  display: block;
  margin-top: auto;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.tariff-card strong span,
.additional-tariff-grid strong span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.tariff-card .button {
  width: fit-content;
}

.additional-tariffs-section,
.price-info-section {
  background: var(--soft);
}

.additional-tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.teachers-hero .section-heading {
  margin-bottom: 0;
}

.teachers-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
}

.teachers-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 22px;
}

.teachers-hero-note {
  display: grid;
  gap: 14px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.teachers-hero-note strong {
  font-size: 28px;
  line-height: 1.1;
}

.teachers-hero-note span {
  color: var(--muted);
}

.teachers-section {
  background: #ffffff;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.teacher-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: var(--warm);
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
}

.teacher-subject {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
}

.teacher-card h3 {
  margin: 0 0 14px;
  font-size: 30px;
}

.teacher-card p:not(.teacher-subject) {
  color: var(--muted);
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.teacher-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 750;
}

.teacher-workflow-section,
.disciplines-section {
  background: var(--soft);
}

.process-hero .section-heading {
  margin-bottom: 0;
}

.process-hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.02;
}

.process-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 22px;
}

.button.secondary.dark {
  border-color: var(--ink);
  color: var(--ink);
}

.process-hero-card {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(31, 143, 209, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 18%, rgba(31, 143, 209, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 251, 255, 0.96));
  box-shadow: 0 24px 56px rgba(31, 143, 209, 0.16);
}

.process-hero-card img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.process-stages-grid,
.process-description-grid {
  display: grid;
  gap: 18px;
}

.process-stages-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-description-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-stages-grid article,
.process-description-grid article,
.certification-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.process-stages-grid article {
  min-height: 230px;
  padding: 26px;
}

.process-stages-grid strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 28px;
}

.process-stages-grid p,
.process-description-grid p,
.certification-card p {
  color: var(--muted);
  font-size: 18px;
}

.process-description-section,
.process-tariffs-section {
  background: #ffffff;
}

.process-description-grid article {
  min-height: 260px;
  padding: 28px;
}

.process-description-grid h3 {
  margin: 0 0 16px;
  font-size: 25px;
}

.certification-section {
  background: var(--soft);
}

.certification-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(30px, 5vw, 64px);
}

.certification-card h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
}

.about-hero .section-heading {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-bottom: 0;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
}

.about-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 22px;
}

.about-hero-art span {
  position: absolute;
  border: 4px solid var(--accent);
  border-radius: 50%;
}

.about-hero-art span:nth-child(1) {
  right: 12%;
  top: 20%;
  width: 128px;
  height: 128px;
}

.about-hero-art span:nth-child(2) {
  right: 26%;
  bottom: 18%;
  width: 74px;
  height: 74px;
  border-color: var(--warm);
}

.about-hero-art span:nth-child(3) {
  right: 6%;
  bottom: 12%;
  width: 210px;
  height: 210px;
  border-color: rgba(16, 24, 23, 0.12);
}

.mission-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.mission-lines span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 999px;
  padding: 0 22px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.about-kids {
  display: grid;
  gap: 18px;
}

.about-kids article {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 58px);
  background: white;
}

.about-kids h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.about-kids p {
  color: var(--muted);
  font-size: 20px;
}

.history-section {
  background: #ffffff;
}

.success-grid strong {
  color: var(--accent);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
}

.site-footer {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 84px) 24px;
  background: var(--ink);
  color: white;
}

.footer-main {
  max-width: 1120px;
  margin: 0 auto;
}

.newsletter-message {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(233, 248, 239, 0.12);
  color: #baf4cc;
  font-weight: 800;
}

.newsletter-message[data-type="error"] {
  background: rgba(255, 232, 232, 0.12);
  color: #e8b7bf;
}

.newsletter-message:empty {
  display: none;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
}

.footer-nav h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 22px;
}

.footer-nav a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1120px;
  margin-top: 34px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
}

.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 30;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 24, 23, 0.18);
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(16, 24, 23, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
}

.back-to-top svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.accessibility-toggle {
  position: fixed;
  top: 50%;
  right: clamp(18px, 3vw, 34px);
  z-index: 42;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 24, 23, 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(16, 24, 23, 0.2);
  transform: translateY(-50%);
}

.accessibility-toggle svg,
.accessibility-panel svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.accessibility-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 43;
  width: min(360px, 100vw);
  height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 22px 16px 18px;
  background: #ffffff;
  color: #000000;
  box-shadow: -24px 0 54px rgba(16, 24, 23, 0.22);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.accessibility-widget,
.accessibility-toggle,
.accessibility-panel {
  zoom: 1 !important;
}

.accessibility-widget.is-open .accessibility-panel {
  transform: translateX(0);
}

.accessibility-panel[aria-hidden="true"] {
  visibility: hidden;
}

.accessibility-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accessibility-panel h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.15;
}

.accessibility-panel h3 {
  margin: 18px 0 10px;
  color: inherit;
  font-size: 18px;
  line-height: 1.18;
}

.accessibility-panel button {
  font: inherit;
}

.accessibility-panel-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f0f0f0;
  color: #000000;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.a11y-option,
.a11y-cursor-option,
.a11y-reset,
.a11y-choice-grid button,
.a11y-size-grid button {
  min-height: 48px;
  border: 2px solid #e2e2e2;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.a11y-option {
  display: flex;
  width: 100%;
  align-items: center;
  margin-top: 10px;
  padding: 0 14px;
  text-align: left;
}

.a11y-option-light {
  background: #ffffff;
  color: #000000;
}

.a11y-option-dark {
  background: #000000;
  color: #ffffff;
}

.a11y-option-beige {
  background: #f3f0d2;
  color: #7a3b1f;
}

.a11y-option-blue {
  background: #aee3ef;
  color: #001777;
}

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

.accessibility-panel section:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accessibility-panel section:first-of-type h3 {
  grid-column: 1 / -1;
}

.accessibility-panel section:first-of-type .a11y-option {
  min-height: 52px;
  margin-top: 0;
  font-size: 16px;
  line-height: 1.15;
}

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

.a11y-choice-grid button,
.a11y-size-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  color: #000000;
}

.accessibility-panel [aria-pressed="true"] {
  border-color: #3498db;
  box-shadow: inset 0 0 0 2px #3498db;
}

.a11y-cursor-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #f3f3f3;
  color: #000000;
  text-align: left;
}

.a11y-cursor-option span {
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.a11y-reset {
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: #f6403a;
  color: #ffffff;
}

html.a11y-text-small body > :not(.accessibility-widget) {
  zoom: 0.92;
}

html.a11y-text-large body > :not(.accessibility-widget) {
  zoom: 1.18;
}

html.a11y-hide-images img,
html.a11y-hide-images picture,
html.a11y-hide-images video {
  visibility: hidden !important;
}

html.a11y-hide-images * {
  background-image: none !important;
}

html.a11y-hide-images [style*="--why-image"],
html.a11y-hide-images [style*="--program-image"],
html.a11y-hide-images [style*="--transfer-image"] {
  --why-image: none !important;
  --program-image: none !important;
  --transfer-image: none !important;
}

html.a11y-large-cursor,
html.a11y-large-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='white' stroke='black' stroke-width='3' d='M8 4v34l9-8 6 13 7-3-6-12h13z'/%3E%3C/svg%3E") 4 4, auto !important;
}

html.a11y-screen-reader :focus {
  outline: 4px solid #3498db !important;
  outline-offset: 4px !important;
}

html[class*="a11y-theme-"] {
  --a11y-bg: #ffffff;
  --a11y-fg: #000000;
  --a11y-panel: #ffffff;
  --a11y-muted: #000000;
}

html.a11y-theme-white-black {
  --a11y-bg: #000000;
  --a11y-fg: #ffffff;
  --a11y-panel: #000000;
  --a11y-muted: #ffffff;
}

html.a11y-theme-brown-beige {
  --a11y-bg: #f3f0d2;
  --a11y-fg: #7a3b1f;
  --a11y-panel: #f3f0d2;
  --a11y-muted: #7a3b1f;
}

html.a11y-theme-blue-cyan {
  --a11y-bg: #aee3ef;
  --a11y-fg: #001777;
  --a11y-panel: #aee3ef;
  --a11y-muted: #001777;
}

html[class*="a11y-theme-"] body,
html[class*="a11y-theme-"] .site-header,
html[class*="a11y-theme-"] .section,
html[class*="a11y-theme-"] .contact,
html[class*="a11y-theme-"] .site-footer,
html[class*="a11y-theme-"] .student-cabinet,
html[class*="a11y-theme-"] .student-app,
html[class*="a11y-theme-"] .student-sidebar,
html[class*="a11y-theme-"] .teacher-cabinet,
html[class*="a11y-theme-"] .teacher-app,
html[class*="a11y-theme-"] .teacher-sidebar,
html[class*="a11y-theme-"] .accessibility-panel {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
}

html[class*="a11y-theme-"] :where(h1, h2, h3, h4, p, a, span, small, strong, summary, label, input, textarea, button, td, th, li) {
  color: var(--a11y-fg) !important;
}

html[class*="a11y-theme-"] :where(article, section, aside, nav, details, input, textarea, button, table, .pricing-card, .program-card, .review-marquee article, .student-page-card, .student-profile-card, .student-side-card, .teacher-sheet, .teacher-lessons-panel) {
  border-color: var(--a11y-fg) !important;
  box-shadow: none !important;
}

html[class*="a11y-theme-"] :where(.button, .cabinet-action, .messenger-action, .student-logout, .teacher-logout, .back-to-top, .accessibility-toggle) {
  border-color: var(--a11y-fg) !important;
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .lesson-action,
  .cabinet-action,
  .tab {
    transition: none;
  }

  .button:hover,
  .lesson-action:hover,
  .cabinet-action:hover,
  .tab:hover,
  .button:active,
  .lesson-action:active,
  .cabinet-action:active,
  .tab:active {
    transform: none;
  }
}

.legal-page,
.unsubscribe-page {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 6vw, 84px);
  background: #ffffff;
}

.legal-page__inner,
.unsubscribe-page__inner {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page h1,
.unsubscribe-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
}

.legal-page__lead,
.unsubscribe-page__lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.legal-content {
  display: grid;
  gap: 28px;
  margin-top: 46px;
}

.legal-content section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 18px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.unsubscribe-card {
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--soft);
}

.unsubscribe-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
}

.unsubscribe-card button {
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.unsubscribe-card button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.unsubscribe-message {
  margin: 18px 0 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #e9f8ef;
  color: #176b3a;
  font-weight: 800;
}

.unsubscribe-message[data-type="error"] {
  background: #f8e8eb;
  color: #b22525;
}

.unsubscribe-message:empty {
  display: none;
}

.hero h1 {
  font-size: clamp(38px, 4.7vw, 58px);
}

.section h2,
.contact h2,
.contact-methods-card h2,
.contact-social h2,
.certification-card h2,
.about-kids h2 {
  font-size: clamp(28px, 3.8vw, 44px);
}

.programs-heading h2 {
  font-size: clamp(38px, 4.8vw, 64px);
}

.program-hero h1,
.reviews-hero h1,
.courses-hero h1,
.contact-page-hero h1,
.price-hero h1,
.teachers-hero h1,
.process-hero h1,
.about-hero h1 {
  font-size: clamp(36px, 5.8vw, 68px);
  line-height: 1.04;
}

.program-copy strong {
  font-size: clamp(24px, 2.4vw, 36px);
}

.program-feature-card .program-copy strong {
  font-size: clamp(22px, 1.7vw, 28px);
}

.program-price strong,
.tariff-card strong {
  font-size: clamp(30px, 4vw, 48px);
}

.program-hero-card span,
.reviews-hero-card strong {
  font-size: clamp(48px, 6.5vw, 82px);
}

.audience-grid strong,
.history-grid strong,
.success-grid strong,
.quick-stats strong,
.tasks-grid h3,
.teacher-card h3,
.process-description-grid h3,
.tariff-card h2,
.additional-tariff-grid h3 {
  font-size: clamp(22px, 2.6vw, 32px);
}

.course-card h2 {
  font-size: clamp(24px, 3.2vw, 36px);
}

@media (max-width: 1120px) {
  .booking-modal {
    align-items: start;
    overflow-y: auto;
  }

  .booking-modal__panel {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
    max-height: none;
  }

  .booking-modal__visual {
    min-height: 420px;
  }

  .booking-modal__visual h2 {
    width: min(520px, calc(100% - 48px));
    margin: 88px 24px 0;
    font-size: 36px;
  }

  .booking-modal__content {
    padding: 34px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 106px;
    padding: 18px clamp(28px, 5vw, 42px);
  }

  .brand {
    width: clamp(132px, 24vw, 190px);
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-actions {
    display: flex;
    justify-self: end;
  }

  .mobile-cabinet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--ink);
  }

  .mobile-cabinet .account-icon {
    width: 34px;
    height: 34px;
    stroke-width: 2.4;
  }

  .nav-toggle {
    display: grid;
    width: 62px;
    height: 58px;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 45px;
    height: 6px;
    border-radius: 999px;
    background: var(--text);
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-rows: auto auto 1fr;
    width: min(50vw, 750px);
    min-width: 430px;
    height: 100vh;
    padding: 92px clamp(34px, 5vw, 72px) 34px;
    background: white;
    box-shadow: -34px 0 70px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.24s ease;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .mobile-menu {
    transform: translateX(0);
  }

  .menu-close {
    position: absolute;
    top: 26px;
    right: 42px;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-close span {
    position: absolute;
    width: 48px;
    height: 6px;
    border-radius: 999px;
    background: var(--ink);
  }

  .menu-close span:first-child {
    transform: rotate(45deg);
  }

  .menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    display: grid;
    align-content: start;
  }

  .mobile-nav a,
  .mobile-nav summary {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    border-top: 3px solid #f0f0f0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-nav > a:last-child {
    border-bottom: 0;
  }

  .mobile-nav details {
    border: 0;
  }

  .mobile-nav summary {
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::after {
    width: 16px;
    height: 16px;
    margin-left: 20px;
    border-right: 5px solid currentColor;
    border-bottom: 5px solid currentColor;
    content: "";
    transform: rotate(45deg);
  }

  .mobile-nav details[open] summary::after {
    transform: translateY(5px) rotate(225deg);
  }

  .mobile-nav details a {
    min-height: 64px;
    padding-left: 20px;
    border-top: 0;
    color: var(--muted);
    font-size: 22px;
    font-weight: 650;
  }

  .mobile-menu-actions {
    display: grid;
    gap: 16px;
    align-self: start;
    margin-top: 28px;
  }

  .messenger-actions-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .messenger-actions-mobile .messenger-action {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 16px;
  }

  .mobile-menu-actions .lesson-action,
  .message-action {
    min-height: 84px;
    border-radius: 20px;
    font-size: clamp(24px, 3vw, 32px);
  }

  .message-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #1f8fd1;
    color: white;
    font-weight: 750;
  }

  .mail-icon {
    position: relative;
    width: 36px;
    height: 28px;
    border: 3px solid currentColor;
    border-radius: 5px;
  }

  .mail-icon::before,
  .mail-icon::after {
    position: absolute;
    top: 8px;
    width: 18px;
    height: 3px;
    background: currentColor;
    content: "";
  }

  .mail-icon::before {
    left: 2px;
    transform: rotate(35deg);
  }

  .mail-icon::after {
    right: 2px;
    transform: rotate(-35deg);
  }

  .hero {
    min-height: 680px;
  }

  .hero-home {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .hero-visual-image {
    justify-self: center;
  }

  .quick-stats,
  .why-school-grid,
  .pricing-cards,
  .transfer-grid,
  .audience-grid,
  .two-sides-grid,
  .showcase-grid,
  .review-grid,
  .about-feature-grid,
  .history-grid,
  .success-grid,
  .split,
  .contact,
  .footer-main,
  .footer-nav,
  .about-kids article {
    grid-template-columns: 1fr;
  }

  .program-feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .course-feature-grid {
    grid-template-columns: 1fr;
  }

  .program-card-large {
    grid-row: auto;
    min-height: 520px;
    gap: 34px;
    justify-content: flex-start;
  }

  .program-card {
    min-height: 300px;
  }

  .program-copy,
  .program-card-large .program-copy {
    max-width: 100%;
  }

  .program-actions {
    margin-top: auto;
  }

  .contact-spacer {
    display: none;
  }

  .contact-form-panel {
    justify-self: stretch;
  }

  .program-art {
    opacity: 0.34;
    transform: scale(0.82);
    transform-origin: right bottom;
  }

  .program-art-laptop {
    top: auto;
    right: -42px;
    bottom: 116px;
  }

  .process-hero,
  .teachers-hero,
  .reviews-hero,
  .program-hero,
  .about-hero,
  .course-grid,
  .contact-methods-card,
  .contact-social-grid,
  .process-stages-grid,
  .process-description-grid,
  .certification-card,
  .teacher-grid,
  .teacher-card,
  .tariff-panel,
  .additional-tariff-grid,
  .tasks-grid,
  .subject-grid {
    grid-template-columns: 1fr;
  }

  .process-hero {
    position: relative;
    min-height: min(680px, calc(100vh - 64px));
    overflow: hidden;
    align-items: start;
  }

  .process-hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.72) 100%),
      linear-gradient(180deg, rgba(244, 251, 255, 0.88), rgba(255, 247, 249, 0.72));
    content: "";
    pointer-events: none;
  }

  .process-hero .section-heading {
    position: relative;
    z-index: 2;
  }

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

  .process-hero-card {
    position: absolute;
    top: 112px;
    right: -170px;
    z-index: 0;
    width: min(760px, 138vw);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    filter: blur(10px) saturate(0.92);
    opacity: 0.3;
    pointer-events: none;
    transform: none;
  }

  .process-hero-card img {
    width: 100%;
    border-radius: 0;
  }

  .program-hero-card {
    transform: none;
  }

  .hero-image-card,
  .program-hero-image {
    justify-self: center;
    width: min(100%, 520px);
  }

  .about-hero .section-heading {
    order: -1;
  }

.teacher-avatar {
  width: 92px;
  height: 92px;
}
}

@media (max-width: 620px) {
  .hero-home {
    padding-top: 38px;
  }

  .hero-home h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .hero-home .hero-copy {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 340px;
    transform: scale(0.9);
    transform-origin: center top;
  }

  .hero-list {
    font-size: 18px;
  }

  .why-school {
    padding-inline: 16px;
  }

  .why-school-heading {
    text-align: left;
  }

  .why-card {
    min-height: 360px;
    border-radius: 22px;
  }

  .home-pricing-heading {
    text-align: left;
  }

  .pricing-class-picker,
  .pricing-class-list,
  .pricing-tariff-switch {
    justify-items: stretch;
    justify-content: flex-start;
  }

  .pricing-class-list button,
  .pricing-tariff-switch button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 18px;
  }

  .pricing-card {
    min-height: auto;
    border-radius: 22px;
  }

  .pricing-card .button {
    width: 100%;
  }

  .transfer-guide-heading {
    text-align: left;
  }

  .transfer-card,
  .transfer-card-wide {
    grid-column: auto;
    min-height: 360px;
    border-radius: 22px;
  }

  .transfer-card-content .button {
    width: 100%;
  }

  .programs-heading {
    text-align: left;
  }

  .program-card {
    min-height: 260px;
    padding: 28px;
  }

  .program-card-large {
    min-height: 430px;
  }

  .program-art {
    display: none;
  }

  .program-actions span {
    width: 100%;
  }

}

@media (max-width: 560px) {
  .booking-modal {
    padding: 10px;
  }

  .booking-modal__panel {
    border-radius: 14px;
  }

  .booking-modal__close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 34px;
  }

  .booking-modal__visual {
    min-height: 240px;
  }

  .booking-modal__visual h2 {
    width: min(330px, calc(100% - 32px));
    margin: 72px 16px 0;
    font-size: 26px;
  }

  .booking-modal__content {
    padding: 24px 18px 20px;
  }

  .booking-modal__content h2 {
    font-size: 30px;
  }

  .booking-modal__price {
    grid-template-columns: 1fr;
  }

  .booking-modal__price strong {
    grid-row: auto;
    padding: 0 18px 12px;
    font-size: 42px;
  }

  .booking-modal__discount {
    margin: 12px 0 0 18px;
  }

  .booking-modal__old-price {
    min-height: auto;
    margin: 0 18px 12px;
    border-top: 1px solid rgba(10, 42, 84, 0.18);
    border-left: 0;
    padding: 12px 0 0;
  }

  .site-header {
    min-height: 86px;
    padding: 14px 22px;
  }

  .brand {
    width: 128px;
  }

  .mobile-actions {
    gap: 8px;
  }

  .mobile-cabinet,
  .nav-toggle {
    width: 48px;
  }

  .nav-toggle span {
    width: 38px;
    height: 5px;
  }

  .mobile-menu {
    width: min(72vw, 430px);
    min-width: 300px;
    padding: 78px 28px 24px;
  }

  .accessibility-panel {
    width: min(340px, 100vw);
    padding: 18px 14px 16px;
  }

  .accessibility-panel h2 {
    font-size: 20px;
  }

  .accessibility-panel section:first-of-type {
    grid-template-columns: 1fr;
  }

  .menu-close {
    right: 24px;
  }

  .mobile-nav a,
  .mobile-nav summary {
    min-height: 86px;
    font-size: 28px;
  }

  .hero-content {
    padding-top: 72px;
  }

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

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

  .hero-actions,
  .price-tabs {
    display: grid;
  }

  .button,
  .tab {
    width: 100%;
  }
}

body.fortland-public-shell .site-header {
  grid-template-columns: auto minmax(0, 1fr) max-content;
}

body.fortland-public-shell .main-nav {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: center;
}

body.fortland-public-shell .header-actions {
  min-width: max-content;
}

@media (max-width: 1380px) {
  body.fortland-public-shell .site-header {
    gap: 18px;
  }

  body.fortland-public-shell .main-nav {
    gap: 22px;
    font-size: 18px;
  }

  body.fortland-public-shell .header-actions .messenger-actions {
    display: none;
  }
}

body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .documents-hero,
  .news-page-hero,
  .news-article-hero
) {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  margin: 56px auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
}

body.fortland-public-shell :is(
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .documents-hero,
  .news-page-hero,
  .news-article-hero
) {
  grid-template-columns: 1fr;
}

body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .news-page-hero,
  .news-article-hero
) .section-heading {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  color: #fff;
  overflow: hidden;
  position: relative;
}

body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .news-page-hero,
  .news-article-hero
) .section-heading::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.44;
  pointer-events: none;
}

body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .news-page-hero,
  .news-article-hero
) .section-heading > * {
  position: relative;
  z-index: 1;
}

body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .news-page-hero,
  .news-article-hero
) .section-heading h1,
body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .news-page-hero,
  .news-article-hero
) .section-heading h2 {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

body.fortland-public-shell :is(
  .about-hero,
  .process-hero,
  .reviews-hero,
  .program-hero,
  .courses-hero,
  .teachers-hero,
  .price-hero,
  .contact-page-hero,
  .news-page-hero,
  .news-article-hero
) .section-heading p {
  color: rgba(255, 255, 255, 0.9);
}

body.fortland-public-shell :is(
  .hero-image-card,
  .process-hero-card,
  .reviews-hero-card,
  .program-hero-card,
  .teachers-hero-note
) {
  min-height: 360px;
  border: 2px solid var(--grid-strong);
  border-radius: 28px;
  background-color: #fff;
  box-shadow: 0 30px 70px -30px rgba(27, 36, 48, 0.35);
  overflow: hidden;
}

body.fortland-public-shell :is(.hero-image-card, .program-hero-card) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.fortland-public-shell .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

body.fortland-public-shell .button.secondary {
  border: 2px solid var(--grid-strong);
  background: #fff;
  color: var(--blue);
}

body.fortland-public-shell .section {
  padding-top: 34px;
  padding-bottom: 34px;
}

body.fortland-public-shell :is(
  .about-feature-grid,
  .mission-lines,
  .showcase-grid,
  .history-grid,
  .success-grid,
  .process-stages-grid,
  .process-description-grid,
  .two-sides-grid,
  .tasks-grid,
  .subject-grid,
  .course-grid,
  .review-list,
  .teachers-grid,
  .program-plan-section > div:not(.section-heading),
  .course-about-section > div:not(.section-heading)
) {
  display: grid;
  gap: 20px;
}

body.fortland-public-shell :is(
  .about-feature-grid,
  .showcase-grid,
  .history-grid,
  .success-grid,
  .process-stages-grid,
  .process-description-grid,
  .tasks-grid,
  .subject-grid,
  .course-grid,
  .review-list,
  .teachers-grid
) {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.fortland-public-shell :is(
  .about-feature-grid article,
  .about-kids article,
  .showcase-grid article,
  .history-grid article,
  .success-grid article,
  .process-stages-grid article,
  .process-description-grid article,
  .two-sides-grid article,
  .tasks-grid article,
  .subject-grid article,
  .course-card,
  .tariff-card,
  .tariff-panel,
  .certification-card,
  .contact-methods-card,
  .messenger-help-card,
  .news-list-card,
  .news-article-body,
  .review-video-card,
  .program-intro-section article,
  .program-plan-section article,
  .course-about-section article,
  .teacher-workflow-section article,
  .disciplines-section article
) {
  position: relative;
  border: 1px solid var(--grid-strong);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px -34px rgba(27, 36, 48, 0.3);
}

body.fortland-public-shell :is(
  .about-feature-grid article,
  .process-stages-grid article,
  .tasks-grid article,
  .program-plan-section article
)::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--red));
}

body.fortland-public-shell :is(
  .about-feature-grid h2,
  .showcase-grid h3,
  .process-stages-grid h3,
  .tasks-grid h3,
  .course-card h3,
  .tariff-card h3,
  .program-plan-section h3,
  .course-about-section h3,
  .teacher-card h3,
  .review-card strong
) {
  color: var(--ink);
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.12;
}

body.fortland-public-shell :is(
  .about-feature-grid p,
  .showcase-grid p,
  .process-stages-grid p,
  .tasks-grid p,
  .course-card p,
  .tariff-card p,
  .program-plan-section p,
  .course-about-section p,
  .teacher-card p,
  .review-card p
) {
  color: var(--ink-soft);
  font-weight: 650;
}

body.fortland-public-shell .mission-lines span,
body.fortland-public-shell .subject-grid article,
body.fortland-public-shell .task-list li,
body.fortland-public-shell .faq-list details {
  border: 1px solid var(--grid-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 42px -34px rgba(27, 36, 48, 0.3);
}

body.fortland-public-shell .subject-grid article {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 900;
  text-align: center;
}

body.fortland-public-shell .faq-list {
  display: grid;
  gap: 14px;
}

body.fortland-public-shell .faq-list details {
  border-radius: 18px;
  padding: 20px 24px;
}

body.fortland-public-shell .faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

body.fortland-public-shell .process-tariffs-section {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
}

body.fortland-public-shell .tariff-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

body.fortland-public-shell .tariff-card-featured {
  border-color: var(--blue);
  background: linear-gradient(145deg, #edf3ff, #ffffff);
}

body.fortland-public-shell .program-price,
body.fortland-public-shell .tariff-label {
  color: var(--blue);
  font-weight: 900;
}

body.fortland-public-shell .review-card {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  color: #fff;
}

body.fortland-public-shell .review-card p,
body.fortland-public-shell .review-card span,
body.fortland-public-shell .review-card time {
  color: rgba(255, 255, 255, 0.9);
}

body.fortland-public-shell .review-card-stars {
  color: #fff7c8;
}

body.fortland-public-shell .teacher-card {
  overflow: hidden;
}

body.fortland-public-shell .teacher-avatar {
  border: 2px solid var(--grid-strong);
  border-radius: 18px;
  background: var(--blue-bg);
}

body.fortland-public-shell .documents-table {
  overflow: hidden;
  border: 1px solid var(--grid-strong);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 54px -34px rgba(27, 36, 48, 0.28);
}

body.fortland-public-shell .documents-table table {
  width: 100%;
  border-collapse: collapse;
}

body.fortland-public-shell .documents-table th {
  background: var(--blue-bg);
  color: var(--blue);
}

body.fortland-public-shell .documents-table :is(th, td) {
  border-bottom: 1px solid var(--grid-strong);
  padding: 16px 18px;
}

body.fortland-public-shell:not(.menu-open) .mobile-menu {
  display: none;
}

body.fortland-public-shell.menu-open .mobile-menu {
  display: grid;
}

body.fortland-public-shell .accessibility-panel[aria-hidden="true"] {
  display: none;
}

body.fortland-public-shell .accessibility-widget.is-open .accessibility-panel {
  display: block;
}

body.fortland-public-shell .legal-page {
  width: min(1180px, calc(100% - 48px));
  margin: 46px auto;
  padding: 0;
  background: transparent;
}

body.fortland-public-shell .legal-page__inner {
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.fortland-public-shell .legal-page__inner > h1,
body.fortland-public-shell .legal-page__lead {
  position: relative;
  z-index: 1;
}

body.fortland-public-shell .legal-page__inner > h1 {
  margin: 0;
  border-radius: 28px 28px 0 0;
  padding: clamp(34px, 5vw, 58px) clamp(28px, 5vw, 54px) 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(145deg, var(--blue-bright), var(--blue));
  background-size: 30px 30px, 30px 30px, auto;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

body.fortland-public-shell .legal-page__lead {
  max-width: none;
  margin: 0;
  border-radius: 0 0 28px 28px;
  padding: 8px clamp(28px, 5vw, 54px) clamp(34px, 5vw, 52px);
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  color: rgba(255, 255, 255, 0.9);
}

body.fortland-public-shell .legal-content section {
  border: 1px solid var(--grid-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px -34px rgba(27, 36, 48, 0.3);
}

body.fortland-public-shell .legal-content h2 {
  color: var(--ink);
}

body.fortland-public-shell .legal-content :is(p, li) {
  color: var(--ink-soft);
  font-weight: 650;
}

@media (max-width: 940px) {
  body.fortland-public-shell :is(
    .about-hero,
    .process-hero,
    .reviews-hero,
    .program-hero
  ) {
    grid-template-columns: 1fr;
  }

  body.fortland-public-shell :is(
    .hero-image-card,
    .process-hero-card,
    .reviews-hero-card,
    .program-hero-card,
    .teachers-hero-note
  ) {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  body.fortland-public-shell :is(
    .about-hero,
    .process-hero,
    .reviews-hero,
    .program-hero,
    .courses-hero,
    .teachers-hero,
    .price-hero,
    .contact-page-hero,
    .documents-hero,
    .news-page-hero,
    .news-article-hero,
    .process-tariffs-section,
    .legal-page
  ) {
    width: calc(100% - 32px);
    margin-top: 28px;
  }

  body.fortland-public-shell .hero-actions {
    display: grid;
  }

  body.fortland-public-shell .tariff-panel {
    grid-template-columns: 1fr;
  }

  body.fortland-public-shell .documents-table {
    overflow-x: auto;
  }
}
