/* =========================================================
   Arastu o‘quv markazi — Tarix va huquq
   ========================================================= */

:root {
  --paper: #F7F2E8;
  --paper-2: #EFE6D6;
  --surface: #FFFCF6;
  --ink: #14213D;
  --ink-2: #3D4863;
  --muted: #69718C;
  --line: rgba(20, 33, 61, .11);
  --line-2: rgba(20, 33, 61, .2);
  --gold: #C8962E;
  --gold-ink: #93661A;
  --gold-soft: #F1E2BF;
  --turq: #117571;
  --turq-soft: #D3EAE6;
  --terra: #C4553A;
  --navy: #14213D;
  --navy-2: #1C2C4E;
  --on-navy: #F4EDE0;
  --on-navy-muted: #A9B2C8;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 14px rgba(20, 33, 61, .05);
  --shadow: 0 18px 40px -18px rgba(20, 33, 61, .3);
  --shadow-lg: 0 40px 90px -40px rgba(20, 33, 61, .45);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2314213D' stroke-opacity='.06'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23F4EDE0' stroke-opacity='.06'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --radius: 24px;
  --radius-sm: 16px;
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --header-h: 76px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0C1322;
  --paper-2: #111A2D;
  --surface: #162038;
  --ink: #F1EADC;
  --ink-2: #CDD3E1;
  --muted: #98A1BA;
  --line: rgba(241, 234, 220, .1);
  --line-2: rgba(241, 234, 220, .2);
  --gold: #E0B25A;
  --gold-ink: #E8C170;
  --gold-soft: rgba(224, 178, 90, .16);
  --turq: #45B9B0;
  --turq-soft: rgba(69, 185, 176, .15);
  --navy: #070D1A;
  --navy-2: #0E1830;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .2);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .75);
  --pattern: var(--pattern-light);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #1A1406; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(84px, 12vw, 150px); }
.ico { width: 20px; height: 20px; flex: none; }
.pattern { position: absolute; inset: 0; background-image: var(--pattern); pointer-events: none; }
.pattern--light { background-image: var(--pattern-light); }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: .42em;
  text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; color: var(--gold-ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--turq);
}
.eyebrow__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.section-head { max-width: 740px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__text { color: var(--muted); font-size: 1.06rem; max-width: 620px; margin-bottom: 0; }

/* Split words (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .07em .1em 0; margin: 0 -.07em -.1em 0; }
.w__i { display: inline-block; will-change: transform; }
.js [data-split] .w__i { transform: translateY(108%); transition: transform 1.05s var(--ease-out-expo); transition-delay: calc(var(--wi, 0) * 38ms); }
.js [data-split].is-in .w__i { transform: none; }

/* Reveal (JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .95s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="clip"] { transform: translateY(48px) scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.btn:active { transform: scale(.97); }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold); color: #1A1406; }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost .ico { color: var(--gold-ink); }
.btn--tg { background: #229ED9; color: #fff; }
.btn--light { color: var(--on-navy); box-shadow: inset 0 0 0 1.5px rgba(244, 237, 224, .28); }
.btn__arrow {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; margin-right: -12px;
  border-radius: 50%; overflow: hidden;
  background: var(--gold); color: #1A1406;
}
.btn--gold .btn__arrow { background: #1A1406; color: var(--gold); }
.btn__arrow svg { width: 16px; height: 16px; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .26) 50%, transparent 65%);
  transform: translateX(-110%);
}
.magnetic { will-change: transform; }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.link-btn svg { width: 18px; height: 18px; color: var(--gold-ink); transition: transform .3s var(--ease-out); }

.icon-btn {
  position: relative; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: box-shadow .2s ease, transform .16s var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 16px 32px -14px rgba(20, 33, 61, .55); }
  .btn--gold:hover { box-shadow: 0 16px 32px -14px rgba(200, 150, 46, .7); }
  .btn--tg:hover { background: #1B8DC4; }
  .btn--ghost:hover, .icon-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn--light:hover { box-shadow: inset 0 0 0 1.5px var(--on-navy); }
  .btn:hover::after { transform: translateX(110%); transition: transform .75s var(--ease-out); }
  .btn:hover .btn__arrow svg { animation: arrow-loop .55s var(--ease-out); }
  .link-btn:hover { background-size: 100% 1.5px; }
  .link-btn:hover svg { transform: translateX(4px); }
}
@keyframes arrow-loop {
  0% { transform: translateX(0); }
  45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); }
  100% { transform: translateX(0); }
}

/* ---------- Progress + Header ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 130; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  pointer-events: none;
}
.header__inner {
  position: relative; pointer-events: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 0;
  transition: height .5s var(--ease-out), max-width .5s var(--ease-out), padding .5s var(--ease-out),
              border-radius .5s var(--ease-out), background-color .35s ease, box-shadow .35s ease, transform .5s var(--ease-out);
}
.header.is-scrolled .header__inner {
  --pill-h: 62px;
  height: var(--pill-h);
  max-width: min(1180px, calc(100% - 24px));
  padding-inline: 18px 9px;
  border-radius: 999px;
  transform: translateY(10px);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 20px 44px -24px rgba(20, 33, 61, .5);
}
.header.is-scrolled .brand__mark { width: 34px; height: 34px; }
.header.is-scrolled .nav { background: transparent; box-shadow: none; }
.menu-open .header .header__inner { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; color: var(--gold); transition: transform .5s var(--ease-out); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-family: var(--f-display); font-size: 1.65rem; font-weight: 700; letter-spacing: .01em; }
.brand__text small { margin-top: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__mark { transform: translateY(-2px) rotate(-6deg); } }

.nav {
  position: relative; display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav a { position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px; font-size: .87rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color .25s ease; }
.nav a.is-active { color: var(--paper); }
.nav__pill {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px; background: var(--ink); opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:not(.is-active):hover { color: var(--gold-ink); } }

.header__tools { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; display: flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.lang button { position: relative; z-index: 1; width: 40px; height: 34px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); transition: color .25s ease; }
.lang button[aria-pressed="true"] { color: #1A1406; }
.lang__thumb { position: absolute; top: 4px; left: 4px; width: 40px; height: 34px; border-radius: 999px; background: var(--gold); transition: transform .35s var(--ease-out); }
html[lang="ru"] .lang__thumb { transform: translateX(40px); }

.theme-toggle svg { position: absolute; transition: transform .45s var(--ease-out), opacity .25s ease; }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

.header__cabinet { --h: 42px; padding: 0 18px; font-size: .86rem; }
.header__cabinet .ico { width: 18px; height: 18px; color: var(--gold); }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); }
.burger span { position: absolute; left: 14px; right: 14px; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: var(--paper); transition: transform .35s var(--ease-out); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.mnav.is-open { opacity: 1; }
.mnav__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; line-height: 1.1;
}
.mnav__links small { font-family: var(--f-body); font-size: .74rem; font-weight: 800; color: var(--gold-ink); }
.mnav__foot { display: grid; gap: 10px; }
.mnav__links a, .mnav__foot {
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}
.mnav.is-open .mnav__links a, .mnav.is-open .mnav__foot { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px)); overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg .pattern { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; }
.blob--gold { width: 640px; height: 640px; right: -140px; top: -40px; background: radial-gradient(circle, var(--gold-soft) 0%, transparent 68%); }
.blob--turq { width: 560px; height: 560px; left: -220px; bottom: 40px; background: radial-gradient(circle, var(--turq-soft) 0%, transparent 68%); }

.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.7rem, 5.3vw, 4.7rem); line-height: 1; letter-spacing: -.018em;
  margin-bottom: 26px; text-wrap: balance;
}
.hero__lead { max-width: 560px; margin-bottom: 34px; font-size: clamp(1rem, 1.3vw, 1.13rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 18px clamp(20px, 3vw, 40px); margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts b { font-family: var(--f-display); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--gold-ink); }
.hero__facts span { max-width: 118px; font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--muted); }

.hero__art { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 3 / 4; }
.hero__orbit { position: absolute; left: -12%; top: -2%; width: 124%; color: var(--gold); opacity: .7; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.arch {
  --arch-v: 40%;
  position: relative; overflow: hidden;
  border-radius: 50% 50% var(--radius) var(--radius) / var(--arch-v) var(--arch-v) var(--radius) var(--radius);
  background: var(--paper-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero {
  --arch-v: 37.5%;
  position: absolute; inset: 0;
  box-shadow: 0 0 0 10px var(--surface), var(--shadow-lg);
  will-change: transform;
}

.float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.float--lang { left: -16%; bottom: 11%; padding: 16px 20px; border-radius: 20px; }
.float__label { margin: 0 0 8px; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--turq); }
.float__langs { display: flex; align-items: center; gap: 16px; }
.float__langs > span { display: flex; flex-direction: column; }
.float__langs b { font-family: var(--f-display); font-size: 1.65rem; font-weight: 600; line-height: 1; color: var(--gold-ink); }
.float__langs small { margin-top: 4px; font-size: .7rem; font-weight: 600; color: var(--muted); }
.float__langs i { width: 1px; align-self: stretch; background: var(--line-2); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.float--time { right: -10%; top: 13%; }
.float--time .ico { color: var(--gold-ink); }
.float--test { right: -6%; bottom: 33%; }
.chip__check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--turq); color: #fff; }
.chip__check svg { width: 15px; height: 15px; }

.float { animation: bob 5s var(--ease-in-out) infinite alternate; }
.float--time { animation-delay: -1.6s; }
.float--test { animation-delay: -3.2s; }
@keyframes bob { from { translate: 0 -6px; } to { translate: 0 6px; } }

/* Hero entrance */
.js [data-hero] { opacity: 0; transform: translateY(26px); }
.js .is-loaded [data-hero] { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.js .is-loaded [data-hero="1"] { transition-delay: .15s; }
.js .is-loaded [data-hero="2"] { transition-delay: .5s; }
.js .is-loaded [data-hero="3"] { transition-delay: .62s; }
.js .is-loaded [data-hero="4"] { transition-delay: .74s; }
.js .hero__art .float { opacity: 0; scale: .9; }
.js .is-loaded .hero__art .float { opacity: 1; scale: 1; transition: opacity .6s var(--ease-out), scale .8s var(--ease-out); }
.js .is-loaded .float--lang { transition-delay: .75s; }
.js .is-loaded .float--time { transition-delay: .9s; }
.js .is-loaded .float--test { transition-delay: 1.05s; }

/* Marquee */
.marquee { overflow: hidden; padding: 20px 0; border-block: 1px solid var(--line); background: var(--surface); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__group { display: flex; flex: none; align-items: center; gap: 30px; padding-right: 30px; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-style: italic; font-weight: 600; white-space: nowrap; }
.marquee svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ---------- Languages band ---------- */
.langs { padding-block: clamp(80px, 11vw, 140px) clamp(20px, 4vw, 40px); overflow: clip; }
.langs__row {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 40px);
  font-family: var(--f-display); font-weight: 600; line-height: .95; letter-spacing: -.02em; white-space: nowrap;
  font-size: clamp(3.4rem, 12.5vw, 11rem);
}
.langs__word { will-change: transform; }
.langs__word--ru { font-style: italic; color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.langs__amp { font-size: .45em; font-style: italic; color: var(--turq); }
.langs__note { max-width: 560px; margin: 34px auto 0; text-align: center; font-size: 1.1rem; color: var(--ink-2); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(44px, 7vw, 110px); }
.about__art { position: relative; width: 100%; max-width: 440px; justify-self: center; }
.about__art .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
[data-parallax-inner] { will-change: transform; }
.arch [data-parallax-inner], .subject__art [data-parallax-inner], .mapcard [data-parallax-inner] { height: 118% !important; margin-top: -9%; object-fit: cover; }
.about__stamp {
  position: absolute; right: -30px; bottom: 44px;
  display: grid; place-items: center;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow);
}
.about__stamp > svg:first-child { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); overflow: visible; animation: spin 28s linear infinite; }
.about__stamp text { font: 800 9px var(--f-body); letter-spacing: .2em; fill: currentColor; }
.about__stamp-logo { width: 38px; height: 38px; color: var(--gold); }
.about__sub { margin-bottom: 26px; font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.65rem); font-style: italic; line-height: 1.3; color: var(--turq); }
.about__text { max-width: 600px; font-size: 1.05rem; color: var(--ink-2); }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; height: 230vh; background: var(--navy); color: var(--on-navy); }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.manifesto__inner { position: relative; max-width: 1120px; }
.manifesto__quote { width: 58px; margin-bottom: 30px; color: var(--gold); }
.manifesto__text {
  margin-bottom: 44px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.05rem, 4.8vw, 4.5rem); line-height: 1.1; letter-spacing: -.01em;
  text-wrap: balance;
}
.manifesto__text em { font-style: italic; color: var(--gold); }
.js .manifesto__text .mw { opacity: .14; transition: opacity .3s ease; }
.js .manifesto__text .mw.on { opacity: 1; }
.manifesto__sign { display: flex; align-items: center; gap: 14px; margin: 0; }
.manifesto__mono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #1A1406; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; }
.manifesto__sign b { display: block; font-size: 1.05rem; }
.manifesto__sign small { font-size: .86rem; color: var(--on-navy-muted); }

