/* ITLEO Academy — unified design system (clean SaaS style). Replaces site-pages/site-theme/site-refresh/home-concept. */

:root {
  --ink: #0b3558;
  --ink-2: #476788;
  --muted: #6b7f99;
  --blue: #0b3558;
  --blue-700: #072540;
  --blue-50: #f0f6ff;
  --blue-100: #dceaff;
  --violet: #7a4dff;
  --pink: #f2559c;
  --teal: #00a99d;
  --amber: #ff9f1c;
  --line: #e3e9f1;
  --line-2: #cfd9e6;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f6f9fc;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 53, 88, .06), 0 1px 3px rgba(11, 53, 88, .04);
  --shadow: 0 14px 34px -14px rgba(11, 53, 88, .22), 0 2px 6px rgba(11, 53, 88, .05);
  --shadow-lg: 0 40px 80px -28px rgba(11, 53, 88, .32), 0 6px 18px rgba(11, 53, 88, .06);
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: min(1200px, calc(100% - 48px));
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html.menu-open, html.site-is-loading { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -.021em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(0, 107, 255, .45); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
main { display: block; }

/* ---------- Buttons ---------- */
.page-cta,
.page-secondary-link,
.page-footer-arrow,
.form-status-link,
.home-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font: 700 1rem/1 var(--font); letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.page-cta { border: 1px solid var(--blue); background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 53, 88, .55); }
.page-cta:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(7, 37, 64, .6); }
.page-secondary-link, .form-status-link { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.page-secondary-link:hover, .form-status-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.page-cta svg, .page-secondary-link svg { width: 18px; height: 18px; }
button.page-cta { font-family: var(--font); }

/* ---------- Preloader (random IT photo + terminal line) ---------- */
.site-preloader { --preloader-hold: 1900ms; position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; overflow: hidden; background: #050b18; color: #fff; transition: opacity .55s ease, visibility .55s ease, transform .55s ease; }
.site-preloader-photo { position: absolute; inset: -2%; background: center / cover no-repeat; opacity: 0; filter: saturate(1.15) contrast(1.05); transform: scale(1.14); transition: opacity .7s ease; }
.site-preloader-photo.is-loaded { opacity: .72; }
.site-preloader.is-active .site-preloader-photo { animation: preload-zoom calc(var(--preloader-hold) + 800ms) cubic-bezier(.2, .6, .2, 1) forwards; }
.site-preloader::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(60% 55% at 50% 50%, rgba(5, 11, 24, .25), rgba(5, 11, 24, .82) 100%),
  radial-gradient(45% 60% at 0% 0%, rgba(22, 91, 251, .45), transparent 70%),
  radial-gradient(40% 55% at 100% 100%, rgba(0, 82, 204, .38), transparent 70%); }
.site-preloader-grid { position: absolute; inset: 0; z-index: 1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.site-preloader-inner { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: center; padding: 0 16px; text-align: center; }
.site-preloader-mark { position: relative; display: block; width: 72px; height: 72px; opacity: 0; transform: scale(.8); transition: opacity .45s ease, transform .55s cubic-bezier(.2, 1.4, .4, 1); }
.site-preloader-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 30px rgba(22, 91, 251, .55)); }
.site-preloader-title { margin: 0; font: 800 clamp(2rem, 5vw, 3.2rem)/1 var(--font-head); letter-spacing: -.021em; color: #fff; text-shadow: 0 4px 24px rgba(4, 20, 60, .55); opacity: 0; transform: translateY(10px); transition: opacity .5s ease .1s, transform .5s ease .1s; }
.site-preloader-title b { font-weight: 800; color: inherit; }
.site-preloader-cmd { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(5, 11, 24, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #9ef0c0; font: 500 clamp(.8rem, 2.4vw, .95rem)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; opacity: 0; transition: opacity .4s ease .25s; }
.site-preloader-cmd span { display: inline-block; overflow: hidden; width: 0; white-space: nowrap; border-right: .55em solid transparent; }
.site-preloader.is-active .site-preloader-cmd span { animation: preload-type 1s steps(var(--preloader-chars, 24), end) .35s forwards, preload-caret .8s step-end infinite; }
.site-preloader-bar { display: block; width: min(220px, 60vw); height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .16); opacity: 0; transition: opacity .4s ease .3s; }
.site-preloader-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0052cc, #4d94ff); transform: scaleX(0); transform-origin: left; }
.site-preloader.is-active .site-preloader-bar i { animation: preload-bar calc(var(--preloader-hold) - 200ms) cubic-bezier(.4, .1, .2, 1) forwards; }
.site-preloader.is-active .site-preloader-mark { opacity: 1; transform: none; }
.site-preloader.is-active .site-preloader-title { opacity: 1; transform: none; }
.site-preloader.is-active .site-preloader-cmd, .site-preloader.is-active .site-preloader-bar { opacity: 1; }
.site-preloader.is-leaving { opacity: 0; visibility: hidden; transform: scale(1.03); }
@keyframes preload-zoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes preload-type { to { width: calc(var(--preloader-chars, 24) * 1ch + .55em); } }
@keyframes preload-caret { 0%, 100% { border-right-color: #9ef0c0; } 50% { border-right-color: transparent; } }
@keyframes preload-bar { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .site-preloader * { animation: none !important; transition: none !important; }
  .site-preloader-cmd span { width: auto; }
  .site-preloader-bar i { transform: none; }
}

/* ---------- Header ---------- */
#site-header { position: sticky; z-index: 1000; top: 0; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.page-skip { position: fixed; z-index: 1500; top: 12px; left: 12px; padding: .7rem 1rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-200%); transition: transform .2s ease; }
.page-skip:focus { transform: none; }
.page-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; width: var(--container); min-height: var(--header-h); margin: 0 auto; }
.page-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 800 1.2rem/1 var(--font-head); letter-spacing: -.021em; color: var(--ink); }
.page-brand b { color: inherit; font-weight: 800; }

.page-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.page-nav > a, .page-nav-item > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .96rem; transition: background-color .15s ease, color .15s ease; }
.page-nav > a:hover, .page-nav-item > a:hover, .page-nav-item:focus-within > a { background: var(--soft); }
.page-nav a[aria-current="page"] { color: var(--blue); font-weight: 800; }
.page-nav-caret { display: inline-block; width: 8px; height: 8px; overflow: hidden; color: transparent; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.page-nav-item { position: relative; }
.page-nav-item:hover .page-nav-caret, .page-nav-item:focus-within .page-nav-caret { transform: translateY(1px) rotate(225deg); }
.page-nav-submenu { position: absolute; top: calc(100% + 8px); left: 50%; display: grid; min-width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.page-nav-submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.page-nav-item:hover .page-nav-submenu, .page-nav-item:focus-within .page-nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.page-nav-submenu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.page-nav-submenu a::after { content: "→"; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.page-nav-submenu a:hover { background: var(--blue-50); color: var(--blue); }
.page-nav-submenu a:hover::after { opacity: 1; transform: none; }

.page-header-actions { display: flex; align-items: center; gap: 8px; }
.page-account-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: 10px; font-weight: 600; font-size: .96rem; color: var(--ink); }
.page-account-link:hover { background: var(--soft); }
.page-header-cta { min-height: 44px; padding: 0 1.25rem; font-size: .95rem; }
.page-menu-button { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 700; cursor: pointer; }
.page-menu-button::before { content: ""; display: inline-block; width: 16px; height: 10px; margin-right: 8px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); vertical-align: -1px; }

.page-menu { position: fixed; z-index: 1200; top: 0; right: 0; display: flex; flex-direction: column; width: min(440px, 92vw); height: 100dvh; padding: 20px 24px 28px; background: var(--surface); box-shadow: var(--shadow-lg); overflow-y: auto; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .4s cubic-bezier(.2, .8, .2, 1), visibility .4s; }
.page-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.page-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.page-menu-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.page-menu-links { display: grid; gap: 4px; padding: 16px 0; }
.page-menu-links > a, .page-menu-group > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font: 700 1.25rem/1.2 var(--font-head); letter-spacing: -.021em; }
.page-menu-links a:hover { background: var(--soft); }
.page-menu-links a[aria-current="page"] { color: var(--blue); }
.page-menu-group .page-nav-caret { display: none; }
.page-menu-submenu { display: grid; gap: 2px; margin: 0 0 8px 12px; padding-left: 12px; border-left: 2px solid var(--blue-100); }
.page-menu-submenu a { padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.page-menu-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.page-menu-foot a { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; }
.page-menu-foot a:last-child { border-color: var(--blue); background: var(--blue); color: #fff; }
.page-menu-backdrop { position: fixed; z-index: 1100; inset: 0; border: 0; background: rgba(11, 53, 88, .35); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.page-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Inner page hero ---------- */
.page-main { display: block; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px); text-align: center; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background:
  radial-gradient(38% 60% at 8% 0%, rgba(0, 107, 255, .13), transparent 70%),
  radial-gradient(34% 55% at 96% 12%, rgba(122, 77, 255, .13), transparent 70%),
  radial-gradient(30% 45% at 78% 100%, rgba(242, 85, 156, .10), transparent 70%),
  linear-gradient(180deg, var(--bg) 0%, var(--soft) 100%); }
.page-hero-inner { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -.021em; line-height: 1.08; }
.page-hero p { max-width: 640px; margin: 22px auto 0; color: var(--ink-2); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; }
.page-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.telegram-hero-button { background: #229ed9; border-color: #229ed9; box-shadow: 0 8px 20px -8px rgba(34, 158, 217, .6); }
.telegram-hero-button:hover { background: #1b87bb; border-color: #1b87bb; }

/* ---------- Sections ---------- */
.page-section { width: var(--container); margin: 0 auto; padding: clamp(64px, 8vw, 112px) 0; }
.page-section > h2 { max-width: 860px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.page-section > .page-intro { max-width: 760px; margin-top: 18px; color: var(--ink-2); font-size: 1.12rem; line-height: 1.65; }
.page-section > h2 + :not(.page-intro), .page-section > .page-intro + * { margin-top: 44px; }
.page-section.soft, .page-section.accent-section { position: relative; background: var(--soft); box-shadow: 0 0 0 100vmax var(--soft); clip-path: inset(0 -100vmax); }
.page-section.accent-section { background: var(--blue-50); box-shadow: 0 0 0 100vmax var(--blue-50); }


.page-callout-section { width: var(--container); margin: clamp(32px, 5vw, 64px) auto clamp(72px, 8vw, 112px); padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px); border-radius: var(--r-xl); text-align: center; color: #fff; background:
  radial-gradient(50% 90% at 0% 0%, rgba(122, 77, 255, .55), transparent 70%),
  radial-gradient(45% 80% at 100% 100%, rgba(242, 85, 156, .35), transparent 70%),
  linear-gradient(135deg, #0a2a47, #0b3558 55%, #134a7c); box-shadow: var(--shadow-lg); }
.page-callout-section > h2 { max-width: 760px; margin: 0 auto; color: #fff; }
.page-callout-section > .page-intro { max-width: 640px; margin: 18px auto 0; color: rgba(255, 255, 255, .88); }
.page-callout-section > .page-cta { margin-top: 32px; border-color: #fff; background: #fff; color: var(--blue); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.page-callout-section > .page-cta:hover { background: #eef5ff; color: var(--blue-700); }

/* ---------- Cards ---------- */
.page-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.page-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.page-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow); }
.page-card-number { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); font: 700 1rem/1 var(--font-head); }
.page-card-icon img { width: 30px; height: 30px; object-fit: contain; }
.page-card h3 { font-size: 1.45rem; }
.page-card p { color: var(--ink-2); flex: 1; }
.page-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--blue); font-weight: 700; }
.page-card-link::after { content: "→"; transition: transform .2s ease; }
.page-card-link:hover::after, .page-card:hover .page-card-link::after { transform: translateX(4px); }
.page-card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.page-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.page-feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.page-feature::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.page-feature h3 { font-size: 1.18rem; letter-spacing: -.015em; }
.page-feature p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }
.about-process .page-feature::before, .event-steps .page-feature::before { display: none; }
.about-process .page-feature h3, .event-steps .page-feature h3 { color: var(--blue); }

.page-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.page-list li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 600; }
.page-list li::before { content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Media ---------- */
.course-cinematic, .kids-page-photo { position: relative; overflow: hidden; margin: 0 0 40px; border-radius: var(--r-xl); background: var(--soft); box-shadow: var(--shadow); aspect-ratio: 2 / 1; }
.course-cinematic img, .kids-page-photo img { width: 100%; height: calc(100% + 56px); object-fit: cover; object-position: var(--focus, 50% 40%); transform: translateY(var(--parallax-y, -28px)); }
.kids-page-photo img { height: 100%; transform: none; }

.academy-gallery { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, minmax(200px, 1fr)); gap: 20px; }
.academy-gallery figure { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); }
.academy-gallery-main { grid-row: span 2; min-height: 440px; }
.academy-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.academy-gallery figure:hover img { transform: scale(1.03); }

/* ---------- Course page ---------- */
.course-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course-topic { padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.course-topic h3 { font-size: 1.25rem; }
.course-topic p { margin-top: 10px; color: var(--ink-2); }
.course-practice-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.course-rhythm { position: relative; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.course-rhythm li, .learning-steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 20px 0; }
.course-rhythm li:not(:last-child)::after, .learning-steps li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 76px; bottom: -4px; width: 2px; background: linear-gradient(var(--blue-100), transparent); }
.course-rhythm span, .learning-steps li > span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--blue-100); border-radius: 50%; background: var(--surface); color: var(--blue); font: 700 1rem/1 var(--font-head); box-shadow: var(--shadow-sm); }
.course-rhythm h3, .learning-steps h3 { font-size: 1.2rem; padding-top: 4px; }
.course-rhythm p, .learning-steps p { margin-top: 6px; color: var(--ink-2); }
.course-project { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(60% 70% at 100% 0%, rgba(122, 77, 255, .55), transparent 70%), linear-gradient(150deg, #0b3558, #0a2a4a); box-shadow: var(--shadow-lg); }
.course-project h3 { margin-top: 14px; color: #fff; font-size: 1.7rem; }
.course-project p { margin-top: 12px; color: rgba(255, 255, 255, .8); }
.course-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.course-tools span { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: .88rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.course-faq, .faq-list { display: grid; gap: 12px; width: 100%; max-width: 900px; margin-inline: auto; }
.course-faq details, .faq-list details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.course-faq details[open], .faq-list details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.course-faq summary, .faq-list summary { position: relative; display: block; padding: 22px 64px 22px 24px; font: 700 1.08rem/1.4 var(--font-head); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.course-faq summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.course-faq summary::after, .faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font: 600 1.25rem/1 var(--font); transform: translateY(-50%); transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.course-faq details[open] summary::after, .faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--blue); color: #fff; }
.course-faq details p, .faq-list details p { padding: 0 24px 24px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.pricing-card-featured { position: relative; border: 2px solid var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.pricing-card h3 { font-size: 1.45rem; }
.pricing-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.pricing-value small { color: var(--muted); font-weight: 600; }
.pricing-value strong { font: 700 3rem/1 var(--font-head); letter-spacing: -.021em; }
.pricing-value span { color: var(--ink-2); font-weight: 600; }
.pricing-card > p:not(.pricing-value) { color: var(--ink-2); }
.pricing-card ul { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; flex: 1; }
.pricing-card li { display: flex; gap: 10px; font-weight: 500; }
.pricing-card li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pricing-card .page-secondary-link { margin-top: 12px; }
.pricing-card-featured .page-secondary-link { border-color: var(--blue); background: var(--blue); color: #fff; }
.pricing-card-featured .page-secondary-link:hover { background: var(--blue-700); }
.price-note { margin-top: 28px; padding: 18px 22px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-2); text-align: center; }
.pricing-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card-featured { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; }
.event-card-media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.event-card-featured .event-card-media { aspect-ratio: auto; min-height: 100%; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.event-card-featured .event-card-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.event-card h3 { font-size: 1.35rem; }
.event-card-featured h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.event-card-meta span { padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.event-card p { color: var(--ink-2); font-size: .97rem; }
.event-card-outcome { display: grid; gap: 4px; margin-top: auto; padding: 14px 16px; border-radius: 12px; background: var(--blue-50); font-size: .92rem; }
.event-card-outcome strong { color: var(--blue); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.event-card-outcome span { color: var(--ink); }

/* ---------- Portfolio / results ---------- */
.result-case-grid, .student-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.student-results-grid { grid-template-columns: repeat(4, 1fr); }
.result-case-card, .student-result-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.result-case-card:hover, .student-result-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow); }
.result-case-card h3 { font-size: 1.5rem; }
.student-result-card h3 { font-size: 1.2rem; }
.result-case-card p, .student-result-card p { color: var(--ink-2); flex: 1; }
.student-result-card p { font-size: .95rem; }
.student-result-card > span { color: var(--blue); font-weight: 700; }
.student-result-card > span::after { content: " →"; }
.result-artifacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; padding: 0; list-style: none; }
.result-artifacts li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.results-all-link { margin-top: 32px; }

.graduate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.graduate-entry { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.graduate-entry span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font: 700 .85rem/1 var(--font-head); }
.graduate-entry h3 { font-size: 1.02rem; letter-spacing: -.01em; }

.uiux-project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.uiux-project-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.uiux-project-visual { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--blue-50); color: var(--blue); font: 700 2rem/1 var(--font-head); }
.uiux-project-visual img { width: 100%; height: 100%; object-fit: cover; }
.uiux-project-visual svg { width: 70%; }
.uiux-project-card h3, .uiux-project-card p, .uiux-project-links { padding: 0 8px; }
.uiux-project-card p { color: var(--ink-2); }
.uiux-project-links { display: flex; flex-wrap: wrap; gap: 12px; }
.uiux-project-links a { color: var(--blue); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-options { max-width: 760px; }
.contact-options .page-intro { color: var(--ink-2); }
.contact-form { width: min(100%, 860px); margin-top: 36px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.contact-form label { display: grid; gap: 8px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.contact-form-wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; outline: 0; background: var(--surface); color: var(--ink); font-size: 1rem; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-form input, .contact-form select { min-height: 54px; padding: 0 16px; }
.contact-form select { appearance: none; padding-right: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23476788' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
.contact-form textarea { min-height: 140px; padding: 14px 16px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #94a3b8; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #aebdd0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 53, 88, .12); }
.contact-form button[type="submit"] { width: 100%; min-height: 56px; font-size: 1.05rem; }
.form-help { margin-top: 14px; color: var(--muted); font-size: .9rem; text-align: center; }
.form-status { margin-top: 10px; color: var(--ink); font-size: .95rem; text-align: center; }
.form-status:not(:empty) { padding: 16px; border-radius: 12px; background: var(--blue-50); }
.form-status-link { min-height: 40px; margin-top: 10px; padding: 0 1rem; font-size: .9rem; }

.page-contact-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-section > h2 + .page-contact-grid, .page-section > .page-intro + .page-contact-grid { margin-top: 28px; }
.page-social, .page-footer-social { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); transition: transform .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease; }
.page-social svg, .page-footer-social svg { width: 22px; height: 22px; }
.page-social:hover, .page-footer-social:hover { transform: translateY(-2px); border-color: var(--blue); background: var(--blue); color: #fff; }

/* ---------- Footer ---------- */
.page-footer { width: var(--container); margin: 0 auto; padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.page-footer-lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.page-footer-lead p { max-width: 640px; font: 700 clamp(1.5rem, 3vw, 2.3rem)/1.2 var(--font-head); letter-spacing: -.015em; }
.page-footer-arrow { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.page-footer-arrow::after { content: "→"; }
.page-footer-arrow:hover { background: var(--blue-700); transform: translateY(-1px); }
.page-footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 48px 0; }
.page-footer-brand a { display: inline-block; color: var(--ink); font: 800 1.25rem/1 var(--font-head); letter-spacing: -.021em; }
.page-footer-brand b { color: inherit; }
.page-footer-brand p { max-width: 320px; margin-top: 14px; color: var(--ink-2); font-size: .95rem; }
.page-footer-column h2 { margin-bottom: 16px; color: var(--muted); font: 700 .8rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.page-footer-links { display: grid; gap: 10px; }
.page-footer-links a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.page-footer-links a:hover { color: var(--blue); }
.page-footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.page-footer-social { width: 44px; height: 44px; }
.page-footer-social svg { width: 20px; height: 20px; }
.page-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.page-back-top { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: border-color .2s ease, color .2s ease; }
.page-back-top svg { width: 20px; height: 20px; }
.page-back-top:hover { border-color: var(--blue); color: var(--blue); }

.telegram-widget { position: fixed; z-index: 900; right: 24px; bottom: 24px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #229ed9; color: #fff; box-shadow: 0 16px 36px -10px rgba(34, 158, 217, .7); transition: transform .2s ease, box-shadow .2s ease; }
.telegram-widget svg { width: 28px; height: 28px; margin-left: -2px; }
.telegram-widget:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Home ---------- */
.home-page main { position: relative; }
.home-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 5vw, 72px); width: var(--container); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.home-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 calc((100vw - 100%) / -2); background:
  radial-gradient(32% 55% at 4% 6%, rgba(0, 107, 255, .12), transparent 70%),
  radial-gradient(34% 60% at 92% 30%, rgba(122, 77, 255, .14), transparent 70%),
  radial-gradient(28% 40% at 70% 100%, rgba(242, 85, 156, .10), transparent 70%); }
.home-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -.021em; }
.home-hero h1 span, .home-hero h1 em { display: block; }
.home-hero h1 em { font-style: normal; background: linear-gradient(92deg, var(--blue) 10%, var(--violet) 70%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.home-hero-lead { max-width: 560px; margin-top: 24px; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

@keyframes float { 50% { transform: translateY(-8px); } }

.home-proof { display: grid; grid-template-columns: repeat(4, 1fr); width: var(--container); margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.home-proof > div { display: grid; gap: 6px; padding: 28px; }
.home-proof > div + div { border-left: 1px solid var(--line); }
.home-proof strong { color: var(--blue); font: 700 2rem/1 var(--font-head); letter-spacing: -.021em; }
.home-proof span { color: var(--ink-2); font-size: .95rem; }

.home-section { width: var(--container); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 0 0; }
.section-head, .kids-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 44px; }
.section-head h2, .kids-section-head h2 { max-width: 860px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section-head h2 span { display: block; color: var(--muted); }
.section-head > p, .kids-section-head p { max-width: 460px; color: var(--ink-2); font-size: 1.05rem; }
.section-head-tight { margin-bottom: 32px; }

.home-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.home-course-card { --accent: var(--blue); --accent-soft: var(--blue-50); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.home-course-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.home-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.home-course-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font: 700 1.1rem/1 var(--font-head); }
.home-course-card h3 { font-size: 1.75rem; }
.home-course-card > p { color: var(--ink-2); }
.home-course-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-course-card li { padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.home-course-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.home-course-card dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.home-course-card dd { margin: 4px 0 0; font-weight: 600; font-size: .95rem; }
.home-course-link { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 700; }
.home-course-link::after { content: " →"; transition: margin .2s ease; }
.home-course-card:hover .home-course-link::after { margin-left: 4px; }

.learning-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.learning-photo { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.learning-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.learning-steps { margin: 0; padding: 0; list-style: none; }

.engineering-practice blockquote { margin: 0 0 40px; padding: 28px 32px; border-left: 4px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; background: var(--blue-50); font: 600 clamp(1.15rem, 2vw, 1.45rem)/1.5 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.engineering-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.engineering-grid article { display: grid; gap: 8px; align-content: start; min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.engineering-grid article:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.engineering-grid strong { font: 700 1.15rem/1.2 var(--font-head); }
.engineering-grid span { color: var(--ink-2); font-size: .93rem; }

.kids-course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kids-course-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.kids-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kid-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.kid-brand-logo { width: 34px; height: 34px; object-fit: contain; }
.kids-course-content { display: grid; gap: 8px; }
.kids-course-content strong { font: 700 1.4rem/1.15 var(--font-head); letter-spacing: -.021em; }
.kids-course-content small { color: var(--ink-2); font-size: .97rem; }

.logo-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.logo-wall > div { display: grid; place-items: center; height: 88px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.logo-wall img { max-width: 64%; max-height: 30px; filter: grayscale(1); opacity: .6; transition: filter .2s ease, opacity .2s ease; }
.logo-wall > div:hover img { filter: none; opacity: 1; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.team-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.team-card > img, .team-card-type > span { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; background: var(--soft); }
.team-card-type > span { display: grid; place-items: center; color: #fff; font: 700 3rem/1 var(--font-head); letter-spacing: -.021em; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.team-card-type:nth-child(4n) > span { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.team-card-type:nth-child(4n + 1) > span { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.team-card > div { padding: 18px 20px 22px; }
.team-card > div > span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.team-card h3 { margin-top: 4px; font-size: 1.15rem; }
.team-card p { margin-top: 4px; color: var(--ink-2); font-size: .9rem; }

.home-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; width: var(--container); margin: clamp(72px, 9vw, 120px) auto; padding: clamp(40px, 6vw, 72px); border-radius: var(--r-xl); color: #fff; background:
  radial-gradient(50% 90% at 0% 0%, rgba(122, 77, 255, .55), transparent 70%),
  radial-gradient(45% 80% at 100% 100%, rgba(242, 85, 156, .35), transparent 70%),
  linear-gradient(135deg, #0a2a47, #0b3558 55%, #134a7c); box-shadow: var(--shadow-lg); }
.home-cta h2 { max-width: 640px; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.home-cta a { border: 1px solid #fff; background: #fff; color: var(--blue); }
.home-cta a::after { content: "→"; }
.home-cta a:hover { background: #eef5ff; transform: translateY(-1px); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .home-section, html.js .home-cta, .motion-enabled .motion-item { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  html.js .home-section.is-visible, html.js .home-cta.is-visible, .motion-enabled .motion-item.is-visible { opacity: 1; transform: none; }
  .motion-enabled .page-card.motion-item.is-visible:hover, .motion-enabled .event-card.motion-item.is-visible:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .page-nav, .page-account-link { display: none; }
  .page-header { grid-template-columns: 1fr auto; }
  .page-menu-button { display: inline-flex; align-items: center; }
}
@media (max-width: 1120px) {
  .student-results-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .engineering-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-proof { grid-template-columns: repeat(2, 1fr); }
  .home-proof > div:nth-child(3) { border-left: 0; }
  .home-proof > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .home-course-grid, .course-topics, .result-case-grid { grid-template-columns: 1fr; }
  .learning-layout, .course-practice-layout { grid-template-columns: 1fr; }
  .learning-photo, .course-project { position: static; }
  .learning-photo img { aspect-ratio: 16 / 10; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
  .pricing-card-featured { transform: none; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card-featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .event-card-featured .event-card-media { aspect-ratio: 16 / 9; }
  .kids-course-list { grid-template-columns: 1fr; }
  .kids-course-card { flex-direction: row; align-items: center; }
  .page-footer-main { grid-template-columns: 1fr 1fr; }
  .page-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); --header-h: 64px; }
  body { font-size: 16px; }
  .page-header-cta { display: none; }
  .page-brand { font-size: 1.15rem; }
    .page-hero-inner { width: calc(100% - 32px); }
  .page-hero-actions, .home-hero-actions { flex-direction: column; align-items: stretch; }
  .page-cta, .page-secondary-link { white-space: normal; text-align: center; min-height: 52px; padding: 12px 1.4rem; line-height: 1.25; }
  .home-proof > div { padding: 20px; }
  .home-proof strong { font-size: 1.6rem; }
  .home-course-card, .page-card, .result-case-card, .student-result-card, .pricing-card { padding: 24px; }
  .home-course-card dl { grid-template-columns: 1fr; }
  .student-results-grid, .events-grid { grid-template-columns: 1fr; }
  .academy-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .academy-gallery-main { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .academy-gallery figure:not(.academy-gallery-main) { aspect-ratio: 4 / 3; }
  .course-cinematic, .kids-page-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .engineering-grid { grid-template-columns: 1fr; }
  .engineering-grid article { min-height: 0; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-wide { grid-column: auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-card-type > span { font-size: 2.2rem; }
  .home-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .page-footer-main { grid-template-columns: 1fr; gap: 28px; }
  .page-footer-lead { flex-direction: column; align-items: flex-start; }
  .telegram-widget { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .course-faq summary, .faq-list summary { padding: 18px 56px 18px 18px; font-size: 1rem; }
  .course-faq details p, .faq-list details p { padding: 0 18px 18px; }
}

/* ---------- Emoji (Microsoft Fluent 3D, MIT) ---------- */
.emoji { display: inline-block; width: 1em; height: 1em; object-fit: contain; vertical-align: middle; }
.emoji-inline { width: .9em; height: .9em; margin-left: .12em; vertical-align: -.1em; }
.page-card-icon .emoji, .page-card-icon img { width: 34px; height: 34px; }
.page-card-number.page-card-icon { background: var(--soft); border: 1px solid var(--line); }
.home-course-mark .emoji { width: 38px; height: 38px; }
.learning-steps li > span .emoji { width: 28px; height: 28px; }
.engineering-grid .emoji { width: 40px; height: 40px; margin-bottom: 6px; }
.pricing-emoji { width: 56px; height: 56px; }
.course-project-emoji { width: 56px; height: 56px; }
.page-footer-lead .emoji { width: 1em; height: 1em; margin-right: .2em; vertical-align: -.1em; }
@media (max-width: 640px) {
}

/* ---------- Hero photo ---------- */
.hero-photo { margin: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--soft); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.home-hero h1 em { display: block; }
@media (max-width: 960px) { .hero-photos { max-width: 680px; } }

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #006bff;
  --blue-700: #0052cc;
  --ink: #e8eef7;
  --ink-2: #a9b8cc;
  --muted: #8193ab;
  --line: #22324a;
  --line-2: #2f4360;
  --soft: #0d1726;
  --bg: #0a1220;
  --surface: #111c2e;
  --blue-50: #13284a;
  --blue-100: #1d3a66;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -28px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] .page-card-link, :root[data-theme="dark"] .home-course-link, :root[data-theme="dark"] .student-result-card > span, :root[data-theme="dark"] .page-nav a[aria-current="page"], :root[data-theme="dark"] .page-nav-submenu a:hover, :root[data-theme="dark"] .uiux-project-links a, :root[data-theme="dark"] .event-card-outcome strong { color: #7fb2ff; }
:root[data-theme="dark"] .home-proof strong { color: #4d94ff; }
:root[data-theme="dark"] .logo-wall img { filter: grayscale(1) invert(1); opacity: .7; }
:root[data-theme="dark"] .kid-icon, :root[data-theme="dark"] .page-card-icon:has(img:not(.emoji)) { background: #fff; }
:root[data-theme="dark"] .page-secondary-link:hover, :root[data-theme="dark"] .form-status-link:hover { border-color: var(--ink-2); }
:root[data-theme="dark"] .contact-form input::placeholder, :root[data-theme="dark"] .contact-form textarea::placeholder { color: var(--muted); }
:root[data-theme="dark"] .price-note { background: var(--surface); }

.page-theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s ease; }
.page-theme-toggle:hover { border-color: var(--line-2); }
.page-theme-toggle svg { width: 20px; height: 20px; }
.theme-moon, :root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; z-index: 1300; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 20px; width: min(760px, calc(100% - 32px)); padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); transform: translateX(-50%); }
.cookie-banner p { flex: 1; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.cookie-banner strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .98rem; }
.cookie-banner a { color: var(--blue); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-actions button { min-height: 44px; padding: 0 1.1rem; font-size: .92rem; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 12px; padding: 16px; }
  .cookie-actions button { flex: 1; }
}

/* ---------- Headings: centered, Weblium-style (Nunito 700, upright) ---------- */
:root { --font-display: "Nunito", system-ui, sans-serif; }
.page-hero h1, .home-hero h1, .page-section > h2, .section-head h2, .kids-section-head h2, .home-cta h2, .page-footer-lead p { font-family: var(--font-display); font-style: normal; font-weight: 700; letter-spacing: -.021em; }
.section-head, .kids-section-head { flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.section-head h2, .kids-section-head h2 { margin-inline: auto; }
.section-head > p, .kids-section-head p { max-width: 640px; margin-inline: auto; }
.page-section > h2, .page-section > .page-intro { margin-inline: auto; text-align: center; }
.contact-options { margin-inline: auto; text-align: center; }
.contact-form { margin-inline: auto; }
.page-section > .page-contact-grid, .pricing-links { justify-content: center; }
.page-section > .page-secondary-link, .page-section > .page-cta:not(.page-callout-section > .page-cta), .results-all-link { display: flex; width: fit-content; margin-inline: auto; }
.page-section > .page-secondary-link { margin-top: 28px; }

/* ---------- Home: full-bleed hero slider (no controls) ---------- */
.home-slider { --slide-interval: 6500ms; position: relative; isolation: isolate; height: clamp(520px, calc(100svh - var(--header-h)), 820px); overflow: hidden; background: #050b18; color: #fff; }
.home-slides { position: absolute; inset: 0; }
.home-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s ease; }
.home-slide.is-active { opacity: 1; visibility: visible; }
.home-slide-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform calc(var(--slide-interval) + 1.5s) linear; }
.home-slide.is-active .home-slide-bg { transform: scale(1); }
.home-slide::before { content: ""; position: absolute; z-index: -1; inset: 0; background:
  linear-gradient(90deg, rgba(5, 14, 32, .86) 0%, rgba(5, 14, 32, .62) 42%, rgba(5, 14, 32, .18) 75%, rgba(5, 14, 32, .05)),
  linear-gradient(0deg, rgba(5, 14, 32, .55), transparent 40%); }
.home-slide-copy { width: var(--container); margin: 0 auto; padding-bottom: 24px; }
.home-slide-copy > * { max-width: 680px; opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.home-slide.is-active .home-slide-copy > * { opacity: 1; transform: none; }
.home-slide.is-active .home-slide-copy > :nth-child(2) { transition-delay: .12s; }
.home-slide.is-active .home-slide-copy > :nth-child(3) { transition-delay: .24s; }
.home-slide.is-active .home-slide-copy > :nth-child(4) { transition-delay: .36s; }
.home-slide-result { margin-top: 18px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.home-slide-result span { color: #9ec4ff; font-weight: 800; }
.home-slide-title, .home-page .home-slider h1.home-slide-title { margin: 0; color: #fff; font: 700 clamp(2.5rem, 6vw, 4.8rem)/1.05 var(--font-head); letter-spacing: -.021em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.home-slide-title em { font-style: normal; color: #fff; }
.home-slide-copy > p:not(.home-slide-title):not(.home-slide-result) { margin-top: 22px; color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; }
.home-slide-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.home-slide-list li { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 700; }
.home-slider-progress { position: absolute; z-index: 2; left: 50%; bottom: 32px; display: flex; gap: 8px; width: var(--container); transform: translateX(-50%); pointer-events: none; }
.home-slider-progress span { position: relative; flex: 0 0 56px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.home-slider-progress span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.home-slider-progress span.is-active::after { animation: slide-fill var(--slide-interval) linear forwards; }
@keyframes slide-fill { to { transform: scaleX(1); } }
.home-page .home-proof { position: relative; z-index: 3; margin-top: -48px; }
@media (max-width: 760px) {
  .home-slider { height: clamp(520px, 86svh, 720px); }
  .home-slide { align-items: flex-end; }
  .home-slide-copy { padding-bottom: 104px; }
  .home-slide::before { background: linear-gradient(0deg, rgba(5, 14, 32, .9) 10%, rgba(5, 14, 32, .55) 55%, rgba(5, 14, 32, .25)); }
  .home-slider-progress { bottom: 72px; }
  .home-page .home-proof { margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-slide, .home-slide-bg, .home-slide-copy > * { transition: none; }
  .home-slider-progress span.is-active::after { animation: none; transform: scaleX(1); }
}

/* ---------- Home: course cards (serious, light tinted background) ---------- */
.home-course-card { --accent-rgb: 11, 53, 88; overflow: hidden; gap: 16px; padding: 36px; border-color: rgba(var(--accent-rgb), .14); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .07), rgba(var(--accent-rgb), .015) 55%), var(--surface); box-shadow: var(--shadow-sm); }
.home-course-card::before { inset: 0 auto 0 0; width: 3px; height: auto; background: var(--accent); opacity: .85; }
.home-course-card:hover { border-color: rgba(var(--accent-rgb), .3); box-shadow: 0 24px 48px -24px rgba(var(--accent-rgb), .35), var(--shadow-sm); }
.home-course-watermark { position: absolute; z-index: 0; top: 22px; right: 22px; color: var(--accent); opacity: .12; pointer-events: none; transition: opacity .25s ease, transform .35s ease; }
.home-course-watermark .ti { width: 96px; height: 96px; }
.home-course-card:hover .home-course-watermark { opacity: .2; transform: rotate(-6deg) scale(1.04); }
.home-course-card > *:not(.home-course-watermark) { position: relative; z-index: 1; }
.home-course-card h3 { font-size: 1.7rem; }
.home-course-card li { background: var(--surface); border-color: rgba(var(--accent-rgb), .18); }
.home-course-card dl { border-top-color: rgba(var(--accent-rgb), .16); }
.home-course-link { color: var(--accent); }
:root[data-theme="dark"] .home-course-card { background: linear-gradient(160deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .03) 55%), var(--surface); }
:root[data-theme="dark"] .home-course-link, :root[data-theme="dark"] @media (max-width: 640px) { .home-course-watermark .ti { width: 72px; height: 72px; } }

/* =====================================================================
   Video lessons — Netflix-style library (video-lessons.js)
   ===================================================================== */
.vl-page .page-main { background: #0b0b10; color: #e9e9ee; }
.vl-library { --vl-gutter: max(16px, calc((100vw - 1320px) / 2)); position: relative; padding-bottom: 40px; overflow: hidden; }
.vl-page [data-page-content] { background: var(--bg); }

/* Billboard */
.vl-billboard { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(460px, 72vh, 720px); padding: 0 var(--vl-gutter) clamp(90px, 12vh, 140px); }
.vl-billboard-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.vl-billboard::before { content: ""; position: absolute; z-index: -1; inset: 0; background:
  linear-gradient(90deg, rgba(11, 11, 16, .95) 0%, rgba(11, 11, 16, .7) 38%, rgba(11, 11, 16, .1) 75%),
  linear-gradient(0deg, #0b0b10 2%, rgba(11, 11, 16, 0) 40%); }
.vl-billboard-copy { max-width: 620px; }
.vl-billboard-series { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: rgba(255, 255, 255, .8); font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.vl-logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #165bfb, #7a4dff); color: #fff; font-weight: 800; font-size: .8rem; }
.vl-billboard h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.vl-billboard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: .95rem; font-weight: 600; }
.vl-match { color: #46d369; font-weight: 800; }
.vl-hd { padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; font-size: .72rem; line-height: 1.4; }
.vl-billboard-text { margin-top: 14px; color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.55; }
.vl-billboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.vl-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px 0 20px; border: 0; border-radius: 8px; font: 700 1.05rem/1 var(--font); cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.vl-btn svg { width: 24px; height: 24px; }
.vl-btn-play { background: #fff; color: #0b0b10; }
.vl-btn-play:hover { background: rgba(255, 255, 255, .8); }
.vl-btn-info { background: rgba(109, 109, 110, .7); color: #fff; }
.vl-btn-info:hover { background: rgba(109, 109, 110, .5); }

/* Toolbar */
.vl-toolbar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: -56px; padding: 0 var(--vl-gutter); }
.vl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vl-chips::-webkit-scrollbar { display: none; }
.vl-chips button { flex: none; min-height: 38px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(20, 20, 26, .6); color: #e9e9ee; font-weight: 700; font-size: .9rem; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.vl-chips button:hover { border-color: #fff; }
.vl-chips button[aria-selected="true"] { background: #fff; border-color: #fff; color: #0b0b10; }
.vl-search { position: relative; display: block; width: min(280px, 100%); }
.vl-search svg { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; color: rgba(255, 255, 255, .6); transform: translateY(-50%); pointer-events: none; }
.vl-search input { width: 100%; min-height: 40px; padding: 0 12px 0 38px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; outline: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: .95rem; }
.vl-search input:focus { border-color: #fff; }

/* Rows & rails */
.vl-rows { display: grid; gap: clamp(26px, 3.6vw, 42px); margin-top: 30px; }
.vl-row-head { display: flex; align-items: baseline; gap: 16px; padding: 0 var(--vl-gutter); margin-bottom: 10px; }
.vl-row-head h2 { color: #e9e9ee; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -.01em; }
.vl-row-more { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #54b9c5; font-weight: 700; font-size: .88rem; cursor: pointer; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.vl-row-more svg { width: 16px; height: 16px; }
.vl-row:hover .vl-row-more, .vl-row-more:focus-visible { opacity: 1; transform: none; }
.vl-rail-wrap { position: relative; }
.vl-rail { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--vl-gutter); padding: 14px var(--vl-gutter) 22px; scrollbar-width: none; }
.vl-rail::-webkit-scrollbar { display: none; }
.vl-arrow { position: absolute; z-index: 3; top: 14px; bottom: 22px; display: grid; place-items: center; width: calc(var(--vl-gutter) - 4px); min-width: 44px; border: 0; background: rgba(11, 11, 16, .55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s ease, background-color .2s ease; }
.vl-arrow svg { width: 34px; height: 34px; transition: transform .15s ease; }
.vl-arrow:hover { background: rgba(11, 11, 16, .8); }
.vl-arrow:hover svg { transform: scale(1.2); }
.vl-arrow-left { left: 0; border-radius: 0 6px 6px 0; }
.vl-arrow-right { right: 0; border-radius: 6px 0 0 6px; }
.vl-rail-wrap:hover .vl-arrow, .vl-arrow:focus-visible { opacity: 1; }
.vl-rail-wrap.at-start .vl-arrow-left, .vl-rail-wrap.at-end .vl-arrow-right { opacity: 0; pointer-events: none; }
@media (hover: none) { .vl-arrow { display: none; } }

/* Lesson card */
.vl-card { position: relative; flex: 0 0 clamp(210px, 22vw, 290px); display: block; padding: 0; border: 0; border-radius: 6px; background: #18181f; color: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.vl-card[hidden], .vl-top-item[hidden], .vl-row[hidden] { display: none; }
.vl-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #22222b; }
.vl-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vl-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .35) 100%); }
.vl-badge { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: #0b0b10; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.vl-num { position: absolute; z-index: 1; top: 6px; right: 10px; color: rgba(255, 255, 255, .9); font: 800 1.1rem/1 var(--font-head); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.vl-poster-title { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 9px; color: #fff; font: 800 1rem/1.2 var(--font-head); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vl-card-meta { position: absolute; z-index: 0; left: 0; right: 0; top: calc(100% - 6px); display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px; border-radius: 0 0 6px 6px; background: #18181f; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; box-shadow: 0 18px 30px rgba(0, 0, 0, .55); }
.vl-card-meta b { display: block; color: #fff; font-size: .86rem; }
.vl-card-meta small { color: #a3a3ad; font-size: .78rem; }
.vl-card-play { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #fff; color: #0b0b10; }
.vl-card-play svg { width: 16px; height: 16px; margin-left: 2px; }
@media (hover: hover) {
  .vl-card:hover, .vl-card:focus-visible { z-index: 4; transform: scale(1.12) translateY(-10px); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
  .vl-card:hover .vl-card-meta, .vl-card:focus-visible .vl-card-meta { opacity: 1; visibility: visible; }
  .vl-card:hover .vl-poster img { transform: scale(1.05); }
  .vl-rail .vl-card:first-child:hover, .vl-top-item:first-child .vl-card:hover { transform-origin: left center; }
  .vl-rail .vl-card:last-child:hover { transform-origin: right center; }
}
.vl-rail:has(.vl-card:hover) { padding-bottom: 90px; margin-bottom: -68px; }

/* Top 10 */
.vl-top-item { position: relative; flex: none; display: flex; align-items: flex-end; scroll-snap-align: start; }
.vl-top-rank { margin-right: -22px; color: #0b0b10; font: 900 clamp(7rem, 12vw, 10rem)/.8 var(--font-head); letter-spacing: -.08em; -webkit-text-stroke: 3px #595961; user-select: none; }
.vl-card-top { flex-basis: clamp(140px, 14vw, 180px); width: clamp(140px, 14vw, 180px); }
.vl-card-top .vl-poster { aspect-ratio: 2 / 3; }
.vl-card-top .vl-num { display: none; }

/* Short format (vertical) */
.vl-card-short { flex-basis: clamp(150px, 15vw, 190px); }
.vl-card-short .vl-poster { aspect-ratio: 9 / 14; }

/* Course tiles */
.vl-course { position: relative; flex: 0 0 clamp(240px, 26vw, 340px); aspect-ratio: 16 / 8; overflow: hidden; padding: 0; border: 0; border-radius: 8px; background: #18181f; color: #fff; text-align: left; cursor: pointer; scroll-snap-align: start; transition: transform .25s ease; }
.vl-course img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vl-course::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #000) 0%, rgba(0, 0, 0, .35) 70%); mix-blend-mode: multiply; }
.vl-course span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 4px; }
.vl-course b { font: 800 1.35rem/1.1 var(--font-head); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.vl-course small { color: rgba(255, 255, 255, .85); font-weight: 600; }
.vl-course::before { content: ""; position: absolute; z-index: 1; inset: 0; border: 2px solid transparent; border-radius: inherit; transition: border-color .2s ease; }
.vl-course:hover::before, .vl-course:focus-visible::before { border-color: var(--accent); }
.vl-course:hover img { transform: scale(1.06); }
.vl-empty { padding: 30px var(--vl-gutter); color: #a3a3ad; }

/* Course modal */
html.vl-modal-open { overflow: hidden; }
.vl-modal { width: min(880px, calc(100% - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 10px; background: #181818; color: #e9e9ee; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.vl-modal::backdrop { background: rgba(0, 0, 0, .72); }
.vl-modal-inner { position: relative; }
.vl-modal-close { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #181818; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.vl-modal-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 360px; padding: 32px clamp(20px, 4vw, 44px); }
.vl-modal-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vl-modal-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #181818 4%, rgba(24, 24, 24, .3) 60%, rgba(24, 24, 24, .1)); }
.vl-modal-hero h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.vl-modal-hero p { max-width: 560px; margin-top: 10px; color: rgba(255, 255, 255, .88); }
.vl-modal-body { display: grid; gap: 26px; padding: 8px clamp(20px, 4vw, 44px) 40px; }
.vl-module h3 { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #333; color: #fff; font-size: 1.2rem; }
.vl-module h3 span { color: var(--accent); font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vl-module ol { margin: 0; padding: 0; list-style: none; }
.vl-module li { display: grid; grid-template-columns: 28px 128px 1fr auto; align-items: center; gap: 16px; padding: 14px 12px; border-bottom: 1px solid #2a2a2a; border-radius: 6px; }
.vl-module li:hover, .vl-module li.is-focus { background: #2a2a2a; }
.vl-ep-num { color: #a3a3ad; font: 700 1.4rem/1 var(--font-head); text-align: center; }
.vl-ep-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; }
.vl-ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vl-ep-thumb svg { position: relative; width: 30px; height: 30px; padding: 7px; border: 1.5px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .2s ease; }
.vl-module li:hover .vl-ep-thumb svg { opacity: 1; }
.vl-ep-title b { display: block; color: #fff; font-size: 1rem; }
.vl-ep-title small { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #a3a3ad; font-size: .82rem; }
.vl-ep-title small svg { width: 14px; height: 14px; }
.vl-ep-time { color: #d2d2d8; font-weight: 600; font-size: .9rem; }

@media (max-width: 760px) {
  .vl-billboard { min-height: 70vh; padding-bottom: 110px; }
  .vl-billboard::before { background: linear-gradient(0deg, #0b0b10 8%, rgba(11, 11, 16, .65) 55%, rgba(11, 11, 16, .25)); }
  .vl-toolbar { margin-top: -80px; }
  .vl-search { width: 100%; }
  .vl-card { flex-basis: 64vw; }
  .vl-card-top { flex-basis: 34vw; width: 34vw; }
  .vl-top-rank { font-size: 6rem; margin-right: -14px; }
  .vl-card-short { flex-basis: 40vw; }
  .vl-course { flex-basis: 76vw; }
  .vl-module li { grid-template-columns: 22px 92px 1fr; gap: 10px; }
  .vl-ep-time { grid-column: 3; font-size: .8rem; }
  .vl-modal-hero { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .vl-card, .vl-poster img, .vl-course img { transition: none; } }

/* ---------- About: stats, team list, link cards ---------- */
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.about-stats > div { display: grid; gap: 6px; padding: 28px; text-align: left; }
.about-stats > div + div { border-left: 1px solid var(--line); }
.about-stats strong { color: var(--blue); font: 700 2.2rem/1 var(--font-head); letter-spacing: -.021em; }
.about-stats span { color: var(--ink-2); font-size: .95rem; }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; text-align: left; }
.team-list-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.team-list-card > span { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font: 700 1rem/1 var(--font-head); }
.team-list-card h3 { font-size: 1.08rem; }
.team-list-role { margin-top: 2px; color: var(--blue); font-size: .88rem; font-weight: 700; }
.team-list-card p:last-child { margin-top: 6px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.link-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; text-align: left; }
.link-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.link-card:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow); }
.link-card h3 { font-size: 1.2rem; }
.link-card p { color: var(--ink-2); font-size: .95rem; }
.link-card > span { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 700; }
.link-card > span::after { content: " →"; }

/* ---------- Prices: compare table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: .95rem; }
.compare-table th, .compare-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--soft); color: var(--ink); font: 700 1.02rem/1.3 var(--font-head); }
.compare-table thead th:nth-child(3) { color: var(--blue); }
.compare-table tbody th { width: 18%; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.compare-table td { color: var(--ink-2); }
.compare-table tbody tr:first-child td { color: var(--ink); font-weight: 700; }

/* ---------- Stories ---------- */
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; text-align: left; }
.story-card { display: flex; gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--blue-50), var(--surface) 60%); box-shadow: var(--shadow-sm); }
.story-card-avatar { display: grid; place-items: center; flex: 0 0 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font: 700 1.4rem/1 var(--font-head); }
.story-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.story-card-tags span { padding: 4px 10px; border: 1px solid var(--blue-100); border-radius: 999px; background: var(--surface); color: var(--blue); font-size: .78rem; font-weight: 700; }
.story-card h3 { font-size: 1.4rem; }
.story-card div > p:last-child { margin-top: 8px; color: var(--ink-2); line-height: 1.6; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.news-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.news-card-meta span { padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 700; }
.news-card h3 { font-size: 1.22rem; line-height: 1.25; }
.news-card h3 a:hover { color: var(--blue); }
.news-card-body > p:not(.news-card-meta) { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.news-card .page-card-link { margin-top: auto; }
.news-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.news-card-featured .news-card-media { aspect-ratio: auto; min-height: 320px; }
.news-card-featured .news-card-body { justify-content: center; padding: clamp(24px, 4vw, 44px); }
.news-card-featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

@media (max-width: 960px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stats > div:nth-child(3) { border-left: 0; }
  .about-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .story-grid, .news-grid { grid-template-columns: 1fr; }
  .news-card-featured { grid-template-columns: 1fr; }
  .news-card-featured .news-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .about-stats > div { padding: 20px; }
  .about-stats strong { font-size: 1.7rem; }
  .story-card { flex-direction: column; padding: 22px; }
}

/* Header: room for the 5th menu item ("Про академію") */
.page-header { width: min(1380px, calc(100% - 48px)); gap: 20px; }
.page-nav > a, .page-nav-item > a { padding: 0 10px; }
@media (max-width: 1460px) { .page-nav > a, .page-nav-item > a, .page-account-link { font-size: .92rem; padding: 0 8px; } .page-nav { gap: 2px; } }
.team-list-card > span, .story-card-avatar { overflow: hidden; }
.team-list-card > span img, .story-card-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* ---------- Home: kids course cards (same look as adult course cards) ---------- */
.kids-course-card { position: relative; gap: 14px; padding: 32px; border-color: rgba(11, 53, 88, .14); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(11, 53, 88, .06), rgba(11, 53, 88, .012) 55%), var(--surface); }
.kids-course-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: var(--r-lg) 0 0 var(--r-lg); background: var(--blue); opacity: .85; }
.kids-course-card:hover { border-color: rgba(11, 53, 88, .3); box-shadow: 0 24px 48px -24px rgba(11, 53, 88, .35), var(--shadow-sm); }
.kids-course-card .kid-icon { width: 60px; height: 60px; border: 1px solid rgba(0, 107, 255, .16); border-radius: 16px; background: var(--surface); color: var(--blue); }
.kids-course-card .kid-icon .ti { width: 30px; height: 30px; }
.kids-course-content strong { font-size: 1.5rem; }
.kids-course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.kids-course-tags li { padding: 6px 12px; border: 1px solid rgba(11, 53, 88, .16); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.kids-course-card .home-course-link { margin-top: auto; }
:root[data-theme="dark"] .kids-course-card .kid-icon { background: var(--surface); }
:root[data-theme="dark"] .kids-course-card { background: linear-gradient(160deg, rgba(0, 107, 255, .14), rgba(0, 107, 255, .03) 55%), var(--surface); }
@media (max-width: 960px) { .kids-course-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Logo wall: brand colours + Ukrainian companies ---------- */
.logo-wall img, :root[data-theme="dark"] .logo-wall img { filter: none; opacity: 1; }
.logo-wall > div { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.logo-wall > div:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow); }
:root[data-theme="dark"] .logo-wall > div { background: #fff; border-color: transparent; }
.logo-wall-label { margin: 0 0 14px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.logo-wall + .logo-wall-label { margin-top: 28px; }
.logo-wall-ua { grid-template-columns: repeat(5, 1fr); max-width: calc((100% - 7 * 12px) / 8 * 5 + 4 * 12px); margin-inline: auto; }
.logo-wall-ua img { max-width: 70%; max-height: 28px; }
@media (max-width: 960px) { .logo-wall-ua { grid-template-columns: repeat(3, 1fr); max-width: none; } }
@media (max-width: 640px) { .logo-wall-ua { grid-template-columns: repeat(2, 1fr); } }

/* Cookie banner icon (black & white) */
.cookie-icon { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); color: #111; }
.cookie-icon svg { width: 38px; height: 38px; transform: rotate(-8deg); transition: transform .4s ease; }
.cookie-banner:hover .cookie-icon svg { transform: rotate(8deg) scale(1.05); }
.cookie-chips { fill: var(--soft); }
:root[data-theme="dark"] .cookie-icon { color: #f2f2f2; }
@media (max-width: 640px) { .cookie-banner .cookie-icon { display: none; } }
.logo-wall img[alt="GlobalLogic"] { max-width: 96%; max-height: 64px; }

/* Video lessons: only 4 courses x 5 lessons, all visible */
.vl-head { padding: clamp(36px, 6vw, 64px) var(--vl-gutter) 0; }
.vl-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.vl-head p { margin-top: 8px; color: #a3a3ad; font-weight: 700; }
.vl-page .vl-library { padding-bottom: 72px; }
@media (min-width: 900px) {
  .vl-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  .vl-rail .vl-card { width: auto; }
  .vl-arrow { display: none; }
  .vl-row-more { opacity: 1; transform: none; }
}

/* Course covers (generated SVG wallpapers) + icon badge */
.course-cover { display: block; overflow: hidden; aspect-ratio: 12 / 5; background: linear-gradient(135deg, #0a2c74, #1a86ff); }
.course-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.home-course-card:hover .course-cover img, .kids-course-card:hover .course-cover img, .page-card-cover:hover .course-cover img { transform: scale(1.045); }
.course-badge { position: relative; z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; margin: -48px 0 -2px 2px; border-radius: 18px; background: var(--surface); color: var(--blue); box-shadow: 0 0 0 5px var(--surface), 0 14px 28px -10px rgba(11, 53, 88, .45); }
.course-badge .ti { width: 30px; height: 30px; }
.home-course-card > .course-cover { margin: -36px -36px 0; }
.home-course-card:has(.course-cover)::before, .kids-course-card:has(.course-cover)::before { display: none; }
.kids-course-card { overflow: hidden; }
.kids-course-card > .course-cover { margin: -32px -32px 0; }
.page-card-cover { overflow: hidden; }
.page-card-cover > .course-cover { margin: -32px -32px 0; }
@media (max-width: 640px) { .page-card-cover > .course-cover { margin: -24px -24px 0; } }
:root[data-theme="dark"] .course-badge { background: #111c2e; color: #4d94ff; box-shadow: 0 0 0 5px var(--surface), 0 14px 28px -10px rgba(0, 0, 0, .6); }

/* Portfolio & stories: covers, centred grids */
.result-case-cover { overflow: hidden; }
.result-case-cover > .course-cover { margin: -32px -32px 4px; }
.result-case-cover:hover .course-cover img { transform: scale(1.045); }
@media (max-width: 640px) { .result-case-cover > .course-cover { margin: -24px -24px 4px; } }
.uiux-project-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.uiux-project-grid > .uiux-project-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }
@media (max-width: 1020px) { .uiux-project-grid > .uiux-project-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .uiux-project-grid > .uiux-project-card { flex-basis: 100%; } }
.uiux-project-visual img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.uiux-project-card:hover .uiux-project-visual img { transform: scale(1.04); }
.graduate-list { display: flex; flex-wrap: wrap; justify-content: center; }
.graduate-list > .graduate-entry { flex: 0 1 220px; }
@media (max-width: 520px) { .graduate-list > .graduate-entry { flex-basis: calc(50% - 7px); } }
.graduate-entry span { background: var(--ink); }
.photo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.photo-step { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); text-align: center; }
.photo-step figure { position: relative; margin: 0 0 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--blue-50); }
.photo-step figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-step figure span { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); padding: 6px 14px; border-radius: 12px 12px 0 0; background: var(--surface); color: var(--ink); font: 800 .9rem/1 var(--font-head); }
.photo-step h3 { padding: 0 10px; font-size: 1.15rem; }
.photo-step p { padding: 0 12px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1020px) { .photo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .photo-steps { grid-template-columns: 1fr; } }
.story-grid { text-align: center; }
.story-card { flex-direction: column; align-items: center; text-align: center; }
.story-card-avatar { flex: 0 0 auto; width: 96px; height: 96px; background: var(--ink); font-size: 1.6rem; }
.story-card-tags { justify-content: center; }

/* Course expert block (colleague + stats + prices) */
.course-expert { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.course-expert-main { display: flex; gap: 28px; align-items: flex-start; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.course-expert-photo { flex: 0 0 168px; height: 200px; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--blue-50); }
.course-expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.course-expert-label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.course-expert-copy h3 { margin-top: 6px; font-size: 1.5rem; }
.course-expert-role { margin-top: 4px; color: var(--ink-2); font-weight: 600; }
.course-expert-copy blockquote { position: relative; margin: 18px 0 0; padding: 0 0 0 18px; border-left: 3px solid var(--ink); color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.course-expert-side { display: grid; gap: 16px; align-content: start; }
.course-expert-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.course-expert-stats > div { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.course-expert-stats .ti { width: 22px; height: 22px; color: var(--ink); }
.course-expert-stats strong { font: 800 1.6rem/1.1 var(--font-head); color: var(--ink); }
.course-expert-stats span { color: var(--ink-2); font-size: .88rem; }
.course-expert-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.course-expert-prices > div { display: grid; gap: 2px; padding: 18px; border-radius: var(--r); background: var(--ink); color: #fff; }
.course-expert-prices span { font-size: .82rem; font-weight: 700; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.course-expert-prices strong { font: 800 1.45rem/1.15 var(--font-head); }
.course-expert-prices small { opacity: .75; font-size: .85rem; }
.course-expert-actions { display: flex; flex-wrap: wrap; gap: 10px; }
:root[data-theme="dark"] .course-expert-prices > div { background: #1d3a66; }
@media (max-width: 1020px) { .course-expert { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .course-expert-main { flex-direction: column; align-items: center; padding: 22px; text-align: center; }
  .course-expert-photo { flex-basis: auto; width: 140px; height: 160px; }
  .course-expert-copy blockquote { padding: 14px 0 0; border-left: 0; border-top: 3px solid var(--ink); }
}
.uiux-project-meta { gap: 8px; }

/* Toasts (site-ui.js) */
.itleo-toasts { position: fixed; z-index: 10050; top: calc(var(--header-h, 76px) + 12px); right: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.itleo-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 48px -20px rgba(11, 53, 88, .45), 0 2px 6px rgba(11, 53, 88, .06); opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .28s ease, transform .32s cubic-bezier(.2, 1, .3, 1); pointer-events: auto; }
.itleo-toast.is-in { opacity: 1; transform: none; }
.itleo-toast-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #1fa971; color: #fff; }
.itleo-toast-icon svg { width: 18px; height: 18px; }
.itleo-toast-error .itleo-toast-icon { background: #e03131; }
.itleo-toast-info .itleo-toast-icon { background: var(--ink); }
.itleo-toast-body { flex: 1; min-width: 0; padding-top: 2px; }
.itleo-toast-body strong { display: block; font: 800 1rem/1.25 var(--font-head); }
.itleo-toast-body p { margin-top: 3px; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.itleo-toast-close { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.itleo-toast-close:hover { background: var(--soft); color: var(--ink); }
.itleo-toast-success { border-color: rgba(31, 169, 113, .35); }
@media (prefers-reduced-motion: reduce) { .itleo-toast { transition: none; } }

/* Course quiz (site-quiz.js) */
html.quiz-open { overflow: hidden; }
.quiz { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.quiz::backdrop { background: rgba(6, 22, 40, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.quiz-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; background: var(--surface); }
.quiz-head strong { display: block; font: 800 1.15rem/1.2 var(--font-head); }
.quiz-step-label { color: var(--muted); font-size: .85rem; font-weight: 700; }
.quiz-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.quiz-close .ti { width: 20px; height: 20px; }
.quiz-progress { height: 4px; margin: 0 24px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .35s ease; }
.quiz-body { padding: 24px; }
.quiz-q { margin-bottom: 18px; font-size: clamp(1.4rem, 3vw, 1.8rem); text-align: center; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.quiz-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.quiz-option:hover, .quiz-option:focus-visible, .quiz-option.is-selected { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(11, 53, 88, .5); transform: translateY(-2px); }
.quiz-option-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--ink); }
.quiz-option-icon .ti { width: 24px; height: 24px; }
.quiz-option b { display: block; font-weight: 800; line-height: 1.25; }
.quiz-option small { display: block; margin-top: 3px; color: var(--ink-2); font-size: .86rem; }
.quiz-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.quiz-back .ti { width: 18px; height: 18px; }
.quiz-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.quiz-result { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.quiz-result:has(input:checked) { border-color: var(--ink); box-shadow: 0 18px 36px -22px rgba(11, 53, 88, .6); }
.quiz-result input { position: absolute; top: 12px; right: 12px; z-index: 1; width: 20px; height: 20px; accent-color: var(--ink); }
.quiz-result-cover { display: block; aspect-ratio: 12 / 5; background: #0a2c74; }
.quiz-result-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.quiz-result-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
.quiz-result-text em { justify-self: start; padding: 3px 10px; border-radius: 999px; background: #e7f7ef; color: #13784f; font-style: normal; font-size: .75rem; font-weight: 800; }
.quiz-result-text b { font: 800 1.1rem/1.2 var(--font-head); }
.quiz-result-text small { color: var(--ink-2); font-size: .88rem; }
.quiz-result-text a { margin-top: 4px; color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.quiz-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-form h3 { margin-bottom: 14px; font-size: 1.15rem; text-align: center; }
.quiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-fields label { display: grid; gap: 6px; color: var(--ink-2); font-size: .86rem; font-weight: 700; }
.quiz-fields .quiz-wide { grid-column: 1 / -1; }
.quiz-fields input, .quiz-fields textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; outline: 0; background: var(--surface); color: var(--ink); font: 500 1rem/1.4 var(--font); }
.quiz-fields input:focus, .quiz-fields textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 53, 88, .12); }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.quiz-actions-center { justify-content: center; }
.quiz-actions .ti { width: 18px; height: 18px; }
.quiz-actions .page-cta, .quiz-actions .page-secondary-link { display: inline-flex; align-items: center; gap: 8px; }
.quiz-note { margin-top: 10px; color: var(--muted); font-size: .82rem; text-align: center; }
.quiz-done { display: grid; justify-items: center; gap: 10px; padding: 12px 0 8px; text-align: center; }
.quiz-done-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e7f7ef; color: #1fa971; }
.quiz-done-icon .ti { width: 40px; height: 40px; }
.quiz-done h2 { font-size: 1.5rem; }
.quiz-done p { max-width: 520px; color: var(--ink-2); }
@media (max-width: 560px) { .quiz-body { padding: 18px; } .quiz-fields { grid-template-columns: 1fr; } .quiz-actions { justify-content: center; } }

/* Home: interactive "how we learn" (Microsoft Education style) */
.learn-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.learn-tabs-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.learn-tab { border-bottom: 1px solid var(--line); }
.learn-tab > button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 4px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.learn-tab-num { flex: 0 0 auto; width: 28px; color: var(--muted); font: 800 .85rem/1 var(--font-head); }
.learn-tab-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 13px; background: var(--blue-50); color: var(--ink); transition: background .25s ease, color .25s ease; }
.learn-tab-icon .ti { width: 22px; height: 22px; }
.learn-tab b { flex: 1; font: 800 1.15rem/1.25 var(--font-head); }
.learn-tab-chevron { width: 20px; height: 20px; color: var(--muted); transition: transform .3s ease; }
.learn-tab > p { display: grid; max-height: 0; overflow: hidden; margin: 0; padding: 0 4px 0 90px; color: var(--ink-2); line-height: 1.6; opacity: 0; transition: max-height .4s ease, opacity .3s ease, padding .3s ease; }
.learn-tab.is-active > p { max-height: 160px; padding-bottom: 20px; opacity: 1; }
.learn-tab.is-active .learn-tab-icon { background: var(--ink); color: #fff; }
.learn-tab.is-active .learn-tab-chevron { transform: rotate(180deg); }
.learn-tab > button:hover b { text-decoration: underline; text-underline-offset: 4px; }
.learn-tabs-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-xl); background: var(--blue-50); box-shadow: var(--shadow-lg); }
.learn-tabs-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease, transform .6s ease; }
.learn-tabs-media img.is-swapping { opacity: 0; transform: scale(1.02); }
:root[data-theme="dark"] .learn-tab.is-active .learn-tab-icon { background: #4d94ff; color: #0a1220; }
@media (max-width: 900px) { .learn-tabs { grid-template-columns: 1fr; } .learn-tabs-media { order: -1; } .learn-tab > p { padding-left: 46px; } }

/* FAQ: numbered items + expand all (Microsoft Education style) */
.faq-list, .course-faq { counter-reset: faq; }
.faq-list details, .course-faq details { counter-increment: faq; }
.faq-list summary::before, .course-faq summary::before { content: counter(faq, decimal-leading-zero) "/"; margin-right: 14px; color: var(--muted); font: 800 .9rem/1 var(--font-head); }
.faq-toolbar { display: flex; justify-content: flex-end; width: 100%; max-width: 900px; margin: 0 auto 10px; }
.faq-toggle-all { padding: 6px 2px; border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* AI assistant "Лео" (site-assistant.js), bottom-left */
.leo { position: fixed; z-index: 9990; left: 20px; bottom: 20px; font-family: var(--font); }
.leo-launcher { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(11, 53, 88, .55), 0 2px 6px rgba(11, 53, 88, .08); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.leo-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -18px rgba(11, 53, 88, .6), 0 2px 6px rgba(11, 53, 88, .08); }
.leo-launcher-face, .leo-head-face { position: relative; display: block; flex: 0 0 auto; }
.leo-launcher-face img { display: block; width: 52px; height: 52px; border-radius: 50%; }
.leo-online { position: absolute; right: 1px; bottom: 2px; width: 13px; height: 13px; border: 2.5px solid var(--surface); border-radius: 50%; background: #1fcf95; }
.leo-launcher-text { display: grid; text-align: left; line-height: 1.15; }
.leo-launcher-text b { font: 800 1rem/1.2 var(--font-head); }
.leo-launcher-text small { color: var(--muted); font-size: .78rem; font-weight: 700; }
.leo.is-open .leo-launcher { display: none; }
.leo-panel { display: flex; flex-direction: column; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 40px)); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(11, 53, 88, .55), 0 6px 18px rgba(11, 53, 88, .1); }
.leo-panel[hidden] { display: none; }
.leo-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--ink); color: #fff; }
.leo-head-face img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.leo-head .leo-online { border-color: var(--ink); }
.leo-head-text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.leo-head-text b { font: 800 1.05rem/1.2 var(--font-head); }
.leo-head-text small { opacity: .75; font-size: .8rem; }
.leo-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.leo-icon-btn:hover { background: rgba(255, 255, 255, .2); }
.leo-icon-btn .ti { width: 18px; height: 18px; }
.leo-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow-y: auto; background: var(--soft); overscroll-behavior: contain; }
.leo-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.leo-msg-face { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; }
.leo-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--ink); font-size: .95rem; line-height: 1.5; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.leo-bubble a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.leo-msg-user { justify-content: flex-end; }
.leo-msg-user .leo-bubble { border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; }
.leo-msg-notice .leo-bubble { border: 1px solid #f3c9a0; background: #fff7ef; }
.leo-typing .leo-bubble { display: flex; gap: 5px; padding: 14px 16px; }
.leo-typing .leo-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: leo-dot 1.2s infinite ease-in-out; }
.leo-typing .leo-bubble i:nth-child(2) { animation-delay: .15s; }
.leo-typing .leo-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes leo-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.leo-form { display: grid; gap: 8px; width: 100%; }
.leo-form b { font: 800 1rem/1.3 var(--font-head); }
.leo-form label { display: grid; gap: 4px; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.leo-form input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; outline: 0; background: var(--surface); color: var(--ink); font: 500 .95rem/1.3 var(--font); }
.leo-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 53, 88, .12); }
.leo-form .page-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: 4px; font-size: .92rem; }
.leo-form .page-cta .ti { width: 16px; height: 16px; }
.leo-form small { color: var(--muted); font-size: .76rem; }
.leo-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; background: var(--soft); }
.leo-chips[hidden] { display: none; }
.leo-chips button { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .84rem; font-weight: 700; cursor: pointer; }
.leo-chips button:hover { border-color: var(--ink); }
.leo-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.leo-input textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 14px; outline: 0; background: var(--surface); color: var(--ink); font: 500 .95rem/1.4 var(--font); resize: none; }
.leo-input textarea:focus { border-color: var(--ink); }
.leo-send { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; }
.leo-send .ti { width: 20px; height: 20px; }
.leo-input.is-busy .leo-send { opacity: .5; pointer-events: none; }
.leo-note { padding: 0 14px 10px; background: var(--surface); color: var(--muted); font-size: .72rem; text-align: center; }
:root[data-theme="dark"] .leo-head { background: #13284a; }
:root[data-theme="dark"] .leo-msg-user .leo-bubble, :root[data-theme="dark"] .leo-send { background: #006bff; }
:root[data-theme="dark"] .leo-msg-notice .leo-bubble { border-color: #6b4a2a; background: #2a1f14; }
@media (max-width: 640px) {
  .leo { left: 12px; bottom: 12px; }
  .leo-launcher { padding: 5px; }
  .leo-launcher-text { display: none; }
  .leo-panel { position: fixed; inset: auto 8px 8px 8px; width: auto; height: min(640px, calc(100dvh - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .leo-typing .leo-bubble i { animation: none; } }
.course-syllabus-link { display: inline-flex; align-items: center; gap: 6px; }
.course-syllabus-link .ti { width: 18px; height: 18px; }
/* Atticus: academy icon badge on the avatar */
.leo-badge { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border: 2px solid var(--surface); border-radius: 7px; background: var(--surface); box-shadow: 0 4px 10px -4px rgba(11, 53, 88, .5); }
.leo-head .leo-badge { width: 19px; height: 19px; border-color: var(--ink); border-radius: 6px; }
.leo-online { right: auto; left: 0; top: 1px; bottom: auto; width: 12px; height: 12px; }
/* Top menu: never underline */
.page-header a, .page-header a:hover, .page-header a:focus-visible, .page-menu a, .page-menu a:hover { text-decoration: none; }

/* Feature & icon cards: larger icons, centred content (2026-11-24) */
.page-feature { text-align: center; }
.page-feature::before { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; background-size: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3558' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .page-feature::before { background-color: rgba(127, 178, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fb2ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.page-feature.has-ico::before { display: none; }
.page-feature-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; background: var(--blue-50); color: var(--blue); }
.page-feature-ico .ti { width: 30px; height: 30px; }
:root[data-theme="dark"] .page-feature-ico { background: rgba(127, 178, 255, .14); color: #7fb2ff; }
.about-process .page-feature, .event-steps .page-feature { text-align: left; }
.page-card:has(> .page-card-icon) { align-items: center; text-align: center; }
.page-card-number.page-card-icon { width: 80px; height: 80px; border-radius: 22px; }
.page-card-icon .emoji, .page-card-icon img { width: 48px; height: 48px; }

/* About: team as large photo cards, same as the home page (2026-11-24) */
.team-grid-about { text-align: left; }
.team-grid-about .team-card > div { display: flex; flex-direction: column; flex: 1; }
.team-grid-about .team-card .team-card-role { margin-top: 4px; color: var(--blue); font-size: .9rem; font-weight: 700; }
.team-grid-about .team-card p:last-child { margin-top: 8px; line-height: 1.5; }
.team-card-type > span, .team-card-type:nth-child(4n) > span, .team-card-type:nth-child(4n + 1) > span { background: linear-gradient(135deg, #0a2a47, #0b3558 55%, #134a7c); }

/* Company logos: one row, endless marquee moving left -> right (2026-11-24) */
.logo-marquee { --logo-gap: 14px; position: relative; overflow: hidden; padding: 6px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee-track { display: flex; width: max-content; animation: logo-marquee 46s linear infinite; }
.logo-marquee:hover .logo-marquee-track, .logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-item { display: grid; place-items: center; flex: 0 0 196px; height: 96px; margin-right: var(--logo-gap); border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.logo-marquee-item:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow); }
.logo-marquee-item img { max-width: 64%; max-height: 32px; object-fit: contain; }
.logo-marquee-item img[data-logo="globallogic"] { max-width: 88%; max-height: 52px; }
.logo-marquee-item img[data-logo="amazon"], .logo-marquee-item img[data-logo="softserve"], .logo-marquee-item img[data-logo="grammarly"], .logo-marquee-item img[data-logo="epam"] { max-width: 70%; max-height: 30px; }
:root[data-theme="dark"] .logo-marquee-item { border-color: transparent; }
@keyframes logo-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 640px) { .logo-marquee-item { flex-basis: 150px; height: 80px; } .logo-marquee-track { animation-duration: 36s; } }
@media (prefers-reduced-motion: reduce) { .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .logo-marquee-track { animation: none; } .logo-marquee-item[aria-hidden="true"] { display: none; } }

/* Team cards: hover effect (home + about) */
.team-card { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.team-card > img, .team-card-type > span { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease; }
.team-card > div { position: relative; z-index: 1; background: var(--surface); }
.team-card h3 { transition: color .25s ease; }
.team-card:hover { transform: translateY(-6px); border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.team-card:hover > img, .team-card-type:hover > span { transform: scale(1.06); filter: saturate(1.08); }
.team-card:hover h3 { color: var(--blue); }
.team-card::after { content: ""; position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.team-card:hover::after { transform: scaleX(1); }
:root[data-theme="dark"] .team-card:hover h3 { color: #7fb2ff; }
:root[data-theme="dark"] .team-card::after { background: #7fb2ff; }
@media (prefers-reduced-motion: reduce) { .team-card, .team-card > img, .team-card-type > span { transition: none; } .team-card:hover { transform: none; } .team-card:hover > img, .team-card-type:hover > span { transform: none; } }

/* Header fits 1361-1460px even with the bold active item (no horizontal scroll, CTA not cut off) */
@media (min-width: 1361px) and (max-width: 1460px) {
  .page-header { gap: 14px; }
  .page-nav > a, .page-nav-item > a, .page-account-link { padding: 0 6px; font-size: .9rem; }
  .page-header-cta { padding: 0 1rem; }
}

/* ---------- Glossy app icons (course badges, quiz, story tags) ---------- */
.gl-ico { --g1: #5aa2ff; --g2: #1d4ed8; --gl-layer: -5px; position: relative; isolation: isolate; color: #fff !important; background: linear-gradient(165deg, var(--g1) 0%, var(--g2) 94%) !important; box-shadow: 0 var(--gl-layer) 0 -2px color-mix(in srgb, var(--g1) 42%, #fff), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 10px rgba(0, 0, 0, .14), 0 12px 22px -10px color-mix(in srgb, var(--g2) 80%, transparent) !important; }
.gl-ico::after { content: ""; position: absolute; inset: 1px 1px 50%; z-index: 0; border-radius: inherit; border-bottom-left-radius: 50% 26%; border-bottom-right-radius: 50% 26%; background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .04)); pointer-events: none; }
.gl-ico .ti { position: relative; z-index: 1; filter: drop-shadow(0 1.5px 1.2px rgba(0, 0, 0, .25)); }
.gl-ico[data-c="qa"] { --g1: #5be38a; --g2: #15903f; }
.gl-ico[data-c="aqa"] { --g1: #3fe0cc; --g2: #0b8a83; }
.gl-ico[data-c="fullstack-js"] { --g1: #ffc94a; --g2: #ef7d00; }
.gl-ico[data-c="fullstack-python"] { --g1: #63a9ff; --g2: #1f55d1; }
.gl-ico[data-c="roblox"] { --g1: #ff7d8f; --g2: #d81f45; }
.gl-ico[data-c="minecraft"] { --g1: #9ddf3c; --g2: #43860d; }
.gl-ico[data-c="it-basics"] { --g1: #4cc9ff; --g2: #0565a8; }
.gl-ico[data-c="corporate-ai"] { --g1: #ff7fc0; --g2: #d4246e; }
.gl-ico[data-c="corporate-pc"] { --g1: #4d94ff; --g2: #0b3558; }
.gl-ico[data-c="corporate-excel"] { --g1: #3ddc97; --g2: #037a4c; }
.gl-ico[data-c="uiux"] { --g1: #ffab6b; --g2: #e5531a; }
.course-badge.gl-ico { width: 64px; height: 64px; border-radius: 19px; }
.course-badge.gl-ico .ti { width: 32px; height: 32px; }
.course-badge.gl-ico { box-shadow: 0 -5px 0 -2px color-mix(in srgb, var(--g1) 42%, #fff), 0 0 0 5px var(--surface), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 10px rgba(0, 0, 0, .14), 0 16px 26px -10px color-mix(in srgb, var(--g2) 80%, transparent) !important; }
a:hover .course-badge.gl-ico, article:hover > .course-badge.gl-ico { transform: translateY(-2px) rotate(-3deg); }
.course-badge.gl-ico { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.quiz-option-icon.gl-ico { border-radius: 14px; }
.quiz-option-icon.gl-ico .ti { width: 25px; height: 25px; }
.quiz-option:nth-child(4n+1) .quiz-option-icon.gl-ico { --g1: #63a9ff; --g2: #1f55d1; }
.quiz-option:nth-child(4n+2) .quiz-option-icon.gl-ico { --g1: #3fe0cc; --g2: #0b8a83; }
.quiz-option:nth-child(4n+3) .quiz-option-icon.gl-ico { --g1: #ffc94a; --g2: #ef7d00; }
.quiz-option:nth-child(4n+4) .quiz-option-icon.gl-ico { --g1: #ff7fc0; --g2: #d4246e; }
:root[data-theme="dark"] .gl-ico { --gl-layer: -5px; }
:root[data-theme="dark"] .course-badge.gl-ico { box-shadow: 0 -5px 0 -2px color-mix(in srgb, var(--g1) 55%, #0a1220), 0 0 0 5px var(--surface), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -4px 10px rgba(0, 0, 0, .2), 0 16px 26px -10px rgba(0, 0, 0, .7) !important; }

/* ---------- 3D emoji tiles (features, learn tabs, course stats, cards) ---------- */
.ico3d { display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(180deg, #f8fafe 0%, #ecf1f8 100%); border: 1px solid rgba(11, 53, 88, .07); box-shadow: inset 0 1px 0 #fff, 0 10px 20px -14px rgba(11, 53, 88, .45); color: inherit; }
.ico3d img { display: block; width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 6px 7px rgba(11, 53, 88, .2)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
:root[data-theme="dark"] .ico3d { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .ico3d img { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.page-feature-ico.ico3d { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 26px; }
.page-feature:hover .ico3d img, .page-card:hover .ico3d img, .course-expert-stats > div:hover .ico3d img { transform: translateY(-3px) scale(1.06); }
.page-feature.has-ico h3 { font-size: 1.22rem; }
.page-feature.has-ico p { color: var(--ink-2); line-height: 1.6; }
.page-card-number.page-card-icon.ico3d { width: 92px; height: 92px; border-radius: 26px; background: linear-gradient(180deg, #f8fafe 0%, #ecf1f8 100%); border: 1px solid rgba(11, 53, 88, .07); }
.page-card-icon.ico3d .emoji { width: 60px; height: 60px; }
:root[data-theme="dark"] .page-card-number.page-card-icon.ico3d { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .08); }
.learn-tab-icon.ico3d { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 16px; transition: box-shadow .25s ease, transform .25s ease, background .25s ease; }
.learn-tab-icon.ico3d img { width: 36px; height: 36px; }
.learn-tab.is-active .learn-tab-icon.ico3d { background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 12px 22px -12px rgba(11, 53, 88, .55); transform: scale(1.04); }
:root[data-theme="dark"] .learn-tab.is-active .learn-tab-icon.ico3d { background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 2px #4d94ff; }
.learn-tab > button:hover .learn-tab-icon.ico3d img { transform: translateY(-2px) scale(1.06); }
@media (min-width: 901px) { .learn-tab > p { padding-left: 100px; } }
.course-expert-stats .ico3d { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 15px; }
.course-expert-stats .ico3d img { width: 34px; height: 34px; }
@media (max-width: 640px) {
  .learn-tab-icon.ico3d { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  .learn-tab-icon.ico3d img { width: 30px; height: 30px; }
  .page-feature-ico.ico3d { width: 76px; height: 76px; border-radius: 22px; }
}

/* ---------- Success stories on the home page ---------- */
.stories-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.stories-intro { display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.stories-intro h2 { font: 800 clamp(1.8rem, 2.6vw, 2.3rem)/1.1 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.stories-intro > p { margin-top: 12px; color: var(--ink-2); line-height: 1.6; }
.stories-avatars { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 10px 14px; margin: 26px 0 22px; padding-bottom: 22px; }
.stories-avatars > * { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 8px 18px -10px rgba(11, 53, 88, .55); object-fit: cover; object-position: 50% 25%; }
.stories-avatars > :nth-child(3n+2) { transform: translateY(22px); }
.stories-avatars > span { display: grid; place-items: center; color: #fff; font: 800 1.05rem/1 var(--font-head); background: linear-gradient(160deg, #4d94ff, #0b3558); }
.stories-avatars > span:nth-child(4n+2) { background: linear-gradient(160deg, #3fe0cc, #0b8a83); }
.stories-avatars > span:nth-child(4n+3) { background: linear-gradient(160deg, #ffab6b, #e5531a); }
.stories-avatars > span:nth-child(4n) { background: linear-gradient(160deg, #ff7fc0, #d4246e); }
.stories-intro .page-secondary-link { margin-top: auto; align-self: flex-start; }
.story-home-card { display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, background .35s ease; }
.story-home-card figure { margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 18px; background: var(--blue-50); }
.story-home-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.story-home-tag { display: flex; align-items: center; gap: 10px; margin: 20px 8px 0; color: var(--blue); font-weight: 800; font-size: .92rem; line-height: 1.25; }
:root[data-theme="dark"] .story-home-tag { color: #7fb2ff; }
.story-home-tag .gl-ico { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; --gl-layer: -4px; }
.story-home-tag .gl-ico .ti { width: 19px; height: 19px; }
.story-home-card h3 { margin: 12px 8px 0; font: 800 1.2rem/1.25 var(--font-head); color: var(--ink); }
.story-home-card h3 + p { margin: 8px 8px 0; color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.story-home-card:hover { transform: translateY(-6px); background: var(--surface); box-shadow: var(--shadow-lg); }
.story-home-card:hover figure img { transform: scale(1.05); }
@media (max-width: 1100px) { .stories-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stories-home-grid { grid-template-columns: 1fr; }
  .story-home-card figure { aspect-ratio: 16 / 11; }
  .stories-avatars { grid-template-columns: repeat(3, 58px); }
  .stories-avatars > * { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-home-card, .story-home-card figure img, .ico3d img, .course-badge.gl-ico { transition: none; }
  .story-home-card:hover, .story-home-card:hover figure img { transform: none; }
}
