/* Spark Academy — багатосторінковий сайт. Редакційна типографіка (Geologica + курсив Noto Serif Display),
   палітра її розетки, мінімум скруглень, рух — лише там, де він щось пояснює. Без бібліотек. */
@font-face { font-family: "Geologica"; font-weight: 400 650; font-display: swap; src: url(/fonts/geologica-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 400 650; font-display: swap; src: url(/fonts/geologica-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF; }
/* жирні 700/800 — статичні файли (WebKit на Windows не потовщує змінний шрифт) */
@font-face { font-family: "Geologica"; font-weight: 651 749; font-display: swap; src: url(/fonts/geologica-700-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 651 749; font-display: swap; src: url(/fonts/geologica-700-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF; }
@font-face { font-family: "Geologica"; font-weight: 750 900; font-display: swap; src: url(/fonts/geologica-800-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 750 900; font-display: swap; src: url(/fonts/geologica-800-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF; }
@font-face { font-family: "Spark Serif"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/noto-serif-italic-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Spark Serif"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/noto-serif-italic-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --paper: #f5f1e8; --paper-2: #ece6da; --card: #fffdf8; --ink: #10172a; --ink-2: #353f5a; --muted: #5d667e; --line: #d9d1c1;
  --navy: #17244d; --navy-2: #213467; --red: #c01a1a; --red-2: #9f1313; --gold: #f1b711; --sky: #68b8e8;
  --accent: var(--red);
  --r: 4px; --wrap: 1240px; --gutter: clamp(16px, 4vw, 48px); --header: 72px;
  --f: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Spark Serif", Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 90; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 860px); }

/* перехід між сторінками (Chrome, Safari 18.2+; інші — звичайне відкриття) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* типографіка */
h1 { font-weight: 700; font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.8rem); line-height: .98; letter-spacing: -.038em; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-weight: 650; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--red); letter-spacing: -.01em; }
.lead { margin-top: 18px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); line-height: 1.5; max-width: 40rem; text-wrap: pretty; }
.note { color: var(--muted); font-size: .9375rem; }
.hint { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.eyebrow, .label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4a5369; }
.label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.label b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--red-2); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 22px; border-radius: var(--r);
  font: 600 1rem/1.15 var(--f); text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 1.15em; height: 1.15em; flex: none; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.more, .link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.more .ic, .link-arrow .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.more:hover .ic, .link-arrow:hover .ic { transform: translateX(5px); }
.more { margin-top: 32px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 40; height: var(--header); background: rgba(245, 241, 232, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; margin-right: auto; }
.logo .rosette { width: 34px; height: 34px; }
.logo .word { height: 24px; width: auto; }
.rosette .spark { fill: #f1b711; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rosette .petal { transform-box: fill-box; transform-origin: center; }
.js .logo .rosette .petal { animation: petal-in .9s var(--ease) backwards; animation-delay: calc(120ms + var(--i) * 45ms); }
.js .logo .rosette .spark { animation: spark 1s ease-out both; }
@keyframes petal-in { from { opacity: 0; transform: translate(calc(var(--dx) * -40px), calc(var(--dy) * -40px)) scale(.12); } }
@keyframes spark { 0% { opacity: 0; transform: scale(.1); } 25% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: scale(.3); } }
.nav { display: none; gap: 30px; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); font-size: .9688rem; font-weight: 500; padding: 10px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer; }
.burger i { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1000px) { .nav { display: flex; } .burger { display: none; } }

/* меню на телефоні: на весь екран */
.menu { position: fixed; inset: var(--header) 0 0; z-index: 39; background: var(--navy); color: #fff; overflow-y: auto; }
.menu-in { display: flex; flex-direction: column; gap: 6px; padding: 28px 0 40px; }
.menu-in a:not(.btn) { font-size: clamp(1.9rem, 1.4rem + 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; text-decoration: none; padding: 6px 0; }
.menu-in a[aria-current="page"] { color: var(--gold); }
.menu-in .btn { margin-top: 24px; align-self: flex-start; }
.menu.open .menu-in > * { animation: menu-in .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }
html.menu-open { overflow: hidden; }

/* перший екран */
.hero { padding: clamp(24px, 3.5vw, 56px) 0 clamp(24px, 3.5vw, 44px); }
.hero-in { display: grid; gap: 28px; align-items: center; }
.eyebrow { margin-bottom: 18px; }
.sub { margin-top: 22px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); max-width: 34rem; text-wrap: pretty; }
.sub-full { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.act { display: flex; flex-direction: column; gap: 8px; }
.hero-art { position: relative; margin: 0; }
.hero-photo { overflow: hidden; border-radius: var(--r); background: #2a3550; aspect-ratio: 12 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 22%; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.js .hero-photo img { animation: photo-in 1.6s var(--ease) both; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.18); } }
.hero-rosette { position: absolute; width: 74px; left: -10px; bottom: -18px; filter: drop-shadow(0 8px 18px rgba(16, 23, 42, .25)); }
.hero-rosette .rosette { width: 100%; height: auto; }
.hero-rosette .spark { display: none; }
.js .hero-rosette .petal { animation: petal-in 1.1s var(--ease) backwards; animation-delay: calc(450ms + var(--i) * 60ms); }
.tags { position: absolute; inset: 10px 10px 10px auto; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--r); background: var(--card); color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.2; box-shadow: 0 8px 22px rgba(16, 23, 42, .22); }
.tag .ic { width: 16px; height: 16px; color: var(--red); flex: none; }
.js .tag { animation: tag-in .8s var(--ease) both; animation-delay: 900ms; }
.js .tag-2 { animation-delay: 1050ms; }
@keyframes tag-in { from { opacity: 0; transform: translateY(12px); } }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.trust li { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.trust .ic { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 2px; }
/* слова заголовка виїжджають знизу по черзі (JS розбиває на слова; без JS — звичайний заголовок) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; animation: word-up .9s var(--ease) both; animation-delay: calc(80ms + var(--wi) * 55ms); }
@keyframes word-up { from { transform: translateY(108%); } }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 5vw, 80px); }
  .sub-full { display: block; } .sub-m { display: none; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-photo img { object-position: 72% 50%; }
  .hero-rosette { width: clamp(110px, 11vw, 160px); left: -48px; bottom: -40px; }
  .tags { inset: 28px -22px 34px auto; }
  .tag { padding: 11px 15px; font-size: .9375rem; }
  .tag .ic { width: 18px; height: 18px; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 44px); padding-top: 20px; }
  .hero .act:first-child { max-width: 340px; }
}
@media (max-width: 899px) {
  :root { --header: 62px; }
  .top-cta { display: none; }
  .hero { padding-top: 14px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 2.6rem); }
  .hero-in { gap: 18px; }
  .hero-photo { aspect-ratio: 13 / 5; }
  .trust { margin-top: 18px; padding-top: 14px; }
  .actions { margin-top: 20px; }
  .act { flex: 1 1 100%; }
  .act .btn, .actions > .btn { width: 100%; }
}
@media (min-width: 600px) and (max-width: 899px) { .act { flex: 1 1 0; } }
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding: 22px 0 22px; }
  .hero h1 { font-size: clamp(2.2rem, 1rem + 3vw, 3.8rem); }
  .sub { margin-top: 16px; font-size: 1.0625rem; }
  .actions { margin-top: 22px; }
  .hero-photo { aspect-ratio: 6 / 5; }
  .trust { margin-top: 28px; padding-top: 16px; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .hero { padding: 12px 0 10px; }
  .hero-in { gap: 14px; }
  .hero h1 { font-size: 2.05rem; }
  .eyebrow { margin-bottom: 10px; font-size: .75rem; }
  .sub { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .actions { margin-top: 16px; gap: 10px; }
  .hero-photo { aspect-ratio: 3 / 1; }
  .hero-rosette { width: 56px; }
  .trust { margin-top: 12px; padding-top: 12px; gap: 8px 14px; }
  .trust li { font-size: .875rem; }
}
@media (max-width: 899px) and (max-height: 700px) { .hero .trust, .hero .eyebrow { display: none; } }

/* біжучий рядок напрямків */
.ticker { overflow: hidden; background: var(--navy); color: #fff; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: flex; align-items: center; font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ticker li::after { content: ""; width: 12px; height: 16px; margin: 0 26px; background: var(--gold); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ticker li:nth-child(3n+2)::after { background: var(--sky); }
.ticker li:nth-child(3n)::after { background: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* розділи */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-tight { padding: clamp(48px, 7vw, 96px) 0; }
.sec-paper2 { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-navy { background: var(--navy); color: #e9edf7; }
.sec-navy h2 { color: #fff; }
.sec-navy .lead { color: #c3cbe0; }
.sec-navy .label, .sec-navy .label b { color: var(--gold); }
/* поява при прокрутці */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* курси: редакційний перелік (на комп'ютері — фото за курсором) */
.course-list { border-top: 1px solid var(--ink); }
.course-row { border-bottom: 1px solid var(--line); }
.course-row a { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: start; padding: 22px 0; text-decoration: none; }
.course-row .num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent-ink, var(--accent)); padding-top: 4px; }
.row-img { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.row-main { display: grid; gap: 6px; }
.row-title { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; transition: transform .5s var(--ease), color .3s; }
.row-for { color: var(--ink-2); max-width: 44rem; }
.row-go { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 50%; transition: background .3s, color .3s, transform .5s var(--ease); }
.row-go .ic { width: 20px; height: 20px; }
.course-row a:hover .row-title { color: var(--accent-ink, var(--accent)); transform: translateX(10px); }
.course-row a:hover .row-go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.cursor-img { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); box-shadow: 0 24px 60px rgba(16, 23, 42, .3); }
.cursor-img.on { opacity: 1; }
@media (min-width: 900px) {
  .row-img { display: none; }
  .course-row a { grid-template-columns: 90px 1fr auto; padding: 34px 0; align-items: center; }
}
@media (hover: none), (max-width: 899px) { .cursor-img { display: none; } }

/* чому ми: нумерований перелік без іконок */
.why-list { display: grid; gap: 0 clamp(32px, 5vw, 80px); }
.why-list li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.why-n { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--red); line-height: 1.1; }
.why-list p { color: var(--ink-2); }
@media (min-width: 760px) { .why-list { grid-template-columns: 1fr 1fr; } }

/* гнучкість: факти на темному */
.facts { display: grid; gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.facts li { background: var(--navy); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.facts b { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--gold); }
.facts p { color: #c9d1e5; font-size: .9688rem; }
.facts-note { margin-top: 22px; color: #aeb8d2; font-size: .9375rem; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(5, 1fr); } }

/* тест: шкала CEFR */
.test-teaser { display: grid; gap: 48px; align-items: end; }
.test-teaser .sec-head { margin-bottom: 0; }
.test-teaser .btn { margin-top: 30px; }
.scale ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 260px; }
.scale li { display: grid; grid-template-rows: 1fr auto auto; gap: 6px; height: 100%; }
.scale .bar { align-self: end; height: calc(var(--h) * 16.6%); background: var(--navy-2); border-radius: var(--r) var(--r) 0 0; transform-origin: bottom; }
.scale li:nth-child(n+3) .bar { background: var(--sky); }
.scale li:nth-child(n+5) .bar { background: var(--red); }
.js .scale .bar { transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--h) * 80ms); }
.js .scale.in .bar { transform: none; }
.scale b { font-size: 1.25rem; font-weight: 700; }
.scale small { font-size: .75rem; color: var(--muted); line-height: 1.25; }
.scale figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) { .test-teaser { grid-template-columns: 1fr 1fr; gap: 80px; } }
@media (max-width: 499px) { .scale small { display: none; } .scale ol { height: 180px; } }

/* відгуки */
.rv-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 520px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rv-track::-webkit-scrollbar { display: none; }
.rv { position: relative; scroll-snap-align: start; background: var(--card); padding: 30px 28px 26px; border-radius: var(--r); display: flex; flex-direction: column; gap: 22px; }
.rv-q { font-family: var(--serif); font-style: italic; font-size: 4.2rem; line-height: .6; color: var(--red); height: 26px; }
.rv blockquote p { font-size: 1.125rem; line-height: 1.55; }
.rv figcaption { margin-top: auto; display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv figcaption span { color: var(--muted); font-size: .875rem; }
.rv-ctrl { display: flex; gap: 10px; }
.ctrl { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.ctrl:hover { background: var(--ink); color: var(--paper); }
.ctrl .ic { width: 20px; height: 20px; }
.rv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; }
.rv-foot .more { margin-top: 0; }
.rv-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .rv-ctrl { display: none; } }
.rv-wall { columns: 1; column-gap: 18px; }
.rv-wall .rv { break-inside: avoid; margin-bottom: 18px; }
@media (min-width: 800px) { .rv-wall { columns: 2; } }
@media (min-width: 1200px) { .rv-wall { columns: 3; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter button { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--r); background: none; color: var(--ink); font: 600 .9375rem var(--f); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* питання */
.faq-wrap { display: grid; gap: 8px 80px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.4rem 22px 0; color: var(--ink-2); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; } .faq-wrap .sec-head { position: sticky; top: calc(var(--header) + 32px); align-self: start; } }

/* фінал */
.final { background: var(--navy); color: #fff; overflow: hidden; }
.final-in { display: grid; gap: 32px; align-items: center; padding: clamp(64px, 9vw, 120px) 0; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); }
.final p { margin-top: 18px; color: #c3cbe0; font-size: 1.125rem; max-width: 36rem; }
.final .btn { margin-top: 30px; }
.final-art { justify-self: center; width: min(62vw, 380px); }
.final-art .rosette { width: 100%; height: auto; animation: spin 90s linear infinite; }
.final-art .spark { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .final-in { grid-template-columns: 1.3fr .7fr; } }
@media (max-width: 899px) { .final-art { width: 140px; order: -1; justify-self: start; } }

/* підвал */
.foot { background: #0c1430; color: #b4bdd4; font-size: .9375rem; }
.foot-in { display: grid; gap: 28px; padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.logo-light { color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 10px; }
.foot-brand p { max-width: 24rem; }
.foot-nav { display: grid; gap: 2px; align-content: start; }
.foot-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.4fr .8fr 1.2fr 1.2fr; } }

/* липка кнопка на телефоні */
.sticky-cta { position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 10px 26px rgba(16, 23, 42, .28); transform: translateY(160%); transition: transform .45s var(--ease); }
.sticky-cta.on { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

/* заголовок внутрішніх сторінок */
.page-head { padding: clamp(40px, 7vw, 104px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 16ch; }
.nf { min-height: calc(100svh - var(--header) - 140px); display: grid; align-content: center; }
.nf h1 { max-width: none; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: .9375rem; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.crumb { align-items: center; }

/* сторінка «Курси»: великі блоки, що чергуються */
.course-blocks { display: grid; gap: clamp(48px, 7vw, 96px); }
.cblock { display: grid; gap: 22px; align-items: center; }
.cblock-img { display: block; overflow: hidden; border-radius: var(--r); }
.cblock-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.cblock:hover .cblock-img img { transform: scale(1.04); }
.cblock-body .num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent-ink, var(--accent)); margin-bottom: 8px; }
.cblock h2 a { text-decoration: none; }
.cblock h2 a:hover { color: var(--accent-ink, var(--accent)); }
.cblock-for { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); }
.cblock-fmt { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--card); font-size: .875rem; font-weight: 600; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
@media (min-width: 900px) {
  .cblock { grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 80px); }
  .cblock.flip .cblock-img { order: 2; }
}

/* сторінка курсу */
.course-head-in { display: grid; gap: 32px; align-items: center; }
.course-head h1 { max-width: 14ch; }
.course-photo { position: relative; }
.course-photo img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r); }
.course-petal { position: absolute; left: -14px; top: -14px; width: 60px; filter: drop-shadow(0 8px 18px rgba(16, 23, 42, .25)); }
.course-petal .petal-ic { width: 100%; height: auto; }
.js .course-petal { animation: petal-drop 1s var(--ease) .3s both; }
@keyframes petal-drop { from { opacity: 0; transform: translate(-20px, -20px) rotate(-30deg) scale(.4); } }
.two-col { display: grid; gap: 8px 80px; }
.two-col .sec-head { margin-bottom: 18px; }
@media (min-width: 900px) { .course-head-in { grid-template-columns: 1fr 1fr; gap: 64px; } .two-col { grid-template-columns: .8fr 1.2fr; } .two-col .sec-head { position: sticky; top: calc(var(--header) + 32px); align-self: start; } }
.inside-list li { display: flex; gap: 22px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.inside-list li:last-child { border-bottom: 1px solid var(--line); }
.inside-list span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--accent-ink, var(--accent)); letter-spacing: 0; }
.lvl-list li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.lvl-list li:last-child { border-bottom: 1px solid var(--line); }
.lvl-list b { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--accent-ink, var(--accent)); }
.lvl-list small { display: block; margin-bottom: 4px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lvl-list p { color: var(--ink-2); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.formats li { padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 600; border-radius: var(--r); }
.formats + .lead { margin-top: 22px; }
.two-col .note { margin-top: 14px; }
.others { display: grid; border-top: 1px solid var(--ink); }
.others a { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
.others a span { flex: 1; transition: transform .5s var(--ease), color .3s; }
.others a:hover span { transform: translateX(10px); color: var(--accent-ink, var(--accent)); }
.others .petal-ic { width: 22px; height: 22px; flex: none; }
.others .ic { width: 22px; height: 22px; }

/* тест рівня */
.quiz { background: var(--card); border-radius: var(--r); padding: clamp(22px, 4vw, 44px); box-shadow: 0 1px 0 var(--line), 0 20px 50px rgba(16, 23, 42, .08); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .9375rem; }
.ticks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 10px 0 26px; }
.ticks i { height: 4px; background: var(--line); transition: background .3s; }
.ticks i.on { background: var(--red); }
.quiz-q { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); font-weight: 650; letter-spacing: -.015em; line-height: 1.3; outline: none; }
.quiz-opts { display: grid; gap: 10px; margin-top: 24px; }
.quiz-opts button { min-height: 56px; padding: 12px 18px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); font: 500 1.0625rem/1.35 var(--f); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.quiz-opts button:hover { border-color: var(--ink); transform: translateX(4px); }
.quiz-opts button[aria-pressed="true"] { border-color: var(--navy-2); background: var(--navy-2); color: #fff; }
@media (min-width: 700px) { .quiz-opts { grid-template-columns: 1fr 1fr; } }
.quiz-lvl { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.quiz-lvl span { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--red); outline: none; }
.quiz-lvl small { font-size: 1.125rem; font-weight: 600; color: var(--ink-2); }
.quiz-text { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); }
.quiz .hint { margin-top: 12px; }
.quiz .actions { margin-top: 24px; }

/* контакти */
.contact-grid { display: grid; gap: 48px; }
.contact-form { background: var(--card); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); box-shadow: 0 1px 0 var(--line), 0 20px 50px rgba(16, 23, 42, .08); }
.contact-list h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 18px; }
.contact-list ul { border-top: 1px solid var(--ink); }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.125rem; font-weight: 600; transition: color .25s; }
.contact-list a:hover { color: var(--red); }
.contact-list a .ic { width: 26px; height: 26px; flex: none; color: var(--red); }
.contact-list small { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; } }

/* форма заявки (вікно і сторінка контактів) */
html.dlg-open { overflow: hidden; }
.lead-dlg { padding: 0; border: 0; border-radius: var(--r); width: min(100% - 24px, 500px); max-height: min(100dvh - 24px, 780px); background: var(--card); color: var(--ink); box-shadow: 0 40px 90px rgba(10, 16, 36, .4); overflow: auto; }
.lead-dlg::backdrop { background: rgba(12, 20, 48, .62); }
.lead-dlg[open] { animation: dlg-in .45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px); } }
.lead-dlg .lead-box { padding: 30px 26px 26px; }
.lead-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.lead-x:hover { color: var(--ink); }
.lead-form { display: grid; gap: 16px; }
.lead-form h2, .lead-ok h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); padding-right: 36px; outline: none; }
.lead-text { margin-top: -6px; color: var(--ink-2); font-size: .9688rem; }
.lead-lvl { justify-self: start; padding: 6px 12px; background: var(--paper-2); border-left: 3px solid var(--red); font-weight: 600; font-size: .875rem; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid #cdc4b2; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 1.0625rem/1.3 var(--f); }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(33, 52, 103, .16); }
.fld input[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: .8125rem; }
.lead-form .btn { width: 100%; margin-top: 4px; }
.lead-ok { display: grid; gap: 14px; justify-items: start; }
.lead-ok .rosette { width: 64px; height: auto; }
.lead-ok .spark { display: none; }
.lead-ok:not([hidden]) .petal { animation: petal-in .9s var(--ease) backwards; animation-delay: calc(var(--i) * 50ms); }
.lead-ok p { color: var(--ink-2); }
@keyframes sheet-in { from { transform: translateY(40%); opacity: 0; } }
@media (max-width: 599px) {
  .lead-dlg { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 94dvh; border-radius: var(--r) var(--r) 0 0; }
  .lead-dlg[open] { animation-name: sheet-in; }
}
/* без JS: посилання #lead показує форму поверх сторінки */
.lead-dlg:target:not([open]) { display: block; position: fixed; inset: 0; margin: auto; z-index: 80; }
