:root {
  --navy: #0c2340;
  --navy-light: #163a66;
  --teal: #1a7a5e;
  --teal-light: #22a07d;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --bg: #f4f7fb;
  --bg-alt: #eaf0f8;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6b82;
  --border: #d8e2ef;
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 12px 48px rgba(12, 35, 64, 0.14);
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: 0.92rem; }

/* ===== TICKER (бегущая строка / реклама) ===== */
.ticker-wrap {
  display: flex;
  background: linear-gradient(90deg, #0a1a30 0%, var(--navy) 50%, #0a1a30 100%);
  color: var(--white);
  height: 46px;
  overflow: hidden;
  position: relative;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.ticker-label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,0.2);
}

.ticker-pulse {
  color: #e53e3e;
  animation: pulse 1.2s ease-in-out infinite;
  font-size: 0.6rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  will-change: transform;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding-right: 0;
}

.ticker-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.ticker-sep {
  color: var(--gold);
  opacity: 0.6;
  margin: 0 32px;
  font-size: 0.55rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: auto;
  padding: 10px 0;
  gap: 12px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  min-width: 0;
}

.logo-emblem {
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(12, 35, 64, 0.1);
}

.logo-emblem--header {
  width: 56px;
  height: 56px;
  padding: 4px;
  overflow: visible;
}

.logo-emblem--header .logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-full {
  display: block;
  height: auto;
  object-fit: contain;
}

.logo-full--footer {
  width: 200px;
  margin: 0 auto 8px;
}

.logo-full--login {
  width: 220px;
}

.logo-full--about {
  width: 160px;
}

.logo-img {
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}

.footer-logo {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.footer-logo:hover .logo-emblem {
  box-shadow: 0 2px 8px rgba(12, 35, 64, 0.16);
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.about-brand h2 {
  margin-bottom: 0 !important;
}

.logo-title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.2;
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
  flex-shrink: 0;
  min-width: 0;
}

.header-lang-switch {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.header-lang-switch button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.header-lang-switch button.active,
.header-lang-switch button:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(8px, 1.4vw, 24px);
  min-width: 0;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover { color: var(--teal); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: min(560px, 80vh);
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 28, 42, 0.88) 0%, rgba(18, 28, 42, 0.62) 42%, rgba(18, 28, 42, 0.35) 100%),
    var(--hero-image, none) center 32% / cover no-repeat,
    linear-gradient(135deg, var(--slide-color, var(--navy)) 0%, color-mix(in srgb, var(--slide-color, var(--navy)) 60%, #000) 100%);
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201,162,39,0.12) 0%, transparent 40%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  padding: 48px 0 60px;
  max-width: min(720px, 100%);
  overflow: hidden;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.hero-slide h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: min(600px, 100%);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.hero-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
  backdrop-filter: blur(4px);
}

.hero-btn:hover {
  background: rgba(255,255,255,0.25);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.btn-outline.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  margin-top: auto;
}

.btn-secondary:hover {
  background: var(--navy-light);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--border);
  flex-shrink: 0;
  align-self: center;
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--teal-light);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 24px;
}

.conf-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--card-accent, var(--teal));
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.conf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.conf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.conf-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.conf-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  white-space: nowrap;
}

.conf-status.live {
  background: #dcfce7;
  color: #166534;
}

.conf-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.conf-meta {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conf-card p:last-of-type {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid var(--teal);
}

.features-list strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.features-list span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card.accent {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  grid-column: span 2;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
}

.stat-card.accent .stat-num { color: var(--gold); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-card.accent .stat-label { color: rgba(255,255,255,0.75); }

/* ===== ARCHIVE ===== */
.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.search-box {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--text-muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 12px 0;
  font-family: var(--font);
  font-size: 0.92rem;
  background: transparent;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--item-accent, var(--teal));
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.archive-item:hover { box-shadow: var(--shadow-lg); }

.archive-year {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
}

.archive-body { flex: 1; min-width: 0; }

.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.archive-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
  min-width: 200px;
}

.archive-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
}

.archive-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.archive-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 999px;
}

.archive-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

