:root {
  --blue: #075e91;
  --blue-strong: #004c78;
  --ink: #20252d;
  --muted: #667085;
  --line: #d9e4ea;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --mint: #2ec9a6;
  --mint-soft: #dcfbf4;
  --yellow: #ffc857;
  --yellow-soft: #fff4d7;
  --coral: #ff6b5f;
  --shadow: 0 18px 45px rgba(13, 48, 70, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #f8fbfd;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(248, 251, 253, 0.9)),
    url("assets/english-learning-pattern.svg");
  background-size: auto, 840px 473px;
  background-repeat: no-repeat, repeat;
  background-position: top left, center top;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  width: min(calc(100% - 28px), var(--max));
  height: 72px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(217, 228, 234, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 35px rgba(12, 43, 64, 0.09);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center;
}

.brand span {
  white-space: nowrap;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 42px rgba(12, 43, 64, 0.13);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: #314252;
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--blue);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: white;
  transition: transform 180ms ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 132px 24px 76px;
  background-color: #f6fbfe;
  background-image:
    linear-gradient(rgba(7, 94, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 94, 145, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -160px;
  width: 48vw;
  height: 360px;
  background: var(--yellow-soft);
  transform: rotate(-8deg);
  border: 1px solid rgba(255, 200, 87, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: #394957;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

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

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

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(7, 94, 145, 0.24);
}

.button.primary:hover {
  background: var(--blue-strong);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
}

.hero-stats div {
  width: 150px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(7, 94, 145, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats dt {
  margin: 0;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-card,
.scene-step,
.scene-line {
  position: absolute;
  display: block;
}

.scene-card {
  min-width: 122px;
  height: 56px;
  padding: 14px 20px;
  border: 1px solid rgba(7, 94, 145, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-weight: 950;
  text-align: center;
  box-shadow: var(--shadow);
  animation: float-card 6s ease-in-out infinite;
}

.card-a {
  top: 170px;
  right: 14vw;
}

.card-b {
  top: 340px;
  right: 9vw;
  color: var(--ink);
  animation-delay: -1s;
}

.card-c {
  bottom: 160px;
  left: 11vw;
  color: #0f7f70;
  animation-delay: -2s;
}

.card-d {
  bottom: 250px;
  right: 23vw;
  color: #9b6610;
  animation-delay: -3s;
}

.scene-step {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: 950;
  background: var(--blue);
  box-shadow: 0 18px 35px rgba(7, 94, 145, 0.22);
}

.step-a {
  top: 240px;
  left: 54vw;
}

.step-b {
  bottom: 210px;
  left: 49vw;
  background: var(--mint);
}

.step-c {
  top: 470px;
  right: 30vw;
  background: var(--coral);
}

.scene-line {
  width: 240px;
  height: 18px;
  border-top: 4px solid rgba(7, 94, 145, 0.25);
  transform: rotate(-18deg);
}

.line-a {
  top: 305px;
  left: 48vw;
}

.line-b {
  bottom: 240px;
  right: 27vw;
  transform: rotate(24deg);
  border-color: rgba(46, 201, 166, 0.34);
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.section {
  padding: 96px 24px;
}

.section-head,
.age-grid,
.calm-layout,
.program-row,
.quiz-panel,
.trial,
.flow-steps,
.teacher-grid,
.progress,
.content-grid,
.review-card,
.faq-list,
.contacts-layout {
  width: min(100%, var(--max));
  margin: 0 auto;
}

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

.section h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.audience,
.programs,
.quiz-section,
.trial,
.lesson-flow,
.founder,
.progress,
.reviews,
.faq,
.contacts {
  background: transparent;
}

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

.age-card,
.program-card,
.teacher-card,
.content-card,
.flow-step,
.progress-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(18, 50, 70, 0.06);
}

.age-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.age-card:nth-child(2) {
  background: var(--mint-soft);
}

.age-card:nth-child(3) {
  background: var(--yellow-soft);
}

.age-card span,
.program-top span,
.content-card span,
.progress-item span,
.teacher-card span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  color: #53687a;
  background: rgba(7, 94, 145, 0.07);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.age-card h3,
.program-card h3,
.content-card h3,
.flow-step h3,
.teacher-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.age-card p,
.program-card p,
.content-card p,
.flow-step p,
.teacher-card p,
.progress-item p {
  margin: 0;
  color: var(--muted);
}

.calm-band {
  background: transparent;
  color: var(--ink);
}

.calm-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.calm-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.calm-band .eyebrow {
  color: var(--blue);
}

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

.principles div {
  min-height: 142px;
  padding: 22px;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(18, 50, 70, 0.06);
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  font-size: 22px;
}

.principles span {
  margin-top: 10px;
  color: var(--muted);
}

.programs {
  color: var(--ink);
}

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

.program-card {
  min-height: 300px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.program-top {
  min-height: 72px;
}

.program-top strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.05;
}

.program-card p {
  margin-top: 18px;
}

.program-card a,
.content-card a,
.blog-card a {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0 12px;
  border: 1px solid rgba(7, 94, 145, 0.22);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(7, 94, 145, 0.07);
  font-weight: 950;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.program-card a::after,
.content-card a::after,
.blog-card a::after {
  content: "->";
  font-weight: 950;
}

.program-card a:hover,
.content-card a:hover,
.blog-card a:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.program-card a {
  margin-top: auto;
}

.quiz-section {
  color: var(--ink);
}

.quiz-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfd;
  box-shadow: var(--shadow);
}

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

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

.quiz-options button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
  transition: background 160ms ease, border 160ms ease, color 160ms ease;
}

.quiz-options button.is-selected,
.quiz-options button:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.quiz-result {
  grid-column: 2;
  min-height: 174px;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  color: #5f4308;
  font-weight: 800;
}

.quiz-result strong,
.quiz-result span,
.quiz-result em {
  display: block;
}

.quiz-result strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.quiz-result span {
  color: #5f4308;
  font-weight: 700;
}

.quiz-result ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 20px;
}

.quiz-result li {
  color: #4e3b10;
  font-weight: 700;
}

.quiz-result em {
  padding-top: 12px;
  border-top: 1px solid rgba(95, 67, 8, 0.18);
  color: var(--blue);
  font-style: normal;
  font-weight: 950;
}

.trial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 44px;
  align-items: start;
}

.trial-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
}

.homepage-photo-placeholder {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.76)),
    var(--photo, none),
    linear-gradient(135deg, rgba(7, 94, 145, 0.14), rgba(46, 201, 166, 0.18));
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 32px rgba(18, 50, 70, 0.06);
}

.homepage-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 200, 87, 0.42) 0 15px, transparent 16px),
    radial-gradient(circle at 84% 24%, rgba(255, 107, 95, 0.24) 0 18px, transparent 19px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  opacity: 0.82;
}

