@import url("fonts/montserrat.css");
:root {
  color-scheme: light;
  --ink: #202b3a;
  --muted: #667587;
  --accent: #265ca2;
  --accent-dark: #19497f;
  --line: #dce3ec;
  --paper: #ffffff;
  --bg: #f4f6f9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 Montserrat, Arial, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 48px)); margin: auto; }
.site-header { background: var(--accent); color: white; border-bottom: 1px solid var(--accent-dark); }
.header-inner { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 176px; height: 58px; object-fit: cover; object-position: 50% 48.5%; background: var(--accent); border-radius: 2px; }
.brand-description { font-size: 15px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.4; padding-left: 18px; border-left: 1px solid #ffffff55; }
.brand-description small { display: block; margin-top: 3px; color: #e1eafa; font-size: 12px; font-weight: 400; letter-spacing: .3px; }
.header-links { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 600; }
.header-links a:hover { color: white; text-decoration: underline; }
.back-link { font-size: 14px; color: #e1eafa; font-weight: 400; }
.release-note { margin: 24px 0; padding: 10px 16px; background: #edf2f9; border-left: 3px solid var(--accent); color: #435b78; font-size: 13px; }
.intro { padding: 26px 0 32px; max-width: 850px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
h1 { margin: 12px 0 22px; font-size: clamp(30px, 3.6vw, 43px); line-height: 1.25; letter-spacing: -.65px; }
.intro > p:last-child { max-width: 680px; color: var(--muted); }
.categories { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); background: white; border-radius: 4px; font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.topic-list { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.topic-row { padding: 25px 30px; display: flex; gap: 30px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 0; }
.topic-row h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; }
.topic-row h2 a:hover { color: var(--accent); }
.topic-row p:not(.eyebrow) { margin: 8px 0 12px; color: #526174; }
.topic-row time { color: var(--muted); font-size: 12px; }
.count { min-width: 90px; text-align: center; color: var(--muted); }
.count strong { display: block; font-size: 22px; color: var(--accent); }
.count span { font-size: 12px; }
.empty { padding: 45px 30px; }
.empty h2 { font-size: 23px; line-height: 1.4; }
.empty p, .discussion p { color: var(--muted); }
.breadcrumbs { margin: 28px 0; color: var(--muted); font-size: 14px; }
.breadcrumbs a:hover { color: var(--accent); }
.news-card { background: white; border: 1px solid var(--line); padding: clamp(22px, 4.5vw, 58px); border-radius: 6px; }
.news-card h1 { max-width: 900px; }
.editor-label { color: var(--muted); font-size: 14px; }
.news-image { display: block; width: auto; max-width: 100%; max-height: 650px; object-fit: contain; margin: 28px auto; }
.news-body { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.news-body img { max-width: 100%; height: auto; }
.news-body a { color: var(--accent); text-decoration: underline; }
.news-body blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.original { display: inline-block; padding: 12px 22px; margin-top: 22px; background: var(--accent); color: white; border-radius: 4px; font-weight: 600; }
.original:hover { background: var(--accent-dark); text-decoration: none; }
.notice { padding: 18px 20px; background: #fff5df; border-left: 3px solid #d5a341; border-radius: 3px; }
.discussion { padding: 20px 0; }
.pagination { padding: 25px 0; color: var(--accent); }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding: 25px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.community { padding-bottom: 35px; }
.narrow { max-width: 720px; margin: 30px auto; }
.invitation { width: min(480px, calc(100% - 32px)); padding: 35px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; color: var(--ink); box-shadow: 0 25px 100px #132b3940; }
.invitation::backdrop { background: #14284280; }
.invitation h2 { margin-top: 0; font-size: 27px; line-height: 1.3; }
.invitation .original { display: block; text-align: center; }
.invitation form { margin-top: 15px; text-align: center; }
.text-button { padding: 10px; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.provider-button { width: 100%; margin: 8px 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.provider-button:hover:enabled { border-color: var(--accent); background: #f0f5fc; }
.provider-button:disabled { color: var(--muted); background: var(--bg); cursor: default; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 14px; }
.question-form { display: grid; gap: 12px; }
.question-form label { margin-top: 12px; font-weight: 700; }
.question-form input, .question-form textarea { width: 100%; padding: 12px; border: 1px solid #b8c6d8; border-radius: 4px; background: white; color: var(--ink); font: inherit; }
.question-form input:focus, .question-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
button.original { justify-self: start; margin-top: 0; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.editor-answer { margin: 28px 0; padding: 28px; border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; background: #eaf1fa; }
.editor-answer h2 { margin: 8px 0 20px; font-size: 22px; }
.question-body { font-size: 19px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
#vkid-widget { margin: 24px 0 16px; min-height: 44px; }
#vkid-error { color: #8c332a; font-size: 14px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { padding: 14px 0 0; gap: 14px; flex-wrap: wrap; }
  .brand { gap: 14px; }
  .brand-logo { width: 152px; height: 50px; }
  .brand-description { padding-left: 14px; font-size: 13px; }
  .brand-description small { font-size: 11px; }
  .header-links { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 20px; padding: 12px 0; border-top: 1px solid #ffffff33; font-size: 13px; }
  .back-link { font-size: 13px; }
  .intro { padding-top: 18px; }
  .topic-row { padding: 22px 18px; gap: 14px; align-items: flex-start; }
  .topic-row h2 { font-size: 19px; }
  .count { min-width: 55px; }
  .count span { font-size: 10px; }
  .footer { display: block; }
  .footer span { display: block; margin-top: 8px; }
  .invitation { padding: 25px; }
  .editor-answer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