/* ---------- Method ---------- */
.method { background: var(--paper-2); }
.steps { position: relative; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.steps__line { position: absolute; left: 34px; right: 12%; top: 33px; height: 2px; background: var(--line-2); }
.steps__line span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--turq), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 68px; height: 68px; margin-bottom: 26px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow-sm);
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-ink);
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.step.is-lit .step__num { background: var(--ink); color: var(--gold); box-shadow: 0 0 0 7px var(--gold-soft); }
.step__title { margin-bottom: 10px; font-family: var(--f-display); font-size: 1.75rem; font-weight: 600; line-height: 1.08; }
.step p { margin: 0; font-size: .97rem; color: var(--muted); }

/* ---------- Subjects ---------- */
.stack { display: grid; gap: 28px; }
.subject { position: sticky; top: calc(var(--header-h) + 18px); }
.subject + .subject { top: calc(var(--header-h) + 36px); }
.subject__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(26px, 4vw, 60px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: 34px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
  transform-origin: 50% 0; will-change: transform;
}
.subject--alt .subject__inner { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.subject__num { margin-bottom: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--turq); }
.subject--alt .subject__num { color: var(--gold); }
.subject__title { margin-bottom: 18px; font-family: var(--f-display); font-size: clamp(3.4rem, 7.4vw, 6.2rem); font-weight: 600; line-height: .9; letter-spacing: -.02em; }
.subject__desc { max-width: 520px; font-size: 1.05rem; color: var(--ink-2); }
.subject--alt .subject__desc { color: var(--on-navy-muted); }
.ticks { margin: 26px 0 30px; border-top: 1px solid var(--line); }
.ticks li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .97rem; font-weight: 600; }
.subject--alt .ticks, .subject--alt .ticks li { border-color: rgba(244, 237, 224, .12); }
.tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--turq-soft); color: var(--turq); }
.subject--alt .tick { background: rgba(224, 178, 90, .16); color: var(--gold); }
.tick svg { width: 14px; height: 14px; }
.js .subject .ticks li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--k, 0) * 80ms + 150ms); }
.js .subject.is-in .ticks li { opacity: 1; transform: none; }
.subject__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.subject--alt .link-btn { color: var(--on-navy); }
.subject--alt .link-btn svg { color: var(--gold); }
.subject__art { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1100 / 821; border-radius: 26px; background: #F4EDE0; }
.subject__art img { width: 100%; }

/* ---------- Schedule ---------- */
.schedule__head { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(32px, 5vw, 72px); margin-bottom: clamp(36px, 5vw, 56px); }
.schedule__head .section-head { margin-bottom: 0; }
.modes { display: grid; gap: 14px; }
.mode { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.mode__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: var(--gold-soft); color: var(--gold-ink); }
.mode__icon svg { width: 25px; height: 25px; }
.mode:not(.mode--night) .mode__icon svg { animation: spin 20s linear infinite; }
.mode--night .mode__icon { background: #14213D; color: #E0B25A; }
.mode__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 4px; font-size: 1.02rem; font-weight: 800; }
.mode__title time { font-size: .82rem; font-weight: 700; color: var(--turq); }
.mode p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }

.planner { padding: clamp(20px, 3.4vw, 40px); border-radius: 34px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.planner__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 18px; background: var(--paper-2); }
.seg button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 10px 22px; border-radius: 14px; line-height: 1.25; text-align: left; transition: color .3s ease; }
.seg b { font-size: .95rem; }
.seg small { font-size: .74rem; font-weight: 600; color: var(--muted); transition: color .3s ease; }
.seg button[aria-selected="true"] { color: var(--paper); }
.seg button[aria-selected="true"] small { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 14px; background: var(--ink); transition: transform .5s var(--ease-out); }
.seg[data-parity="even"] .seg__thumb { transform: translateX(100%); }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days span {
  position: relative; display: grid; place-items: center;
  min-width: 46px; height: 40px; padding: 0 10px; border-radius: 12px;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.days span.is-match { color: var(--ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1px transparent; }
.days span.is-today::after {
  content: attr(data-today);
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 6px;
  background: var(--turq); color: #fff;
  font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}

.timeline { position: relative; }
.timeline__scale { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.timeline__scale span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.timeline__scale span::after { content: ":00"; }
.timeline__track {
  display: grid; grid-template-columns: repeat(8, 1fr);
  min-height: 178px; padding: 6px 0;
  border-radius: 22px;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  box-shadow: inset -1px 0 0 var(--line);
}
.slot {
  position: relative; z-index: 1; grid-row: 1;
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 4px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--paper-2);
}
.slot:nth-child(1) { grid-column: 1 / 4; }
.slot--gap { grid-column: 4 / 5; background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 10px); border-style: dashed; }
.slot[data-slot="a"] { grid-column: 5 / 7; }
.slot[data-slot="b"] { grid-column: 7 / 9; }
.slot time { font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.slot b { margin-top: auto; font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2.15rem); font-weight: 600; line-height: 1.1; }
.slot small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.slot__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.slot__langs i { padding: 3px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .68rem; font-style: normal; font-weight: 800; }
.slot--both { background: var(--ink); color: var(--paper); border-color: transparent; }
.slot--both time, .slot--both small { color: color-mix(in srgb, var(--paper) 66%, transparent); }
.slot--both .slot__langs i { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 30%, transparent); }
.slot[data-kind="huquq"] { background: var(--turq-soft); border-color: transparent; }
.slot[data-kind="huquq"] b { color: var(--turq); }
.slot[data-kind="tarix"] { background: var(--gold-soft); border-color: transparent; }
.slot[data-kind="tarix"] b { color: var(--gold-ink); }
.slot [data-subject], .slot [data-days] { transition: opacity .25s var(--ease-out), transform .4s var(--ease-out); }
.slot.is-swapping [data-subject], .slot.is-swapping [data-days] { opacity: 0; transform: translateY(10px); }
.js .planner .slot { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), background-color .4s ease; }
.js .planner.is-in .slot { opacity: 1; transform: none; }
.js .planner.is-in .slot:nth-child(2) { transition-delay: .1s; }
.js .planner.is-in .slot:nth-child(3) { transition-delay: .2s; }
.js .planner.is-in .slot:nth-child(4) { transition-delay: .3s; }

