/* Cleverest — Skyeng-inspired layout, Cleverest colors */
:root {
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --muted: #f5f5f7;
  --muted-2: #eeeef2;
  --line: #e6e6eb;
  --orange: #ff6a00;
  --orange-deep: #e85f00;
  --orange-soft: #fff1e6;
  --yellow: #ffd54a;
  --yellow-soft: #fff8e0;
  --white: #ffffff;
  --ok: #1faa6e;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 4px 16px rgba(26, 26, 26, 0.06);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1500px;
  --gutter: clamp(1rem, 3.5vw, 1.5rem);
  --nav-bp: 1100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(1.85rem, 5.2vw + 0.4rem, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3.2vw + 0.5rem, 2.6rem); }
h3 { font-size: clamp(1.02rem, 1.2vw + 0.7rem, 1.15rem); }

.t-orange { color: var(--orange); }

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2 * var(--gutter)));
}

.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-muted { background: var(--muted); }

.section-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.04);
}

.header-inner {
  height: 100%;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 2;
  flex-shrink: 1;
  min-width: 0;
}

.logo-img {
  height: clamp(28px, 5vw, 56px);
  width: auto;
  max-width: min(168px, 52vw);
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.4vw, 1.25rem);
  font-weight: 700;
  font-size: clamp(0.86rem, 0.9vw + 0.55rem, 0.95rem);
  flex-wrap: nowrap;
}

.nav a:not(.nav-cta):hover { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
  flex-shrink: 0;
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s, top 0.3s var(--ease);
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.95rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.28);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
}

