/* Модон барын баримтат өв 2026 — сайтын загвар
   Санаа: модон барын хэвлэлийн хуудас — цаасан дэвсгэр, бэхэн үсэг, тамганы улаан. */

:root {
  --ink: #1E1A17;
  --ink-2: #2A2420;
  --ink-soft: #CFC4B4;
  --ink-muted: #A89C8C;
  --paper: #F4EEE3;
  --paper-2: #EAE1D2;
  --card: #FBF8F2;
  --field: #FFFCF6;
  --line: #DCD2C2;
  --line-strong: #CFC4B4;
  --muted: #5A5048;
  --muted-2: #6E6357;
  --seal: #B5361F;
  --seal-dark: #962B17;
  --seal-light: #E0634A;
  --wood: #8A6A45;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', Arial, sans-serif;

  --radius: 8px;
  --header-h: 84px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
img.img-missing { visibility: hidden; }
a { color: var(--seal); text-underline-offset: 3px; }
a:hover { color: var(--seal-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.005em; }
h3 { font-size: 22px; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--paper); }

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
}
.eyebrow-on-dark { color: var(--seal-light); }
.muted { color: var(--muted); }

/* ---- Товчнууд ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 4px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-seal { background: var(--seal); color: var(--paper); }
.btn-seal:hover { background: var(--seal-dark); color: var(--paper); }
.btn-ghost { border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 17px; }
.btn-block { width: 100%; }

.tag {
  display: inline-block; flex: none;
  padding: 1px 10px; border: 1px solid var(--wood); border-radius: 4px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted);
}

/* ---- Толгой ---- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(244, 238, 227, 0.96);
  border-bottom: 3px double var(--line-strong);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand {
  display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; max-width: 600px;
  padding: 10px 0 10px 16px; border-left: 5px double var(--seal);
  text-decoration: none; color: var(--ink);
}
.brand-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; text-indent: -0.36em; transition: color .15s; }
.brand-sub { font-family: var(--serif); font-size: 16px; font-style: italic; font-weight: 500; line-height: 1.3; color: var(--muted); }
.brand-kind { margin-top: 4px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; line-height: 1.35; letter-spacing: 0.13em; text-transform: uppercase; color: var(--seal); }
.brand .q { color: var(--seal); font-style: normal; }
.brand:hover { color: var(--ink); }
.brand:hover .brand-title { color: var(--seal-dark); }
.brand:hover { color: var(--ink); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--seal); color: var(--ink); }
.site-nav .lang-link { font-weight: 600; color: var(--muted); }
.btn-invite { border-color: var(--seal); color: var(--seal); background: transparent; min-height: 40px; padding: 7px 18px; }
.btn-invite:hover { background: var(--seal); color: var(--paper); }
.nav-toggle { display: none; }

/* ---- Нүүр хэсэг: хурлын албан ёсны баннер ---- */
.hero { background: var(--ink); color: var(--paper); }
.hero-inner { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; padding-bottom: 48px; }
.hero-banner { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid #3A322C; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); background: #3A322C; }
.hero-banner img { display: block; width: 100%; height: auto; }
/* Баннер дээр гарчиг, огноо бичигдсэн тул том дэлгэцэнд текстийг зөвхөн дэлгэц уншигчид үлдээнэ */
.hero-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.08; margin-bottom: 8px; text-wrap: balance; }
.hero-sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; color: var(--ink-soft); font-size: 16px; }
.hero-meta strong { color: var(--paper); font-weight: 600; }

/* ---- Товч баримт ---- */
.facts { background: var(--paper); border-bottom: 3px double var(--line-strong); }
.facts-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: none; padding-left: 0; }
.fact p { margin: 0; color: var(--muted); font-size: 16px; }
.fact .fact-big { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--seal); line-height: 1.2; margin-bottom: 4px; }

/* ---- Хэсгүүд ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.empty-note { padding: 28px; background: var(--card); border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); margin: 0; }

.venue-grid > * { min-width: 0; }
.prose p:last-child { margin-bottom: 0; }
.prose .invite { padding-left: 18px; border-left: 4px solid var(--seal); font-weight: 500; }

/* ---- Хөтөлбөр ---- */
.program-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tabs { display: flex; gap: 8px; }
.tab {
  min-height: 44px; padding: 8px 20px; cursor: pointer;
  border: 2px solid var(--line-strong); border-radius: 4px; background: var(--card);
  font-weight: 600; font-size: 16px;
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 36px; min-width: 44px; padding: 4px 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--card);
  font-size: 15px; font-weight: 500; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--wood); border-color: var(--wood); color: var(--paper); }
.chip:hover { border-color: var(--wood); }

