/* Olga Pavlova Academy of Photography — styles of the public site.
   Plain CSS, no build step. Logical properties (inline/block) mirror the layout
   for Hebrew automatically; [lang="he"] rules are only for typography.
   Breakpoints follow the approved design: 1100px (menu), 900px (one column), 520px. */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #FBF6EE;           /* page background */
  --sand: #F5EDE1;         /* program, reviews */
  --panel: #F7F0E5;        /* "what you get" box in the program */
  --beige: #EFE4D3;        /* final call */
  --tint: #F3E9DA;         /* VIP tag */
  --photo-bg: #E9DCC8;     /* behind photos while they load */
  --white: #FFFFFF;        /* cards */
  --hover: #FFFDF9;

  --ink: #3A2E25;          /* text, dark buttons */
  --ink-hover: #56443A;
  --dark: #2F251E;         /* dark band and footer */
  --dark-deep: #1F1813;
  --text-2: #5E4F43;       /* body text in blocks */
  --muted: #75665A;        /* secondary text: 5:1 on the background */
  --label: #6B5A4B;        /* small capitals */
  --faint: #9C8B7B;        /* decorative numerals only */

  --bronze: #7C5D36;       /* accent words, numbers, icons */
  --gold: #C8A97E;         /* thin lines, dots, borders — never small text */
  --gold-hover: #B8966A;
  --gold-light: #D9BE95;   /* accents on dark */

  --line: #E8DDCD;
  --line-2: #E2D4C0;
  --line-soft: #F1E9DD;

  --on-dark: #F4EBDD;
  --on-dark-2: #E9DDCB;
  --on-dark-muted: #CDBBA4;
  --on-dark-faint: #B8A48C;

  --olive: #5F6B47;        /* success */
  --terracotta: #A3533A;   /* attention, errors */

  /* names kept for the prototype pages */
  --cream: var(--bg);
  --line-strong: var(--line-2);
  --gold-deep: var(--bronze);
  --ink-soft: var(--text-2);
  --ink-deep: var(--dark);

  --font-display: 'Cormorant Garamond', 'Bellefair', Georgia, 'Times New Roman', serif;
  --font-text: 'Manrope', 'Assistant', 'Helvetica Neue', Arial, sans-serif;
  /* Latin numerals stay in Cormorant in every language */
  --font-numbers: 'Cormorant Garamond', Georgia, serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 80px;
  --radius: 6px;
  --radius-sm: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[lang="he"] {
  --font-display: 'Bellefair', 'Cormorant Garamond', Georgia, serif;
  --font-text: 'Assistant', 'Manrope', Arial, sans-serif;
}

@media (max-width: 56.25em) {
  :root { --header-h: 68px; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  /* Cormorant draws old-style figures by default: "01" would read as "OI" */
  font-variant-numeric: lining-nums;
  /* a word wider than its column (very large browser text) breaks instead of widening the page */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 56.3125em) {
  body { font-size: 1.0625rem; }
}
:root[lang="he"] body { font-size: 1.0625rem; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
figure { margin: 0; }
p, ul, ol, dl, dd, h1, h2, h3, h4, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--bronze); }

em { font-style: italic; }
:root[lang="he"] em { font-style: normal; }

::selection { background: rgba(200, 169, 126, .35); color: var(--dark); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: 0; z-index: 100; transform: translateY(-110%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; transform: none; color: var(--bg); }

[hidden] { display: none !important; }

.money { unicode-bidi: isolate; white-space: nowrap; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ----------------------------------------------------------------- icons */
.icon { width: 24px; height: 24px; flex: none; }
.icon--line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon--brand { fill: currentColor; }
.icon--thin { stroke-width: 1; color: var(--bronze); }
.icon__knob { fill: var(--white); }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(80px, 10vw, 150px); }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--format { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.split--author { align-items: center; }
.split__body { display: flex; flex-direction: column; gap: 40px; }
.sticky-col { display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 56.25em) {
  .split, .split--format { grid-template-columns: minmax(0, 1fr); }
  .split--format > .split__media { order: -1; }
  .sticky-col { position: static; }
}

/* ------------------------------------------------------------ typography */
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
}
.kicker--center { justify-content: center; }
.kicker__number {
  font-family: var(--font-numbers);
  font-style: italic;
  font-size: 1.375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bronze);
}
.kicker__line { width: 40px; height: 1px; background: var(--gold); flex: none; }
.section--dark .kicker { color: var(--on-dark-muted); }
.section--dark .kicker__number { color: var(--gold-light); }

.title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.title--md { font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.05; }
.title em, .statement em, .final__text em { color: var(--bronze); }
.section--dark .title { color: var(--on-dark); }
.section--dark .title em { color: var(--gold-light); }

.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 56px; }
.section-head--center { align-items: center; text-align: center; }
.section-lead { color: var(--muted); max-width: 420px; }
.section-head--center .section-lead { max-width: 520px; }

.label {
  margin-bottom: 10px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
}
.label--line { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.label--line::before { content: ""; width: 18px; height: 1px; background: var(--gold); flex: none; }

/* Hebrew: no wide tracking for capitals, no thin weights the font lacks */
:root[lang="he"] .kicker, :root[lang="he"] .label, :root[lang="he"] .site-nav,
:root[lang="he"] .hero__subtitle, :root[lang="he"] .photo-caption,
:root[lang="he"] .plan__badge, :root[lang="he"] .review__role, :root[lang="he"] .gallery-head__count,
:root[lang="he"] .site-footer__title, :root[lang="he"] .strip__count {
  letter-spacing: .03em;
  font-size: .875rem;
}
:root[lang="he"] .title, :root[lang="he"] .statement, :root[lang="he"] .final__text,
:root[lang="he"] .hero__title { font-weight: 400; letter-spacing: 0; }
:root[lang="he"] .title { font-size: clamp(2.25rem, 4.4vw, 3.9rem); line-height: 1.1; }
:root[lang="he"] .title--md { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.15; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink-hover); color: var(--bg); }
.btn--secondary { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--dark); font-weight: 600; }
.btn--gold:hover { background: var(--gold-hover); color: var(--dark); }
.btn--lg { min-height: 56px; padding: 8px 30px; }
.btn--sm { min-height: 46px; padding: 8px 22px; font-size: .875rem; }
.btn--xs { min-height: 38px; padding: 6px 14px; font-size: .875rem; }
.btn--block { width: 100%; }

.round-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color .25s ease, opacity .25s ease;
}
.round-button:hover { background: var(--white); }
.round-button--dark { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.round-button--dark:hover { background: var(--ink-hover); }
.round-button:disabled { opacity: .35; cursor: default; }
.round-button .icon { width: 20px; height: 20px; }

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2em;
}

/* "+" in a circle that turns into "×" when its strip is open */
.toggle-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .35s ease, background-color .35s ease;
}
.toggle-icon .icon { width: 16px; height: 16px; }
.is-open > * > [data-toggle] .toggle-icon { transform: rotate(45deg); background: var(--sand); }

/* Accordion panels: open by default without JavaScript, collapse smoothly with it */
[data-panel] { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
[data-panel] > * { overflow: hidden; min-height: 0; }
.js [data-item]:not(.is-open) > [data-panel] { grid-template-rows: 0fr; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand__logo { height: 54px; width: auto; }
.brand__mark { height: 44px; width: auto; }
.brand__word { height: 26px; width: auto; }
.brand__mark, .brand__word { display: none; }
@media (max-width: 75em) {
  .brand__logo { display: none; }
  .brand__mark, .brand__word { display: block; }
}
@media (max-width: 32.5em) {
  .brand__word { display: none; }
  .brand__mark { height: 40px; }
}

.site-nav { display: flex; gap: clamp(18px, 2.2vw, 32px); flex: none; }
.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .35s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 16px; flex: none; }

.lang-switch { display: flex; gap: 2px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }

.site-header__login, .mobile-menu__login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__login .icon, .mobile-menu__login .icon { width: 18px; height: 18px; stroke-width: 1.3; }

.burger {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}
.burger__lines { position: relative; width: 16px; height: 9px; }
.burger__lines::before, .burger__lines::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.4px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger__lines::before { top: 0; }
.burger__lines::after { top: 8px; }
.burger[aria-expanded="true"] .burger__lines::before { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 75em) {
  .site-nav, .site-header__login { display: none; }
  .burger { display: grid; }
}
@media (max-width: 32.5em) {
  .site-header__actions { gap: 10px; }
  .site-header .site-header__actions > .lang-switch { display: none; }
  .site-header__cta { min-height: 42px; padding: 0 14px; font-size: .8125rem; }
}

/* Menu on phones and tablets: opens under the header */
.mobile-menu {
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.menu-open { overflow: hidden; }
.mobile-menu__nav { display: flex; flex-direction: column; padding-block: 8px 24px; }
.mobile-menu__nav > a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  text-decoration: none;
}
.mobile-menu__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; }
@media (min-width: 75.0625em) { .mobile-menu { display: none !important; } }

