:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --fg: var(--brand-black);
  --fg-muted: #5c6470;
  --border: #e4e6ea;
  --link: var(--brand-blue-strong);
  --shadow: 0 1px 2px rgba(15, 15, 15, .06), 0 4px 16px rgba(15, 15, 15, .06);
  --shadow-hover: 0 2px 4px rgba(15, 15, 15, .08), 0 14px 34px rgba(15, 15, 15, .12);

  font-family: var(--font-body);
  color: var(--fg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #161618;
    --fg: #f1f1f2;
    --fg-muted: #a0a3aa;
    --border: #2a2b2f;
    --link: #7aaeff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 48px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Толгой — нүүр хуудастай ижил */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tagline {
  padding-left: 14px; border-left: 2px solid var(--brand-purple);
  font: 700 14px var(--font-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.back { display: inline-flex; align-items: center; gap: 4px; font: 600 14px var(--font-display); color: var(--fg-muted); }
.back:hover { color: var(--fg); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 4 үндсэн хэсгийн цэс */
.section-nav { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--border); }
.section-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav .container::-webkit-scrollbar { display: none; }
.section-nav a {
  padding: 14px 14px 11px; white-space: nowrap; border-bottom: 3px solid transparent;
  font: 700 13px var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted);
}
.section-nav a:hover { color: var(--fg); }
.section-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.section-nav .container { align-items: center; }
.section-nav a { display: inline-flex; align-items: center; gap: 7px; }

/* Оны шилдэгүүд — санал хураалттай тул цэсэнд онцгойлон харагдана */
.section-nav a.hot {
  margin: 7px 0 7px auto; padding: 8px 16px; border: 0; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), #ff8a3d 55%, var(--brand-yellow));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-orange) 40%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.section-nav a.hot:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-orange) 55%, transparent); }
.section-nav a.hot[aria-current="page"] { color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-orange) 30%, transparent), 0 4px 14px color-mix(in srgb, var(--brand-orange) 40%, transparent); }
.section-nav a.hot .icon { width: 16px; height: 16px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Хайлт, анхааруулга */
.toolbar { display: flex; margin-top: 22px; }
.toolbar input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 14.5px;
}
.toolbar input:focus { outline: 2px solid var(--brand-blue); border-color: transparent; }
.notice {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px;
  background: color-mix(in srgb, var(--brand-yellow) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-yellow) 55%, transparent);
}
.notice code { font-size: 12.5px; }
.placeholder { color: var(--fg-muted); font-size: 14px; margin: 4px 0 0; }

