/* =========================================================
   ZkouskyproMaklere.cz — Zkoušky pro realitní makléře
   ========================================================= */

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --red: #e30613;
  --red-dark: #b8040f;
  --red-deep: #8f030c;
  --blue: #1d4ed8;
  --navy: #0f2a57;
  --navy-2: #173a72;
  --navy-3: #0a1f43;
  --sky: #b9d8ff;
  --cream: #f5f7fb;
  --cream-2: #e9eef8;
  --ink: #232323;
  --muted: #5B6377;
  --white: #fff;
  --line: rgba(0, 14, 53, .10);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 34px rgba(0, 14, 53, .10);
  --shadow-lg: 0 30px 80px -20px rgba(0, 14, 53, .35);
  --font: "Gotham", "Montserrat", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --container: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, .footer { overflow-x: clip; max-width: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: #fff; }
.text-red { color: var(--red); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: rgba(255,255,255,.75); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--red); transform-origin: left; }
.section--navy .eyebrow, .hero .eyebrow { color: rgba(255,255,255,.7); }
.center .eyebrow { justify-content: center; }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { max-width: 20ch; }
.center.section-head h2 { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 40px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  background: var(--bg); color: var(--fg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease), background .4s;
  will-change: transform;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 16px 40px -12px rgba(255,18,0,.6); }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--sm { padding: 11px 24px; font-size: .9rem; font-weight: 600; }
