/* ==========================================================================
   Государственный музей литературы имени Алишера Навои — основной стиль
   ========================================================================== */

:root {
  --navy: #1a237e;
  --navy-dark: #0e1452;
  --navy-deep: #080c35;
  --navy-soft: #283593;
  --gold: #c9a227;
  --gold-light: #e6c65a;
  --gold-pale: #f3e6b8;
  --cream: #faf8f0;
  --cream-dark: #f1ecdb;
  --white: #ffffff;
  --ink: #1b1e36;
  --muted: #5d6180;
  --line: rgba(26, 35, 126, 0.12);
  --shadow-sm: 0 2px 10px rgba(14, 20, 82, 0.08);
  --shadow: 0 12px 34px rgba(14, 20, 82, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 20, 82, 0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Восточные орнаменты (SVG data-URI) */
  --pattern-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8M28 0v6M28 56v-6M0 28h6M56 28h-6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1.2'%3E%3Cpath d='M0 8L10 2L20 8L30 14L40 8'/%3E%3Cpath d='M0 8L10 14L20 8L30 2L40 8'/%3E%3C/g%3E%3Ccircle cx='20' cy='8' r='2' fill='%23c9a227'/%3E%3Ccircle cx='0' cy='8' r='1.2' fill='%23c9a227'/%3E%3Ccircle cx='40' cy='8' r='1.2' fill='%23c9a227'/%3E%3C/svg%3E");
  --pattern-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22' viewBox='0 0 36 22'%3E%3Cpath d='M0 22V12C0 5 9 1 18 0C27 1 36 5 36 12V22' fill='none' stroke='%23c9a227' stroke-width='1.2'/%3E%3Cpath d='M18 6l3 4-3 4-3-4z' fill='%23c9a227'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  font-variant-numeric: lining-nums; /* Cormorant по умолчанию рисует «старостильные» цифры */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
main [id] { scroll-margin-top: calc(var(--header-h) + 70px); }
.form-error { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #b03a2e; font-size: .9rem; font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: 44px; }
.lead { font-size: 1.12rem; color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.text-gold { color: var(--gold); }
.center { text-align: center; }

/* ---------- Ornament band ---------- */
.ornament-band {
  height: 16px;
  background: var(--navy-deep) var(--pattern-band) repeat-x center;
}
.ornament-band--light { background-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.7em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  background: none;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(201, 162, 39, .35); }
.btn--gold:hover { color: var(--navy-deep); box-shadow: 0 12px 28px rgba(201, 162, 39, .5); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy); }
.link-arrow .icon { transition: transform .25s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
/* Вся шапка «прилипает», а орнамент и верхняя строка уезжают вверх */
#site-header { display: block; min-height: calc(var(--header-h) + 16px + 38px); position: sticky; top: -54px; z-index: 100; }
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.78);
  font-size: .82rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.topbar__info a:hover { color: var(--gold-light); }
.topbar .icon { color: var(--gold); width: 14px; height: 14px; }
.topbar__verse { font-family: var(--font-serif); font-style: italic; color: var(--gold-light); font-size: .95rem; }

.header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy-dark); flex-shrink: 0; }
.logo:hover { color: var(--navy-dark); }
.logo__mark { width: 54px; height: 54px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__title { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; letter-spacing: .01em; }
.logo__title b { color: var(--gold); font-weight: 700; }
.logo__sub { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 11px;
  font-size: .92rem; font-weight: 700;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
  background: none; border: 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--navy); }
.nav__link:hover::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link .icon { width: 14px; height: 14px; transition: transform .25s; }
.nav__item--dropdown:hover .nav__link .icon, .nav__item--dropdown.is-open .nav__link .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__item--dropdown:hover .dropdown, .nav__item--dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px; font-size: .92rem; color: var(--ink);
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }
.dropdown a small { color: var(--gold); font-weight: 700; min-width: 42px; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang button {
  border: 0; background: none; font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang button.is-active { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); box-shadow: 0 2px 8px rgba(201, 162, 39, .45); }
/* пока применяется сохранённый язык (не русский), страница скрыта — без мелькания текста */
.i18n-loading body { visibility: hidden; }
.lang button:not(.is-active):hover { color: var(--navy); }

.header__ticket { padding: .7em 1.2em; font-size: .88rem; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  align-items: center; justify-content: center; margin-left: auto;
}
.burger .icon { width: 24px; height: 24px; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 100px 0; position: relative; }
.section--white { background: #fff; }
.section--cream { background: var(--cream); }
.section--navy {
  background: radial-gradient(ellipse at top, var(--navy-soft), var(--navy-dark) 60%, var(--navy-deep));
  color: rgba(255,255,255,.85);
  overflow: hidden;
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .08; pointer-events: none;
}
.section--navy.section--pattern::before { opacity: .12; }
.section > .container { position: relative; }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: rgba(255,255,255,.7); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head--left .eyebrow::before { display: none; }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 18px auto 0; }
.divider::before, .divider::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 20px; height: 20px; fill: currentColor; }
.section-head--left .divider { justify-content: flex-start; }
.section-head--left .divider::before { display: none; }

/* ==========================================================================
   HERO SLIDER (главная)
   ========================================================================== */
