:root {
  --paper: #fbfdf9;
  --mint: #edf7ef;
  --mint-strong: #d8efe0;
  --ink: #102030;
  --ink-soft: #314454;
  --muted: #687984;
  --line: #dae8df;
  --white: #ffffff;
  --emerald: #137455;
  --emerald-dark: #0d4f3d;
  --coral: #ef705c;
  --gold: #d8a64a;
  --navy: #0e2233;
  --navy-2: #142e42;
  --shadow: 0 24px 80px rgba(18, 48, 36, 0.13);
  --shadow-soft: 0 18px 50px rgba(16, 32, 48, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(237, 247, 239, 0.9), rgba(251, 253, 249, 0) 520px),
    var(--paper);
  font-family: "Manrope", Arial, sans-serif;
}

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

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

picture {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 18px clamp(22px, 5vw, 76px);
  background: rgba(251, 253, 249, 0.88);
  border-bottom: 1px solid rgba(218, 232, 223, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: var(--emerald);
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(19, 116, 85, 0.24);
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.main-nav a,
.footer-links a,
.footer-contact a {
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--emerald);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(14, 34, 51, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 77px);
  padding: clamp(56px, 7vw, 96px) clamp(22px, 5vw, 76px) 64px;
}

.hero-copy {
  max-width: 730px;
}

.hero h1,
.section-lead h2,
.method h2,
.trial h2,
.thanks h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.94;
}

.hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--emerald);
  box-shadow: 0 18px 40px rgba(19, 116, 85, 0.26);
}

.button-secondary {
  color: var(--emerald-dark);
  background: var(--mint-strong);
}

