/* KEYED website. Layout language studied from clinia.com (cream / ink, light display type, small square-arrow buttons,
   a product window in the hero, thin arcs, orange dots) in KEYED's own identity: the grey-to-black gradient, white marks,
   Thmanyah Sans in every weight, one orange accent. Logical properties everywhere so Arabic (RTL) and English (LTR) share one sheet. */

:root {
  --accent: #F56216;
  --font: 'Thmanyah Sans', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
  --gut: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0d;
  --grad: radial-gradient(130% 95% at 0% 0%, #5a5b5f 0%, #303135 30%, #17181b 58%, #050506 100%);
  --ink: #fff; --ink2: rgba(255, 255, 255, .68); --ink3: rgba(255, 255, 255, .44); --tint: #9c9da2;
  --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .26);
  --card: rgba(255, 255, 255, .055); --card2: rgba(255, 255, 255, .11); --band: rgba(0, 0, 0, .26);
  --panel: #141518; --solid: #fff; --on-solid: #111214;
  --bar: rgba(13, 13, 15, .62); --arc: rgba(255, 255, 255, .15);
  --shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03);
  --close: linear-gradient(125deg, #4b4c50 0%, #1c1d20 46%, #060607 100%);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f2;
  --grad: radial-gradient(130% 95% at 0% 0%, #ffffff 0%, #f6f6f4 38%, #e9e9e6 100%);
  --ink: #131416; --ink2: rgba(19, 20, 22, .66); --ink3: rgba(19, 20, 22, .44); --tint: #9a9ba0;
  --line: rgba(19, 20, 22, .12); --line2: rgba(19, 20, 22, .28);
  --card: #fff; --card2: #e7e7e4; --band: rgba(255, 255, 255, .62);
  --panel: #fff; --solid: #131416; --on-solid: #fff;
  --bar: rgba(250, 250, 248, .74); --arc: rgba(245, 98, 22, .34);
  --shadow: 0 40px 90px -50px rgba(19, 20, 22, .45), 0 0 0 1px rgba(19, 20, 22, .03);
  --close: linear-gradient(125deg, #ffffff 0%, #ededea 55%, #dcdcd8 100%);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-block-size: 100vh; overflow-x: hidden;
  font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.75;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--grad); }
html.js:not(.ready) body { opacity: 0; animation: failsafe .4s 3s forwards; }
html.js.ready body { opacity: 1; transition: opacity .5s ease; }
@keyframes failsafe { to { opacity: 1; } }
img, video, svg { max-inline-size: 100%; }
button { font-family: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: .5rem 1rem; background: var(--solid); color: var(--on-solid); border-radius: 6px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
.wrap { inline-size: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink2); }
.num { unicode-bidi: isolate; }
.unit { font-size: .55em; font-weight: 700; }

.ic { inline-size: 1.15em; block-size: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }
[dir="rtl"] .ic.arrow { transform: scaleX(-1); }

/* ---------------------------------------------------------------- type */
.display { margin: 0; font-weight: 300; font-size: clamp(2.35rem, 6.1vw, 4.9rem); line-height: 1.26; }
.h2 { margin: 0 0 .55em; font-weight: 300; font-size: clamp(1.8rem, 3.8vw, 3.05rem); line-height: 1.32; }
.h3 { margin: 0 0 .5em; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.38; }
html[lang="en"] .display { line-height: 1.07; letter-spacing: -.022em; }
html[lang="en"] .h2, html[lang="en"] .h3 { line-height: 1.16; letter-spacing: -.015em; }
.display, .h2, .h3 { text-wrap: balance; }
.tint { color: var(--tint); }
.lead { margin: 1.25rem 0 0; max-inline-size: 39em; font-size: clamp(1rem, 1.35vw, 1.125rem); color: var(--ink2); }
.eyebrow { display: flex; align-items: center; gap: .65em; margin: 0 0 1.1rem; font-weight: 500; font-size: .8125rem; color: var(--ink2); }
.eyebrow::before, .cd__h::before { content: ""; flex: none; inline-size: 6px; block-size: 6px; background: var(--accent); }
.eyebrow.center { justify-content: center; }
html[lang="en"] .eyebrow, html[lang="en"] .cd__h, html[lang="en"] .foot h4, html[lang="en"] .nav a,
html[lang="en"] .btn > span, html[lang="en"] .win__meta, html[lang="en"] .chips li { text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; }
html[lang="en"] .btn--lg > span { font-size: .75rem; }

/* ---------------------------------------------------------------- buttons */
.sq { display: grid; place-items: center; flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 4px; background: var(--card2); color: var(--ink); transition: background .25s, color .25s; }
.sq .ic { inline-size: .95rem; block-size: .95rem; transition: transform .4s var(--ease-out); }
:is(a, button):hover > .sq .ic.arrow { transform: translateX(3px); }
[dir="rtl"] :is(a, button):hover > .sq .ic.arrow { transform: scaleX(-1) translateX(3px); }
.btn {
  display: inline-flex; align-items: center; gap: .8rem; block-size: 2.5rem; padding-inline: .95rem .375rem;
  border: 0; border-radius: 6px; background: var(--card2); color: var(--ink);
  font-weight: 500; font-size: .875rem; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.btn > .ic { inline-size: 1.1rem; block-size: 1.1rem; }
.btn .sq { background: var(--solid); color: var(--on-solid); }
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--solid); color: var(--on-solid); }
.btn--solid .sq { background: var(--accent); color: #fff; }
.btn--ghost { background: none; padding-inline: 0; }
.btn--ghost .sq { background: var(--card2); color: var(--ink); }
.btn--lg { block-size: 3.25rem; padding-inline: 1.3rem .5rem; font-size: 1rem; font-weight: 700; gap: 1.1rem; }
.btn--lg .sq { inline-size: 2.25rem; block-size: 2.25rem; }
.btn--lg .sq .ic { inline-size: 1.1rem; block-size: 1.1rem; }
.btn--wa { inline-size: 100%; block-size: auto; min-block-size: 3.25rem; padding-block: .5rem; justify-content: space-between; margin-top: .4rem; background: #25D366; color: #06371b; white-space: normal; line-height: 1.35; }
.btn--wa > span { min-inline-size: 0; margin-inline-end: auto; text-align: start; }
.btn--wa .sq { background: #06371b; color: #fff; }

/* ---------------------------------------------------------------- header */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bar); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border-block-end: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.bar.scrolled { border-color: var(--line); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .55); }
.bar__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; block-size: 64px; }
.logo { display: inline-flex; align-items: center; justify-self: start; }
.logo span { display: block; block-size: 26px; aspect-ratio: 544 / 128; background: var(--ink); -webkit-mask: url(/assets/img/logo.png) center / contain no-repeat; mask: url(/assets/img/logo.png) center / contain no-repeat; }
.logo--lg span { block-size: 34px; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a { position: relative; padding-block: .4rem; font-weight: 500; font-size: .875rem; color: var(--ink2); text-decoration: none; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; block-size: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.bar__end { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; }
.theme, .lang { display: inline-flex; padding: 3px; border: 0; border-radius: 999px; background: var(--card2); color: var(--ink3); cursor: pointer; }
.theme__o, .lang__o { display: grid; place-items: center; min-inline-size: 28px; block-size: 24px; padding-inline: 6px; border-radius: 999px; font-size: .6875rem; font-weight: 700; line-height: 1; transition: background .25s, color .25s; }
.theme .ic { inline-size: .85rem; block-size: .85rem; }
[data-theme="light"] .theme__o--l, [data-theme="dark"] .theme__o--d,
html[lang="ar"] .lang__o[data-l="ar"], html[lang="en"] .lang__o[data-l="en"] { background: var(--solid); color: var(--on-solid); }
.burger { display: none; inline-size: 2.5rem; block-size: 2.5rem; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.burger span { display: block; inline-size: 24px; block-size: 2px; margin: 6px auto; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 64px 0 0; z-index: 49; display: flex; flex-direction: column; padding: 1.5rem var(--gut) 2rem; background: var(--panel); overflow-y: auto; animation: fade .25s ease; }
.menu[hidden] { display: none; }
.menu__nav a { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; border-block-end: 1px solid var(--line); font-weight: 300; font-size: 1.75rem; line-height: 1.3; text-decoration: none; }
.menu__foot { display: flex; gap: .75rem; margin-top: auto; padding-top: 2rem; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(2.75rem, 6.5vw, 5.25rem) clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .lead { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 1.5rem; margin-top: 2rem; }
.ic.down, [dir="rtl"] .ic.down { transform: rotate(90deg); }
:is(a, button):hover > .sq .ic.down { transform: rotate(90deg) translateX(3px); }
.arcs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.arcs svg { inline-size: 100%; block-size: 100%; }
.arcs circle, .arcs path { fill: none; stroke: var(--arc); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.arcs__a { transform-origin: 8% 62%; animation: drift 28s ease-in-out infinite alternate; }
.arcs__b { transform-origin: 96% 70%; animation: drift 34s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: rotate(-5deg) scale(1); } to { transform: rotate(7deg) scale(1.06); } }
.node { position: absolute; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--accent); animation: float 11s ease-in-out infinite; }
.node--1 { inset-inline-start: 11%; top: 19%; }
.node--2 { inset-inline-start: 21%; top: 47%; background: var(--tint); animation-duration: 14s; animation-delay: -4s; }
.node--3 { inset-inline-end: 13%; top: 26%; background: var(--tint); animation-duration: 13s; animation-delay: -7s; }
.node--4 { inset-inline-end: 22%; top: 9%; animation-duration: 16s; animation-delay: -2s; }
.node--5 { inset-inline-end: 8%; top: 55%; inline-size: 6px; block-size: 6px; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -18px); } 66% { transform: translate(-12px, 10px); } }

/* the course window */
.courses { display: grid; justify-items: center; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.courses--many { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.course { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); inline-size: min(100%, 1060px); border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.courses--many .course { grid-template-columns: minmax(0, 1fr); }
.win__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; background: #111214; color: #fff; font-size: .6875rem; font-weight: 500; }
.win__label { letter-spacing: .12em; }
.win__meta { margin-inline-start: auto; color: rgba(255, 255, 255, .5); }
.dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--accent); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 98, 22, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(245, 98, 22, 0); } }
.win__media { display: block; position: relative; inline-size: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; cursor: pointer; }
.win__media video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.win__media:hover video { transform: scale(1.015); }
.course__info { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.15rem, 2vw, 1.75rem); }
/* the keyed orange glow on the seam between the picture and the offer */
.course__info::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 1px; background: linear-gradient(180deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); }
.course__info::after { content: ""; position: absolute; inset-block: 14%; inset-inline-start: -30px; inline-size: 60px; background: radial-gradient(closest-side, rgba(245, 98, 22, .5), transparent); filter: blur(18px); pointer-events: none; animation: breathe 5.5s ease-in-out infinite; }
.courses--many .course__info::before { inset: 0 0 auto; inline-size: auto; block-size: 1px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); }
.courses--many .course__info::after { inset: -30px 12% auto; inline-size: auto; block-size: 60px; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.course__title { margin: 0; font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; }
.course__tag { margin: .2rem 0 0; color: var(--ink2); font-size: .9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .15rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.course__buy { display: grid; gap: 1rem; margin-top: auto; padding-top: .75rem; }
.course__buy .btn { justify-content: space-between; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price b { font-weight: 900; font-size: clamp(2.1rem, 3.6vw, 2.9rem); }
.price small { margin-bottom: .35rem; font-size: .75rem; color: var(--ink3); }
.price--row b { font-size: 1.6rem; }

/* ---------------------------------------------------------------- films band */
.band { padding-block: clamp(3rem, 6vw, 5rem); background: var(--band); border-block: 1px solid var(--line); }
.films { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.films__head p:last-child { margin: 0; max-inline-size: 26em; }
.films__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.film { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.film:nth-child(2) { transform: translateY(-14px); }
.film video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.film figcaption { position: absolute; inset-inline-start: .6rem; bottom: .6rem; display: flex; align-items: center; gap: .45rem; padding: .15rem .55rem; border-radius: 4px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: .625rem; font-weight: 500; letter-spacing: .12em; direction: ltr; }

/* ---------------------------------------------------------------- sections */
.sec { padding-block: clamp(4.25rem, 9vw, 8rem); }
.sec--tight { padding-top: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.tile { position: relative; overflow: hidden; min-block-size: 11.5rem; padding: 1.6rem 1.5rem 1.9rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.tile::after { content: ""; position: absolute; inset-inline-end: -95px; top: -125px; inline-size: 270px; block-size: 270px; border: 1px solid currentColor; border-radius: 50%; opacity: .13; }
.tile h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; font-weight: 700; font-size: 1.0625rem; }
.tile p { margin: 0; font-size: .9375rem; color: var(--ink2); }
.tile--solid { background: var(--solid); color: var(--on-solid); border-color: transparent; }
.tile--solid p { color: inherit; opacity: .68; }
.tile--tint { background: var(--card2); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; list-style: none; border-block-start: 1px dashed var(--line2); }
.steps::before { content: ""; position: absolute; top: -4px; inset-inline-start: 0; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--ink); animation: travel 10s linear infinite; }
@keyframes travel { from { inset-inline-start: 0; } to { inset-inline-start: calc(100% - 7px); } }
.step { padding-block-start: 1.5rem; padding-inline-end: 1.5rem; }
.step__top { all: unset; display: flex; align-items: baseline; gap: .75rem; inline-size: 100%; }
.step__n { font-size: .75rem; font-weight: 500; color: var(--ink3); letter-spacing: .08em; }
.step__t { font-weight: 700; font-size: 1.0625rem; }
.step .sq { display: none; }
.step__p { margin: .55rem 0 0; font-size: .9375rem; color: var(--ink2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.split__text .btn { margin-top: 1.6rem; }
.ticks { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: .75rem; padding-block: .2rem; font-weight: 500; }
.ticks li::before { content: ""; flex: none; inline-size: 6px; block-size: 6px; background: var(--accent); }
.panel { position: relative; display: grid; place-items: center; min-block-size: clamp(300px, 36vw, 460px); border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.panel--glow::before { content: ""; position: absolute; inset-inline: -20%; bottom: -48%; block-size: 95%; background: radial-gradient(closest-side, rgba(245, 98, 22, .9), rgba(245, 98, 22, 0)); filter: blur(42px); animation: breathe 7s ease-in-out infinite; }
.flow { position: relative; z-index: 1; display: grid; justify-items: center; }
.chip-card { display: flex; align-items: center; gap: .7rem; min-inline-size: 14rem; padding: .75rem 1rem; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 44px -20px rgba(0, 0, 0, .55); }
.chip-card small { font-size: .8125rem; color: var(--ink2); }
.chip-card b { margin-inline-start: auto; font-weight: 900; font-size: 1.35rem; line-height: 1; }
.chip-card--ok { border-color: var(--accent); }
.chip-card--ok .ic { color: var(--accent); }
.flow__line { inline-size: 2px; block-size: 84px; overflow: visible; }
.flow__line path { fill: none; stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -9; } }
.panel--mark { background: var(--close); }
.mark { display: block; aspect-ratio: 640 / 604; background: var(--ink); -webkit-mask: url(/assets/img/emblem.png) center / contain no-repeat; mask: url(/assets/img/emblem.png) center / contain no-repeat; }
.panel--mark .mark { inline-size: 42%; }

.rowhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 5.5rem); }
.rowhead .h2 { margin-bottom: 0; }
.rowhead > p { margin: 0; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.linkcard { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: background .25s, border-color .25s; }
.linkcard:hover { background: var(--card2); border-color: var(--line2); }
.linkcard__ic { display: grid; place-items: center; flex: none; inline-size: 46px; block-size: 46px; border-radius: 10px; color: #fff; }
.linkcard__ic .ic { inline-size: 1.4rem; block-size: 1.4rem; }
.linkcard__ic--tg { background: #26A5E4; }
.linkcard__ic--wa { background: #25D366; }
.linkcard__t { display: flex; flex-direction: column; line-height: 1.45; min-inline-size: 0; }
.linkcard__t small { font-size: .8125rem; color: var(--ink2); }
.linkcard__t b { font-weight: 700; font-size: 1.125rem; }
.linkcard .sq { margin-inline-start: auto; }

.closing { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; margin-block: 0 clamp(3rem, 7vw, 6rem); padding: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 4rem); border-radius: 12px; overflow: hidden; background: var(--close); border: 1px solid var(--line); }
.closing::before { content: ""; position: absolute; inset-inline-end: -10%; bottom: -60%; inline-size: 60%; block-size: 120%; background: radial-gradient(closest-side, rgba(245, 98, 22, .55), transparent); filter: blur(50px); animation: breathe 8s ease-in-out infinite; }
.closing .mark { position: absolute; inset-inline-end: 4%; top: 50%; inline-size: min(40%, 430px); transform: translateY(-50%); opacity: .12; }
.closing > :not(.mark) { position: relative; }

/* ---------------------------------------------------------------- footer */
.foot { padding-block: 3rem 2rem; background: var(--band); border-block-start: 1px solid var(--line); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block-end: 2rem; border-block-end: 1px solid var(--line); }
.foot__tag { margin: 0; font-weight: 300; font-size: clamp(1.15rem, 2.1vw, 1.6rem); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2.25rem; }
.foot h4 { margin: 0 0 .9rem; font-weight: 500; font-size: .75rem; color: var(--ink3); }
.foot__cols a { display: block; padding-block: .2rem; font-size: .9375rem; color: var(--ink2); text-decoration: none; transition: color .2s; }
.foot__cols a:hover { color: var(--ink); }
.foot__cols a [dir="ltr"], .linkcard__t b { white-space: nowrap; }
.paystrip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.paystrip img { box-sizing: content-box; inline-size: auto; block-size: 18px; padding: 5px 7px; border-radius: 5px; background: #fff; }
.paystrip img.app { block-size: 28px; padding: 0; border-radius: 7px; }
.foot__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.legal { margin: 0; font-size: .8125rem; color: var(--ink3); }
.foot__tog { display: flex; gap: .6rem; }

/* ---------------------------------------------------------------- sheets (course details, payment windows) */
dialog.sheet { inline-size: min(100vw - 2rem, 940px); max-inline-size: none; block-size: min(100dvh - 3rem, 960px); max-block-size: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); overflow: hidden; box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .85); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .5s var(--ease-out); }
dialog.sheet--pay { inline-size: min(100vw - 2rem, 540px); block-size: fit-content; max-block-size: min(100dvh - 3rem, 880px); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .64); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .3s ease; }
dialog.sheet.closing { animation: sheet-out .24s ease forwards; }
dialog.sheet.closing::backdrop { animation: fade-out .24s ease forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) scale(.985); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(16px) scale(.99); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; padding: .8rem 1rem; border-block-end: 1px solid var(--line); }
.sheet__title { display: flex; align-items: center; gap: .7rem; min-inline-size: 0; font-size: .6875rem; font-weight: 500; letter-spacing: .12em; color: var(--ink2); }
.sheet__title h3 { margin: 0; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0; color: var(--ink); }
.x { display: grid; place-items: center; flex: none; inline-size: 2.25rem; block-size: 2.25rem; border: 0; border-radius: 6px; background: var(--card2); color: var(--ink); cursor: pointer; transition: background .2s; }
.x:hover { background: var(--line2); }
.sheet__body:focus { outline: none; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.1rem, 3vw, 2.25rem); }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none; padding: .75rem 1rem; border-block-start: 1px solid var(--line); background: var(--panel); }

.cd__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 1.5rem 2rem; }
.cd__top .h2 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: .3em; }
.cd__top .lead { margin: 0 0 1rem; font-size: 1rem; }
.cd__shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
.cd__shot img { display: block; inline-size: 100%; block-size: auto; }
.cd__h { display: flex; align-items: center; gap: .65rem; margin: 2.3rem 0 .9rem; font-weight: 500; font-size: .8125rem; color: var(--ink2); }
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.gets li { display: flex; gap: .85rem; padding: 1rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.gets .ic { margin-top: .3rem; color: var(--accent); }
.gets b { font-weight: 700; }
.gets p { margin: .15rem 0 0; font-size: .875rem; line-height: 1.65; color: var(--ink2); }
.lessons { margin-bottom: .6rem; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.lessons summary { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.lessons summary::-webkit-details-marker { display: none; }
.lessons summary small { margin-inline-start: auto; font-weight: 400; font-size: .8125rem; color: var(--ink2); white-space: nowrap; }
.lessons[open] summary .sq .ic { transform: rotate(45deg); }
.lessons ol { margin: 0; padding: 0 1rem .5rem; list-style: none; }
.lessons li { display: flex; align-items: baseline; gap: .9rem; padding-block: .5rem; border-block-start: 1px solid var(--line); font-size: .9375rem; }
.lessons__n { flex: none; inline-size: 1.5rem; font-size: .75rem; color: var(--ink3); }
.lessons__d { flex: none; margin-inline-start: auto; font-size: .8125rem; color: var(--ink3); }
.cd__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.cd__two p { margin: 0; font-size: .9375rem; }

.pay { scroll-margin-top: .5rem; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.seg button { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.05rem .8rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; line-height: 1.4; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.seg button::before { content: ""; flex: none; inline-size: 15px; block-size: 15px; border-radius: 50%; border: 1.5px solid var(--ink3); transition: border-color .2s, background .2s; }
.seg button:hover { background: var(--card2); }
.seg button[aria-selected="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.seg button[aria-selected="true"]::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 42%, transparent 48%); }
.seg.pulse { animation: nudge .7s var(--ease-out); }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: scale(1.025); } }
.pay__pick { margin: .9rem 0 0; font-size: .875rem; text-align: center; }
.pay__body.in { animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.pay__price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding: .8rem 1.1rem; border: 1px dashed var(--line2); border-radius: 10px; }
.pay__price small { color: var(--ink2); }
.pay__price b { font-weight: 900; font-size: 2rem; line-height: 1.2; }
.methods { display: grid; gap: .6rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.method { display: flex; align-items: center; gap: 1rem; inline-size: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.method:hover { background: var(--card2); border-color: var(--line2); }
.method__ic { display: grid; grid-auto-flow: column; place-items: center; gap: 7px; flex: none; inline-size: 52px; block-size: 52px; border-radius: 12px; background: #fff; overflow: hidden; }
.method__ic img { display: block; inline-size: 26px; block-size: auto; }
.method__ic img[src$="visa.svg"] { inline-size: 38px; }
.method__ic img[src$="mastercard.svg"] { inline-size: 30px; }
.method__ic img[src$="paypal.svg"] { inline-size: 22px; }
.method__ic--two { inline-size: auto; padding-inline: 10px; }
.method__ic--app { background: none; }
.method__ic--app img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.method__t { display: flex; flex-direction: column; min-inline-size: 0; line-height: 1.5; }
.method__t b { font-weight: 700; }
.method__t small { font-size: .8125rem; color: var(--ink2); }
.method .sq { margin-inline-start: auto; }

.sheet--pay .method__ic { inline-size: 40px; block-size: 40px; border-radius: 10px; }
.sheet--pay .method__ic--two { inline-size: auto; }
.warn { margin-bottom: 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--accent); border-radius: 10px; background: rgba(245, 98, 22, .1); }
.warn h4 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-weight: 900; font-size: 1rem; color: var(--accent); }
.warn ul { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.warn li { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .9375rem; }
.warn li.ok .ic { color: #22c55e; }
.warn li.no { color: var(--ink2); }
.warn li.no .ic { color: #ef4444; }
.warn p { margin: .75rem 0 0; font-size: .8125rem; line-height: 1.65; color: var(--ink2); }
.psteps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.psteps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; }
.psteps__n { display: grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; margin-top: .05rem; border-radius: 4px; background: var(--solid); color: var(--on-solid); font-weight: 900; font-size: .8125rem; line-height: 1; }
.psteps p { margin: 0 0 .6rem; font-weight: 500; }
.psteps li > div > p:last-child { margin-bottom: 0; }
.amt { font-weight: 900; color: var(--accent); white-space: nowrap; }
.amt .unit { font-size: .82em; }
.field { margin-bottom: .5rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.field small { display: block; margin-bottom: .1rem; font-size: .75rem; color: var(--ink3); }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.field code { min-inline-size: 0; font-family: var(--font); font-weight: 700; font-size: 1.0625rem; overflow-wrap: anywhere; unicode-bidi: isolate; -webkit-user-select: all; user-select: all; }
.field--long code { font-size: .875rem; line-height: 1.55; }
.copy { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .4rem .7rem; border: 0; border-radius: 6px; background: var(--card2); color: var(--ink); font: inherit; font-weight: 500; font-size: .8125rem; line-height: 1.3; cursor: pointer; transition: background .2s, color .2s; }
.copy .ic { inline-size: .9rem; block-size: .9rem; }
.copy .ic + .ic { display: none; }
.copy.ok { background: #16a34a; color: #fff; }
.copy.ok .ic { display: none; }
.copy.ok .ic + .ic { display: block; }
.note { margin: 1.3rem 0 0; padding-top: 1rem; border-block-start: 1px dashed var(--line2); font-size: .8125rem; color: var(--ink2); }

.toast { position: fixed; inset-block-end: 1.5rem; inset-inline: 0; z-index: 1000; inline-size: max-content; max-inline-size: 90vw; margin-inline: auto; padding: .5rem 1.1rem; border-radius: 999px; background: var(--solid); color: var(--on-solid); font-weight: 500; font-size: .875rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- reveals */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .95s var(--ease-out) var(--d, 0s), transform .95s var(--ease-out) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .film.rv:nth-child(2).in, .js .rv.in .film:nth-child(2) { transform: translateY(-14px); }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 900px) {
  .course { grid-template-columns: minmax(0, 1fr); }
  .course__info::before { inset: 0 0 auto; inline-size: auto; block-size: 1px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); }
  .course__info::after { inset: -30px 12% auto; inline-size: auto; block-size: 60px; }
  .course__buy { grid-template-columns: auto 1fr; align-items: end; gap: 1.25rem; order: 2; margin-top: 0; padding-top: .25rem; }
  .course__info > .chips { order: 3; }
  .bar__in { grid-template-columns: auto 1fr; }
  .nav, .bar .theme, .bar .lang { display: none; }
  .burger { display: block; }
  .films, .split, .rowhead { grid-template-columns: minmax(0, 1fr); }
  .rowhead { align-items: start; }
  .split--rev .panel { order: 2; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .tile { min-block-size: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); border: 0; }
  .steps::before { display: none; }
  .step { padding: 0; border-block-end: 1px solid var(--line); }
  .step:first-child { border-block-start: 1px solid var(--line); }
  .step__top { align-items: center; padding-block: 1rem; cursor: pointer; }
  .step .sq { display: grid; margin-inline-start: auto; background: var(--solid); color: var(--on-solid); }
  .step.open .sq .ic { transform: rotate(45deg); }
  .step__p { display: none; margin: 0; padding-block-end: 1.1rem; }
  .step.open .step__p { display: block; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  .hero { padding-block-start: 1.75rem; }
  .hero .lead { margin-top: .9rem; }
  .courses { margin-top: 1.75rem; }
  .cta { flex-direction: column; gap: 1rem; }
  .node--2, .node--5 { display: none; }
  .win__bar { padding: .6rem .8rem; }
  .films__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); padding-block: 14px 4px; scrollbar-width: none; }
  .films__row::-webkit-scrollbar { display: none; }
  .film { scroll-snap-align: center; }
  .film:nth-child(2), .js .rv.in .film:nth-child(2) { transform: none; }
  .links { grid-template-columns: minmax(0, 1fr); }
  .closing { align-items: stretch; }
  .closing .btn { align-self: flex-start; }
  .closing .mark { inline-size: 70%; inset-inline-end: -18%; }

  dialog.sheet { inline-size: 100vw; block-size: 100dvh; margin: 0; border: 0; border-radius: 0; }
  dialog.sheet--pay { block-size: fit-content; max-block-size: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-block-start: 1px solid var(--line); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
  .cd__top, .gets, .cd__two { grid-template-columns: minmax(0, 1fr); }
  .cd__shot { order: -1; }
  .cd__two { gap: 0; }
  .seg button { padding: .9rem .5rem; font-size: .9375rem; }
  .sheet__foot .btn--lg { padding-inline-start: 1rem; }
}
@media (max-width: 380px) {
  .seg { grid-template-columns: minmax(0, 1fr); }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 345px) {
  .bar__buy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