.slot.is-now { box-shadow: 0 0 0 2px var(--terra), 0 12px 30px -16px rgba(196, 85, 58, .6); }
.timeline__now { position: absolute; top: 26px; bottom: 0; z-index: 0; width: 2px; left: calc(var(--now, 0) * 100%); background: var(--terra); pointer-events: none; }
.timeline__now::before { content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--terra); transform: translate(-50%, -50%); animation: pulse 2s ease-out infinite; }
.timeline__now span { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding: 2px 8px; border-radius: 6px; background: var(--terra); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(196, 85, 58, .55); } to { box-shadow: 0 0 0 12px rgba(196, 85, 58, 0); } }
.planner__note { margin: 40px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feat {
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 4;
  display: flex; flex-direction: column;
  padding: 28px; border-radius: 26px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.feat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--gold-soft), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
.feat__num { position: absolute; top: 24px; right: 26px; font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.feat__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--turq-soft); color: var(--turq); transition: transform .45s var(--ease-out); }
.feat__icon svg { width: 26px; height: 26px; }
.feat h3 { margin: 30px 0 10px; font-family: var(--f-display); font-size: 1.75rem; font-weight: 600; line-height: 1.08; }
.feat p { margin: 0; font-size: .96rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .feat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
  .feat:hover::before { opacity: 1; }
  .feat:hover .feat__icon { transform: translateY(-3px) rotate(-7deg); }
}
.feat--exam {
  grid-column: span 8; grid-row: span 2;
  flex-direction: row; align-items: center; gap: 24px;
  padding: clamp(28px, 3.4vw, 46px);
  border-color: transparent; background: var(--navy); color: var(--on-navy);
}
.feat--exam::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 178, 90, .16), transparent 62%); }
.feat--exam .feat__copy { flex: 1 1 55%; display: flex; flex-direction: column; align-items: flex-start; }
.feat--exam h3 { font-size: clamp(2.2rem, 3.6vw, 3.3rem); }
.feat--exam p { max-width: 380px; margin-bottom: 28px; font-size: 1.05rem; color: var(--on-navy-muted); }
.feat--exam .feat__icon { background: rgba(224, 178, 90, .15); color: var(--gold); }
.feat--exam .feat__num { color: var(--on-navy-muted); }
.feat--exam .btn--primary { background: var(--gold); color: #1A1406; }
.feat--exam .feat__img { flex: 1 1 45%; width: 45%; max-width: 380px; aspect-ratio: 1; border-radius: 24px; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .feat--exam:hover .feat__img { transform: rotate(-2deg) scale(1.03); } }
.feat--room { grid-column: span 12; flex-direction: row; padding: 0; }
.feat--room .feat__copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.feat--room .feat__copy p { margin-bottom: 14px; }
.feat--room .feat__img { width: 40%; max-height: 300px; object-fit: cover; object-position: 50% 60%; transition: transform .8s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .feat--room:hover .feat__img { transform: scale(1.05); } }

/* ---------- Gallery ---------- */
.gallery { position: relative; background: var(--paper-2); }
.gallery__pin { padding-block: clamp(84px, 11vw, 140px); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 4vw, 50px); }
.gallery__head .section-head { margin-bottom: 0; }
.gallery__progress { width: 180px; height: 2px; margin-bottom: 12px; border-radius: 2px; overflow: hidden; background: var(--line-2); }
.gallery__progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.gallery__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  scroll-padding-inline: var(--gutter);
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; gap: clamp(14px, 2vw, 26px); width: max-content; padding-bottom: 8px; }
.shot { flex: none; width: clamp(250px, 29vw, 380px); scroll-snap-align: start; }
.shot figure { margin: 0; }
.shot__frame {
  overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
  background: #F4EDE0; box-shadow: var(--shadow);
}
.shot__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.shot figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.shot figcaption span { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--gold-ink); }
.shot figcaption b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.shot__cta {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 20px;
  aspect-ratio: 4 / 5; padding: 32px; border-radius: var(--radius);
  background: var(--navy); color: var(--on-navy);
}
.shot__cta::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-light); }
.shot__logo { position: relative; width: 64px; height: 64px; margin-bottom: auto; color: var(--gold); }
.shot__cta p { position: relative; margin: 0; font-family: var(--f-display); font-size: 1.7rem; line-height: 1.15; }
.shot__cta .btn { position: relative; }