.btn-outline {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(255, 213, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 80%, rgba(255, 106, 0, 0.08), transparent 50%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-badge {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 1.5rem;
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.hero-checks li {
  position: relative;
  padding-left: 1.8rem;
  font-weight: 700;
}

.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--orange-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ff6a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 65%;
  background-repeat: no-repeat;
  background-position: center;
}

.accent-word {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.12em;
  letter-spacing: -0.02em;
}

.hero-footnote {
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-form,
.apply-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(1rem, 2.2vw, 1.4rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.95rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-form-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin: 0;
}

.hero-form-lead {
  margin: -0.35rem 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Trust */
.trust {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

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

.trust-item {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  text-align: center;
}

.trust-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--orange);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}

.trust-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.program-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.program-card p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
}

.tag-hot {
  background: var(--orange);
  color: var(--white);
}

.card-link {
  font-weight: 800;
  color: var(--orange);
  font-size: 0.92rem;
}

.card-link:hover { text-decoration: underline; }

/* Platform screens */
.platform-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  max-width: 1300px;
  margin: 0 auto 1.5rem;
}

.platform-shot {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.platform-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Teachers slider */
.teachers-slider {
  position: relative;
}

.teachers-slider__viewport {
  overflow: hidden;
}

.teachers-slider__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.teachers-slider__track::-webkit-scrollbar { display: none; }

.teachers-slider .teacher-card {
  flex: 0 0 calc((100% - 3 * 1rem) / 4);
  scroll-snap-align: start;
  min-width: 0;
}

.teachers-slider__controls {
  display: none;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.slider-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.teacher-meta {
  margin: 0.35rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.price-pack--warn {
  color: var(--orange);
}

.price-card--closed {
  opacity: 0.92;
}

.apply-grid--simple {
  align-items: center;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(120deg, var(--orange-soft), var(--yellow-soft));
  border-radius: 24px;
  padding: clamp(1.1rem, 2.5vw, 1.4rem) clamp(1.1rem, 2.8vw, 1.6rem);
}

.banner > div { min-width: 0; flex: 1; }
.banner .btn { flex-shrink: 0; }

.banner h3 { margin: 0 0 0.25rem; }
.banner p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* Teachers (legacy grid unused; slider above) */
.teacher-card { text-align: left; }

.teacher-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
  background: var(--muted);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.5rem;
  color: rgba(26, 26, 26, 0.18);
}

.p1 { background: linear-gradient(160deg, #ffe8d6, #ffd54a); }
.p2 { background: linear-gradient(160deg, #ffe8d6, #ffc9a3); }
.p3 { background: linear-gradient(160deg, #fff1e6, #ffe08a); }

.photo-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  box-shadow: var(--shadow-sm);
}

.teacher-photo:has(img) .photo-placeholder,
.teacher-photo:has(img) .photo-tag { display: none; }

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

.role {
  color: var(--orange);
  font-weight: 800;
  font-size: 0.88rem;
  margin: -0.25rem 0 0.45rem;
}

.teacher-card > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Story + reviews */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.story-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.story-person strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.story-person span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.story-path {
  display: grid;
  gap: 0.75rem;
}

.path-box {
  background: var(--muted);
  border-radius: 16px;
  padding: 1rem;
}

.path-box.path-ok { background: #e8f8f0; }

.path-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.path-ok .path-label { color: var(--ok); }

.path-box p { margin: 0; font-weight: 650; font-size: 0.95rem; }

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

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.stars {
  color: var(--orange);
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.review-card > p {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.review-card footer strong {
  font-family: var(--font-display);
}

.review-card footer span {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 650;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, var(--white), var(--orange-soft));
  box-shadow: 0 16px 40px rgba(255, 106, 0, 0.16);
}

.badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-tier {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin: 0 0 0.35rem;
}

.price-card h3 { margin-bottom: 0.75rem; }

.price {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

.price strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price span { font-size: 0.9rem; }

.price-pack {
  margin: 0.35rem 0 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.25rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(0.95rem, 1.5vw + 0.55rem, 1.02rem);
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  overflow-wrap: break-word;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}

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

.faq-item p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  padding-bottom: 0.25rem;
}

/* Apply */
.apply {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 213, 74, 0.22), transparent 45%),
    var(--white);
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.apply-visual {
  margin-top: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: min(420px, 100%);
}

.apply-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.apply-form { position: sticky; top: calc(var(--header-h) + 16px); }
.form-title { font-size: 1.25rem; margin: 0; }

/* Forms shared */
.field { display: grid; gap: 0.35rem; min-width: 0; max-width: 100%; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

label,
.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--muted);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

input[type="text"].invalid,
input[type="tel"].invalid,
input[type="email"].invalid,
textarea.invalid {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

.check span {
  min-width: 0;
  overflow-wrap: break-word;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.form-note {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-note a {
  color: var(--orange);
  font-weight: 800;
}

.form-success {
  background: #e8f8f0;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.form-success p { margin: 0.3rem 0 0; }

.hero-form.is-sent > :not(.form-success),
.apply-form.is-sent > :not(.form-success) { display: none; }

/* Custom select */
.cartoon-select { position: relative; z-index: 1; min-width: 0; max-width: 100%; }
.cartoon-select.is-open { z-index: 40; }

.cartoon-select__trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--muted);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.75rem 0.8rem 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cartoon-select__trigger:hover { background: var(--orange-soft); }

.cartoon-select.is-open .cartoon-select__trigger,
.cartoon-select__trigger:focus-visible {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.cartoon-select.is-invalid .cartoon-select__trigger { border-color: #e63946; }

.cartoon-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cartoon-select__value.is-placeholder { color: var(--ink-soft); font-weight: 600; }

.cartoon-select__chevron {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  transition: transform 0.25s var(--ease);
}

.cartoon-select__chevron svg { width: 13px; height: 13px; }
.cartoon-select.is-open .cartoon-select__chevron { transform: rotate(180deg); }

.cartoon-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.2rem;
  max-height: min(240px, 45vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: pop 0.22s var(--ease);
  z-index: 50;
}

.cartoon-select.is-drop-up .cartoon-select__list {
  top: auto;
  bottom: calc(100% + 6px);
  animation: pop-up 0.22s var(--ease);
}

.cartoon-select__list[hidden] { display: none; }

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.cartoon-select__list [role="option"] {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  overflow-wrap: break-word;
  min-width: 0;
}

.cartoon-select__list [role="option"]:hover,
.cartoon-select__list [role="option"][aria-selected="true"] {
  background: var(--orange-soft);
}

.level-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.level-pill {
  position: relative;
  cursor: pointer;
  min-width: 0;
  display: block;
}

.level-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.level-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.25rem;
  border-radius: 10px;
  background: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  overflow-wrap: break-word;
}

.level-pill:hover span { background: var(--orange-soft); }
.level-pill input:checked + span {
  background: var(--orange);
  color: var(--white);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  background: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.footer-desc {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-weight: 750;
}

.footer-links a:hover { color: var(--orange); }

.footer-contacts a {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--orange);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-cta { padding: 0.55rem 0.95rem; }
}

/* Tablet / small laptop: burger + stacked hero */
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background:
      radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 213, 74, 0.35), transparent 55%),
      radial-gradient(ellipse 60% 45% at 0% 100%, rgba(255, 106, 0, 0.12), transparent 50%),
      #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
    padding:
      max(calc(var(--header-h) + 1.5rem), calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.75rem))
      max(1.5rem, env(safe-area-inset-right, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px))
      max(1.5rem, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav a:not(.nav-cta) {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    transition: color 0.2s, padding-left 0.2s;
  }

  .nav a:not(.nav-cta):hover,
  .nav a:not(.nav-cta):active {
    color: var(--orange);
    padding-left: 0.35rem;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.28);
  }

  .nav.open a {
    animation: nav-link-in 0.4s var(--ease) both;
  }

  .nav.open a:nth-child(1) { animation-delay: 0.04s; }
  .nav.open a:nth-child(2) { animation-delay: 0.08s; }
  .nav.open a:nth-child(3) { animation-delay: 0.12s; }
  .nav.open a:nth-child(4) { animation-delay: 0.16s; }
  .nav.open a:nth-child(5) { animation-delay: 0.2s; }
  .nav.open a:nth-child(6) { animation-delay: 0.24s; }
  .nav.open a:nth-child(7) { animation-delay: 0.28s; }

  @keyframes nav-link-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }

  .logo { position: relative; z-index: 120; }

  .hero-grid,
  .apply-grid,
  .story,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .apply-form { position: static; }
  .banner {
    flex-direction: column;
    align-items: stretch;
  }
  .banner .btn { width: 100%; }

  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
}

@media (max-width: 820px) {
  .programs-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 4.25rem 0;
  }

  .section-head { margin-bottom: 2rem; }

  .trust {
    padding: 2.25rem 0 3rem;
  }

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

  .teachers-slider__controls {
    display: flex;
  }

  .teachers-slider .teacher-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; }

  .section {
    padding: 4.75rem 0;
  }

  .hero {
    padding: calc(var(--header-h) + 1.35rem) 0 3rem;
  }

  .trust {
    padding: 2.75rem 0 3.25rem;
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .programs-grid,
  .reviews-grid,
  .pricing-grid,
  .trust-grid {
    gap: 1rem;
  }

  .platform-screens {
    gap: 0.85rem;
    margin-bottom: 1.75rem;
  }

  .teachers-slider .teacher-card {
    flex-basis: min(72vw, 260px);
  }

  .story {
    margin-bottom: 1.5rem;
  }

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

  .footer {
    padding-top: 3rem;
    padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
  }

  .footer-links { flex-direction: column; gap: 0.65rem; }

  .program-card,
  .price-card,
  .review-card,
  .trust-item {
    padding-inline: 1.05rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    max-width: 100%;
  }

  .hero-lead { font-size: 1.02rem; max-width: none; }
  .photo-placeholder { font-size: 2.75rem; }
}

@media (max-width: 420px) {
  :root { --gutter: 0.85rem; }

  body { font-size: 1rem; }

  .hero-form,
  .apply-form {
    padding: 1.1rem 0.9rem;
    border-radius: 18px;
  }

  .level-pill span {
    font-size: 0.72rem;
    min-height: 40px;
    padding: 0.45rem 0.15rem;
  }

  .price-card { padding: 1.25rem 1rem; }
  .banner { border-radius: 18px; }
  .story { border-radius: 18px; }
  .section-lead { font-size: 1rem; }
}

@media (max-width: 360px) {
  .hero-checks li { font-size: 0.95rem; }
  .trust-value { font-size: 1.35rem; }
  .nav { font-size: 1.05rem; gap: 1rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .nav {
    justify-content: flex-start;
    align-items: stretch;
    padding-top: max(4rem, calc(env(safe-area-inset-top, 0px) + 3.25rem));
    font-size: 1.15rem;
  }

  .nav a:not(.nav-cta) {
    min-height: 44px;
    padding: 0.4rem 0.25rem;
  }

  .hero-grid { gap: 1.25rem; }
}

@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav a,
  .cartoon-select__trigger,
  .level-pill span,
  .faq-item summary,
  .card-link {
    min-height: 44px;
  }

  .card-link {
    display: inline-flex;
    align-items: center;
  }

  .burger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .check input {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
