:root {
  --bg: #f6f4ff;
  --bg-alt: #fbfffd;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --ink: #1f2240;
  --muted: #5d638d;
  --line: #dddaf8;
  --brand: #b4adff;
  --brand-dark: #7e74eb;
  --accent: #94e2ae;
  --accent-dark: #4cb874;
  --warm: #ffd696;
  --noise-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 24px 48px rgba(88, 78, 173, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(180, 173, 255, 0.45) 0%, transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(148, 226, 174, 0.42) 0%, transparent 30%),
    radial-gradient(circle at 82% 88%, rgba(255, 214, 150, 0.33) 0%, transparent 34%),
    var(--bg);
  line-height: 1.52;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(31, 34, 64, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 34, 64, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--bg);
}

body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: transparent;
}

/* Variant 1: Aurora Glow */
body.home-page.bg-aurora::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(180, 173, 255, 0.5) 0%, transparent 38%),
    radial-gradient(circle at 85% 14%, rgba(148, 226, 174, 0.46) 0%, transparent 34%),
    radial-gradient(circle at 78% 84%, rgba(255, 214, 150, 0.35) 0%, transparent 40%),
    linear-gradient(135deg, #f9f7ff 0%, #f3fff8 100%);
}

body.home-page.bg-aurora::after {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.33) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.28), transparent 62%);
  mix-blend-mode: screen;
}

/* Variant 2: Mesh Gradient */
body.home-page.bg-mesh::before {
  background:
    radial-gradient(circle at 10% 15%, rgba(180, 173, 255, 0.6) 0%, transparent 34%),
    radial-gradient(circle at 90% 14%, rgba(148, 226, 174, 0.56) 0%, transparent 31%),
    radial-gradient(circle at 52% 84%, rgba(180, 173, 255, 0.42) 0%, transparent 37%),
    radial-gradient(circle at 22% 78%, rgba(148, 226, 174, 0.36) 0%, transparent 32%),
    linear-gradient(160deg, #faf8ff 0%, #f1fcf6 100%);
}

body.home-page.bg-mesh::after {
  background: var(--noise-texture);
  background-size: 180px 180px;
  opacity: 0.14;
  mix-blend-mode: multiply;
}

/* Variant 3: Soft Paper Texture */
body.home-page.bg-paper::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(180, 173, 255, 0.11) 0%, transparent 40%),
    radial-gradient(circle at 88% 16%, rgba(148, 226, 174, 0.1) 0%, transparent 38%),
    linear-gradient(165deg, #fefcff 0%, #f6f4ff 44%, #f0fcf5 100%),
    repeating-linear-gradient(90deg, rgba(180, 173, 255, 0.039) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(148, 226, 174, 0.032) 0 1px, transparent 1px 6px);
}

body.home-page.bg-paper::after {
  background:
    var(--noise-texture),
    radial-gradient(circle at 24% 20%, rgba(180, 173, 255, 0.06), transparent 46%),
    radial-gradient(circle at 76% 22%, rgba(148, 226, 174, 0.06), transparent 44%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.56), transparent 62%);
  background-size:
    220px 220px,
    auto,
    auto,
    auto;
  opacity: 0.11;
  mix-blend-mode: multiply;
}

/* Variant 4: Abstract Shapes */
body.home-page.bg-blobs::before {
  background:
    radial-gradient(44% 36% at 12% 16%, rgba(180, 173, 255, 0.58) 0%, transparent 76%),
    radial-gradient(40% 34% at 88% 18%, rgba(148, 226, 174, 0.54) 0%, transparent 76%),
    radial-gradient(34% 30% at 78% 80%, rgba(180, 173, 255, 0.36) 0%, transparent 78%),
    radial-gradient(30% 24% at 18% 78%, rgba(148, 226, 174, 0.32) 0%, transparent 75%),
    linear-gradient(145deg, #fbf9ff 0%, #f3fcf7 100%);
}

body.home-page.bg-blobs::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(25, 28, 54, 0.08) 100%),
    var(--noise-texture);
  background-size:
    auto,
    220px 220px;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

/* Variant 5: Gradient + Micro-noise */
body.home-page.bg-micrograin::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(180, 173, 255, 0.4) 0%, transparent 35%),
    radial-gradient(circle at 82% 16%, rgba(148, 226, 174, 0.38) 0%, transparent 33%),
    linear-gradient(140deg, #f9f7ff 0%, #f2faf6 100%);
}