.button-coral {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 18px 40px rgba(239, 112, 92, 0.24);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-features span {
  padding: 10px 13px;
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.hero-stage {
  position: relative;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(218, 232, 223, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stage img {
  width: 100%;
  height: min(68vh, 680px);
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-stage picture {
  overflow: hidden;
  border-radius: var(--radius);
}

.lesson-controls {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(218, 232, 223, 0.88);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.lesson-controls span {
  height: 6px;
  background: var(--mint-strong);
  border-radius: 999px;
}

.lesson-controls span:nth-child(1),
.lesson-controls span:nth-child(2),
.lesson-controls span:nth-child(3) {
  background: var(--emerald);
}

.progress-card {
  position: absolute;
  display: grid;
  gap: 3px;
  width: 168px;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 52px rgba(14, 34, 51, 0.22);
}

.progress-card strong {
  font-size: 27px;
  line-height: 1;
}

.progress-card span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.progress-card-top {
  top: 44px;
  left: -26px;
}

.progress-card-bottom {
  right: -24px;
  bottom: 112px;
  background: var(--emerald);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(22px, 5vw, 76px);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-strip div {
  padding: 26px;
  background: var(--white);
}

.proof-strip strong {
  display: block;
  color: var(--emerald);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.proof-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.faq {
  padding: clamp(82px, 9vw, 128px) clamp(22px, 5vw, 76px);
}

.section-lead {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-lead.align-left {
  margin-left: 0;
  text-align: left;
}

.section-lead h2,
.method h2,
.trial h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.section-lead p,
.method-intro p,
.trial-copy p,
.faq-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

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

.course-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.course-showcase img,
.method-media img,
.teacher-showcase img,
.trial-media img,
.thanks-media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.course-showcase img {
  aspect-ratio: 1.9;
}

.course-showcase h3,
.teacher-showcase strong {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
}

.course-showcase p,
.teacher-showcase p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.course-card,
.teacher-card,
.price-card,
.lead-form,
.faq-grid details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.course-card {
  display: grid;
  gap: 26px;
  min-height: 330px;
  padding: 26px;
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--emerald);
  border-radius: var(--radius);
  font-size: 24px;
}

.course-card h3,
.teacher-card h3,
.price-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
}

.course-card p,
.teacher-card p,
.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.62;
}

.course-card a {
  align-self: end;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 900;
}

.method {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(84px, 9vw, 132px) clamp(22px, 5vw, 76px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(19, 116, 85, 0.28), transparent 38%),
    var(--navy);
}

.method h2 {
  color: var(--white);
}

.method-intro {
  position: sticky;
  top: 112px;
  align-self: start;
}

.method-intro p {
  color: rgba(255, 255, 255, 0.72);
}

.method-intro .button {
  margin-top: 28px;
}

.method-media {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.method-media img {
  aspect-ratio: 1.42;
}

.method-steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.method-steps li {
  display: grid;
  grid-template-columns: 80px 0.7fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  background: rgba(255, 255, 255, 0.055);
}

.method-steps span {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.method-steps strong {
  font-size: 22px;
}

.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

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

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

.teacher-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.45fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.teacher-showcase img {
  aspect-ratio: 1.85;
}

.teacher-card {
  display: grid;
  min-height: 320px;
  padding: 28px;
}

.teacher-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 1.25;
  place-items: center;
  margin-bottom: 24px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(19, 116, 85, 0.92), rgba(14, 34, 51, 0.95)),
    var(--emerald);
  border-radius: var(--radius);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 800;
}

.teacher-card span {
  align-self: end;
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
}

.pricing {
  background: linear-gradient(180deg, var(--mint), var(--paper));
}

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

.price-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 30px;
}

.price-card.featured {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 34px 90px rgba(14, 34, 51, 0.24);
}

.price-card.featured h3,
.price-card.featured p,
.price-card.featured li {
  color: var(--white);
}

.popular {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--gold);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.price-card strong {
  color: var(--emerald);
  font-size: 34px;
  line-height: 1;
}

.price-card.featured strong {
  color: var(--gold);
}

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

.price-card li {
  padding-left: 24px;
  position: relative;
}

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

.price-card .button {
  align-self: end;
}

.trial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 0.9fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
  padding: clamp(84px, 9vw, 132px) clamp(22px, 5vw, 76px);
  background: var(--navy);
}

.trial h2 {
  color: var(--white);
}

.trial-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.trial-media {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.trial-media img {
  aspect-ratio: 1.85;
}

.trial-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.trial-points span {
  padding: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.18);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.lead-form label:last-of-type,
.lead-form button,
.form-note {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  color: var(--ink);
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(19, 116, 85, 0.1);
}

.lead-form textarea {
  resize: vertical;
}

.lead-form small {
  color: #b33222;
  font-weight: 800;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.faq {
  background: var(--paper);
}

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

.faq-grid details {
  padding: 22px;
}

.faq-grid summary {
  color: var(--navy);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.5fr) minmax(210px, 0.6fr);
  gap: 42px;
  padding: 52px clamp(22px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.8);
  background: #071620;
}

.footer-main p {
  max-width: 480px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.65;
}

.footer-brand {
  color: var(--white);
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.thanks {
  display: grid;
  min-height: 68vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  place-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 90px clamp(22px, 5vw, 76px);
  text-align: left;
}

.thanks h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.thanks p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.thanks .button {
  margin-top: 24px;
}

.thanks-media {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thanks-media img {
  aspect-ratio: 1.55;
}

.service-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 34px clamp(22px, 5vw, 76px) 0;
}

.service-hub article,
.program-card,
.dashboard-panel,
.quiz-card,
.level-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-hub article {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.service-hub span,
.program-card span,
.dashboard-panel > span,
.level-result span,
.quiz-card legend span {
  color: var(--emerald);
  font-size: 13px;
  font-weight: 900;
}

.service-hub h2,
.program-card h3,
.dashboard-panel h2,
.level-result h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.service-hub p,
.program-card p,
.dashboard-panel p,
.level-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.service-hub a,
.program-card a,
.dashboard-chats a {
  color: var(--emerald);
  font-size: 14px;
  font-weight: 900;
}

.product-hero,
.dashboard-shell {
  padding: clamp(64px, 8vw, 108px) clamp(22px, 5vw, 76px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 62vh;
}

.product-hero h1,
.dashboard-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
}

.product-hero p,
.dashboard-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.66;
}

.product-hero-media,
.dashboard-hero picture {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-hero-media img,
.dashboard-hero img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.programs-section,
.level-test {
  padding: clamp(76px, 8vw, 120px) clamp(22px, 5vw, 76px);
}

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

.program-card {
  display: grid;
  gap: 22px;
  min-height: 360px;
  padding: 26px;
}

.program-card ul,
.task-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-card li,
.task-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

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

.learning-system {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(84px, 9vw, 132px) clamp(22px, 5vw, 76px);
  color: var(--white);
  background: var(--navy);
}

.learning-system h2 {
  margin: 0;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.system-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.system-list article {
  display: grid;
  grid-template-columns: 70px 0.55fr 1fr;
  gap: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
}

.system-list span {
  color: var(--gold);
  font-size: 23px;
  font-weight: 900;
}

.system-list h3 {
  margin: 0;
  font-size: 22px;
}

.system-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.dashboard-shell {
  background:
    linear-gradient(180deg, rgba(237, 247, 239, 0.9), rgba(251, 253, 249, 0) 520px),
    var(--paper);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

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

.dashboard-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 280px;
  padding: 24px;
}

.level-panel {
  grid-column: span 2;
}

.level-meter {
  height: 12px;
  overflow: hidden;
  background: #e7f0ea;
  border-radius: 999px;
}

.level-meter span {
  display: block;
  width: min(var(--level-score), 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: inherit;
}

.dashboard-panel small {
  color: var(--muted);
  font-weight: 800;
}

.quick-actions,
.dashboard-chats {
  display: grid;
  gap: 10px;
}

.quick-actions a,
.dashboard-chats a {
  padding: 13px 14px;
  color: var(--ink-soft);
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.quick-actions a:hover,
.dashboard-chats a:hover {
  color: var(--emerald);
  background: var(--mint);
}

.level-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(22px, 5vw, 76px);
  padding: 28px;
}

.result-score {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  align-content: center;
  color: var(--white);
  background: var(--emerald);
  border-radius: var(--radius);
}

.result-score strong {
  font-size: 38px;
  line-height: 1;
}

.result-score span {
  color: rgba(255, 255, 255, 0.84);
}

.result-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-form {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.quiz-card {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 22px;
}

.quiz-card legend {
  display: flex;
  gap: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-options label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  color: var(--ink-soft);
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.quiz-options input {
  accent-color: var(--emerald);
}

@media (max-width: 1120px) {
  .hero,
  .method,
  .trial,
  .thanks,
  .product-hero,
  .dashboard-hero,
  .learning-system {
    grid-template-columns: 1fr;
  }

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

  .method-intro {
    position: static;
  }

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

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

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

  .progress-card-top {
    left: 34px;
  }

  .progress-card-bottom {
    right: 34px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }

  .proof-strip,
  .teacher-grid,
  .pricing-grid,
  .faq-grid,
  .site-footer,
  .program-grid,
  .dashboard-grid,
  .service-hub {
    grid-template-columns: 1fr;
  }

  .method-steps li,
  .system-list article {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .level-panel {
    grid-column: auto;
  }

  .level-result {
    grid-template-columns: 1fr;
  }

  .result-score {
    width: 128px;
    height: 128px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .header-action {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .hero,
  .section,
  .method,
  .trial,
  .faq,
  .product-hero,
  .programs-section,
  .level-test,
  .dashboard-shell,
  .learning-system {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero p,
  .section-lead p,
  .method-intro p,
  .trial-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-features {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    padding: 10px;
  }

  .hero-stage img {
    height: 390px;
  }

  .lesson-controls,
  .progress-card {
    display: none;
  }

  .proof-strip {
    margin: 0 20px;
  }

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

  .course-card {
    min-height: auto;
  }

  .section-lead h2,
  .method h2,
  .trial h2 {
    font-size: 38px;
  }

  .price-card,
  .lead-form,
  .teacher-card,
  .program-card,
  .dashboard-panel,
  .quiz-card {
    padding: 22px;
  }

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

  .product-hero h1,
  .dashboard-hero h1 {
    font-size: 42px;
  }

  .level-result {
    margin: 0 20px;
  }

  .site-footer {
    padding: 42px 20px;
  }

  .course-showcase,
  .teacher-showcase {
    padding: 12px;
  }

  .course-showcase img,
  .teacher-showcase img,
  .trial-media img,
  .thanks-media img {
    aspect-ratio: 1.25;
  }

  .thanks {
    padding: 54px 20px;
    text-align: center;
  }
}

.agent-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: calc(100vh - 77px);
  background: #f7faf8;
}

.agent-sidebar {
  position: sticky;
  top: 77px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 77px);
  padding: 18px 16px;
  background: #ffffff;
  border-right: 1px solid #dfeae3;
}

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

.agent-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--emerald);
  border-radius: var(--radius);
  font-weight: 900;
}

.agent-sidebar-head strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.agent-sidebar-head small {
  color: var(--muted);
  font-weight: 700;
}

.agent-new-chat,
.agent-prompt-toggle,
.agent-menu a,
.agent-hint {
  border-radius: var(--radius);
}

.agent-new-chat,
.agent-prompt-toggle {
  min-height: 40px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.agent-new-chat {
  color: #ffffff;
  background: var(--navy);
}

.agent-chat-history {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-y: auto;
  padding: 9px;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-chat-history-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-chat-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: #ffffff;
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 30, 38, 0.06);
}

.agent-chat-item:hover,
.agent-chat-item.active {
  color: var(--navy);
  border-color: rgba(25, 120, 88, 0.22);
  background: var(--mint);
}

.agent-chat-item span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-chat-item small,
.agent-chat-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-modebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-mode {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  padding: 7px 8px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: #f4f8f5;
  border-radius: var(--radius);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.agent-mode:hover,
.agent-mode.active {
  color: var(--navy);
  background: var(--mint);
  border-color: rgba(25, 120, 88, 0.25);
}

.agent-mode strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-mode small {
  display: none;
}

.agent-modebar {
  display: none !important;
}

.agent-prompt-toggle {
  color: var(--emerald);
  background: var(--mint);
  border: 1px solid var(--line);
}

.agent-prompt-toggle.active {
  color: #ffffff;
  background: var(--emerald);
}

.agent-prompt-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-prompt-panel[hidden] {
  display: none;
}

.agent-prompt-panel label,
.agent-prompt-panel small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-prompt-panel textarea {
  width: 100%;
  min-height: 112px;
  padding: 10px;
  color: var(--ink);
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.agent-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.agent-prompt-actions button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.agent-prompt-actions button:first-child {
  color: #ffffff;
  background: var(--navy);
}

.agent-prompt-actions button:last-child {
  color: var(--ink-soft);
  background: #eef4ef;
}

.agent-menu {
  display: grid;
  gap: 6px;
}

.agent-sidebar .agent-menu,
.agent-sidebar .agent-hint {
  display: none !important;
}

.agent-menu a {
  padding: 10px 12px;
  color: var(--ink-soft);
  background: #f4f8f5;
  font-size: 14px;
  font-weight: 800;
}

.agent-menu a:hover {
  color: var(--emerald);
  background: var(--mint);
}

.agent-hint {
  margin-top: auto;
  padding: 13px;
  background: var(--mint);
  border: 1px solid var(--line);
}

.agent-hint strong {
  color: var(--navy);
}

.agent-hint p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.agent-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: calc(100vh - 77px);
  padding: 24px clamp(20px, 4vw, 64px);
}

.agent-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
}

.agent-topbar h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.agent-topbar p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.agent-topbar > span {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--emerald);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.agent-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 0;
}

.agent-welcome {
  width: min(780px, 100%);
  margin: auto;
  text-align: center;
}

.agent-welcome h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
}

.agent-welcome p {
  margin: 16px auto 0;
  max-width: 660px;
  color: var(--muted);
  line-height: 1.65;
}

.agent-welcome-media,
.agent-welcome img[src*="ai-agent-preview"] {
  display: none !important;
}

.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.agent-suggestions button {
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #ffffff;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.agent-message {
  display: flex;
}

.agent-message > div {
  max-width: min(760px, 82%);
  padding: 16px 18px;
  border-radius: var(--radius);
  line-height: 1.62;
  white-space: normal;
  box-shadow: var(--shadow-soft);
}

.agent-message.user {
  justify-content: flex-end;
}

.agent-message.user > div {
  color: #ffffff;
  background: var(--emerald);
}

.agent-message.assistant > div {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.agent-message.loading > div {
  color: var(--muted);
}

.agent-thinking {
  min-width: min(420px, 82vw);
}

.agent-thinking strong {
  display: block;
  color: var(--navy);
}

.agent-thinking p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.agent-thinking small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.agent-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  background: #e7f0ea;
  border-radius: 999px;
}

.agent-progress span {
  display: block;
  width: 6%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.agent-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.agent-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--emerald);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.agent-composer {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: end;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 70px rgba(16, 32, 48, 0.12);
}

.agent-file input {
  display: none;
}

.agent-file span,
.agent-composer button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.agent-file span {
  color: var(--emerald);
  background: var(--mint);
}

.agent-composer textarea {
  min-height: 46px;
  max-height: 180px;
  padding: 12px 4px;
  border: 0;
  outline: none;
  resize: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.agent-composer button {
  border: 0;
  color: #ffffff;
  background: var(--navy);
  font-size: 24px;
}

.agent-file-name {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.agent-file-name.error {
  color: #b42318;
}

@media (max-width: 920px) {
  .agent-shell {
    grid-template-columns: 1fr;
  }

  .agent-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .agent-hint {
    margin-top: 0;
  }

  .agent-chat {
    height: auto;
    min-height: 78vh;
  }
}

@media (max-width: 640px) {
  .agent-chat {
    padding: 20px;
  }

  .agent-topbar {
    display: grid;
  }

  .agent-menu {
    grid-template-columns: 1fr;
  }

  .agent-modebar {
    grid-template-columns: 1fr;
  }

  .agent-message > div {
    max-width: 92%;
  }

  .agent-composer {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .agent-file span,
  .agent-composer button {
    width: 42px;
    height: 42px;
  }
}