.homepage-photo-placeholder strong,
.homepage-photo-placeholder span {
  position: relative;
  z-index: 1;
}

.homepage-photo-placeholder strong {
  width: fit-content;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: white;
  background: rgba(7, 94, 145, 0.9);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.homepage-photo-placeholder span {
  max-width: 560px;
  color: #29445a;
  font-weight: 850;
  line-height: 1.35;
}

.photo-trial {
  max-width: 650px;
  margin-top: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(46, 201, 166, 0.2), rgba(255, 200, 87, 0.28));
}

.photo-lesson {
  width: min(100%, var(--max));
  min-height: 220px;
  margin: -8px auto 24px;
}

.photo-progress {
  margin-top: 24px;
}

.photo-review {
  min-height: 170px;
  margin: 24px 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(255, 200, 87, 0.28), rgba(255, 107, 95, 0.16));
}

.homepage-photo-placeholder.has-photo {
  border-color: rgba(7, 94, 145, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(7, 94, 145, 0.1)),
    var(--photo, none);
  background-position: center;
  background-size: cover;
}

.homepage-photo-placeholder.has-photo::before {
  opacity: 0;
}

.homepage-photo-placeholder.has-photo strong,
.homepage-photo-placeholder.has-photo span {
  opacity: 0;
  transform: translateY(8px);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #3a4854;
  font-size: 14px;
  font-weight: 850;
}

