/* ==========================================================================
   Bridge to the World: Art Nouveau design inspired by Alphonse Mucha
   An Art Nouveau mood inspired by Alphonse Mucha: ivory paper, powder rose,
   deep wine and antique gold, picked to match Anna's photo (camel jacket,
   wine top, gold jewellery). Framed panels with curling corner ornaments.
   Type: Yeseva One (display, Cyrillic) + Lora (text)
   ========================================================================== */

:root {
  --ivory: #F7F0E6;
  --ivory-2: #EFE3D3;
  --card: #FCF8F2;
  --ink: #3A2A27;
  --ink-soft: #5E4944;
  --muted: #86716B;
  --line: rgba(58, 42, 39, .12);
  --line-strong: rgba(58, 42, 39, .22);
  --wine: #7A2E3C;
  --wine-deep: #5B1F2B;
  --blush: #EED9CF;
  --blush-2: #DDB8A8;
  --gold: #BF9550;
  --gold-light: #E0C58E;

  --mu-gold: var(--gold);
  --mu-teal: var(--wine);
  --logo-bg: var(--ivory);

  --font-display: "Yeseva One", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
  --frame: inset 0 0 0 6px var(--card), inset 0 0 0 7px rgba(191, 149, 80, .5);

  /* booking widget */
  --surface: var(--card);
  --surface-2: var(--ivory);
  --primary: var(--wine);
  --primary-hover: var(--wine-deep);
  --primary-tint: #F3E3DC;
  --primary-tint-hover: #EBD2C7;
  --on-primary: #FCF6EE;
  --side-bg: var(--wine-deep);
  --side-ink: var(--ivory);
  --side-line: rgba(247, 240, 230, .25);
  --accent: var(--gold);
  --error: #9A3E2E;
  --error-bg: #F7E9E3;
  --display-weight: 400;
  --bk-radius: 20px;
  --bk-radius-sm: 12px;
  --bk-border: 1.5px solid var(--gold);
  --bk-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(191, 149, 80, .45), 0 40px 80px -50px rgba(58, 42, 39, .5);
  --avatar-bg: var(--blush);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.07rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--wine); color: #fff; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 8vw, 7rem); }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--wine); color: #fff; padding: .7rem 1rem; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.kicker { margin: 0 0 .9rem; font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.flourish { width: 240px; height: 28px; margin: .9rem 0 1.4rem; }
.section-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head .flourish { margin-inline: auto; }
.section-head h2, .about h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--wine); --b-fg: #FCF6EE; --b-bd: var(--wine);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 600 .98rem/1.1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover svg { transform: none; }
.btn-primary:not(:disabled):hover { --b-bg: var(--wine-deep); --b-bd: var(--wine-deep); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--gold); }
.btn-ghost:hover { --b-bg: rgba(191, 149, 80, .1); }
.btn-small { padding: .68rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 240, 230, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: rgba(191, 149, 80, .45); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.logo-mark { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 1.5rem; }
.logo-sub { font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.nav { display: flex; gap: 1.9rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--wine); }
.nav .nav-book, .nav .nav-cabinet { display: none; }
.header-cta { flex: none; gap: .45rem; }
.header-cta svg { width: 17px; height: 17px; }
/* the student area button becomes a round icon where the menu needs the room
   (Russian labels are longer); its name stays as a tooltip and for screen readers */
@media (min-width: 1001px) and (max-width: 1040px) {
  .header-cta { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  html[lang="ru"] .header-cta { width: 42px; height: 42px; padding: 0; justify-content: center; }
  html[lang="ru"] .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[lang="ru"] .nav { gap: 1.1rem; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  html[lang="ru"] .nav { gap: .85rem; }
  html[lang="ru"] .nav a { font-size: .9rem; }
}
@media (min-width: 1201px) {
  html[lang="ru"] .header-inner { gap: 1.4rem; }
  html[lang="ru"] .nav { gap: 1.25rem; }
}
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.site-header.is-open .nav-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
.site-header.is-open .nav-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* hero: a photo of people talking behind the text, washed in wine on the left */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.8rem, 4vw, 2.6rem);
  background: var(--wine-deep); color: var(--ivory);
  border-bottom: 1.5px solid var(--gold);
  --mu-gold: var(--gold-light); --mu-teal: var(--gold-light);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(74, 24, 34, .97) 0%, rgba(91, 31, 43, .92) 36%, rgba(91, 31, 43, .5) 58%, rgba(91, 31, 43, .08) 82%),
    linear-gradient(0deg, rgba(74, 24, 34, .65) 0%, rgba(74, 24, 34, 0) 34%);
}
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2.4rem, 5vw, 3.4rem); min-height: 520px; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.5rem); line-height: 1.02; }
.hero h1 { color: var(--ivory); }
.hero h1 span { display: block; color: var(--gold-light); }
.hero .kicker { color: var(--gold-light); }
.hero-lead { max-width: 32rem; font-size: 1.15rem; color: rgba(247, 240, 230, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }

.medallion {
  position: absolute; inset: 12.5%; margin: 0;
  border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 32%, rgba(255, 248, 242, .8), transparent 70%),
    linear-gradient(170deg, #F4E3DA 0%, var(--blush-2) 100%);
  box-shadow: 0 30px 60px -36px rgba(58, 42, 39, .55);
}
.medallion img { position: absolute; left: 50%; bottom: 0; width: 80%; height: auto; max-width: none; transform: translateX(-50%); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-copy h2 span { color: var(--wine); }
.about-copy .flourish { margin-left: -4px; }
.about-intro { font-size: 1.12rem; color: var(--ink-soft); max-width: 30rem; }
.stat-circles { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.1rem; }
.stat-circles li {
  width: 132px; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--card);
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(191, 149, 80, .5);
}
.stat-circles strong { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1; color: var(--wine); white-space: nowrap; }
.stat-circles span { margin-top: .3rem; font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.benefits li { padding: 1.7rem 1.5rem 1.5rem; border-radius: 16px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame); }
.benefit-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: .9rem; border-radius: 50%; background: var(--blush); color: var(--wine); }
.benefit-icon svg { width: 22px; height: 22px; }
.benefits h3 { font-size: 1.25rem; margin-bottom: .45rem; color: var(--ink); }
.benefits p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
[data-ui-only][hidden] { display: none !important; }