body.home-page.bg-micrograin::after {
  background:
    var(--noise-texture),
    linear-gradient(130deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  background-size:
    140px 140px,
    auto;
  opacity: 0.26;
  mix-blend-mode: multiply;
}

/* Variant 6: Concentric Arcs */
body.home-page.bg-rings::before {
  background:
    radial-gradient(135% 135% at 50% 114%, transparent 0 36%, rgba(126, 116, 235, 0.34) 37% 47%, transparent 48% 100%),
    radial-gradient(115% 115% at 50% 114%, transparent 0 30%, rgba(148, 226, 174, 0.3) 31% 40%, transparent 41% 100%),
    radial-gradient(95% 95% at 50% 114%, transparent 0 22%, rgba(126, 116, 235, 0.28) 23% 31%, transparent 32% 100%),
    radial-gradient(74% 74% at 50% 114%, transparent 0 14%, rgba(148, 226, 174, 0.24) 15% 22%, transparent 23% 100%),
    linear-gradient(165deg, #f8f6ff 0%, #edf8f2 100%);
}

body.home-page.bg-rings::after {
  background:
    radial-gradient(120% 100% at 50% 114%, rgba(31, 34, 64, 0.14) 0%, rgba(31, 34, 64, 0.05) 34%, transparent 56%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 0.12) 100%),
    var(--noise-texture);
  background-size:
    auto,
    auto,
    190px 190px;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.section {
  padding: 38px 0;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
}

.nav-shell {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(221, 218, 248, 0.95);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(61, 63, 124, 0.08);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
  box-shadow: 0 12px 24px rgba(106, 96, 209, 0.34);
}

.brand-mark img {
  width: auto;
  height: 24px;
  display: block;
}

.brand-wordmark {
  width: auto;
  height: 16px;
  display: block;
}

/* Main page only: larger brand lockup in top pill */
.home-page .brand {
  gap: 26px;
  margin-left: 10px;
}

.home-page .brand-mark {
  width: 40px;
  height: 40px;
}

.home-page .brand-mark img {
  height: 30px;
}

.home-page .brand-wordmark {
  height: 23px;
}

.economy-page .brand {
  gap: 26px;
  margin-left: 10px;
}

.economy-page .brand-mark {
  width: 40px;
  height: 40px;
}

.economy-page .brand-mark img {
  height: 30px;
}

.economy-page .brand-wordmark {
  height: 23px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
  box-shadow: 0 11px 24px rgba(96, 90, 194, 0.34);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
}

.mobile-nav-dropdown {
  display: none;
}

.mobile-pay-cta {
  display: none;
}

.ipad-cabinet-btn {
  display: none;
}

.btn-consult {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(88, 83, 183, 0.34);
  cursor: pointer;
}

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

.consult-float {
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  left: auto !important;
  top: auto !important;
  z-index: 110;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(221, 218, 248, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(39, 43, 88, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.consult-float-title {
  margin: 0 0 10px;
  color: #454d78;
  font-size: 0.88rem;
  font-weight: 700;
}

.consult-float-action {
  width: 100%;
}

.main-hero {
  padding: 74px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: center;
}

.hero-photo-card {
  position: relative;
  margin: 0;
  min-height: clamp(340px, 42vw, 470px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(221, 218, 248, 0.95);
  box-shadow: var(--shadow);
  background: #d6d9ef;
  isolation: isolate;
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 26, 46, 0) 36%, rgba(24, 26, 46, 0.58) 100%);
  pointer-events: none;
}

.hero-photo-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

.hero-photo-card figcaption strong {
  font-size: 0.96rem;
  line-height: 1.38;
}

.hero-photo-tag {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: rgba(180, 173, 255, 0.2);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  max-width: min(100%, 760px);
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(126, 116, 235, 0.36);
  color: #4b4398;
  background: linear-gradient(135deg, rgba(180, 173, 255, 0.28), rgba(255, 255, 255, 0.86));
  box-shadow: 0 8px 18px rgba(111, 103, 204, 0.14);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal;
}

.main-hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.02;
}

.main-hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.2rem);
}

.lead {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 62ch;
}

.hero-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(221, 218, 248, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 24px;
}

.trust-feature {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.trust-video-wrap {
  position: relative;
  width: clamp(350px, 33vw, 500px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 0;
}

.trust-video-shell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 30px rgba(57, 63, 121, 0.18);
  overflow: hidden;
}

.trust-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.trust-video-badge {
  position: relative;
  margin-top: -18px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(38, 44, 90, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 18px rgba(33, 43, 89, 0.16);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(0.76rem, 1.1vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2d3566;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.trust-panel {
  width: 100%;
}

.trust-video::-webkit-media-controls,
.trust-video::-webkit-media-controls-enclosure,
.trust-video::-webkit-media-controls-start-playback-button,
.trust-video::-webkit-media-controls-play-button,
.trust-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

.trust-lead {
  margin-top: 0;
  margin-bottom: 18px;
  max-width: none;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.stats-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.stats-list li {
  padding: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stats-list strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

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

.direction-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(221, 218, 248, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(84, 84, 152, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(14px);
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.direction-card:nth-child(2) {
  animation-delay: 0.08s;
}

.direction-card:nth-child(3) {
  animation-delay: 0.16s;
}

.direction-card:nth-child(4) {
  animation-delay: 0.24s;
}

.direction-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.direction-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.06rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
}

.chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: rgba(180, 173, 255, 0.18);
}

.direction-card h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.direction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.mini-list li {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  padding: 7px 11px;
  font-size: 0.82rem;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(96, 90, 194, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(96, 90, 194, 0.4);
}

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

.course-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.course-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.status {
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 8px;
}

.status-open {
  color: #287c46;
  background: rgba(148, 226, 174, 0.36);
}

.status-soon {
  color: #85520f;
  background: rgba(255, 214, 150, 0.45);
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.course-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #3d4a75;
}

.course-meta strong {
  color: var(--ink);
}

.course-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(126, 116, 235, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-link:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 116, 235, 0.44);
  box-shadow: 0 10px 22px rgba(91, 89, 154, 0.18);
}

.all-courses-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.course-link-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(96, 90, 194, 0.3);
}

.course-link-primary:hover {
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(96, 90, 194, 0.38);
}

#featured .course-link {
  border-color: rgba(126, 116, 235, 0.32);
  background: linear-gradient(135deg, rgba(180, 173, 255, 0.2), rgba(255, 214, 150, 0.28));
  color: #4d4697;
}

#featured .course-link:hover {
  border-color: rgba(126, 116, 235, 0.48);
  box-shadow: 0 10px 22px rgba(122, 111, 214, 0.2);
}

#featured .course-link-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7e74eb, #f0ab68);
  color: #fff;
  box-shadow: 0 12px 24px rgba(127, 116, 219, 0.32);
}

#featured .course-link-primary:hover {
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(127, 116, 219, 0.42);
}

#featured .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  line-height: 1;
  white-space: nowrap;
}

button.course-link {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.summer-course-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.22), rgba(148, 226, 174, 0.16)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.summer-course-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.summer-course-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(221, 218, 248, 0.95);
  box-shadow: var(--shadow);
  background: #dce1f2;
}

