/* Федерация плавания Астраханской области — новый сайт, 2026 */

:root {
  --blue-900: #0b2a4a;
  --blue-700: #0d4f8b;
  --blue-600: #0f6cbd;
  --blue-500: #1287e8;
  --blue-100: #e3f1fc;
  --blue-50:  #f2f8fe;
  --ink: #1a2733;
  --ink-soft: #51606f;
  --line: #dce6ef;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --ok: #1f9d55;
  --danger: #d64545;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 74, .08);
  --shadow-sm: 0 2px 10px rgba(11, 42, 74, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
html.a11y { font-size: 20px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--blue-900); }
code { background: var(--blue-50); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-700); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--blue-900); color: #cfe4f7; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar-contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contacts a { color: #eaf4fd; }
.topbar-contacts a:hover { color: #fff; }
.a11y-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #eaf4fd; border: 1px solid #3a5f84; border-radius: 8px;
  padding: 3px 10px; font-size: .8rem; cursor: pointer; font-family: inherit;
}
.a11y-btn:hover { border-color: #7db4e0; color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-900); font-weight: 700; line-height: 1.15; }
.brand:hover { color: var(--blue-700); }
.brand-logo { height: 46px; width: auto; }
.brand-name small { font-weight: 500; color: var(--ink-soft); font-size: .78em; }

.nav { margin-left: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > ul > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
}
.nav > ul > li:hover > .nav-link, .nav-link:focus-visible { background: var(--blue-50); color: var(--blue-700); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.sub a:hover { background: var(--blue-50); color: var(--blue-700); }

.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--blue-900); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 16px 0 0; font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--blue-600); }
.crumbs-sep { margin: 0 6px; color: #b6c4d2; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background-size: cover; background-position: center;
  padding: 84px 0 92px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,30,58,.78), rgba(10,52,96,.66));
}
.hero-in { position: relative; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 0 0 14px; max-width: 900px; margin-inline: auto; }
.hero p { font-size: 1.05rem; margin: 0 0 26px; color: #dcebf9; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue-600); color: #fff; border: 2px solid var(--blue-600);
  border-radius: 12px; padding: 10px 22px; font-weight: 700; font-size: .95rem;
  cursor: pointer; font-family: inherit; transition: .15s; text-align: center;
}
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--blue-50); border-color: var(--blue-50); color: var(--blue-900); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #b93a3a; border-color: #b93a3a; }
.btn-sm { padding: 5px 12px; font-size: .83rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Быстрые ссылки ---------- */
.quick { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.quick-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  padding-top: 26px; padding-bottom: 26px;
}
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; color: var(--blue-900); font-weight: 700; font-size: .88rem;
  transition: .15s; box-shadow: var(--shadow-sm);
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--blue-600); }
.quick-icon { display: flex; align-items: center; justify-content: center; height: 52px; }
.quick-icon img { height: 48px; width: auto; }