/* ---------- Prices and sign-up + packs ---------- */
.booking { background: linear-gradient(var(--ivory), var(--ivory-2)); }
.packs { margin-top: 3.5rem; }
.packs-intro h3 em { font-style: normal; color: var(--wine); }
.pack { border-radius: 16px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame); }
.pack-name { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.pack-lessons { margin: .15rem 0 0; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.pack.is-best .pack-lessons { color: rgba(247, 240, 230, .85); }
.pack-price strong { color: var(--wine); }
.pack-save { color: var(--wine); }
.pack.is-best { background: var(--wine); color: var(--ivory); box-shadow: inset 0 0 0 6px var(--wine), inset 0 0 0 7px rgba(224, 197, 142, .7); }
.pack.is-best .pack-price strong, .pack.is-best .pack-save { color: var(--gold-light); }
.pack.is-best .pack-price span { color: rgba(247, 240, 230, .75); }
.pack.is-best .btn-primary, .pack.is-best .btn-primary:not(:disabled):hover { --b-bg: var(--ivory); --b-bd: var(--ivory); --b-fg: var(--wine-deep); }
.pack-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: .28rem .85rem; border-radius: 999px; background: var(--gold); color: #FCF6EE; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
/* the discount and the medallion side by side. The medallion: a ring of --n segments
   (one per lesson, --gap between them) with the number of lessons in the middle */
.pack-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .55rem; }
.pack-row .pack-price { margin: 0; min-width: 0; }
.pack-ring {
  --n: 4; --gap: 7deg;
  position: relative; flex: none; width: 66px; height: 66px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--wine); text-align: center;
}
.pack-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from calc(var(--gap) / 2), var(--ring, var(--gold)) 0 calc(360deg / var(--n) - var(--gap)), transparent 0 calc(360deg / var(--n)));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.pack-ring b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.pack-ring small { margin-top: .1rem; font-size: .48rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pack.is-best .pack-ring { --ring: var(--gold-light); color: var(--ivory); }
.pack.is-best .pack-ring small { color: rgba(247, 240, 230, .75); }
/* the biggest pack: champagne card with an outlined badge */
.pack.is-max { background: linear-gradient(165deg, #FBF5EA, #F2E2C6); }
.pack.is-max .pack-badge { background: var(--card); color: var(--wine); box-shadow: inset 0 0 0 1px var(--gold); }
/* a bigger discount, a short reason to choose the pack, and cards that lift on hover */
.packs .pack-price strong { font-size: 2.7rem; }
.pack-for {
  margin: .7rem 0 1.1rem; padding-top: .75rem; border-top: 1px solid rgba(191, 149, 80, .45);
  font-style: italic; font-size: .95rem; line-height: 1.35; color: var(--ink-soft);
}
.pack.is-best .pack-for { border-top-color: rgba(224, 197, 142, .4); color: rgba(247, 240, 230, .9); }
.pack { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pack:hover { transform: translateY(-5px); box-shadow: var(--frame), 0 22px 40px -22px rgba(91, 31, 43, .45); }
.pack.is-best { box-shadow: inset 0 0 0 6px var(--wine), inset 0 0 0 7px rgba(224, 197, 142, .7), 0 22px 44px -24px rgba(91, 31, 43, .65); }
.pack.is-best:hover { box-shadow: inset 0 0 0 6px var(--wine), inset 0 0 0 7px rgba(224, 197, 142, .7), 0 28px 50px -24px rgba(91, 31, 43, .7); }
@media (min-width: 1061px) {
  /* the most popular pack stands a little higher */
  .pack.is-best { transform: translateY(-12px); }
  .pack.is-best:hover { transform: translateY(-17px); }
}
@media (prefers-reduced-motion: reduce) {
  .pack, .pack:hover { transition: none; }
}

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 370px)); justify-content: center; gap: 1.5rem; }
.review { margin: 0; text-align: center; padding: 2rem 1.75rem 1.75rem; border-radius: 16px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame); }
.review blockquote { margin: 0 0 1.2rem; font-style: italic; font-size: 1.12rem; line-height: 1.6; }
.review blockquote::before { content: "«"; display: block; font-family: var(--font-display); font-style: normal; font-size: 3rem; line-height: .8; color: var(--gold); margin-bottom: .4rem; }
.review figcaption { font-size: .88rem; color: var(--muted); }
.review figcaption strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--wine); }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-inner { max-width: 820px; }
.faq-list { border-top: 1px solid rgba(191, 149, 80, .55); }
.faq-list details { border-bottom: 1px solid rgba(191, 149, 80, .55); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.25rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--wine); font-family: var(--font-body); font-size: 1.2rem; transition: rotate .3s var(--ease), background-color .2s, color .2s; }
.faq-list details[open] summary::after { rotate: 45deg; background: var(--wine); color: #fff; border-color: var(--wine); }
.faq-list details p { margin: 0; padding: 0 3rem 1.3rem 0; color: var(--ink-soft); }
.faq-more { margin-top: 1.75rem; text-align: center; color: var(--ink-soft); font-style: italic; }
.faq-more a { color: var(--wine); font-weight: 600; font-style: normal; }

/* ---------- Cookie banner (analytics.js) ---------- */
.consent {
  position: fixed; z-index: 200; left: 1rem; bottom: 1rem; max-width: 520px;
  display: grid; gap: .9rem; padding: 1.1rem 1.25rem 1.15rem;
  border-radius: 16px; border: 1.5px solid var(--gold); background: var(--card);
  box-shadow: var(--frame), 0 24px 48px -24px rgba(58, 42, 39, .45);
  font-size: .9rem; line-height: 1.5; color: var(--ink-soft);
  animation: consent-in .45s var(--ease);
}
.consent p { margin: 0; }
.consent a { color: var(--wine); font-weight: 600; text-underline-offset: 3px; }
.consent-btns { display: flex; justify-content: flex-end; gap: .6rem; }
[data-cookie-settings][hidden] { display: none; }
/* slides in (no fade, so it is always readable even if the animation does not run) */
@keyframes consent-in { from { transform: translateY(16px); } }
@media (max-width: 560px) {
  .consent { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
  .consent-btns .btn { flex: 1; }
}

/* ---------- Bottom banner: first lesson, 30 minutes free (#offerBar, shown by script.js) ---------- */
.offer-bar {
  position: fixed; z-index: 150; left: 0; right: 0; bottom: 0;
  background: linear-gradient(100deg, var(--wine-deep), var(--wine) 70%);
  border-top: 1.5px solid var(--gold);
  box-shadow: inset 0 5px 0 var(--wine-deep), inset 0 6px 0 rgba(224, 197, 142, .5), 0 -18px 40px -24px rgba(58, 42, 39, .6);
  color: var(--ivory);
  animation: offer-in .7s var(--ease);
  transition: transform .45s var(--ease), visibility 0s;
}
.offer-bar[hidden] { display: none; }
/* slides in from the bottom (no fade, so it is always readable even if the animation does not run) */
@keyframes offer-in { from { transform: translateY(100%); } }
/* out of the way (request form on screen) or closed: slides down */
.offer-bar.is-away, .offer-bar.is-leaving { transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.offer-inner { display: flex; align-items: center; gap: .8rem 1.4rem; padding-block: .9rem 1rem; }
.offer-text { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0; font-size: .95rem; line-height: 1.4; color: rgba(247, 240, 230, .88); }
.offer-kicker {
  padding: .25rem .75rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gold-light);
  color: var(--gold-light); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.offer-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--gold-light); }
.offer-btn, .offer-btn:not(:disabled):hover { --b-bg: var(--ivory); --b-bd: var(--ivory); --b-fg: var(--wine-deep); flex: none; }
.offer-close {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: rgba(247, 240, 230, .75);
  font: 400 1.6rem/1 var(--font-body); cursor: pointer;
}
.offer-close:hover { color: var(--ivory); background: rgba(247, 240, 230, .1); }
.offer-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
/* the end of the page stays reachable above the banner */
html.has-offer body { padding-bottom: var(--offer-h, 0px); }
@media (max-width: 760px) {
  .offer-inner { position: relative; flex-wrap: wrap; gap: .7rem; padding-block: .85rem .95rem; }
  .offer-text { flex-basis: 100%; padding-right: 2.4rem; font-size: .88rem; }
  .offer-btn { flex: 1; }
  .offer-close { position: absolute; top: .45rem; right: calc(var(--gutter) - .6rem); }
}
@media (max-width: 560px) {
  .offer-more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-bar, .offer-bar.is-away, .offer-bar.is-leaving { animation: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(191, 149, 80, .5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--wine); }
.copy { margin: 0 0 0 auto; font-size: .88rem; color: var(--muted); }

/* reveal */
.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--ivory); border-bottom: 1px solid rgba(191, 149, 80, .5); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .3s, translate .3s, visibility .3s; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); }
  .nav .nav-book { display: block; color: var(--wine); border: 0; }
  .site-header.is-open .nav { opacity: 1; visibility: visible; translate: 0 0; }
  .nav-toggle { display: grid; }
  .header-inner { gap: .75rem; }
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  /* phones: the student area goes in the menu */
  .nav .nav-cabinet { display: flex; align-items: center; gap: .6rem; color: var(--wine); border: 0; padding-top: .4rem; }
  .nav .nav-cabinet svg { width: 22px; height: 22px; flex: none; }
  .benefits { grid-template-columns: 1fr; }
  .stat-circles { gap: .8rem; }
  .stat-circles li { width: 100px; }
  .stat-circles strong { font-size: 1.35rem; }
  .stat-circles span { font-size: .58rem; letter-spacing: .06em; }
  .faq-list details p { padding-right: 0; }
  .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}

/* circle labels wrap on two lines and stay inside the circle */
.stat-circles span { max-width: 74%; line-height: 1.25; text-wrap: balance; }

/* ==========================================================================
   Multi-language school: language buttons, greeting, teachers
   ========================================================================== */

/* language buttons (hero) */
.lang-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2.2rem; max-width: 36rem; }
.lang-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .32rem .85rem .32rem .32rem;
  border-radius: 999px;
  border: 1.5px solid rgba(191, 149, 80, .55);
  background: var(--card);
  font: 600 .9rem/1 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.lang-chip:hover { border-color: var(--wine); transform: translateY(-1px); }
.lang-mark {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--wine);
  font-family: var(--font-display), "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Geeza Pro", sans-serif;
  font-size: .82rem; line-height: 1;
}
.lang-chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.lang-chip[aria-pressed="true"] .lang-mark { background: var(--ivory); }