/* ===== ARCHIVE ACCORDION (программа + сборник) ===== */
.archive-acc-block {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.archive-acc-header {
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  padding: 16px 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.archive-acc-list {
  display: flex;
  flex-direction: column;
}

.archive-acc-item {
  border-top: 1px solid var(--border);
}

.archive-acc-item:first-child {
  border-top: none;
}

.archive-conf-btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 24px;
  background: #eef4f8;
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background 0.15s;
}

.archive-conf-btn:hover,
.archive-conf-btn--open {
  background: #dce8ef;
}

.archive-conf-btn--empty {
  cursor: default;
  opacity: 0.65;
}

.archive-conf-title {
  grid-column: 1;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.archive-conf-meta {
  grid-column: 1;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.archive-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-shrink: 0;
}

.archive-sub {
  display: flex;
  flex-direction: column;
  background: #f8fafb;
}

.archive-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 14px 40px;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s;
}

.archive-sub-btn--program {
  background: #f0faf4;
  color: #1a5f4a;
}

.archive-sub-btn--program:hover:not(.archive-sub-btn--disabled) {
  background: #dff3e8;
}

.archive-sub-btn--collection {
  background: #f0f4ff;
  color: var(--navy);
  justify-content: space-between;
}

.archive-sub-btn--collection:hover:not(.archive-sub-btn--disabled),
.archive-sub-btn--collection.archive-sub-btn--open {
  background: #e2eafc;
}

.archive-sub-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.archive-collection-wrap {
  display: flex;
  flex-direction: column;
}

.archive-sections {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.archive-section-btn {
  flex: 1 1 25%;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: #fafcff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.archive-section-btn:hover {
  background: #e8f0fe;
  color: var(--navy);
}

.archive-section-btn svg {
  color: var(--teal);
}

.archive-section-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border: none;
  font: inherit;
  width: 100%;
}

.archive-section-btn--disabled svg {
  color: var(--text-muted, #888);
}

.archive-detail-link {
  padding: 12px 24px 16px 40px;
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.archive-detail-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .archive-conf-btn,
  .archive-sub-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .archive-sub-btn {
    padding-left: 28px;
  }

  .archive-sections {
    flex-direction: column;
  }

  .archive-section-btn {
    flex: 1 1 auto;
    width: 100%;
    border-right: none;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 20px;
  }
}

/* ===== CONTACTS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.92rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 32px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer .muted { color: rgba(255,255,255,0.5); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: 0.2s;
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal-badge {
  display: inline-block;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-test-note {
  font-size: 0.82rem;
  color: var(--gold);
  background: #fef9e7;
  border: 1px dashed var(--gold);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.modal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
  padding-right: 32px;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.modal-info {
  display: grid;
  gap: 8px;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.modal-info strong { color: var(--navy); }

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.modal-sections ul {
  margin: 8px 0 16px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-indexed {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.modal-footer .btn-outline {
  color: var(--navy);
  border-color: var(--border);
}

.modal-footer .btn-outline:hover {
  background: var(--bg-alt);
  color: var(--teal);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .logo-sub { display: none; }
}

@media (max-width: 1024px) {
  .header--mobile-nav .menu-btn { display: flex; }

  .header--mobile-nav .nav {
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    box-shadow: var(--shadow);
    z-index: 95;
  }

  .header--mobile-nav .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header--mobile-nav .nav a {
    white-space: normal;
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-university-grid { grid-template-columns: 1fr; }
  .stat-card.accent { grid-column: span 1; }
}

@media (max-width: 768px) {
  .header-actions { gap: 10px; }

  .header-lang-switch button {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .hero { height: min(640px, 85vh); }

  .archive-item {
    flex-direction: column;
  }

  .archive-item .btn-ghost {
    align-self: flex-start;
  }

  .section { padding: 56px 0; }

  .ticker-label {
    padding: 0 12px;
    font-size: 0.68rem;
  }
}

.nav a.active { color: var(--teal); }

.footer-admin { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-admin:hover { color: var(--gold); }

.page-top { padding: 48px 0 80px; }

.page-title { text-align: center; margin-bottom: 40px; }
.page-title.left { text-align: left; margin-bottom: 24px; }
.page-title h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.page-title p { color: var(--text-muted); }

.section-contacts { padding-bottom: 80px; }
.section-contacts h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; text-align: center; }

.about-article {
  margin-top: 56px;
}

.about-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

.about-university-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.about-university-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.about-map {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.about-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.about-map-link {
  padding: 10px 16px;
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 20px;
}

.quick-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.quick-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.quick-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.quick-card p { font-size: 0.88rem; color: var(--text-muted); }

.hero-empty {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(105deg, rgba(18, 28, 42, 0.88) 0%, rgba(18, 28, 42, 0.55) 100%),
    linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  text-align: center;
}

.hero-empty h1 { font-size: 2rem; margin-bottom: 12px; }
.hero-empty a { color: var(--gold); }

.archive-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.admin-container { max-width: min(1180px, 96vw); }

.nav a[href="admin.html"] {
  color: var(--teal);
  font-weight: 800;
}
.nav a[href="admin.html"].active {
  color: var(--teal);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-alt);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.admin-tab {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}

.admin-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-label input { width: auto; }

@media (max-width: 768px) {
  .archive-item { flex-direction: column; }
  .archive-actions { flex-direction: row; flex-wrap: wrap; }
}