.summer-course-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.summer-course-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.summer-course-head {
  display: block;
}

.summer-course-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: rgba(180, 173, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summer-course-head h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3.1vw, 2.25rem);
  white-space: nowrap;
}

.summer-course-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 62ch;
}

.summer-course-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  min-width: 0;
  max-width: 420px;
}

.summer-course-switch-option {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(126, 116, 235, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.summer-course-switch-option:hover {
  border-color: rgba(126, 116, 235, 0.5);
}

.summer-course-switch-option.is-active {
  border-color: rgba(116, 106, 232, 0.62);
  background: rgba(117, 106, 232, 0.14);
  color: var(--ink);
}

.summer-course-switch-option:focus-visible {
  outline: 2px solid rgba(126, 116, 235, 0.28);
  outline-offset: 2px;
}

.summer-course-panel {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 116, 235, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.summer-course-group-title {
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-weight: 800;
}

.summer-course-meta-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #3d4a75;
  font-size: 0.98rem;
  line-height: 1.45;
}

.summer-course-meta-list li::marker {
  color: rgba(126, 116, 235, 0.82);
}

.summer-course-date-highlight {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(148, 226, 174, 0.5);
  color: #22613a;
  font-weight: 800;
}

.summer-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summer-course-actions .btn {
  min-height: 46px;
}

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

.summer-schedule-panel {
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.2), rgba(148, 226, 174, 0.16)),
    rgba(255, 255, 255, 0.93);
}

.summer-schedule-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(211, 207, 244, 0.96);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(84, 84, 152, 0.14);
  position: relative;
  overflow: hidden;
}

.summer-schedule-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--brand-dark), var(--accent-dark));
}

.summer-schedule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.summer-schedule-card-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.summer-schedule-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 226, 174, 0.4);
  color: #22613a;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

.summer-schedule-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 116, 235, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.summer-schedule-meta {
  display: grid;
  gap: 2px;
}

.summer-schedule-day {
  font-weight: 800;
  color: #2f3563;
}

.summer-schedule-lesson {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.summer-schedule-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(117, 106, 232, 0.14);
  color: var(--ink);
  font-weight: 800;
}

.summer-program-module {
  display: grid;
  gap: 14px;
}

.program-track-panel {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 116, 235, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.program-track-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.program-track-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
}

.program-track-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.program-month-module {
  display: grid;
  gap: 12px;
}

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

.program-month-option {
  -webkit-appearance: none;
  appearance: none;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(126, 116, 235, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 7px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.program-month-option:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 116, 235, 0.5);
}

.program-month-option.is-active {
  border-color: rgba(116, 106, 232, 0.62);
  background: rgba(117, 106, 232, 0.14);
  color: var(--ink);
}

.program-month-option:focus-visible {
  outline: 2px solid rgba(126, 116, 235, 0.28);
  outline-offset: 2px;
}

.program-month-panel {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(126, 116, 235, 0.22);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.14), rgba(148, 226, 174, 0.12)),
    rgba(255, 255, 255, 0.92);
}

.program-intro {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 74ch;
}

.program-month-label {
  margin: 0;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(117, 106, 232, 0.14);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.program-month-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.program-month-topics {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: program_topic;
  display: grid;
  gap: 10px;
  color: #2f3563;
  font-size: 1.03rem;
  line-height: 1.45;
}

.program-month-topics li {
  counter-increment: program_topic;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(126, 116, 235, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.program-month-topics li::before {
  content: counter(program_topic);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: rgba(117, 106, 232, 0.12);
}

.program-topic-title {
  display: inline-block;
  font-size: 1.22rem;
  line-height: 1.26;
  color: var(--ink);
  font-weight: 700;
}

.summer-pricing-grid {
  margin-top: 4px;
}

.summer-pricing-discount-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(72, 151, 108, 0.36);
  background: rgba(148, 226, 174, 0.16);
  color: #22613a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.summer-pricing-period-note {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 116, 235, 0.2);
  text-align: center;
  color: #58608f;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.summer-price-card {
  align-content: start;
  gap: 12px;
}

.summer-price-card .price-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.36rem;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2f3563;
  padding: 0 0 8px;
}

.summer-price-card .price-name::after {
  content: "";
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(117, 106, 232, 0.72), rgba(75, 185, 135, 0.72));
}