.day-heading { font-family: var(--serif); font-size: 26px; margin: 8px 0 12px; }
.js .day-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .tabs, .no-js .chips { display: none; }
.no-js .day-panel + .day-panel { margin-top: 40px; }

.sessions { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.session {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 18px 24px; border-top: 1px solid var(--line);
}
.session:first-child { border-top: none; }
.session[hidden] { display: none; }
.s-time { margin: 0; font-weight: 600; color: var(--seal); font-variant-numeric: tabular-nums; }
.s-time span { color: var(--muted-2); font-weight: 400; }
.s-title { margin: 0; font-weight: 600; font-size: 19px; line-height: 1.35; }
.s-meta { margin: 2px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.s-speaker { margin: 8px 0 0; }
.s-speaker .link-button { font-weight: 600; font-size: 17px; text-align: left; }
.s-links { margin: 6px 0 0; font-size: 15px; }
.s-links a { font-weight: 600; text-decoration: none; }
.s-links a:hover { text-decoration: underline; }
.session.kind-section { display: block; padding: 18px 24px; background: #EFE5D3; border-left: 4px solid var(--seal); }
.session.kind-section[hidden] { display: none; }
.s-section-title { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.s-section-note { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.day-theme { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kind-break { background: rgba(234, 225, 210, 0.5); }
.kind-break .s-title { font-weight: 500; color: var(--muted); font-style: italic; }
.kind-ceremony .s-title, .kind-panel .s-title { font-family: var(--serif); font-size: 21px; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--wood); text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--seal); }
.filter-empty { margin-top: 12px; }

/* ---- Илтгэгчид ---- */
/* Илтгэгчдийн постерууд: хэвтээ гүйдэг карусель, постер бүтнээрээ */
.carousel { position: relative; }
.carousel-track {
  position: relative; display: grid; grid-auto-flow: column; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--wood) transparent;
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.carousel-track:focus-visible { outline-offset: 6px; }
.carousel-track > li { scroll-snap-align: start; min-width: 0; }
.carousel-track > li[hidden] { display: none; }
.speaker-track { grid-auto-columns: calc((100% - 48px) / 3); }
.speaker-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: zoom-in;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.speaker-card.has-poster { background: #3A2C22; border-color: #3A2C22; }
.speaker-card img { display: block; width: 100%; height: auto; aspect-ratio: 1021 / 1440; }
.speaker-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30, 26, 23, 0.22); }
@media (prefers-reduced-motion: reduce) { .speaker-card:hover { transform: none; } }
.carousel-btn {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--paper); font-size: 32px; line-height: 1;
  box-shadow: 0 8px 22px rgba(30, 26, 23, 0.3); transition: background-color .15s, opacity .15s;
}
.carousel-btn:hover { background: var(--seal); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-count { margin: 10px 0 0; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel-count:empty { display: none; }
.sp-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 1021 / 1240; background: #E3D9C8; font-family: var(--serif); font-size: 52px; font-weight: 600; color: var(--wood); }
.sp-text { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; }
.sp-name { font-weight: 600; font-size: 18px; line-height: 1.3; }
.sp-country, .sp-org { color: var(--muted); font-size: 16px; line-height: 1.4; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 3px double var(--wood); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.dialog::backdrop { background: rgba(30, 26, 23, 0.6); }
.dialog { overflow-y: auto; overscroll-behavior: contain; }
.dialog-close { z-index: 2; background: rgba(244, 238, 227, 0.92); }

/* ---- Модон барын ном зүй ---- */
.book-track { grid-auto-columns: calc((100% - 72px) / 4); }
.book-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: zoom-in;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--wood); box-shadow: 0 16px 34px rgba(30, 26, 23, 0.14); }
@media (prefers-reduced-motion: reduce) { .book-card:hover { transform: none; } }
.book-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; padding: 20px; background: #E6DCCB; border-bottom: 3px double var(--line-strong); }
.book-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 8px 18px rgba(30, 26, 23, 0.28); }
.book-placeholder { display: flex; align-items: center; justify-content: center; width: 72%; height: 92%; padding: 16px; text-align: center; background: var(--paper); border: 3px double var(--wood); font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--ink); box-shadow: 0 8px 18px rgba(30, 26, 23, 0.2); }
.book-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.book-meta { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--seal); }
.book-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-author { font-size: 15px; font-weight: 600; color: var(--ink); }
.book-desc { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-call { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.book-dialog { width: min(1000px, calc(100vw - 32px)); }
.book-dialog .dialog-inner { position: relative; }
.book-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.book-images { display: flex; flex-direction: column; gap: 12px; }
.book-images img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 26px rgba(30, 26, 23, 0.22); }
.book-info { min-width: 0; padding: 4px 36px 64px 0; }
.book-info h3 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.book-info .book-subtitle { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); margin-bottom: 14px; }
.book-info .book-author { font-size: 17px; margin-bottom: 10px; }
.book-info .book-full { color: var(--muted); }
.book-info .book-callno { display: inline-block; margin-top: 4px; padding: 4px 12px; border: 1px solid var(--wood); border-radius: 4px; font-size: 15px; color: var(--muted); }
.book-dialog .sp-nav { top: auto; bottom: 16px; transform: none; }
.book-dialog .sp-nav-prev { left: auto; right: 72px; }