/* ---------- Секции ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.link-more { font-weight: 600; white-space: nowrap; }

/* ---------- Карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  transition: .15s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-img { aspect-ratio: 16/9; background: var(--blue-100); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50) 55%, #ffffff);
}
.card-img-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 35%, rgba(18,135,232,.25), transparent 45%),
              radial-gradient(circle at 75% 70%, rgba(18,135,232,.18), transparent 40%);
}
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-date { color: var(--ink-soft); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card-title { margin: 0; font-size: 1.05rem; color: var(--blue-900); }
.card-text { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.card-compact { flex-direction: row; align-items: stretch; }
.card-compact .card-body { padding: 12px 16px; }

/* ---------- О федерации ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { margin-top: 0; }
.about-text p { color: var(--ink-soft); }
.about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.about-facts { display: grid; gap: 14px; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: baseline; gap: 12px; box-shadow: var(--shadow-sm);
}
.fact strong { font-size: 1.7rem; color: var(--blue-600); }
.fact span { color: var(--ink-soft); }

/* ---------- Обычные страницы ---------- */
.page-wrap { padding: 26px 20px 56px; }
.page-title { margin: 6px 0 20px; font-size: 1.8rem; }
.page-lead { color: var(--ink-soft); margin-top: -8px; }
.page-layout { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.side-nav {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 86px;
}
.side-title { margin: 0 0 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); font-size: .93rem; }
.side-nav a:hover { background: var(--blue-100); color: var(--blue-700); }
.side-nav a.is-active { background: var(--blue-600); color: #fff; font-weight: 600; }

/* Типографика контента */
.prose { font-size: 1rem; color: var(--ink); }
.prose h1 { font-size: 1.7rem; margin: 8px 0 18px; }
.prose h2, .prose h3 { margin: 26px 0 10px; }
.prose p { margin: 10px 0; }
.prose img { border-radius: 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose table td, .prose table th { border: 1px solid var(--line); padding: 7px 10px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Документы (карточки-ссылки) ---------- */
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-card {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: .15s; box-shadow: var(--shadow-sm);
}
.doc-card:hover { border-color: var(--blue-500); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-icon {
  flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue-600); border-radius: 12px;
}
.doc-card-body { display: flex; flex-direction: column; gap: 4px; }
.doc-card-body strong { color: var(--blue-900); font-weight: 700; }
.doc-card-hint { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Файлы ---------- */
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-list li { display: flex; align-items: stretch; gap: 10px; }
.file-list .file { flex: 1; min-width: 0; }
.file-thumb {
  flex: none; width: 48px; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #fff; display: block; transition: .15s;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.file-thumb:hover { border-color: var(--blue-500); box-shadow: 0 2px 10px rgba(13, 71, 161, .18); }
.file {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
  transition: .15s;
}
.file:hover { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }
.file-icon { color: var(--danger); display: flex; }
.file-name { font-weight: 600; flex: 1; }
.file-ext {
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  background: var(--blue-100); color: var(--blue-700); border-radius: 6px; padding: 3px 7px;
}
.doc-group { margin: 26px 0; }
.doc-group h2 { font-size: 1.25rem; margin: 0 0 12px; }

/* ---------- Соревнования ---------- */
.filters {
  display: flex; gap: 14px; align-items: end; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 24px;
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.filters select, .filters input {
  font-family: inherit; font-size: .95rem; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; min-width: 130px; color: var(--ink);
}
.comp-list { display: flex; flex-direction: column; gap: 8px; }
.comp-year {
  margin: 26px 0 10px; font-size: 1.3rem; color: var(--blue-700);
  border-bottom: 2px solid var(--blue-100); padding-bottom: 6px;
}
.comp-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; color: var(--ink); transition: .15s;
}
.comp-row:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); color: var(--ink); }
.comp-disc {
  flex: 0 0 auto; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: var(--blue-100); color: var(--blue-700); border-radius: 8px; padding: 4px 9px;
}
.comp-disc-synch { background: #e8f7f1; color: #147d56; }
.comp-disc-diving { background: #fdf0e3; color: #a4611a; }
.comp-name { font-weight: 600; flex: 1; }
.comp-venue { color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }
.comp-arrow { color: #b6c4d2; flex: 0 0 auto; transition: transform .15s; }
.comp-row:hover .comp-arrow { color: var(--blue-600); }
/* Аккордеон документов в архиве */
.comp-row.is-open { border-color: var(--blue-500); border-bottom: 0; border-radius: 12px 12px 0 0; }
.comp-row.is-open .comp-arrow { color: var(--blue-600); transform: rotate(90deg); }
.comp-docs-panel {
  background: #fff; border: 1px solid var(--blue-500); border-top: 0;
  border-radius: 0 0 12px 12px; padding: 4px 16px 14px; margin-top: -8px; /* компенсируем gap списка */
}
.comp-docs-panel .doc-group { margin: 14px 0; }
.comp-docs-panel .doc-group h2 { font-size: 1rem; }
.comp-head h1 { margin: 12px 0 8px; font-size: 1.6rem; }
.comp-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; }
.comp-desc { margin-top: 12px; }

/* ---------- Галерея ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-item { margin: 0; }
.photo-link { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-link img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: .2s; }
.photo-link:hover img { transform: scale(1.03); }
.photo-item figcaption { font-size: .8rem; color: var(--ink-soft); padding: 6px 2px; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 18, 32, .92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; font-size: 34px; color: #fff;
  background: none; border: 0; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px;
  font-size: 28px; padding: 12px 16px; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
/* Просмотр превью PDF */
.doc-viewer { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.doc-viewer img { background: #fff; max-height: 78vh; cursor: default; }
.doc-viewer figcaption {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  color: #fff; max-width: 92vw;
}
.doc-view-title { font-weight: 600; text-align: center; }
.doc-view-pages {
  font-size: .85rem; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 12px;
}
/* стрелки листания — поверх белого листа PDF, делаем контрастными */
.doc-lightbox .lightbox-nav { background: rgba(5, 18, 32, .65); }
.doc-lightbox .lightbox-nav:hover { background: rgba(5, 18, 32, .85); }
@media (max-width: 640px) {
  .doc-lightbox { padding: 12px; }
  .doc-viewer img { max-height: 60vh; }
  .doc-viewer figcaption { gap: 8px; }
  /* на узких экранах стрелки едут в нижнюю панель: ‹ стр. 4/8 › */
  .doc-lightbox .lightbox-nav {
    position: static; transform: none;
    font-size: 20px; padding: 4px 16px; border-radius: 999px;
  }
  .doc-view-title { display: none; }
}
.doc-lightbox .btn { text-decoration: none; }
.doc-lightbox .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.doc-lightbox .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
/* Карточка PDF в HTML-контенте (ссылки вида <a href="...pdf">) */
.pdf-card {
  display: flex; align-items: stretch; gap: 12px; margin: 14px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; max-width: 520px;
}
.pdf-card .file-thumb { align-self: flex-start; width: 56px; aspect-ratio: 21 / 29.7; }
.pdf-card .file-thumb:hover { border-color: var(--blue-500); }
.pdf-card-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.pdf-card-title { font-weight: 700; color: var(--blue-900); overflow-wrap: anywhere; }
.pdf-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pdf-card-actions .btn { text-decoration: none; }

/* ---------- Прочее ---------- */
.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.comp-years-tabs { margin: 4px 0 16px; }
.tab {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
}
.tab:hover { border-color: var(--blue-500); color: var(--blue-600); }
.tab.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.empty { color: var(--ink-soft); background: var(--bg-soft); border: 1px dashed var(--line); padding: 18px; border-radius: var(--radius); }
.article { max-width: 860px; }
.article-more { margin-top: 46px; }
.article-more h2 { font-size: 1.25rem; }
.article-more .cards { grid-template-columns: repeat(4, 1fr); }
.link-back { display: inline-block; margin-top: 18px; font-weight: 600; }
.search-count { color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.footer { background: var(--blue-900); color: #b9d4ec; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding-top: 40px; padding-bottom: 26px;
}
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 10px; }
.footer-brand .brand-logo { height: 40px; }
.footer-about { font-size: .9rem; margin: 0; }
.footer-contacts, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.footer a { color: #dcebfa; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #1c4368; padding-top: 14px; padding-bottom: 18px; font-size: .85rem;
}

/* ---------- Версия для слабовидящих ---------- */
html.a11y body { background: #fff; }
html.a11y * { color: #000 !important; background-image: none !important; box-shadow: none !important; }
html.a11y body { background: #fff !important; }
html.a11y .topbar, html.a11y .footer { background: #fff !important; border-color: #000; }
html.a11y .hero { background-image: none !important; padding: 40px 0; }
html.a11y .hero-overlay { display: none; }
html.a11y .hero h1, html.a11y .hero p { color: #000 !important; }
html.a11y .header { background: #fff !important; }
html.a11y img { filter: grayscale(100%); }
html.a11y a { text-decoration: underline !important; }
html.a11y .card, html.a11y .comp-row, html.a11y .file, html.a11y .doc-card, html.a11y .quick-card,
html.a11y .side-nav, html.a11y .filters, html.a11y .fact, html.a11y .btn {
  background: #fff !important; border: 1px solid #000 !important;
}
html.a11y .btn { color: #000 !important; }
html.a11y .nav-link, html.a11y .brand-name { color: #000 !important; }
html.a11y .brand-name small, html.a11y .card-text, html.a11y .card-date, html.a11y .comp-venue { color: #000 !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 68px); overflow: auto;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; padding: 10px; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; min-width: 0;
  }
  .nav li.is-open > .sub { display: block; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px; }
  .page-layout { grid-template-columns: 1fr; }
  .side { order: 2; }
  .side-nav { position: static; }
  .cards, .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .article-more .cards { grid-template-columns: 1fr 1fr; }
  .doc-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .brand-name { display: none; }
}
@media (max-width: 560px) {
  .cards, .cards-3, .cards-4, .article-more .cards { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .topbar-contacts { font-size: .78rem; gap: 10px; }
  .hero { padding: 54px 0 60px; }
  .comp-venue { display: none; }
}

/* a11y: шапка без наложений */
html.a11y .brand-name { line-height: 1.35; font-size: .92rem; }
html.a11y .brand-name br { display: none; }
html.a11y .brand { align-items: flex-start; }

/* длинные названия не должны растягивать строку (перенос «Первенство_октябрь_2026» и т.п.) */
.comp-name, .file-name, .card-title, .doc-card-body strong, .quick-title, .comp-venue {
	overflow-wrap: anywhere;
	word-break: break-word;
	min-width: 0;
}
.comp-row { min-width: 0; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
/* старые импортированные таблицы с инлайновым height режут контент (overflow-y становится auto) */
.prose table { height: auto !important; }
.prose img { max-width: 100%; height: auto; }

/* блок вкладок: ровный отступ до контента под ним (на мобильных вкладки переносятся на новую строку) */
.tabs-row { row-gap: 12px; margin-bottom: 22px; }
.tabs-row .page-title { margin-bottom: 0; }
.tabs { row-gap: 8px; }

/* новый логотип (широкий, с прозрачным фоном) */
.brand { gap: 0; }
.brand-logo { height: 96px; width: auto; }
.header-in { min-height: 112px; }
@media (max-width: 900px) {
  .brand-logo { height: 72px; }
  .header-in { min-height: 88px; }
}
.nav > ul > li > .nav-link { padding: 10px; }
.footer-brand { margin-bottom: 12px; }
.footer-brand .brand-logo {
	height: 46px; background: #fff; border-radius: 10px;
	padding: 6px 9px; box-sizing: content-box;
}
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html.a11y .footer-brand .brand-logo { background: #fff !important; }