.gallery.is-pinned { height: var(--pin-h, 300vh); }
.gallery.is-pinned .gallery__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) - 10px) 20px;
}
.gallery.is-pinned .gallery__viewport { overflow: visible; scroll-snap-type: none; }
.gallery.is-pinned .gallery__track { will-change: transform; }
.gallery.is-pinned .shot { width: min(26vw, calc((100svh - 390px) * .8)); min-width: 220px; }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(90px, 12vw, 150px) clamp(60px, 8vw, 100px); background: var(--navy); color: var(--on-navy); }
.contact .pattern { z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: clamp(36px, 5vw, 72px); }
.eyebrow--light { color: var(--gold); }
.contact .h2 em { color: var(--gold); }
.contact__lead { max-width: 520px; margin-bottom: 30px; font-size: 1.08rem; color: var(--on-navy-muted); }
.contact__phone {
  display: inline-block; margin-bottom: 30px; padding-bottom: 10px;
  font-family: var(--f-display); font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat;
  transition: color .3s ease, opacity .8s var(--ease-out), transform .95s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .contact__phone:hover { color: var(--gold); } }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.contact__list { margin: 0; border-top: 1px solid rgba(244, 237, 224, .12); }
.contact__list > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(244, 237, 224, .12); }
.contact__list dt { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); }
.contact__list dt svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.contact__list dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact__list dd a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.copy-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(244, 237, 224, .22); transition: transform .16s var(--ease-out), background-color .2s ease; }
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { background: rgba(244, 237, 224, .08); } }