/* ---- Зургийн сан: тасралтгүй урсдаг карусель ---- */
.gallery-section { background: var(--ink); color: var(--paper); overflow: hidden; }
.gallery-section h2 { color: var(--paper); }
.marquee-toggle {
  min-height: 40px; padding: 6px 16px; cursor: pointer;
  border: 1px solid #6B5A47; border-radius: 4px; background: transparent; color: var(--ink-soft);
  font-size: 15px; font-weight: 600;
}
.marquee-toggle:hover { border-color: var(--paper); color: var(--paper); }
.marquee {
  position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #6B5A47 transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; padding: 6px 0 18px; }
.marquee-track > li { flex: none; padding-inline-end: 18px; }
.marquee-item {
  display: block; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in;
  background: #2A2420; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.marquee-item img { display: block; height: 270px; width: auto; max-width: none; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s, filter .4s; }
.marquee-item:hover img { transform: scale(1.04); }
.marquee-item:focus-visible { outline: 3px solid var(--seal-light); outline-offset: 3px; }
/* JS идэвхтэй, хөдөлгөөн зөвшөөрөгдсөн үед: хоёр дахин давтсан мөр зүүн тийш тасралтгүй урсана */
.marquee.is-animated { overflow: hidden; }
.marquee.is-animated .marquee-track { animation: marquee calc(var(--count, 10) * 6s) linear infinite; }
.marquee.is-animated:hover .marquee-track,
.marquee.is-animated:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee.is-animated .marquee-track { animation: none; }
  .marquee-item img { transition: none; }
  .marquee-item:hover img { transform: none; }
}
.gallery-credit { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); text-align: right; }
.gallery-credit a { color: var(--paper); font-weight: 600; }
.gallery-dialog { width: min(1200px, calc(100vw - 32px)); background: var(--ink); border-color: #6B5A47; }
.gallery-dialog .dialog-inner { position: relative; padding: 16px; }
.gallery-figure { margin: 0; }
.gallery-full { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 4px; background: #000; }
.gallery-figure figcaption { display: flex; justify-content: flex-end; gap: 16px; padding: 12px 4px 2px; font-size: 15px; color: var(--ink-soft); }
.gallery-count { flex: none; font-variant-numeric: tabular-nums; }
.gallery-dialog .dialog-close { background: rgba(30, 26, 23, 0.85); color: var(--paper); }
.gallery-dialog .dialog-close:hover { background: var(--ink); color: var(--seal-light); }

/* ---- Урилга ---- */
.dialog-wide { width: min(1040px, calc(100vw - 32px)); }
.invite-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.invite-poster { margin: 0; position: sticky; top: 0; }
.invite-poster img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 32px rgba(30, 26, 23, 0.25); }
.invite-text { min-width: 0; padding-top: 4px; }
.invite-text h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; letter-spacing: 0.01em; margin: 0 40px 20px 0; text-wrap: balance; }
.invite-text .prose p { font-size: 17px; line-height: 1.7; }
.invite-text .prose .invite { margin-top: 8px; }
.invite-close { margin-top: 24px; }
.dialog-inner { position: relative; padding: 32px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 4px; }
.dialog-close:hover { color: var(--ink); background: var(--paper-2); }
.sp-dialog .dialog-inner { position: relative; }
.sp-dialog-poster { width: auto; max-width: calc(100vw - 32px); }
.sp-dialog-poster .dialog-inner { padding: 14px; }
.sp-dialog-poster .sp-full img { display: block; width: auto; max-width: 100%; height: min(1440px, calc(100vh - 80px)); height: min(1440px, calc(100dvh - 80px)); object-fit: contain; border-radius: 6px; }
.sp-dialog-wide { width: min(1000px, calc(100vw - 32px)); }
.sp-dialog-wide .sp-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.sp-dialog-wide .sp-full img { width: 100%; height: auto; border-radius: 6px; }
.sp-full { margin: 0; }
.sp-info { min-width: 0; padding-right: 36px; }
.sp-info h3 { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-bottom: 8px; }
.sp-info .sp-org { margin-bottom: 16px; }
.sp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(244, 238, 227, 0.92); color: var(--ink); font-size: 30px; line-height: 1; box-shadow: 0 4px 14px rgba(30, 26, 23, 0.25);
}
.sp-nav:hover { background: var(--paper); color: var(--seal); }
.sp-nav-prev { left: 22px; }
.sp-nav-next { right: 22px; }
.sp-dialog-wide .sp-nav { top: auto; bottom: 16px; transform: none; }
.sp-dialog-wide .sp-nav-prev { left: auto; right: 72px; }
.dialog h4 { margin: 24px 0 8px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--seal); }
.talk-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.talk-when { display: block; font-size: 15px; color: var(--muted); }