.summer-price-card .price-description {
  margin: 0;
  text-align: center;
  color: #4e5887;
  font-size: 0.96rem;
  line-height: 1.38;
  min-height: 54px;
}

.summer-price-card .price-billing-switch {
  margin-top: 2px;
}

.summer-price-card .price-value {
  margin-top: 2px;
  padding: 14px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 116, 235, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 20px rgba(89, 93, 158, 0.1);
  text-align: center;
  font-size: 2.34rem;
  line-height: 0.96;
  color: var(--ink);
}

.summer-price-card .price-value span {
  display: inline-flex;
  margin-left: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #5a618f;
}

.summer-price-card .price-billing-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(126, 116, 235, 0.14);
  background: rgba(117, 106, 232, 0.07);
  color: #5a618f;
  font-size: 0.88rem;
  line-height: 1.35;
}

.summer-price-card .price-list {
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.summer-price-card .price-list li::marker {
  color: rgba(126, 116, 235, 0.76);
}

.price-billing-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.price-billing-option {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(126, 116, 235, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.price-billing-option:hover {
  border-color: rgba(126, 116, 235, 0.5);
}

.price-billing-option.is-active {
  border-color: rgba(116, 106, 232, 0.62);
  background: rgba(117, 106, 232, 0.14);
  color: var(--ink);
}

.price-billing-option:focus-visible {
  outline: 2px solid rgba(126, 116, 235, 0.28);
  outline-offset: 2px;
}

.price-billing-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.summer-price-pay {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  font-size: 1.02rem;
}

.summer-faq-list {
  max-width: 980px;
}

.faq-consult-action {
  margin-top: 12px;
}

.reviews-slider {
  position: relative;
}

.reviews-viewport {
  overflow: visible;
  border-radius: 0;
}

.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.reviews-track .review-card {
  min-height: 0;
  max-height: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.reviews-track .review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(86, 89, 153, 0.16);
}

.reviews-nav {
  display: none;
}

.review-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  height: 100%;
  box-shadow: 0 14px 30px rgba(86, 89, 153, 0.14);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(180, 173, 255, 0.7);
  padding: 3px;
  background: linear-gradient(135deg, rgba(180, 173, 255, 0.32), rgba(148, 226, 174, 0.28));
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.review-name {
  font-weight: 800;
}

.review-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-card p {
  margin: 0;
  color: var(--muted);
}

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

.gallery-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.gallery-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.gallery-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
}

.gallery-viewport::-webkit-scrollbar {
  height: 8px;
}

.gallery-viewport::-webkit-scrollbar-thumb {
  background: rgba(126, 116, 235, 0.36);
  border-radius: 999px;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(520px, 86%);
  gap: 18px;
  padding: 6px 2px;
}

.gallery-track .gallery-item {
  scroll-snap-align: center;
}

.gallery-track .gallery-item img {
  aspect-ratio: 3 / 2;
}

.gallery-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(126, 116, 235, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #4a4f80;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(83, 87, 153, 0.18);
}

.gallery-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.home-faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.home-faq-media {
  display: grid;
  gap: 12px;
}

.home-faq-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(221, 218, 248, 0.95);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(84, 84, 152, 0.12);
}

.home-faq-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-faq-list {
  display: grid;
  gap: 12px;
}

.home-faq-item {
  border: 1px solid rgba(221, 218, 248, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
}

.home-faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: #2f3563;
  position: relative;
  padding-right: 28px;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.28rem;
  color: var(--brand-dark);
}

.home-faq-item[open] summary::after {
  content: "-";
}

.home-faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.note {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(180, 173, 255, 0.12);
  border: 1px solid rgba(180, 173, 255, 0.4);
}

.note h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.note p,
.note ul {
  margin: 0;
  color: var(--muted);
}

.note ul {
  padding-left: 18px;
}

.note li + li {
  margin-top: 6px;
}

.pricing-stack {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.price-title {
  margin: 0 0 10px;
  font-size: 1.03rem;
}

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

.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 10px;
}

.price-card.featured {
  border-color: rgba(126, 116, 235, 0.56);
  box-shadow: 0 14px 30px rgba(104, 97, 196, 0.17);
}

.price-name {
  font-weight: 800;
}

.price-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.price-value span {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-list li + li {
  margin-top: 6px;
}

.price-bars {
  display: grid;
  gap: 10px;
}

.price-bar {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(180, 173, 255, 0.14), rgba(148, 226, 174, 0.14));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price-bar strong {
  font-size: 1.05rem;
}

.price-bar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-chipset {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.price-chip {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  color: var(--muted);
}

.price-chip strong {
  color: var(--ink);
}

.cta-band {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.24), rgba(148, 226, 174, 0.2)),
    rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.economy-page .page-hero {
  padding: 30px 0 10px;
}

.economy-page .page-hero .breadcrumbs {
  margin-bottom: 0;
}

.economy-page #about-direction,
.economy-page #summer-groups {
  scroll-margin-top: 110px;
}

.economy-summer-page .section {
  padding: 38px 0;
}

.economy-summer-page .section-head {
  margin-bottom: 10px;
}

.economy-summer-page .page-hero .breadcrumbs {
  margin-bottom: 14px;
}

.economy-summer-page #groups,
.economy-summer-page #teachers,
.economy-summer-page #schedule,
.economy-summer-page #program,
.economy-summer-page #pricing,
.economy-summer-page #faq {
  scroll-margin-top: 110px;
}