.btn--outline { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--outline::before { background: #fff; }
.btn--outline:hover { color: var(--navy); box-shadow: inset 0 0 0 2px #fff, 0 16px 40px -12px rgba(255,255,255,.35); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--navy), 0 16px 40px -12px rgba(0,14,53,.45); }
.btn--white { --bg: #fff; --fg: var(--navy); }
.btn--white::before { background: var(--red); }
.btn--white:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 2px; color: var(--red); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ff6a3d); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.0);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease), transform .6s var(--ease);
}
.header::after { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: backdrop-filter .5s; }
.header.is-scrolled { --header-h: 70px; background: rgba(255,255,255,.88); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,14,53,.25); }
.header.is-scrolled::after { backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; gap: 28px; width: min(100% - 40px, 1400px); margin-inline: auto; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__img { height: 44px; width: auto; display: block; }
.logo__text {
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: color .4s;
}
.logo__text b { font-weight: 900; text-transform: uppercase; }
.logo__text i { font-style: normal; font-weight: 600; font-size: .76em; letter-spacing: .03em; text-transform: uppercase; color: var(--red); }

/* Header over dark hero */
.header--dark:not(.is-scrolled) .logo__text { color: #fff; }
.header--dark:not(.is-scrolled) .logo__text i { color: rgba(255,255,255,.82); }
.header--dark:not(.is-scrolled) .logo { background: rgba(255,255,255,.95); border-radius: 999px; padding: 7px 12px; }
.header--dark:not(.is-scrolled) .nav a { color: rgba(255,255,255,.85); }
.header--dark:not(.is-scrolled) .nav a:hover, .header--dark:not(.is-scrolled) .nav a.is-active { color: #fff; }
.header--dark:not(.is-scrolled) .header__phone { color: #fff; }
.header--dark:not(.is-scrolled) .burger span { background: #fff; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; font-size: .92rem; font-weight: 600; color: var(--navy);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav a.is-active { color: var(--red); }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--navy); white-space: nowrap; transition: color .3s; }
.header__phone svg { width: 18px; height: 18px; color: var(--red); }
.header__phone:hover { color: var(--red); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; margin-left: auto; z-index: 1102; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span { background: #fff !important; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 1101; background: var(--navy);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior-y: contain;
  padding: calc(var(--header-h) + 16px) clamp(20px, 6vw, 32px) max(24px, env(safe-area-inset-bottom));
  clip-path: circle(0% at calc(100% - 43px) 42px);
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
  visibility: hidden; pointer-events: none;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 43px) 42px); visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mmenu nav { display: flex; flex: none; flex-direction: column; gap: 6px; margin-top: auto; }
.mmenu nav a {
  font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -.02em;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease), color .3s;
}
.mmenu nav a:hover { color: var(--red); }
.menu-open .mmenu nav a { opacity: 1; transform: none; }
.menu-open .mmenu nav a:nth-child(1) { transition-delay: .2s; }
.menu-open .mmenu nav a:nth-child(2) { transition-delay: .25s; }
.menu-open .mmenu nav a:nth-child(3) { transition-delay: .3s; }
.menu-open .mmenu nav a:nth-child(4) { transition-delay: .35s; }
.menu-open .mmenu nav a:nth-child(5) { transition-delay: .4s; }
.menu-open .mmenu nav a:nth-child(6) { transition-delay: .45s; }
.menu-open .mmenu nav a:nth-child(7) { transition-delay: .5s; }
.mmenu__foot { flex: none; margin: 32px 0 auto; display: grid; gap: 10px; color: rgba(255,255,255,.7); opacity: 0; transition: opacity .6s; }
.menu-open .mmenu__foot { opacity: 1; transition-delay: .55s; }
.mmenu__foot a:hover { color: #fff; }
.menu-open .header .logo__text { color: #fff; }
.menu-open .header .logo__text i { color: rgba(255,255,255,.82); }
.menu-open .header .logo { background: rgba(255,255,255,.95); }
.menu-open .header { background: transparent; box-shadow: none; z-index: 1102; transform: none !important; }
.menu-open .header::after { backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: calc(var(--header-h) + clamp(50px, 8vw, 110px)) 0 clamp(60px, 7vw, 100px);
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { color: rgba(255,255,255,.78); margin: 26px 0 38px; max-width: 54ch; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.blob--red { width: 46vw; height: 46vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, #FF1200 0%, rgba(255,18,0,0) 70%); right: -12vw; top: -10vw; animation: float1 18s ease-in-out infinite; }
.blob--blue { width: 54vw; height: 54vw; max-width: 820px; max-height: 820px; background: radial-gradient(circle, #0043FF 0%, rgba(0,67,255,0) 70%); left: -18vw; bottom: -28vw; animation: float2 22s ease-in-out infinite; }
.blob--sky { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; background: radial-gradient(circle, #A3D4F2 0%, rgba(163,212,242,0) 70%); left: 40%; top: 30%; opacity: .18; animation: float3 16s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, 6vw) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, -5vw) scale(.92); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-8vw, 4vw); } 66% { transform: translate(5vw, -6vw); } }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__spot { position: absolute; width: 600px; height: 600px; border-radius: 50%; left: 0; top: 0; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 60%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s; }
.hero:hover .hero__spot { opacity: 1; }
.hero__slash { position: absolute; right: 8%; top: -10%; width: 14px; height: 130%; background: linear-gradient(var(--red), transparent); transform: skewX(-14deg); opacity: .12; }

.hero__visual { display: grid; gap: 12px; min-width: 0; max-width: 560px; justify-self: end; width: 100%; }
.hero__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
}
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: spin 60s linear infinite; }
.orbit--2 { inset: 14%; border-style: solid; border-color: rgba(255,255,255,.08); animation-duration: 40s; animation-direction: reverse; }
.orbit__dot { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(255,18,0,.2), 0 0 30px var(--red); }
.orbit--2 .orbit__dot { background: var(--sky); box-shadow: 0 0 0 6px rgba(163,212,242,.2), 0 0 24px var(--sky); top: auto; bottom: -6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__key {
  position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), rgba(255,255,255,.03) 60%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 60px rgba(255,255,255,.06), 0 40px 100px -30px rgba(0,0,0,.6);
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__key svg { width: 70%; overflow: visible; }
.hero__key .draw { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.8s .5s var(--ease) forwards; }
.hero__key .draw:nth-child(2) { animation-delay: .9s; }
.hero__key .draw:nth-child(3) { animation-delay: 1.2s; }
.hero__key .draw:nth-child(4) { animation-delay: 1.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 12px; }
.hero__highlight {
  min-width: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px; padding: 12px clamp(12px, 1.5vw, 20px); color: #fff;
  overflow-wrap: break-word;
}
.hero__highlight { animation: bob 6s ease-in-out infinite; }
.hero__highlight:nth-child(2) { animation-delay: -3s; }
.hero__highlight:nth-child(3) { animation-delay: -1.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__highlight small { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero__highlight strong { display: block; font-size: clamp(.9rem, 1.3vw, 1.05rem); font-weight: 800; line-height: 1.3; }

.hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(50px, 7vw, 90px); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.1); }
.hero__card { position: relative; background: rgba(0,14,53,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 26px 28px; transition: background .5s var(--ease); overflow: hidden; }
.hero__card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.hero__card:hover { background: rgba(255,255,255,.07); }
.hero__card:hover::before { transform: scaleX(1); }
.hero__card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.hero__card strong { display: block; color: #fff; font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.hero__card span { font-size: .9rem; color: rgba(255,255,255,.65); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Subpage hero */
.hero--sub { min-height: auto; padding-bottom: clamp(70px, 9vw, 120px); }
.hero--sub h1 { max-width: 20ch; }
.breadcrumbs { display: flex; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 26px; }
.breadcrumbs a:hover { color: #fff; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: .9rem; }
.chip svg { width: 16px; height: 16px; color: var(--red); }
.chip--light { background: #fff; border-color: var(--line); color: var(--navy); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--red); color: #fff; padding: 20px 0; position: relative; z-index: 2; }
.marquee--tilt { transform: rotate(-1.5deg) scale(1.02); margin: -18px 0; box-shadow: 0 20px 40px -20px rgba(255,18,0,.5); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font-weight: 800; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: -.01em; white-space: nowrap; text-transform: uppercase; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fcard {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border-radius: var(--radius-lg); padding: 36px 30px 34px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  transform-style: preserve-3d;
}
.fcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255,18,0,.09), transparent 45%);
}
.fcard:hover { box-shadow: var(--shadow-lg); }
.fcard:hover::before { opacity: 1; }
.fcard__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--navy); color: #fff; transition: transform .6s var(--ease), background .4s;
}
.fcard__icon svg { width: 30px; height: 30px; }
.fcard:hover .fcard__icon { transform: rotate(-8deg) scale(1.08); background: var(--red); }
.fcard h3 { margin-bottom: 12px; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em; }
.fcard p { margin: 0; color: var(--muted); font-size: .96rem; }
.fcard__num { position: absolute; right: 22px; top: 18px; font-size: 3.4rem; font-weight: 900; color: var(--cream-2); line-height: 1; z-index: -1; transition: color .5s; }
.fcard:hover .fcard__num { color: rgba(255,18,0,.1); }

/* ---------- Split / exam ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.split--center { align-items: center; }
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.badge-auth {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin: 30px 0;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.badge-auth__seal { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--red), var(--red-deep), var(--red)); color: #fff; font-weight: 900; font-size: .72rem; animation: spin 14s linear infinite; }
.badge-auth__seal span { animation: spin 14s linear infinite reverse; display: block; }
.badge-auth strong { display: block; color: var(--navy); font-size: 1.05rem; }
.badge-auth small { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stat { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 20px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--red); opacity: .18; }
.stat strong { display: block; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* Accordion */
.acc { display: grid; gap: 14px; }
.acc__item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .5s var(--ease), border-color .4s; }
.acc__item.is-open { box-shadow: var(--shadow-lg); border-color: transparent; }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 26px; text-align: left; }
.acc__num { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 900; color: var(--navy); background: var(--cream); transition: background .4s, color .4s, transform .6s var(--ease); }
.acc__item.is-open .acc__num { background: var(--red); color: #fff; transform: rotate(360deg); }
.acc__title { flex: 1; font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.acc__title small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.acc__icon { width: 34px; height: 34px; border-radius: 50%; position: relative; flex-shrink: 0; border: 2px solid var(--line); transition: transform .5s var(--ease), border-color .3s, background .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform .5s var(--ease), background .3s; }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { transform: rotate(180deg); background: var(--navy); border-color: var(--navy); }
.acc__item.is-open .acc__icon::before, .acc__item.is-open .acc__icon::after { background: #fff; }
.acc__item.is-open .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { padding: 0 26px 26px 90px; color: var(--muted); opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .6s var(--ease); }
.acc__item.is-open .acc__body { opacity: 1; transform: none; transition-delay: .12s; }
.acc__body ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.acc__body li { position: relative; padding-left: 24px; }
.acc__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--red); transform: rotate(45deg) scale(.7); }
.acc__body h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--navy); margin: 16px 0 4px; }

.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Terms CTA ---------- */
.terms { position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); color: rgba(255,255,255,.8); padding: clamp(40px, 6vw, 80px); isolation: isolate; }
.terms::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(255,18,0,.6), transparent 65%); z-index: -1; filter: blur(30px); animation: float1 14s ease-in-out infinite; }
.terms::after { content: ""; position: absolute; width: 500px; height: 500px; left: -180px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(0,67,255,.55), transparent 65%); z-index: -1; filter: blur(30px); animation: float2 18s ease-in-out infinite; }
.terms h2 { color: #fff; }
.terms__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.dates { display: grid; gap: 14px; }
.date {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff;
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.date:hover { transform: translateX(8px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.date__cal { width: 56px; height: 60px; border-radius: 12px; background: #fff; color: var(--navy); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; text-align: center; }
.date__cal small { background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .1em; padding: 3px 0; text-transform: uppercase; }
.date__cal b { flex: 1; display: grid; place-items: center; font-size: 1.35rem; font-weight: 900; }
.date strong { display: block; font-size: 1.15rem; font-weight: 800; }
.date span { font-size: .85rem; color: rgba(255,255,255,.6); }
.date .arrow-c { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .3s, transform .5s var(--ease); }
.date:hover .arrow-c { background: var(--red); transform: rotate(-45deg); }
.date .arrow-c svg { width: 16px; height: 16px; }

/* ---------- Program cards ---------- */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.program {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 4vw, 50px);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.program:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program--dark { background: var(--navy); color: rgba(255,255,255,.78); border-color: transparent; }
.program--dark h3 { color: #fff; }
.program__tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(255,18,0,.1); color: var(--red); margin-bottom: 22px; }
.program--dark .program__tag { background: rgba(255,255,255,.1); color: #fff; }
.program h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.program__sub { font-weight: 700; color: var(--navy); margin-bottom: 26px; display: flex; align-items: center; gap: 10px; }
.program--dark .program__sub { color: var(--sky); }
.program__sub svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.program__foot { margin-top: auto; padding-top: 30px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: 19px; top: 10px; width: 2px; height: calc(100% - 20px); background: var(--red); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease); }
.is-in .timeline__fill { transform: scaleY(1); }
.timeline li { position: relative; padding: 0 0 18px 58px; }
.timeline li b { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; box-shadow: 0 0 0 5px #fff; z-index: 1; }
.program--dark .timeline li b { background: var(--red); box-shadow: 0 0 0 5px var(--navy); }
.program--dark .timeline::before { background: rgba(255,255,255,.12); }
.timeline li strong { display: block; color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.program--dark .timeline li strong { color: rgba(255,255,255,.5); }
.timeline li span { display: block; color: var(--ink); font-weight: 600; line-height: 1.45; }
.program--dark .timeline li span { color: #fff; }
.extra { padding: 16px 18px; border-radius: 14px; background: var(--cream); font-size: .92rem; color: var(--muted); }
.extra b { color: var(--navy); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checklist li i { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--red); color: #fff; margin-top: 1px; }
.checklist li i svg { width: 14px; height: 14px; }
.program--dark .checklist li { color: #fff; }

/* ---------- About ---------- */
.about__text p { font-size: 1.05rem; color: var(--muted); }
.about__text p.big { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.45; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.about__text p.big em { font-style: normal; color: var(--red); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.formats span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); transition: background .3s, color .3s, transform .4s var(--ease); }
.formats span:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.mission { position: relative; border-radius: 28px; overflow: hidden; background: var(--navy); padding: clamp(36px, 5vw, 56px); color: #fff; isolation: isolate; }
.mission::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0%, rgba(255,18,0,.55), transparent 50%), radial-gradient(circle at 0% 100%, rgba(0,67,255,.45), transparent 50%); }
.mission svg.big-key { width: 120px; margin-bottom: 30px; overflow: visible; }
.mission blockquote { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.mission p { color: rgba(255,255,255,.7); margin-top: 20px; }

/* ---------- Team ---------- */
.tabs { display: inline-flex; position: relative; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 50px; max-width: 100%; }
.tabs button { position: relative; z-index: 1; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--navy); transition: color .4s; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs__ind { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--navy); transition: transform .6s var(--ease), width .6s var(--ease); }
.team-panel[hidden] { display: none; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.person {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person__img {
  position: relative;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  display: block;
}
.person__img::after { content: none; }
.person__img img {
  --portrait-size: 76%;
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--portrait-size);
  height: var(--portrait-size);
  border-radius: 50%;
  object-fit: contain;
}
#panel-lektori .person__img img {
  --portrait-size: 68%;
}
.person__bio { display: none; }
.person__info { flex: 1; padding: 18px 20px 22px; background: #eef1f5; }
.person__info h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.person__info span { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--navy-2); }
.person__desc { margin: 10px 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; border-radius: 28px; padding: 40px 34px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.price::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(0,67,255,.07), transparent 45%); }
.price:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.price:hover::before { opacity: 1; }
.price--featured { background: var(--navy); color: rgba(255,255,255,.75); border-color: transparent; }
.price--featured::before { background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,18,0,.25), transparent 45%); }
.price--featured h3, .price--featured .price__amount { color: #fff; }
.price__ribbon { position: absolute; top: 22px; right: -42px; transform: rotate(45deg); background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 7px 50px; }
.price__label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.price h3 { font-size: 1.3rem; margin-bottom: 12px; }
.price p { font-size: .94rem; }
.price__amount { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 900; color: var(--navy); letter-spacing: -.04em; line-height: 1; margin: 22px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price__amount small { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.price__vat { font-size: .82rem; color: var(--muted); }
.price--featured .price__vat { color: rgba(255,255,255,.55); }
.price ul { list-style: none; margin: 26px 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .94rem; }
.price--featured ul { border-color: rgba(255,255,255,.12); }
.price li { display: flex; gap: 12px; align-items: flex-start; }
.price li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); margin-top: 2px; }
.price .btn { margin-top: auto; width: 100%; }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; display: grid; gap: 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.t-row { display: flex; width: max-content; gap: 22px; animation: marquee 70s linear infinite; }
.t-row--rev { animation-direction: reverse; animation-duration: 80s; }
.testimonials:hover .t-row { animation-play-state: paused; }
.quote {
  width: min(420px, 82vw); flex-shrink: 0; border-radius: 22px; padding: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 22px; transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.quote:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); transform: translateY(-4px); }
.quote__stars { display: flex; gap: 3px; color: #FFB800; }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { margin: 0; color: rgba(255,255,255,.85); font-size: .98rem; line-height: 1.6; }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--navy-2); }
.quote strong { display: block; color: #fff; font-size: .95rem; }
.quote span { font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 80px); background: var(--red); color: #fff; isolation: isolate; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.18), transparent 30%); animation: spin 12s linear infinite; }
.cta-band::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 30px; background: linear-gradient(135deg, #FF1200, #D10F00 60%, #AA1120); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); margin: 16px 0 0; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); }
.contact__info { display: grid; gap: 14px; align-content: start; }
.cinfo { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: #fff; border-radius: 18px; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cinfo:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.cinfo i { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--cream); color: var(--red); transition: background .4s, color .4s; }
.cinfo:hover i { background: var(--red); color: #fff; }
.cinfo i svg { width: 22px; height: 22px; }
.cinfo small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cinfo strong { color: var(--navy); font-size: 1.02rem; }
.form { background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy); background: var(--cream); border: 2px solid transparent; border-radius: 14px;
  padding: 26px 18px 10px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 20px; top: 18px; font-size: .95rem; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease), font-size .35s var(--ease), color .3s; transform-origin: left top; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 5px rgba(0,14,53,.06); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-10px); font-size: .72rem; font-weight: 700; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { position: absolute; }
.form__status[data-state] { padding: 16px 18px; border-radius: 14px; }
.form__status[data-state="ok"] {
  background: #e5f8ec; color: #145a38; border: 1px solid #a1d3b7;
  border-inline-start: 4px solid #167548; font-size: 1.125rem; font-weight: 800; line-height: 1.4;
}
.form__status[data-state="error"] { background: #fff1f0; color: #8b1420; }
@keyframes pop { from { opacity: 0; transform: scale(.95); } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: rgba(255,255,255,.65); padding: 90px 0 30px; position: relative; overflow: hidden; }
.footer__big { position: absolute; left: 50%; bottom: -3vw; transform: translateX(-50%); font-size: 19vw; font-weight: 900; letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.footer .logo__text { color: #fff; }
.footer .logo__text i { color: rgba(255,255,255,.82); }
.footer .logo { background: #fff; border-radius: 12px; padding: 8px 10px; }
.footer p { margin-top: 20px; max-width: 36ch; font-size: .95rem; }
.footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { position: relative; transition: color .3s, padding .4s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 12px; }
.footer ul a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 2px; background: var(--red); opacity: 0; transition: opacity .3s; }
.footer ul a:hover::before { opacity: 1; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 28px; font-size: .85rem; position: relative; }

/* ---------- To top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,14,53,.6); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 157; stroke-dashoffset: 157; stroke-linecap: round; }
.to-top:hover svg.ring circle { stroke: #fff; }
.to-top .arr { width: 18px; height: 18px; }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 2000; pointer-events: none; display: grid; place-items: center; }
.curtain__panel { position: absolute; inset: 0; background: var(--navy); transform: scaleY(0); transform-origin: bottom; }
.curtain__panel--red { background: var(--red); }
.curtain__logo { position: relative; z-index: 2; opacity: 0; transform: translateY(14px); }
.curtain__logo img { display: block; width: 82px; height: 82px; border-radius: 50%; }
/* intro / arrival state */
html.is-arriving .curtain__panel { transform: scaleY(1); transform-origin: top; }
html.is-arriving .curtain__logo { opacity: 1; transform: none; }
html.is-arrived .curtain__panel { transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-io); }
html.is-arrived .curtain__panel--red { transition-delay: .08s; }
html.is-arrived .curtain__logo { opacity: 0; transform: translateY(-14px); transition: opacity .35s, transform .5s var(--ease); }
/* leaving */
html.is-leaving .curtain { pointer-events: auto; }
html.is-leaving .curtain__panel { transform: scaleY(1); transform-origin: bottom; transition: transform .7s var(--ease-io); }
html.is-leaving .curtain__panel--red { transition-delay: 0s; }
html.is-leaving .curtain__panel:not(.curtain__panel--red) { transition-delay: .08s; }
html.is-leaving .curtain__logo { opacity: 1; transform: none; transition: opacity .3s .45s, transform .5s .45s var(--ease); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), clip-path 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); will-change: transform, opacity; }
.js [data-reveal="up"] { transform: translateY(50px); }
.js [data-reveal="down"] { transform: translateY(-40px); }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="scale"] { transform: scale(.88); }
.js [data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
.js [data-reveal="clip"] { clip-path: inset(0 0 100% 0); transform: translateY(30px); opacity: 1; }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js .eyebrow[data-reveal]::before { transform: scaleX(0); transition: transform 1s .3s var(--ease); }
.js .eyebrow[data-reveal].is-in::before { transform: scaleX(1); }

/* split words */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
.split-words.is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header__phone, .header .btn--sm { display: none; }
  .burger { display: block; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1181px) { .mmenu { display: none; } }
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 420px; margin-top: 10px; }
  .split, .terms__grid, .contact { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .programs { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .logo__img { height: 34px; }
  .header--dark:not(.is-scrolled) .logo { padding: 6px 10px; }
  .hero { min-height: auto; }
  .hero__photo { border-radius: 20px; }
  .hero__cards { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 18px 14px; }
  .acc__body { padding: 0 20px 22px 20px; }
  .acc__btn { padding: 20px; gap: 14px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 12px 10px; font-size: .82rem; white-space: normal; line-height: 1.25; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .person__info { padding: 14px; }
  .person__info h3 { font-size: .9rem; }
  .person__info span { font-size: .62rem; }
  .person__bio { font-size: .76rem; padding: 12px; }
  .btn { padding: 16px 30px; }
  .btn-row .btn { flex: 1 1 auto; }
  .date { padding: 14px 16px; }
  .marquee--tilt { transform: rotate(-2deg) scale(1.04); }
  .js [data-reveal="left"] { transform: translateX(-30px); }
  .js [data-reveal="right"] { transform: translateX(30px); }
  .js [data-reveal].is-in { transform: none; }
}
@media (max-width: 400px) {
  .team { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats { gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat strong { font-size: 1.6rem; }
  .stat span { font-size: .74rem; }
}
@media (hover: none) {
  .person__bio { display: none; }
  .person.is-tapped .person__bio { display: block; }
}

/* Keep touch animations on opacity and transforms, without live blur or clipping. */
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .header::after { display: none; }
  .header.is-scrolled { background: var(--white); }
  .menu-open .header.is-scrolled { background: transparent; }
  .hero .blob, .terms::before, .terms::after {
    filter: none;
    will-change: auto;
  }
  .hero[data-motion-viewport]:not(.motion-in-view) .blob,
  .hero[data-motion-viewport]:not(.motion-in-view) .hero__highlight,
  .terms[data-motion-viewport]:not(.motion-in-view)::before,
  .terms[data-motion-viewport]:not(.motion-in-view)::after,
  [data-marquee][data-motion-viewport]:not(.motion-in-view) { animation-play-state: paused; }
  .hero__spot { display: none; }
  .hero__card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js :is([data-reveal], [data-split]) { opacity: 1; transform: none; filter: none; clip-path: none; }
  .split-words .w > span { transform: none; }
  .marquee__track, .t-row { animation: none; }
}

/* ---------- Privacy and cookie preferences ---------- */
.footer__privacy { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__privacy a, .footer__privacy button { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.form__privacy { color: var(--muted); font-size: .85rem; }
.form__privacy a, .policy a, .cookie-panel a { color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
.policy { max-width: 78ch; }
.policy h2 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); margin: 1.8em 0 .45em; }
.policy p, .policy ul { margin: .75em 0; }
.policy ul { padding-left: 1.4em; }
.cookie-panel {
  position: fixed; z-index: 995; left: 16px; right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom)); margin-inline: auto; max-width: 580px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: clamp(16px, 4vw, 24px); border: 1px solid var(--line);
  border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg);
}
.cookie-panel h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 6px; }
.cookie-panel p { font-size: .875rem; margin: 0; }
.cookie-panel__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cookie-panel__actions button, .cookie-panel [data-cookie-save] {
  min-height: 44px; padding: 8px; border: 1px solid var(--navy);
  border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; font-size: .86rem;
}
.cookie-panel__actions button:hover, .cookie-panel [data-cookie-save]:hover { background: var(--navy-2); }
.cookie-panel__details { margin-top: 6px; }
.cookie-panel__details summary {
  display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px;
  list-style: none; cursor: pointer; color: var(--navy); font-size: .875rem; font-weight: 700;
}
.cookie-panel__details summary::-webkit-details-marker { display: none; }
.cookie-panel__details summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cookie-panel__details[open] summary::after { transform: rotate(225deg); }
.cookie-panel__details:not([open]) .cookie-panel__less,
.cookie-panel__details[open] .cookie-panel__more { display: none; }
.cookie-panel__choices { display: grid; gap: 8px; margin-bottom: 10px; }
.cookie-panel__choice {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 12px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--white); color: var(--navy); font-size: .875rem;
}
label.cookie-panel__choice { cursor: pointer; }
label.cookie-panel__choice:hover { border-color: var(--navy); }
.cookie-panel__choice small { display: block; color: var(--muted); line-height: 1.35; }
.cookie-panel__always {
  padding: 4px 8px; border-radius: 999px; background: #e5f8ec; color: #145a38;
  font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.cookie-panel__choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-panel__switch {
  display: flex; align-items: center; width: 44px; height: 26px; padding: 3px;
  border: 1px solid transparent; border-radius: 999px; background: #65748c;
}
.cookie-panel__switch::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--white); }
.cookie-panel__choice input:checked + .cookie-panel__switch { justify-content: flex-end; background: #167548; }
.cookie-panel__choice input:focus-visible + .cookie-panel__switch { outline: 2px solid var(--red); outline-offset: 3px; }
@media (forced-colors: active) {
  .cookie-panel__switch { border-color: ButtonText; }
  .cookie-panel__switch::before { background: ButtonText; }
  .cookie-panel__choice input:focus-visible + .cookie-panel__switch { outline-color: Highlight; }
}
.cookie-panel [data-cookie-save] { width: 100%; margin-bottom: 10px; }
.cookie-panel .cookie-panel__links { font-size: .78rem; }
.cookie-panel :focus-visible, .footer__privacy :focus-visible, .policy :focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}
.cookie-panel[hidden], [data-cookie-settings][hidden] { display: none; }
