*{box-sizing:border-box;margin:0;padding:0}:root{--background:#fff;--foreground:#202124;--muted:#f1f2f4;--muted-foreground:#62656a;--border:#dedfe2}html{font-family:sans-serif}body{min-height:100vh}button,input,textarea,select{font:inherit}img{max-width:100%}dialog{margin:auto;border:1px solid var(--rule);padding:20px;background:var(--background);color:var(--foreground);border-radius:8px}dialog::backdrop{background:rgba(0,0,0,.45)}[hidden]{display:none!important}.single-column{grid-template-columns:minmax(0,1fr)!important}.dialog-close{float:right;border:0;background:none;font-size:18px}.info-page{max-width:900px;margin:auto}.article-actions button,.toolbar button,.toolbar a,.result-card a,.retry button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid var(--rule);border-radius:6px;background:var(--background);color:var(--foreground);cursor:pointer}.article-actions .article-subscribe-jump,.toolbar .primary,.result-card .primary{background:var(--accent);color:var(--accent-foreground);border-color:var(--accent)}
/* ── News portal template layer ────────────────────────────────────────── */

:root {
  --accent: oklch(0.56 0.22 27);
  --accent-foreground: oklch(0.99 0 0);
  --page: oklch(0.98 0.003 250);
  --rule: oklch(0.9 0.008 255);
  --font-sans: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1280px;
}

@theme inline {
  --color-accent-brand: var(--accent);
  --font-sans: var(--font-sans);
}

html { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background-color: var(--page);
  color: var(--foreground);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Ad containers (no third-party scripts) */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--rule) 45%, transparent);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  margin: 16px 0;
}
.ad-slot-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.ad-top { margin: 0 auto; max-width: var(--container); }

/* Header */
.site-header { background: var(--background); border-bottom: 1px solid var(--rule); }
.top-bar { border-bottom: 1px solid var(--rule); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; overflow-x: auto; scrollbar-width: none; }
.top-bar-inner::-webkit-scrollbar { display: none; }
.services { display: flex; gap: 16px; white-space: nowrap; }
.service-link, .informer a { font-size: 12px; color: var(--muted-foreground); }
.informer a:hover { color: var(--accent); }
.informer { display: flex; gap: 14px; white-space: nowrap; }
.header-social-links { display: flex; gap: 14px; }
.header-social-links a { display: inline-flex; align-items: center; }
.header-social-links .social-mark { display: none; }

.header-main-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 28px; height: 28px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--foreground); border-radius: 2px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { display: block; width: 190px; height: auto; object-fit: contain; }
.brand-logo-compact { width: 150px; max-height: 52px; }
.logo-copy { display: flex; flex-direction: column; line-height: 1.15; }
.logo-copy strong { font-size: 17px; }
.logo-copy small { margin-top: 3px; font-size: 10px; color: var(--muted-foreground); white-space: nowrap; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 4px; background: var(--accent); color: var(--accent-foreground); font-weight: 800; letter-spacing: 0.02em; }
.logo-text { font-weight: 700; font-size: 18px; }
.search { margin-left: auto; display: flex; gap: 8px; }
.search input { height: 36px; width: 240px; max-width: 45vw; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--background); font-size: 14px; }
.search button { height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-foreground); font-size: 14px; cursor: pointer; }

.rubrics { border-top: 1px solid var(--rule); background: var(--background); }
.rubrics-inner { display: flex; gap: 16px; height: 44px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.rubrics-inner::-webkit-scrollbar { display: none; }
.rubric-link { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--foreground); }
.rubric-link.active, .rubric-link:hover { color: var(--accent); }
.send-news-nav { margin-left: auto; color: var(--accent); }

