:root {
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --ink: #1a2422;
  --muted: #51605c;
  --line: #e4ddd0;
  --brand: #134e48;
  --brand-deep: #0e3b36;
  --gold: #8a6420;
  --gold-soft: #f3e6c4;
  --soon: #6f6a62;
  --shadow: 0 18px 40px rgba(19, 40, 36, 0.08);
  --sans: "Noto Sans", "Segoe UI", sans-serif;
  --serif: "Literata", "Palatino Linotype", Palatino, Georgia, serif;
  --header: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: #e7d7a8;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(16, 32, 30, 0.45);
}

.nav-backdrop[hidden] {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header.is-stuck {
  border-bottom-color: rgba(19, 78, 72, 0.1);
  box-shadow: 0 8px 24px rgba(19, 40, 36, 0.05);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
}

.logo img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.logo-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo-tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 2.75rem 0 4.25rem;
  background:
    radial-gradient(820px 380px at 92% -10%, rgba(226, 177, 90, 0.28), transparent 60%),
    radial-gradient(640px 360px at -10% 90%, rgba(19, 78, 72, 0.1), transparent 55%),
    var(--bg);
}

.hero-grid,
.about-grid,
.contact-grid,
.why-grid,
.course-grid,
.steps,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-copy,
.section-head,
.why-card,
.course,
.form-card,
.teacher-body {
  display: grid;
  align-content: start;
}

.hero-copy,
.section-head {
  gap: 1rem;
  justify-items: start;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.live-title {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  max-width: 12em;
  font-size: clamp(2.15rem, 4.7vw, 4.35rem);
  line-height: 1.04;
}

h1 span {
  color: var(--brand);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3,
.live-title {
  font-size: 1.45rem;
}

.lede,
.hero-note,
.soon-note,
.field-hint,
.form-status {
  color: var(--muted);
}

.hero-note,
.soon-note,
.field-hint,
.form-status {
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn,
.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

a.btn-primary:link,
a.btn-primary:visited,
.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

a.btn-ghost:link,
a.btn-ghost:visited,
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #cfc6b6;
}

.btn-ghost:hover {
  background: rgba(255, 253, 248, 0.7);
}

a.btn-wa:link,
a.btn-wa:visited,
.btn-wa {
  background: #1f8a4c;
  color: #fff;
}

.btn-wa:hover {
  background: #187241;
}

.btn-disabled {
  background: #e3dfd6;
  color: var(--soon);
  cursor: not-allowed;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.live-card,
.why-card,
.course,
.teacher,
.form-card,
.wa-card {
  border: 1px solid var(--line);
  background: var(--paper);
}

.live-card,
.form-card,
.teacher {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.live-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
}

.live-kicker,
.wa-label,
.footer-label,
.role {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #1f8a4c;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1f8a4c;
  box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(31, 138, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); }
}

.meta-list {
  display: grid;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.meta-list div + div {
  margin-top: 0.75rem;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 650;
}

.meta-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.section {
  padding: 4.5rem 0;
}

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

.why-card,
.course {
  gap: 0.8rem;
  padding: 1.25rem;
  border-radius: 18px;
}

.why-card p,
.course p {
  color: var(--muted);
}

.icon-bubble,
.course-icon,
.wa-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand);
  background: #e7f2f0;
}

.icon-bubble,
.wa-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
}

.about-grid {
  align-items: end;
}

blockquote {
  margin: 0;
  padding: 1.5rem;
  border-left: 4px solid #e2b15a;
  border-radius: 0 18px 18px 0;
  background: var(--gold-soft);
}

blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.35;
}

.steps {
  list-style: none;
  counter-reset: none;
}

.steps li {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.2rem;
  border-top: 2px solid var(--brand);
  background: transparent;
}

.steps span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.steps p {
  color: var(--muted);
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.course-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.course {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
}

.course p {
  flex: 1;
}

.course .btn,
.course .btn-disabled {
  align-self: flex-start;
  margin-top: auto;
}

.course.is-open {
  background: linear-gradient(180deg, #f3faf8 0%, #fffdf8 100%);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.course.is-disabled {
  background: #efeee9;
  border-color: #e3e0d8;
  cursor: not-allowed;
}

.course.is-disabled h3,
.course.is-disabled p,
.course.is-disabled .course-icon {
  color: var(--soon);
}

.course.is-disabled .course-icon {
  background: #e4e1da;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-open {
  background: var(--brand);
  color: #fff;
}

.badge-soon {
  background: #e4e0d8;
  color: #5e5952;
}

.teacher {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 860px;
  padding: 1.4rem;
}

.avatar {
  width: 168px;
  height: 168px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.teacher-body {
  gap: 0.9rem;
}

.teacher-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.role {
  color: var(--gold);
}

.score {
  display: grid;
  min-width: 7.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  background: var(--gold-soft);
  text-align: center;
}

.score strong {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.score span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.facts {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.facts li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: #e5f2ef;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.contact {
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(226, 177, 90, 0.22), transparent 60%),
    #efeae1;
}

.wa-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  width: 100%;
  padding: 1rem;
  border-radius: 18px;
}

.wa-label {
  color: #1f8a4c;
}

.wa-number {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.wa-card p:last-child {
  color: var(--muted);
}

.form-card {
  gap: 0.85rem;
  padding: 1.3rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid #d9d3c6;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.field input:focus-visible,
.field select:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-footer {
  padding: 2.5rem 0 1.25rem;
  background: #102622;
  color: #e7efe9;
}

.site-footer .logo-name {
  color: #f7f3ea;
}

.site-footer .logo-tag,
.site-footer .footer-links p,
.footer-bottom {
  color: #c5d4ce;
}

.footer-label {
  margin-bottom: 0.8rem;
  color: #f3e6c4;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: #f3e6c4;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 981px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }

  .about-grid {
    align-items: end;
  }

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-bar {
    position: relative;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 18px 50px rgba(19, 40, 36, 0.14);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

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

  .nav a {
    padding: 0.9rem 0.95rem;
    border-radius: 12px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a.is-active {
    background: #e7f2f0;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 1.6rem 0 2.8rem;
  }

  .teacher,
  .teacher-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .teacher {
    justify-items: center;
  }

  .teacher-body,
  .teacher-head {
    width: 100%;
  }

  .score {
    justify-self: start;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 380px) {
  .logo-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