.breadcrumbs {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.kpi-strip {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-strip span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.83rem;
}

.economy-about-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 18px;
  align-items: stretch;
}

.economy-about-panel {
  height: 100%;
}

.economy-about-panel .section-head {
  margin-bottom: 14px;
}

.economy-about-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.04;
}

.economy-about-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(126, 116, 235, 0.32);
  color: var(--brand-dark);
  background: rgba(180, 173, 255, 0.17);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.economy-stats-list {
  margin-top: 0;
}

.economy-stats-list li {
  line-height: 1.45;
}

.economy-about-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(221, 218, 248, 0.95);
  box-shadow: var(--shadow);
  background: #dce1f2;
}

.economy-about-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.economy-page #all-courses .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 112px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

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

.teacher-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.teacher-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(221, 218, 248, 0.95);
  background: #eef2ff;
  aspect-ratio: 6 / 7;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

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

.teacher-card p {
  margin: 0;
  color: var(--muted);
}

.teacher-role {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.teacher-achievements {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.teacher-achievements li::marker {
  color: rgba(126, 116, 235, 0.82);
}

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

.footer-zone {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.22), rgba(148, 226, 174, 0.16)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(84, 84, 152, 0.1);
}

.footer-cta {
  margin-bottom: 14px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(210, 206, 244, 0.95);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-cta h2 {
  max-width: none;
  white-space: nowrap;
}

.footer-cta p {
  max-width: none;
  white-space: nowrap;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(126, 116, 235, 0.26);
  background: rgba(255, 255, 255, 0.9);
  color: #2f3563;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-doc-link:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 116, 235, 0.44);
  box-shadow: 0 12px 24px rgba(87, 89, 157, 0.16);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.offer-hero {
  padding-bottom: 40px;
}

.offer-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.offer-price-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.2), rgba(148, 226, 174, 0.16)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(221, 218, 248, 0.95);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.offer-price-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-price-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.95;
}

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

.feature-card,
.format-card,
.faq-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.feature-card h3,
.format-card h3,
.faq-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-card p,
.format-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

.program-list {
  display: grid;
  gap: 12px;
}

.program-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
}

.program-step {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark));
}

.program-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.program-item p {
  margin: 0;
  color: var(--muted);
}

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

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

.promo-band {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.22), rgba(148, 226, 174, 0.16)),
    rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promo-band h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.promo-band p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

body.modal-open {
  overflow: hidden;
}

.consult-modal-overlay[hidden] {
  display: none;
}

.consult-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 24, 45, 0.52);
  backdrop-filter: blur(4px);
}

.consult-modal {
  width: min(520px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.2), rgba(148, 226, 174, 0.14)),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 58px rgba(34, 36, 77, 0.28);
  padding: 24px;
  position: relative;
}

.consult-modal h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.consult-modal p {
  margin: 0;
  color: var(--muted);
}

.consult-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.course-info-modal-overlay[hidden] {
  display: none;
}

.course-info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 24, 45, 0.52);
  backdrop-filter: blur(4px);
}

.course-info-modal {
  width: min(540px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.2), rgba(148, 226, 174, 0.16)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 56px rgba(34, 36, 77, 0.26);
  padding: 24px;
  position: relative;
  display: grid;
  gap: 10px;
}

