/* ==========================================================================================
   Premium layer — loaded after styles.css. Layout and type modelled on Titan Intake (cream page, framed
   hero card, light display serif with tight tracking, // mono labels, pill buttons with an arrow), graphics
   and staging modelled on Shopify (dark rounded panels with soft glows, the panel that slides over the hero,
   two-tone statement, big numbers). Everything here is our own code; delete this file to roll back.
   ========================================================================================== */
:root {
  --cream: #fff8ec;
  --cream-2: #f6eddb;
  --ink: #14334b;
  --ink-2: #1f4763;
  --navy: #14334b;
  --text: #22384a;
  --muted: #5f7080;
  --accent: #ff5a1f;
  --accent-2: #e64a12;
  --lime: #efff9e;
  --dark: #061519;
  --dark-2: #0b242b;
  --line: rgba(20, 51, 75, .13);
  --sand: var(--cream-2);
  --radius: 22px;
  --display: "Instrument Serif", "Noto Serif Display", "Frank Ruhl Libre", Georgia, serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

body { background: var(--cream); color: var(--text); font-size: 17px; letter-spacing: -.005em; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(3rem, 5.6vw, 5.8rem); line-height: 1; letter-spacing: -.012em; word-spacing: .02em; }
h2 { font-size: clamp(2.35rem, 4.3vw, 4.25rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: .4em; }
h3 { font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.14; letter-spacing: -.005em; }
:lang(ru) h1 { font-size: clamp(2.5rem, 4.6vw, 4.7rem); letter-spacing: -.02em; }
:lang(ru) h2 { font-size: clamp(2.05rem, 3.6vw, 3.6rem); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; font-weight: 400; letter-spacing: 0; }
[dir="rtl"] h1 { font-size: clamp(2.5rem, 4.8vw, 4.8rem); line-height: 1.08; }
.wrap { max-width: 1240px; padding: 0 28px; }
a { color: var(--ink); }

/* // mono labels */
.eyebrow, .price-label, .rn-tag { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; font-size: .78rem; text-transform: uppercase; }
.eyebrow { color: var(--ink); opacity: .82; margin-bottom: 1.2em; }
.eyebrow::before { content: "// "; color: var(--accent); }
.eyebrow.light, .section-dark .eyebrow, .video-band .eyebrow, .area .eyebrow { color: var(--lime); opacity: 1; }
.section-dark .eyebrow::before, .video-band .eyebrow::before, .area .eyebrow::before { color: var(--lime); opacity: .6; }
[dir="rtl"] .eyebrow::before { content: "\\\\ "; }

/* ---------------------------------------------------------------- buttons: pill + arrow disc */
.btn { font-weight: 500; font-size: .98rem; letter-spacing: -.01em; padding: 12px 22px; border-width: 1.5px; isolation: isolate; position: relative; overflow: hidden;
  transition: color .45s var(--ease-io), background-color .45s var(--ease-io), border-color .45s var(--ease-io), translate .6s var(--ease), box-shadow .45s; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 16px 28px; font-size: 1.04rem; }
.btn-primary { background: var(--accent); color: #fff; animation: none; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); padding-inline-end: 64px; }
.btn-lg.btn-primary { padding-inline-end: 70px; }
.btn-primary::after { content: ""; position: absolute; inset: 6px 6px 6px auto; left: auto; width: auto; aspect-ratio: 1; border-radius: 50%; transform: none; transition: transform .6s var(--ease-io), background-color .45s;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 46% no-repeat; z-index: 1; }
.btn-primary::before { content: ""; position: absolute; inset: 6px 6px 6px auto; aspect-ratio: 1; border-radius: 50%; background: var(--ink); opacity: 1; z-index: -1;
  transform: scale(0); transition: transform .7s var(--ease-io); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 16px 36px -12px rgba(20, 51, 75, .6); transform: none; }
.btn-primary:hover::before { transform: scale(12); }
.btn-primary:hover::after { transform: rotate(45deg); left: auto; }
[dir="rtl"] .btn-primary::after, [dir="rtl"] .btn-primary::before { inset: 6px auto 6px 6px; }
[dir="rtl"] .btn-primary::after { transform: scaleX(-1); } [dir="rtl"] .btn-primary:hover::after { transform: scaleX(-1) rotate(45deg); }
.btn-outline, .btn-ghost, .btn-light { border-color: currentColor; }
.btn-outline { color: var(--ink); border-color: rgba(20, 51, 75, .35); background: rgba(255, 255, 255, .35); backdrop-filter: blur(10px); }
.btn-outline::before, .btn-light::before, .btn-ghost::before { content: ""; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); transform: scale(0); transition: transform .7s var(--ease-io); z-index: -1; }
.btn-outline:hover { color: #fff; background: rgba(255, 255, 255, .35); border-color: var(--ink); }
.btn-outline:hover::before, .btn-light:hover::before { transform: scale(60); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light::before { background: var(--lime); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: transparent; }
.section-dark .btn-outline, .video-band .btn-outline, .area .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }
.section-dark .btn-outline::before { background: #fff; }
.section-dark .btn-outline:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before, .btn::after { transition: none !important; } }

/* ---------------------------------------------------------------- top bar + header */
.topbar { background: var(--ink); color: rgba(255, 248, 236, .82); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.topbar-in { padding-top: 8px; padding-bottom: 8px; }
.site-header { background: rgba(255, 248, 236, 0); border-bottom: 1px solid transparent; backdrop-filter: none; transition: background .4s, border-color .4s, transform .5s var(--ease), box-shadow .4s; }
.site-header.scrolled { background: rgba(255, 248, 236, .82); backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--line); }
.site-header.tucked { transform: translateY(-100%); }
.header-in { min-height: 78px; gap: 22px; }
.brand-text { font-family: var(--display); }
.brand-text strong { font-weight: 400; font-size: 1.32rem; letter-spacing: -.01em; color: var(--ink); }
.brand-text span { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; color: var(--accent); }
.nav { gap: 2px; margin: 0 auto; align-items: center; }
.nav a, .nav-more-btn { white-space: nowrap; position: relative; font-size: .93rem; font-weight: 450; color: var(--ink); padding: 8px 12px; border-radius: 999px; background: none; }
.nav a::after, .nav-more-btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav-more-btn:hover { background: none; color: var(--ink); }
.nav a:hover::after, .nav-more-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-more { position: relative; }
.nav-more-btn { border: 0; font-family: var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-more-btn::before { content: ""; order: 2; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--ease); }
.nav-more.open .nav-more-btn::before { transform: translateY(1px) rotate(225deg); }
.nav-drop { position: absolute; top: calc(100% + 10px); inset-inline-start: -8px; min-width: 230px; display: grid; padding: 8px; border-radius: 20px;
  background: rgba(255, 252, 245, .92); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(20, 51, 75, .35);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; pointer-events: none; transition: opacity .3s, transform .45s var(--ease); }
.nav-more.open .nav-drop, .nav-more:focus-within .nav-drop { opacity: 1; transform: none; pointer-events: auto; }
.nav-drop a { padding: 11px 14px; border-radius: 12px; }
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: rgba(20, 51, 75, .06); }
.lang { border-color: var(--line); background: rgba(255, 255, 255, .5); }
.lang button { background: transparent; font-family: var(--mono); font-weight: 500; font-size: .74rem; color: var(--ink); opacity: .7; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); opacity: 1; }
.phone-link { font-weight: 500; }
.header-actions .btn-primary { padding: 10px 52px 10px 18px; font-size: .92rem; box-shadow: none; }
.menu-btn span { background: var(--ink); }

/* ---------------------------------------------------------------- hero: framed 3D card (Titan layout) */
.stack { position: relative; }
.hero.hero-x { background: none; padding: 6px 0 0; position: sticky; top: 0; z-index: 0; }
.hero-card { position: relative; margin: 0 18px; height: clamp(660px, calc(100vh - 128px), 920px); height: clamp(660px, calc(100svh - 128px), 920px); border-radius: 34px; overflow: hidden; isolation: isolate; transform-origin: 50% 0;
  background: radial-gradient(90% 80% at 70% 30%, #ffe0bd 0%, #f7b88c 40%, #de8c83 72%, #8e617c 100%); }
.hero-card::after { content: ""; position: absolute; inset: 0; background: #041014; opacity: var(--cover, 0); pointer-events: none; z-index: 6; }
.hero-card .hero-3d { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: none; z-index: 0; }
.hero-card .hero-fallback { position: absolute; inset: 0; margin: 0; }
.hero-card .hero-fallback img { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; object-fit: cover; box-shadow: none; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 246, 232, .94) 0%, rgba(255, 246, 232, calc(.62 + .24 * var(--vk, 1))) 28%, rgba(255, 244, 228, calc(.45 * var(--vk, 1))) 45%, rgba(255, 244, 228, 0) 60%),
              linear-gradient(0deg, rgba(255, 244, 228, calc(.55 * var(--vk, 1))) 0%, rgba(255, 244, 228, 0) 22%); }
[dir="rtl"] .hero-veil { transform: scaleX(-1); }                 /* the cream veil sits behind the text, which is on the right */
.hero-frame { position: absolute; inset: 22px; z-index: 2; border: 1px solid rgba(20, 51, 75, .22); border-radius: 18px; pointer-events: none; }
.hero-arrows { position: absolute; top: 48px; inset-inline-end: 52px; width: 88px; height: 88px; z-index: 2; color: rgba(255, 252, 240, .9); }
.hero-arrows path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: arrowDraw 1.2s var(--ease) forwards, arrowBob 4s 2s ease-in-out infinite; }
.hero-arrows path:nth-child(2) { animation-delay: .15s, 2.3s; } .hero-arrows path:nth-child(3) { animation-delay: .3s, 2.6s; } .hero-arrows path:nth-child(4) { animation-delay: .45s, 2.9s; }
@keyframes arrowDraw { to { stroke-dashoffset: 0; } }
@keyframes arrowBob { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
[dir="rtl"] .hero-arrows { transform: scaleX(-1); }
.hero-card .hero-copy { position: absolute; z-index: 3; inset-inline-start: clamp(40px, 5.4vw, 92px); top: 50%; transform: translateY(-54%); width: min(620px, 47%); }
.hero-card .hero-copy h1 { margin-bottom: .18em; }
.hero-card .hero-copy .hero-sub { font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.18; color: var(--ink); margin: 0 0 .7em; }
[dir="rtl"] .hero-card .hero-copy .hero-sub { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; }
.hero-card .lead { font-size: 1.08rem; line-height: 1.55; color: var(--text); max-width: 540px; }
.hero-card .offer { background: rgba(255, 255, 255, .6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 90, 31, .45); padding: 6px 16px 6px 6px; font-size: .95rem; }
.hero-card .offer-pill { background: var(--accent); font-family: var(--mono); font-weight: 500; letter-spacing: .06em; font-size: .7rem; }
.hero-card .hero-cta { margin: 26px 0 0; gap: 12px; }
.hero-tags { position: absolute; z-index: 3; bottom: 4px; inset-inline-start: 56px; display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.hero-tags li { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(20, 51, 75, .3); background: rgba(255, 248, 236, .9); backdrop-filter: blur(8px); }
.hero-tags li::before { content: "+"; -webkit-mask: none; mask: none; background: none; width: auto; height: auto; margin-inline-end: 6px; color: var(--accent); vertical-align: 0; display: inline; }
.hero-3d-hint { left: auto; inset-inline-end: 44px; bottom: 44px; font-family: var(--mono); font-weight: 500; letter-spacing: .04em; font-size: .68rem; text-transform: uppercase; }
.hero-card .hero-3d { cursor: grab; }

/* the film's caption: lesson step, title, one line, progress; glass card at the lower right of the hero */
.hero-3d-hint { display: none; }
.story-cap { position: absolute; z-index: 4; inset-inline-end: 52px; bottom: 104px; width: min(430px, 34%); padding: 18px 20px 16px; border-radius: 22px;
  background: rgba(255, 250, 240, .8); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(20, 51, 75, .14); box-shadow: 0 30px 60px -30px rgba(20, 51, 75, .5);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.story-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.story-idx { font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.story-nav { display: inline-flex; gap: 6px; }
.story-nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: .9rem; line-height: 1; display: grid; place-items: center; transition: background .3s, color .3s; }
.story-nav button:hover { background: var(--ink); color: #fff; }
.story-nav button[hidden] { display: none; }
.i-pause { width: 10px; height: 11px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.story-pause.is-paused .i-pause { width: 0; height: 0; border: 0; border-block: 6px solid transparent; border-inline-start: 10px solid currentColor; margin-inline-start: 3px; }
.story-nav button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[dir="rtl"] .story-nav button span { display: inline-block; transform: scaleX(-1); }
.story-title { font-size: 1.55rem; line-height: 1.1; margin: 0 0 6px; }
.story-line { font-size: .92rem; line-height: 1.45; color: var(--text); margin: 0 0 12px; }
.story-line:empty { display: none; }
.story-bar { height: 2px; background: rgba(20, 51, 75, .12); border-radius: 2px; overflow: hidden; }
.story-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .story-bar i { transform-origin: right; }
.story-cap.swap .story-title, .story-cap.swap .story-line { animation: capIn .7s var(--ease) both; }
.story-cap.swap .story-line { animation-delay: .08s; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* the dark panel slides over the hero (Shopify staging) */
.video-band { position: relative; z-index: 2; margin: 18px 18px 0; border-radius: 40px; padding: clamp(84px, 11vw, 150px) 0 clamp(64px, 8vw, 110px); overflow: hidden;
  background: radial-gradient(900px 520px at 12% 0%, rgba(47, 179, 168, .22), transparent 60%), radial-gradient(700px 480px at 95% 100%, rgba(255, 90, 31, .16), transparent 62%), var(--dark); color: #fff; }
.statement { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 4.4rem); line-height: 1.06; letter-spacing: -.012em; color: #fff; max-width: 1080px; margin: 0 0 clamp(64px, 8vw, 110px); }
:lang(ru) .statement { font-size: clamp(1.8rem, 3.6vw, 3.5rem); }
[dir="rtl"] .statement { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; letter-spacing: 0; line-height: 1.2; }
.statement .dim { color: #fff; }
.statement .lw { transition: opacity .25s linear; }
.video-band h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.video-frame { border-radius: 26px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 120px -30px rgba(47, 179, 168, .45), 0 0 0 10px rgba(255, 255, 255, .03); max-width: none; }

/* ---------------------------------------------------------------- headings: word mask reveal (motion.js) */
.masked .mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.masked .mwi { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(8px);
  transition: transform 1.1s var(--ease) calc(var(--i) * 42ms), opacity .7s ease calc(var(--i) * 42ms), filter 1s ease calc(var(--i) * 42ms); }
.masked.in .mwi { transform: none; opacity: 1; filter: none; }
.still .masked .mwi { transform: none; opacity: 1; filter: none; transition: none; }
.reveal { opacity: 1; transform: none; transition: none; }            /* motion.js drives block motion now */
.rise { will-change: translate, opacity; }

/* ---------------------------------------------------------------- sections, cards, surfaces */
.section { padding: clamp(84px, 10vw, 140px) 0; }
.section-tint { background: var(--cream-2); }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:not(.eyebrow) { font-size: 1.12rem; color: var(--muted); max-width: 700px; }
.card, .ho, .step, .price-card, .bk-step, details, .rights-panel, .eq-card { border-color: var(--line); background: #fffdf8; }
.card { border-radius: 26px; padding: 8px; box-shadow: 0 1px 0 rgba(20, 51, 75, .04); transition: box-shadow .5s var(--ease), transform .25s ease; }
.card img { border-radius: 19px; }
.card-body { padding: 18px 16px 18px; }
.card:hover, .tilt:hover { box-shadow: 0 40px 80px -40px rgba(20, 51, 75, .45); transform: none; }
.ho { border-radius: 26px; }
.step { border-radius: 26px; padding: 30px 28px; }
.num { background: none; color: var(--accent); font-family: var(--mono); font-weight: 500; width: auto; height: auto; border-radius: 0; font-size: .9rem; letter-spacing: .04em; }
.num::before { content: "0"; }
.checks li { border-bottom: 1px solid var(--line); padding-top: 13px; padding-bottom: 13px; }
.checks li::before { background: none; border: 1px solid var(--line); color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: .8rem; top: 12px; }
.feature-img img, .rn-img img { border-radius: 28px; }
.strip { background: var(--cream); border-color: var(--line); }
.strip strong { font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.strip-grid > div { padding-top: 34px; padding-bottom: 34px; border-color: var(--line); }
.strip-grid > div > .ico-svg { background: rgba(255, 90, 31, .1); color: var(--accent); border-radius: 14px; }

/* dark rounded panels with glows (Shopify) */
.section-dark, .area { margin: 0 18px; border-radius: 40px; overflow: hidden; }
.section-dark { background: radial-gradient(900px 520px at 85% 0%, rgba(47, 179, 168, .2), transparent 60%), radial-gradient(700px 480px at 0% 100%, rgba(255, 90, 31, .12), transparent 62%), var(--dark); }
.rn-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); border-radius: 26px; backdrop-filter: blur(6px); }
.rn-tag { background: var(--lime); color: var(--ink); }

/* pricing */
.price-card { border-radius: 28px; padding: 32px 30px; }
.price-card.main { border: 1px solid rgba(255, 90, 31, .5); background: radial-gradient(120% 90% at 100% 0%, rgba(255, 90, 31, .12), transparent 55%), #fffdf8; box-shadow: 0 40px 80px -40px rgba(255, 90, 31, .45); }
.amt { font-family: var(--display); font-weight: 400; font-size: 4.4rem; letter-spacing: -.01em; }
.price-label { color: var(--accent); }
.offer-tag { background: var(--accent); font-family: var(--mono); font-weight: 500; }

/* FAQ */
details { border-radius: 20px; padding: 0 24px; transition: background .3s; }
details[open] { background: #fff; }
summary { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); padding: 22px 40px 22px 0; }
summary::after { content: ""; width: 28px; height: 28px; top: 50%; margin-top: -14px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease), background .3s;
  background: linear-gradient(var(--accent), var(--accent)) center / 11px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 11px no-repeat; }
details[open] summary::after { content: ""; transform: rotate(135deg); background-color: rgba(255, 90, 31, .08); }
[dir="rtl"] summary { padding: 22px 0 22px 40px; font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; }

/* booking + forms */
.bk-step { border-radius: 26px; padding: 26px; box-shadow: none; }
.bk-step legend { font-family: var(--display); font-weight: 400; font-size: 1.55rem; }
.bk-step legend .num { background: none; color: var(--accent); }
.pills span { border: 1px solid var(--line); font-weight: 500; }
.pills input:checked + span, .cal-day.sel, .slot.sel, .rights-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.field input, .field select, .field textarea { border-radius: 14px; border: 1px solid rgba(20, 51, 75, .22); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .14); }
.cal-day, .slot { border-radius: 12px; border: 1px solid var(--line); }
.cal-head strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.summary { background: rgba(255, 90, 31, .08); color: var(--ink); border-radius: 14px; }
.rights-tabs button { border: 1px solid var(--line); font-weight: 500; }
.rights-panel { border-radius: 26px; box-shadow: 0 40px 80px -50px rgba(20, 51, 75, .45); }
.rphone { background: var(--ink); border-radius: 16px; }
.notice { background: #fffdf8; border-inline-start: 3px solid var(--accent); border-left-color: var(--accent); }

/* chat button */
.chat-fab { background: var(--ink); box-shadow: 0 18px 40px -12px rgba(20, 51, 75, .7), 0 0 0 6px rgba(255, 255, 255, .5); padding: 14px 22px; }
.chat-fab:hover { background: var(--ink-2); }
.msg.visitor { background: var(--ink); }

/* area band keeps its painted parallax, framed as a rounded panel */
.area { margin-top: 0; }

/* footer */
.footer { background: var(--dark); margin: 18px 18px 0; border-radius: 40px 40px 0 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .hero-card .hero-copy { width: min(560px, 52%); }
  .hero-veil { background: linear-gradient(90deg, rgba(255, 246, 232, .95) 0%, rgba(255, 246, 232, calc(.64 + .24 * var(--vk, 1))) 38%, rgba(255, 244, 228, calc(.4 * var(--vk, 1))) 56%, rgba(255, 244, 228, 0) 70%), linear-gradient(0deg, rgba(255, 244, 228, calc(.55 * var(--vk, 1))) 0%, rgba(255, 244, 228, 0) 22%); }
}
@media (max-width: 1080px) {
  .nav { margin: 0; }
  .nav-more { display: contents; }
  .nav-more-btn { display: none; }
  .nav-drop { position: static; display: contents; opacity: 1; transform: none; pointer-events: auto; }
  .nav a::after { display: none; }
  .nav.open { background: rgba(255, 252, 245, .97); backdrop-filter: blur(16px); border-radius: 0 0 24px 24px; }
}
@media (max-width: 900px), (max-height: 500px) and (orientation: landscape) {   /* short landscape phones stack like portrait: a 660 px card never fits 412 px */
  .hero.hero-x { position: relative; padding-top: 4px; }
  .hero-card { height: auto; margin: 0 10px; border-radius: 28px; display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); }
  .hero-card .hero-3d { position: relative; inset: auto; height: min(58vh, 480px); height: min(58svh, 480px); border-radius: 22px; margin: 8px 8px 0; overflow: hidden;
    background: radial-gradient(90% 80% at 70% 30%, #ffe0bd 0%, #f7b88c 40%, #de8c83 72%, #8e617c 100%); }
  .hero-card .hero-fallback { position: relative; inset: auto; margin: 8px 8px 0; }
  .hero-card .hero-fallback img { border-radius: 22px; aspect-ratio: 4 / 3; }
  .hero-veil, .hero-frame { display: none; }
  .hero-arrows { top: 28px; inset-inline-end: 28px; width: 56px; height: 56px; }
  .hero-card .hero-copy { position: relative; inset: auto; transform: none; width: auto; padding: 28px 22px 8px; }
  .hero-tags { position: relative; inset: auto; padding: 8px 22px 26px; }
  .hero-3d-hint { inset-inline-end: 16px; bottom: 14px; }
  .story-cap { position: relative; inset: auto; width: auto; margin: 10px 8px 0; opacity: 1; transform: none; min-height: 150px; }
  .story-cap:not(.on) .story-title, .story-cap:not(.on) .story-line, .story-cap:not(.on) .story-top { opacity: .35; }
  .video-band { margin: 10px 10px 0; border-radius: 30px; }
  .section-dark, .area { margin: 0 10px; border-radius: 30px; }
  .footer { margin: 10px 10px 0; border-radius: 30px 30px 0 0; }
  .statement { margin-bottom: 64px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: clamp(2.7rem, 11.5vw, 3.4rem); }
  :lang(ru) h1 { font-size: clamp(2.2rem, 9.4vw, 2.9rem); }
  h2 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .btn-lg { padding: 15px 24px; }
  .btn-lg.btn-primary { padding-inline-end: 64px; }
  .hero-card .hero-cta .btn { width: 100%; }
  .header-actions .btn-primary { padding: 9px 46px 9px 14px; font-size: .86rem; }
  .hero-tags li { font-size: .66rem; padding: 8px 12px; }
  .strip strong { font-size: 1.5rem; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .prices > * { min-width: 0; }
  .price { flex-wrap: wrap; }
  .amt { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-arrows path { animation: none; stroke-dashoffset: 0; }
  .story-cap, .story-cap.swap .story-title, .story-cap.swap .story-line { animation: none; transition: none; }
}

/* pricing: four cards (first visit, phone consultation, multiple visits, chat) */
.prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card .btn + .btn { margin-top: 10px; }
.phone-card { border-color: rgba(20, 51, 75, .28); }
@media (max-width: 1100px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }

/* ==========================================================================================
   Phone fit (2026-09-27)
   ========================================================================================== */
/* touch: the film's pause / previous / next at 44 px */
@media (max-width: 900px), (pointer: coarse) {
  .story-nav { gap: 8px; }
  .story-nav button { width: 44px; height: 44px; font-size: 1rem; }
  .hero-card .offer { min-height: 44px; }
}
[dir="rtl"] .hero-card .offer { padding: 6px 6px 6px 16px; }   /* the "Book today" pill sits on the right in Yiddish */
@media (max-width: 640px) { .hero-tags li { font-size: .7rem; } }
/* the chat's Send button keeps room for its arrow disc */
.chat-input .btn-primary { padding: 10px 50px 10px 16px; }
[dir="rtl"] .chat-input .btn-primary { padding: 10px 16px 10px 50px; }

/* footer brand name readable on the dark footer (2026-09-27) */
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: #ff8a5b; }
/* a heading word wider than a narrow phone wraps inside its reveal mask instead of being clipped by it */
.masked .mw { max-width: 100%; }
/* the page ends with the family section: its photo and "Book a check-in visit" scroll clear of the chat button
   (button 70 px + the home-indicator inset) */
main > .section:last-child { padding-bottom: calc(clamp(84px, 10vw, 140px) + 24px + env(safe-area-inset-bottom, 0px)); }
/* the video (16:9 picture + its 52 px control strip) never grows taller than the screen below the header
   (landscape phones): it narrows and centres instead */
.video-frame { max-width: min(100%, calc((100vh - 152px) * 16 / 9)); max-width: min(100%, calc((100svh - 152px) * 16 / 9)); margin-inline: auto; }
/* landscape phones: the film uses the screen height under the header instead of a thin 58 % strip */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-card .hero-3d { height: calc(100vh - 100px); height: calc(100svh - 100px); min-height: 200px; max-height: 480px; }
}
/* the header's Book button pads the side its arrow disc sits on, in Yiddish (right-to-left) too */
.header-actions .btn-primary { padding-inline: 18px 52px; }
@media (max-width: 900px) { .header-actions .btn-primary { padding-inline: 14px 46px; } }

/* video: room for the player's controls UNDER the picture, so they never cover it (owner, 2026-09-27) */
.video-frame { aspect-ratio: auto; }
.video-frame::before { content: ""; display: block; padding-top: calc(56.25% + 52px); }

/* ==========================================================================================
   The hero as a banner (owner, 2026-09-27: "use the banner version on the home page"): the landing film runs full width
   under the header in the banner's own shape (hero3d.js / story3d.js data-frame="banner"), its lesson caption right under
   it, then the headline, the offer and the two buttons, centred. The old overlay hero (text over the 3D) is gone.
   ========================================================================================== */
.hero.hero-x.hero-bn { position: relative; top: auto; padding: 6px 0 0; }
.hero-bn .hero-banner { margin: 0 18px; }
.hero-bn .hero-3d { position: relative; inset: auto; width: 100%; aspect-ratio: 3.2 / 1; height: auto; max-height: 60vh; max-height: 60svh; min-height: 150px;
  border-radius: 34px; overflow: hidden; cursor: default; box-shadow: 0 30px 60px -30px rgba(125, 70, 50, .35);
  background: radial-gradient(90% 80% at 70% 30%, #ffe0bd 0%, #f7b88c 40%, #de8c83 72%, #8e617c 100%); }
.hero-bn .hero-3d canvas { transition: opacity .6s ease; }
.hero-bn .hero-3d.loading canvas { opacity: 0; }                  /* the film starts once the whole street has loaded */
.hero-bn .hero-fallback { margin: 0; }
.hero-bn .hero-fallback img { width: 100%; aspect-ratio: 3.2 / 1; max-height: 60svh; object-fit: cover; border-radius: 34px; box-shadow: none; }
/* the small Replay control on the film once it has played */
.bn-replay { position: absolute; z-index: 3; inset-inline-end: 16px; bottom: 16px; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(20, 51, 75, .72); color: #fff; font: 500 .9rem var(--sans);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.bn-replay[hidden] { display: none; }
.bn-replay:hover { background: var(--ink); }
.bn-replay:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
/* the lesson caption sits right under the film, never over it */
.hero-bn .story-cap { position: relative; inset: auto; width: auto; max-width: 1180px; margin: 12px auto 0; padding: 14px 20px 12px; min-height: 118px;
  opacity: 1; transform: none; pointer-events: auto; box-shadow: none; }
.hero-bn .story-cap:not(.on) .story-title, .hero-bn .story-cap:not(.on) .story-line, .hero-bn .story-cap:not(.on) .story-top { opacity: .35; }
.hero-bn .story-title { font-size: 1.35rem; }
/* the headline block, centred under the film */
.hero-bn .hero-intro { max-width: 940px; margin: 0 auto; padding: clamp(26px, 4vw, 56px) 20px 12px; text-align: center; }
.hero-bn .hero-intro h1 { margin-bottom: .18em; }
.hero-bn .hero-sub { font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.18; color: var(--ink); margin: 0 0 .7em; }
[dir="rtl"] .hero-bn .hero-sub { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif; }
.hero-bn .lead { font-size: 1.08rem; line-height: 1.55; color: var(--text); max-width: 720px; margin-inline: auto; }
.hero-bn .offer { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 90, 31, .45); padding: 6px 16px 6px 6px; font-size: .95rem; min-height: 44px; }
[dir="rtl"] .hero-bn .offer { padding: 6px 6px 6px 16px; }
.hero-bn .offer-pill { background: var(--accent); font-family: var(--mono); font-weight: 500; letter-spacing: .06em; font-size: .7rem; }
.hero-bn .hero-cta { justify-content: center; margin: 24px 0 0; gap: 12px; }
.hero-bn .hero-tags { position: static; inset: auto; justify-content: center; padding: 20px 0 0; }
/* Yiddish keeps the page's own colours here (the old overlay hero turned its text white over the film) */
.yi-plain .hero-bn { background: none; }
.yi-plain .hero-bn h1, .yi-plain .hero-bn .hero-points { color: var(--ink); }
.yi-plain .hero-bn .lead { color: var(--text); }
.yi-plain .hero-bn .eyebrow { color: var(--ink); }
.yi-plain .hero-bn .btn-outline { color: var(--ink); border-color: rgba(20, 51, 75, .35); }
@media (max-width: 1023px) { .hero-bn .hero-3d, .hero-bn .hero-fallback img { aspect-ratio: 2.4 / 1; border-radius: 28px; } }   /* tablets */
@media (max-width: 900px) { .hero-bn .hero-banner { margin: 0 10px; } .hero-bn .story-cap { margin: 10px 0 0; } }
@media (max-width: 640px) {                              /* phones: the phone banner (width x 56 %) */
  .hero-bn .hero-3d, .hero-bn .hero-fallback img { aspect-ratio: 1 / .56; border-radius: 22px; }
  .hero-bn .hero-intro { padding: 26px 10px 8px; }
  .hero-bn .hero-cta .btn { width: 100%; }
  .hero-bn .story-cap { min-height: 150px; padding: 14px 16px 12px; }
  .bn-replay { inset-inline-end: 10px; bottom: 10px; font-size: .85rem; }
}
@media (max-height: 500px) and (orientation: landscape) {   /* landscape phones: header, film and the start of the headline all fit */
  .hero-bn .hero-3d, .hero-bn .hero-fallback img { aspect-ratio: auto; height: calc(100vh - 190px); height: calc(100svh - 190px); min-height: 150px; }
  .hero-bn .hero-intro { padding-top: 20px; }
}
