@font-face {
  font-family: Golos;
  src: url("assets/interface-latin-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("assets/interface-cyrillic-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("assets/editorial-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #faf9f5;
  --white: #fffefa;
  --ink: #20251f;
  --muted: #5c6358;
  --green: #275641;
  --deep: #1e3a2e;
  --line: #d9ddd3;
  --wash: #edf1e7;
  --marker: #dbeaa5;
  --gutter: clamp(16px, 4.6vw, 74px);
  --serif: "DM Serif Text", Georgia, serif;
  font: 16px/1.55 Golos, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #578561; outline-offset: 4px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1120px); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 10px; left: 10px; padding: 10px; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 73px;
  border-bottom: 1px solid var(--line);
}
.brand { width: fit-content; display: inline-flex; gap: 7px; align-items: center; font-size: 24px; font-weight: 700; letter-spacing: -.065em; white-space: nowrap; }
.brand-mark { display: block; flex: none; width: 27px; height: 27px; }
.mast nav { display: flex; gap: clamp(18px, 3vw, 40px); color: var(--muted); font-size: 13px; }
.mast nav a:hover, .footer > a:last-child:hover { text-decoration: underline; text-underline-offset: 4px; }
.mast-book {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.mast-book span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7ecdd;
  font-size: 14px;
}
.mast-book:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.mast-book:is(:hover,:focus-visible) span { color: var(--white); background: var(--green); }

.cover { position: relative; isolation: isolate; padding-block: clamp(35px, 5vw, 78px) clamp(55px, 7.6vw, 112px); }
.cover::before, .cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(var(--grid-line) 1px, transparent 1px) center top / 28px 28px,
              linear-gradient(90deg,var(--grid-line) 1px, transparent 1px) center top / 28px 28px;
  pointer-events: none;
}
.cover::before {
  --grid-line: #718e6c43;
  mask-image: radial-gradient(ellipse 79% 49% at 50% 67%, #000 42%, transparent 100%);
}
.cover::after { display: none; }
@media (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cover::after {
    --grid-line: #27564194;
    display: block;
    opacity: 0;
    mask-image: radial-gradient(circle 166px at var(--grid-x, 50%) var(--grid-y, 65%), #000 9%, #000b 40%, transparent 100%);
    transition: opacity .24s ease-out;
  }
  .cover[data-grid-active]::after { opacity: 1; }
}
.cover-copy { text-align: center; margin-bottom: clamp(21px, 3.4vw, 47px); }
.kicker { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.cover .kicker, .section-intro .kicker { color: var(--green); }
.cover h1 {
  max-width: 1060px;
  margin: 14px auto 17px;
  font-size: clamp(42px, 5.45vw, 80px);
  font-weight: 570;
  letter-spacing: -.075em;
  line-height: .99;
  text-wrap: balance;
}
.cover h1 em { display: block; font-style: normal; color: var(--green); }
.lede { color: var(--muted); font-size: clamp(15px, 1.27vw, 18px); line-height: 1.5; }

.practice {
  max-width: 990px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid #bdc8b9;
  box-shadow: 0 15px 45px #2b431713;
  scroll-margin-top: 20px;
}
.scene-picker {
  display: flex;
  align-items: stretch;
  min-height: 49px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  background: #f3f5ed;
}
.scene-picker button {
  position: relative;
  min-height: 47px;
  padding: 8px clamp(8px, 2vw, 21px);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.scene-picker button[aria-pressed="true"] { color: var(--green); background: #e8eee3; }
.scene-picker button[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--green); }
.scene-picker button:hover { color: var(--green); background: #e8eee3; }
.scene-picker button:focus-visible { z-index: 1; outline-offset: -4px; }
.practice-format { align-self: center; margin-left: auto; padding-inline: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.practice-format span { margin-left: 5px; color: var(--green); }
.scene { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); }
.scene-script { min-width: 0; min-height: 295px; padding: clamp(17px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.scene-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#scene-progress { font-size: 12px; color: var(--muted); }
.listen { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 650; }
.listen:hover #listen-label { text-decoration: underline; text-underline-offset: 3px; }
.audio-icon { display: flex; justify-content: center; align-items: center; gap: 2px; width: 29px; height: 29px; border-radius: 50%; color: var(--white); background: var(--green); }
.audio-icon i { width: 2px; height: 7px; background: currentColor; }
.audio-icon i:nth-child(2) { height: 13px; }
.scene-copy h3 { max-width: 25ch; font-size: clamp(23px, 3.2vw, 44px); line-height: 1.08; font-weight: 570; letter-spacing: -.055em; }
.scene-copy p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.scene-copy[data-hint] p { color: #654523; }
.scene-history { margin: 0; padding: 0 0 0 12px; list-style: none; border-left: 2px solid #b8cda9; }
.scene-history li { display: flex; flex-direction: column; gap: 2px; padding-block: 5px; font-size: 13px; }
.scene-history span { color: var(--muted); }
.scene-history strong { color: var(--green); font-weight: 600; }
.choices { display: grid; margin-top: auto; }
.choices button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 8px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  font-weight: 570;
}
.choices button[lang="en"]:first-child { border-top: 1px solid var(--line); }
.choices button[lang="en"]::before { content: ""; flex: 0 0 11px; height: 11px; border: 1px solid #698774; border-radius: 50%; }
.choices button[lang="en"]:not([data-incorrect]):is(:hover,:focus-visible)::before { background: var(--green); box-shadow: inset 0 0 0 2px var(--wash); }
.choices button:hover { background: var(--wash); }
.choices button[data-incorrect] { border-color: #b99174; background: #f9eee4; color: #754b36; text-decoration: line-through; }
.choices button[data-incorrect]::before { border-color: #754b36; background: #754b36; box-shadow: inset 0 0 0 2px #f9eee4; }
.choices .answer-book { justify-content: space-between; padding-inline: 13px; color: var(--white); background: var(--green); border-color: var(--green); }
.choices .answer-book:hover { background: var(--deep); }
.choices .answer-book::after { content: "↗"; }
.choices .answer-replay { justify-self: start; padding-inline: 0; border: 0; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.choices .answer-replay:hover { background: transparent; }
.scene-image { position: relative; overflow: hidden; min-height: 290px; background: #727b61; border-left: 1px solid var(--line); }
.scene-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 48% 44%; }
.scene-image figcaption { position: absolute; bottom: 13px; left: 13px; padding: 6px 9px; background: var(--white); font-size: 11px; }

.study-pages {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 82% 92%, #c8d8bd 0%, transparent 67%),
    linear-gradient(153deg, var(--paper) 5%, #f1f1e5 40%, #e2e9da 100%);
}
.study-pages::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 110% -15%, transparent 0 37px, #52745639 37px 38px, transparent 38px 53px);
  mask-image: radial-gradient(ellipse at 84% 62%, #000 8%, #0009 51%, transparent 78%);
  pointer-events: none;
}
.method { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: clamp(25px, 8vw, 110px); padding-block: clamp(50px, 7.3vw, 110px); border-top: 1px solid var(--line); }
.section-intro h2, .offer h2 { margin-block: 10px 16px; font-size: clamp(35px, 4.5vw, 66px); font-weight: 570; line-height: 1.02; letter-spacing: -.067em; text-wrap: balance; }
.section-intro > p:last-child { max-width: 43ch; color: var(--muted); }
.lesson-note {
  position: relative;
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid #adbba3;
  background: repeating-linear-gradient(#f8f9ef 0 27px, #dae4d2 27px 28px);
  box-shadow: 7px 7px 0 -1px #e2eadb, 7px 7px 0 #b3c0a9, 14px 14px 26px #2b473619;
}
.lesson-note figcaption, .lesson-note > span { color: var(--muted); font-size: 13px; }
.lesson-note p { margin-block: 11px 15px; font: italic clamp(38px, 5vw, 65px)/.97 var(--serif); letter-spacing: -.055em; }
.lesson-note del { position: relative; display: inline-block; color: #64685d; text-decoration: none; }
.lesson-note del::after {
  content: "";
  position: absolute;
  inset: 54% -2px auto;
  height: 2px;
  background: #8b5b42;
  transform-origin: left;
  rotate: -2deg;
}
.lesson-note ins { display: inline-block; color: var(--green); text-decoration: none; background: linear-gradient(transparent 60%, var(--marker) 60% 88%, transparent 88%); }

.team { border-top: 1px solid #59705842; padding-block: clamp(42px, 6vw, 88px); }
.team .section-intro h2 { margin: 0 0 clamp(22px, 3vw, 38px); }
.team-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 35px);
  list-style: none;
}
.team-member h3 { margin-top: 13px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.042em; }
.team-member p { max-width: 33ch; margin-top: 5px; color: var(--muted); font-size: 14px; }
.team-portrait {
  position: relative;
  aspect-ratio: 1.85;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 36%, #fff9 0%, transparent 68%),
    repeating-linear-gradient(0deg, transparent 0 22px, #27564123 22px 23px),
    var(--portrait-paper);
  border: 1px solid #27564131;
}
.team-portrait::before, .team-portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--portrait-ink);
}
.team-portrait::before {
  bottom: 45.5%;
  width: 24.3%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.team-portrait::after {
  bottom: -28%;
  width: 54%;
  height: 70%;
  border-radius: 52% 52% 40% 40%;
}
.portrait-teacher { --portrait-paper: #dbe5d6; --portrait-ink: #315841; --head-entry: -55%; }
.portrait-method { --portrait-paper: #eef0d8; --portrait-ink: #657444; --head-entry: 0%; }
.portrait-support { --portrait-paper: #e4e9e1; --portrait-ink: #466a61; --head-entry: 55%; }

.lesson {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #142c21;
  color: var(--paper);
}
.lesson-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 23%;
  background: #294a36 url("assets/study-paper.webp") 58% 50% / cover no-repeat;
  pointer-events: none;
}
.lesson::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #12281ee6 0%, transparent 45%),
    linear-gradient(90deg, #142c21 23%, #142c21ee 35%, #142c2180 68%, #142c2155);
  pointer-events: none;
}
.offer { display: grid; grid-template-columns: 1.65fr 1fr; align-items: end; gap: clamp(20px, 6vw, 90px); padding-block: clamp(52px, 8vw, 118px); }
.offer h2 { max-width: 13ch; text-wrap: initial; }
.offer .kicker { color: var(--marker); }
.offer > div:first-child p:last-child { color: #dce4d6; max-width: 48ch; }
.offer-action { justify-self: end; padding-bottom: 3px; }
.offer-action p { margin-top: 11px; color: #dce4d6; font-size: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
}
.button span { font-size: 18px; line-height: 1; }
.primary { color: var(--white); background: var(--green); }
.primary:hover { background: var(--deep); }
.offer .primary {
  min-width: min(100%, 220px);
  min-height: 55px;
  padding: 0 0 0 16px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--marker);
  color: var(--deep);
}
.offer .primary span { display: grid; place-items: center; align-self: stretch; flex: 0 0 53px; border-left: 1px solid #24413236; background: #254a2c10; }
.offer .primary:hover { background: #edf5ce; }

.questions {
  background:
    radial-gradient(ellipse at 99% 0%, #dce9d0 0%, transparent 57%),
    linear-gradient(#eaf0e4, var(--paper) 94%);
}
.questions-inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; padding-block: clamp(42px, 6vw, 85px); }
.questions h2 { font-size: clamp(28px, 3vw, 45px); line-height: 1.09; letter-spacing: -.056em; font-weight: 570; }
.questions details { border-top: 1px solid #51745448; }
.questions details:last-child { border-bottom: 1px solid #51745448; }
.questions summary { cursor: pointer; font-weight: 600; padding-block: 12px; }
.questions summary::marker { color: var(--green); }
.questions details p { max-width: 56ch; padding-bottom: 15px; color: var(--muted); font-size: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; padding-block: 19px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 19px; }
.footer .brand-mark { width: 22px; height: 22px; }
.footer p, .footer > a:last-child { font-size: 12px; color: var(--muted); }

dialog { width: min(450px, calc(100% - 32px)); max-height: calc(100% - 30px); padding: clamp(22px, 5vw, 36px); border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #1e3025bd; }
dialog h2 { padding-right: 20px; font-size: clamp(29px, 6vw, 40px); line-height: 1.04; letter-spacing: -.06em; font-weight: 600; }
.close { position: absolute; right: 10px; top: 7px; background: transparent; border: 0; width: 42px; height: 42px; font-size: 23px; }
#booking-form { display: grid; gap: 7px; }
.booking-note { color: var(--muted); font-size: 13px; margin-block: 7px; }
dialog label { font-weight: 600; font-size: 13px; margin-top: 7px; }
dialog select, dialog input { min-width: 0; width: 100%; padding: 8px 10px; min-height: 44px; border: 1px solid #8d9c8b; border-radius: 0; color: var(--ink); background: var(--white); }
dialog .button { margin-top: 13px; justify-self: start; }
#booking-summary { margin-top: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .cover-copy { animation: enter .55s ease-out both; }
  .practice { animation: enter .65s .07s cubic-bezier(.15,.7,.2,1) both; }
  .fresh-line, .questions details[open] p { animation: enter .33s ease-out both; }
  .fresh-scene { animation: frame-in .48s ease-out both; }
  .listen[data-playing] .audio-icon i { animation: speak .48s infinite alternate; }
  .listen[data-playing] .audio-icon i:nth-child(2) { animation-delay: -.2s; }
  .listen[data-playing] .audio-icon i:nth-child(3) { animation-delay: -.3s; }

  .lesson-note[data-scroll="waiting"] del::after { scale: 0 1; }
  .lesson-note[data-scroll="waiting"] ins { clip-path: inset(0 100% 0 0); }
  .lesson-note[data-scroll="shown"] del::after { animation: strike .35s .08s ease-out both; }
  .lesson-note[data-scroll="shown"] ins { animation: wipe-in .52s .36s ease-out both; }

  .team-portrait[data-scroll="waiting"]::before,
  .team-portrait[data-scroll="waiting"]::after { visibility: hidden; }
  .team-portrait[data-scroll="shown"]::before { animation: place-head .65s calc(var(--portrait-delay, 0ms) + 95ms) cubic-bezier(.2,.8,.25,1) both; }
  .team-portrait[data-scroll="shown"]::after { animation: place-body .56s var(--portrait-delay, 0ms) cubic-bezier(.2,.8,.25,1) both; }

  .lesson-art[data-scroll="waiting"] { opacity: .72; scale: 1.035; }
  .lesson-art[data-scroll="shown"] { animation: paper-light 1.15s cubic-bezier(.2,.65,.2,1) both; }
  @media (min-width: 691px) {
    .portrait-method { --portrait-delay: 90ms; }
    .portrait-support { --portrait-delay: 180ms; }
  }

  @keyframes enter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
  @keyframes strike { from { scale: 0 1; } to { scale: 1 1; } }
  @keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes paper-light { from { opacity: .72; scale: 1.035; } to { opacity: 1; scale: 1; } }
  @keyframes place-head {
    from { opacity: 0; transform: translate(calc(-50% + var(--head-entry)), -65%) scale(.72); }
    to { opacity: 1; transform: translateX(-50%); }
  }
  @keyframes place-body {
    from { transform: translate(-50%, 78%); }
    to { transform: translateX(-50%); }
  }
  @keyframes frame-in { from { opacity: .5; scale: 1.06; } to { opacity: 1; scale: 1; } }
  @keyframes speak { to { scale: 1 .38; } }
}
@media (max-width: 690px) {
  .mast { grid-template-columns: minmax(0, 1fr) auto; min-height: 62px; gap: 8px; }
  .mast nav { display: none; }
  .mast-book { gap: 6px; font-size: 12px; }
  .cover { padding-top: 32px; }
  .cover-copy { margin-bottom: 23px; }
  .cover h1 { font-size: clamp(34px, 8.7vw, 57px); margin-block: 12px; }
  .desktop-break { display: none; }
  .scene { grid-template-columns: 1fr; }
  .scene-picker { padding-inline: 0; }
  .scene-picker button { min-height: 43px; font-size: 12px; flex: 1; }
  .practice-format { display: none; }
  .scene-image { min-height: 0; aspect-ratio: 2.05; border-left: 0; border-top: 1px solid var(--line); }
  .scene-script { min-height: 0; gap: 12px; }
  .scene-copy h3 { font-size: clamp(23px, 6.3vw, 36px); }
  .scene-image figcaption { bottom: 8px; left: 8px; }
  .method, .offer, .questions-inner { grid-template-columns: 1fr; gap: 23px; }
  .offer-action { justify-self: start; }
  .lesson-art { inset: 0; background-position: 63% center; }
  .lesson::after { background: linear-gradient(95deg, #142c21f5 0%, #142c21c2 55%, #142c2159), linear-gradient(0deg, #142c21d6, transparent 58%); }
  .team-grid { grid-template-columns: 1fr; gap: 15px; }
  .team-member { display: grid; grid-template-columns: minmax(75px, 28%) 1fr; column-gap: 13px; align-items: start; }
  .team-portrait { grid-row: 1 / 3; aspect-ratio: 1; }
  .team-member h3 { margin-top: 0; }
  .team-member p { font-size: 13px; }
}
@media (max-width: 420px) { .footer p { order: 3; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