.apply { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 30px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.apply__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--turq); }
.apply__title { margin-bottom: 22px; font-family: var(--f-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.1; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span, .choice legend { font-size: .8rem; font-weight: 800; color: var(--muted); }
.field input {
  height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--paper);
  font-size: 16px; font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.choice legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice label > span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out);
}
.choice small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.choice input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input:checked + span small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice label:active > span { transform: scale(.96); }
.apply .btn { margin-top: 8px; }
.apply__hint { margin: 12px 0 0; font-size: .8rem; text-align: center; color: var(--muted); }

.mapcard { position: relative; grid-column: 1 / -1; display: block; overflow: hidden; height: clamp(250px, 30vw, 380px); margin-top: clamp(8px, 2vw, 20px); border-radius: 30px; background: #F4EDE0; }
.mapcard img { width: 100%; }
.mapcard__label {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 580px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mapcard__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--gold); color: #1A1406; }
.mapcard__icon svg { width: 22px; height: 22px; }
.mapcard__label b { display: block; font-size: 1rem; }
.mapcard__label small { font-size: .84rem; color: var(--muted); }
.mapcard__go { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .86rem; font-weight: 800; white-space: nowrap; color: var(--turq); }
.mapcard__go svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mapcard:hover .mapcard__go svg { transform: translateX(4px); } }

