/* ── Reset & base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #1B3A6B;
  --navy-d:   #122849;
  --gold:     #C8A94A;
  --text:     #1A1A2E;
  --muted:    #5A6175;
  --border:   #DDE1EE;
  --bg:       #FFFFFF;
  --white:    #FFFFFF;
  --shadow:   0 2px 12px rgba(27,58,107,.08);
  --radius:   10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  mix-blend-mode: screen;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .03em;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}

.nav-link.active { color: var(--gold); }

button.nav-link, button.nav-sessions-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.chevron {
  flex-shrink: 0;
  transition: transform .2s;
}

.has-dropdown:hover .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  padding: 6px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  transition: background .12s;
}

.dropdown-menu a:hover {
  background: #EEF3FA;
  text-decoration: none;
  color: var(--navy);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
}

/* ── Category tabs ───────────────────────────────────────────────────────────── */
.feed-controls { margin-bottom: 24px; }

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all .15s;
}

.cat-tab:hover {
  border-color: var(--cat-color, var(--navy));
  color: var(--cat-color, var(--navy));
  text-decoration: none;
}

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

/* ── Publication feed ────────────────────────────────────────────────────────── */
/* ── Publication cards ───────────────────────────────────────────────────────── */
.pub-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.pub-card:last-child { border-bottom: none; }

.pub-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pub-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.pub-card-thumb {
  flex-shrink: 0;
  width: 130px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
  display: block;
  text-decoration: none;
}

.pub-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.pub-card-thumb:hover .pub-card-img { transform: scale(1.04); }

.pub-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pub-date {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cat-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pub-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.pub-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .12s;
}

.pub-card-title a:hover { color: var(--navy); }

.pub-card-excerpt {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.pub-files-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--muted);
  background: #F0F2F7;
  border-radius: 10px;
  padding: 3px 9px;
}

.pub-card-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color .12s;
  margin-left: auto;
}

.pub-card-more:hover { color: var(--accent, #2E5FA3); text-decoration: underline; }

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

/* ── Paginator ───────────────────────────────────────────────────────────────── */
.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 8px;
  flex-wrap: wrap;
}

.pag-btn, .pag-page, .pag-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s, color .12s;
}

.pag-btn {
  color: var(--navy);
  border: 1.5px solid var(--border);
  background: var(--white);
}

.pag-btn:hover:not(.pag-disabled) {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  text-decoration: none;
}

.pag-disabled {
  color: var(--border);
  cursor: default;
  border-color: var(--border);
}

.pag-page {
  min-width: 36px;
  padding: 0 10px;
  color: var(--muted);
  border: 1.5px solid transparent;
}

.pag-page:hover {
  background: #EEF3FA;
  color: var(--navy);
  text-decoration: none;
}

.pag-current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 700;
}

.pag-ellipsis {
  color: var(--muted);
  cursor: default;
  padding: 0 4px;
}

/* ── Site main ───────────────────────────────────────────────────────────────── */
.site-main { flex: 1; padding-bottom: 60px; }

/* ── Page layout (single publication) ───────────────────────────────────────── */
.page-layout {
  display: flex;
  gap: 40px;
  padding: 48px 0;
  align-items: flex-start;
}

.page-sidebar {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: 88px;
}

.sidebar-heading {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .875rem;
  color: var(--muted);
  transition: background .12s, color .12s;
}

.sidebar-nav a:hover, .sidebar-nav a.current {
  background: #EEF3FA;
  color: var(--navy);
  text-decoration: none;
}

.sidebar-nav a.current { font-weight: 600; }

.pub-article {
  flex: 1;
  min-width: 0;
  max-width: 740px;
}

.pub-article--full { max-width: 760px; margin: 0 auto; }

.article-header { margin-bottom: 28px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.article-meta time { font-size: .85rem; color: var(--muted); }

.article-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

/* ── Article content (from Quill) ────────────────────────────────────────────── */
.article-content {
  line-height: 1.75;
  color: var(--text);
}

.ql-content h1, .ql-content h2, .ql-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 1.6em 0 .6em;
  line-height: 1.25;
}
.ql-content h1 { font-size: 1.7rem; }
.ql-content h2 { font-size: 1.35rem; }
.ql-content h3 { font-size: 1.1rem; }

.ql-content p { margin-bottom: 1em; }

.ql-content ul, .ql-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
}
.ql-content ul { list-style: disc; }
.ql-content ol { list-style: decimal; }
.ql-content li { margin-bottom: .3em; }

.ql-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: #FFFBF0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-style: italic;
}