/* -------------------------------------------------- block 1: first screen */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  border-bottom: 1px solid var(--line);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
  padding-inline-end: clamp(20px, 5vw, 72px);
  /* the text starts where the container would start */
  padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
}
.hero__main { display: flex; flex-direction: column; gap: 36px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title > span { display: block; }
.hero__title > span:last-child { padding-top: 6px; }
.hero__title em { font-weight: 400; color: var(--bronze); }
:root[lang="he"] .hero__title { font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: 1.08; }

.hero__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Equal columns, but never narrower than the value: "RU · HE" is the widest */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(min-content, 1fr));
  border-top: 1px solid var(--line);
}
.hero__fact { padding: 18px 20px 0; }
.hero__fact:first-child { padding-inline-start: 0; }
.hero__fact:last-child { padding-inline-end: 0; }
.hero__fact:not(:last-child) { border-inline-end: 1px solid var(--line); }
.hero__fact dt {
  font-family: var(--font-numbers);
  font-size: clamp(1.75rem, 2.3vw, 2.375rem);
  line-height: 1;
  white-space: nowrap;
}
.hero__fact:nth-child(2) dt { font-style: italic; }
:root[lang="he"] .hero__fact:nth-child(2) dt { font-family: var(--font-display); font-style: normal; }
.hero__fact dd { margin-top: 6px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }

.hero__media {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 860px);
  background: var(--photo-bg);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-corners {
  --c: rgba(255, 250, 242, .85);
  position: absolute;
  inset: 28px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 28px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 28px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 28px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 28px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 28px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 28px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 28px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 28px no-repeat;
}
.hero__caption {
  position: absolute;
  inset-inline-start: 44px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFAF2;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  /* the close shadow keeps the small letters readable over light parts of the photo */
  text-shadow: 0 0 2px rgba(40, 28, 18, .7), 0 1px 12px rgba(40, 28, 18, .45);
}
.hero__caption .dot { width: 6px; height: 6px; background: #FFFAF2; }

@media (max-width: 56.25em) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; min-height: 0; height: min(125vw, 72svh); }
  .hero__text { padding-inline: var(--gutter); gap: 44px; }
}
@media (max-width: 32.5em) {
  .hero__eyebrow { letter-spacing: .16em; font-size: .6875rem; }
  .hero__eyebrow .kicker__line { width: 24px; }
  .hero__subtitle { letter-spacing: .2em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .frame-corners { inset: 18px; }
  .hero__caption { inset-inline-start: 30px; bottom: 28px; }
}
/* Facts 2×2 where four in a row get too narrow: phones, and the half-width text column up to 1100px */
@media (max-width: 32.5em), (min-width: 56.3125em) and (max-width: 68.75em) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__fact { padding: 16px 12px 14px; }
  .hero__fact:nth-child(odd) { padding-inline-start: 0; }
  .hero__fact:nth-child(even) { padding-inline-end: 0; border-inline-end: 0; }
  .hero__fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------- block 2: learning format */
.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  line-height: 1.2;
  text-wrap: pretty;
}
:root[lang="he"] .statement { font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.3; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.feature { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.feature:first-child { padding-inline-start: 0; }
.feature:last-child { padding-inline-end: 0; }
.feature:not(:first-child) { border-inline-start: 1px solid var(--line); }
.feature .icon { width: 34px; height: 34px; }
.feature__title { font-weight: 600; font-size: .9375rem; }
.feature__text { font-size: .875rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 40em) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { display: grid; grid-template-columns: 34px 1fr; column-gap: 18px; row-gap: 2px; padding: 20px 0; }
  .feature .icon { grid-row: span 2; }
  .feature:not(:first-child) { border-inline-start: 0; border-top: 1px solid var(--line); }
}

.split__media { display: flex; flex-direction: column; gap: 14px; }
.photo-frame { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: var(--photo-bg); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.photo-caption__note { font-family: var(--font-display); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; }
:root[lang="he"] .photo-caption__note { font-style: normal; }
@media (max-width: 56.25em) {
  .split--format .photo-frame { aspect-ratio: 4 / 5; }
}

/* --------------------------------------------- block 3: what's included */
/* Two feature cards (personal guidance, free schedule) share the first row, then six cards:
   three in a row on wide screens, two on tablets, one on phones */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 40.0625em) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68.8125em) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card { grid-column: span 2; }
  .card--feature { grid-column: span 3; }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 230px;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.card--vip { border-color: var(--gold); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__top .icon { width: 40px; height: 40px; stroke-width: .9; }
.card__title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; line-height: 1.2; }
.card__note { margin-top: -10px; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.card__title em { color: var(--bronze); }
.card__text { font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.card--feature { gap: 26px; padding: clamp(32px, 4vw, 48px); background: var(--panel); border-color: var(--line-2); }
.card--feature .card__title { font-size: clamp(1.875rem, 2.6vw, 2.375rem); line-height: 1.1; }
.card--feature .card__text { max-width: 560px; }
/* The first card: Olga's personal guidance, the main reason people choose the course */
.card--personal { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card--personal .card__title em { color: var(--gold-light); }
.card--personal .card__text { color: var(--on-dark-2); }
.card__head { display: flex; flex-direction: column; gap: 14px; }
.card__label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
:root[lang="he"] .card__label { letter-spacing: .04em; }
.card__avatar {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.card__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 32.5em) {
  .card { min-height: 0; padding: 28px 24px; }
}

/* ------------------------------------------------------ block 4: program */
.program-summary { max-width: 420px; border-top: 1px solid var(--line-2); }
.program-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: .875rem;
}
.program-summary dt { color: var(--muted); white-space: nowrap; }
.program-summary dd { text-align: end; }
@media (max-width: 56.25em) { .program-summary { display: none; } }

.strips { display: flex; flex-direction: column; gap: 12px; }
.strip {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .3s ease;
}
.strip.is-open { border-color: var(--gold); }
.strip__button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  text-align: start;
  transition: background-color .25s ease;
}
.strip__button:hover { background: var(--hover); }
.strip__number { font-family: var(--font-numbers); font-style: italic; font-size: 2.125rem; line-height: 1; color: var(--bronze); }
.strip__title { font-family: var(--font-display); font-size: clamp(1.375rem, 2.1vw, 1.75rem); font-weight: 500; line-height: 1.15; }
:root[lang="he"] .strip__title { font-weight: 400; }
.strip__count { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.strip__content { display: flex; flex-direction: column; gap: 24px; padding: 0 28px 32px; padding-inline-start: 108px; }
.strip__intro { font-family: var(--font-display); font-style: italic; font-size: 1.3125rem; line-height: 1.4; color: var(--bronze); }
:root[lang="he"] .strip__intro { font-style: normal; }
.topics li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.topics li::before, .dots li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--gold);
}
.strip__materials { display: flex; align-items: flex-start; gap: 14px; font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
.strip__materials .icon { width: 22px; height: 22px; stroke-width: 1.1; }
.strip__outcome { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; background: var(--panel); border-radius: var(--radius-sm); }
.strip__outcome-text { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.4; }
:root[lang="he"] .strip__outcome-text { font-size: 1.25rem; }
@media (max-width: 56.25em) {
  .strip__count { display: none; }
  .strip__button { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 12px; padding: 20px 18px; }
  .strip__number { font-size: 1.75rem; }
  .strip__content { padding: 0 20px 24px; }
  .strip__outcome { padding: 20px; }
  .strip__outcome-text { font-size: 1.1875rem; }
}

/* ------------------------------------------------ block 5: how it works */
/* Intro lesson: our cover with a play button, the YouTube player after a click */
.video__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark-deep); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark); }
.video__play picture { display: block; position: absolute; inset: 0; }
.video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video__play::after { content: ""; position: absolute; inset: 0; background: rgba(31, 24, 19, .18); transition: background-color .4s ease; }
.video__play:hover img { transform: scale(1.02); }
.video__play:hover::after { background: rgba(31, 24, 19, .06); }
.video__button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 104px);
  aspect-ratio: 1;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: rgba(47, 37, 30, .72);
  backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background-color .4s ease;
}
.video__button .icon { width: 34%; height: 34%; margin-inline-start: 6%; fill: currentColor; stroke: none; }
:root[dir="rtl"] .video__button .icon { margin-inline-start: 0; margin-inline-end: 6%; }
.video__play:hover .video__button { transform: scale(1.06); background: rgba(47, 37, 30, .86); }
.video__play:focus-visible { outline-offset: -6px; }
.video__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-bottom: 1px solid rgba(200, 169, 126, .45);
  padding-bottom: 18px;
}
.video__title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.25; color: var(--on-dark); }
.video__meta { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); white-space: nowrap; }
:root[lang="he"] .video__meta { letter-spacing: .03em; font-size: .875rem; }