.mobile-menu { position: fixed; inset: 0; z-index: 50; background: var(--background); padding: 16px; overflow-y: auto; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 16px; }
.mobile-menu-head button { background: none; border: 0; font-size: 18px; cursor: pointer; }
.search-mobile { margin: 0 0 16px; }
.search-mobile input { width: 100%; max-width: none; }
.mobile-links { display: flex; flex-direction: column; }
.mobile-links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 600; }
.mobile-links .mobile-send-link { color: var(--accent); }
.mobile-socials { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.mobile-socials > strong { display: block; margin-bottom: 10px; font-size: 13px; text-transform: uppercase; color: var(--muted-foreground); }
.mobile-socials .community-actions { margin-top: 0; }

@media (max-width: 767px) {
  .header-main-inner > .search { display: none; }
  .logo-text { font-size: 16px; white-space: nowrap; }
  .logo-copy { display: none; }
  .brand-logo-compact { width: 132px; max-height: 48px; }
  .header-main-inner { height: 56px; gap: 12px; }
}
@media (min-width: 768px) {
  .burger { display: none; }
}

/* Layout */
.page { padding: 20px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
@media (max-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* Blocks */
.block { background: var(--background); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; margin-bottom: 24px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-head h1, .block-head h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.block-head a { font-size: 13px; color: var(--accent); }

/* Cards */
.card { display: block; background: var(--background); border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); height: 100%; }
.card:hover .card-title { color: var(--accent); }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--muted); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.breaking-label { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-foreground); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.card-rubric { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-foreground); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.card-body { padding: 12px 14px 16px; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.card-excerpt { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); line-height: 1.4; }
.card-lead .card-title { font-size: 28px; }
.card-lead .card-excerpt { font-size: 16px; }
.card-small .card-title { font-size: 15px; }
@media (max-width: 640px) { .card-lead .card-title { font-size: 21px; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.35; }
.feed-item:last-child { border-bottom: 0; }
.feed-time { color: var(--accent); font-variant-numeric: tabular-nums; flex: 0 0 auto; font-weight: 600; }
.feed-title { overflow-wrap: anywhere; }
.feed-item:hover .feed-title { color: var(--accent); }

.popular { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.popular li { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; }
.popular .num { color: var(--accent); font-weight: 800; }
.popular .rubric { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted-foreground); }

/* Breadcrumbs, pagination */
.breadcrumbs { font-size: 13px; color: var(--muted-foreground); margin-bottom: 14px; }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs .current { color: var(--foreground); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pagination .page { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 6px; background: var(--background); font-size: 14px; }
.pagination .page.active { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }

/* Article */
.article { background: var(--background); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; }
@media (max-width: 640px) { .article { padding: 16px; } }
.article h1 { font-size: 34px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.article-breaking { display: inline-block; margin-bottom: 10px; padding: 4px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-foreground); font-size: 12px; font-weight: 800; text-transform: uppercase; }
@media (max-width: 640px) { .article h1 { font-size: 24px; } }
.article .subtitle { margin-top: 12px; font-size: 18px; color: var(--muted-foreground); }
.article .meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; font-size: 13px; color: var(--muted-foreground); }
.article figure { margin: 20px 0; }
.article figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
.article figcaption { margin-top: 8px; font-size: 12px; color: var(--muted-foreground); }
.article-body { font-size: 17px; line-height: 1.65; }
.article-body p { margin: 16px 0; }
.article-body h2 { margin: 28px 0 10px; font-size: 24px; font-weight: 800; }
.article-body h3 { margin: 24px 0 8px; font-size: 20px; font-weight: 700; }
.article-body ul { margin: 16px 0 16px 20px; list-style: disc; }
.article-body li { margin: 6px 0; }
.article-body blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--accent); font-size: 18px; font-style: italic; }
.article-body blockquote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--muted-foreground); }
.embed-slot { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 1px dashed var(--rule); border-radius: 8px; color: var(--muted-foreground); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; }
.share-label { font-size: 13px; color: var(--muted-foreground); }
.share-btn { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--background); font-size: 13px; cursor: pointer; }
.back-link { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--accent); }

/* Community and editorial actions */
.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; background: var(--background); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px; margin-bottom: 24px; }
.community-compact { grid-template-columns: minmax(0, 1fr); margin: 24px 0 4px; }
.community h2 { font-size: 18px; font-weight: 800; }
.community p { margin-top: 5px; color: var(--muted-foreground); font-size: 14px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.community-actions a, .chat-row a, .send-link, .fuel-report-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border-radius: 6px; background: var(--foreground); color: var(--background); font-size: 13px; font-weight: 700; }
.community-actions a:hover, .chat-row a:hover, .send-link:hover { background: var(--accent); color: var(--accent-foreground); }
.community-chats { border-left: 1px solid var(--rule); padding-left: 20px; }
.chat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.chat-row a { min-height: 30px; padding: 0 10px; }
.send-link { margin-top: 14px; background: var(--accent); color: var(--accent-foreground); }
.fuel-report-link { margin: 2px 0 18px; background: var(--accent); color: var(--accent-foreground); min-height: 40px; }
@media (max-width: 640px) { .community { grid-template-columns: minmax(0, 1fr); } .community-chats { border-left: 0; border-top: 1px solid var(--rule); padding: 16px 0 0; } .chat-row { grid-template-columns: minmax(0, 1fr) auto auto; } }