.lead-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--ink);
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 94, 145, 0.12);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.is-success {
  color: #12775d;
  font-weight: 850;
}

.form-note.is-error {
  color: #b42318;
  font-weight: 850;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.lesson-flow {
  color: var(--ink);
}

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

.flow-step {
  min-height: 230px;
  padding: 24px;
}

.flow-step span {
  color: var(--coral);
  font-size: 28px;
  font-weight: 950;
}

.teachers {
  background: white;
}

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

.teacher-card {
  min-height: 300px;
  padding: 24px;
}

.teacher-photo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 30px;
  font-weight: 950;
}

.teacher-card:nth-child(2) .teacher-photo {
  background: var(--mint);
}

.teacher-card:nth-child(3) .teacher-photo {
  background: var(--coral);
}

.teacher-card span {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--soft);
}

.founder {
  color: var(--ink);
}

.founder-layout {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: center;
}

.founder-portrait {
  min-height: 460px;
  height: 520px;
  display: grid;
  padding: 12px;
  border: 1px solid rgba(7, 94, 145, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  object-position: center 22%;
}

.founder-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.founder-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.founder-points div {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.founder-points div:nth-child(2) {
  background: var(--mint-soft);
}

.founder-points div:nth-child(3) {
  background: var(--yellow-soft);
}

.founder-points strong,
.founder-points span {
  display: block;
}

.founder-points strong {
  color: var(--ink);
  font-size: 19px;
}

.founder-points span {
  margin-top: 8px;
  color: var(--muted);
}

.progress {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
}

.progress-timeline {
  display: grid;
  gap: 12px;
}

.progress-item {
  min-height: 112px;
  padding: 20px 22px;
}

.progress-item span {
  display: block;
  margin-bottom: 8px;
}

.materials {
  background: transparent;
  color: var(--ink);
}

.materials .eyebrow {
  color: var(--blue);
}

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

.content-card {
  min-height: 270px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.card-thumb {
  position: relative;
  min-height: 118px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.72)),
    var(--photo, none),
    linear-gradient(135deg, rgba(7, 94, 145, 0.16), rgba(46, 201, 166, 0.22));
  background-position: center;
  background-size: cover;
}

.card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 200, 87, 0.48) 0 12px, transparent 13px),
    radial-gradient(circle at 84% 20%, rgba(255, 107, 95, 0.28) 0 16px, transparent 17px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  opacity: 0.76;
}

.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb strong,
.card-thumb small {
  position: relative;
  z-index: 1;
}

.card-thumb strong {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: white;
  background: rgba(7, 94, 145, 0.88);
  font-size: 13px;
  font-weight: 950;
}

.card-thumb small {
  max-width: 190px;
  color: #254154;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.thumb-minigroup,
.thumb-junior {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(255, 200, 87, 0.34), rgba(46, 201, 166, 0.25));
}

.thumb-speaking,
.thumb-dialogue,
.thumb-teen {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(46, 201, 166, 0.28), rgba(7, 94, 145, 0.2));
}

.thumb-homework,
.thumb-materials,
.thumb-diagnostic,
.thumb-level {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(7, 94, 145, 0.16), rgba(255, 200, 87, 0.24));
}

.thumb-start,
.thumb-exam {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(255, 107, 95, 0.2), rgba(255, 200, 87, 0.28));
}

.card-thumb.has-photo {
  border-color: rgba(7, 94, 145, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(7, 94, 145, 0.16)),
    var(--photo, none);
  background-position: center;
  background-size: cover;
}