/* links that start the intro lesson */
.icon--play { fill: currentColor; stroke: none; }
.btn .icon--play { width: 14px; height: 14px; }
.strip__video { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: .9375rem; font-weight: 600; color: var(--bronze); text-decoration: underline; text-underline-offset: 4px; }
.strip__video .icon { width: 12px; height: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(200, 169, 126, .45);
}
.step::before {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.step__number { font-family: var(--font-numbers); font-style: italic; font-weight: 300; font-size: 4rem; line-height: .9; color: var(--gold-light); }
.step__title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; color: var(--on-dark); }
@media (max-width: 56.25em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 32.5em) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------- block 6: outcome */
#outcome .split__body { gap: 44px; }
#outcome header { display: flex; flex-direction: column; gap: 22px; }
.outcomes { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.outcome { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.outcome__number { font-family: var(--font-text); font-size: .6875rem; font-weight: 600; letter-spacing: .22em; color: var(--bronze); }
.outcome__title { font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.15; }
:root[lang="he"] .outcome__title { font-weight: 400; }
.outcome__text { font-size: .9375rem; line-height: 1.6; color: var(--text-2); }
@media (min-width: 68.8125em) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome:nth-child(odd) { padding-inline-end: 32px; }
  .outcome:nth-child(even) { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
}
@media (max-width: 56.25em) {
  #outcome .photo-frame { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------- block 7: community */
.community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.community__media { position: relative; min-height: 560px; background: var(--photo-bg); }
.community__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community__body { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: clamp(32px, 5vw, 72px); }
.community__text { color: var(--text-2); }
.dots { display: grid; column-gap: 28px; }
.dots--columns { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.dots li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9375rem;
  line-height: 1.45;
}
.dots li::before { margin-top: .5em; }
.community__quote { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.35; }
:root[lang="he"] .community__quote { font-style: normal; font-size: 1.375rem; }
@media (max-width: 56.25em) {
  .community__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------- block 8: author */
.section--author { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.author__watermark {
  position: absolute;
  inset-inline-end: -80px;
  top: 40px;
  width: 560px;
  height: auto;
  opacity: .06;
  pointer-events: none;
}
.split--author { position: relative; }
.author__portrait { position: relative; }
.author__portrait .photo-frame { background: #DDD6CE; }
#author .split__body { gap: 32px; }
.author__text { max-width: 620px; color: var(--text-2); }
.author__text p + p { margin-top: 18px; }
.author__text p:first-child { font-family: var(--font-display); font-size: 1.5625rem; line-height: 1.4; color: var(--ink); }
:root[lang="he"] .author__text p:first-child { font-size: 1.4375rem; }
.author__links { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 56.25em) {
  .author__watermark { width: 360px; inset-inline-end: -60px; }
  .author__portrait .photo-frame { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------ block 9: works */
.section--white { padding-top: clamp(60px, 8vw, 110px); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.gallery-head__count {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
}
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 72px; }
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: #EFE6D9;
  cursor: zoom-in;
}
/* staggered columns: the 2nd and 4th go down */
.gallery li:nth-child(4n+2) .gallery__item, .gallery li:nth-child(4n+4) .gallery__item { transform: translateY(72px); }
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.gallery__item:hover img { transform: scale(1.035); }
@media (max-width: 56.25em) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 40px; }
  .gallery li:nth-child(4n+2) .gallery__item, .gallery li:nth-child(4n+4) .gallery__item { transform: none; }
  .gallery li:nth-child(2n) .gallery__item { transform: translateY(40px); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  background: rgba(31, 24, 19, .96);
  color: var(--on-dark);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox-open { overflow: hidden; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; margin: 0; padding: 64px 16px; }
.lightbox__image {
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 150px);
  max-height: calc(100svh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
.lightbox__counter { font-family: var(--font-numbers); font-size: 1.25rem; color: var(--on-dark-muted); }
.lightbox__button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(244, 235, 221, .4);
  border-radius: 50%;
  background: rgba(31, 24, 19, .5);
  color: var(--on-dark);
  transition: border-color .25s ease;
}
.lightbox__button:hover { border-color: var(--on-dark); }
.lightbox__button:focus-visible { outline-color: var(--on-dark); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-start: 16px; }
.lightbox__next { inset-inline-end: 16px; }
@media (max-width: 47.9375em) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { inset-inline-start: calc(50% - 64px); }
  .lightbox__next { inset-inline-end: calc(50% - 64px); }
  .lightbox__figure { padding-bottom: 96px; }
}

/* ----------------------------------------------------- block 10: plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
  max-width: 1080px;
  margin-inline: auto;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan--featured { border: 1.5px solid var(--gold); }
.plan__badge {
  position: absolute;
  top: -15px;
  inset-inline-start: clamp(28px, 4vw, 48px);
  padding: 7px 14px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--dark);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.plan__name {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.15;
}
:root[lang="he"] .plan__name { font-weight: 400; }
.plan__number { font-family: var(--font-numbers); font-style: italic; font-weight: 400; color: var(--bronze); }
.plan__price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: .9;
  letter-spacing: -.01em;
}
.price { display: inline-flex; align-items: baseline; gap: .16em; white-space: nowrap; unicode-bidi: isolate; }
.price__currency { font-family: var(--font-text); font-size: .46em; font-weight: 300; color: var(--ink); }
.plan__features { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9375rem;
}
.plan__features .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--bronze); stroke-width: 1.6; }
.plan__features .is-highlight { margin: 6px 0; padding: 14px 16px; border: 0; background: var(--sand); border-radius: var(--radius-sm); font-weight: 600; }
.plan__features .is-highlight .icon { stroke-width: 1.3; }
.plan__installments { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--text-2); }
:root[lang="he"] .plan__installments { font-style: normal; font-size: 1.1875rem; }
.plan__buy { margin-top: auto; min-height: 58px; font-size: 1rem; }
.plans__note { max-width: 620px; margin: 56px auto 0; text-align: center; font-size: .875rem; color: var(--muted); }

/* --------------------------------------------------- block 11: reviews */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.reviews__head header { display: flex; flex-direction: column; gap: 22px; }
.carousel__nav { display: flex; align-items: center; gap: 18px; }
.carousel__counter { font-family: var(--font-numbers); font-size: 1.375rem; letter-spacing: .04em; }
.carousel__counter [data-carousel-current] { font-style: italic; }
.carousel__total { color: var(--muted); }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* without it Chromium counts the hidden slides' photos in the page width */
  contain: paint;
}
.carousel__track::-webkit-scrollbar { display: none; }
.review {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: clamp(20px, 3.5vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.review__works { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #EFE6D9; }
.review__works img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review__body { display: flex; flex-direction: column; gap: 26px; }
.review__mark { width: 44px; height: 34px; fill: var(--gold); }
[dir="rtl"] .review__mark { transform: scaleX(-1); }
.review__headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}
:root[lang="he"] .review__headline { font-style: normal; line-height: 1.25; }
.review__text { font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.review__text p + p { margin-top: 14px; }
.review__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.review__nick { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.review__nick .icon { width: 18px; height: 18px; }
.review__role { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.carousel__dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.carousel__dots button::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--on-dark-muted);
  transition: width .35s ease, background-color .35s ease;
}
.carousel__dots button[aria-current="true"]::before { width: 36px; background: var(--ink); }
@media (max-width: 56.25em) {
  .review { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .review__works { aspect-ratio: auto; }
  .review__works img { position: static; height: auto; }
}
@media (max-width: 40em) {
  .carousel__counter { display: none; }
  .round-button { width: 48px; height: 48px; }
}

/* -------------------------------------------------------- block 12: FAQ */
#faq .sticky-col { gap: 24px; }
#faq .section-lead { max-width: 380px; }
.faq__whatsapp { align-self: flex-start; }
.faq__whatsapp .icon { width: 18px; height: 18px; }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}
:root[lang="he"] .qa__button { font-weight: 400; }
.qa .toggle-icon { border-color: var(--line-2); }
.qa__answer { padding-bottom: 28px; padding-inline-end: 64px; font-size: 1.0625rem; line-height: 1.7; color: var(--text-2); }
.qa__answer p + p { margin-top: .8em; }
@media (max-width: 40em) {
  .qa__button { padding: 20px 0; }
  .qa__answer { padding-inline-end: 0; font-size: 1rem; }
}

/* -------------------------------------------------- block 13: final call */
.final {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  overflow: hidden;
  background: var(--beige);
  border-radius: var(--radius-sm);
}
.final__body { display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: clamp(32px, 5vw, 72px); }
.ornament {
  display: block;
  width: 148px;
  height: 6px;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 60px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 60px 1px no-repeat,
    radial-gradient(circle, var(--gold) 2.6px, transparent 3px) center / 6px 6px no-repeat;
}
.final__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.875rem, 3.2vw, 2.875rem);
  line-height: 1.14;
  text-wrap: balance;
}
:root[lang="he"] .final__text { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.25; }
.final__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.final__note { font-size: .875rem; color: var(--text-2); }
.final__media { position: relative; min-height: 520px; background: #E2D3BD; }
.final__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 56.25em) {
  .final__media { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-block: clamp(64px, 8vw, 100px) 40px; font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 48px; }
@media (min-width: 68.8125em) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
}
.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.site-footer__logo { display: flex; flex-direction: column; gap: 10px; text-decoration: none; align-items: flex-start; }
.site-footer__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.site-footer__academy { font-size: .6875rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); }
.site-footer__about { line-height: 1.6; color: var(--on-dark-muted); }
.site-footer__title {
  margin-bottom: 16px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.site-footer__links { display: flex; flex-direction: column; gap: 12px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__contact { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__sep { display: inline-block; width: 1px; height: .9em; margin-inline: 14px; vertical-align: -.1em; background: rgba(217, 190, 149, .45); }
.site-footer a.site-footer__credit { color: var(--on-dark-faint); white-space: nowrap; }
.site-footer a.site-footer__credit:hover { color: var(--gold-light); }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--gold-light); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(217, 190, 149, .25);
  font-size: .8125rem;
  color: var(--on-dark-faint);
}
.payments { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.payments__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.site-footer .payments__label { color: var(--on-dark-2); }
.payments__label:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.payments__label .icon { width: 16px; height: 16px; color: var(--gold-light); }
/* Badges: static/img/payments, made by scripts/build_payment_icons.py */
.payments__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.payments__list img { width: 48px; height: 32px; }
@media (max-width: 26.25em) {
  .payments__list img { width: 42px; height: 28px; }
}

/* ------------------------------------------------------ WhatsApp button */
.wa-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: calc(20px + var(--wa-lift, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 28px rgba(47, 37, 30, .25);
  transition: transform .3s var(--ease), bottom .3s var(--ease), background-color .3s var(--ease);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: var(--dark); color: var(--bg); transform: translateY(-2px); }
.wa-float__label {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  white-space: nowrap;
  background: var(--white);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(58, 46, 37, .08);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
[dir="rtl"] .wa-float__label { transform: translateX(-6px); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
@media (min-width: 48em) {
  .wa-float { inset-inline-end: 28px; bottom: calc(28px + var(--wa-lift, 0px)); }
}

/* --------------------------------------------------------- cookie notice */
.cookie {
  position: fixed;
  z-index: 45;
  inset-inline: 10px;
  bottom: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(58, 46, 37, .14);
  padding: 16px 18px;
  font-size: .875rem;
  line-height: 1.45;
}
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie .btn { min-height: 40px; padding: 6px 16px; font-size: .875rem; }
@media (min-width: 48em) {
  .cookie { inset-inline: 24px auto; bottom: 24px; max-width: 380px; padding: 18px 20px; }
}

/* -------------------------------------------------------------- motion */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal--2 { transition-delay: .15s; }
.js .reveal--3 { transition-delay: .3s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* the first photo "develops" like a print: shown at once, from pale to full colour (fading it in
   from transparent made Chrome count the first screen as shown 0.4–0.6 s later on phones) */
.develop { animation: develop 1.8s ease both; }
@keyframes develop {
  from { filter: saturate(.2) brightness(1.15); }
  to { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .develop { animation: none; }
  .mobile-menu, .burger__lines::before, .burger__lines::after, .gallery__item img,
  .toggle-icon, [data-panel] { transition: none; }
}

/* ----------------------------------------------------------- error page */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page__code { font-family: var(--font-numbers); font-style: italic; font-size: 6rem; font-weight: 300; line-height: 1; color: var(--bronze); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.error-page .lead { margin-top: 16px; color: var(--muted); }
.h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.05; text-wrap: balance; }
:root[lang="he"] .h2 { font-weight: 400; }

/* ------------------------------------------------------ legal documents */
.legal { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); }
.legal__layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 720px);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "aside head" "aside body" "aside actions";
  justify-content: center;
  column-gap: clamp(40px, 6vw, 96px);
}
.legal__head { grid-area: head; }
.legal__body { grid-area: body; }
.legal__actions { grid-area: actions; align-self: start; }
.legal__aside {
  grid-area: aside;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-height: calc(100vh - var(--header-h) - 64px);
  overflow-y: auto;
}
.legal__docs { display: flex; flex-direction: column; border-inline-start: 1px solid var(--line-2); }
.legal__docs a {
  margin-inline-start: -1px;
  padding: 7px 0;
  padding-inline-start: 16px;
  border-inline-start: 1px solid transparent;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}
.legal__docs a:hover { color: var(--ink); }
.legal__docs a[aria-current] { border-color: var(--bronze); color: var(--ink); font-weight: 600; }
.legal__toc-title {
  margin-bottom: 12px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}
:root[lang="he"] .legal__toc-title { letter-spacing: .03em; font-size: .875rem; }
.legal__toc ol { list-style: none; padding: 0; }
.legal__toc a { display: block; padding: 5px 0; font-size: .875rem; line-height: 1.4; color: var(--text-2); text-decoration: none; }
.legal__toc a:hover { color: var(--bronze); }

.legal__head { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}
:root[lang="he"] .legal__title { font-weight: 400; line-height: 1.25; }
.legal__revision { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.legal__body { font-size: 1rem; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.legal__body > * + * { margin-top: 14px; }
.legal__body h2 {
  margin-top: 52px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__body > h2:first-child { margin-top: 0; }
.legal__body h3 { margin-top: 28px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.legal__body h2 + *, .legal__body h3 + * { margin-top: 12px; }
.legal__body ul { padding-inline-start: 1.25em; list-style: disc; }
.legal__body li + li { margin-top: 4px; }
.legal__body li::marker { color: var(--gold); }
.legal__body a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.legal__clause { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.legal__actions { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
html:not(.js) .legal__actions { display: none; }
@media (max-width: 56.25em) {
  .legal__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "body" "actions"; }
  .legal__head { margin-bottom: 32px; padding-bottom: 0; border-bottom: 0; }
  .legal__aside { position: static; max-height: none; overflow: visible; margin-bottom: 40px; padding-block: 28px; border-block: 1px solid var(--line); }
}
@media print {
  .site-header, .site-footer, .wa-float, .cookie, .skip-link, .legal__aside, .legal__actions { display: none !important; }
  body { background: #fff; }
  .legal { padding: 0; }
  .legal__layout { display: block; }
  .legal__body { color: #000; font-size: 11pt; }
  .legal__body h2 { break-after: avoid; }
}

/* -------------------------------------------------------------- checkout */
.checkout { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); }
.checkout__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
.checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
}
.checkout__back .icon { width: 20px; height: 20px; }
.checkout__back:hover { color: var(--ink); }
.checkout__notice {
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--sand);
}
.checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.checkout__main { display: flex; flex-direction: column; gap: 24px; }
.checkout__card {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checkout__fieldset, .checkout__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.checkout__fieldset { display: flex; flex-direction: column; gap: 40px; }
.checkout__legend { margin-bottom: 18px; padding: 0; font: inherit; }
.checkout__legend:focus { outline: none; }
.checkout__hint { margin-top: -6px; margin-bottom: 14px; font-size: .875rem; color: var(--muted); }
/* The payment page of a link (templates/checkout/pay.html): what is paid for, whose access */
.checkout__lead { margin: 0 0 18px; color: var(--text-2); }
.checkout__step .summary__facts { margin: 0 0 22px; }
.checkout__error { color: var(--terracotta); font-weight: 500; }
.checkout__error:empty { display: none; }

.choices { display: flex; flex-direction: column; gap: 12px; }
.choices--row { flex-direction: row; flex-wrap: wrap; }
.choices--row .choice { flex: 1 1 160px; }
.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.choice__body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 1; min-width: 0; }
.choice__name { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; }
:root[lang="he"] .choice__name { font-weight: 400; }
.choice--compact { padding-block: 14px; }
.choice--compact .choice__name { font-family: var(--font-text); font-size: 1rem; font-weight: 500; }
/* the display font has no ₪: prices in small sizes use the text font */
.choice__price { font-size: 1.0625rem; font-weight: 500; white-space: nowrap; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.fields .checkout__hint { margin: -8px 0 0; }
.field__label { font-size: .875rem; font-weight: 500; color: var(--text-2); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease;
}
[dir="rtl"] .input[dir="ltr"] { text-align: right; }
.input:hover { border-color: var(--gold); }
.input:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
.input:user-invalid { border-color: var(--terracotta); }
.checkout__fieldset:disabled .input,
.checkout__fieldset:disabled .choice { background: var(--bg); color: var(--muted); cursor: default; }

.checks { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { color: var(--bronze); text-decoration: underline; }

.checkout__actions { display: flex; flex-direction: column; gap: 10px; }
.checkout__actions .checkout__hint { margin: 0; text-align: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

.checkout__pay { gap: 20px; }
.checkout__pay .checkout__legend { margin-bottom: 0; }
.checkout__pay .checkout__hint { margin: 0; }
.checkout__frame { position: relative; min-height: 220px; }
.checkout__frame iframe { display: block; width: 100%; min-height: 220px; border: 0; }
.checkout__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9375rem; }
.checkout__secure, .summary__secure { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; color: var(--muted); }
.checkout__secure .icon, .summary__secure .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--bronze); }
.checkout__edit {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .22em;
}
.checkout__edit:hover { color: var(--ink); }

.checkout__summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary { display: flex; flex-direction: column; gap: 22px; }
.summary__name { font-family: var(--font-display); font-weight: 500; font-size: 1.875rem; line-height: 1.15; }
:root[lang="he"] .summary__name { font-weight: 400; }
.summary__features { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.summary__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.5;
}
.summary__features .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--bronze); stroke-width: 1.6; }
.summary__features .is-highlight { font-weight: 600; }
.summary__facts { display: flex; flex-direction: column; gap: 10px; font-size: .875rem; }
.summary__facts div { display: flex; justify-content: space-between; gap: 16px; }
.summary__facts dt { color: var(--muted); }
.summary__facts dd { margin: 0; text-align: end; font-weight: 500; }
.summary__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.summary__total-label { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
:root[lang="he"] .summary__total-label { letter-spacing: .03em; font-size: .875rem; }
.summary__price { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.75rem, 4vw, 3.5rem); line-height: 1; }
.summary__parts { margin-top: -10px; font-family: var(--font-display); font-style: italic; font-size: 1.1875rem; color: var(--text-2); text-align: end; }
.summary__parts .money { font-family: var(--font-text); font-style: normal; font-size: .8em; font-weight: 500; }
:root[lang="he"] .summary__parts { font-style: normal; font-size: 1.0625rem; }

@media (max-width: 56.25em) {
  .checkout__layout { grid-template-columns: minmax(0, 1fr); }
  .checkout__summary { position: static; }
}
@media (max-width: 32.5em) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .choice { padding: 16px; gap: 12px; }
  .choice__body { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------- payment received */
.done { padding-block: clamp(48px, 8vw, 120px); }
.done__inner { display: grid; place-items: center; }
.done__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 640px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.done__lead { max-width: 440px; color: var(--muted); }
.done__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--olive);
}
.done__mark .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.done__spinner {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-top-color: var(--bronze);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .done__spinner { animation: done-spin 1.2s linear infinite; }
}
@keyframes done-spin { to { transform: rotate(360deg); } }
.done__slow { max-width: 440px; font-size: .875rem; color: var(--text-2); }
.done__slow a { color: var(--bronze); }
.done__facts {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 8px 0 12px;
  border-top: 1px solid var(--line);
  text-align: start;
}
.done__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.done__facts dt { color: var(--muted); }
.done__facts dd { margin: 0; text-align: end; font-weight: 500; overflow-wrap: anywhere; }
.done__facts a { color: var(--bronze); }
.done__facts-line { color: var(--muted); font-size: .875rem; }
@media (max-width: 32.5em) {
  .done__facts div { flex-direction: column; gap: 2px; }
  .done__facts dd { text-align: start; }
}

/* ---------------------------------------------------------------- sign-in */
.page-auth { min-height: 100vh; }
.auth-top { display: flex; justify-content: flex-end; padding: 20px var(--gutter) 0; }
.auth { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 16px 16px clamp(48px, 8vw, 96px); }
.auth__logo img { width: 190px; height: auto; }
.auth__card {
  width: 100%;
  max-width: 440px;
  padding: clamp(28px, 5vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.auth__step { display: flex; flex-direction: column; gap: 18px; }
.auth__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.15; }
.auth__title:focus { outline: none; }
.auth__lead { color: var(--muted); overflow-wrap: anywhere; }
.auth__hint { font-size: .875rem; color: var(--muted); }
.auth__hint a { color: var(--bronze); }
.auth__notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--sand);
  font-size: .9375rem;
}
.auth__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.auth__link {
  padding: 0;
  border: 0;
  background: none;
  font-size: .875rem;
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.auth__link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth__countdown { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.auth__countdown:empty { display: none; }

.code-cells { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 0; border: 0; direction: ltr; }
.code-cells__cell {
  width: 100%;
  min-width: 0;
  max-width: 56px;
  height: 64px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-numbers);
  font-size: 2rem;
  text-align: center;
  color: var(--ink);
}
.code-cells__cell:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }

/* --------------------------------------------------------- student cabinet */
.cabinet-nav { display: flex; gap: 28px; font-size: .9375rem; }
.cabinet-nav a { position: relative; text-decoration: none; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; }
.cabinet-nav a:hover { color: var(--ink); }
.cabinet-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.cabinet-nav__dot { position: absolute; top: 4px; inset-inline-end: -10px; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.cabinet-header__actions { gap: 18px; }
.cabinet-header__user { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-2); }
.cabinet-header__user .icon { width: 18px; height: 18px; }

.profile-menu { position: relative; }
.profile-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: .875rem;
  cursor: pointer;
  list-style: none;
}
.profile-menu__button::-webkit-details-marker { display: none; }
.profile-menu__button .icon { width: 18px; height: 18px; }
.profile-menu__button .icon:last-child { width: 14px; height: 14px; transition: transform .2s ease; }
.profile-menu[open] .profile-menu__button .icon:last-child { transform: rotate(180deg); }
.profile-menu__list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(47, 37, 30, .12);
}
.profile-menu__list a, .profile-menu__list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-size: .9375rem;
  text-align: start;
  text-decoration: none;
  color: var(--ink);
}
.profile-menu__list a:hover, .profile-menu__list button:hover { background: var(--bg); color: var(--ink); }
.profile-menu__list .icon { width: 18px; height: 18px; color: var(--bronze); }

/* Phones: the sections move to a bottom bar of three icons */
.tabbar { display: none; }
@media (max-width: 47.9375em) {
  .cabinet-nav, .profile-menu, .cabinet-header__actions .lang-switch { display: none; }
  .page-cabinet { --wa-lift: 64px; padding-bottom: 64px; }
  .tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .75rem; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar__icon { position: relative; display: inline-flex; }
  .tabbar__dot { position: absolute; top: 0; inset-inline-end: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
}

.cabinet { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 120px); }
.cabinet__column { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: 16px; display: flex; flex-direction: column; gap: 28px; }
.cabinet__head { display: flex; flex-direction: column; gap: 10px; }
.cabinet__course { color: var(--text-2); }
.cabinet__dates { font-size: .9375rem; color: var(--muted); }
.cabinet__next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cabinet__schedule { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.cabinet__schedule .icon { width: 20px; height: 20px; color: var(--bronze); flex: none; }
.cabinet__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cabinet__card--start { background: var(--sand); border-color: var(--gold); }
.cabinet__card--notice { border-color: var(--terracotta); }
.cabinet__card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.cabinet__note { font-size: .875rem; color: var(--muted); }

.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__label { font-size: .875rem; color: var(--text-2); }
.progress__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--gold); border-radius: 2px; }

/* "Next lesson": a photo for its topic, time left, what it covers, the calendar file */
.upnext {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.upnext--plain { grid-template-columns: minmax(0, 1fr); }
.upnext__photo { position: relative; min-height: 100%; overflow: hidden; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); background: var(--photo-bg); }
.upnext__photo picture, .upnext__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.upnext__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 32px); }
.upnext__kicker { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
:root[lang="he"] .upnext__kicker { letter-spacing: .03em; font-size: .8125rem; }
.upnext__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 3vw, 2rem); line-height: 1.15; }
.upnext__countdown { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--bronze); }
.upnext__countdown .icon { width: 20px; height: 20px; flex: none; }
.upnext__when { margin-top: -8px; padding-inline-start: 30px; font-size: .9375rem; color: var(--muted); }
.upnext__when::first-letter { text-transform: uppercase; }
ul.upnext__topics { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 1.1em; list-style: disc; font-size: .9375rem; color: var(--text-2); }
ul.upnext__topics li::marker { color: var(--gold); }
ul.upnext__topics .upnext__more { list-style: none; color: var(--muted); }
.upnext__note { font-size: .875rem; color: var(--muted); }
@media (max-width: 40em) {
  .upnext { grid-template-columns: minmax(0, 1fr); }
  .upnext__photo { min-height: 0; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; }
}

/* Lesson strips on one path: a line through the numbers, gold as far as lessons are open,
   ending with the diploma */
.lessons { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lesson { position: relative; border-bottom: 1px solid var(--line); }
.lesson::before, .lessons-finish::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 23.5px;
  width: 1px;
  background: var(--line-2);
}
.lesson:first-child::before { top: 38px; }
.lesson:not(.is-locked)::before { background: var(--gold); }
.lesson__heading { font: inherit; }
.lesson__toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 4px;
  border: 0;
  background: none;
  text-align: start;
  color: inherit;
}
.lesson__toggle:hover .lesson__title { color: var(--bronze); }
.lesson__number {
  position: relative;
  z-index: 1;
  flex: none;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-numbers);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1;
  color: var(--bronze);
}
.lesson--done .lesson__number { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.lesson.is-locked .lesson__number { border-color: var(--line-2); color: var(--faint); }
.lesson.lesson--next .lesson__number { border: 1.5px solid var(--bronze); color: var(--bronze); box-shadow: 0 0 0 4px var(--sand); }
.lesson__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lesson__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
:root[lang="he"] .lesson__label { letter-spacing: .03em; font-size: .8125rem; }
.lesson__title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; transition: color .2s ease; }
.lesson__status { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.lesson__status .icon { width: 16px; height: 16px; }
.lesson__status .dot { background: var(--gold); width: 7px; height: 7px; }
.lesson--new .lesson__status, .lesson--progress .lesson__status, .lesson--review .lesson__status { color: var(--bronze); font-weight: 600; }
.lesson--review .lesson__status .icon { color: var(--bronze); }
.lesson--rework .lesson__status { color: var(--terracotta); font-weight: 600; }
.lesson--rework .lesson__status .dot { background: var(--terracotta); }
.lesson--done .lesson__status { color: var(--olive); font-weight: 600; }
.lesson__arrow { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; transition: transform .3s ease; }
.lesson__arrow .icon { width: 16px; height: 16px; }
.lesson.is-open .lesson__arrow { transform: rotate(180deg); background: var(--sand); }
.lesson.is-locked .lesson__title { color: var(--muted); }
.lesson.lesson--next .lesson__title { color: var(--ink); }
.lesson--next .lesson__status { color: var(--bronze); font-weight: 600; }
.lesson__preview { margin-top: 2px; overflow: hidden; font-size: .875rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.lesson__panel { display: flex; flex-direction: column; gap: 24px; padding: 4px 4px 28px; padding-inline-start: 62px; }
.lesson__locked { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.lesson__locked .icon { width: 18px; height: 18px; flex: none; }
.lesson__video {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark-muted);
  text-align: center;
}
.lesson__video p { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 320px; font-size: .9375rem; }
.lesson__video .icon { width: 32px; height: 32px; color: var(--gold-light); }
.lesson__block { display: flex; flex-direction: column; gap: 12px; }
.lesson__block--diploma { padding: 20px; border: 1.5px solid var(--gold); border-radius: var(--radius); }
.lesson__block-title { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
:root[lang="he"] .lesson__block-title { letter-spacing: .03em; font-size: .875rem; }
ul.lesson__topics { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 1.2em; list-style: disc; color: var(--text-2); }
ul.lesson__topics li::marker { color: var(--gold); }
.lesson__muted { color: var(--muted); font-size: .9375rem; }

.lessons-finish { position: relative; display: flex; align-items: center; gap: 18px; margin-top: -28px; padding: 18px 4px 0; color: inherit; text-decoration: none; }
.lessons-finish::before { inset-block: 0 auto; height: 38px; }
.lessons-finish__mark { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; background: var(--sand); color: var(--bronze); }
.lessons-finish__mark .icon { width: 18px; height: 18px; stroke-width: 1.4; }
.lessons-finish__body { display: flex; flex-direction: column; gap: 2px; }
.lessons-finish__title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; transition: color .2s ease; }
.lessons-finish:hover .lessons-finish__title { color: var(--bronze); }
.lessons-finish__note { font-size: .875rem; color: var(--muted); }
@media (max-width: 32.5em) {
  .lesson__toggle { flex-wrap: wrap; gap: 6px 14px; }
  .lesson__body { flex: 1 1 0; }
  .lesson__status { order: 3; flex-basis: 100%; padding-inline-start: 54px; }
  /* the open lesson takes the whole width and covers the path line */
  .lesson__panel { position: relative; z-index: 1; padding-inline-start: 4px; background: var(--bg); }
  .lessons-finish { gap: 14px; }
}

/* Cards under the lessons */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.tile--diploma { grid-column: 1 / -1; }
.tile__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.tile__title .icon { width: 22px; height: 22px; color: var(--bronze); stroke-width: 1.2; }
.tile__strong { font-weight: 600; }
.tile__muted { font-size: .875rem; color: var(--muted); }
.tile__saved { color: var(--olive); font-weight: 600; font-size: .9375rem; }
.tile__notice { padding: 10px 14px; border-inline-start: 3px solid var(--gold); background: var(--line-soft); color: var(--ink); font-weight: 600; font-size: .9375rem; }
/* issued diplomas: a download button for each, the printed name under it */
.diplomas { display: flex; flex-direction: column; gap: 14px; margin: 4px 0; }
.diplomas__item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tile__facts { display: flex; flex-direction: column; gap: 4px; }
.tile__facts div { display: flex; gap: 8px; }
.tile__facts dt { color: var(--muted); }
.tile__facts dd { margin: 0; font-weight: 500; }
.tile__checks { display: flex; flex-direction: column; gap: 6px; }
.tile__checks li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.tile__checks .icon { width: 18px; height: 18px; color: var(--faint); }
.tile__checks .is-done { color: var(--ink); }
.tile__checks .is-done .icon { color: var(--olive); }
.tile__form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; max-width: 440px; }
.tile__form .field { width: 100%; }

/* First-visit tips */
.tips {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(47, 37, 30, .25);
}
.tips::backdrop { background: rgba(31, 24, 19, .45); }
.tips__label { margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.tips__step { display: flex; flex-direction: column; gap: 12px; }
.tips__count { font-family: var(--font-numbers); font-style: italic; color: var(--bronze); }
.tips__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }
.tips__step .btn { margin-top: 8px; }

/* Notifications */
.feed { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.feed__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.feed__mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--bronze); }
.feed__mark .icon { width: 18px; height: 18px; }
.feed__item.is-new .feed__mark { background: var(--gold); color: var(--dark); }
.feed__body { flex: 1; min-width: 0; }
.feed__item.is-new .feed__text { font-weight: 600; }
.feed__date { font-size: .8125rem; color: var(--muted); }
.feed__link { display: inline-flex; align-items: center; gap: 8px; flex: none; align-self: center; font-size: .875rem; color: var(--bronze); text-decoration: none; }
.feed__link .icon { width: 18px; height: 18px; }

