/* LinguaOrientalis. Бумага, музейная живопись, три окна */

@font-face { font-family: "Theano Didot"; src: url(../fonts/didot.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "TT Ramillas"; src: url(../fonts/ramillas-i.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "TT Ramillas"; src: url(../fonts/ramillas-li.woff2) format("woff2"); font-style: italic; font-weight: 300; font-display: swap; }
@font-face { font-family: "TT Livret"; src: url(../fonts/livret.woff2) format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "TT Livret"; src: url(../fonts/livret-i.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url(../fonts/tilda-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url(../fonts/tilda-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url(../fonts/tilda-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Amiri LO"; src: url(../fonts/amiri.woff2?v=c16cb17e) format("woff2"); font-display: swap; }
@font-face { font-family: "WenKai LO"; src: url(../fonts/wenkai.woff2?v=de05c729) format("woff2"); font-display: swap; }

:root {
  --paper: #F2EADB;
  --paper-2: #EAE0CC;
  --paper-3: #E0D2B6;
  --card: #F8F2E6;
  --ink: #1F1A16;
  --ink-2: #4A4038;
  --ink-3: #7A6C5E;
  --line: rgba(31, 26, 22, .16);
  --gold: #B08D57;
  --gold-soft: rgba(176, 141, 87, .45);
  --coral: #C4584A;
  --wine: #6F1E2B;
  --wine-deep: #4A121C;
  --teal: #12625F;
  --saffron: #C8932E;
  --cinnabar: #A8261C;
  --jade: #4E7D62;
  --accent: var(--coral);

  --f-display: "Theano Didot", "Didot", "Bodoni 72", Georgia, serif;
  --f-italic: "TT Ramillas", "Didot", Georgia, serif;
  --f-text: "TT Livret", Georgia, "Times New Roman", serif;
  --f-ui: "Tilda Sans", "Helvetica Neue", Arial, sans-serif;
  --f-ar: "Amiri LO", "Amiri", "Geeza Pro", "Noto Naskh Arabic", serif;
  --f-cn: "WenKai LO", "Kaiti SC", "STKaiti", "KaiTi", serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
}

[data-lang="ar"] { --accent: var(--teal); }
[data-lang="cn"] { --accent: var(--cinnabar); }
.world--fr { --accent: var(--coral); } .world--ar { --accent: var(--teal); } .world--cn { --accent: var(--cinnabar); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url(../img/grain.svg);
  color: var(--ink);
  font: 400 18px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--coral); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.cn { font-family: var(--f-cn); }
em.it, .it { font-family: var(--f-italic); font-style: italic; }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --hov: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 500 16px/1 var(--f-ui); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  background: var(--bg); color: var(--fg);
  transition: color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hov); transform: translateY(102%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --hov: var(--ink); box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .32); }
.btn--ghost:hover { color: var(--paper); }
.btn--accent { --bg: var(--accent); --hov: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --hov: var(--accent); }
.btn--light:hover { color: var(--paper); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.link { font: 500 15px/1.2 var(--f-ui); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- шапка ---------- */
.nav {
  position: fixed; z-index: 60; top: 14px; left: 50%;
  width: min(var(--maxw), calc(100% - 28px)); height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 9px 0 24px; border-radius: 999px;
  background-color: rgba(244, 237, 225, .94);
  box-shadow: 0 0 0 1px rgba(176, 141, 87, .35), 0 12px 30px -18px rgba(40, 22, 10, .35);
  transform: translateX(-50%); transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -130%); }
/* наверху страницы шапка без плашки, плашка с обводкой появляется, когда страницу листают */
.nav { transition: transform .6s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease); }
.nav.is-top { background-color: rgba(244, 237, 225, 0); box-shadow: 0 0 0 1px rgba(176, 141, 87, 0), 0 12px 30px -18px rgba(40, 22, 10, 0); }
.brand { display: inline-flex; align-items: baseline; gap: .18em; font: 400 23px/1 var(--f-display); text-decoration: none; letter-spacing: .005em; }
.brand i { font-family: var(--f-italic); font-style: italic; color: var(--coral); font-size: 1.04em; transition: color .6s var(--ease); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font: 500 15px/1 var(--f-ui); }
.nav__links a { position: relative; text-decoration: none; padding: 8px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { display: none; }

/* ---------- сцена: первый экран и три мира ---------- */
.stage { position: relative; height: calc(var(--screens, 5) * 100lvh + 100lvh); }
.stage__sticky { position: sticky; top: 0; height: 100lvh; overflow: hidden; }
.world { position: absolute; inset: 0; visibility: hidden; contain: layout paint; }
.world.is-on { visibility: visible; }
.world__clip { position: absolute; inset: 0; clip-path: polygon(50% 50%, 50% 50%, 50% 50%); }
.world--fr .world__clip { clip-path: ellipse(11.75vw 30vh at 50% 53%); }
.world__media { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.world__reveal { position: absolute; inset: 0; }
.world__img { position: absolute; inset: -18px; will-change: transform; }
.world__img img { width: 100%; height: 100%; object-fit: cover; }
.world--fr .world__img img { object-position: 64% 46%; }
.world--ar .world__img img { object-position: 50% 58%; }
.world__img img.kb { animation: kb 16s var(--ease-io) infinite alternate; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
.pano { position: absolute; top: 0; left: 0; height: 100%; display: flex; will-change: transform; }
.pano img { height: 100%; width: auto; max-width: none; flex: none; }
.world__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(25, 16, 10, .34), rgba(25, 16, 10, 0) 46%); opacity: 0; transition: opacity .8s var(--ease); }
.world.is-active .world__veil { opacity: 1; }

/* золотая рама окна */
.frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.frame polygon { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.frame .frame__in { stroke-opacity: .55; }

/* первый экран: картина слева, крупный текст справа */
.hero { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero .pe { pointer-events: auto; }
.hero__copy { position: absolute; left: var(--copyL, 54%); right: var(--pad); top: var(--wcy, 50%); transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { margin: 0; font-size: var(--hfs, 84px); line-height: 1.04; font-weight: 400; }
.hero__l1 { display: block; font-family: var(--f-display); letter-spacing: -.015em; }
.hero__l2 { display: flex; align-items: center; gap: .2em; font-family: var(--f-italic); font-style: italic; color: var(--accent); transition: color .9s var(--ease); }
.fslot { position: relative; flex: none; width: .74em; height: .555em; border-radius: .05em; overflow: hidden; translate: 0 .05em; box-shadow: 0 0 0 1px rgba(31, 26, 22, .12), 0 .06em .18em rgba(40, 20, 8, .2); }
.flag { display: block; }
.fslot .flag { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.fslot .flag.is-up { transform: translateY(-105%); opacity: 0; }
.fslot .flag.is-down { transform: translateY(105%); opacity: 0; }
.slot { position: relative; display: inline-block; height: 1.25em; vertical-align: top; overflow: hidden; padding-right: .14em; margin: -.12em 0; }
.slot > span { display: block; padding-top: .12em; line-height: 1.04; transition: transform 1s var(--ease), opacity .7s var(--ease); white-space: nowrap; }
.slot > span + span { position: absolute; left: 0; top: 0; }
.slot > span.is-up { transform: translateY(-110%); opacity: 0; }
.slot > span.is-down { transform: translateY(110%); opacity: 0; }
.hero__lead { margin: 28px 0 0; max-width: 440px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.hero__cta { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero__tg { font-size: 15px; color: var(--ink-2); }
.switch { display: flex; gap: 10px; margin-top: 42px; flex-wrap: wrap; }
.switch button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 12px; border-radius: 999px; font: 500 15px/1 var(--f-ui); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .2); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s; }
.switch button:hover { box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .45); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.switch .flag { width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); flex: none; }
.switch button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.switch button[aria-pressed="true"] i { animation: fill var(--cycle, 5200ms) linear forwards; }
@keyframes fill { to { width: 100%; } }
.hero.short .hero__lead { display: none; }
.hero.no-switch .switch { display: none; }
.hz svg { display: block; }
.listen { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--f-ui); color: var(--ink-2); text-align: left; }
.listen__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .3); transition: background .3s, color .3s, box-shadow .3s; }
.listen__ico svg { width: 12px; height: 12px; margin-left: 2px; }
.listen:hover .listen__ico, .listen.is-playing .listen__ico { background: var(--accent); color: var(--paper); box-shadow: none; }
.listen.is-playing .listen__ico { animation: pulse 1s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* мир: текст прямо на картине, без карточки */
.world__veil { background: linear-gradient(90deg, rgba(16, 10, 6, .8) 0%, rgba(16, 10, 6, .52) 34%, rgba(16, 10, 6, 0) 64%), linear-gradient(0deg, rgba(16, 10, 6, .45), rgba(16, 10, 6, 0) 40%); }
.panel { position: absolute; z-index: 3; left: max(6vw, 32px); bottom: max(9vh, 64px); width: min(620px, 50vw); color: #F6EEDF; opacity: 0; visibility: hidden; }
.panel__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.panel__top .flag { width: 40px; height: 30px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 0, 0, .3); }
.panel__greet { font-size: 34px; line-height: 1.1; color: #F6EEDF; }
.panel__greet.fr { font-family: var(--f-italic); font-style: italic; }
.panel__greet.ar { font-family: var(--f-ar); font-size: 38px; line-height: 1.2; }
.panel__greet.cnline .hz { display: block; height: 40px; color: #F6EEDF; }
.panel__greet.cnline svg { height: 100%; width: auto; overflow: visible; }
.panel .listen__ico { width: 36px; height: 36px; color: #F6EEDF; box-shadow: inset 0 0 0 1px rgba(246, 238, 223, .5); }
.panel .listen:hover .listen__ico, .panel .listen.is-playing .listen__ico { background: #F6EEDF; color: var(--ink); }
.panel__title { margin: 0; font: 400 clamp(60px, 7.4vw, 128px)/.98 var(--f-display); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.panel__text { margin: 14px 0 26px; max-width: 470px; font-size: 20px; line-height: 1.45; color: rgba(246, 238, 223, .86); }
.teachers { display: flex; gap: 16px; margin: 0 0 30px; padding: 0; list-style: none; }
.tch { display: grid; justify-items: center; gap: 8px; text-align: center; }
.tch__name { font: 500 14px/1.1 var(--f-ui); color: #F6EEDF; }
.tch:hover .fr-frame img, .tch:hover .ar-frame img, .tch:hover .cn-frame img { transform: scale(1.06); }
.btn--light { --bg: #F6EEDF; --fg: var(--ink); --hov: var(--accent); }
.btn--light:hover { color: #fff; }

/* рамки формы мира */
.fr-frame, .ar-frame, .cn-frame { position: relative; display: block; background: var(--gold); padding: 2px; }
.fr-frame img, .ar-frame img, .cn-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fr-frame { width: 70px; height: 92px; border-radius: 50%; }
.fr-frame > span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.ar-frame { width: 70px; height: 92px; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.ar-frame > span { display: block; width: 100%; height: 100%; overflow: hidden; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
/* у Китая рамка «тыква» в тех же пропорциях 3 к 4, что овал и арка, иначе фото в круге выходит мельче остальных */
.cn-frame { width: 70px; height: 92px; -webkit-mask: var(--gourd) center / 100% 100% no-repeat; mask: var(--gourd) center / 100% 100% no-repeat; }
.cn-frame > span { display: block; width: 100%; height: 100%; overflow: hidden; -webkit-mask: var(--gourd) center / 100% 100% no-repeat; mask: var(--gourd) center / 100% 100% no-repeat; }
/* портрет в тыкве чуть крупнее и поднят: лицо в верхнем круге, плечи в нижнем */
.mate2__ph.cn-frame img, .tdlg .cn-frame img, .mate .cn-frame img, .tch .cn-frame img { scale: 1.2; transform-origin: 50% 100%; }
:root { --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0 C 66 14 100 26 100 62 L100 140 L0 140 L0 62 C0 26 34 14 50 0Z'/%3E%3C/svg%3E"); }
:root { --gourd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 133' preserveAspectRatio='none'%3E%3Cpath d='M50 1C70 1 86 15 86 34C86 48 76 53 75 62C76 70 98 78 98 100C98 120 77 132 50 132C23 132 2 120 2 100C2 78 24 70 25 62C24 53 14 48 14 34C14 15 30 1 50 1Z'/%3E%3C/svg%3E"); }

.pan-hint { position: absolute; z-index: 3; right: max(6vw, 32px); bottom: calc(max(9vh, 64px) + 80px); display: flex; align-items: center; gap: 12px; font: 500 14px/1.2 var(--f-ui); color: #F6EEDF; opacity: 0; visibility: hidden; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.pan-hint svg { width: 26px; height: 12px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(-5px); } }

/* миры листаются вбок: страны сверху, стрелки по краям */
.stage__sticky { touch-action: pan-y pinch-zoom; }
.world { -webkit-user-select: none; user-select: none; }
.stage.is-slider .world.is-on { will-change: transform; }
@media (pointer: fine) { .stage.is-slider .stage__sticky { cursor: grab; } }
.stage.is-drag .stage__sticky, .stage.is-drag .stage__sticky * { cursor: grabbing !important; }
.world--cn .world__img { z-index: 1; transition: opacity .6s var(--ease); }
.world--cn .world__img img { object-fit: contain; }
.pano img + img { margin-left: -1px; }
.route { position: absolute; z-index: 7; left: 50%; top: 92px; translate: -50% 0; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(244, 237, 225, .95); box-shadow: 0 0 0 1px rgba(176, 141, 87, .35), 0 10px 30px rgba(16, 10, 6, .16); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.route.is-on { opacity: 1; visibility: visible; }
.route__thumb { position: absolute; z-index: 2; left: 0; top: 5px; width: 100px; height: 36px; overflow: hidden; border-radius: 999px; background: var(--ink); pointer-events: none; }
.route__ghost { position: absolute; left: 0; top: -5px; display: flex; align-items: center; gap: 4px; padding: 5px; }
.route button, .route__g { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 9px; border-radius: 999px; white-space: nowrap; font: 500 13px/1 var(--f-ui); }
.route button { position: relative; z-index: 1; color: var(--ink-3); cursor: pointer; }
.route__g { flex: none; color: var(--paper); }
.route .flag { width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
/* пара кнопок в правом нижнем углу, на уровне кнопки записи; на телефоне круги по краям */
.wnav { position: absolute; z-index: 7; right: max(6vw, 32px); bottom: max(9vh, 64px); display: flex; align-items: center; gap: 10px; }
.wnav__b { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 54px; border-radius: 999px; color: #F6EEDF; background: rgba(20, 13, 8, .34); box-shadow: inset 0 0 0 1px rgba(246, 238, 223, .55); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s, background .3s var(--ease), color .3s var(--ease); }
.wnav__b[hidden] { display: none; }
.wnav.is-on .wnav__b { opacity: 1; visibility: visible; }
.wnav__b:hover { background: #F6EEDF; color: var(--ink); }
.wnav__b:active { transform: scale(.97); }
.wnav__prev { width: 54px; }
.wnav__next { padding: 0 24px 0 28px; }
.wnav__lbl { font: italic 400 21px/1 var(--f-italic); white-space: nowrap; }
.wnav__b svg { width: 22px; height: 12px; flex: none; }
.wnav__next.is-hint svg { animation: nudgeR 1s var(--ease) 2; }
@keyframes nudgeR { 50% { transform: translateX(6px); } }
@media (max-width: 899px) {
  .route { top: 76px; }
  .route button, .route__g { gap: 6px; height: 32px; padding: 0 10px 0 7px; font-size: 12px; }
  .route__thumb { height: 32px; }
  .route .flag { width: 20px; height: 15px; }
  .wnav { display: contents; }
  .wnav__b { position: absolute; z-index: 7; top: 38%; translate: 0 -50%; width: 44px; height: 44px; padding: 0; }
  .wnav__prev { left: 10px; }
  .wnav__next { right: 10px; }
  .wnav__lbl { display: none; }
}

/* маршрут по мирам */

/* ---------- общие секции ---------- */
.sec { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.h2 { margin: 0; font: 400 clamp(44px, 6.6vw, 112px)/1 var(--f-display); letter-spacing: -.02em; }
.h2 em { font-family: var(--f-italic); font-style: italic; color: var(--accent); }
.lead { max-width: 560px; margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-rv].is-in { opacity: 1; transform: none; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .1em .16em; margin: -.08em -.1em -.16em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * .08s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* Дарья */
.founder__grid { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.cameo { position: relative; aspect-ratio: 3 / 4; max-width: 470px; justify-self: center; width: 100%; }
.cameo__ring { position: absolute; inset: -16px; border-radius: 50%; border: 1px solid var(--gold-soft); }
.cameo__ring + .cameo__ring { inset: -30px; border-color: rgba(176, 141, 87, .25); }
.cameo__img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--paper-3); box-shadow: 0 40px 70px -40px rgba(40, 18, 6, .55); }
.cameo__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.cameo.is-in .cameo__img img { transform: scale(1); }
.cameo__sign { position: absolute; right: -8%; bottom: 6%; font: italic 300 clamp(40px, 4.6vw, 64px)/1 var(--f-italic); color: var(--coral); rotate: -8deg; }
.founder .h2 { font-size: clamp(38px, 4.6vw, 66px); }
.founder__text { margin: 26px 0 0; max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 34px 0 36px; }
.stamp { width: 110px; height: 110px; flex: none; opacity: 0; transform: scale(1.5) rotate(var(--r, 0deg)); }
.stamp.is-in { animation: thump .5s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes thump { 0% { opacity: 0; transform: scale(1.5) rotate(var(--r)); } 60% { opacity: .95; transform: scale(.94) rotate(var(--r)); } 100% { opacity: .92; transform: scale(1) rotate(var(--r)); } }
.stamp text { font-family: var(--f-ui); }
.team { margin-top: clamp(70px, 9vw, 120px); padding-top: 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.team__title { margin: 0; font: 400 28px/1.15 var(--f-display); }
.team__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.mate { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left; }
.mate .fr-frame, .mate .ar-frame { width: 66px; height: 88px; }
.mate .cn-frame { width: 66px; height: 88px; }
.mate b { display: block; font: 500 16px/1.2 var(--f-ui); }
.mate span.l { display: block; font: italic 400 17px/1.3 var(--f-italic); color: var(--accent); }
.mate span.more { display: inline-block; margin-top: 4px; font: 500 13px/1 var(--f-ui); color: var(--ink-3); }
.mate:hover span.more { color: var(--ink); }

/* как начать */
.start { background: var(--paper-2); }
.start::before, .apply::before { content: ""; position: absolute; inset: 0; background: url(../img/grain.svg); opacity: .8; pointer-events: none; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); margin: 60px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 1px solid var(--ink); }
.steps li::before { counter-increment: s; content: counter(s); display: block; margin: 0 0 18px; font: italic 300 74px/0.9 var(--f-italic); color: var(--accent); }
.steps p { margin: 0; font-size: 19px; line-height: 1.5; }
.goals { position: relative; margin-top: clamp(70px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.goals__text { margin: 0; font: 400 clamp(28px, 3vw, 40px)/1.15 var(--f-display); }
.goals__text em { font-family: var(--f-italic); font-style: italic; color: var(--accent); }
.tags { position: relative; display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 0; padding: 0; list-style: none; min-height: 220px; align-content: center; }
.tag { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 26px 0 40px; background: var(--card); font: 500 19px/1 var(--f-ui); border-radius: 4px 14px 14px 4px; box-shadow: 0 0 0 1px rgba(176, 141, 87, .45), 0 12px 22px -14px rgba(40, 20, 8, .45); transform-origin: 12px 50%; }
.tag::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tag::after { content: ""; position: absolute; left: -16px; top: 50%; width: 30px; height: 1px; background: var(--gold); rotate: -24deg; transform-origin: right; }
.tag--fr { --accent: var(--coral); } .tag--ar { --accent: var(--teal); } .tag--cn { --accent: var(--cinnabar); }
.tag b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tag.sway { animation: sway 4.2s ease-in-out infinite; animation-delay: var(--sd, 0s); }
@keyframes sway { 0%, 100% { rotate: var(--rot, 0deg); } 50% { rotate: calc(var(--rot, 0deg) + 2.2deg); } }

/* абонементы */
.prices { text-align: center; }
.menu-card { position: relative; max-width: 820px; margin: 56px auto 0; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 70px) clamp(34px, 4vw, 54px); background: var(--card); box-shadow: 0 0 0 1px rgba(176, 141, 87, .45), 0 50px 90px -50px rgba(40, 18, 6, .55); text-align: left; }
.menu-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-soft); pointer-events: none; }
.menu-card::after { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(176, 141, 87, .22); pointer-events: none; }
.menu-card__orn { display: block; width: 74px; margin: -6px auto 18px; }
.menu-card__title { margin: 0 0 8px; text-align: center; font: italic 400 30px/1.1 var(--f-italic); color: var(--accent); }
.menu-card__sub { margin: 0 0 30px; text-align: center; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.mi { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 16px 0; }
.mi + .mi { border-top: 1px solid rgba(176, 141, 87, .25); }
.mi__name { font: 400 clamp(22px, 2.4vw, 28px)/1.1 var(--f-display); }
.mi__dots { align-self: end; margin-bottom: 7px; height: 2px; background: radial-gradient(circle, var(--ink-3) 1px, transparent 1.4px) 0 0 / 8px 2px repeat-x; opacity: .7; }
.mi__price { font: 400 clamp(22px, 2.4vw, 28px)/1.1 var(--f-display); white-space: nowrap; }
.mi__price small { font: italic 400 .62em var(--f-italic); color: var(--ink-3); }
.mi__note { grid-column: 1 / -1; margin: -2px 0 0; font: italic 400 16px/1.4 var(--f-text); color: var(--ink-3); }
.mi--best .mi__name::after { content: "лучший темп для прогресса"; display: inline-block; margin-left: 12px; padding: 5px 10px 6px; vertical-align: 5px; border-radius: 999px; background: var(--accent); color: var(--paper); font: 500 12px/1 var(--f-ui); letter-spacing: .02em; }
.menu-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.menu-card__foot p { margin: 0; font-size: 15px; color: var(--ink-3); max-width: 360px; }

/* отзывы-открытки */
.reviews { padding-right: 0; padding-left: 0; overflow: hidden; }
.reviews .wrap { padding: 0 var(--pad); display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cards-nav { display: flex; gap: 10px; }
.cards-nav button { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .3); display: grid; place-items: center; transition: background .3s, color .3s; }
.cards-nav button:hover { background: var(--ink); color: var(--paper); }
.cards { display: flex; gap: 34px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 60px max(var(--pad), calc((100vw - var(--maxw)) / 2)) 50px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.cards::-webkit-scrollbar { display: none; }
.cards.is-drag { cursor: grabbing; scroll-snap-type: none; }
.card { position: relative; flex: none; width: min(520px, 84vw); aspect-ratio: 3 / 2; scroll-snap-align: center; background: #FBF6EC; box-shadow: 0 0 0 1px rgba(176, 141, 87, .35), 0 30px 50px -30px rgba(40, 18, 6, .55); display: grid; grid-template-columns: 1.45fr 1fr; padding: 26px 26px 22px 28px; gap: 22px; rotate: var(--r, 0deg); transition: rotate .6s var(--ease), translate .6s var(--ease); user-select: none; }
.card:hover { rotate: 0deg; translate: 0 -6px; }
.card__msg { margin: 0; font: italic 400 17px/1.5 var(--f-text); color: var(--ink); overflow: hidden; }
.card__side { position: relative; border-left: 1px solid rgba(31, 26, 22, .14); padding-left: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.card__stamp { position: absolute; top: 0; right: 0; width: 72px; height: 88px; padding: 6px; background: radial-gradient(circle, transparent 2.4px, #fff 2.9px) -4px -4px / 8px 8px; filter: drop-shadow(0 1px 1.5px rgba(40, 20, 8, .25)); rotate: 3deg; }
.card__stamp span { display: block; width: 100%; height: 100%; border: 3px solid #fff; background-color: #fff; background-repeat: no-repeat; }
.card__mark { position: absolute; top: 40px; right: 46px; width: 84px; height: 84px; opacity: .55; color: var(--accent); }
.card__who { font: 500 15px/1.35 var(--f-ui); border-bottom: 1px solid rgba(31, 26, 22, .18); padding-bottom: 6px; margin-bottom: 8px; }
.card__lang { font: italic 400 16px/1.2 var(--f-italic); color: var(--accent); border-bottom: 1px solid rgba(31, 26, 22, .18); padding-bottom: 6px; }
.card--fr { --accent: var(--coral); } .card--ar { --accent: var(--teal); } .card--cn { --accent: var(--cinnabar); }

/* истории о словах */
.stories__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.slist { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.srow { border-bottom: 1px solid var(--line); }
.srow a { position: relative; display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 24px; padding: 26px 0; text-decoration: none; }
.srow__lang { font: italic 400 19px/1 var(--f-italic); color: var(--accent); }
.srow__title { font: 400 clamp(24px, 2.8vw, 38px)/1.12 var(--f-display); transition: transform .6s var(--ease); }
.srow__thumb { display: none; }
.srow__arr { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .25); transition: background .4s var(--ease), color .4s var(--ease); }
.srow a:hover .srow__title { transform: translateX(14px); }
.srow a:hover .srow__arr { background: var(--ink); color: var(--paper); }
.peek { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; scale: .85; transition: opacity .35s var(--ease), scale .5s var(--ease); box-shadow: 0 30px 60px -25px rgba(30, 15, 5, .6); }
.peek.is-on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* заявка */
.apply { background: var(--paper-2); }
.apply__grid { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.apply__art { position: relative; justify-self: center; width: min(500px, 100%); }
.apply__art .cameo__img { position: relative; aspect-ratio: 3 / 4; }
.apply__art .cameo__img img { transform: none; object-position: 50% 30%; }
.form { margin-top: 34px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { position: relative; display: grid; gap: 6px; }
.fld > span { font: 500 13px/1 var(--f-ui); color: var(--ink-3); letter-spacing: .02em; }
.fld input, .fld select, .fld textarea { width: 100%; font: 400 18px/1.3 var(--f-text); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(31, 26, 22, .3); border-radius: 0; padding: 8px 0 10px; outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.fld textarea { resize: vertical; min-height: 46px; }
.fld select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F1A16' stroke-width='1.3'/%3E%3C/svg%3E") right 4px center / 12px no-repeat; padding-right: 26px; cursor: pointer; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--accent); }
.fld.is-bad input { border-color: var(--cinnabar); }
.fld .err { font: 500 12px/1.2 var(--f-ui); color: var(--cinnabar); min-height: 0; }
.chk { display: flex; gap: 12px; align-items: flex-start; font: 400 14px/1.45 var(--f-ui); color: var(--ink-2); cursor: pointer; }
.chk input { flex: none; width: 20px; height: 20px; margin: 0; border-radius: 4px; border: 1px solid rgba(31, 26, 22, .4); -webkit-appearance: none; appearance: none; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.chk input:checked { background: var(--ink); border-color: var(--ink); }
.chk input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--paper); border-top: 0; border-right: 0; rotate: -45deg; margin-top: -2px; }
.chk.is-bad input { border-color: var(--cinnabar); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__send { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form__alt { font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.form__msg { margin: 0; font: 500 15px/1.4 var(--f-ui); color: var(--cinnabar); }
.done { display: none; margin-top: 34px; padding: 30px 32px; background: var(--card); box-shadow: 0 0 0 1px rgba(176, 141, 87, .45); }
.done.is-on { display: block; }
.done h3 { margin: 0 0 8px; font: 400 34px/1.1 var(--f-display); }
.done p { margin: 0; color: var(--ink-2); }

/* подвал */
.foot { position: relative; background: var(--wine-deep); color: #F1E4CF; padding: clamp(70px, 9vw, 120px) var(--pad) 34px; overflow: hidden; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__brand { font: 400 clamp(40px, 5vw, 70px)/1 var(--f-display); margin: 0 0 16px; }
.foot__brand i { font-family: var(--f-italic); color: #E6A493; }
.foot__tag { margin: 0; color: rgba(241, 228, 207, .7); font-size: 17px; max-width: 320px; }
.foot h4 { margin: 0 0 16px; font: 500 13px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(241, 228, 207, .55); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font: 400 16px/1.35 var(--f-ui); }
.foot__langs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; margin: clamp(60px, 8vw, 110px) 0 0; padding: 30px 0; border-top: 1px solid rgba(241, 228, 207, .18); border-bottom: 1px solid rgba(241, 228, 207, .18); font-size: clamp(22px, 2.6vw, 36px); line-height: 1.2; color: #E9D7BA; }
.foot__langs span:nth-child(1) { font-family: var(--f-italic); font-style: italic; }
.foot__langs span:nth-child(2) { font-family: var(--f-ar); direction: rtl; }
.foot__langs span:nth-child(3) { font-family: var(--f-cn); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; margin-top: 26px; font: 400 13px/1.5 var(--f-ui); color: rgba(241, 228, 207, .6); }
.foot__legal div { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* карточка преподавателя */
.tdlg { width: min(720px, calc(100% - 28px)); max-height: calc(100svh - 28px); padding: 0; border: 0; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px rgba(176, 141, 87, .45), 0 60px 120px -40px rgba(20, 10, 4, .7); overflow: auto; }
.tdlg::backdrop { background: rgba(31, 20, 12, .48); }
.tdlg[open] { animation: dlg .55s var(--ease); }
.tdlg[open]::backdrop { animation: fade .4s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.tdlg__in { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 40px; }
.tdlg__in::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-soft); pointer-events: none; }
.tdlg__x { position: absolute; z-index: 2; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .25); }
.tdlg__x:hover { background: var(--ink); color: var(--paper); }
.tdlg .big { justify-self: center; }
.tdlg .fr-frame.big, .tdlg .ar-frame.big { width: 200px; height: 266px; padding: 3px; }
.tdlg .cn-frame.big { width: 200px; height: 266px; padding: 3px; }
.tdlg h3 { margin: 6px 0 0; font: 400 46px/1 var(--f-display); }
.tdlg .lng { display: block; margin-top: 8px; font: italic 400 21px/1.2 var(--f-italic); color: var(--accent); }
.tdlg ul { margin: 22px 0 26px; padding: 0; list-style: none; }
.tdlg li { padding: 11px 0; border-top: 1px solid rgba(176, 141, 87, .3); font-size: 17px; line-height: 1.4; }
.tdlg li:last-child { border-bottom: 1px solid rgba(176, 141, 87, .3); }

/* ---------- блог ---------- */
.page-top { padding: 150px var(--pad) 40px; }
.page-top .h2 { font-size: clamp(48px, 7vw, 104px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.filters button { height: 42px; padding: 0 18px; border-radius: 999px; font: 500 15px/1 var(--f-ui); box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .25); transition: background .3s, color .3s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 34px; padding: 30px var(--pad) 140px; max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; }
.bcard { text-decoration: none; display: grid; gap: 14px; }
.bcard[hidden] { display: none; }
.bcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard__meta { display: flex; gap: 14px; font: 500 13px/1 var(--f-ui); color: var(--ink-3); }
.bcard__meta b { font: italic 400 16px/1 var(--f-italic); color: var(--accent); }
.bcard h2 { margin: 0; font: 400 clamp(25px, 2.2vw, 31px)/1.15 var(--f-display); }
.bcard p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.bcard--lead { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 44px; }
.bcard--lead .bcard__img { aspect-ratio: 16 / 10; }
.bcard--lead h2 { font-size: clamp(34px, 3.6vw, 52px); }

.art { padding: 140px var(--pad) 40px; }
.art__head { max-width: 900px; margin: 0 auto; text-align: center; }
.art__head .bcard__meta { justify-content: center; }
.art__head h1 { margin: 18px 0 0; font: 400 clamp(40px, 6vw, 82px)/1.04 var(--f-display); letter-spacing: -.01em; }
.art__lead { max-width: 640px; margin: 24px auto 0; font: italic 400 21px/1.5 var(--f-text); color: var(--ink-2); }
.art__cover { max-width: 1040px; margin: 54px auto 0; }
.art__cover img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--paper-2); }
.art__cover figcaption, .art figure figcaption { margin-top: 12px; font: 400 13px/1.45 var(--f-ui); color: var(--ink-3); text-align: center; }
.prose { max-width: 680px; margin: 56px auto 0; font-size: 20px; line-height: 1.7; }
.prose p { margin: 0 0 1.1em; }
.prose > p:first-of-type::first-letter { float: left; font: 400 4.6em/.8 var(--f-display); margin: .06em .1em 0 0; color: var(--accent); }
.prose h2 { margin: 1.8em 0 .6em; font: 400 34px/1.15 var(--f-display); }
.prose .w { font-family: var(--f-italic); font-style: italic; color: var(--accent); }
.prose .ar { font-size: 1.24em; line-height: 1.35; }
.prose .cn { font-size: 1.1em; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 26px; border-left: 2px solid var(--accent); font: italic 400 24px/1.45 var(--f-text); color: var(--ink); }
.prose figure { margin: 2em -60px; }
.prose figure img { width: 100%; }
.art__end { max-width: 680px; margin: 70px auto 0; padding: 34px 36px; background: var(--card); box-shadow: 0 0 0 1px rgba(176, 141, 87, .45); position: relative; }
.art__end::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); pointer-events: none; }
.art__end h3 { margin: 0 0 8px; font: 400 32px/1.1 var(--f-display); }
.art__end p { margin: 0 0 22px; color: var(--ink-2); }
.more { max-width: var(--maxw); margin: 110px auto 0; }
.more h3 { margin: 0 0 30px; font: 400 36px/1.1 var(--f-display); }
.more .bgrid { padding: 0 0 120px; }

/* ---------- узкие экраны ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .team { grid-template-columns: 1fr; }
  .team__list { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
}
@media (max-width: 899px) {
  body { font-size: 17px; }
  .nav { top: 10px; height: 56px; padding-left: 18px; width: calc(100% - 20px); }
  .brand { font-size: 20px; }
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
  .menu { display: grid; position: fixed; z-index: 55; inset: 0; padding: 100px 28px 40px; background: var(--paper); align-content: start; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
  .menu a { font: 400 40px/1.25 var(--f-display); text-decoration: none; }
  /* кнопка записи в меню своим шрифтом, иначе ей достаётся крупный шрифт пунктов меню и она уезжает за край */
  .menu a.btn { margin-top: 24px; justify-self: stretch; justify-content: center; height: 56px; padding: 0 24px; font: 500 17px/1 var(--f-ui); white-space: nowrap; }
  .nav.is-open + .menu { opacity: 1; visibility: visible; }

  .hero__copy { left: 18px; right: 18px; top: var(--copyT, 60%); transform: none; align-items: center; text-align: center; }
  .hero__l2 { justify-content: center; }
  .slot > span + span { left: 0; right: 0; }
  .hero__lead { margin-top: 14px; font-size: 16px; max-width: 340px; }
  .hero__cta { margin-top: 18px; width: 100%; justify-content: center; }
  .hero__cta .btn { width: 100%; height: 52px; padding: 0 16px; }
  .hero__tg { display: none; }
  .switch { margin-top: 16px; gap: 8px; justify-content: center; }
  .switch button { height: 42px; padding: 0 12px; }
  .switch .lbl { display: none; }

  .world__veil { background: linear-gradient(0deg, rgba(16, 10, 6, .86) 0%, rgba(16, 10, 6, .6) 38%, rgba(16, 10, 6, 0) 68%); }
  .panel { left: 20px; right: 20px; width: auto; bottom: max(22px, env(safe-area-inset-bottom)); }
  .panel__top { margin-bottom: 6px; gap: 10px; }
  .panel__top .flag { width: 32px; height: 24px; }
  .panel__greet { font-size: 28px; }
  .panel__greet.ar { font-size: 30px; }
  .panel__greet.cnline .hz { height: 32px; }
  .panel__title { font-size: clamp(46px, 13vw, 64px); }
  .panel__text { margin: 8px 0 18px; font-size: 16px; }
  .teachers { gap: 12px; margin-bottom: 20px; }
  .tch .fr-frame, .tch .ar-frame { width: 54px; height: 72px; }
  .tch .cn-frame { width: 54px; height: 72px; }
  .panel .btn { width: 100%; height: 52px; }
  .pan-hint { right: auto; left: 20px; bottom: auto; top: 124px; font-size: 13px; }

  .founder__grid, .apply__grid { grid-template-columns: 1fr; }
  .cameo { max-width: 300px; }
  .cameo__sign { right: -4%; }
  .stamps { gap: 10px 12px; }
  .stamp { width: 92px; height: 92px; }
  .team__list { grid-template-columns: 1fr 1fr; }
  .mate { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .steps { grid-template-columns: 1fr; gap: 34px; margin-top: 40px; }
  .steps li::before { font-size: 58px; margin-bottom: 10px; }
  .goals { grid-template-columns: 1fr; }
  .tag { height: 42px; font-size: 15px; }
  .mi { grid-template-columns: 1fr auto; }
  .mi__dots { display: none; }
  .mi--best .mi__name::after { display: block; width: max-content; margin: 8px 0 0; }
  .card { grid-template-columns: 1fr; aspect-ratio: auto; min-height: 420px; padding: 24px 22px 20px; }
  .card__side { border-left: 0; border-top: 1px solid rgba(31, 26, 22, .14); padding: 16px 0 0; min-height: 110px; }
  .card__mark { top: 10px; right: 84px; width: 70px; height: 70px; }
  .card__stamp { top: 12px; width: 58px; height: 72px; }
  .srow a { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 0; }
  .srow__lang { grid-column: 1 / -1; font-size: 16px; }
  .srow__arr { width: 40px; height: 40px; }
  .peek { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top > div:first-child { grid-column: 1 / -1; }
  .foot__langs { justify-content: flex-start; }
  .tdlg__in { grid-template-columns: 1fr; padding: 34px 24px 28px; gap: 18px; }
  .tdlg .fr-frame.big, .tdlg .ar-frame.big { width: 150px; height: 200px; }
  .tdlg .cn-frame.big { width: 150px; height: 200px; margin: 0; }
  .tdlg h3 { font-size: 38px; }
  .bgrid { grid-template-columns: 1fr; gap: 44px; }
  .bcard--lead { grid-template-columns: 1fr; gap: 16px; }
  .prose { font-size: 18px; }
  .prose figure { margin: 1.6em 0; }
  .art { padding-top: 110px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .panel__text { display: none; }
}


/* ---------- v2: Дарья, команда, абонементы, отзывы, цели ---------- */
.founder__copy { display: grid; justify-items: start; }
.founder__name { margin: 0; font: 400 clamp(56px, 8vw, 132px)/.95 var(--f-display); letter-spacing: -.025em; }
.founder__name em { display: block; font-family: var(--f-italic); font-style: italic; color: var(--accent); }
.founder__role { margin: 22px 0 0; font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 460px; }
.team2 { margin-top: clamp(90px, 11vw, 160px); }
.team2__title { margin: 0; font: 400 clamp(36px, 4.6vw, 72px)/1.02 var(--f-display); letter-spacing: -.015em; }
.team2__title em { font-family: var(--f-italic); font-style: italic; color: var(--accent); }
.team2__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 44px); margin: 48px 0 0; padding: 0; list-style: none; align-items: end; }
.mate2 { display: grid; justify-items: center; gap: 14px; width: 100%; text-align: center; }
.mate2__ph.fr-frame, .mate2__ph.ar-frame { width: 100%; height: auto; aspect-ratio: 3 / 4; padding: 3px; }
.mate2__ph.cn-frame { width: 100%; height: auto; aspect-ratio: 3 / 4; padding: 3px; }
.mate2:hover .mate2__ph img { transform: scale(1.05); }
.mate2__name { display: inline-flex; align-items: center; gap: 10px; font: 400 clamp(24px, 2.2vw, 34px)/1.1 var(--f-display); }
.mate2__fl .flag { width: 26px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.mate2__more { margin-top: -6px; font: 500 14px/1 var(--f-ui); color: var(--ink-3); transition: color .3s; }
.mate2:hover .mate2__more { color: var(--ink); }

.prices { text-align: left; }
.prices__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.prices__head { position: sticky; top: 120px; display: grid; justify-items: start; gap: 22px; }
.prices__note { margin: 0; font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 380px; }
.plist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: 1.25em minmax(0, 1fr) auto; align-items: center; gap: 0 clamp(18px, 2.4vw, 36px); padding: clamp(20px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line); font-size: clamp(64px, 6.2vw, 104px); transition: background .5s var(--ease); }
.prow__n { font: 400 1em/1 var(--f-display); letter-spacing: -.03em; text-align: center; text-box: trim-both cap alphabetic; }
.prow__t { display: grid; gap: 12px; justify-items: start; }
.prow__w { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font: italic 400 .3em/1.1 var(--f-italic); color: var(--ink-2); }
.prow__w b { font: 500 12px/1 var(--f-ui); font-style: normal; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--paper); letter-spacing: .02em; }
.prow__t small { font: 400 15px/1.2 var(--f-ui); color: var(--ink-3); }
.prow__p { font: 400 .34em/1 var(--f-display); white-space: nowrap; text-align: right; text-box: trim-both cap alphabetic; }
.prow--best .prow__n { color: var(--accent); }
.prow:hover { background: linear-gradient(90deg, rgba(196, 88, 74, .06), transparent 70%); }

.quotes__stage { position: relative; margin-top: 50px; min-height: clamp(220px, 22vw, 320px); }
.q { position: absolute; inset: 0 0 auto 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .8s var(--ease), transform 1s var(--ease), visibility .8s; }
.q.is-on { opacity: 1; visibility: visible; transform: none; }
.q blockquote { margin: 0; max-width: 1100px; font: italic 400 clamp(28px, 3.4vw, 54px)/1.25 var(--f-text); letter-spacing: -.005em; }
.q figcaption { display: flex; align-items: center; gap: 12px; margin-top: 26px; font: 500 16px/1 var(--f-ui); color: var(--ink-2); }
.q .flag { width: 30px; height: 22px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.quotes__nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.quotes__nav button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .3); transition: background .3s, color .3s; }
.quotes__nav button:hover { background: var(--ink); color: var(--paper); }
.quotes__dots { display: flex; gap: 8px; }
.quotes__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(31, 26, 22, .2); transition: background .4s, width .4s var(--ease); }
.quotes__dots i.is-on { width: 26px; border-radius: 4px; background: var(--ink); }

.chips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding-top: 6px; }
.chips .chip { grid-column: span 3; }
.chips .chip:nth-child(n+5) { grid-column: span 4; }
.chip { height: 38px; padding: 0 15px; white-space: nowrap; border-radius: 999px; font: 500 14px/1 var(--f-ui); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .22); transition: background .3s, color .3s, box-shadow .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .5); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

@media (max-width: 899px) {
  .founder__name { font-size: clamp(48px, 14vw, 72px); }
  .founder__role { font-size: 18px; }
  .team2__list { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .prices__grid { grid-template-columns: 1fr; }
  .prices__head { position: static; }
  .prow { font-size: clamp(50px, 14vw, 72px); gap: 0 14px; padding: 16px 0; }
  .prow__w { font-size: .36em; gap: 6px 8px; }
  .prow__w b { font-size: 11px; padding: 5px 8px; }
  .prow__t { gap: 8px; }
  .prow__t small { font-size: 13px; }
  .prow__p { font-size: .38em; }
  .q blockquote { font-size: clamp(24px, 7vw, 32px); }
  .quotes__stage { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-rv], .split-line > span, .stamp { opacity: 1 !important; transform: none !important; }
}

/* v3: согласия в форме */
.consents { display: grid; gap: 10px; margin-top: 4px; }
.consents .chk a { color: inherit; text-underline-offset: 3px; }

/* v3: картина в заявке стоит вверху и держится при заполнении формы */
.apply__grid { align-items: start; }
.apply__art { position: sticky; top: 110px; }
/* заголовок всегда в 2 строки и по ширине колонки, верх букв вровень с верхом овала */
.apply__main { container-type: inline-size; }
.apply h2 { font-size: min(clamp(44px, 6.6vw, 112px), 13cqi); text-box: trim-both cap alphabetic; }
.apply h2 em { display: block; white-space: nowrap; }
.apply .lead { margin-top: 30px; }
@media (max-width: 899px) {
  .apply__art { position: static; }
  .chips { grid-template-columns: repeat(6, 1fr); }
  .chips .chip, .chips .chip:nth-child(n+5) { grid-column: span 3; }
  .chips .chip:nth-child(-n+3) { grid-column: span 2; }
  .chip { padding: 0 8px; }
}

/* ====== Блог с поиском, статьи и страницы языков (25.10, SEO) ====== */
.nav__search { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: inherit; text-decoration: none; transition: background .3s, color .3s; }
.nav__search:hover { background: rgba(31, 26, 22, .08); }
.filters a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font: 500 15px/1 var(--f-ui); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .25); transition: background .3s, color .3s, box-shadow .3s; }
.filters a[aria-current="page"], .filters a:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.bsearch { margin-top: 30px; scroll-margin-top: 110px; }
.bsearch__f { display: flex; align-items: center; gap: 12px; max-width: 560px; height: 56px; padding: 0 22px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(31, 26, 22, .22); color: var(--ink-3); transition: box-shadow .3s; }
.bsearch__f:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.bsearch__f input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 400 19px/1 var(--f-text); color: var(--ink); }
.bsearch__f input::-webkit-search-cancel-button { cursor: pointer; }
.bgrid[hidden], .bsearch__empty[hidden] { display: none; }
.bsearch__empty { max-width: 640px; margin: 10px auto 120px; padding: 0 var(--pad); text-align: center; font: italic 400 22px/1.5 var(--f-text); color: var(--ink-2); }
.bcard mark { background: none; color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 18px; font: 500 13px/1.4 var(--f-ui); color: var(--ink-3); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.toc { max-width: 680px; margin: 48px auto 0; padding: 24px 28px 22px; background: var(--card); box-shadow: 0 0 0 1px rgba(176, 141, 87, .4); }
.toc p { margin: 0 0 12px; font: 600 12px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 8px; font: 400 18px/1.4 var(--f-text); }
.toc li::marker { color: var(--accent); font-family: var(--f-display); }
.toc a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.toc a:hover { background-size: 100% 1px; }
.prose h2 { scroll-margin-top: 110px; }
.prose .listen { gap: 0; margin: 0 .2em 0 .35em; vertical-align: -.32em; }
.prose .listen .listen__ico { width: 28px; height: 28px; }
.prose .listen .listen__ico svg { width: 10px; height: 10px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0 0 .45em; }
.prose li::marker { color: var(--accent); }
.prose .tbl { max-width: 100%; margin: 1.4em 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .tbl table { margin: 0; }
.prose table { width: 100%; margin: 1.4em 0 1.6em; border-collapse: collapse; font: 400 17px/1.45 var(--f-ui); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid rgba(31, 26, 22, .14); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-2); }
.prose .note { margin: 1.6em 0; padding: 20px 24px; background: var(--card); box-shadow: inset 3px 0 0 var(--accent); font-size: 18px; }
.faq { max-width: 680px; margin: 60px auto 0; }
.faq h2 { margin: 0 0 14px; font: 400 34px/1.15 var(--f-display); }
.faq details { border-top: 1px solid rgba(31, 26, 22, .16); }
.faq details:last-child { border-bottom: 1px solid rgba(31, 26, 22, .16); }
.faq summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font: 400 21px/1.35 var(--f-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.art__course { max-width: 680px; margin: 44px auto 0; font: 500 16px/1.5 var(--f-ui); color: var(--ink-2); }
.art__course a { color: var(--accent); text-underline-offset: 4px; }
.lform__h { margin: 0 0 8px; font: 400 clamp(30px, 3.2vw, 40px)/1.1 var(--f-display); }
.lform__p { margin: 0; color: var(--ink-2); }
.lform .form { margin-top: 26px; }
.lform .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lform .chips .chip { grid-column: auto; padding: 0 16px; }
.art__end .lform .form__send { flex-wrap: wrap; }
.apply--page .wrap { max-width: 820px; }
.apply--page .lform { padding: 40px 0 0; }
@media (max-width: 760px) {
  .bsearch__f { height: 52px; }
  .toc { padding: 20px 20px 18px; }
  .faq summary { font-size: 19px; }
  .art__end { padding: 26px 20px; }
  .prose table { font-size: 15px; }
  .prose th, .prose td { padding: 8px 6px; }
}

/* ====== Страницы языков /francuzskiy-yazyk/ и др. (25.10, SEO) ====== */
.lp-hero { position: relative; padding: clamp(110px, 12vw, 150px) var(--pad) clamp(60px, 8vw, 110px); overflow: hidden; }
.lp-hero__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.lp-win { margin: 0; width: 100%; max-width: 520px; height: auto; aspect-ratio: 4 / 5; padding: 3px; justify-self: start; }
.lp-win.cn-frame { aspect-ratio: 3 / 4; max-width: 460px; }
.lp-win img { object-position: 60% 50%; }
.lp-hero__copy { min-width: 0; }
.lp-crumbs { justify-content: flex-start; margin-bottom: 26px; }
.lp-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 15px/1.2 var(--f-ui); color: var(--ink-2); }
.lp-kicker .flag { width: 32px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(31, 26, 22, .12); }
.lp-h1 { margin: 0; font: 400 clamp(54px, 7.4vw, 124px)/.98 var(--f-display); letter-spacing: -.02em; }
.lp-h1 em { display: block; font-family: var(--f-italic); font-style: italic; color: var(--accent); }
.lp-lead { max-width: 560px; margin: 26px 0 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 46px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); max-width: 640px; }
.lp-facts li { display: grid; gap: 6px; }
.lp-facts b { font: 400 clamp(26px, 2.6vw, 38px)/1 var(--f-display); color: var(--accent); }
.lp-facts span { font: 500 14px/1.35 var(--f-ui); color: var(--ink-3); }
.lp-goal-list { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(30px, 5vw, 80px); border-top: 1px solid var(--ink); }
.lp-goal { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.lp-goal h3 { margin: 0 0 10px; font: italic 400 clamp(28px, 2.8vw, 40px)/1.05 var(--f-italic); color: var(--accent); }
.lp-goal p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.lp-steps-sec { background: var(--paper-2); }
.lp-steps { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.lp-step__n { display: block; margin: 0 0 18px; font: italic 300 clamp(56px, 5.6vw, 82px)/.9 var(--f-italic); color: var(--accent); }
.lp-step h3 { margin: 0 0 10px; font: 400 26px/1.15 var(--f-display); }
.lp-step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.lp-team .team2 { margin-top: 0; }
.lp-team__list { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.lp-tfact { display: block; margin-top: 6px; font: 400 15px/1.45 var(--f-ui); color: var(--ink-3); text-align: center; }
.lp-q-list { margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 4vw, 60px); }
.lp-q { margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--accent); }
.lp-q blockquote { margin: 0; font: italic 400 clamp(21px, 2vw, 27px)/1.45 var(--f-text); color: var(--ink); }
.lp-q figcaption { margin-top: 14px; font: 500 14px/1.3 var(--f-ui); color: var(--ink-3); }
.lp-text { padding-top: 0; }
.lp-prose { margin-top: 0; }
.lp-prose > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.lp-faq { padding-top: 0; }
.lp-faq .faq { margin: 0 auto; }
.lp-blog { padding-top: 0; }
@media (max-width: 980px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .lp-win { max-width: 340px; justify-self: center; }
  .lp-win.cn-frame { max-width: 320px; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lp-hero { padding-top: 96px; }
  .lp-win { max-width: 260px; }
  .lp-win.cn-frame { max-width: 250px; }
  .lp-lead { font-size: 18px; }
  .lp-facts { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .lp-facts span { font-size: 12.5px; }
  .lp-goal-list, .lp-q-list, .lp-steps { grid-template-columns: 1fr; }
  .lp-steps { gap: 30px; }
  .lp-team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.panel__more { display: block; width: max-content; margin-top: 16px; font: 500 15px/1.2 var(--f-ui); color: rgba(246, 238, 223, .92); text-underline-offset: 5px; transition: color .3s; }
.panel__more:hover { color: #fff; }

/* программа по уровням на страницах языков */
.lp-lv-list { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.lp-lv { display: grid; grid-template-columns: clamp(80px, 9vw, 140px) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); padding: 28px 0 30px; border-bottom: 1px solid var(--line); align-items: baseline; }
.lp-lv__c { font: italic 300 clamp(44px, 5vw, 72px)/.9 var(--f-italic); color: var(--accent); }
.lp-lv h3 { margin: 0 0 8px; font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--f-display); }
.lp-lv h3 small { display: inline-block; margin-left: 12px; font: 500 15px/1 var(--f-ui); color: var(--accent); vertical-align: 4px; }
.lp-lv p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.lp-lv-note { max-width: 760px; margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 640px) {
  .lp-lv { grid-template-columns: 58px minmax(0, 1fr); padding: 22px 0 24px; }
  .lp-lv h3 small { display: block; margin: 8px 0 0; vertical-align: 0; }
  .lp-lv p { font-size: 17px; }
}

/* плашка cookie: внизу слева, на телефоне во всю ширину */
.ck { position: fixed; left: 18px; bottom: 18px; z-index: 120; width: min(470px, calc(100% - 36px)); padding: 18px 20px 18px; border-radius: 22px; background: rgba(248, 242, 230, .97); color: var(--ink); box-shadow: 0 26px 60px -26px rgba(31, 26, 22, .5), 0 0 0 1px rgba(31, 26, 22, .1); font: 400 15px/1.5 var(--f-ui); transform: translateY(24px); opacity: 0; transition: transform .55s var(--ease), opacity .55s var(--ease); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ck.is-on { transform: none; opacity: 1; }
.ck p { margin: 0 0 14px; }
.ck a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ck a:hover { color: var(--coral); }
.ck__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ck__btns .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 560px) {
  .ck { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px; font-size: 14px; }
  .ck__btns .btn { height: 42px; }
}
.foot__ck { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.foot__ck:hover { text-decoration: underline; text-underline-offset: 4px; }