/* ---------- Footer ---------- */
.footer { overflow: clip; padding: clamp(40px, 6vw, 70px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(244, 237, 224, .1); background: var(--navy); color: var(--on-navy); }
.footer .brand__text small { color: var(--on-navy-muted); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a { font-size: .9rem; font-weight: 600; color: var(--on-navy-muted); transition: color .2s ease; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: .86rem; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(244, 237, 224, .22); }
.to-top svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover, .footer__bottom a:hover { color: var(--gold); }
  .to-top:hover svg { transform: rotate(-90deg) translateX(3px); }
}
.footer__word {
  margin: clamp(20px, 4vw, 40px) 0 0;
  font-family: var(--f-display); font-size: clamp(5rem, 23vw, 21rem); font-weight: 700; line-height: .8; letter-spacing: -.04em;
  text-align: center; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(224, 178, 90, .38);
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(16px, 3vw, 30px); padding-top: 24px; border-top: 1px solid rgba(244, 237, 224, .1); font-size: .84rem; color: var(--on-navy-muted); }
.footer__bottom p { margin: 0; }

/* ---------- Mobile dock + toast ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px; border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transform: translateY(calc(100% + 30px));
  transition: transform .45s var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 16px; font-size: .72rem; font-weight: 800; transition: transform .16s var(--ease-out); }
.dock__btn:active { transform: scale(.95); }
.dock__btn svg { width: 22px; height: 22px; }
.dock__btn:first-child { background: var(--ink); color: var(--paper); }
.dock__btn--tg { background: #229ED9; color: #fff; }
.dock__btn--gold { background: var(--gold); color: #1A1406; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 400;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg);
  font-size: .9rem; font-weight: 700; text-align: center;
  opacity: 0; transform: translate(-50%, 16px) scale(.96); pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Quiz ---------- */
.quiz {
  width: min(760px, calc(100% - 24px)); max-width: none; max-height: min(880px, calc(100svh - 24px));
  padding: 0; border: 0; border-radius: 30px; overflow: hidden;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.quiz::backdrop { background: rgba(7, 13, 26, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quiz[open] { animation: dlg-in .3s var(--ease-out); }
.quiz[open]::backdrop { animation: fade-in .3s var(--ease-out); }
.quiz.is-closing { animation: dlg-out .2s var(--ease-out) forwards; }
.quiz.is-closing::backdrop { animation: fade-out .2s var(--ease-out) forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.quiz__panel { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.quiz__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 24px; border-bottom: 1px solid var(--line); }
.quiz__brand { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 0; font-size: .95rem; font-weight: 800; }
.quiz__brand svg { width: 26px; height: 26px; color: var(--gold); }
.quiz__timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper-2); font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.quiz__timer svg { width: 18px; height: 18px; color: var(--gold-ink); }
.quiz__timer.is-low { background: rgba(196, 85, 58, .14); color: var(--terra); }
.quiz__timer.is-low svg { color: var(--terra); }
.quiz__progress { height: 3px; background: var(--line); }
.quiz__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--turq), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.quiz__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 4vw, 40px); }
.q-screen { animation: q-in .35s var(--ease-out); }
@keyframes q-in { from { opacity: 0; transform: translateY(12px); } }

.q-intro { display: grid; grid-template-columns: 1fr 150px; gap: 8px 24px; align-items: start; }
.q-intro__art { width: 150px; border-radius: 22px; }
.q-title { margin-bottom: 12px; font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 600; line-height: 1.05; }
.q-text { margin-bottom: 26px; color: var(--muted); }
.q-label { margin-bottom: 12px; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--turq); }
.q-subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.q-subject { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 18px; text-align: left; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.q-subject:active { transform: scale(.97); }
.q-subject b { font-family: var(--f-display); font-size: 1.65rem; font-weight: 600; line-height: 1; }
.q-subject small { font-size: .76rem; font-weight: 700; color: var(--muted); }
.q-subject[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.q-subject[aria-pressed="true"] small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.q-demo { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }

.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.q-count { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--turq); }
.q-topic { padding: 4px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: .76rem; font-weight: 700; }
.q-question { margin-bottom: 22px; font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; line-height: 1.15; }
.q-options { display: grid; gap: 10px; margin-bottom: 26px; }
.q-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border-radius: 16px; text-align: left; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s ease, background-color .2s ease, transform .16s var(--ease-out); }
.q-opt:active { transform: scale(.985); }
.q-opt__key { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); font-size: .85rem; font-weight: 800; transition: background-color .2s ease, color .2s ease; }
.q-opt[aria-checked="true"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.q-opt[aria-checked="true"] .q-opt__key { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .q-opt:hover, .q-subject:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.q-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.q-dot { width: 32px; height: 32px; border-radius: 9px; font-size: .74rem; font-weight: 800; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.q-dot.is-done { background: var(--gold-soft); color: var(--gold-ink); box-shadow: none; }
.q-dot.is-current { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.q-nav { display: flex; justify-content: space-between; gap: 10px; }
.q-nav .btn[disabled] { opacity: .4; pointer-events: none; }

.q-result { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; margin-bottom: 30px; }
.q-ring { position: relative; width: 156px; height: 156px; }
.q-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.q-ring circle { fill: none; stroke-width: 10; }
.q-ring .bg { stroke: var(--line); }
.q-ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease-out) .15s; }
.q-ring__val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--f-display); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.q-ring__val small { display: block; margin-top: 4px; font-family: var(--f-body); font-size: .7rem; font-weight: 700; color: var(--muted); }
.q-meta { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.q-bars { display: grid; gap: 14px; margin-bottom: 26px; }
.q-bar__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: .88rem; font-weight: 700; }
.q-bar__track { height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); }
.q-bar__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--turq), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease-out) .35s; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.q-review { display: grid; gap: 14px; margin-top: 30px; }
.q-item { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); }
.q-item__q { margin-bottom: 12px; font-weight: 800; }
.q-item__opts { display: grid; gap: 8px; }
.q-note { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9rem; color: var(--muted); }
.q-note b { display: block; color: var(--ink); }
.q-note__mark { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; font-size: .7rem; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.q-note.is-correct .q-note__mark { background: var(--turq); color: #fff; box-shadow: none; }
.q-note.is-correct b { color: var(--turq); }
.q-note.is-wrong .q-note__mark { background: var(--terra); color: #fff; box-shadow: none; }
.q-note.is-wrong b { color: var(--terra); }
.q-note__tag { margin-left: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__cabinet { display: none; }
  .burger { display: block; }
  .float--lang { left: -8%; }
  .float--time { right: -5%; }
  .feat { grid-column: span 6; }
  .feat--exam { grid-column: span 12; grid-row: auto; }
}

@media (max-width: 900px) {
  .hero__grid, .about__grid, .schedule__head, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { width: min(78%, 400px); margin: 10px auto 0; }
  .about__art { max-width: 380px; }
  .subject, .subject + .subject { position: relative; top: auto; }
  .subject__inner { grid-template-columns: 1fr; }
  .subject__art { order: -1; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps__line { display: none; }
  .contact__list > div { grid-template-columns: 160px 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .lang button, .lang__thumb { width: 36px; height: 32px; }
  html[lang="ru"] .lang__thumb { transform: translateX(36px); }
  .header__tools { gap: 8px; }
  .header.is-scrolled .header__inner { --pill-h: 58px; max-width: calc(100% - 16px); padding-inline: 12px 6px; transform: translateY(6px); }
  .header.is-scrolled .brand__text small { display: none; }
  .brand { gap: 9px; }
  .brand__text small { font-size: .56rem; letter-spacing: .1em; white-space: nowrap; }
  .hero__title { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .hero__cta .btn { width: 100%; }
  .hero__facts { justify-content: space-between; gap: 14px; }
  .hero__facts li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero__facts b { font-size: 2.2rem; }
  .hero__facts span { max-width: 100px; font-size: .72rem; }
  .hero__art { width: min(84%, 360px); }
  .float--lang { left: -8%; bottom: 5%; padding: 11px 14px; border-radius: 16px; }
  .float__langs { gap: 12px; }
  .float__langs b { font-size: 1.3rem; }
  .float--time { right: -8%; top: 7%; }
  .float--test { right: -10%; bottom: 30%; }
  .chip { gap: 8px; padding: 7px 12px 7px 8px; font-size: .74rem; }
  .chip__check { width: 22px; height: 22px; }
  .langs__row { flex-direction: column; gap: 0; font-size: clamp(3.4rem, 19vw, 5.6rem); }
  .about__stamp { right: -6px; bottom: 22px; width: 104px; height: 104px; }
  .about__stamp-logo { width: 30px; height: 30px; }
  .manifesto { height: 190vh; }
  .steps__list { grid-template-columns: 1fr; row-gap: 0; }
  .step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 30px; }
  .step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line-2); }
  .step:last-child::before { display: none; }
  .step__num { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 1.3rem; }
  .step__title { align-self: center; font-size: 1.5rem; }
  .subject__inner { border-radius: 26px; }
  .subject__title { font-size: 3.4rem; }
  .subject__foot .btn { width: 100%; }
  .planner { border-radius: 26px; }
  .planner__top { flex-direction: column; align-items: stretch; }
  .seg { display: grid; width: 100%; }
  .seg button { padding: 10px 14px; }
  .days { justify-content: space-between; gap: 5px; }
  .days span { flex: 1; min-width: 0; padding: 0 2px; }
  .timeline__scale, .slot--gap, .timeline__now { display: none; }
  .timeline__track { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 0; background: none; box-shadow: none; }
  .slot, .slot:nth-child(1), .slot[data-slot] { grid-column: 1; grid-row: auto; margin: 0; }
  .slot b { margin-top: 6px; }
  .planner__note { margin-top: 22px; }
  .bento { grid-template-columns: 1fr; }
  .feat, .feat--exam, .feat--room { grid-column: auto; }
  .feat--exam { flex-direction: column-reverse; align-items: stretch; }
  .feat--exam .feat__img { width: 100%; max-width: none; }
  .feat--exam .btn { width: 100%; }
  .feat--room { flex-direction: column; }
  .feat--room .feat__img { order: -1; width: 100%; max-height: 220px; }
  .shot { width: 76vw; }
  .gallery__progress { display: none; }
  .contact__phone { font-size: clamp(2.2rem, 11vw, 3rem); }
  .contact__btns .btn { width: 100%; }
  .contact__list > div { grid-template-columns: 1fr; gap: 6px; }
  .mapcard { height: 300px; }
  .mapcard__label { flex-wrap: wrap; }
  .mapcard__go { margin-left: 60px; }
  .dock { display: grid; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .quiz { width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .quiz__bar { padding-left: 18px; }
  .q-intro { grid-template-columns: 1fr; }
  .q-intro__art { width: 96px; order: -1; }
  .q-subjects { grid-template-columns: 1fr; }
  .q-subject { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .q-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .q-nav .btn, .q-actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .brand__text b { font-size: 1.4rem; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__text small { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero], .js [data-split] .w__i, .js .hero__art .float,
  .js .subject .ticks li, .js .planner .slot, .contact__phone {
    opacity: 1; transform: none; scale: none; transition: none;
  }
  .js .manifesto__text .mw { opacity: 1; transition: none; }
  .float, .marquee__track, .hero__orbit, .about__stamp > svg:first-child, .mode__icon svg,
  .timeline__now::before, .quiz[open], .quiz[open]::backdrop, .quiz.is-closing, .q-screen, .btn:hover .btn__arrow svg {
    animation: none;
  }
  .btn, .btn::after, .link-btn, .link-btn svg, .header__inner, .nav__pill, .lang__thumb, .seg__thumb, .mnav, .mnav__links a, .mnav__foot,
  .dock, .toast, .feat__icon, .feat__img, .q-ring .fg, .q-bar__track span, .quiz__progress span, .slot [data-subject], .slot [data-days] {
    transition: none;
  }
  .manifesto { height: auto; }
  .manifesto__sticky { position: relative; height: auto; padding-block: 120px; }
}