/* teachers */
.teachers { background: linear-gradient(var(--ivory), var(--ivory-2)); }
.teacher-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.teacher-count { margin: 0 auto 0 0; font-style: italic; color: var(--muted); }
.teacher-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 18px; background: var(--card);
  border: 1.5px solid var(--gold); box-shadow: var(--frame);
}
.teacher-photo {
  position: relative; display: block;
  width: 132px; aspect-ratio: 1; margin-bottom: 1.1rem;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(170deg, #F4E3DA, var(--blush-2));
  box-shadow: 0 0 0 5px var(--card), 0 0 0 6.5px rgba(191, 149, 80, .7);
}
.teacher-photo img {
  position: absolute; max-width: none; height: auto;
  width: calc(var(--zoom, 2) * 100%);
  left: calc(50% - var(--fx, .5) * var(--zoom, 2) * 100%);
  top: calc(50% - var(--fy, .35) * var(--zoom, 2) * var(--ar, 1.333) * 100%);
}
.teacher-photo .photo-initial { font-size: 3rem; color: var(--wine); }
.teacher-name { font-size: 1.5rem; margin-bottom: .55rem; }
.teacher-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0 0 1rem; }
/* short highlighted line under the name (tagline in teachers.js) */
.teacher-tagline {
  display: flex; align-items: center; gap: .55rem; margin: -.2rem 0 1.1rem; padding: .55rem .95rem;
  border-radius: 12px; border: 1px solid rgba(122, 46, 60, .18); background: rgba(238, 217, 207, .45);
  color: var(--wine); font-style: italic; font-size: .93rem; line-height: 1.35; text-align: left;
}
.teacher-tagline svg { flex: none; width: 20px; height: 20px; }
.teacher-tagline.is-premium {
  border-color: var(--gold); background: linear-gradient(135deg, var(--wine-deep), var(--wine));
  color: #F6E7C8; font-style: normal; font-weight: 600;
  box-shadow: inset 0 0 0 3px var(--wine-deep), inset 0 0 0 4px rgba(224, 197, 142, .55);
}
.teacher-tagline.is-premium svg { color: var(--gold-light); }
.lang-tag { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .75rem .22rem .22rem; border-radius: 999px; background: var(--blush); color: var(--wine); font-size: .85rem; font-weight: 600; }
.lang-tag .lang-mark { width: 24px; height: 24px; font-size: .72rem; background: var(--ivory); }
.teacher-facts { list-style: none; margin: 0 0 1rem; padding: .9rem 0 0; width: 100%; display: grid; gap: .45rem; border-top: 1px dashed rgba(191, 149, 80, .5); text-align: left; }
.teacher-facts li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }
.teacher-facts svg { width: 17px; height: 17px; flex: none; margin-top: .12rem; color: var(--gold); }
.teacher-bio { margin: 0 0 1.25rem; font-size: .95rem; font-style: italic; color: var(--ink-soft); text-align: left; }
.teacher-empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1.5rem; border-radius: 18px; border: 1.5px dashed rgba(191, 149, 80, .6); background: var(--card); }
.teacher-empty-title { margin: 0 0 .5rem; font-family: var(--font-display), "PingFang SC", "Hiragino Mincho ProN", "Apple SD Gothic Neo", "Geeza Pro", serif; font-size: 2.2rem; color: var(--wine); }
.teacher-empty p { color: var(--ink-soft); }

@media (max-width: 760px) {
  .lang-picker { gap: .4rem; }
  .lang-chip { font-size: .84rem; }
}

/* longer school headline: a little smaller so the language buttons stay in view */
.hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.75rem); }
@media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; } }
.hero .flourish { margin: .7rem 0 1rem; }
.hero-lead { margin-bottom: 0; }

.hero-copy { min-width: 0; max-width: 36rem; }

/* EN / RU switch in the header */
.ui-switch { display: inline-flex; flex: none; padding: 3px; border: 1.5px solid rgba(191, 149, 80, .6); border-radius: 999px; background: var(--card); }
.ui-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  min-width: 38px; min-height: 32px; padding: 0 .55rem; border-radius: 999px;
  font: 700 .74rem/1 var(--font-body); letter-spacing: .1em; color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.ui-switch button:hover { color: var(--wine); }
.ui-switch button[aria-pressed="true"] { background: var(--wine); color: var(--ivory); }
.ui-switch button:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.nav a, .logo-name, .header-cta { white-space: nowrap; }
@media (max-width: 1200px) and (min-width: 1001px) {
  .header-inner { gap: 1.4rem; }
  .nav { gap: 1.3rem; }
  /* the name "Bridge to the World" is long: a smaller logo leaves room for the menu */
  .site-header .logo-name { font-size: 1.25rem; }
  .site-header .logo-mark { width: 42px; height: 42px; }
}
/* phones: the name goes on two lines ("Bridge to / the World") and the small
   "Online lessons" line is dropped, so the menu button stays on screen */
@media (max-width: 480px) {
  .site-header .logo-name { font-size: 1.15rem; line-height: 1.02; }
  .site-header .logo-name-2 { display: block; }
  .site-header .logo-sub { display: none; }
}
.logo-mark { flex: none; }
@media (max-width: 420px) {
  /* long Russian words (e.g. «преподавателями») must fit on small phones */
  .section-head h2, .about h2 { font-size: 2.05rem; }
  .header-inner { gap: .5rem; }
  .logo { gap: .55rem; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-name { font-size: 1.2rem; }
  .ui-switch button { min-width: 34px; padding: 0 .4rem; }
}

/* sections or links switched off with the hidden attribute */
.section[hidden], .nav a[hidden] { display: none !important; }

/* words in bold inside long texts */
.teacher-bio strong { font-weight: 600; color: var(--ink); }

/* ---------- About us: the founder, on a wine band apart from the teachers ---------- */
.story {
  position: relative; overflow: clip; /* clip, not hidden, so the sticky portrait still works */
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: radial-gradient(120% 90% at 18% 40%, #74303D 0%, var(--wine-deep) 62%);
  color: var(--ivory);
  border-block: 1px solid rgba(191, 149, 80, .55);
  box-shadow: inset 0 7px 0 -6px rgba(191, 149, 80, .35), inset 0 -7px 0 -6px rgba(191, 149, 80, .35);
}
.story-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
/* the portrait stays in view while the letter scrolls past */
.story-side { text-align: center; position: sticky; top: calc(var(--header-h) + 2.5rem); }
/* the portrait image already contains the ring frame and a soft transparent glow */
.story-portrait { width: min(100%, 470px); margin: 0 auto; }
.story-portrait img { display: block; width: 100%; height: auto; }
.story-sign { margin: .4rem 0 0; }
.story-sign strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.2; color: var(--ivory); }
.story-sign span { font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }

.story-text .kicker { color: var(--gold-light); }
.story-text h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ivory); }
.story-text .flourish { margin-left: -4px; --mu-teal: var(--gold-light); --mu-gold: var(--gold); }
.story-text p { color: rgba(247, 240, 230, .84); }
.story-text strong { font-weight: 600; color: var(--gold-light); }
.story-text .story-lead { font-size: 1.12rem; color: var(--ivory); }
.story-pillars { list-style: none; margin: 1.3rem 0 1.6rem; padding: 0; display: grid; gap: .8rem; }
.story-pillars li { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(247, 240, 230, .06); border: 1px solid rgba(224, 197, 142, .28); color: var(--ivory); }
.story-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-light); }
.story-icon svg { width: 20px; height: 20px; }
.story-text .story-welcome { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.35; color: var(--ivory); }
.story-text .story-note { display: flex; gap: .8rem; align-items: flex-start; margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: 14px; border: 1px dashed rgba(224, 197, 142, .6); font-size: .95rem; }
.story-note > svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--gold-light); }
@media (max-width: 1000px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-side { position: static; }
  .story-portrait { width: min(100%, 380px); }
}
@media (max-width: 760px) {
  .story-portrait { width: min(100%, 320px); }
  .story-pillars li { padding: .7rem .8rem; }
}