/* Profile, plan, help */
.panel { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.panel__value { font-weight: 500; overflow-wrap: anywhere; }
.panel__hint { font-size: .875rem; color: var(--muted); }
.panel__form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; max-width: 480px; }
.panel__form .field, .panel__form .fields { width: 100%; }
.panel .summary__features { width: 100%; }
.input--code { max-width: 180px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.profile-links { display: none; }
@media (max-width: 47.9375em) {
  .profile-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .profile-links a, .profile-links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 1rem; text-align: start; text-decoration: none; color: var(--ink); }
  .profile-links .icon { width: 20px; height: 20px; color: var(--bronze); }
}
.profile-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-langs a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; font-size: .9375rem; }
.profile-langs a[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.devices { display: flex; flex-direction: column; width: 100%; border-top: 1px solid var(--line-soft); }
.devices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.devices__seen { color: var(--muted); font-size: .875rem; }
.payments-list { display: flex; flex-direction: column; width: 100%; border-top: 1px solid var(--line-soft); }
.payments-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.payments-list__amount { font-weight: 600; }
.payments-list__meta { font-size: .875rem; color: var(--muted); }
.payments-list a { color: var(--bronze); font-size: .9375rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list__item { border-bottom: 1px solid var(--line); }
.faq-list__question { font: inherit; }
.faq-list__question button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 4px; border: 0; background: none; text-align: start; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.faq-list__question .icon { width: 18px; height: 18px; flex: none; transition: transform .3s ease; }
.faq-list__item.is-open .faq-list__question .icon { transform: rotate(180deg); }
.faq-list__answer p { padding: 0 4px 18px; color: var(--text-2); }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.help-actions .icon { width: 18px; height: 18px; }

/* Lesson player: the Bunny frame with the student's name and phone over it.
   "Full screen" enlarges .player__box (frame + watermark); on iPhone the box covers the window. */
.player { display: flex; flex-direction: column; gap: 10px; }
.player__box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--dark); }
.player__frame, .player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--on-dark-muted); font-size: .9375rem; }
.player__mark {
  position: absolute;
  top: 10%;
  inset-inline-start: 8%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-text);
  font-size: clamp(.6875rem, 1.6vw, .9375rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, .42);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.player__exit {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 24, 19, .7);
  color: #fff;
}
.player__exit .icon { width: 20px; height: 20px; }
.player__box:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; background: #000; }
.player__box:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; background: #000; }
.player__box.is-covering { position: fixed; inset: 0; z-index: 300; aspect-ratio: auto; border-radius: 0; background: #000; }
html.player-covering { overflow: hidden; }
.player__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: .875rem; color: var(--muted); }
.player__duration { display: inline-flex; align-items: center; gap: 8px; }
.player__duration .icon, .player__full .icon { width: 16px; height: 16px; }
.player__full { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); font-size: .875rem; color: var(--ink); }
.player__full:hover { border-color: var(--ink); }