/* Хуудасны эхлэл — 4 хэсгийн карт */
.hero { padding: 36px 0 22px; }
.hero h1 { margin: 0 0 8px; font: 800 clamp(26px, 4.5vw, 38px)/1.15 var(--font-display); }
.hero p { margin: 0; color: var(--fg-muted); font-size: 15.5px; max-width: 660px; line-height: 1.55; }
.section-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.section-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.section-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.section-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.section-card h2 { margin: 6px 0 0; font: 700 16px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.section-card p { margin: 0; color: var(--fg-muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.section-card .meta { font: 600 12.5px var(--font-display); color: var(--fg-muted); }
.section-card.hot { color: #fff; border-color: transparent; background: linear-gradient(140deg, var(--brand-orange), #ff8a3d 60%, var(--brand-yellow)); }
.section-card.hot::before { display: none; }
.section-card.hot::after {
  content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -50px; bottom: -70px;
  background: rgba(255, 255, 255, .16); pointer-events: none;
}
.section-card.hot p { color: rgba(255, 255, 255, .92); }
.section-card.hot .meta { color: #fff; font-weight: 800; }
.section-card.hot .card-icon { background: #fff; color: var(--brand-orange); }
.section-card.hot:hover { border-color: transparent; }
.card-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--on-accent, #fff);
}
.card-icon .icon { width: 22px; height: 22px; }

/* Хэсгийн толгой, ангиллын шүүлтүүр */
.section-head { display: flex; gap: 16px; align-items: center; padding: 30px 0 6px; }
.section-head h1 { margin: 0 0 4px; font: 800 clamp(22px, 3.6vw, 30px)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.section-head p { margin: 0; color: var(--fg-muted); font-size: 14.5px; line-height: 1.5; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 13px;
  font-size: 13px; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { border-color: var(--accent); }
.chip small { color: var(--fg-muted); }
.chip[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-current="true"] small { color: inherit; opacity: .7; }

/* Бүлэг бүр хэсгийн өнгөөр бүдэг будсан хайрцагт — зэргэлдээ бүлгүүд ээлжлэн өөр тодтой тул хоорондоо ялгагдана */
.group {
  margin-top: 22px; padding: 20px 22px 24px; border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.group:nth-of-type(even) {
  background: color-mix(in srgb, var(--accent) 3%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 12%, var(--border));
}
.group-title {
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  font: 800 17px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
}
.group-title .num { color: var(--fg-muted); }
.cat-title { margin: 18px 0 12px; font: 700 15px var(--font-display); display: flex; align-items: center; gap: 8px; }
.cat-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* Хүн / байгууллагын карт */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.person {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.people-grid.org-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.org-grid .person-body { padding: 16px 18px 18px; }
.org-grid .name { font-size: 16.5px; }
.person:focus-visible, .winner:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.person .avatar { width: 100%; aspect-ratio: 1; border-radius: 0; font-size: 60px; }
/* Лого хүний зурагтай адил дөрвөлжин, бүтэн хэмжээгээр — тайрахгүйн тулд contain, логоны цагаан дэвсгэртэй нийлэх цагаан фон */
.person.org .avatar { aspect-ratio: 1; object-fit: contain; background: #fff; padding: 0; }
.person-body { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px 15px; border-top: 4px solid var(--accent); flex: 1; }
.label { font: 700 11px/1.4 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); }
.name { font: 700 15.5px/1.3 var(--font-display); }
.position { display: block; font-size: 13px; color: var(--fg-muted); line-height: 1.45; }
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  font: 600 10.5px var(--font-body); background: var(--brand-yellow); color: var(--brand-black);
}

/* Зураг, зураггүй бол нэрийн эхний үсэг */
/* Босоо зурагт нүүр ихэвчлэн дээд хэсэгт байдаг тул голоос биш, дээдээс нь тайрна */
.avatar { display: block; object-fit: cover; object-position: 50% 20%; background: var(--border); border-radius: 50%; flex: none; }
.avatar.initials {
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
}

/* Оны шилдэгүүд — ангилал бүрийн суудал */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.slot {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 14px;
}
.slot.filled { border-style: solid; box-shadow: var(--shadow); }
.slot-head { display: flex; gap: 10px; align-items: flex-start; }
.slot-head h3 { margin: 0; font: 700 14.5px/1.35 var(--font-display); }
.slot-num {
  flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center;
  font: 800 13px var(--font-display); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--fg);
}
.slot-empty { margin: 0; font-size: 13px; color: var(--fg-muted); font-style: italic; }
.winner {
  display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; padding: 8px;
  border: 0; border-radius: 10px; background: var(--bg);
}
.winner:hover { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.winner .avatar { width: 52px; height: 52px; font-size: 20px; }
.winner .name { display: block; font-size: 14.5px; }

/* Санал хураалт */
.vote-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin-top: 18px; padding: 24px 26px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), #ff8a3d 55%, var(--brand-yellow));
}
.vote-banner::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -70px; top: -120px;
  background: rgba(255, 255, 255, .14); pointer-events: none;
}
.vote-banner > div { position: relative; flex: 1 1 380px; }
.vote-banner h2 { margin: 10px 0 6px; font: 800 clamp(19px, 3vw, 24px)/1.25 var(--font-display); }
.vote-banner p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .94); max-width: 620px; }
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(15, 15, 15, .22); font: 700 12px var(--font-display); letter-spacing: .04em; text-transform: uppercase;
}
.btn-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border: 0; border-radius: 12px; cursor: pointer; font: 800 15px var(--font-display);
  background: var(--brand-black); color: #fff; box-shadow: 0 6px 18px rgba(15, 15, 15, .25); transition: transform .15s;
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:disabled { opacity: .6; cursor: default; transform: none; }
.btn-cta .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-weight: 600;
}
.btn-ghost.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.slot.has-nominees { border-style: solid; }
.slot-sub { font: 700 11.5px var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: -4px; }
.nominee { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.nominee:last-of-type { border-bottom: 0; padding-bottom: 0; }
.nominee .winner { width: 100%; }
.nominee-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.votes { display: flex; align-items: center; gap: 8px; font: 700 12.5px var(--font-display); color: var(--fg-muted); flex: 1; min-width: 0; }
.bar { flex: 1; max-width: 120px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand-orange); }
.vote-btn {
  flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 13px var(--font-display); color: #fff; background: var(--brand-orange);
}
.vote-btn:hover { filter: brightness(1.08); }
.vote-btn:disabled { background: var(--border); color: var(--fg-muted); cursor: default; filter: none; }
.voted { flex: none; font: 700 13px var(--font-display); color: var(--brand-orange); }
.slot-nominate {
  margin-top: auto; align-self: flex-start; border: 1px dashed var(--brand-orange); background: none; cursor: pointer;
  padding: 7px 12px; border-radius: 9px; font: 700 12.5px var(--font-display); color: var(--brand-orange);
}
.slot-nominate:hover { background: color-mix(in srgb, var(--brand-orange) 10%, transparent); }
.winner.is-winner { background: color-mix(in srgb, var(--brand-yellow) 22%, var(--bg)); }
.winner .trophy { margin-left: auto; width: 22px; height: 22px; color: var(--brand-orange); }
.profile-vote { display: flex; align-items: center; gap: 14px; margin-top: 16px; font: 700 14px var(--font-display); }
.profile-vote .vote-btn { height: 40px; padding: 0 22px; font-size: 14px; }

/* Загвар анкет татах — Оны шилдэгүүдийн доод хэсэг */
.anket {
  display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 26px; padding: 22px 24px;
  border-radius: 18px; background: var(--surface); border: 2px dashed color-mix(in srgb, var(--brand-orange) 45%, var(--border));
}
.anket .card-icon { background: var(--brand-orange); color: #fff; }
.anket-text { flex: 1 1 320px; }
.anket h2 { margin: 0 0 6px; font: 800 18px var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.anket p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }
.anket-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.anket .btn-cta { background: var(--brand-orange); text-decoration: none; }
.anket .btn-ghost { height: 46px; }
.anket .btn-ghost .icon { width: 18px; height: 18px; }

/* Санал хураалт эхлэх хүртэлх countdown */
.banner-side { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: 0 1 auto; }
.countdown {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px 12px;
  border-radius: 14px; background: rgba(15, 15, 15, .22); backdrop-filter: blur(4px);
}
.cd-label, .cd-date { font: 700 12px var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.cd-date { opacity: .9; text-transform: none; letter-spacing: 0; font-weight: 600; }
.cd-units { display: flex; gap: 8px; }
.cd-units div { min-width: 64px; padding: 8px 6px 6px; border-radius: 10px; background: #fff; color: var(--brand-black); text-align: center; }
.cd-units b { display: block; font: 800 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cd-units small { display: block; margin-top: 4px; font: 600 11px var(--font-display); color: #5c6470; }

.source { margin: 22px 0 0; font-size: 12.5px; color: var(--fg-muted); }
.source a { color: var(--link); }

/* Хуваалцах — намтрын цонхны доод буланд үргэлж харагдана */
.share-bar {
  position: sticky; bottom: -28px; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  margin: 26px -28px -28px; padding: 12px 28px; background: var(--surface); border-top: 1px solid var(--border);
}
.share-label { margin-right: auto; font: 700 12px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font: 600 13.5px var(--font-body); transition: background .15s, border-color .15s;
}
.share-btn:hover { border-color: var(--fg-muted); }
.share-btn .icon, .brand-icon { width: 18px; height: 18px; flex: none; }
.brand-icon { fill: currentColor; }
.share-facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-facebook:hover { background: #166fe0; border-color: #166fe0; }
.share-x { background: #0F0F0F; border-color: #0F0F0F; color: #fff; }
.share-x:hover { background: #2a2a2a; border-color: #2a2a2a; }
@media (prefers-color-scheme: dark) {
  .share-x { background: #f1f1f2; border-color: #f1f1f2; color: #0F0F0F; }
}

/* Нэр дэвшүүлэх форм */
.nominate-form h2, .nominate-done h2 { margin: 4px 0 6px; font: 800 24px/1.2 var(--font-display); }
.nominate-form .lead { margin: 0 0 6px; color: var(--fg-muted); font-size: 14px; line-height: 1.55; padding-right: 30px; }
.nominate-form b { color: var(--brand-orange); }
.nominate-form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; margin: 14px 0 0; min-width: 0; }
.nominate-form legend { padding: 0 6px; font: 700 12px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.nominate-form .hint { margin: 0 0 10px; font-size: 12.5px; color: var(--fg-muted); }
.nominate-form .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--fg-muted); }
.nominate-form input, .nominate-form select, .nominate-form textarea {
  width: 100%; min-width: 0; height: 40px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); font: inherit; font-size: 14.5px;
}
.nominate-form textarea { height: auto; min-height: 130px; padding: 10px 11px; line-height: 1.55; resize: vertical; }
.nominate-form input[type="file"] { height: auto; padding: 8px; font-size: 13px; }
.nominate-form input:focus, .nominate-form select:focus, .nominate-form textarea:focus { outline: 2px solid var(--brand-orange); outline-offset: -1px; border-color: transparent; }
.nominate-form .rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.nominate-form .list-row { display: grid; gap: 8px; align-items: center; }
.row-del { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-muted); cursor: pointer; }
.row-del:hover { color: #d63a2f; border-color: #d63a2f; }
.previews { display: flex; gap: 6px; flex-wrap: wrap; }
.previews img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.file-chip { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; }
.nominate-form .hint a { color: var(--link); font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand-orange); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; color: #b42318; background: color-mix(in srgb, #d63a2f 12%, var(--surface)); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-actions .btn-cta { background: var(--brand-orange); }
.nominate-done { text-align: center; padding: 30px 10px 10px; }
.nominate-done p { color: var(--fg-muted); line-height: 1.6; max-width: 460px; margin: 0 auto 20px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--brand-orange); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #d63a2f; color: #fff; }

/* Дэлгэрэнгүй намтар */
dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
dialog::backdrop { background: rgba(15, 15, 15, .55); }
.profile { position: relative; padding: 28px; }
.close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 15px;
}
.profile-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.profile-head .avatar { width: 200px; height: 200px; border-radius: 14px; font-size: 72px; }
.profile-head.org .avatar { object-fit: contain; background: var(--bg); }
.profile-head .label { display: block; margin-bottom: 6px; padding-right: 40px; }
.profile-head h2 { margin: 0 0 6px; font: 800 24px/1.2 var(--font-display); padding-right: 40px; }
.profile-head .position { font-size: 14.5px; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.facts dt { color: var(--fg-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--link); }
.profile h3 { margin: 26px 0 10px; font: 700 13px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.bio p { margin: 0 0 10px; line-height: 1.65; font-size: 15px; }
.achievements { margin: 0; padding-left: 20px; line-height: 1.6; font-size: 14.5px; }
.profile-awards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.profile-awards li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14.5px; font-weight: 600;
}
.profile-awards .icon { width: 20px; height: 20px; color: var(--brand-orange); }
.profile-awards .year { font: 800 15px var(--font-display); color: var(--fg-muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 0 0 14px 18px; font-size: 14.5px; line-height: 1.45; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--brand-blue)); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font: 700 13px/1.6 var(--font-display); color: var(--fg-muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }

/* Хөл */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--fg-muted); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-mail { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; }
.footer-mail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-mail:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .section-cards { grid-template-columns: repeat(2, 1fr); }
  .people-grid.org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .profile-head { grid-template-columns: 1fr; }
  .profile-head .avatar { width: 140px; height: 140px; font-size: 52px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-row { height: 60px; }
  .logo img { height: 36px; }
  .brand { gap: 10px; }
  .tagline { font-size: 12px; padding-left: 10px; }
  .section-nav a { padding: 12px 10px 9px; font-size: 12px; }
  .section-cards { gap: 12px; }
  .section-card { padding: 18px 14px 14px; }
  .section-card h2 { font-size: 14px; }
  .section-card p { font-size: 12.5px; }
  .section-head .card-icon { display: none; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .people-grid.org-grid { grid-template-columns: 1fr; }
  .person .avatar { font-size: 44px; }
  .person-body { padding: 10px 12px 12px; }
  .name { font-size: 14px; }
  .position { font-size: 12.5px; }
  .slots { grid-template-columns: 1fr; }
  .group { margin-top: 16px; padding: 14px 12px 16px; border-radius: 14px; }
  .group-title { font-size: 15px; margin-bottom: 12px; }
  .section-nav a.hot { padding: 7px 12px; }
  .vote-banner { padding: 20px 18px; }
  .vote-banner .btn-cta { width: 100%; }
  .banner-side { width: 100%; }
  .cd-units div { min-width: 0; flex: 1; }
  .cd-units { width: 100%; }
  .cd-units b { font-size: 24px; }
  .share-bar { bottom: -20px; margin: 22px -18px -20px; padding: 10px 18px; }
  .share-label { width: 100%; }
  .share-btn { flex: 1; justify-content: center; padding: 0 8px; }
  .share-btn span { font-size: 12.5px; }
  .nominate-form .list-row { grid-template-columns: 1fr 34px !important; }
  .nominate-form .list-row input:not(:first-child) { grid-column: 1; }
  .nominate-form .list-row .row-del { grid-column: 2; grid-row: 1; }
  .anket { padding: 18px 16px; }
  .anket-actions, .anket-actions > * { width: 100%; justify-content: center; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions > * { width: 100%; justify-content: center; }
  .profile { padding: 20px 18px; }
  dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
}