.cform-title { margin: 0 0 .1rem; font-size: 1.55rem; line-height: 1.15; }
.cform { display: grid; gap: 1.1rem; }
.cform[hidden], .cform-done[hidden] { display: none; }
.cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); background-color: var(--error-bg); }
.cform-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.cform-privacy { margin: 0; font-size: .82rem; color: var(--muted); }
.cform-done { display: grid; justify-items: center; gap: .6rem; padding: 1rem 0; text-align: center; }
.cform-done h3 { font-size: 1.8rem; outline: none; }
.cform-done p { margin: 0 0 .5rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .cform-actions { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .cform-actions .btn { width: 100%; }
}

/* ---------- Speaking clubs: two cards side by side, a photo behind each ---------- */
.clubs { background: linear-gradient(var(--ivory-2), var(--ivory)); }
.talk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; max-width: 990px; margin-inline: auto; }
/* one card only (English site): centred */
.talk-grid:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
@media (max-width: 860px) {
  .talk-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
.talk-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 2.2rem 2rem 2rem; border-radius: 18px;
  color: var(--ivory); background: var(--wine-deep);
  box-shadow: 0 22px 44px -26px rgba(58, 42, 39, .6);
}
.talk-card[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.talk-photo { position: absolute; inset: 0 0 auto; height: 75%; z-index: -2; background: center 35% / cover no-repeat; filter: saturate(.8); }
.talk-teacher .talk-photo { background-image: url(images/club-teacher.jpg); }
.talk-us .talk-photo { background-image: url(images/club-us.jpg); }
/* colour wash over the photo: it shows through at the top and fades out behind the text */
.talk-card::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.talk-teacher::before { background: linear-gradient(180deg, rgba(122, 46, 60, .58) 0%, rgba(104, 37, 50, .8) 40%, rgba(91, 31, 43, .94) 72%, #5B1F2B 100%); }
.talk-us::before { background: linear-gradient(180deg, rgba(68, 47, 38, .52) 0%, rgba(60, 42, 34, .78) 40%, rgba(51, 36, 30, .94) 72%, #33241E 100%); }
.talk-card::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(224, 197, 142, .6); border-radius: 12px; pointer-events: none; }
.talk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.1rem; }
.talk-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0; padding: .3rem .95rem .3rem .3rem; border-radius: 999px;
  background: rgba(247, 240, 230, .12); border: 1px solid rgba(224, 197, 142, .5);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
}
.talk-tag-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--ivory); color: var(--wine); }
.talk-tag-icon svg { width: 16px; height: 16px; }
.talk-tag-icon.has-flag svg { display: block; width: 100%; height: 100%; }
/* "Online": the meetings take place by video call */
.talk-online {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px;
  background: var(--ivory); color: var(--wine-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.talk-online svg { width: 16px; height: 16px; flex: none; }
.talk-us .talk-online { color: #33241E; }
.talk-card h3 { margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 1.95rem); line-height: 1.15; color: var(--ivory); }
.talk-card h3 em { font-style: normal; color: var(--gold-light); }
.talk-text { margin: 0 0 1.4rem; font-size: .97rem; line-height: 1.6; color: rgba(247, 240, 230, .86); }
.talk-text strong, .talk-facts strong { color: var(--ivory); }
.talk-facts { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.talk-facts li { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: center; font-size: .95rem; line-height: 1.4; color: rgba(247, 240, 230, .9); }
.talk-facts svg { box-sizing: border-box; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(247, 240, 230, .1); color: var(--gold-light); }
.talk-buy { margin-top: auto; display: grid; justify-items: center; gap: .55rem; text-align: center; padding-top: 1.5rem; border-top: 1px dashed rgba(224, 197, 142, .45); }
.talk-buy .club-toggle { margin-bottom: 1rem; }
.talk-buy .club-price { margin: 0; }
.talk-buy .club-price strong { font-size: 2.35rem; }
.talk-buy .club-save { margin: 0; }
.talk-us .talk-buy .club-total { margin-bottom: .5rem; }
/* note under the American club's button: meetings in the morning only */
.talk-note { display: flex; align-items: flex-start; gap: .45rem; max-width: 22rem; margin: .4rem 0 0; font-size: .85rem; line-height: 1.45; text-align: left; color: var(--gold-light); }
.talk-note svg { flex: none; width: 16px; height: 16px; margin-top: .15rem; }
.club-toggle { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(247, 240, 230, .08); border: 1px solid rgba(224, 197, 142, .55); }
.club-toggle button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: .6rem 1.15rem; border-radius: 999px;
  font: 600 .92rem var(--font-body); color: var(--ivory);
  transition: background-color .2s, color .2s;
}
.club-toggle button:hover { background: rgba(247, 240, 230, .12); }
.club-toggle button[aria-checked="true"] { background: var(--ivory); color: var(--wine-deep); }
.club-toggle button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.club-price { margin: .7rem 0 0; display: flex; align-items: baseline; gap: .5rem; }
.club-price strong { font-family: var(--font-display); font-weight: 400; font-size: 2.7rem; line-height: 1; color: var(--gold-light); }
.club-price span { font-size: .92rem; color: rgba(247, 240, 230, .8); }
.club-total { margin: 0; font-size: .92rem; color: rgba(247, 240, 230, .85); }
.club-save { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; color: var(--gold-light); }
.talk-buy .btn-primary, .talk-buy .btn-primary:not(:disabled):hover { --b-bg: var(--ivory); --b-bd: var(--ivory); --b-fg: var(--wine-deep); }
.talk-us .talk-buy .btn-primary, .talk-us .talk-buy .btn-primary:not(:disabled):hover { --b-fg: #33241E; }
@media (max-width: 760px) {
  .talk-card { padding: 2rem 1.5rem 1.8rem; }
}
@media (max-width: 420px) {
  .club-toggle button { padding: .55rem .8rem; font-size: .86rem; }
  .talk-tags { gap: .4rem; }
  .talk-tag, .talk-online { font-size: .66rem; letter-spacing: .05em; }
  .talk-tag { gap: .45rem; padding-right: .7rem; }
  .talk-online { padding: .45rem .65rem; }
}

/* round flags on the language buttons and teacher cards */
.lang-mark.has-flag { background: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(58, 42, 39, .18); }
.lang-mark.has-flag svg { display: block; width: 100%; height: 100%; }
.lang-chip[aria-pressed="true"] .lang-mark.has-flag { background: none; box-shadow: 0 0 0 1.5px var(--ivory); }
.lang-tag .lang-mark.has-flag { background: none; }

/* hero: the four languages as a 2 x 2 grid, and the benefits as a quiet line under them */
.hero .lang-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 25rem; margin: 1.8rem 0 0; }
.hero .lang-chip {
  justify-content: flex-start; gap: .65rem; padding: .45rem .9rem .45rem .45rem; border-radius: 12px;
  border-color: rgba(224, 197, 142, .6); background: rgba(247, 240, 230, .08); color: var(--ivory); font-size: .95rem;
}
.hero .lang-chip:hover { border-color: var(--ivory); background: rgba(247, 240, 230, .14); }
.hero .lang-chip[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--wine-deep); }
.hero .lang-chip:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.hero .lang-mark.has-flag { width: 28px; height: 28px; box-shadow: 0 0 0 1.5px rgba(247, 240, 230, .9); }
.hero-benefits {
  list-style: none; margin: 0; padding: 1.4rem 0 0; max-width: 58rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem 0;
  border-top: 1px solid rgba(224, 197, 142, .45);
}
.hero-benefits li { display: flex; align-items: flex-start; gap: .75rem; padding-right: 1.5rem; }
.hero-benefits li + li { border-left: 1px solid rgba(224, 197, 142, .35); padding-left: 1.5rem; }
.hero-benefits svg { flex: none; width: 26px; height: 26px; margin-top: .1rem; color: var(--gold-light); }
.hero-benefits strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.25; color: var(--ivory); }
.hero-benefits span span { font-size: .9rem; line-height: 1.4; color: rgba(247, 240, 230, .78); }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(74, 24, 34, .9) 0%, rgba(91, 31, 43, .8) 50%, rgba(74, 24, 34, .95) 100%); }
  .hero-bg { object-position: 72% 30%; }
  .hero-inner { min-height: 0; }
  .hero-benefits li + li { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   Courses: one card, a corrected homework sheet on the left (CSS drawing)
   ========================================================================== */
.courses { background: linear-gradient(var(--ivory), var(--ivory-2)); }
.course-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  max-width: 1080px; margin-inline: auto; overflow: hidden;
  border-radius: 22px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame);
}
.course-visual {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 460px; padding: 3rem 2.6rem 3.6rem;
  background: radial-gradient(120% 90% at 18% 8%, #93404E, var(--wine-deep) 72%);
}
.course-visual::before, .course-visual::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(224, 197, 142, .28);
}
.course-visual::before { width: 440px; height: 440px; top: -170px; right: -190px; box-shadow: 0 0 0 26px rgba(224, 197, 142, .05); }
.course-visual::after { width: 300px; height: 300px; bottom: -150px; left: -120px; }
.course-paper { position: relative; width: min(100%, 370px); margin-bottom: 3.4rem; }
.course-sheet {
  position: relative; padding: 1.2rem 1.3rem 3.2rem 2.7rem; border-radius: 6px;
  background-color: #FBF6EC;
  background-image:
    linear-gradient(90deg, transparent 1.9rem, rgba(122, 46, 60, .35) 1.9rem, rgba(122, 46, 60, .35) calc(1.9rem + 1px), transparent calc(1.9rem + 1px)),
    repeating-linear-gradient(transparent 0 31px, rgba(58, 42, 39, .1) 31px 32px);
  background-position: 0 0, 0 2.55rem;
  box-shadow: 0 26px 44px -20px rgba(0, 0, 0, .55);
  transform: rotate(-3deg);
  color: var(--ink); font-size: .95rem;
}
.sheet-head { margin: 0 0 .35rem; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sheet-line { margin: 0; line-height: 32px; }
.sheet-n { color: var(--muted); }
.course-sheet del { text-decoration: line-through 2px var(--wine); color: var(--muted); }
.course-sheet ins { text-decoration: none; font-style: italic; font-weight: 600; color: var(--wine); }
.sheet-ok { display: inline-flex; vertical-align: -3px; color: var(--wine); }
.sheet-ok svg { width: 17px; height: 17px; }
.course-stamp {
  position: absolute; top: -2.3rem; right: -1.9rem; z-index: 2;
  display: grid; place-items: center; align-content: center; gap: .1rem;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(251, 246, 236, .92); color: var(--wine);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px rgba(251, 246, 236, .92), inset 0 0 0 6px var(--gold), 0 10px 20px -10px rgba(0, 0, 0, .5);
  transform: rotate(12deg);
  font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.course-stamp svg { width: 26px; height: 26px; }
.course-comment {
  position: absolute; right: -1.6rem; bottom: -3.7rem; z-index: 2; width: min(265px, 80%);
  padding: .8rem .95rem .85rem; border-radius: 14px 14px 4px 14px;
  background: var(--card); box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(191, 149, 80, .55);
  transform: rotate(1.5deg);
}
.course-comment p { margin: 0; }
.course-comment-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem !important; font-size: .78rem; font-weight: 700; color: var(--wine); }
.course-comment-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wine); color: var(--gold-light); }
.course-comment-avatar svg { width: 14px; height: 14px; }
.course-comment-text { font-size: .8rem; line-height: 1.45; color: var(--ink-soft); }