.social-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px; font-size: 9px; line-height: 1; font-weight: 800; }
.community-actions a { gap: 7px; }

.article-actions { margin: 24px 0 4px; padding: 18px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px; }
.article-actions-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.article-action-button { white-space: normal; min-height: 38px; height: auto; }
.article-subscribe-jump { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 6px; background: var(--accent); color: var(--accent-foreground); font-size: 14px; font-weight: 700; }
.article-subscribe-jump svg, .article-service-link > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.article-actions > div[id] { padding-top: 16px; scroll-margin-top: 20px; }
.article-actions h2 { margin: 0; font-size: 18px; font-weight: 800; }
.article-actions p { margin-top: 5px; color: var(--muted-foreground); font-size: 14px; }
.article-service-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted-foreground); font-size: 13px; }
.article-service-link .article-action-button { min-height: 32px; padding: 4px 10px; }
.social-choice-dialog { width: min(440px, calc(100vw - 32px)); border-radius: 8px; }
.social-choice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-choice-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 6px; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 700; }
.social-choice-actions a:hover { background: var(--accent); color: var(--accent-foreground); }

.fuel-category-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 2px 0 18px; padding: 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--background); }
.fuel-category-cta > span { flex: 1 1 300px; color: var(--muted-foreground); font-size: 13px; }
.fuel-category-cta > div { display: flex; gap: 8px; }
.fuel-category-cta a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 34px; border-radius: 6px; background: var(--foreground); color: var(--background); font-size: 13px; font-weight: 700; }

/* Prepared editorial submission */
.page-narrow { max-width: 900px; }
.submission-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--background); }
.submission-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.submission-form input, .submission-form textarea { background: var(--background); }
.form-wide { grid-column: 1 / -1; }
.form-consent { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: flex-start; font-weight: 400 !important; }
.form-status { display: flex; align-items: center; gap: 12px; color: var(--muted-foreground); font-size: 13px; }
.form-error { color: var(--destructive); font-size: 12px; font-weight: 600; }
.form-help { color: var(--muted-foreground); font-size: 12px; font-weight: 400; }
.form-success { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--muted); color: var(--foreground); font-size: 14px; line-height: 1.5; }
.submission-form [aria-invalid="true"] { border-color: var(--destructive); }
.info-copy { margin-top: 20px; font-size: 17px; line-height: 1.65; }
@media (max-width: 640px) { .submission-form { grid-template-columns: minmax(0, 1fr); padding: 16px; } .form-wide { grid-column: auto; } .form-status { align-items: flex-start; flex-direction: column; } }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--rule); background: var(--background); }
.footer-inner { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 20px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-brand p { margin-top: 10px; font-size: 13px; color: var(--muted-foreground); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.footer-social-copy { font-size: 12px; line-height: 1.4; color: var(--muted-foreground); }
.footer-social-links { display: flex; flex-direction: column; gap: 8px; }
.footer-social-links a { display: inline-flex; align-items: center; gap: 7px; }
.footer-subhead { margin-top: 8px; }
.footer-chat-name { font-size: 12px; color: var(--muted-foreground); }
.footer-chat-links { display: flex; gap: 10px; font-weight: 700; }
.footer-legal { padding: 14px 16px 28px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted-foreground); }

@media (max-width: 640px) {
  .article-actions-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-actions-row > * { width: 100%; }
  .article-subscribe-jump { padding: 8px 10px; }
  .social-choice-dialog { top: auto !important; right: auto !important; bottom: 0 !important; left: 50% !important; width: 100%; max-width: none; translate: -50% 0 !important; transform: none !important; border-radius: 10px 10px 0 0; padding: 22px 18px max(22px, env(safe-area-inset-bottom)); }
}

.section-title { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.page-title { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.page-subtitle { color: var(--muted-foreground); margin-bottom: 18px; font-size: 15px; }

.form-result{margin:16px 0;padding:12px 14px;border-radius:6px;font-weight:600}.form-result.ok{background:#eef8ef;border:1px solid #2e7d32;color:#1b5e20}.form-result.err{background:#fdeeee;border:1px solid #b51f22;color:#8c1618}