.ql-content img {
  float: left;
  margin: 4px 22px 20px 0;
  max-width: 48%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ql-editor img {
  float: left;
  margin: 4px 22px 20px 0;
  max-width: 48%;
  border-radius: 8px;
}

.ql-content::after { content: ''; display: table; clear: both; }

.ql-content a { color: var(--navy); text-decoration: underline; }

/* Quill text alignment (mirrors admin editor) */
.ql-content .ql-align-center  { text-align: center; }
.ql-content .ql-align-right   { text-align: right; }
.ql-content .ql-align-justify { text-align: justify; }
.ql-content .ql-align-left    { text-align: left; }

/* Aligned images should respect alignment instead of forced left float */
.ql-content img.ql-align-center {
  float: none;
  display: block;
  margin: 20px auto;
  max-width: 80%;
}
.ql-content img.ql-align-right {
  float: right;
  margin: 4px 0 20px 22px;
}

.empty-content { color: var(--muted); font-style: italic; padding: 24px 0; }

/* ── Attachments ─────────────────────────────────────────────────────────────── */
.article-attachments {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.attachments-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.attachments-list { display: flex; flex-direction: column; gap: 8px; }

.attachment-item {}

.attachment-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
}

.attachment-link:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.attachment-icon { font-size: 1.1rem; }
.attachment-name { flex: 1; font-size: .9rem; font-weight: 500; }
.attachment-meta { display: flex; gap: 8px; align-items: center; margin-left: auto; }

.attachment-ext {
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .05em;
}

.attachment-size { font-size: .78rem; color: var(--muted); }

.article-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

.back-link {
  font-size: .9rem;
  color: var(--muted);
  transition: color .15s;
}
.back-link:hover { color: var(--navy); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-d);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 28px;
}

.footer-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.footer-org {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 140px;
  text-align: center;
}

.org-logo {
  width: 96px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.org-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.org-logo-fallback {
  width: 80px;
  height: 56px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.6);
}

.org-name {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.35;
}

.footer-org--join {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-logo--join {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  border: 1.5px dashed rgba(255,255,255,.25);
  transition: border-color .2s, background .2s;
}

.footer-org--join:hover .org-logo--join {
  border-color: rgba(200,169,74,.6);
  background: rgba(200,169,74,.07);
}

.join-mark {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  line-height: 1;
}

.footer-org--join:hover .join-mark {
  color: rgba(200,169,74,.85);
}

/* ── Modal ───────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,.65);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .18s ease;
}

.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  animation: slideUp .2s ease;
}
.modal-box--wide {
  max-width: 860px;
  text-align: left;
  padding: 32px 28px 28px;
  max-height: 85vh;
  overflow-y: auto;
}
.sessions-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-right: 36px;
}
.sessions-modal-title { margin: 0; text-align: left; }

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}

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

.modal-icon {
  width: 56px;
  height: 56px;
  background: #EEF3FA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 20px;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

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

.modal-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

.modal-btn:hover { background: #122849; text-decoration: none; color: var(--white); }

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── Language switcher ───────────────────────────────────────────────────────── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.15);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 5px 7px;
  border-radius: 5px;
  transition: color .15s, background .15s;
  font-family: inherit;
  line-height: 1;
}

.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--white); background: rgba(255,255,255,.13); }
.lang-sep { color: rgba(255,255,255,.2); font-size: .7rem; }

html[data-lang="en"] .lang-ua { display: none !important; }
html[data-lang="ua"] .lang-en { display: none !important; }

/* ── Mobile language switcher (показ лише активної мови + вибір) ───────────────── */
/* Прихований на десктопі; вмикається у мобільному @media. Десктоп не змінюється. */
.mobile-lang { display: none; position: relative; }
.mobile-lang-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .07em;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.mobile-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--navy-d);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 4px;
  flex-direction: column;
  gap: 2px;
  min-width: 64px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  display: flex;
}
.mobile-lang-menu[hidden] { display: none; }
.mobile-lang-opt {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .07em;
  padding: 8px 14px;
  border-radius: 5px;
  font-family: inherit;
  text-align: left;
  transition: color .15s, background .15s;
}
.mobile-lang-opt:hover { color: var(--white); }
.mobile-lang-opt.active { color: var(--white); background: rgba(255,255,255,.13); }

/* ── Apply form (Стати монітором) ────────────────────────────────────────────── */
.apply-section {
  margin-top: 8px;
}

.apply-success {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 10px;
  padding: 20px 24px;
  color: #166534;
}

.apply-success svg { flex-shrink: 0; margin-top: 2px; color: #22C55E; }
.apply-success strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.apply-success p { font-size: .88rem; margin: 0; opacity: .85; }

.apply-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.apply-alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.apply-alert--warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

.apply-form { display: flex; flex-direction: column; gap: 0; }

.af-group {
  padding: 18px 0;
}

.af-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.af-req { color: #DC2626; margin-left: 2px; }

.af-hint {
  font-size: .82rem;
  color: var(--muted);
  margin: -6px 0 10px;
}

.af-input, .af-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.af-input:focus, .af-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
}

.af-textarea { resize: vertical; min-height: 80px; }

.af-radios { display: flex; flex-direction: column; gap: 8px; }
.af-radios--inline { flex-direction: row; flex-wrap: wrap; gap: 16px; }

.af-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .93rem;
  color: var(--text);
}

.af-radio-label input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.af-consent { padding-top: 20px; }
.af-consent .af-label { margin-bottom: 14px; }