/* French course: the same style, a different drawing. Seyès school paper tilted the other way,
   a grade out of 20 instead of the stamp, a voice message on the left instead of the comment */
.course-sheet.is-seyes {
  transform: rotate(2.5deg);
  background-image:
    linear-gradient(90deg, transparent 1.9rem, rgba(196, 72, 92, .5) 1.9rem, rgba(196, 72, 92, .5) calc(1.9rem + 1px), transparent calc(1.9rem + 1px)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(98, 94, 168, .14) 31px 32px),
    repeating-linear-gradient(transparent 0 31px, rgba(98, 94, 168, .3) 31px 32px),
    repeating-linear-gradient(transparent 0 7px, rgba(98, 94, 168, .1) 7px 8px);
  background-position: 0 0, calc(1.9rem + 1px) 0, 0 2.55rem, 0 2.55rem;
}
.course-grade {
  position: absolute; top: -2.5rem; right: -1.7rem; z-index: 2;
  display: grid; place-items: center; align-content: center; gap: .2rem;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(251, 246, 236, .94); color: var(--wine);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px rgba(251, 246, 236, .94), inset 0 0 0 6px var(--gold), 0 10px 20px -10px rgba(0, 0, 0, .5);
  transform: rotate(-9deg);
}
.course-grade b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.course-grade small { font-size: .62em; color: var(--muted); }
.course-grade > span { font-size: .5rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.course-voice {
  position: absolute; left: -1.6rem; bottom: -3.3rem; z-index: 2; width: min(255px, 80%);
  padding: .75rem .9rem .8rem; border-radius: 14px 14px 14px 4px;
  background: var(--card); box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(191, 149, 80, .55);
  transform: rotate(-1.5deg);
}
.course-voice p { margin: 0; }
.course-voice-row { display: flex; align-items: center; gap: .6rem; }
.course-voice-play { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--wine); }
.course-voice-play::before { content: ""; position: absolute; left: 11px; top: 9px; border-left: 8px solid var(--ivory); border-block: 5px solid transparent; }
.course-voice-wave { flex: 1; min-width: 0; height: 24px; }
.course-voice-wave .wave-done { fill: var(--wine); }
.course-voice-wave .wave-rest { fill: rgba(191, 149, 80, .6); }
.course-voice-time { flex: none; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.course-body { padding: clamp(1.8rem, 4vw, 2.8rem); display: flex; flex-direction: column; }
.course-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.course-tag {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .32rem .85rem; border-radius: 999px;
  background: var(--blush); color: var(--wine); font-size: .8rem; font-weight: 600;
}
.course-tag svg { width: 16px; height: 16px; }
.course-tag.is-gold { background: transparent; box-shadow: inset 0 0 0 1px var(--gold); }
.course-title { margin: 0 0 1rem; font-size: clamp(1.9rem, 3.2vw, 2.45rem); line-height: 1.1; }
.course-title em { display: block; margin-top: .4rem; font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; font-style: italic; color: var(--wine); }
.course-text { margin: 0 0 1.5rem; color: var(--ink-soft); line-height: 1.65; }
.course-text strong { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .course-card { grid-template-columns: minmax(0, 1fr); }
  .course-visual { min-height: 380px; padding: 2.8rem 2.2rem 3.8rem; }
}
@media (max-width: 420px) {
  .course-visual { padding: 3.6rem 1.1rem 3.8rem; }
  .course-sheet { font-size: .8rem; padding-left: 2.3rem; padding-right: .9rem; }
  .course-stamp { width: 72px; height: 72px; right: -.5rem; top: -2.2rem; }
  .course-comment { right: -.4rem; width: 86%; }
  .course-grade { width: 72px; height: 72px; right: -.5rem; top: -2.2rem; }
  .course-grade b { font-size: 1.3rem; }
  .course-voice { left: -.4rem; width: 86%; }
}

/* ==========================================================================
   Lesson request: three steps on the left, the form on the right
   ========================================================================== */
.signup {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  max-width: 1080px; margin-inline: auto; overflow: hidden;
  border-radius: 22px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame);
}
.signup-steps {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: clamp(2rem, 4vw, 2.8rem);
  background: radial-gradient(120% 90% at 18% 8%, #93404E, var(--wine-deep) 72%); color: var(--ivory);
}
.signup-deco { position: absolute; z-index: -1; bottom: 10px; right: 10px; width: 110px; height: 110px; opacity: .45; transform: scale(-1, -1); --mu-gold: var(--gold-light); pointer-events: none; }
.signup-steps ol { display: grid; gap: 1.7rem; margin: 0; padding: 0; list-style: none; }
.signup-steps li { position: relative; display: flex; align-items: flex-start; gap: 1rem; }
.signup-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: -1.45rem; width: 1px; background: rgba(224, 197, 142, .45);
}
.signup-n {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-light); color: var(--wine-deep); font-family: var(--font-display); font-size: 1.3rem;
  box-shadow: 0 0 0 4px rgba(224, 197, 142, .18);
}
.signup-steps h3 { margin: .45rem 0 .3rem; font-size: 1.3rem; line-height: 1.15; color: var(--ivory); }
.signup-steps p { margin: 0; font-size: .93rem; line-height: 1.55; color: rgba(247, 240, 230, .82); }
.signup-steps .signup-tg { margin-top: auto; padding-top: 2.2rem; }
.signup-tg a { color: var(--gold-light); font-weight: 600; }
.signup-box { padding: clamp(1.8rem, 4vw, 2.6rem); }
.sform { display: grid; gap: 1.05rem; }
.sform-title { margin: 0 0 .15rem; font-size: 1.7rem; line-height: 1.15; }
.signup .cform-done { padding: 2.5rem 0; }
.signup { scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
}
.teacher-empty .btn + .btn { margin-left: .5rem; }

/* ==========================================================================
   Course plans: Basic and Intensive (with the places gauge), compact,
   across the bottom of the course card
   ========================================================================== */
.course-tag.is-level { background: var(--wine); color: var(--ivory); }
/* tabs above the course card: Russian (first) and French */
.course-tabs {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto 1.6rem; padding: 5px; gap: 4px;
  border-radius: 999px; background: var(--card); border: 1.5px solid var(--gold);
  box-shadow: 0 10px 24px -18px rgba(91, 31, 43, .5);
}
.course-tab {
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.3rem .6rem .7rem; border: 0; border-radius: 999px; background: transparent;
  font: 600 .95rem/1 var(--font-body); color: var(--ink-soft); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.course-tab:hover { color: var(--wine); background: rgba(191, 149, 80, .12); }
.course-tab[aria-selected="true"], .course-tab[aria-selected="true"]:hover { background: var(--wine); color: var(--ivory); }
.course-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.course-tab-flag { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--gold-light); }
.course-tab-flag svg { display: block; width: 100%; height: 100%; }
.course-card[hidden] { display: none; }
/* the card that was just picked slides in (no fade, always readable) */
.course-card.is-switched { animation: course-in .5s var(--ease); }
@keyframes course-in { from { transform: translateY(12px); } }
@media (max-width: 480px) {
  /* two equal tabs across the width */
  .course-tabs { width: 100%; }
  .course-tab { flex: 1; justify-content: center; padding: .6rem .6rem; font-size: .88rem; gap: .45rem; }
  .course-tab-flag { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-card.is-switched { animation: none; }
}
.course-plans {
  grid-column: 1 / -1;
  padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.8rem;
  border-top: 1.5px solid rgba(191, 149, 80, .5); background: linear-gradient(var(--card), #F5E9DA);
}
.course-plans-head { margin-bottom: 1.4rem; text-align: center; }
.course-plans-title { margin: 0 0 .2rem; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.course-plans-head p { margin: 0; font-size: .84rem; font-style: italic; color: var(--muted); }
.course-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 800px; margin-inline: auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.45rem 1.25rem 1.15rem; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--frame), 0 18px 34px -22px rgba(91, 31, 43, .45); }
.plan .pack-badge { top: -11px; padding: .22rem .7rem; font-size: .6rem; }
.plan-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  margin-bottom: .85rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(191, 149, 80, .4);
}
.plan-name { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.plan-for { margin: .2rem 0 0; font-size: .8rem; font-style: italic; line-height: 1.3; color: var(--muted); }
.plan-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; margin: 0; line-height: 1; }
.plan-price strong { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; color: var(--wine); white-space: nowrap; }
.plan-price span { margin-top: .25rem; font-size: .74rem; color: var(--muted); }
.plan-list { display: grid; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .86rem; line-height: 1.4; color: var(--ink-soft); }
.plan-list svg { flex: none; width: 15px; height: 15px; margin-top: .17rem; color: var(--wine); }
.plan-list strong { font-weight: 600; color: var(--ink); }
.plan .btn { margin-top: auto; }

