/* EU TRUST AI · лендінги курсів. Стиль «Glow»: темне тло, сяйво синього і помаранчевого, шрифти e-Ukraine. */

@font-face { font-family: "eUkraine"; src: url(fonts/eUkraine-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "eUkraine"; src: url(fonts/eUkraine-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "eUkraine"; src: url(fonts/eUkraine-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "eUkraine"; src: url(fonts/eUkraine-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "eUkraineHead"; src: url(fonts/eUkraineHead-200.woff2) format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "eUkraineHead"; src: url(fonts/eUkraineHead-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "eUkraineHead"; src: url(fonts/eUkraineHead-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "eUkraineHead"; src: url(fonts/eUkraineHead-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "eUkraineHead"; src: url(fonts/eUkraineHead-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- токени ---------- */
:root {
  --font: "eUkraine", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "eUkraineHead", "eUkraine", system-ui, sans-serif;
  --blue: #2B5CFF; --amber: #F2A03A; --green: #17B890; --violet: #8A5CFF;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: 20px;
  --max: 1200px;
  --nav-h: 68px;

  --bg: #05060B; --bg-2: #0B0E19; --panel: rgba(255,255,255,.035); --panel-2: rgba(255,255,255,.06);
  --ink: #EEF1FA; --ink-2: #C9CFE0; --muted: #98A0B8; --faint: #4A5170;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --glass: rgba(9,11,20,.72); --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  --blend: screen; --glow-o: .85; --grain-o: .09;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F3F5FB; --bg-2: #E9EDF8; --panel: rgba(255,255,255,.62); --panel-2: rgba(255,255,255,.85);
  --ink: #0D1122; --ink-2: #2A3150; --muted: #565E7A; --faint: #B4BBD0;
  --line: rgba(13,17,34,.09); --line-2: rgba(13,17,34,.16);
  --glass: rgba(246,248,253,.8); --shadow: 0 30px 70px -34px rgba(30,40,90,.35);
  --blend: multiply; --glow-o: .55; --grain-o: .05;
  color-scheme: light;
}

/* акценти курсу */
[data-accent="amber"] { --acc: #F2A03A; --acc-2: #FF6A2B; --sec: #2B5CFF; --acc-ink: #FFB861; --on-acc: #1B1004; }
[data-accent="blue"]  { --acc: #2B5CFF; --acc-2: #6C4DFF; --sec: #F2A03A; --acc-ink: #93AAFF; --on-acc: #FFFFFF; }
[data-accent="green"] { --acc: #17B890; --acc-2: #21C4D8; --sec: #2B5CFF; --acc-ink: #4FE0B9; --on-acc: #03231A; }
[data-accent="violet"]{ --acc: #8A5CFF; --acc-2: #D04DF0; --sec: #2B5CFF; --acc-ink: #B9A0FF; --on-acc: #FFFFFF; }
[data-theme="light"] [data-accent="amber"] { --acc-ink: #A55700; }
[data-theme="light"] [data-accent="blue"]  { --acc-ink: #1F45D6; }
[data-theme="light"] [data-accent="green"] { --acc-ink: #06775A; }
[data-theme="light"] [data-accent="violet"]{ --acc-ink: #5B2FD6; }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 760px) { :root { --gut: 40px; } }

.h2 { font-family: var(--head); font-weight: 300; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; max-width: 17ch; text-wrap: balance; }
.h3 { font-family: var(--head); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }
.sec { position: relative; padding: clamp(64px, 3rem + 5vw, 120px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-note { color: var(--muted); max-width: 42ch; }
.prose p + p { margin-top: 1em; }
.prose p { max-width: 62ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }

/* ---------- кнопки ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
  overflow: hidden; isolation: isolate;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-acc { color: var(--on-acc); background: linear-gradient(120deg, var(--acc), var(--acc-2)); box-shadow: 0 10px 34px -12px var(--acc); }
.btn-acc::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-acc:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--acc); }
.btn-acc:hover::after { transform: translateX(120%); }
.btn-acc .ic { transition: transform .3s var(--ease); }
.btn-acc:hover .ic { transform: translateX(3px); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--acc-ink); transform: translateY(-2px); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer; transition: border-color .3s, transform .3s var(--ease); }
.icon-btn:hover { border-color: var(--acc-ink); transform: rotate(-12deg); }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }

/* ---------- навігація ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--glass); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--acc-ink); border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--head); font-weight: 500; font-size: .98rem; letter-spacing: .01em; white-space: nowrap; }
.nav-cta .sm { display: none; }
@media (max-width: 560px) { .nav-cta .lg { display: none; } .nav-cta .sm { display: inline; } }
.brand-txt small { font-size: .72rem; color: var(--muted); }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .9375rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-act { display: flex; align-items: center; gap: 10px; }
.nav-acct { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; transition: color .2s, border-color .2s; }
.nav-acct:hover { color: var(--ink); border-color: var(--acc-ink); }
@media (max-width: 420px) { .nav-acct { padding: 6px 10px; font-size: .875rem; } }
/* вхід / моє навчання: текстом, а на сторінці курсу з кнопкою реєстрації там, де тісно (телефон і поруч із меню розділів), - круглою іконкою з тим самим підписом для читачів екрана */
.nav-acct .ic { display: none; }
@media (max-width: 760px), (min-width: 1240px) {
  .nav-acct-c { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--panel); color: var(--ink); flex: none; }
  .nav-acct-c .ic { display: block; }
  .nav-acct-c .acct-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* меню розділів курсу разом із кнопкою реєстрації вміщається лише від 1240px; вужче воно виштовхувало кнопку за край */
@media (min-width: 1040px) and (max-width: 1239px) { .nav-in:has(.nav-cta) .nav-links { display: none; } }
@media (min-width: 1240px) { .nav-in:has(.nav-cta) { gap: 16px; } }
@media (max-width: 420px) {
  .nav-in:has(.nav-cta) { gap: 10px; }
  .nav-in:has(.nav-cta) .nav-act { gap: 6px; }
  .nav-in:has(.nav-cta) .icon-btn, .nav-acct-c { width: 36px; height: 36px; }
  .nav-in:has(.nav-cta) .lang-sw a { padding: 5px 6px; }
  .nav-act .nav-cta.btn-sm { padding: 0 12px; }
}
/* найвужчі телефони: перемикач теми поступається місцем входу (тема й так іде за налаштуванням системи) */
@media (max-width: 359px) { .nav-in:has(.nav-cta) [data-theme-toggle] { display: none; } }
.prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--sp, 0%); background: linear-gradient(90deg, var(--acc), var(--acc-2)); opacity: 0; transition: opacity .3s; }
.nav.scrolled .prog { opacity: 1; }
@media (min-width: 1040px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .brand-txt small { display: none; } .nav-act .btn-sm { padding: 0 14px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(36px, 6vh, 64px);
  padding: calc(var(--nav-h) + clamp(40px, 10vh, 120px)) 0 clamp(28px, 5vh, 48px);
}
.hero::after { /* зерно, як у мудборді */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .hero::after { filter: invert(1); }
.hero::before { /* плавний перехід у тло */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.glow { position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); filter: blur(70px) saturate(1.2); opacity: var(--glow-o); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s var(--ease); }
.glow i { position: absolute; display: block; border-radius: 50%; mix-blend-mode: var(--blend); will-change: transform; }
.glow .b1 { width: 62vmax; height: 40vmax; right: -12%; top: 4%; background: radial-gradient(closest-side, var(--acc), transparent); animation: drift1 22s ease-in-out infinite alternate; }
.glow .b2 { width: 50vmax; height: 34vmax; left: -18%; top: 30%; background: radial-gradient(closest-side, var(--sec), transparent); animation: drift2 26s ease-in-out infinite alternate; }
.glow .b3 { width: 36vmax; height: 26vmax; right: 18%; top: 42%; background: radial-gradient(closest-side, var(--acc-2), transparent); opacity: .75; animation: drift3 19s ease-in-out infinite alternate; }
[data-theme="light"] .glow .b2 { opacity: .55; }
@keyframes drift1 { to { transform: translate(-8vmax, 6vmax) rotate(18deg) scale(1.08); } }
@keyframes drift2 { to { transform: translate(10vmax, -5vmax) rotate(-14deg) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-6vmax, -8vmax) scale(.9); } }

.spark-big {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(300px, 46vw, 680px); right: -6vw; top: calc(var(--nav-h) + 2vh);
  opacity: .9; animation: sparkIn 1.8s var(--ease) both, spin 140s linear 1.8s infinite;
}
@keyframes sparkIn { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: .9; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 759px) { .spark-big { width: 120vw; right: -48vw; top: 4vh; opacity: .5; animation-name: sparkInM, spin; } }
@keyframes sparkInM { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: .5; transform: none; } }

.hero-in { position: relative; }
.hero-aud { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(18px, 3vh, 28px); color: var(--ink-2); font-size: .9375rem; }
.code { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); color: var(--acc-ink); font: 500 .8125rem/1 var(--head); letter-spacing: .02em; background: color-mix(in srgb, var(--acc) 10%, transparent); }
.hero-title {
  font-family: var(--head); font-weight: 300;
  font-size: clamp(2.75rem, 1.2rem + 7.4vw, 7.25rem); line-height: .98; letter-spacing: -.035em;
  max-width: 12ch; text-wrap: balance;
}
.hero-title .w { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.hero-title .w > span { display: inline-block; }
.hero-official { margin-top: clamp(16px, 2.4vh, 24px); max-width: 46ch; font-family: var(--head); font-weight: 400; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.35; color: var(--acc-ink); }
.hero-lead { margin-top: 14px; max-width: 58ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 14px; line-height: 1.25; border-radius: 999px; font-size: .875rem; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-badges li .ic { color: var(--acc-ink); }

.reg-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 14px; line-height: 1.25; border-radius: 999px; font-size: .875rem; font-weight: 500; border: 1px solid var(--line-2); background: var(--panel); width: fit-content; }
.reg-pill .dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.reg-open { color: #3DDC97; border-color: rgba(61,220,151,.35); }
.reg-open .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.2s ease-out infinite; }
.reg-soon { color: var(--amber); border-color: rgba(242,160,58,.35); }
.reg-closed { color: var(--muted); }
[data-theme="light"] .reg-open { color: #0B8A55; }
[data-theme="light"] .reg-soon { color: #A55700; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
.fact { padding: 18px 16px 6px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 16px; }
.fact dt { font-family: var(--head); font-weight: 200; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fact dd { margin: 8px 0 12px; color: var(--muted); font-size: .9375rem; line-height: 1.35; max-width: 20ch; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact, .fact:nth-child(even) { padding: 22px 24px 4px; border-bottom: 0; border-right: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
}

/* поява hero: один узгоджений сценарій */
.js .hero-title .w > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
.js .ha { opacity: 0; transform: translateY(14px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .glow { animation: bloom 2.2s ease-out both; }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; scale: .85; } to { opacity: var(--glow-o); scale: 1; } }

/* ---------- документи (бігучий рядок) ---------- */
.docs { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.docs-in { display: grid; gap: 10px; padding-block: 18px; }
.docs-label { color: var(--muted); font-size: .875rem; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; flex: none; gap: 40px; padding-right: 40px; animation: marq 48s linear infinite; }
.track li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--head); font-weight: 300; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); }
.track li .ic { color: var(--acc-ink); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
@media (min-width: 900px) { .docs-in { grid-template-columns: 180px 1fr; align-items: center; gap: 32px; } .docs-label { max-width: 16ch; line-height: 1.35; } }

/* ---------- поява при прокрутці ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- про курс ---------- */
.about-grid { display: grid; gap: 40px; }
.about-grid .h2 { margin-bottom: 28px; }
.whom { align-self: start; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.whom h3 { font-family: var(--head); font-weight: 500; font-size: 1.125rem; margin-bottom: 16px; }
.checks li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks .ic { color: var(--acc-ink); margin-top: 2px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; } .whom { margin-top: 12px; } }

/* ---------- теми ---------- */
.topics { background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg-2) 70%, transparent) 20%, color-mix(in srgb, var(--bg-2) 70%, transparent) 80%, transparent); }
.part { display: grid; gap: 8px 48px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line-2); }
.part:first-of-type { margin-top: 0; }
.part-k { color: var(--muted); font-size: .875rem; margin-bottom: 4px; }
.part-t { font-family: var(--head); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.2; max-width: 20ch; }
.topic { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic-n { font-family: var(--head); font-weight: 200; font-size: 2.4rem; line-height: .9; letter-spacing: -.04em; color: var(--faint); transition: color .9s ease; font-variant-numeric: tabular-nums; }
.topic.on .topic-n { color: var(--acc-ink); }
.topic-t { font-family: var(--head); font-weight: 500; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.3; }
.topic-d { margin-top: 6px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) {
  .part { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding-top: 36px; margin-top: 36px; }
  .part-head { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
  .topic { grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding: 26px 0; }
  .topic:first-child { padding-top: 6px; }
  .topic-n { font-size: 3.4rem; }
}

/* ---------- результати ---------- */
.out-grid { display: grid; gap: 32px; }
.out-list { display: grid; gap: 0; counter-reset: o; }
.out-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.45; }
.out-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--acc-ink); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent); }
@media (min-width: 900px) {
  .out-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
  .out-side { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
  .out-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .out-list li:nth-child(-n+2) { border-top-color: var(--line-2); }
}

/* ---------- чому важливо ---------- */
.why-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 88px) clamp(24px, 6vw, 88px);
  border-radius: clamp(24px, 3vw, 36px); border: 1px solid var(--line);
  background: var(--bg-2);
}
.why-glow { position: absolute; inset: -40%; z-index: -1; filter: blur(60px); opacity: var(--glow-o);
  background:
    radial-gradient(40% 50% at 85% 20%, var(--acc), transparent 70%),
    radial-gradient(35% 45% at 10% 90%, var(--sec), transparent 70%),
    radial-gradient(30% 35% at 60% 70%, var(--acc-2), transparent 70%);
  animation: whyMove 24s ease-in-out infinite alternate; }
[data-theme="light"] .why-glow { opacity: .4; }
@keyframes whyMove { to { transform: translate(-6%, 4%) rotate(8deg); } }
.why-k { color: var(--ink-2); font-size: 1rem; font-weight: 500; margin-bottom: clamp(18px, 3vw, 32px); display: flex; align-items: center; gap: 10px; }
.why-k::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.why-statement { font-family: var(--head); font-weight: 300; font-size: clamp(1.75rem, 1rem + 3.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.025em; max-width: 22ch; text-wrap: balance; }
.why-grid { display: grid; gap: 0; margin-top: clamp(24px, 4vw, 48px); }
.why-item { padding: 24px 0; border-top: 1px solid var(--line); }
.why-item h3 { font-family: var(--head); font-weight: 500; font-size: 1.1875rem; line-height: 1.25; margin-bottom: 8px; }
.why-item p { color: var(--muted); }
@media (min-width: 760px) { .why-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; column-gap: 32px; } .why-item { padding-top: 28px; } }

/* ---------- як проходить навчання ---------- */
.step-list { position: relative; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 32px 64px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: linear-gradient(var(--acc), transparent); opacity: .5; }
.step:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 300 1.25rem/1 var(--head); color: var(--acc-ink); border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); background: var(--bg); box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px var(--acc); }
.step h3 { font-family: var(--head); font-weight: 500; font-size: 1.1875rem; line-height: 1.25; padding-top: 9px; margin-bottom: 6px; }
.step p { color: var(--muted); max-width: 46ch; }
@media (min-width: 1000px) {
  .step-list { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; }
  .step-list::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--acc), var(--acc-2), var(--sec)); opacity: .5; transform-origin: left; transform: scaleX(var(--lp, 0)); transition: transform 1.6s var(--ease); }
  .step-list.in::before { --lp: 1; }
  .step { padding: 64px 0 0; }
  .step::before { display: none; }
  .step h3 { padding-top: 0; }
}

/* ---------- інструменти ---------- */
.tool-grid { display: grid; gap: 14px; }
.tool { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .35s, transform .35s var(--ease), background-color .35s; overflow: hidden; isolation: isolate; }
.tool::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 40%, transparent), transparent); opacity: 0; transition: opacity .5s; }
a.tool:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); transform: translateY(-4px); }
a.tool:hover::before { opacity: 1; }
.tool-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--acc-ink); border: 1px solid var(--line-2); margin-bottom: 8px; }
.tool h3 { font-family: var(--head); font-weight: 500; font-size: 1.25rem; }
.tool p { color: var(--muted); }
.tool-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--acc-ink); font-weight: 500; font-size: .9375rem; }
.tool-go .ic { transition: transform .3s var(--ease); }
a.tool:hover .tool-go .ic { transform: translateX(4px); }
@media (min-width: 820px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* ---------- реєстрація ---------- */
.reg { overflow: hidden; overflow: clip; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg-2) 80%, transparent) 25%, color-mix(in srgb, var(--bg-2) 80%, transparent) 75%, transparent); }
.reg::before { content: ""; position: absolute; left: 50%; top: 10%; width: 70vmax; height: 40vmax; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 18%, transparent), transparent); pointer-events: none; z-index: 0; }
.reg-grid { position: relative; z-index: 1; display: grid; gap: 32px; }
.reg-info .h2 { margin-bottom: 20px; }
.reg-facts { margin: 24px 0 0; display: grid; gap: 0; }
.reg-facts div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.reg-facts dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; }
.reg-facts dt .ic { color: var(--acc-ink); }
.reg-facts dd { margin: 0; font-family: var(--head); font-weight: 400; font-size: 1.125rem; }
.reg-facts .left { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-family: var(--font); font-size: .8125rem; color: var(--acc-ink); background: color-mix(in srgb, var(--acc) 14%, transparent); vertical-align: 2px; }
.reg-after { margin-top: 20px; color: var(--ink-2); max-width: 44ch; }
.reg-contact { display: flex; gap: 10px; margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.reg-contact .ic { color: var(--acc-ink); margin-top: 2px; }
.reg-contact a { color: var(--acc-ink); }

.frame {
  position: relative; border-radius: 24px; overflow: hidden; height: var(--hm);
  background: #fff; box-shadow: var(--shadow);
  outline: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); outline-offset: 6px;
}
.frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.skeleton { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #F4F2FA; transition: opacity .5s ease, visibility .5s; }
.skeleton i, .skeleton b { display: block; height: 18px; width: 70%; border-radius: 8px; background: linear-gradient(90deg, #E5E1F0 0, #F6F4FB 40%, #E5E1F0 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:first-child { height: 120px; width: 100%; border-radius: 14px; }
.skeleton i.s { width: 45%; }
.skeleton b { height: 44px; width: 140px; border-radius: 999px; margin-top: 12px; }
.frame.loaded .skeleton { opacity: 0; visibility: hidden; }
@keyframes shimmer { to { background-position: -200% 0; } }
.frame-alt { margin-top: 18px; color: var(--muted); font-size: .9375rem; text-align: center; }
.frame-alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--acc-ink); }
@media (min-width: 760px) { .frame { height: var(--hd); } }

.state { position: relative; overflow: hidden; display: grid; gap: 12px; justify-items: start; padding: clamp(28px, 5vw, 56px); border-radius: 24px; border: 1px dashed var(--line-2); background: var(--panel); }
.state-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--acc-ink); border: 1px solid var(--line-2); margin-bottom: 8px; }
.state-soon .state-ic .ic, .state-noform .state-ic .ic { animation: tilt 3s ease-in-out infinite; }
@keyframes tilt { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
.state h3 { font-family: var(--head); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.state p { color: var(--ink-2); max-width: 48ch; }
.state-sub { margin-top: 12px; color: var(--muted) !important; font-size: .9375rem; }
.state-links { display: flex; flex-wrap: wrap; gap: 10px; }
.state-links a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .3s; }
.state-links a:hover { border-color: var(--acc-ink); }
@media (min-width: 960px) {
  .reg-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .reg-info { position: sticky; top: calc(var(--nav-h) + 28px); }
}

/* ---------- питання ---------- */
.faq-grid { display: grid; gap: 28px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--head); font-weight: 400; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--acc-ink); transition: transform .4s var(--ease), background-color .3s; }
.qa[open] .qa-ic { transform: rotate(45deg); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }

/* ---------- інші курси ---------- */
.more { padding-top: 0; }
.more .h3 { margin-bottom: 24px; }
.more-grid { display: grid; gap: 14px; }
.more-card { position: relative; display: grid; gap: 10px; padding: 26px 64px 26px 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .35s, transform .35s var(--ease); }
.more-card::before { content: ""; position: absolute; right: -20%; top: -50%; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 35%, transparent), transparent); opacity: .5; transition: opacity .5s, transform .8s var(--ease); }
.more-card:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); transform: translateY(-3px); }
.more-card:hover::before { opacity: 1; transform: scale(1.2); }
.more-aud { color: var(--muted); font-size: .875rem; }
.more-t { font-family: var(--head); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); line-height: 1.15; }
.more-go { position: absolute; right: 24px; top: 26px; color: var(--acc-ink); transition: transform .3s var(--ease); }
.more-card:hover .more-go { transform: translateX(4px); }
@media (min-width: 760px) { .more-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; } }

/* ---------- каталог ---------- */
.hero-cat { min-height: min(78svh, 760px); }
.cat { padding-top: clamp(24px, 4vw, 48px); }
.cat-list { display: grid; gap: 16px; }
.cat-link {
  position: relative; display: grid; gap: 10px; padding: clamp(24px, 4vw, 48px); padding-bottom: 76px;
  border-radius: clamp(24px, 3vw, 32px); border: 1px solid var(--line); background: var(--panel);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .4s var(--ease);
}
.cat-glow { position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1.4; border-radius: 50%; filter: blur(40px); opacity: .35; background: radial-gradient(closest-side, var(--acc), transparent); transition: opacity .6s, transform 1s var(--ease); }
.cat-link:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); transform: translateY(-4px); }
.cat-link:hover .cat-glow { opacity: .7; transform: translate(-8%, 10%) scale(1.15); }
.cat-aud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.cat-t { font-family: var(--head); font-weight: 300; font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); line-height: 1; letter-spacing: -.03em; margin-top: 8px; }
.cat-off { font-family: var(--head); font-weight: 400; color: var(--acc-ink); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 52ch; }
.cat-lead { color: var(--muted); max-width: 64ch; }
.cat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.cat-fact { color: var(--ink-2); font-size: .9375rem; }
.cat-fact b { font-family: var(--head); font-weight: 400; font-size: 1.1rem; }
.cat-go { position: absolute; left: clamp(24px, 4vw, 48px); bottom: 24px; display: inline-flex; align-items: center; gap: 8px; color: var(--acc-ink); font-weight: 500; }
.cat-go .ic { transition: transform .3s var(--ease); }
.cat-link:hover .cat-go .ic { transform: translateX(5px); }
.cat-draft { position: absolute; right: 20px; top: 20px; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; background: var(--amber); color: #1b1004; }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 80svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; overflow: hidden; isolation: isolate; }
.nf .glow { inset: 0; }
.nf .sec-note { margin: 16px 0 28px; }

/* ---------- підвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.landing .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 40px; }
.foot-eu { display: flex; gap: 18px; align-items: flex-start; }
.eu-flag { flex: none; border-radius: 2px; }
.foot-funded { font-family: var(--head); font-weight: 500; font-size: 1.0625rem; margin-bottom: 6px; }
.foot-legal { color: var(--muted); font-size: .8125rem; line-height: 1.55; max-width: 72ch; }
.foot-cols { display: grid; gap: 28px; font-size: .9375rem; color: var(--ink-2); }
.foot-cols p + p { margin-top: 6px; }
.foot-h { color: var(--muted); font-size: .8125rem; margin-bottom: 10px !important; }
.foot-links li + li { margin-top: 8px; }
.foot-links a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--acc-ink); border-color: currentColor; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; } .landing .foot { padding-bottom: 48px; } }

/* ---------- мобільна кнопка реєстрації ---------- */
.mcta {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease);
}
.mcta.show { transform: none; }
.mcta-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mcta-t b { font-family: var(--head); font-weight: 500; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcta-t small { color: var(--muted); font-size: .75rem; }
@media (min-width: 900px) { .mcta { display: none; } }

/* ---------- панель адміністратора ---------- */
.adminbar { position: fixed; z-index: 60; left: 50%; top: calc(var(--nav-h) + 10px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 999px; background: #10131F; color: #EEF1FA; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 40px -10px rgba(0,0,0,.6); font-size: .8125rem; max-width: calc(100% - 24px); }
.adminbar a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #F2A03A; color: #1b1004; text-decoration: none; font-weight: 500; white-space: nowrap; }
.adminbar-draft { color: #FFC874; }
@media (max-width: 600px) { .adminbar { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); } .adminbar-draft { display: none; } }

/* ---------- менше руху ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .ha { opacity: 1 !important; transform: none !important; }
  .js .hero-title .w > span { transform: none !important; }
  .track { animation: none !important; }
  .marquee { overflow-x: auto; }
}

@media print {
  .nav, .mcta, .adminbar, .glow, .spark-big, .docs, .frame { display: none !important; }
  body { background: #fff; color: #000; }
}
/* перемикач мови UA / EN */
.lang-sw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang-sw a { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted, inherit); text-decoration: none; line-height: 1; }
.lang-sw a[aria-current] { background: var(--acc); color: #fff; }
.lang-sw a:not([aria-current]):hover { color: var(--ink, inherit); }
@media (max-width: 480px) {
  .nav-in:has(.lang-sw) .brand-txt { display: none; }
  .lang-sw a { padding: 5px 7px; }
}

/* ---------- власна форма реєстрації ---------- */
.regbox { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px); border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%), var(--panel-2);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--acc) 45%, transparent), 0 1px 0 rgba(255,255,255,.06) inset; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.regform { display: grid; gap: 18px; }
.rf-head { display: grid; gap: 6px; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.rf-head h3 { font-family: var(--head); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.1; }
.rf-head p { color: var(--muted); font-size: .9375rem; margin: 0 0 10px; }
.regform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-field { display: grid; gap: 8px; }
.rf-field > label, .rf-field legend { font-weight: 600; font-size: .9375rem; color: var(--ink-2); padding: 0; letter-spacing: .01em; }
.rf-field fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rf-req { color: var(--acc-ink); }
.rf-help { color: var(--muted); font-size: .875rem; margin-top: -4px; }
.regform input:not([type=radio]):not([type=checkbox]), .regform textarea, .regform select {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.regform textarea { resize: vertical; min-height: 110px; }
.regform input::placeholder, .regform textarea::placeholder { color: var(--muted); }
.regform input:focus, .regform textarea:focus, .regform select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.rf-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: border-color .2s; }
.rf-opt:hover { border-color: var(--line-2); }
.rf-opt input { width: 18px; height: 18px; accent-color: var(--acc); flex: none; }
.rf-opt:has(input:checked) { border-color: var(--acc); }
.rf-scale { grid-template-columns: auto repeat(auto-fit, minmax(44px, 1fr)) auto; align-items: center; }
.rf-scale legend { grid-column: 1 / -1; margin-bottom: 4px; }
.rf-scale .rf-opt { flex-direction: column; gap: 4px; padding: 10px 4px; justify-content: center; font-size: .875rem; }
.rf-scale-l { color: var(--muted); font-size: .8125rem; }
.rf-note b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.25rem; }
.rf-note p { color: var(--ink-2); margin-top: 4px; }
.rf-field.has-err input, .rf-field.has-err textarea, .rf-field.has-err select, .rf-field.has-err .rf-opt { border-color: #E5484D; }
.rf-err { color: #E5484D; font-size: .875rem; margin: 0; }
[data-theme="light"] .rf-err { color: #C42B30; }
.rf-foot { display: grid; gap: 12px; margin-top: 6px; }
.rf-foot .btn { width: 100%; justify-content: center; }
.rf-foot .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.rf-msg { color: #E5484D; margin: 0; }
.rf-privacy { color: var(--muted); font-size: .8125rem; line-height: 1.5; margin: 0; }
.rf-done { display: grid; gap: 12px; justify-items: start; padding: clamp(8px, 2vw, 18px) 0; outline: none; }
.rf-done:not([hidden]) { animation: rfIn .5s var(--ease, ease) both; }
.rf-done .state-ic { color: var(--acc-ink); }
.rf-done h3 { font-family: var(--head); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.rf-done p { color: var(--ink-2); max-width: 52ch; }
@keyframes rfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rf-done:not([hidden]) { animation: none; } }
@media (max-width: 560px) { .rf-foot .btn { width: 100%; justify-content: center; } .rf-scale { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); } .rf-scale-l { grid-column: span 2; } }
.regbox [hidden] { display: none !important; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1560px) { .brand-txt small { display: none; } }