/* Homework (templates/cabinet/_homework.html): the task, the thread of answers and Olga's
   reviews, the answer form with photo tiles and file rows, the photo viewer with her marks. */
.hw { gap: 18px; }
.hw__task { display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.hw__examples { display: flex; flex-direction: column; gap: 10px; }
.hw__examples-title { font-size: .875rem; font-weight: 600; color: var(--label); }
/* «Посмотреть как ученик» from the admin: a bar over the cabinet that says it is a preview */
/* «Посмотреть как ученик»: under the header while the page scrolls; on phones, where it takes
   three lines, it stays at the top of the page */
.preview-bar {
  position: sticky; top: var(--header-h); z-index: 40; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px; margin: 0; padding: 10px 16px; background: var(--dark); color: var(--on-dark); font-size: .875rem; text-align: center;
}
.preview-bar .icon { width: 18px; height: 18px; flex: none; }
.preview-bar a { color: var(--gold-light); font-weight: 600; }
html:has(.preview-bar) { scroll-padding-top: calc(var(--header-h) + 64px); }
@media (max-width: 56.25em) {
  .preview-bar { position: static; }
  html:has(.preview-bar) { scroll-padding-top: calc(var(--header-h) + 16px); }
}
.hw-form[inert] { opacity: .6; }
.hw__rule { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--bronze); }
.hw__rule .icon { width: 20px; height: 20px; flex: none; }