/* Intensive: the premium card */
.plan.is-premium {
  background: radial-gradient(120% 100% at 15% 0%, #93404E, var(--wine-deep) 72%); color: var(--ivory);
  box-shadow: inset 0 0 0 5px var(--wine-deep), inset 0 0 0 6px rgba(224, 197, 142, .55), 0 20px 40px -24px rgba(91, 31, 43, .7);
}
.plan.is-premium:hover { box-shadow: inset 0 0 0 5px var(--wine-deep), inset 0 0 0 6px rgba(224, 197, 142, .55), 0 24px 44px -24px rgba(91, 31, 43, .75); }
.plan.is-premium .pack-badge { background: var(--wine-deep); color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold-light); }
.plan.is-premium .plan-top { border-bottom-color: rgba(224, 197, 142, .35); }
.plan.is-premium .plan-for, .plan.is-premium .plan-price span { color: rgba(247, 240, 230, .75); }
.plan.is-premium .plan-price strong { color: var(--gold-light); }
.plan.is-premium .plan-list li { color: rgba(247, 240, 230, .88); }
.plan.is-premium .plan-list strong { color: var(--ivory); }
.plan.is-premium .plan-list svg { color: var(--gold-light); }
.plan.is-premium .btn-primary, .plan.is-premium .btn-primary:not(:disabled):hover { --b-bg: var(--ivory); --b-bd: var(--ivory); --b-fg: var(--wine-deep); }

/* places left this month: one segment per place, the taken ones in gold */
.plan-seats { margin: 0 0 1rem; padding: .55rem .7rem .65rem; border-radius: 10px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(224, 197, 142, .3); }
.plan-seats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem .6rem; margin: 0 0 .45rem; font-size: .74rem; color: rgba(247, 240, 230, .75); }
.plan-seats-head strong { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gold-light); }
.plan-seats-head strong::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light);
  animation: seat-pulse 1.8s ease-in-out infinite;
}
@keyframes seat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 197, 142, .65); } 50% { box-shadow: 0 0 0 5px rgba(224, 197, 142, 0); } }
.plan-seats-bar { display: grid; grid-template-columns: repeat(var(--seats, 5), minmax(0, 1fr)); gap: 4px; }
.plan-seats-bar span { height: 6px; border-radius: 3px; background: rgba(247, 240, 230, .16); }
.plan-seats-bar span.is-taken { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
@media (prefers-reduced-motion: reduce) {
  .plan, .plan:hover { transition: none; }
  .plan-seats-head strong::before { animation: none; }
}
@media (max-width: 760px) {
  .course-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 420px) {
  .course-body { padding: 1.6rem 1.2rem; }
  .plan { padding: 1.4rem 1.05rem 1.05rem; }
}

/* ---------- Newsletter: a box above the FAQ, a short form in the footer ---------- */
.newsletter { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.news-card {
  --mu-gold: var(--gold-light);
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 24rem); align-items: center;
  gap: 1.25rem 2rem;
  max-width: 990px; margin-inline: auto;
  padding: clamp(1.6rem, 3.5vw, 2.1rem) clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: 20px;
  background: radial-gradient(120% 150% at 0% 0%, #93404E, var(--wine-deep) 70%);
  color: var(--ivory);
  box-shadow: inset 0 0 0 6px var(--wine-deep), inset 0 0 0 7px rgba(224, 197, 142, .55), 0 30px 60px -40px rgba(91, 31, 43, .55);
}
.news-medal { position: relative; display: grid; place-items: center; width: 88px; height: 88px; }
.news-medal .news-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-medal > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-light); color: var(--wine-deep); }
.news-medal > span svg { width: 25px; height: 25px; }
.news-copy .kicker { margin-bottom: .35rem; color: var(--gold-light); }
.news-copy h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
.news-copy p:last-child { margin: .5rem 0 0; font-size: .95rem; line-height: 1.6; color: rgba(247, 240, 230, .82); }
.news-copy strong { color: var(--ivory); font-weight: 600; }

/* the pill: email field and button together */
.news-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; min-width: 0; }
.news-form[hidden], .news-done[hidden] { display: none; }
.news-row {
  display: flex; align-items: center; gap: .4rem;
  padding: 5px; border-radius: 999px;
  background: var(--card); box-shadow: 0 0 0 1.5px var(--gold);
  transition: box-shadow .2s;
}
.news-row:focus-within { box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(224, 197, 142, .4); }
.news-row input {
  flex: 1; min-width: 0; padding: .55rem .5rem .55rem 1rem;
  border: 0; border-radius: 999px; background: transparent;
  font: 500 1rem var(--font-body); color: var(--ink);
}
.news-row input::placeholder { color: var(--muted); opacity: .8; }
.news-row input:focus { outline: none; }
.news-row .btn { flex: none; }
.news-form.is-invalid .news-row { box-shadow: 0 0 0 2px var(--error), 0 0 0 5px rgba(154, 62, 46, .2); }
.news-msg { margin: 0; padding-left: 1rem; font-size: .85rem; font-weight: 600; color: var(--error); }
.news-card .news-msg { color: #FFD3C6; }
.news-note { margin: 0; padding-left: 1rem; font-size: .8rem; line-height: 1.45; color: rgba(247, 240, 230, .68); }
.news-done { display: flex; align-items: center; gap: .9rem; outline: none; }
.news-done .done-check { flex: none; width: 46px; height: 46px; margin: 0; }
.news-done .done-check svg { width: 22px; height: 22px; }
.news-done p { margin: 0; display: grid; gap: .1rem; line-height: 1.45; }
.news-done strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.news-done p span { font-size: .92rem; }
.news-card .news-done .done-check { background: var(--gold-light); color: var(--wine-deep); }
.news-card .news-done p span { color: rgba(247, 240, 230, .82); }

/* footer: one line */
.footer-news {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.8rem 1.6rem;
  border-top: 1px solid rgba(191, 149, 80, .5);
}
.footer-news + .footer-inner { padding-top: 1.6rem; border-top-color: var(--line); }
.footer-news-text { margin: 0; display: flex; align-items: center; gap: .85rem; }
.footer-news-text > svg { flex: none; width: 24px; height: 24px; color: var(--gold); }
.footer-news-text > span { display: grid; line-height: 1.35; }
.footer-news-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.footer-news-text strong + span { font-size: .9rem; color: var(--muted); }
.footer-news-side { width: min(100%, 23rem); }
.footer-news .news-row input { padding-block: .45rem; font-size: .95rem; }
.footer-news .news-done .done-check { width: 38px; height: 38px; }
.footer-news .news-done .done-check svg { width: 18px; height: 18px; }
.footer-news .news-done strong { font-size: 1.1rem; }
.footer-news .news-done p span { color: var(--ink-soft); font-size: .88rem; }

@media (max-width: 900px) {
  .news-card { grid-template-columns: auto minmax(0, 1fr); }
  .news-side { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .news-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-inline: 1.3rem; }
  .news-medal { width: 76px; height: 76px; }
  .news-medal > span { width: 46px; height: 46px; }
  .news-side { width: 100%; text-align: left; }
  .news-note, .news-msg { text-align: center; padding-left: 0; }
  .footer-news-side { width: 100%; }
}
@media (max-width: 480px) {
  /* phones: the field and the button one above the other */
  .news-card .news-row { flex-direction: column; align-items: stretch; gap: .6rem; padding: 0; background: none; box-shadow: none; }
  .news-card .news-row input { padding: .85rem 1.1rem; background: var(--card); box-shadow: 0 0 0 1.5px var(--gold); text-align: center; }
  .news-card .news-row input:focus { box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(224, 197, 142, .4); }
  .news-card .news-form.is-invalid .news-row { box-shadow: none; }
  .news-card .news-form.is-invalid input { box-shadow: 0 0 0 2px #FFB7A3; }
  .news-card .news-row .btn { width: 100%; --b-bg: var(--gold-light); --b-bd: var(--gold-light); --b-fg: var(--wine-deep); }
  .news-card .news-done { justify-content: center; text-align: left; }
}

/* ---------- Teachers: one row that slides on its own, in a loop ---------- */
.tc-nav { display: flex; gap: .55rem; }
.tc-arrow {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--gold); background: var(--card); color: var(--wine);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.tc-arrow svg { width: 20px; height: 20px; }
.tc-arrow:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
/* all the teachers fit: no arrows, the row stays still and centred */
.tc-static .tc-nav { visibility: hidden; }
.teacher-reset {
  margin-left: .6rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--wine); font: 600 .9rem var(--font-body); font-style: normal;
  text-decoration: underline; text-underline-offset: 3px;
}

/* the row runs from one edge of the screen to the other, the edges fade out */
.teacher-stage { position: relative; margin-inline: calc(50% - 50vw); }
.teacher-grid {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  position: relative; overflow: hidden; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.teacher-grid:focus-visible { outline: 2px solid var(--wine); outline-offset: -4px; border-radius: 12px; }
.teacher-grid .teacher-empty { width: min(640px, calc(100% - 2 * var(--edge))); margin: 12px auto 24px; }
.tc-strip {
  position: relative; display: flex; align-items: stretch; gap: 1.1rem;
  width: max-content; margin-inline: auto; padding: 12px var(--edge) 24px;
  will-change: transform;
}
.tc-strip > .teacher-card { flex: none; transform: skewX(var(--skew, 0deg)); }
.teacher-grid img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .teachers:not(.tc-static) .teacher-grid { cursor: grab; }
  .teacher-grid.is-dragging { cursor: grabbing; }
  .teacher-grid.is-dragging * { pointer-events: none; }
}

/* compact profile cards */
.teacher-grid .teacher-card { width: min(400px, 86vw); padding: 1.6rem 1.5rem 1.35rem; }
.teacher-grid .teacher-photo { width: 92px; margin-bottom: .75rem; box-shadow: 0 0 0 4px var(--card), 0 0 0 5.5px rgba(191, 149, 80, .7); }
.teacher-grid .teacher-name { font-size: 1.3rem; margin-bottom: .45rem; }
.teacher-grid .teacher-langs { margin-bottom: .75rem; }
.teacher-grid .lang-tag { font-size: .78rem; }
.teacher-grid .lang-tag .lang-mark { width: 20px; height: 20px; }
.teacher-grid .teacher-tagline { margin: -.1rem 0 .8rem; padding: .45rem .75rem; font-size: .84rem; }
.teacher-grid .teacher-tagline svg { width: 17px; height: 17px; }
.teacher-grid .teacher-facts { gap: .3rem; margin: 0 0 .75rem; padding-top: .7rem; }
.teacher-grid .teacher-facts li { gap: .5rem; font-size: .82rem; }
.teacher-grid .teacher-facts svg { width: 15px; height: 15px; }
/* the whole text about the teacher is shown (the cards are wide enough; "Read more" stays hidden) */
.teacher-grid .teacher-bio { margin: 0 0 .3rem; font-size: .87rem; line-height: 1.55; }
.teacher-grid .teacher-card.is-open .teacher-bio { display: block; overflow: visible; }
.teacher-more {
  align-self: flex-start; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--wine); font: 600 .84rem var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}
