@font-face { font-family: Manrope; src: url("/fonts/cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url("/fonts/cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url("/fonts/cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url("/fonts/latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url("/fonts/latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url("/fonts/latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url("/fonts/latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; src: url("/fonts/latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; src: url("/fonts/latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #10242b;
  --muted: #5d7178;
  --line: #d7e3e6;
  --paper: #f3f7f7;
  --white: #fff;
  --deep: #08343c;
  --teal: #0c7c86;
  --teal-dark: #085e66;
  --coral: #e36a45;
  --sand: #f7f1e8;
  --shadow: 0 16px 40px rgba(16, 36, 43, .08);
  --radius: 18px;
  color-scheme: light;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 20; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(243, 247, 247, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar, .wrap, .wide { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.bar { display: flex; align-items: center; gap: 16px; min-height: 72px; width: min(1120px, calc(100% - 32px)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.15; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 44px; height: 35px; object-fit: contain; }
.desktop-nav { display: none; }
.bar-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn, .menu-btn { border: 0; background: var(--white); color: var(--ink); text-decoration: none; border-radius: 999px; min-height: 44px; padding: 0 14px; cursor: pointer; }
.search-panel { display: flex; gap: 8px; width: min(1120px, calc(100% - 32px)); margin: 0 auto 12px; }
.search-panel[hidden] { display: none; }
.search-panel input, .filters input, .auth input, .editor input, .editor textarea, .editor select {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.search-panel button, .filters button, .auth button, .editor button, .btn {
  border: 0; background: var(--teal); color: white; border-radius: 999px; min-height: 48px; padding: 0 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700;
}
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.5); }

.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; background: rgba(8, 28, 34, .45); z-index: 40; }
.drawer-panel { margin-left: auto; width: min(420px, 100%); height: 100%; background: var(--white); padding: 18px; overflow: auto; }
.drawer-head, .block-head, .form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.menu-item { border-bottom: 1px solid var(--line); }
.menu-item > a { display: inline-flex; min-height: 48px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.sub-toggle { float: right; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
.sub-toggle::before { content: ""; display: block; margin: 16px auto; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); width: 8px; height: 8px; transform: rotate(45deg); }
.menu-item.open .sub-toggle::before { transform: rotate(225deg); margin-top: 20px; }
.submenu { display: none; padding: 0 0 12px 12px; }
.menu-item.open .submenu, .desktop-nav .menu-item:hover .submenu, .desktop-nav .menu-item:focus-within .submenu { display: grid; }
.submenu a { display: flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--muted); }

.hero { margin: 20px auto 8px; width: min(1120px, calc(100% - 32px)); background: radial-gradient(1200px 400px at 90% -10%, #1aa3a8, transparent 50%), linear-gradient(160deg, #08343c, #0d5c66 60%, #14919a); color: white; border-radius: 28px; padding: 36px 22px; }
.hero h1 { font-size: clamp(2rem, 8vw, 4.2rem); line-height: .95; margin: 8px 0 12px; letter-spacing: -.04em; }
.hero p { max-width: 46rem; font-size: 1.05rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; opacity: .8; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.block { width: min(1120px, calc(100% - 32px)); margin: 28px auto; }
.block-head h2, h1 { letter-spacing: -.03em; }
.news-grid, .comp-grid, .post-list, .people, .place-list, .event-list { display: grid; gap: 14px; }
.lead, .side-news a, .comp-card, .post-row, .person, .place, .event, .sheet, .auth, .editor, .stat {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.lead, .post-row, .person { display: grid; gap: 12px; color: inherit; text-decoration: none; overflow: hidden; }
.lead img, .post-row img, .ph { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg, #d5ecee, #f7f1e8); }
.lead div, .post-row div, .person div { padding: 4px 16px 16px; }
.side-news { display: grid; gap: 10px; }
.side-news a { display: grid; gap: 6px; padding: 16px; color: inherit; text-decoration: none; }
.side-news span, .rules, .muted, time { color: var(--muted); }
.comp-card { position: relative; display: grid; gap: 6px; padding: 18px 16px 16px; color: inherit; text-decoration: none; min-height: 180px; }
.comp-card h3, .post-row h2, .person h2, .place h2, .event h2 { margin: 0; font-size: 1.08rem; }
.badge { justify-self: start; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; background: var(--sand); }
.kind-pool { background: #d7f3f1; color: #085e66; }
.kind-depth { background: #d9e6f8; color: #1d4e89; }
.kind-other { background: var(--sand); }
.status { font-weight: 700; font-size: .92rem; }
.status-open { color: #157347; }
.status-paused { color: #9a6700; }
.status-closed, .status-finished { color: var(--muted); }
.meta, .rules { margin: 0; }
.tiles { width: min(1120px, calc(100% - 32px)); margin: 10px auto 30px; display: grid; gap: 12px; }
.tiles a { background: var(--deep); color: white; text-decoration: none; border-radius: 20px; padding: 18px; display: grid; gap: 6px; min-height: 110px; }
.tiles span { opacity: .7; font-size: .85rem; }
.filters { display: flex; gap: 8px; margin: 12px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { text-decoration: none; background: white; border-radius: 999px; padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; }
.chip.on { background: var(--deep); color: white; }
.sheet, .auth, .editor { padding: 18px; margin: 18px 0 28px; }
.cover { border-radius: 16px; max-height: 460px; width: 100%; object-fit: cover; }
.facts { padding-left: 18px; }
.prose { line-height: 1.6; overflow-wrap: anywhere; }
.prose p { margin: 0 0 .9rem; }
.prose h2, .prose h3 { line-height: 1.2; }
.prose table { display: block; overflow-x: auto; }
.crumbs { color: var(--muted); }
.table-wrap { overflow-x: auto; background: white; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.people { grid-template-columns: 1fr; }
.person { grid-template-columns: 72px 1fr; align-items: center; padding: 12px; }
.person img, .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--deep); color: white; font-weight: 700; }
.place, .event { padding: 16px; }
#map { min-height: 0; border-radius: 20px; overflow: hidden; margin-bottom: 14px; }
#map.ready { height: 360px; }
.empty { color: var(--muted); }
.error { background: #fde8e4; color: #8d341f; padding: 10px 12px; border-radius: 12px; }
.site-footer { background: var(--deep); color: white; margin-top: 20px; }
.footer-grid { display: grid; gap: 18px; padding: 28px 0; }
.footer-links, .support-link { display: grid; gap: 8px; }
.site-footer a { color: white; }
.later { margin-top: 28px; }

.admin { background: #eef3f4; }
.admin-bar { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--deep); color: white; }
.admin-bar a, .admin-bar button { color: white; background: transparent; border: 0; cursor: pointer; text-decoration: none; min-height: 44px; }
.admin-layout { width: min(1100px, calc(100% - 24px)); margin: 12px auto 40px; }
.admin-nav { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; }
.admin-nav a { white-space: nowrap; background: white; text-decoration: none; border-radius: 999px; padding: 10px 12px; color: var(--ink); }
.admin-main h1 { margin-top: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 700; }
.field input, .field textarea, .field select { font-weight: 400; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 16px; text-decoration: none; color: inherit; display: grid; }
.stat strong { font-size: 1.8rem; }

@media (min-width: 800px) {
  .news-grid { grid-template-columns: 1.4fr .8fr; }
  .comp-grid, .tiles { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .brand span { display: none; }
}
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .desktop-nav { display: flex; gap: 0; flex: 1; min-width: 0; }
  .desktop-nav .menu-item > a { padding: 0 10px; font-size: .95rem; white-space: nowrap; }
  .desktop-nav .menu-item { position: relative; border: 0; }
  .desktop-nav .sub-toggle { display: none; }
  .desktop-nav .submenu { position: absolute; top: 100%; left: 0; min-width: 240px; background: white; border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
  .comp-grid { grid-template-columns: 1fr 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .lead { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
  .lead img { height: 100%; min-height: 280px; }
  .lead div { padding: 22px; }
  .post-row { grid-template-columns: 220px 1fr; }
  .post-row img, .post-row .ph { height: 100%; min-height: 140px; }
}