/* ---- Байршил ---- */
.venue-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.map-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: #E3D9C8; }
.map-frame svg { display: block; width: 100%; height: auto; }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
.venue-info h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; }
.venue-info p { margin-bottom: 8px; color: var(--muted); }
.venue-info a { font-weight: 500; }
.text-link { font-weight: 600; }

/* ---- Хөл ---- */
.site-footer { background: var(--ink); color: var(--ink-soft); padding: 56px 0 24px; font-size: 16px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--seal-light); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 0.8fr; gap: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-title { font-family: var(--serif); font-size: 24px; color: var(--paper); font-weight: 600; margin-bottom: 4px; }
.footer-h { font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--seal-light); margin-bottom: 12px; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3A322C; color: var(--ink-muted); font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---- Таблет ---- */
@media (max-width: 1020px) {
  .book-track { grid-auto-columns: calc((100% - 48px) / 3); }
  .site-nav { gap: 20px; }
  }

/* ---- Гар утас ---- */
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  body { font-size: 17px; }
  .header-inner { gap: 12px; }
  .brand { max-width: none; padding: 8px 0 8px 12px; border-left-width: 4px; }
  .brand-title { font-size: 17px; }
  .brand-sub { font-size: 14px; }
  .brand-kind { font-size: 11px; letter-spacing: 0.06em; margin-top: 2px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 4px; background: transparent; cursor: pointer; font-weight: 600; font-size: 15px;
  }
  .bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .bars span { display: block; width: 20px; height: 2px; background: var(--ink); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    background: var(--paper); border-bottom: 3px double var(--line-strong); box-shadow: 0 12px 24px rgba(30, 26, 23, 0.12);
  }
  .site-nav.open { display: flex; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 12px; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav .btn { margin-top: 14px; }
  .site-nav .btn-invite { margin: 8px 0 6px; }
  .hero-inner { gap: 20px; padding-top: 20px; padding-bottom: 32px; }
  .hero-banner { border-radius: 6px; }
  .facts-inner { grid-template-columns: 1fr; }
  .fact, .fact:first-child { border-left: none; border-top: 1px solid var(--line); padding: 18px 0; }
  .fact:first-child { border-top: none; }
  .section { padding: 64px 0; }
  .venue-grid { grid-template-columns: 1fr; gap: 24px; }
  .speaker-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .book-track { grid-auto-columns: calc((100% - 48px) / 3); }
  .book-detail { grid-template-columns: 1fr; gap: 20px; }
  .book-images { max-width: 420px; }
  .book-info { padding-right: 0; }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .hero-caption { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .speaker-track { grid-auto-columns: 80%; gap: 14px; }
  .marquee-item img { height: 190px; }
  .marquee-track > li { padding-inline-end: 12px; }
  .gallery-credit { text-align: left; }
  .book-track { grid-auto-columns: 70%; gap: 14px; }
  .carousel-btn { width: 44px; height: 44px; font-size: 28px; }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .session { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 18px; gap: 4px 16px; }
  .s-time { grid-column: 1 / -1; }
  .s-body { grid-column: 1; }
  .program-bar { flex-direction: column; align-items: stretch; }
  .tabs .tab { flex: 1; padding: 8px 10px; font-size: 15px; }
  .dialog-inner { padding: 24px 20px; }
  .invite-grid { grid-template-columns: 1fr; gap: 20px; }
  .invite-poster { position: static; width: min(100%, 380px); margin: 0 auto; }
  .invite-text h2 { margin-right: 0; }
  .sp-dialog-wide .sp-detail { grid-template-columns: 1fr; gap: 20px; }
  .sp-info { padding-right: 0; padding-bottom: 56px; }
  .sp-dialog-poster .sp-full img { width: 100%; height: auto; max-height: calc(100dvh - 80px); }
}

@media print {
  .site-header, .chips, .tabs { display: none !important; }
  .day-panel[hidden] { display: block !important; }
  .js .day-heading { position: static; width: auto; height: auto; clip: auto; }
  body { background: #fff; }
  .hero { background: #fff; color: var(--ink); }
}