.teacher-more[hidden] { display: none; }

@media (max-width: 760px) {
  .teacher-toolbar { flex-direction: row; align-items: center; }
  .tc-arrow { width: 42px; height: 42px; }
}

/* ---------- How it works: "Language is just the beginning" ---------- */
.approach .section-head h2 span { color: var(--wine); }
.approach .section-head .lead { max-width: 36rem; margin-inline: auto; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.pillars li { padding: 1.6rem 1.35rem 1.45rem; border-radius: 16px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame); }
.pillars h3 { margin-bottom: .45rem; font-size: 1.22rem; line-height: 1.2; }
.pillars p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }
.pillars strong { font-weight: 600; color: var(--ink); }
/* three steps joined by a dotted line */
.path {
  position: relative; list-style: none; max-width: 980px; margin: clamp(2.6rem, 5vw, 3.6rem) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
}
.path::before { content: ""; position: absolute; top: 26px; left: 17%; right: 17%; border-top: 1.5px dashed rgba(191, 149, 80, .65); }
.path li { position: relative; display: grid; justify-items: center; align-content: start; gap: .35rem; text-align: center; }
.path-n {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: .45rem;
  border-radius: 50%; background: var(--wine); color: var(--ivory);
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1;
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6.5px var(--gold);
}
.path h3 { font-size: 1.25rem; }
.path p { margin: 0; max-width: 17rem; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.approach-cta { margin: 2.4rem 0 0; text-align: center; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .path::before { top: 26px; bottom: 26px; left: 50%; right: auto; border-top: 0; border-left: 1.5px dashed rgba(191, 149, 80, .65); }
  .path li { background: var(--ivory); padding-bottom: .2rem; }
}

/* ---------- Languages block: a boarding pass for each language ---------- */
.lang-band { position: relative; overflow: hidden; padding-block: clamp(3.8rem, 7vw, 5.5rem); background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); }
.lv-head { max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 2.8rem); text-align: center; }
.lv-head h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.lv-head .flourish { margin: .8rem auto .9rem; }
.lv-hint { margin: 0; font-style: italic; color: var(--muted); }
.lcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.5rem; max-width: 900px; margin-inline: auto; }
/* the ticket: notches at both ends of the dotted line before the stub */
.lc {
  --bg: var(--card); --fg: var(--ink); --stub: 96px;
  position: relative; display: flex; align-items: center; min-height: 132px; margin: 0; padding: 0;
  border: 0; border-radius: 14px; color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  background:
    radial-gradient(circle at calc(100% - var(--stub)) 0, transparent 11px, var(--bg) 11.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent 11px, var(--bg) 11.5px) bottom / 100% 51% no-repeat;
  filter: drop-shadow(0 0 .6px rgba(191, 149, 80, .95)) drop-shadow(0 12px 18px rgba(91, 31, 43, .15));
  transition: transform .35s var(--ease);
}
/* an odd number of languages (3 on the English site): the last ticket is centred */
.lc:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .75rem); }
.lc:hover { transform: translateY(-4px); }
.lc:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
/* the language picked: a wine ticket */
.lc[aria-pressed="true"] { --bg: var(--wine); --fg: var(--ivory); }
.lc-art {
  position: relative; flex: none; align-self: stretch; width: 27%; overflow: hidden; border-radius: 14px 0 0 14px;
  background: radial-gradient(120% 100% at 20% 0%, #93404E, var(--wine-deep) 75%); color: var(--gold-light);
}
.lc-landmark { position: absolute; left: 8%; bottom: 0; width: 84%; height: 80%; fill: currentColor; }
.lc-name { flex: 1; min-width: 0; padding: 0 1.1rem; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.05; }
.lc-flag { flex: none; align-self: stretch; display: grid; place-items: center; width: var(--stub); border-left: 1.5px dashed rgba(191, 149, 80, .75); }
.lc[aria-pressed="true"] .lc-flag { border-left-color: rgba(224, 197, 142, .6); }
.lc-flag .lang-mark { width: 48px; height: 48px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(191, 149, 80, .8); }
.lc-soon { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1.8rem 0 0; font-style: italic; font-size: .95rem; color: var(--muted); }
.lc-plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--gold); font-style: normal; color: var(--gold); }
@media (max-width: 760px) {
  .lcards { grid-template-columns: 1fr; max-width: 460px; gap: 1rem; }
  .lc { --stub: 76px; min-height: 104px; }
  .lc:last-child:nth-child(odd) { width: 100%; }
  .lc-art { width: 24%; }
  .lc-name { padding: 0 .9rem; font-size: 1.25rem; }
  .lc-flag .lang-mark { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .lc { transition: none; }
}

/* ---------- Blog (draft) ---------- */
.blog { padding-top: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: var(--frame); }
.post-visual { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; margin: 7px 7px 0; border-radius: 12px; }
.post-ring { position: absolute; width: 250px; height: 250px; right: -70px; top: -70px; opacity: .45; }
.post-word { position: relative; padding: 0 1rem; font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; text-align: center; color: var(--wine-deep); }
.post-tag {
  position: absolute; left: .9rem; top: .9rem; padding: .25rem .7rem; border-radius: 999px;
  background: rgba(252, 248, 242, .88); color: var(--wine);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.post.is-fr .post-visual { background: linear-gradient(160deg, #F4E3DA, var(--blush-2)); }
.post.is-tips .post-visual { --mu-gold: var(--gold-light); background: radial-gradient(120% 120% at 15% 0%, #93404E, var(--wine-deep) 75%); }
.post.is-tips .post-word { color: var(--ivory); }
.post.is-tr .post-visual { background: linear-gradient(160deg, #F6EBD6, var(--gold-light)); }
.post-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.3rem 1.3rem; }
.post-meta { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.post h3 { font-size: 1.3rem; line-height: 1.2; }
.post-body p:not(.post-meta) { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.post-soon { align-self: flex-start; margin-top: auto; padding-top: .8rem; font-size: .82rem; font-style: italic; color: var(--muted); }
/* Blog article cards: a photo under a colour wash, like the speaking club cards.
   is-brown for the brown wash. Used on the home page (Russian), the blog page and under each article. */
.bcard {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 430px; padding: 1.5rem 1.5rem 1.4rem; border-radius: 18px;
  color: var(--ivory); background: var(--wine-deep);
  box-shadow: 0 22px 44px -26px rgba(58, 42, 39, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bcard-photo { position: absolute; inset: 0 0 auto; z-index: -2; width: 100%; height: 72%; object-fit: cover; object-position: center 35%; filter: saturate(.8); transition: transform .7s var(--ease); }
.bcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(122, 46, 60, .42) 0%, rgba(104, 37, 50, .7) 36%, rgba(91, 31, 43, .94) 62%, #5B1F2B 100%); }
.bcard.is-brown { background: #33241E; }
.bcard.is-brown::before { background: linear-gradient(180deg, rgba(68, 47, 38, .38) 0%, rgba(60, 42, 34, .68) 36%, rgba(51, 36, 30, .94) 62%, #33241E 100%); }
.bcard::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(224, 197, 142, .6); border-radius: 12px; pointer-events: none; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -26px rgba(58, 42, 39, .7); }
.bcard:hover .bcard-photo { transform: scale(1.04); }
.bcard .bcard-tag {
  align-self: flex-start; margin: 0 0 auto; padding: .35rem .85rem; border-radius: 999px;
  background: rgba(247, 240, 230, .14); border: 1px solid rgba(224, 197, 142, .55);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
}
.bcard .bcard-meta { margin: 1.4rem 0 .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.bcard .bcard-title { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 400; font-size: 1.42rem; line-height: 1.2; color: var(--ivory); }
.bcard .bcard-link { color: inherit; text-decoration: none; }
.bcard .bcard-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bcard .bcard-link:focus-visible { outline: none; }
.bcard:has(.bcard-link:focus-visible) { outline: 2px solid var(--wine); outline-offset: 3px; }
.bcard .bcard-text { margin: 0 0 1.1rem; font-size: .92rem; line-height: 1.55; color: rgba(247, 240, 230, .84); }
.bcard .bcard-read { margin-top: auto; padding-top: .9rem; border-top: 1px dashed rgba(224, 197, 142, .45); font-size: .88rem; font-weight: 600; color: var(--gold-light); }
@media (max-width: 860px) { .bcard { min-height: 400px; } }
.blog-all { margin: 1.8rem 0 0; text-align: center; font-weight: 600; }
.blog-all a { color: var(--wine); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .post-visual { height: 140px; }
}

/* ---------- Lesson request: four fields, compact ---------- */
.sform { gap: .85rem; }
.sform .field { gap: .3rem; }
.sform .field input, .sform .field select { padding-block: .7rem; }
.sform-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.sform-head .sform-title { margin: 0; }
.sform-req { margin: 0; font-size: .8rem; color: var(--muted); }
.req { margin-left: .2rem; color: var(--wine); font-weight: 700; }
.sform-choice {
  display: flex; align-items: center; gap: .55rem; margin: 0;
  padding: .45rem .45rem .45rem .8rem; border-radius: 12px;
  background: var(--primary-tint); color: var(--wine); font-size: .88rem; line-height: 1.35;
}
.sform-choice[hidden] { display: none; }
.sform-choice > svg { flex: none; width: 17px; height: 17px; }
.sform-choice strong { font-weight: 600; }
.sform-choice button {
  flex: none; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--wine); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.sform-choice button:hover { background: var(--primary-tint-hover); }
/* buttons to click: Telegram / WhatsApp / phone, and the languages (flags) */
.field[hidden] { display: none; }
.pick-field legend { padding: 0; margin-bottom: .1rem; font-size: .85rem; font-weight: 700; color: var(--ink); }
.picks { display: grid; gap: .5rem; }
.picks.is-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.picks.is-langs { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
/* "not sure yet": a slim line under the flags */
.pick.is-unsure { grid-column: 1 / -1; flex-direction: row; gap: .5rem; padding-block: .4rem; }
.pick.is-unsure .pick-logo, .pick.is-unsure .pick-logo .lang-mark { width: 22px; height: 22px; }
.pick {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: .6rem .35rem .5rem; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface-2);
  font-size: .84rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick:hover { border-color: rgba(191, 149, 80, .65); transform: translateY(-1px); }
.pick:has(input:checked) { border-color: var(--wine); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-tint); }
.pick:has(input:focus-visible) { outline: 2px solid var(--wine); outline-offset: 2px; }
.pick-logo { width: 28px; height: 28px; display: grid; place-items: center; }
.pick-logo svg { width: 28px; height: 28px; }
/* Telegram, WhatsApp, phone: one tone, soft until picked, then wine */
.is-methods .pick-logo { --logo-c: var(--blush); --logo-fg: var(--wine); }
.is-methods .pick:hover .pick-logo { --logo-c: var(--blush-2); }
.is-methods .pick:has(input:checked) .pick-logo { --logo-c: var(--wine); --logo-fg: var(--ivory); }
.pick-logo .lang-mark { width: 26px; height: 26px; }
.pick-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-unsure { display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--wine); font-size: .85rem; font-weight: 700; }
.field.is-invalid .pick { border-color: rgba(154, 62, 46, .45); background: var(--error-bg); }

/* ---------- Pop-up with the lesson request form (packs) ---------- */
html.has-modal { overflow: hidden; }
.req-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1.5px solid var(--gold); border-radius: 20px;
  background: var(--card); color: var(--ink);
  box-shadow: var(--frame), 0 40px 90px -30px rgba(43, 30, 28, .65);
}
.req-dialog::backdrop { background: rgba(43, 30, 28, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.req-dialog[open] { animation: req-in .35s var(--ease) both; }
@keyframes req-in { from { opacity: 0; translate: 0 14px; } }
.req-slot { padding: clamp(1.4rem, 4vw, 2.1rem); }
.req-slot .sform-head { padding-right: 2.6rem; }
.req-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1.5px solid rgba(191, 149, 80, .6); background: var(--card);
  color: var(--wine); font-size: 1.45rem; line-height: 1; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.req-close:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
@media (prefers-reduced-motion: reduce) { .req-dialog[open] { animation: none; } }

/* course plans on the English site: the button goes to Stripe, a small card shows it's a payment */
.pay-icon { display: none; }
[data-paying] .pay-icon { display: block; }
[data-paying]:hover .pay-icon { transform: none; }

/* ==========================================================================
   Teacher profile: a click on a card opens it in a large window (script.js)
   ========================================================================== */
.teacher-grid .teacher-card[data-id] { cursor: pointer; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .teachers:not(.tc-static) .teacher-grid .teacher-card[data-id] { cursor: pointer; }
  .teacher-grid .teacher-card[data-id]:hover { border-color: var(--wine); box-shadow: var(--frame), 0 18px 34px -22px rgba(91, 31, 43, .5); }
}
/* the name is the button for the keyboard (it looks like the name) */
.teacher-open { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.teacher-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.tp-dialog {
  margin: auto; padding: 0; border: 0; width: min(980px, calc(100vw - 32px)); max-width: none; max-height: none;
  background: transparent; color: var(--ink); overflow: visible;
}
.tp-dialog::backdrop { background: rgba(43, 30, 28, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tp {
  position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); max-height: calc(100dvh - 32px);
  overflow: auto; overscroll-behavior: contain; background: var(--card);
  border-radius: 22px; border: 1.5px solid var(--gold); box-shadow: var(--frame), 0 40px 90px -30px rgba(43, 30, 28, .65);
}
.tp-close { position: absolute; top: .8rem; right: .8rem; z-index: 5; }
.tp-side {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.4rem 1.6rem 1.8rem; text-align: center;
  background: radial-gradient(120% 90% at 18% 8%, #93404E, var(--wine-deep) 72%); color: var(--ivory);
}
.tp-photo { width: 168px; margin: 0; box-shadow: 0 0 0 5px var(--wine-deep), 0 0 0 6.5px var(--gold-light); }
.tp-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0 0 .6rem; }
.tp-langs .lang-tag { font-size: .8rem; }
.tp-langs .lang-tag .lang-mark { width: 22px; height: 22px; }
.tp-name { margin: 0 0 .7rem; font-size: 2.2rem; line-height: 1.05; color: var(--ivory); }
.tp-id .teacher-tagline { margin: 0; text-align: center; }
.tp-book { --b-bg: var(--ivory); --b-bd: var(--ivory); --b-fg: var(--wine-deep); gap: .55rem; margin-top: auto; }
.tp-book:not(:disabled):hover { --b-bg: var(--gold-light); --b-bd: var(--gold-light); --b-fg: var(--wine-deep); }
.tp-book svg { width: 18px; height: 18px; }
.tp-main { padding: 2.6rem 2.4rem 2.2rem; }
.tp-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 0 0 1.6rem; padding: 0; }
.tp-tile {
  display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px; background: var(--ivory); box-shadow: inset 0 0 0 1.5px rgba(191, 149, 80, .55);
  font-size: .84rem; line-height: 1.35; color: var(--ink-soft);
}
.tp-big { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--wine); }
.tp-flag .lang-mark { width: 38px; height: 38px; box-shadow: 0 0 0 2px var(--gold-light); }
.tp-facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.4rem; margin: 0 0 1.8rem; padding: 1.3rem 0 0; border-top: 1px dashed rgba(191, 149, 80, .55); }
.tp-facts li { display: grid; grid-template-columns: 22px 1fr; column-gap: .6rem; align-items: start; }
.tp-facts svg { grid-row: span 2; width: 20px; height: 20px; margin-top: .1rem; color: var(--gold); }
.tp-fact-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tp-fact-value { font-size: .95rem; line-height: 1.4; color: var(--ink); }
.tp-kicker { margin: 0 0 .6rem; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tp-bio { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.tp-bio strong { font-weight: 600; color: var(--ink); }
/* phones: the profile takes the whole screen */
@media (max-width: 760px) {
  .tp-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .tp { grid-template-columns: 1fr; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .tp-close { position: fixed; top: 1rem; right: 1rem; background: rgba(252, 248, 242, .94); }
  .tp-side { padding: 3rem var(--gutter) 1.8rem; }
  .tp-main { padding: 1.8rem var(--gutter) 2.4rem; }
  .tp-facts { grid-template-columns: 1fr; }
}