.hero { position: relative; height: min(88vh, 780px); min-height: 560px; overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12); transition: transform 7s ease-out;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,53,.92) 0%, rgba(8,12,53,.65) 45%, rgba(8,12,53,.1) 100%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero__text { max-width: 640px; }
.hero__text > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__text > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__text > *:nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__text > *:nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__text > *:nth-child(4) { transition-delay: .45s; }
.hero h1, .hero h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: .35em; }
.hero h1 em, .hero h2 em { color: var(--gold-light); font-style: italic; }
.hero__verse {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 0 0 32px;
  font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.45;
}
.hero__verse .uz { font-style: italic; color: var(--gold-light); display: block; margin-bottom: 6px; }
.hero__verse .ru { color: rgba(255,255,255,.85); font-size: 1.12rem; display: block; }
.hero__verse cite { display: block; font-family: var(--font-sans); font-style: normal; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 10px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 40px;
}
.hero__controls .container { display: flex; align-items: center; gap: 22px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 46px; height: 4px; border: 0; padding: 0; border-radius: 4px;
  background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.hero__dot span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span { animation: dotfill var(--slide-time, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active span { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__counter { font-family: var(--font-serif); font-size: 1.2rem; color: rgba(255,255,255,.7); }
.hero__counter b { color: var(--gold-light); font-size: 1.6rem; }
.hero__arrows { margin-left: auto; display: flex; gap: 10px; }
.hero__arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff;
  display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s;
}
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.hero__arrow .icon { width: 22px; height: 22px; }
.hero__ornament {
  position: absolute; z-index: 3; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  opacity: .07; pointer-events: none; animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ==========================================================================
   PAGE HERO (внутренние страницы)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  padding: 90px 0 80px;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  color: rgba(255,255,255,.82);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .13; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero__lead { max-width: 680px; font-size: 1.12rem; }
.page-hero__verse {
  margin-top: 26px; max-width: 620px;
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--gold-light);
  padding-left: 18px; border-left: 2px solid var(--gold);
}
.page-hero__verse small { display: block; font-family: var(--font-sans); font-style: normal; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 6px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; margin-bottom: 18px; color: rgba(255,255,255,.6); }
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero__arches { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--pattern-arch) repeat-x bottom; opacity: .5; }

/* Sticky sub-navigation (anchors) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.subnav__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted);
  border: 1px solid transparent; transition: all .2s;
}
.subnav a:hover { color: var(--navy); border-color: var(--line); }
.subnav a.is-active { background: var(--navy); color: #fff; }

/* ==========================================================================
   MEDIA placeholders (иллюстрации)
   ========================================================================== */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  color: var(--gold-light);
  border-radius: var(--radius);
}
.media::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .22; transition: transform 6s linear; }
.media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(230,198,90,.28), transparent 60%); }
.media__icon { position: relative; z-index: 1; width: 34%; height: auto; max-width: 110px; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.media__label {
  position: absolute; z-index: 2; left: 14px; top: 14px;
  background: var(--gold); color: var(--navy-deep); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.media__glyph { position: absolute; z-index: 1; right: 8%; bottom: -8%; font-family: var(--font-serif); font-size: 9rem; color: rgba(255,255,255,.07); line-height: 1; }
.media--gold { background: linear-gradient(135deg, #d6b247, #8a6a12); color: #fff8dc; }
.media--gold::before { filter: brightness(3); opacity: .18; }
.media--teal { background: linear-gradient(135deg, #1f6f78, #0b3440); }
.media--ruby { background: linear-gradient(135deg, #8e2440, #3c0c20); }
.media--emerald { background: linear-gradient(135deg, #1e6b4d, #0a2c22); }
.media--violet { background: linear-gradient(135deg, #4a2c8a, #1b0f3f); }
.media--sand { background: linear-gradient(135deg, #b4875a, #5b3b1e); }
.media--img { background-size: cover; background-position: center; }
.media--img::before { opacity: 0; }

/* ==========================================================================
   ABOUT SPLIT (главная)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--rev > :first-child { order: 2; }
.about-visual { position: relative; }
.about-visual .media { aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-visual__badge {
  position: absolute; right: -24px; bottom: 40px; z-index: 3;
  background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold); text-align: center;
}
.about-visual__badge b { display: block; font-family: var(--font-serif); font-size: 3rem; color: var(--navy); line-height: 1; }
.about-visual__badge span { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.about-visual__frame { position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.feature-list { display: grid; gap: 16px; margin: 26px 0 34px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .feature-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--cream-dark); color: var(--navy);
}
.feature-list b { display: block; color: var(--navy-dark); }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   COUNTERS
   ========================================================================== */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.counter {
  text-align: center; padding: 34px 18px; position: relative;
  border: 1px solid rgba(201,162,39,.35); border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  transition: transform .3s var(--ease), background .3s;
}
.counter:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.counter .icon { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 14px; }
.counter__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; color: #fff; line-height: 1; }
.counter__num sup { font-size: .5em; color: var(--gold-light); }
.counter__label { margin-top: 10px; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ==========================================================================
   CARDS
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card .media { border-radius: 0; aspect-ratio: 16/10; }
.card:hover .media__icon { transform: scale(1.1) rotate(-4deg); }
.card:hover .media::before { transform: scale(1.15); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta .icon { color: var(--gold); width: 15px; height: 15px; }
.card__title { font-size: 1.4rem; margin-bottom: 10px; }
.card__title a { color: var(--navy-dark); }
.card__title a:hover { color: var(--gold); }
.card__text { color: var(--muted); font-size: .96rem; flex: 1; }
.card__footer { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--cream-dark); color: var(--navy);
}
.tag--gold { background: var(--gold-pale); color: #7a5d05; }

.news-date {
  position: absolute; z-index: 2; right: 14px; top: 14px;
  background: #fff; color: var(--navy); border-radius: 8px; text-align: center; padding: 6px 12px; line-height: 1.1;
  box-shadow: var(--shadow-sm);
}
.news-date b { display: block; font-family: var(--font-serif); font-size: 1.6rem; }
.news-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Hall mini cards (главная) */
.hall-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 280px; display: flex; }
.hall-card .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hall-card .media__icon { width: 90px; transform: translateY(-40px); }
.hall-card__body {
  position: relative; z-index: 2; margin-top: auto; padding: 24px; width: 100%;
  background: linear-gradient(transparent, rgba(8,12,53,.95));
}
.hall-card__num { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.hall-card h3 { color: #fff; font-size: 1.35rem; margin: 6px 0 0; }
.hall-card:hover { color: #fff; }
.hall-card:hover .media__icon { transform: translateY(-50px) scale(1.12); }

/* ==========================================================================
   TICKETS
   ========================================================================== */
.price-card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 38px 30px 34px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
  overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--pattern-band) repeat-x, var(--navy);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card--featured { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: rgba(255,255,255,.8); border-color: var(--navy); }
.price-card--featured h3 { color: #fff; }
.price-card--featured .price-card__price { color: var(--gold-light); }
.price-card__ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-dark); color: var(--navy); }
.price-card--featured .price-card__ico { background: rgba(201,162,39,.18); color: var(--gold-light); }
.price-card__ico .icon { width: 28px; height: 28px; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.price-card__note { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.price-card--featured .price-card__note { color: rgba(255,255,255,.6); }
.price-card__price { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: var(--navy); line-height: 1; margin: 20px 0 6px; }
.price-card__price small { font-family: var(--font-sans); font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-card--featured .price-card__price small { color: rgba(255,255,255,.6); }
.ribbon {
  position: absolute; top: 20px; right: -38px; transform: rotate(45deg);
  background: var(--gold); color: var(--navy-deep); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 44px;
}
.tickets-cta {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 34px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--gold);
}
.tickets-cta__info { display: flex; gap: 32px; flex-wrap: wrap; }
.tickets-cta__info div { display: flex; align-items: center; gap: 12px; }
.tickets-cta__info .icon { width: 28px; height: 28px; color: var(--gold); }
.tickets-cta__info b { display: block; color: var(--navy-dark); }
.tickets-cta__info span { font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   VERSE / QUOTES
   ========================================================================== */
.verse-band { text-align: center; padding: 90px 0; position: relative; }
.verse-band > .container { position: relative; }
.verse-band__mark { width: 70px; height: 70px; margin: 0 auto 22px; color: var(--gold); }
.verse {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.4; max-width: 900px; margin: 0 auto;
  font-style: italic; color: #fff;
}
.verse__uz { display: block; color: var(--gold-light); margin-bottom: 14px; }
.verse__ru { display: block; font-size: .78em; color: rgba(255,255,255,.85); }
.verse__cite { display: block; margin-top: 22px; font-family: var(--font-sans); font-style: normal; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.verse-rotator { position: relative; min-height: 230px; }
.verse-rotator .verse { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(14px); transition: opacity .9s, transform .9s var(--ease); }
.verse-rotator .verse.is-active { opacity: 1; transform: none; position: relative; }

.quote-inline {
  margin: 34px 0; padding: 26px 30px 26px 34px; position: relative;
  background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--navy-dark); line-height: 1.45;
}
.quote-inline::before {
  content: "“"; position: absolute; right: 18px; top: -18px; font-size: 7rem; color: var(--gold); opacity: .25; font-family: var(--font-serif); line-height: 1;
}
.quote-inline .uz { display: block; color: #7a5d05; margin-bottom: 6px; }
.quote-inline cite { display: block; margin-top: 10px; font-family: var(--font-sans); font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section--white .quote-inline { background: var(--cream); }
.section--cream .quote-inline { background: #fff; }

/* ==========================================================================
   CONTACTS BLOCK + MAP
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: stretch; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.contact-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-item__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); flex-shrink: 0; }
.contact-item__ico .icon { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--navy-dark); font-weight: 700; }
.contact-item a { color: var(--navy-dark); }
.contact-item a:hover { color: var(--gold); }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px;
  box-shadow: var(--shadow); border: 4px solid #fff; background: var(--cream-dark);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px;
  font-size: .88rem; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.map__badge .icon { color: var(--gold); }
.map__badge a { color: var(--gold-light); font-weight: 700; }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.timeline { position: relative; max-width: 960px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), var(--navy)); transform: translateX(-50%); }
.timeline__item { position: relative; width: 50%; padding: 0 50px 50px 0; }
.timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 50px 50px; }
.timeline__item::before {
  content: ""; position: absolute; top: 8px; right: -11px; width: 22px; height: 22px; transform: rotate(45deg);
  background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold);
}
.timeline__item:nth-child(even)::before { right: auto; left: -11px; }
.timeline__card { background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.timeline__year { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.timeline__card h3 { font-size: 1.35rem; }
.timeline__card p { color: var(--muted); margin: 0; font-size: .96rem; }

.dept-card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.dept-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; background: var(--pattern-star); opacity: .25; border-radius: 50%; }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dept-card__ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--gold-light); margin-bottom: 20px; }
.dept-card__ico .icon { width: 28px; height: 28px; }
.dept-card h3 { font-size: 1.4rem; }
.dept-card p { color: var(--muted); font-size: .96rem; }
.dept-card ul { display: grid; gap: 6px; font-size: .92rem; }
.dept-card li { display: flex; gap: 8px; }
.dept-card li::before { content: "◆"; color: var(--gold); font-size: .7rem; margin-top: .35em; }

.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 56px; }
.org-node { background: var(--navy); color: #fff; padding: 14px 26px; border-radius: 10px; font-weight: 700; text-align: center; box-shadow: var(--shadow-sm); }
.org-node--gold { background: var(--gold); color: var(--navy-deep); }
.org-line { width: 2px; height: 26px; background: var(--gold); }
.org-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; padding-top: 26px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: var(--gold); }
.org-row .org-node { background: #fff; color: var(--navy); border: 1px solid var(--line); font-size: .9rem; position: relative; }
.org-row .org-node::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--gold); }

.leader {
  display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center;
  background: #fff; border-radius: calc(var(--radius) * 1.4); padding: 44px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.leader__photo {
  aspect-ratio: 3/4; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep)); display: grid; place-items: center;
}
.leader__photo::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .2; }
.leader__photo svg { position: relative; width: 62%; color: var(--gold-light); }
.leader__initials { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: .3em; color: var(--gold-light); }
.leader__role { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.leader h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 8px 0 6px; }
.leader__degree { color: var(--muted); margin-bottom: 20px; }
.leader__contacts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.leader__contacts span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-dark); }
.leader__contacts .icon { color: var(--gold); }
.staff-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.staff { background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.staff__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-dark); display: grid; place-items: center; color: var(--navy); flex-shrink: 0; }
.staff b { display: block; color: var(--navy-dark); font-size: .98rem; line-height: 1.3; }
.staff span { font-size: .85rem; color: var(--muted); }

/* Заметный блок прикреплённого PDF в детальных карточках */
.pdf-block {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 24px 0; padding: 18px 20px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--gold);
}
.pdf-block__ico {
  width: 42px; height: 50px; border-radius: 5px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: .66rem; font-weight: 700; flex-shrink: 0;
}
.pdf-block__text { flex: 1; min-width: 160px; font-weight: 700; color: var(--navy-dark); }
.pdf-block__btn { flex-shrink: 0; }

.docs { display: grid; gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease);
}
.doc:hover { border-color: var(--gold); transform: translateX(6px); }
.doc__ico { width: 50px; height: 58px; border-radius: 6px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; position: relative; }
.doc__ico::after { content: ""; position: absolute; right: 0; top: 0; border: 8px solid; border-color: var(--cream) var(--cream) var(--gold) var(--gold); }
.doc__body { flex: 1; }
.doc__body b { display: block; color: var(--navy-dark); }
.doc__body span { font-size: .86rem; color: var(--muted); }
.doc__dl { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); background: none; font-size: .86rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; transition: all .25s; }
.doc__dl svg, .doc__dl i { width: 18px; height: 18px; }
.doc:hover .doc__dl { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.doc--soon .doc__dl { color: var(--muted); }
.doc--soon:hover .doc__dl { background: none; border-color: var(--line); color: var(--muted); }
@media (max-width: 520px) {
  .doc { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .doc__body { min-width: 0; flex-basis: calc(100% - 64px); }
  .doc__dl { margin-left: 64px; }
}

.icom-badge { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius); background: var(--navy); color: rgba(255,255,255,.8); margin-top: 28px; }
.icom-badge b { color: var(--gold-light); font-family: var(--font-serif); font-size: 2rem; letter-spacing: .08em; }

/* ==========================================================================
   EXPOSITION PAGE
   ========================================================================== */
.hall { padding: 90px 0; scroll-margin-top: calc(var(--header-h) + 60px); }
.hall:nth-child(even) { background: #fff; }
.hall__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hall:nth-child(even) .hall__visual { order: 2; }
.hall__visual { position: relative; }
.hall__visual .media { aspect-ratio: 5/4; box-shadow: var(--shadow-lg); }
.hall__visual .media__icon { max-width: 150px; }
.hall__number {
  position: absolute; left: -18px; top: -18px; z-index: 3; width: 92px; height: 92px;
  display: grid; place-items: center; text-align: center; line-height: 1;
  background: var(--gold); color: var(--navy-deep); clip-path: polygon(50% 0, 64% 15%, 85% 15%, 85% 36%, 100% 50%, 85% 64%, 85% 85%, 64% 85%, 50% 100%, 36% 85%, 15% 85%, 15% 64%, 0 50%, 15% 36%, 15% 15%, 36% 15%);
}
.hall__number b { font-family: var(--font-serif); font-size: 2rem; display: block; }
.hall__number small { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hall__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.hall__thumbs .media { aspect-ratio: 1; border-radius: 10px; box-shadow: none; }
.hall__thumbs .media__icon { width: 40%; }
.hall__period { font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.hall h2 { margin-top: 6px; }
.exhibits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0; }
.exhibits li { display: flex; gap: 10px; font-size: .95rem; }
.exhibits li .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 4px; }
.authors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.authors span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; background: #fff; font-weight: 700; color: var(--navy); }
.hall:nth-child(even) .authors span { background: var(--cream); }

.halls-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.halls-nav a {
  padding: 18px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center;
  transition: all .25s var(--ease); color: var(--navy-dark);
}
.halls-nav a:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--navy-dark); }
.halls-nav b { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.halls-nav span { font-size: .82rem; line-height: 1.3; display: block; margin-top: 6px; }

/* ==========================================================================
   SCIENCE PAGE
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.check-list { display: grid; gap: 10px; margin: 20px 0; }
.check-list li { display: flex; gap: 10px; }
.check-list .icon { color: var(--gold); margin-top: 4px; }

.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.archive {
  background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); text-align: center;
  transition: transform .3s var(--ease), border-color .3s;
}
.archive:hover { transform: translateY(-5px); border-color: var(--gold); }
.archive__avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: var(--gold-light);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border: 3px solid var(--gold-pale);
}
.archive b { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy-dark); line-height: 1.2; }
.archive span { font-size: .84rem; color: var(--muted); }

.expeditions { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.uz-map { background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,39,.35); border-radius: var(--radius); padding: 20px; }
.uz-map svg { width: 100%; height: auto; }
.uz-map .region { fill: rgba(255,255,255,.07); stroke: rgba(230,198,90,.5); stroke-width: 1.5; }
.uz-map .pin { fill: var(--gold); }
.uz-map .pin-ring { fill: none; stroke: var(--gold); animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.uz-map text { fill: #fff; font-size: 13px; font-family: var(--font-sans); }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.exp-list { display: grid; gap: 16px; }
.exp-item { display: flex; gap: 18px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.exp-item__year { font-family: var(--font-serif); font-size: 1.8rem; color: var(--gold-light); font-weight: 700; line-height: 1; min-width: 70px; }
.exp-item b { color: #fff; display: block; }
.exp-item__year .icon, .pub__year .icon { width: 30px; height: 30px; }
.exp-item__year { min-width: 40px; }
.exp-item span { font-size: .92rem; }

.journal { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; }
.journal__cover {
  aspect-ratio: 3/4; border-radius: 6px 14px 14px 6px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: -12px 12px 0 var(--gold-pale), var(--shadow-lg);
  transform: perspective(900px) rotateY(-8deg); transition: transform .5s var(--ease);
}
.journal__cover:hover { transform: perspective(900px) rotateY(0); }
.journal__cover::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .15; }
.journal__cover::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent); }
.journal__cover > * { position: relative; }
.journal__cover small { letter-spacing: .2em; text-transform: uppercase; font-size: .66rem; color: var(--gold-light); }
.journal__cover h3 { color: #fff; font-size: 2.1rem; margin: 14px 0 0; }
.journal__cover .journal__emblem { margin: auto auto 18px; width: 110px; color: var(--gold); }
.journal__cover .journal__issue { border-top: 1px solid rgba(201,162,39,.5); padding-top: 12px; font-size: .8rem; color: rgba(255,255,255,.7); }
.pub-list { display: grid; gap: 12px; margin-top: 20px; }
.pub { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pub__year { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; color: var(--gold); min-width: 56px; }
.pub b { color: var(--navy-dark); display: block; line-height: 1.3; }
.pub span { font-size: .86rem; color: var(--muted); }

.partner { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.flag { width: 84px; height: 56px; margin: 0 auto 18px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.15); position: relative; overflow: hidden; }
.flag--ru { background: linear-gradient(#fff 0 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6%); border: 1px solid #ddd; }
.flag--ua { background: linear-gradient(#0057b7 0 50%, #ffd700 50%); }
.flag--tr { background: #e30a17; }
.flag--tr::before { content: ""; position: absolute; left: 20px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.flag--tr::after { content: ""; position: absolute; left: 27px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: #e30a17; }
.flag--jp { background: #fff; border: 1px solid #ddd; }
.flag--jp::before { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; border-radius: 50%; background: #bc002d; transform: translate(-50%, -50%); }
.partner h3 { font-size: 1.4rem; margin-bottom: 8px; }
.partner p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   NEWS PAGE
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--muted);
  transition: all .25s;
}
.filter:hover { color: var(--navy); border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.is-hidden { display: none; }
.card.is-entering { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.news-featured { display: grid; grid-template-columns: 1.3fr 1fr; background: #fff; border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 50px; }
.news-featured .media { border-radius: 0; aspect-ratio: auto; min-height: 380px; }
.news-featured .media__icon { max-width: 160px; }
.news-featured__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.news-featured h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--navy); }
.pagination button.is-active, .pagination button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.events { display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 26px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 26px;
  transition: background .3s, border-color .3s;
}
.event:hover { background: rgba(255,255,255,.09); border-color: var(--gold); }
.event__date { text-align: center; border-right: 1px solid rgba(201,162,39,.4); padding-right: 20px; }
.event__date b { display: block; font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold-light); line-height: 1; }
.event__date span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.event h3 { font-size: 1.35rem; margin-bottom: 6px; }
.event__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__meta .icon { color: var(--gold); width: 15px; height: 15px; }

.exhibitions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.exhibition { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; color: #fff; }
.exhibition .media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.exhibition .media__icon { transform: translateY(-50px); }
.exhibition__body { position: relative; z-index: 2; margin-top: auto; padding: 26px; background: linear-gradient(transparent, rgba(8,12,53,.95) 40%); width: 100%; }
.exhibition h3 { color: #fff; font-size: 1.4rem; margin: 8px 0; }
.exhibition p { font-size: .9rem; color: rgba(255,255,255,.75); margin: 0; }
.exhibition__status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: var(--gold); color: var(--navy-deep); }
.exhibition__status--soon { background: #fff; color: var(--navy); }

.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border-radius: calc(var(--radius) * 1.4); padding: 44px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.subscribe__form { display: flex; gap: 10px; }
.subscribe__form input { flex: 1; }

/* ==========================================================================
   VISIT PAGE
   ========================================================================== */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -60px; position: relative; z-index: 3; }
.info-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); display: flex; gap: 16px; }
.info-card__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--cream-dark); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.info-card__ico .icon { width: 26px; height: 26px; }
.info-card b { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy-dark); }
.info-card span { color: var(--muted); font-size: .94rem; }

.hours { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hours__head { background: var(--navy); color: #fff; padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hours__head h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ea3c9; }
.status-pill.is-open::before { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.status-pill.is-closed::before { background: #f87171; }
.hours table { width: 100%; border-collapse: collapse; }
.hours td { padding: 13px 26px; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy-dark); }
.hours tr.is-off td:last-child { color: #c0392b; }
.hours tr.is-today { background: var(--gold-pale); }
.hours tr.is-today td:first-child::after { content: attr(data-today); margin-left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 4px; }
.hours__note { padding: 14px 26px; font-size: .86rem; color: var(--muted); background: var(--cream); }

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-table th { background: var(--navy); color: #fff; text-align: left; padding: 16px 22px; font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }
.price-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-table .free { color: #1e8a4c !important; }
.price-table small { display: block; color: var(--muted); font-size: .84rem; }

.order { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.order__form { background: #fff; border-radius: calc(var(--radius) * 1.4); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.order__step { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; }
.order__step:first-child { margin-top: 0; }
.order__step b { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.2rem; }
.order__step h3 { margin: 0; font-size: 1.35rem; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ticket-row b { color: var(--navy-dark); display: block; }
.ticket-row span { font-size: .88rem; color: var(--muted); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.stepper button { width: 38px; height: 38px; border: 0; background: var(--cream); font-size: 1.2rem; font-weight: 700; color: var(--navy); transition: background .2s; }
.stepper button:hover { background: var(--gold-pale); }
.stepper input { width: 44px; text-align: center; border: 0; font-weight: 700; background: #fff; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order__summary {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: rgba(255,255,255,.82); border-radius: calc(var(--radius) * 1.4); padding: 32px; overflow: hidden;
}
.order__summary::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .08; }
.order__summary > * { position: relative; }
.order__summary h3 { color: #fff; }
.summary-lines { display: grid; gap: 10px; margin: 18px 0; min-height: 40px; font-size: .95rem; }
.summary-lines div { display: flex; justify-content: space-between; gap: 10px; }
.summary-lines .empty { color: rgba(255,255,255,.5); font-style: italic; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; border-top: 1px dashed rgba(201,162,39,.5); margin-bottom: 22px; }
.summary-total b { font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold-light); }
.summary-date { display: flex; gap: 10px; align-items: center; font-size: .9rem; padding: 12px 14px; background: rgba(255,255,255,.06); border-radius: 10px; }
.summary-date .icon { color: var(--gold); }
.order__secure { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 16px; }

.excursion { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.excursion:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.excursion__ico { width: 56px; height: 56px; border-radius: 14px; background: var(--cream-dark); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.excursion__ico .icon { width: 26px; height: 26px; }
.excursion h3 { font-size: 1.35rem; }
.excursion p { color: var(--muted); font-size: .94rem; flex: 1; }
.excursion__meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.excursion__meta b { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); }

.route { display: grid; gap: 16px; }
.route__item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.route__badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; font-weight: 700; }
.route__badge--metro { background: #1f5fbf; font-family: var(--font-serif); font-size: 1.6rem; }
.route__badge--bus { background: #1e8a4c; }
.route__badge--car { background: var(--gold); color: var(--navy-deep); }
.route__badge--walk { background: var(--navy); }
.route__item b { display: block; color: var(--navy-dark); }
.route__item span { font-size: .92rem; color: var(--muted); }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.rules li { display: flex; gap: 10px; font-size: .95rem; }
.rules .icon { color: var(--gold); margin-top: 3px; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--navy-dark); }
.field label i { color: #c0392b; font-style: normal; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid #dcdfee; background: #fdfdfb;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(26,35,126,.1); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.08); }
.field__error { font-size: .8rem; color: #c0392b; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 3px; flex-shrink: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; padding: 12px; border-radius: 10px; border: 1.5px solid #dcdfee; text-align: center; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.radio-card span small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.radio-card input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.radio-card input:checked + span small { color: rgba(255,255,255,.7); }
.radio-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.contact-form { background: #fff; border-radius: calc(var(--radius) * 1.4); padding: 44px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.contact-card__ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--gold-light); box-shadow: 0 0 0 6px var(--cream-dark); }
.contact-card__ico .icon { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-card a { color: var(--navy-dark); font-weight: 700; }
.contact-card a:hover { color: var(--gold); }
.dept-contacts { display: grid; gap: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.dept-contacts div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.dept-contacts div:last-child { border-bottom: 0; }
.dept-contacts b { color: var(--navy-dark); white-space: nowrap; }
.socials-big { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.socials-big a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; }
.socials-big a:hover { border-color: var(--gold); color: var(--navy); }

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.faq summary { padding: 18px 22px; font-weight: 700; color: var(--navy-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(8,12,53,.7); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; background: #fff; border-radius: calc(var(--radius) * 1.4); max-width: 480px; width: 100%; padding: 44px 36px 36px; text-align: center; transform: translateY(20px) scale(.96); transition: transform .35s var(--ease); overflow: hidden; }
.modal.is-open .modal__box { transform: none; }
.modal__box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--pattern-band) repeat-x, var(--navy); }
.modal__close { position: absolute; right: 14px; top: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); color: var(--navy); display: grid; place-items: center; }
.modal__ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; background: var(--gold-pale); color: #7a5d05; display: grid; place-items: center; }
.modal__ico .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.modal h3 { font-size: 1.9rem; }
.modal p { color: var(--muted); }
.modal__code { display: inline-block; font-family: monospace; font-size: 1.2rem; letter-spacing: .15em; padding: 8px 16px; border: 2px dashed var(--gold); border-radius: 8px; color: var(--navy); margin-bottom: 18px; }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 400; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; background: var(--navy-deep); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; transition: all .35s var(--ease); border-left: 4px solid var(--gold); max-width: calc(100% - 32px); font-size: .95rem; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: var(--gold); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .06; pointer-events: none; }
.footer__arches { height: 22px; background: var(--pattern-arch) repeat-x; opacity: .6; }
.footer__main { position: relative; padding: 70px 0 50px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 44px; }
.footer .logo { color: #fff; margin-bottom: 20px; }
.footer .logo__sub { color: rgba(255,255,255,.5); }
.footer p { font-size: .94rem; }
.footer h4 { color: #fff; font-size: 1.35rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px; background: var(--gold); }
.footer__links { display: grid; gap: 9px; }
.footer__links a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.footer__links a::before { content: "◆"; font-size: .55rem; color: var(--gold); transition: transform .25s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__links a:hover::before { transform: rotate(90deg); }
.footer__contacts { display: grid; gap: 14px; font-size: .94rem; }
.footer__contacts li { display: flex; gap: 12px; }
.footer__contacts .icon { color: var(--gold); margin-top: 4px; }
.footer__contacts a { color: rgba(255,255,255,.85); }
.footer__contacts a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(201,162,39,.4); color: var(--gold-light); transition: all .25s; }
.socials a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.footer__verse { margin-top: 24px; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--gold-light); border-left: 2px solid var(--gold); padding-left: 14px; }
.footer__verse small { display: block; font-family: var(--font-sans); font-style: normal; font-size: .75rem; color: rgba(255,255,255,.45); margin-top: 4px; letter-spacing: .1em; text-transform: uppercase; }
.footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .86rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,.6); }
.footer__bottom a:hover { color: var(--gold-light); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal--left { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
.reveal--zoom { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   ДИНАМИЧЕСКИЙ КОНТЕНТ (из localStorage / CMS)
   ========================================================================== */
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .8s var(--ease); }
.media--photo { background: var(--navy-deep); }
.media--photo::before, .media--photo .media__icon { display: none; }
.media--photo::after { z-index: 1; background: linear-gradient(180deg, rgba(8,12,53,.25), transparent 40%); }
.card:hover .media__img { transform: scale(1.06); }
.media .news-date, .media .media__label { z-index: 3; }

.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .icon { width: 36px; height: 36px; color: var(--gold); }
.empty-state p { margin: 0; }
.empty-note { grid-column: 1 / -1; color: rgba(255,255,255,.7); font-style: italic; margin: 0; }

.modal__box--wide { max-width: 760px; max-height: calc(100vh - 40px); overflow-y: auto; text-align: left; }
.modal-article { text-align: left; }
.modal-article__img { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius-sm); margin: 10px 0 18px; }
.modal-article h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 6px; padding-right: 30px; }
.modal-article p { color: var(--ink); }
.modal-article .modal-article__uz { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: #7a5d05; margin-top: -6px; }

.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.issue { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .3s var(--ease), box-shadow .3s; }
.issue:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.issue__cover {
  position: relative; flex-shrink: 0; width: 110px; aspect-ratio: 3/4; border-radius: 4px 10px 10px 4px; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 12px 10px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: -5px 5px 0 var(--gold-pale);
}
.issue__cover::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .18; }
.issue__cover > * { position: relative; }
.issue__cover small { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.issue__cover b { font-family: var(--font-serif); font-size: 1.9rem; color: var(--gold-light); line-height: 1; }
.issue__cover span { font-size: .75rem; color: rgba(255,255,255,.7); }
.issue__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.issue__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.issue__body h3 { font-size: 1.35rem; margin-bottom: 2px; }
.issue__meta { font-size: .82rem; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.issue__body p { font-size: .9rem; color: var(--muted); flex: 1; }
.issue__nopdf { background: var(--cream-dark); color: var(--muted); cursor: default; }
.issue__nopdf:hover { transform: none; }

.hall-items { margin-top: 26px; }
.hall-items__title { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.hall-items__title .icon { color: var(--gold); width: 18px; height: 18px; }
.hall-items__grid { display: grid; gap: 12px; }
.exhibit { display: flex; gap: 14px; align-items: flex-start; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.hall:nth-child(even) .exhibit { background: var(--cream); }
.exhibit__img { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--gold-light); }
.exhibit__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.exhibit b { color: var(--navy-dark); display: block; line-height: 1.3; }
.exhibit__year { display: inline-block; margin-top: 3px; font-size: .75rem; font-weight: 700; color: #7a5d05; background: var(--gold-pale); padding: 1px 8px; border-radius: 4px; }
.exhibit p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 1100px) { .issues { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .issues { grid-template-columns: 1fr; } .issue__cover { width: 90px; } }

/* ==========================================================================
   РАЗДЕЛЫ (sections.html)
   ========================================================================== */
.sec-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3);
  box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 30px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.sec-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.sec-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,.45); }
.sec-card:hover::after { transform: scaleX(1); }
.sec-card__top {
  position: relative; height: 210px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, var(--navy-soft), var(--navy-deep));
}
.sec-card__top::before { content: ""; position: absolute; inset: 0; background: var(--pattern-star); opacity: .2; transition: transform 6s linear; }
.sec-card__top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(230,198,90,.3), transparent 62%); }
.sec-card:hover .sec-card__top::before { transform: scale(1.18) rotate(4deg); }
.sec-card--ruby .sec-card__top { background: linear-gradient(145deg, #8e2440, #3c0c20); }
.sec-card--teal .sec-card__top { background: linear-gradient(145deg, #1f6f78, #0b3440); }
.sec-card__ico {
  position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-light);
  background: rgba(255,255,255,.06); border: 2px solid rgba(230,198,90,.55);
  box-shadow: 0 0 0 10px rgba(230,198,90,.08);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.sec-card__ico .icon { width: 48px; height: 48px; stroke-width: 1.4; }
.sec-card:hover .sec-card__ico { transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 0 16px rgba(230,198,90,.12); }
.sec-card__num {
  position: absolute; z-index: 2; left: 18px; top: 16px;
  font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; line-height: 1; color: rgba(230,198,90,.35);
}
.sec-card__body { flex: 1; display: flex; flex-direction: column; padding: 28px 28px 32px; }
.sec-card__body h2 { font-size: 1.9rem; margin-bottom: 10px; }
.sec-card__body p { color: var(--muted); flex: 1; margin-bottom: 24px; }
.sec-card__body .btn { align-self: flex-start; }
.sec-card__body .btn .icon { transition: transform .3s var(--ease); }
.sec-card__body .btn:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   НОВОСТИ: список объявлений (news.html)
   ========================================================================== */
.announce-list { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.announce {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.announce:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.announce__date { text-align: center; line-height: 1.1; padding-right: 20px; border-right: 1px solid var(--line); }
.announce__date b { display: block; font-family: var(--font-serif); font-size: 2.3rem; color: var(--navy); }
.announce__date span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.announce__date small { font-size: .75rem; color: var(--muted); }
.announce__body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.announce__body h3 a { color: var(--navy-dark); }
.announce__body h3 a:hover { color: var(--gold); }
.announce__body p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) {
  .announce { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .announce__date { text-align: left; border-right: 0; padding-right: 0; display: flex; align-items: baseline; gap: 8px; }
  .announce__date b { font-size: 1.8rem; }
  .announce__btn { justify-self: start; }
  .sec-card__top { height: 180px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Шапка: пункты меню разной длины на УЗ / РУ / EN не переносятся на две строки */
.nav__link { white-space: nowrap; }
.header .container { max-width: 1440px; }
@media (max-width: 1500px) {
  .nav__link { padding: 10px 8px; font-size: .88rem; }
  .nav__link::after { left: 8px; right: 8px; }
  .nav__list { gap: 0; }
  .logo__title { font-size: 1.4rem; }
  .logo__sub { display: none; }
  .header__inner { gap: 14px; }
}
/* узкие ноутбуки: кнопка «Купить билет» — только иконка (подпись остаётся в aria/title) */
@media (max-width: 1365px) and (min-width: 1281px) {
  .header__ticket { width: 46px; height: 46px; padding: 0; }
  .header__ticket span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1280px) {
  :root { --header-h: 74px; }
  .burger { display: flex; }
  .header__inner { gap: 12px; }
  .header__ticket { margin-left: auto; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 200;
    background: #fff; padding: 90px 22px 30px; overflow-y: auto; margin: 0;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--navy-deep) var(--pattern-band) repeat-x center; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 15px 6px; font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__item.is-active > .nav__link { color: var(--gold); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; min-width: 0; display: none; }
  .nav__item--dropdown:hover .dropdown { display: none; }
  .nav__item--dropdown.is-open .dropdown { display: block; }
  .nav__item--dropdown:hover .nav__link .icon { transform: none; }
  .nav__item--dropdown.is-open .nav__link .icon { transform: rotate(180deg); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(8,12,53,.55); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .nav__close { position: absolute; right: 18px; top: 30px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; }
  .nav__mobile-extra { display: block !important; margin-top: 24px; }
  .header__inner > .lang { display: none; }
  .topbar__verse { display: none; }
}
@media (max-width: 1100px) {
  .grid--4, .counters, .archive-grid, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .halls-nav { grid-template-columns: repeat(3, 1fr); }
  .order { grid-template-columns: 1fr; }
  .order__summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
.nav__close, .nav__mobile-extra { display: none; }
@media (max-width: 1280px) { .nav__close { display: grid; } }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .split, .hall__grid, .expeditions, .journal, .leader, .subscribe, .news-featured { grid-template-columns: 1fr; gap: 40px; }
  .split--rev > :first-child, .hall:nth-child(even) .hall__visual { order: 0; }
  .grid--3, .exhibitions, .staff-list, .info-cards { grid-template-columns: 1fr 1fr; }
  .about-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .about-visual__badge { right: 10px; }
  .journal__cover { max-width: 280px; margin: 0 auto; }
  .leader { padding: 30px; }
  .leader__photo { max-width: 280px; margin: 0 auto; width: 100%; }
  .timeline::before { left: 11px; }
  .timeline__item, .timeline__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 46px; }
  .timeline__item::before, .timeline__item:nth-child(even)::before { left: 0; right: auto; }
  .news-featured .media { min-height: 260px; }
  .hall { padding: 70px 0; }
  .hall__number { left: 10px; top: -20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .topbar { display: none; }
  #site-header { top: -16px; min-height: calc(var(--header-h) + 16px); }
  .logo__mark { width: 44px; height: 44px; }
  .logo__title { font-size: 1.25rem; }
  .header__ticket span { display: none; }
  .header__ticket { padding: .7em; width: 46px; height: 46px; }
  .hero { min-height: 600px; height: 92vh; }
  .hero__verse { font-size: 1.12rem; padding-left: 16px; }
  .hero__verse .ru { font-size: 1rem; }
  .hero__controls { bottom: 24px; }
  .hero__counter { display: none; }
  .hero__dot { width: 30px; }
  .hero__arrow { width: 44px; height: 44px; }
  .hero__ornament { display: none; }
  .hero__slide::after { background: linear-gradient(180deg, rgba(8,12,53,.72) 0%, rgba(8,12,53,.86) 60%, rgba(8,12,53,.95) 100%); }
  .org-row { flex-direction: column; align-items: center; gap: 12px; }
  .org-row::before { display: none; }
  .org-row .org-node::before { top: -12px; height: 12px; }
  .grid--2, .grid--3, .grid--4, .counters, .archive-grid, .contact-cards, .exhibitions, .staff-list, .info-cards, .stat-row, .form-grid, .rules, .exhibits { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .counter { padding: 24px 10px; }
  .counter__label { font-size: .72rem; letter-spacing: .06em; }
  .halls-nav { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr; gap: 36px; padding: 54px 0 36px; }
  .tickets-cta { padding: 22px; }
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event__date { border-right: 0; padding-right: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .order__form, .contact-form, .subscribe, .news-featured__body { padding: 26px 20px; }
  .subscribe__form { flex-direction: column; }
  .radio-cards { grid-template-columns: 1fr; }
  .ticket-row { flex-wrap: wrap; }
  .price-table th, .price-table td { padding: 14px; }
  .info-cards { margin-top: -40px; }
  .about-visual__badge { padding: 16px 18px; bottom: 20px; }
  .about-visual__badge b { font-size: 2.3rem; }
  .about-visual__frame { inset: 14px -10px -14px 14px; }
  .page-hero { padding: 64px 0 60px; }
  .leader { padding: 22px; }
  .doc { padding: 16px; gap: 12px; }
  .quote-inline { padding: 22px 20px; font-size: 1.15rem; }
  .map { min-height: 340px; }
}

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

/* ==========================================================================
   Бегущая строка (gorg'on xabarlar) — под верхней панелью, над шапкой
   ========================================================================== */
.ticker { background: var(--gold-pale); border-bottom: 1px solid rgba(201, 162, 39, .5); overflow: hidden; }
.ticker[hidden] { display: none; }
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker__label { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: var(--gold-light); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ticker__label .icon { width: 15px; height: 15px; }
.ticker__viewport { position: relative; flex: 1 1 auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker-slide 45s linear infinite; }
.ticker__row { display: flex; align-items: center; white-space: nowrap; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; color: var(--navy-dark); font-weight: 700; font-size: .92rem; }
a.ticker__item:hover { color: var(--navy); text-decoration: underline; }
.ticker__dot { display: inline-flex; color: var(--gold); }
.ticker__dot .icon { width: 12px; height: 12px; }
.ticker:hover .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__pause { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(26, 35, 126, .2); border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--navy); cursor: pointer; }
.ticker__pause:hover { background: #fff; border-color: var(--gold); }
.ticker.is-paused .ticker__pause { background: var(--navy); color: var(--gold-light); }
@keyframes ticker-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .ticker__label span { display: none; }
  .ticker__label { padding: 6px; }
  .ticker__pause { display: none; }
}

/* ==========================================================================
   Текстовые страницы из админки (архив, рукописи, экспозиция)
   ========================================================================== */
.cms h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); margin: 0 0 18px; }
.cms__body { max-width: 62ch; line-height: 1.75; color: var(--ink); }
.cms__body h2 { font-size: 1.6rem; margin: 26px 0 10px; }
.cms__body h3 { font-size: 1.25rem; margin: 22px 0 8px; color: var(--navy); }
.cms__body p { margin: 0 0 14px; }
.cms__body ul, .cms__body ol { margin: 0 0 14px; padding-left: 22px; }
.cms__body li { margin-bottom: 6px; }
.cms__body blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.cms__body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.cms__body a:hover { color: var(--gold); }
.cms__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.cms__gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cms__gallery img { display: block; width: 100%; height: 190px; object-fit: cover; }

/* Документ, PDF которого загружен в админке, выводится кнопкой — выравниваем со ссылками */
button.doc { width: 100%; font: inherit; text-align: left; cursor: pointer; }

/* Кнопка PDF в карточке новости */
.card__pdf { margin-left: auto; }
.modal-article__actions { margin: 4px 0 18px; }
.announce__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-self: start; }

/* ==========================================================================
   Докторантура — сетка карточек
   ========================================================================== */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.person:hover, .person:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.person__photo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(135deg, var(--cream-dark), var(--cream)); color: rgba(26, 35, 126, .28); }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__ico { width: 54px; height: 54px; }
.person__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.person__name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin: 0; }
.person__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.person__topic { margin: 0 0 10px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.person__body .link-arrow { margin-top: auto; }
.modal-article--person { text-align: left; }
.modal-article__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-pale); margin-bottom: 14px; }