.hw-thread { display: flex; flex-direction: column; gap: 12px; }
.hw-entry { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hw-entry--review { background: var(--sand); border-color: var(--line-2); }
.hw-entry--rework { border-inline-start: 3px solid var(--terracotta); }
.hw-entry--accepted { border-inline-start: 3px solid var(--olive); }
.hw-entry__meta { font-size: .8125rem; color: var(--muted); }
.hw-entry__who { font-weight: 600; color: var(--ink); }
.hw-entry__text { white-space: pre-line; overflow-wrap: anywhere; color: var(--text-2); }
.hw-entry__review { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.hw-entry__status { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; color: var(--bronze); }
.hw-entry__status .icon { width: 18px; height: 18px; flex: none; }
.hw-entry__translate { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .875rem; color: var(--bronze); }
.hw-entry__translate .icon { width: 16px; height: 16px; }
.hw-verdict { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.hw-verdict .icon { width: 15px; height: 15px; }
.hw-verdict--accepted { background: #E6EADD; color: var(--olive); }
.hw-verdict--rework { background: #F4E1D9; color: var(--terracotta); }

.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hw-grid__link { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--photo-bg); }
.hw-grid__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.hw-grid__link:hover img { transform: scale(1.04); }

/* Olga's marks: lines, arrows and frames drawn over the photo, numbered pins, comments beside.
   The colour is GDS --warning-dot (light theme), the same as in her marks editor (static/admin/admin.css). */
.hw-marked { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 14px 18px; align-items: start; }
@media (max-width: 40em) { .hw-marked { grid-template-columns: 1fr; } }
.hw-marked__photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--photo-bg); }
.hw-marked__photo img { display: block; width: 100%; height: auto; }
.hw-marked__zoom { position: absolute; bottom: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(31, 24, 19, .65); color: #fff; }
.hw-marked__zoom .icon { width: 16px; height: 16px; }
.hw-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; color: #E09B1A; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .75)); }
.hw-marks line, .hw-marks polyline, .hw-marks rect { stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hw-pin { position: absolute; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #E09B1A; color: var(--dark); font-size: .75rem; font-weight: 700; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); transform: translate(-50%, -50%); pointer-events: none; }
.hw-notes { display: flex; flex-direction: column; gap: 10px; }
.hw-notes li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.hw-notes__n { display: grid; place-items: center; flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; }

/* The answer form */
.hw-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(16px, 3vw, 22px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hw-form__title { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.25; }
.hw-form__text { min-height: 132px; padding-block: 12px; resize: vertical; line-height: 1.55; }
.hw-form__saved { min-height: 1.2em; font-size: .8125rem; color: var(--muted); }
.hw-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; border: 1.5px dashed var(--gold); border-radius: var(--radius); text-align: center; transition: background .2s ease, border-color .2s ease; }
.hw-drop > .icon { width: 28px; height: 28px; color: var(--bronze); stroke-width: 1.4; }
.hw-drop.is-over { background: var(--sand); border-color: var(--bronze); }
.hw-drop__text { color: var(--text-2); }
.hw-drop__pick { cursor: pointer; }
.hw-drop__pick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.hw-drop__hint { font-size: .8125rem; color: var(--muted); }
.hw-counter { font-weight: 600; font-variant-numeric: tabular-nums; }
.hw-counter.is-ready { color: var(--olive); }
.hw-form__limit, .hw-form__error { font-size: .9375rem; font-weight: 500; color: var(--terracotta); }
.hw-form__error:empty { display: none; }
.hw-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hw-form__note { flex: 1 1 220px; font-size: .8125rem; color: var(--muted); }
.hw-form__note.is-blocked { font-size: .9375rem; font-weight: 600; color: var(--ink); }

.hw-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.hw-photos:empty, .hw-files:empty { display: none; }
.hw-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--photo-bg); cursor: grab; }
.hw-tile.is-dragged { opacity: .4; }
.hw-tile__img { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bronze); }
.hw-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.hw-tile__img .icon { width: 28px; height: 28px; }
.hw-tile__name { position: absolute; inset-inline: 8px; bottom: 30px; overflow: hidden; font-size: .6875rem; text-align: center; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.hw-tile:has(img) .hw-tile__name { width: 1px; height: 1px; clip: rect(0 0 0 0); }
.hw-tile__bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .6); }
.hw-tile__bar span { display: block; height: 100%; background: var(--bronze); transition: width .2s linear; }
[data-state="ready"] .hw-tile__bar { display: none; }
.hw-tile__state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: rgba(31, 24, 19, .55); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3; text-align: center; }
.hw-tile__state:empty { display: none; }
.hw-tile[data-state="failed"] .hw-tile__state { background: rgba(163, 83, 58, .88); }
.hw-tile__tools .hw-tool { position: absolute; z-index: 1; }
.hw-tile__tools [data-hw-remove] { top: 6px; inset-inline-end: 6px; }
.hw-tile__tools [data-hw-move="-1"] { bottom: 8px; inset-inline-start: 6px; }
.hw-tile__tools [data-hw-move="1"] { bottom: 8px; inset-inline-end: 6px; }
.hw-photos .hw-tile:first-child [data-hw-move="-1"], .hw-photos .hw-tile:last-child [data-hw-move="1"] { visibility: hidden; }
.hw-tool { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 4px rgba(31, 24, 19, .25); cursor: pointer; }
.hw-tool:hover { background: var(--white); color: var(--terracotta); }
.hw-tool .icon { width: 16px; height: 16px; }
.hw-retry { padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }

.hw-files { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }

/* Lesson materials: a row per file — icon, name, kind and size, "Open" (PDF) and "Download" */
.materials { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.material { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.material > .icon { width: 22px; height: 22px; flex: none; color: var(--bronze); }
.material__name { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.material__meta { font-size: .8125rem; color: var(--muted); }
.material__actions { display: flex; gap: 16px; }
.material__get { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--bronze); text-decoration: none; }
.material__get:hover { text-decoration: underline; }
.material__get .icon { width: 16px; height: 16px; }
.materials__more > summary { padding: 12px 0 0; font-size: .875rem; font-weight: 600; color: var(--bronze); cursor: pointer; }
.materials__more[open] > summary { padding-bottom: 4px; }
@media (max-width: 32.5em) { .material__actions { flex-basis: 100%; padding-inline-start: 36px; } }
.hw-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.hw-file > .icon { width: 20px; height: 20px; flex: none; color: var(--bronze); }
.hw-file__name { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.hw-file__size { font-size: .8125rem; color: var(--muted); }
.hw-file__state { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--bronze); }
.hw-file__state:empty { display: none; }
.hw-file[data-state="failed"] .hw-file__state { color: var(--terracotta); }
.hw-file .hw-tile__bar { position: static; flex-basis: 100%; order: 5; height: 3px; background: var(--line-soft); }
.hw-file .hw-tool { box-shadow: none; border: 1px solid var(--line-2); }
.hw-file__get { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--bronze); }
.hw-file__get .icon { width: 16px; height: 16px; }

/* A short line after an action: "Sent for review" */
.toast { position: fixed; inset-inline: 16px; bottom: calc(var(--wa-lift, 0px) + 20px); z-index: 250; display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 12px 20px; border-radius: var(--radius); background: var(--dark); color: var(--on-dark); font-weight: 600; box-shadow: 0 12px 32px rgba(31, 24, 19, .3); transition: opacity .5s ease; }
.toast .icon { width: 18px; height: 18px; color: var(--gold-light); }
.toast.is-gone { opacity: 0; }

/* Photo viewer */
.hw-viewer { width: min(1180px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); padding: 16px; border: 0; border-radius: var(--radius); background: var(--dark-deep); color: var(--on-dark); }
.hw-viewer[open] { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px; }
.hw-viewer::backdrop { background: rgba(15, 11, 8, .86); }
.hw-viewer__stage { display: grid; place-items: center; flex: 1 1 520px; min-width: 0; }
.hw-viewer__photo { position: relative; max-width: 100%; }
.hw-viewer__photo img { display: block; max-width: 100%; max-height: calc(100vh - 150px); margin-inline: auto; }
.hw-viewer__notes { flex: 0 1 300px; max-height: calc(100vh - 150px); overflow: auto; }
.hw-viewer__notes[hidden] { display: none; }
.hw-viewer__notes .hw-notes__n { background: #E09B1A; color: var(--dark); }
.hw-viewer__bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-basis: 100%; }
.hw-viewer__count { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); }
.hw-viewer__count:empty { min-width: 0; }
.hw-viewer__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.hw-viewer__btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hw-viewer__btn:disabled { opacity: .3; cursor: default; }
.hw-viewer__btn[hidden] { display: none; }
.hw-viewer__btn .icon { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .hw-grid__link img, .toast { transition: none; }
}