.course-info-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.course-info-kicker {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #85520f;
  background: rgba(255, 214, 150, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-info-modal h3 {
  margin: 2px 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

.course-info-dates {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.course-info-description {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.course-info-audience-block {
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(126, 116, 235, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

.course-info-audience-block h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.course-info-audience-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.course-info-close-action {
  margin-top: 4px;
  justify-self: start;
}

.pricing-modal-overlay[hidden] {
  display: none;
}

.pricing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 128;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 24, 45, 0.52);
  backdrop-filter: blur(4px);
}

.pricing-modal {
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.2), rgba(148, 226, 174, 0.14)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 58px rgba(34, 36, 77, 0.28);
  padding: 24px;
  position: relative;
}

.pricing-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pricing-modal h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.pricing-modal-subtitle {
  margin: 8px 0 12px;
  color: var(--muted);
}

.pricing-modal-content {
  display: grid;
  gap: 0;
}

.pricing-modal-content .summer-pricing-grid {
  margin-top: 0;
}

.pricing-modal-empty {
  margin: 4px 0 0;
  color: var(--muted);
}

.pricing-modal-track-panel {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(126, 116, 235, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.pricing-modal-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pricing-modal-track-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}

.pricing-modal-track-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
  color: var(--ink);
}

.pricing-modal-track-switch {
  width: min(100%, 320px);
}

.pricing-modal-track-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.summer-modal-checkout-grid {
  margin-top: 6px;
}

.summer-modal-checkout-card {
  min-width: 0;
}

.summer-checkout-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.summer-checkout-back {
  justify-self: start;
}

.summer-checkout-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summer-checkout-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 116, 235, 0.18);
  background: rgba(117, 106, 232, 0.1);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.summer-checkout-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.summer-checkout-price {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.summer-checkout-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.summer-modal-checkout-note ul {
  margin: 10px 0 0;
}

.summer-payment-status-card {
  display: grid;
  gap: 16px;
}

.summer-payment-status-text {
  min-height: 26px;
}

@media (max-width: 760px) {
  .pricing-modal-track-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-modal-track-switch {
    width: 100%;
  }

  .summer-checkout-back,
  .checkout-submit {
    width: 100%;
  }
}

.consult-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.consult-applicant {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.consult-applicant-label {
  margin: 0;
}

.consult-applicant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.consult-applicant-option {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(126, 116, 235, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.consult-applicant-option:hover {
  border-color: rgba(126, 116, 235, 0.5);
}

.consult-applicant-option.is-active {
  border-color: rgba(116, 106, 232, 0.62);
  background: rgba(117, 106, 232, 0.14);
  color: var(--ink);
}

.consult-applicant-option:focus-visible {
  outline: 2px solid rgba(126, 116, 235, 0.28);
  outline-offset: 2px;
}

.consult-submit {
  width: 100%;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: start;
}

.checkout-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.22), rgba(148, 226, 174, 0.18)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 218, 248, 0.96);
  box-shadow: var(--shadow);
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.payment-method-list {
  display: grid;
  gap: 10px;
}

.payment-method-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 116, 235, 0.2);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-option:hover {
  border-color: rgba(126, 116, 235, 0.45);
  box-shadow: 0 10px 20px rgba(84, 84, 152, 0.08);
}

.payment-method-option input {
  margin-top: 4px;
  accent-color: #7e74eb;
}

.payment-method-option__content {
  display: grid;
  gap: 4px;
}

.payment-method-option__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.payment-method-option__caption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.payment-method-option:has(input:checked) {
  border-color: rgba(116, 106, 232, 0.58);
  background:
    linear-gradient(145deg, rgba(180, 173, 255, 0.18), rgba(148, 226, 174, 0.14)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(101, 95, 196, 0.12);
}

.field-label {
  font-size: 0.88rem;
  font-weight: 800;
}

.form-input {
  width: 100%;
  border: 1px solid rgba(126, 116, 235, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
}

.form-input:focus {
  outline: 2px solid rgba(126, 116, 235, 0.24);
  outline-offset: 2px;
}

.checkout-submit {
  width: max-content;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status[data-state="error"] {
  color: #9d3150;
}

.form-status[data-state="pending"] {
  color: var(--brand-dark);
}

.form-status[data-state="success"] {
  color: #287c46;
}

.checkout-note {
  background: rgba(255, 255, 255, 0.72);
}

.payment-widget-shell {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(221, 218, 248, 0.96);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 30px rgba(84, 84, 152, 0.08);
}

.payment-widget-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.payment-widget-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.payment-widget-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-form-container {
  min-height: 320px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 244, 255, 0.72), rgba(255, 255, 255, 0.95));
  padding: 10px;
}

.payment-cabinet-link {
  margin-top: 16px;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .trust-feature,
  .split,
  .economy-about-grid,
  .summer-course-layout,
  .summer-schedule-grid,
  .reviews-grid,
  .gallery-grid,
  .price-grid,
  .teacher-grid,
  .offer-hero-grid,
  .feature-grid,
  .format-grid,
  .faq-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .main-hero {
    padding-top: 56px;
  }

  .trust-feature {
    gap: 16px;
  }

  .trust-video-wrap {
    width: clamp(320px, 56vw, 460px);
  }

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

  .summer-course-head {
    display: block;
  }

  .summer-course-head h3 {
    white-space: normal;
  }

  .summer-course-switch {
    min-width: 0;
    width: 100%;
  }

  .program-month-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .home-faq-layout {
    grid-template-columns: 1fr;
  }

  .home-faq-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-track {
    grid-auto-columns: minmax(360px, 88%);
  }

  .footer-cta h2 {
    white-space: normal;
  }

  .footer-cta p {
    white-space: normal;
  }

}

@media (min-width: 761px) and (max-width: 1080px) {
  .home-page .nav-shell {
    gap: 12px;
    padding: 10px 12px;
  }

  .home-page .nav-links {
    display: none;
  }

  .home-page .btn-group {
    margin-left: auto;
    gap: 8px;
    align-items: center;
  }

  .home-page .btn-group .btn {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .home-page .mobile-nav-dropdown {
    display: block;
    position: relative;
    order: 1;
  }

  .home-page .btn-group .btn-soft {
    order: 2;
  }

  .home-page .header-consult-btn {
    order: 3;
  }

  .home-page .mobile-nav-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .home-page .mobile-nav-toggle::marker,
  .home-page .mobile-nav-toggle::-webkit-details-marker {
    display: none;
    content: "";
  }

  .home-page .mobile-nav-toggle::after {
    content: "▾";
    font-size: 0.82rem;
    transition: transform 0.2s ease;
  }

  .home-page .mobile-nav-dropdown[open] .mobile-nav-toggle::after {
    transform: rotate(180deg);
  }

  .home-page .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(300px, calc(100vw - 48px));
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(126, 116, 235, 0.26);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 30px rgba(62, 66, 126, 0.16);
    backdrop-filter: blur(8px);
    display: grid;
    gap: 4px;
  }

  .home-page .mobile-nav-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
  }

  .home-page .mobile-nav-panel a:active,
  .home-page .mobile-nav-panel a:hover {
    background: rgba(180, 173, 255, 0.16);
  }

  .home-page:not(.economy-page) .mobile-nav-panel .nav-menu-cabinet,
  .economy-page .mobile-nav-panel .nav-menu-cabinet {
    display: none;
  }

  .economy-page .ipad-cabinet-btn {
    display: inline-flex;
  }

  .home-page .hero-grid > div:first-child {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .home-page .hero-grid > div:first-child .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .home-page .hero-grid > div:first-child .btn-group {
    justify-content: center;
  }

  .home-page .trust-panel {
    order: 1;
  }

  .home-page .trust-video-wrap {
    order: 2;
  }

  .home-page .footer-cta {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .home-page .footer-cta > div {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 220px);
  }

  .home-page .footer-cta p {
    max-width: 46ch;
  }

  .home-page .footer-online-word {
    display: none;
  }

  .home-page .footer-cta .btn {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .economy-page:not(.economy-summer-page) #about-direction .economy-about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .economy-page:not(.economy-summer-page) #about-direction .economy-about-media {
    order: -1;
    margin: 0 auto;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 10;
  }

  .economy-page:not(.economy-summer-page) #about-direction .economy-about-media img {
    height: 100%;
    min-height: 0;
  }

  .economy-page:not(.economy-summer-page) #courses .summer-course-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(221, 218, 248, 0.96);
    background:
      linear-gradient(145deg, rgba(180, 173, 255, 0.22), rgba(148, 226, 174, 0.16)),
      rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }

  .economy-page:not(.economy-summer-page) #courses .summer-course-media {
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 1756 / 904;
    max-height: none;
  }

  .economy-page:not(.economy-summer-page) #courses .summer-course-media img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    background: transparent;
  }

  .economy-page:not(.economy-summer-page) #courses .summer-course-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .economy-page:not(.economy-summer-page) #teachers .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .economy-page:not(.economy-summer-page) #teachers .teacher-card {
    padding: 14px;
    gap: 8px;
  }

  .economy-page:not(.economy-summer-page) #teachers .teacher-photo {
    aspect-ratio: 5 / 6;
  }

  .economy-summer-page #groups .summer-course-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(221, 218, 248, 0.96);
    background:
      linear-gradient(145deg, rgba(180, 173, 255, 0.22), rgba(148, 226, 174, 0.16)),
      rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }

  .economy-summer-page #groups .summer-course-media {
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 1756 / 904;
    max-height: none;
  }

  .economy-summer-page #groups .summer-course-media img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    background: transparent;
  }

  .economy-summer-page #groups .summer-course-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .economy-summer-page #teachers .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .economy-summer-page #teachers .teacher-card {
    padding: 14px;
    gap: 8px;
  }

  .economy-summer-page #teachers .teacher-photo {
    aspect-ratio: 5 / 6;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 8px;
    z-index: 60;
  }

  .economy-page #about-direction,
  .economy-page #summer-groups {
    scroll-margin-top: 16px;
  }

  .economy-summer-page #groups,
  .economy-summer-page #teachers,
  .economy-summer-page #schedule,
  .economy-summer-page #program,
  .economy-summer-page #pricing,
  .economy-summer-page #faq {
    scroll-margin-top: 16px;
  }

  .economy-summer-page .section {
    padding: 30px 0;
  }

  .economy-summer-page .section-head {
    margin-bottom: 10px;
  }

  .economy-page #about-direction .economy-about-media {
    order: -1;
  }

  .economy-page #about-direction .economy-about-head {
    text-align: center;
  }

  .economy-page #about-direction .economy-stats-list li {
    text-align: center;
  }

  .nav-shell {
    border-radius: 18px;
  }

  .nav-links {
    display: none;
  }

  .btn-group .btn-soft {
    display: none;
  }

  .header-consult-btn {
    display: none;
  }

  .mobile-nav-dropdown {
    display: block;
    position: relative;
  }

  .mobile-nav-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-nav-toggle::marker,
  .mobile-nav-toggle::-webkit-details-marker {
    display: none;
    content: "";
  }

  .mobile-nav-toggle::after {
    content: "▾";
    font-size: 0.82rem;
    transition: transform 0.2s ease;
  }

  .mobile-nav-dropdown[open] .mobile-nav-toggle::after {
    transform: rotate(180deg);
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(260px, calc(100vw - 24px));
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(126, 116, 235, 0.26);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 30px rgba(62, 66, 126, 0.16);
    backdrop-filter: blur(8px);
    display: grid;
    gap: 4px;
  }

  .mobile-nav-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
  }

  .mobile-nav-panel a:active,
  .mobile-nav-panel a:hover {
    background: rgba(180, 173, 255, 0.16);
  }

  .mobile-nav-panel .nav-menu-cabinet {
    margin-top: 4px;
    border: 1px solid rgba(126, 116, 235, 0.3);
    background: linear-gradient(135deg, rgba(180, 173, 255, 0.22), rgba(255, 214, 150, 0.26));
    text-align: center;
    color: #2f3563;
    font-weight: 800;
  }

  .brand-wordmark {
    height: 15px;
  }

  .home-page .brand-mark {
    width: 38px;
    height: 38px;
  }

  .home-page .brand-mark img {
    height: 24px;
  }

  .home-page .brand-wordmark {
    height: 18px;
  }

  .economy-page .brand-mark {
    width: 38px;
    height: 38px;
  }

  .economy-page .brand-mark img {
    height: 24px;
  }

  .economy-page .brand-wordmark {
    height: 18px;
  }

  .section {
    padding: 30px 0;
  }

  .economy-summer-page main {
    padding-bottom: 0;
  }

  .economy-summer-page .mobile-pay-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 109;
    pointer-events: auto;
  }

  .economy-summer-page .mobile-pay-cta-action {
    width: 100%;
    min-height: 50px;
    box-shadow: 0 14px 28px rgba(96, 90, 194, 0.32);
  }

  .main-hero .eyebrow {
    display: none;
  }

  .main-hero .btn-group {
    justify-content: center;
  }

  .footer-cta .btn {
    align-self: center;
  }

  .hero-photo-card {
    min-height: 280px;
  }

  .hero-photo-card::after {
    display: none;
  }

  .hero-photo-card figcaption {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    border-radius: 0;
    border-top: 1px solid rgba(221, 218, 248, 0.95);
    background: rgba(255, 255, 255, 0.94);
  }

  .trust-feature {
    margin-top: 22px;
  }

  .trust-panel {
    order: 1;
  }

  .trust-video-wrap {
    order: 2;
  }

  .trust-video-wrap {
    width: min(340px, 92vw);
  }

  .trust-video-badge {
    margin-top: -14px;
    font-size: 0.72rem;
    padding: 8px 14px;
  }

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

  .direction-card h3 {
    font-size: clamp(1.7rem, 10vw, 2.25rem);
  }

  .card-link {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .course-link {
    min-height: 44px;
  }

  .all-courses-actions .course-link {
    width: 100%;
  }

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

  .summer-course-meta-list {
    font-size: 0.94rem;
  }

  .summer-course-actions {
    width: 100%;
  }

  .summer-course-actions .btn {
    width: 100%;
  }

  .summer-schedule-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .summer-schedule-badge {
    white-space: normal;
  }

  .summer-schedule-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .summer-schedule-time {
    justify-self: start;
  }

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

  .program-month-topics li {
    grid-template-columns: 26px 1fr;
    gap: 8px;
    padding: 8px 9px;
  }

  .program-month-topics li::before {
    width: 26px;
    height: 26px;
    font-size: 0.74rem;
  }

  .program-topic-title {
    font-size: 1.08rem;
    line-height: 1.28;
  }

  .summer-pricing-discount-note {
    font-size: 0.84rem;
    padding: 9px 11px;
  }

  .summer-pricing-period-note {
    margin: 10px 0 0;
    padding-top: 8px;
    font-size: 0.82rem;
  }

  .summer-price-card .price-name {
    font-size: 1.2rem;
    gap: 6px;
    padding: 0 0 6px;
  }

  .summer-price-card .price-description {
    min-height: 0;
    font-size: 0.92rem;
  }

  .summer-price-card .price-value {
    padding: 12px 10px 10px;
    font-size: 2rem;
  }

  .summer-price-card .price-value span {
    font-size: 0.94rem;
    margin-left: 4px;
  }

  .gallery-slider {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-nav {
    display: none;
  }

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

  .gallery-track {
    grid-auto-columns: minmax(280px, 96vw);
  }

  .reviews-track .review-card {
    min-height: 0;
    max-height: none;
  }

  .home-faq-media {
    grid-template-columns: 1fr;
  }

  .price-bar,
  .cta-band,
  .footer-row,
  .promo-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .footer-zone {
    padding: 16px;
    border-radius: 20px;
  }

  .footer-cta {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .footer-doc-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .program-step {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .checkout-card {
    padding: 20px;
  }

  .checkout-submit {
    width: 100%;
  }

  .consult-modal-overlay {
    padding: 14px;
  }

  .consult-modal {
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .course-info-modal-overlay {
    padding: 14px;
  }

  .course-info-modal {
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .course-info-close-action {
    width: 100%;
    justify-self: stretch;
  }

  .pricing-modal-overlay {
    padding: 14px;
  }

  .pricing-modal {
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .consult-float {
    right: 12px;
    bottom: 12px;
    left: auto !important;
    top: auto !important;
    width: calc(100vw - 24px);
    max-width: 360px;
    padding: 12px;
    border-radius: 16px;
  }

  .consult-float-title {
    margin-bottom: 8px;
    font-size: 0.84rem;
  }
}