.af-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.af-check-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.af-submit {
  margin-top: 28px;
  padding: 13px 36px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  align-self: flex-start;
}
.af-submit:hover { background: var(--navy-d); }

/* ── Partners footer (clickable) ────────────────────────────────────────────── */
.footer-org--link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s, transform .18s;
}
.footer-org--link:hover {
  opacity: 1;
  transform: translateY(-3px);
  text-decoration: none;
}
.footer-org--link .org-name { transition: color .15s; }
.footer-org--link:hover .org-name { color: rgba(255,255,255,.8); }

/* ── Partner detail page ─────────────────────────────────────────────────────── */
.partner-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 0 60px;
  text-align: center;
}
.partner-logo-wrap { margin-bottom: 28px; }
.partner-logo-img {
  max-height: 90px;
  max-width: 260px;
  object-fit: contain;
}
.partner-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.3;
}
.partner-role-section {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: left;
}
.partner-role-heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.partner-role-text {
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}
.partner-web-btn {
  display: inline-block;
  padding: 11px 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
  margin-bottom: 36px;
}
.partner-web-btn:hover { background: var(--navy-d); text-decoration: none; color: var(--white); }
.partner-back { border-top: 1px solid var(--border); padding-top: 20px; text-align: left; }

/* ── Court sessions block (homepage) ─────────────────────────────────────────── */
.sessions-block {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
  padding-bottom: 20px;
}
.sessions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sessions-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.sessions-form-link {
  display: inline-block;
  padding: 8px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.sessions-form-link:hover { background: var(--navy-d); text-decoration: none; color: var(--white); }

.sessions-table-wrap { overflow-x: auto; }
.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.sessions-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  background: var(--bg);
}
.sessions-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.sessions-table tr:last-child td { border-bottom: none; }
.sessions-table tr:hover td { background: #FAFBFC; }

.case-name-link { font-weight: 600; color: var(--navy); text-decoration: none; }
.case-name-link:hover { text-decoration: underline; }
.td-case-name { max-width: 340px; }
.td-date-cell { white-space: nowrap; color: var(--muted); font-size: .83rem; }
.td-monitors { max-width: 200px; }
.td-attend { white-space: nowrap; }

.attend-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.attend-btn:hover { background: var(--navy-d); }

.monitors-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.monitor-chip {
  display: inline-block;
  padding: 2px 8px;
  background: #EEF3FA;
  color: var(--navy);
  border-radius: 10px;
  font-size: .73rem;
  font-weight: 500;
}
.monitor-chip--assigned {
  background: var(--navy);
  color: #fff;
}
.sessions-empty { color: var(--muted); font-size: .9rem; padding: 12px 0; }

.monitors-list, .monitors-list--assigned { list-style: none; padding-left: 0; }
.monitors-list--assigned .monitors-item--assigned {
  font-weight: 600;
  color: var(--navy);
}
.monitors-subheading {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.attend-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
  margin-top: 4px;
}
.attend-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
}

/* ── Session detail page ─────────────────────────────────────────────────────── */
.session-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 0 60px;
}
.session-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 24px;
}
.session-info {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.session-info-row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.session-info-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  min-width: 110px;
  flex-shrink: 0;
}
.session-info-value { font-size: .93rem; color: var(--text); font-weight: 500; }
.session-details { line-height: 1.75; color: var(--text); margin-bottom: 28px; }
.session-monitors-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.monitors-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.monitors-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.monitors-item {
  font-size: .9rem;
  color: var(--text);
}
.monitors-empty { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.btn-attend-open {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.btn-attend-open:hover { background: var(--navy-d); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-d);
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: none;
  }

  .site-nav.open { display: block; }

  .nav-list { flex-direction: column; gap: 2px; }

  .nav-link { color: rgba(255,255,255,.9); }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.05);
    border-radius: 6px;
    display: none;
    padding: 4px;
    margin-top: 4px;
  }

  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255,255,255,.8); }
  .dropdown-menu a:hover { background: rgba(255,255,255,.08); color: var(--white); }

  .header-inner { position: relative; }
  .site-header { position: sticky; }

  .page-layout { flex-direction: column; padding: 28px 0; }
  .page-sidebar { width: 100%; position: static; }

  .pub-card-inner { gap: 0; }
  .pub-card-thumb { width: 90px; height: 65px; margin-right: 14px; }
  .pub-card-title { font-size: .9rem; }
  .pub-card-excerpt { -webkit-line-clamp: 2; }

  .footer-orgs { gap: 24px; justify-content: center; }

  /* Сховати овальні табки-фільтри категорій на мобільних */
  .category-tabs { display: none; }

  /* Перемикач мови — зліва від гамбургера, завжди видимий (поза меню) */
  .mobile-lang { display: block; margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav-lang { display: none; }

  /* Компактніший лого/текст, щоб помістились мова + гамбургер (укр. довший) */
  .header-inner { gap: 8px; }
  .logo-img { height: 32px; }
  .logo-main { font-size: .78rem; letter-spacing: .01em; }
  .site-logo { gap: 8px; }
  .mobile-lang-btn { padding: 6px 9px; }
}