.card-thumb.has-photo::before {
  opacity: 0;
}

.card-thumb.has-photo strong,
.card-thumb.has-photo small {
  opacity: 0;
  transform: translateY(6px);
}

.content-card a {
  margin-top: 18px;
}

.featured-content-card {
  border-color: rgba(255, 200, 87, 0.8);
}

.content-card:nth-child(2) {
  background: var(--mint-soft);
}

.content-card:nth-child(3) {
  background: var(--yellow-soft);
}

.materials-link {
  width: min(100%, var(--max));
  margin: 24px auto 0;
}

.reviews {
  color: var(--ink);
}

.review-card {
  padding: 42px;
  border: 1px solid rgba(255, 200, 87, 0.4);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.review-card h2 {
  max-width: 900px;
}

.review-card p:not(.eyebrow) {
  max-width: 830px;
  color: var(--muted);
  font-size: 20px;
}

.review-card span {
  color: var(--blue);
  font-weight: 950;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 24px;
}

.faq-item.is-open button::after {
  content: "-";
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 18px 20px;
  color: var(--muted);
}

.faq-item.is-open p {
  display: block;
}

.contacts {
  color: var(--ink);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.contacts-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.map-card {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(18, 50, 70, 0.06);
}

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

.map-card iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.contact-panel-top {
  grid-column: 1;
}

.contact-panel-top {
  padding: 18px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.contact-panel-top span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-panel-top strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.08;
}

.contact-panel-top p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.phone-card,
.address-card,
.social-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 26px rgba(18, 50, 70, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.phone-card:hover,
.address-card:hover,
.social-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 94, 145, 0.28);
  box-shadow: 0 16px 34px rgba(18, 50, 70, 0.1);
}

.phone-card,
.address-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.phone-card {
  grid-column: 2;
}

.social-grid {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.address-card {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.phone-card span,
.address-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-card strong {
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.address-card strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.address-card small {
  color: var(--blue);
  font-weight: 950;
}

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

.social-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
}

.social-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social-card.telegram .social-icon {
  background: #2aabee;
}

.social-card.vk .social-icon {
  background: #0077ff;
}

.social-card strong,
.social-card small {
  display: block;
}

.social-card strong {
  color: var(--ink);
  font-size: 17px;
}

.social-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lead-form.compact {
  box-shadow: none;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer img {
  width: 120px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin: 0;
}

.developer-credit {
  display: grid;
  gap: 2px;
  min-height: 44px;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.developer-credit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer a {
  color: var(--blue);
  font-weight: 950;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 94, 145, 0.2);
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(7, 94, 145, 0.24);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.js-ready .back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

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

.back-to-top:hover {
  background: var(--blue-strong);
  box-shadow: 0 20px 40px rgba(7, 94, 145, 0.3);
  transform: translateY(-2px);
}

.blog-hero {
  padding: 140px 24px 70px;
  background: var(--soft);
}

.blog-hero-inner,
.article-hero-inner,
.article-body,
.article-nav {
  width: min(100%, 920px);
  margin: 0 auto;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.blog-hero p:not(.eyebrow),
.article-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.blog-list {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 44px 24px 96px;
}

.blog-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(18, 50, 70, 0.06);
}

.blog-card .card-thumb {
  width: 100%;
  min-height: 112px;
  margin: 0;
}

.blog-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 2px 2px 0;
}

.blog-card.pinned {
  border-color: rgba(255, 200, 87, 0.8);
  background: var(--yellow-soft);
}

.blog-card span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  color: #53687a;
  background: rgba(7, 94, 145, 0.07);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.article-meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.blog-card h2,
.blog-card h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
}

.blog-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.blog-card a {
  margin-top: 16px;
}

.article-hero {
  padding: 140px 24px 54px;
  background: #f8fbfd;
}

.article-body {
  padding: 34px 24px 76px;
}

.article-body h2 {
  margin: 42px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.article-body p,
.article-body li {
  color: #3f4d58;
  font-size: 19px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-photo {
  margin: 34px 0;
}

.photo-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border: 2px dashed rgba(7, 94, 145, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 94, 145, 0.08), rgba(46, 201, 166, 0.12)),
    var(--photo, none),
    #f8fbfd;
  background-position: center;
  background-size: cover;
  color: var(--blue);
  text-align: left;
  font-weight: 950;
  overflow: hidden;
}

.photo-slot strong {
  width: fit-content;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: white;
  background: rgba(7, 94, 145, 0.9);
  font-size: 13px;
  text-transform: uppercase;
}

.photo-slot span {
  max-width: 620px;
  color: #254154;
  line-height: 1.35;
}

.photo-slot.has-photo {
  border-style: solid;
  border-color: rgba(7, 94, 145, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(7, 94, 145, 0.08)),
    var(--photo, none);
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 38px rgba(18, 50, 70, 0.08);
}

.photo-slot.has-photo strong,
.photo-slot.has-photo span {
  opacity: 0;
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.article-cta {
  margin: 42px 0 0;
  padding: 28px;
  border: 1px solid rgba(7, 94, 145, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(248, 251, 253, 0.86)),
    url("assets/english-learning-pattern.svg");
  background-size: cover;
  background-position: center;
  color: var(--ink);
}

.article-cta h2 {
  margin-top: 0;
  color: var(--ink);
}

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

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px 78px;
}

.article-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 950;
  background: white;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1100px) {
  .age-grid,
  .program-row,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-card,
  .scene-step,
  .scene-line {
    opacity: 0.7;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 66px;
  }

  .brand,
  .brand img {
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    min-height: 50px;
    justify-content: center;
  }

  .hero {
    min-height: 700px;
    padding-top: 116px;
  }

  .hero h1 {
    max-width: 720px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .card-a,
  .card-b,
  .card-d,
  .step-a,
  .step-c,
  .line-a,
  .line-b {
    display: none;
  }

  .card-c {
    left: auto;
    right: 24px;
    bottom: 134px;
  }

  .step-b {
    left: auto;
    right: 50px;
    bottom: 220px;
  }

  .calm-layout,
  .founder-layout,
  .quiz-panel,
  .trial,
  .progress,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel > :not(.map-card),
  .map-card {
    grid-column: 1;
    grid-row: auto;
  }

  .quiz-result {
    grid-column: 1;
  }

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

  .founder-portrait {
    min-height: 360px;
    height: 430px;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    padding-left: 12px;
  }

  .hero {
    min-height: 680px;
    padding: 106px 16px 54px;
  }

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

  .hero-actions,
  .hero-stats {
    flex-direction: column;
  }

  .button,
  .hero-stats div {
    width: 100%;
  }

  .section {
    padding: 68px 16px;
  }

  .section h2 {
    font-size: 34px;
  }

  .age-grid,
  .program-row,
  .flow-steps,
  .principles,
  .founder-points,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-panel,
  .lead-form,
  .review-card {
    padding: 20px;
  }

  .age-card,
  .program-card,
  .flow-step,
  .teacher-card,
  .content-card {
    min-height: auto;
  }

  .founder-portrait {
    min-height: 300px;
    height: 360px;
  }

  .faq-item button {
    min-height: 72px;
    gap: 12px;
    font-size: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .blog-hero,
  .article-hero {
    padding: 108px 16px 48px;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: 42px;
  }

  .blog-list,
  .article-body,
  .article-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-card {
    padding: 20px;
  }

  .blog-card h2,
  .blog-card h3 {
    font-size: 24px;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .article-nav {
    flex-direction: column;
  }

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

  .phone-card strong {
    font-size: 24px;
  }

  .social-card {
    min-height: 96px;
  }
}
