/* ===== RESET & VARIABLES ===== */
:root {
  --bg: #f2f0ea;
  --paper: #fbfaf6;
  --paper-2: #f5f1e8;
  --ink: #151515;
  --muted: #6a685f;
  --line: #d8d1c2;
  --line-strong: #151515;
  --accent: #b6542f;
  --accent-2: #d79d31;
  --dark: #2a2723;
  --dark-soft: #3b3731;
  --shadow-sm: 0 6px 12px rgba(21, 21, 21, 0.04);
  --shadow-md: 0 10px 20px rgba(21, 21, 21, 0.06);
  --transition: 200ms cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(182, 84, 47, 0.04) 0, rgba(182, 84, 47, 0) 240px), var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .menu a, .section-kicker, .button, .section-title {
  font-family: "Oswald", "Segoe UI", sans-serif;
}

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

/* ===== CONTAINER & LAYOUT ===== */
.container {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
}

/* ===== HEADER / NAVIGATION (СѓР»СѓС‡С€РµРЅРЅС‹Р№) ===== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 240, 234, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.search-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.8; }

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 0.14rem;
}

.brand-name {
  display: block;
  line-height: 1;
}

.brand small {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: none;
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.2rem;
}
.header-search:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.5);
  transform: scale(0.98);
}
.search-shell.open .header-search {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}
.search-panel {
  position: absolute;
  top: 50%;
  right: 48px;
  width: min(34rem, calc(100vw - 8rem));
  background: rgba(251, 250, 246, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  height: 42px;
  padding: 0 0.35rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  backdrop-filter: blur(14px);
  overflow: visible;
}
.search-shell.open .search-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}
.search-field {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 38px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-field:focus {
  box-shadow: none;
}
.search-results {
  display: none;
  gap: 0.45rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: -1px;
  right: -1px;
  margin-top: 0;
  padding: 0.25rem 0.45rem 0.15rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.98);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
.search-results.active {
  display: grid;
}
.search-item {
  display: grid;
  gap: 0.12rem;
  padding: 0.58rem 0.1rem;
  border-bottom: 1px solid rgba(216, 209, 194, 0.7);
  transition: transform var(--transition), color var(--transition);
}
.search-item:last-child {
  border-bottom: 0;
}
.search-item:hover {
  transform: translateX(3px);
  color: var(--accent);
}
.search-item-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.search-item-title {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.08;
  text-transform: uppercase;
}
.search-item-meta {
  font-size: 0.72rem;
  color: var(--muted);
}
.search-item-preview {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--dark-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-group-label {
  padding: 0.45rem 0.1rem 0.2rem;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-item mark {
  background: rgba(215, 157, 49, 0.28);
  color: inherit;
  padding: 0 0.08em;
}
.search-more {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(216, 209, 194, 0.7);
}
.search-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition);
}
.search-more-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.search-skeleton {
  height: 52px;
  border: 1px solid rgba(216, 209, 194, 0.7);
  background:
    linear-gradient(90deg, rgba(216, 209, 194, 0.22) 0%, rgba(216, 209, 194, 0.5) 50%, rgba(216, 209, 194, 0.22) 100%);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

.menu {
  display: none;
  gap: 0.2rem;
}
.menu a {
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.menu a:hover::after, .menu a.active::after {
  transform: scaleX(1);
}
.menu a:hover, .menu a.active {
  color: var(--accent);
}

/* ===== HERO (РѕР±Р»РµРіС‡С‘РЅРЅС‹Р№, newsвЂ‘СЃС‚РёР»СЊ) ===== */
.hero {
  padding: 0.4rem 0 0.6rem;
}
.hero-grid {
  display: grid;
  gap: 1rem;
}
.hero-side-stack {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
}
.hero-lead {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1.1rem;
  transition: box-shadow var(--transition);
}
.hero-lead:hover {
  box-shadow: var(--shadow-md);
}
.eyebrow, .section-kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero-lead h1 {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.hero-deck {
  max-width: 56ch;
  font-size: 0.9rem;
  color: #3a3833;
  line-height: 1.38;
  margin: 0.25rem 0;
}
.hero-media {
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-lead:hover .hero-media img {
  transform: scale(1.02);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 0;
  background: var(--dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: #1f1c18;
}
.button.alt {
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1b140c;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

/* HERO RAIL вЂ“ СЃРІРµС‚Р»Р°СЏ РєР°СЂС‚РѕС‡РєР°, Р±РµР· РґРѕРјРёРЅРёСЂРѕРІР°РЅРёСЏ */
.hero-rail {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.hero-ad {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  min-width: 0;
}
.hero-ad-label, .hero-ad-text {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.hero-ad-link {
  display: block;
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition);
}
.hero-ad:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c8a576;
}
.hero-ad:hover .hero-ad-label {
  color: #8e3f24;
}
.hero-ad:hover .hero-ad-text {
  color: #3f352c;
}
.hero-ad:hover .hero-ad-media {
  border-color: #c8a576;
}
.hero-ad:hover .hero-ad-link {
  transform: translateY(-1px);
}
.hero-ad-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a14f2f;
  font-weight: 700;
}
.hero-ad-text {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4f473e;
}
.hero-ad-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efe7d7;
}
.hero-ad-media img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-ad:hover .hero-ad-media img {
  transform: scale(1.03);
}
.hero-rail h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.rail-list {
  display: grid;
  gap: 0.7rem;
}
.rail-item {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.rail-item:first-child { padding-top: 0; border-top: 0; }
.rail-item span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rail-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--transition);
}
.rail-item:hover strong { color: var(--accent); }
.rail-media {
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.rail-media img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-rail:hover .rail-media img {
  transform: scale(1.03);
}

/* ===== MAIN CONTENT ===== */
.layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}
.section {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  transition: box-shadow var(--transition);
}
.section:hover {
  box-shadow: var(--shadow-sm);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.section-title {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color var(--transition);
}
.section-link:hover { color: var(--accent); }

.lead-grid {
  display: grid;
  gap: 0.9rem;
}
.featured-story {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.story-media {
  margin-bottom: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.story-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.featured-story:hover .story-media img,
.category-card:hover .category-media img {
  transform: scale(1.03);
}
.featured-story h3 {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.story-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.split-list, .news-list, .sidebar-list, .utility-list {
  display: grid;
  gap: 0.75rem;
}
.story-row, .news-row, .utility-item, .sidebar-item {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  transition: all var(--transition);
}
.story-row:last-child, .news-row:last-child, .utility-item:last-child, .sidebar-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.story-row strong, .news-row strong, .utility-item strong, .sidebar-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.story-row:hover, .news-row:hover, .utility-item:hover, .sidebar-item:hover {
  transform: translateX(2px);
}
.story-row:hover strong, .news-row:hover strong, .utility-item:hover strong, .sidebar-item:hover strong {
  color: var(--accent);
}
.news-row {
  grid-template-columns: 54px 1fr;
  align-items: start;
  gap: 0.7rem;
}
.news-time {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.category-grid {
  display: grid;
  gap: 0.9rem;
}
.category-card {
  padding-top: 0.7rem;
  border-top: 3px solid var(--line-strong);
  transition: transform var(--transition);
}
.category-media {
  margin: 0 0 0.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.category-media img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.category-card:hover {
  transform: translateY(-2px);
}
.category-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== SIDEBAR вЂ“ РѕР±Р»РµРіС‡С‘РЅРЅС‹Рµ Р±Р»РѕРєРё ===== */
.sidebar {
  display: grid;
  gap: 1rem;
}
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.9rem;
  transition: box-shadow var(--transition);
}
/* РїРѕРїСѓР»СЏСЂРЅРѕРµ вЂ“ РјСЏРіРєРёР№ С‚С‘РјРЅС‹Р№ СЃС‚РёР»СЊ, Р±РµР· Р°РіСЂРµСЃСЃРёРІРЅРѕРіРѕ РєРѕРЅС‚СЂР°СЃС‚Р° */
.sidebar-card.dark {
  background:
    linear-gradient(180deg, rgba(215, 157, 49, 0.16) 0%, rgba(182, 84, 47, 0.12) 100%),
    #f3e6d4;
  border-color: #cfb48d;
  color: #2c2118;
}
.sidebar-card.dark .section-head {
  border-bottom-color: rgba(44, 33, 24, 0.22);
}
.sidebar-card.dark .section-link,
.sidebar-card.dark .story-note,
.sidebar-card.dark .section-kicker {
  color: #8f5231;
}
.sidebar-card.dark .sidebar-item strong {
  font-weight: 600;
}
.sidebar-card.dark .sidebar-item:hover strong {
  color: #b6542f;
}

/* РґР°Р№РґР¶РµСЃС‚ / РїРѕРґРїРёСЃРєР° */
.digest {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.9rem;
  transition: all var(--transition);
}
.digest p {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: #3b3832;
}
.digest-form {
  display: grid;
  gap: 0.6rem;
}
.digest-form input {
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: white;
  font: inherit;
  font-size: 0.85rem;
}
.footer {
  margin-top: 1.4rem;
  background: #ebe4d7;
  border-top: 1px solid #d3c6af;
  color: #3c352d;
}
.footer > .container:not(.footer-top):not(.footer-bottom-row) {
  display: none;
}
.footer-top {
  padding: 1.5rem 0 1.2rem;
  display: grid;
  gap: 1rem;
}
.footer-brand {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(60, 53, 45, 0.14);
}
.footer-brand strong {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-brand p {
  margin: 0;
  max-width: 48ch;
  font-size: 0.88rem;
  color: #5d554c;
}
.footer-grid {
  display: grid;
  gap: 1rem;
}
.footer-col {
  display: grid;
  gap: 0.55rem;
}
.footer-title {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2f261f;
}
.footer-links {
  display: grid;
  gap: 0.45rem;
}
.footer-links a,
.footer-links span {
  font-size: 0.84rem;
  color: #5d554c;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-note {
  font-size: 0.82rem;
  color: #6f665c;
  line-height: 1.45;
}
.footer-form {
  display: grid;
  gap: 0.55rem;
}
.footer-form input {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #3b352d;
  background: #fffdf9;
  font: inherit;
  font-size: 0.84rem;
}
.footer-bottom {
  border-top: 1px solid rgba(60, 53, 45, 0.14);
  padding: 0.85rem 0 1.1rem;
}
.footer-bottom-row {
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #6f665c;
}

.footer-promo-strip {
  display: block;
}

.naloger-banner {
  display: grid;
  gap: 0.6rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #cdb491;
  background:
    linear-gradient(135deg, rgba(182, 84, 47, 0.08) 0%, rgba(215, 157, 49, 0.12) 100%),
    #fff9ef;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.naloger-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #b88b4e;
}

.naloger-banner-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(182, 84, 47, 0.12);
  color: #8f4d26;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.naloger-banner-title {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.28rem;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2f261f;
}

.naloger-banner-text {
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #5a4e43;
}

.naloger-banner-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f261f;
  background: #fff;
  color: #2f261f;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.naloger-banner:hover .naloger-banner-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.onja-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 18, 30, 0.72);
}

.onja-modal.is-open {
  display: flex;
}

.onja-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 30px 26px 24px;
  overflow: hidden;
  border: 1px solid rgba(104, 138, 177, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, #fff7ec 0%, #ffffff 48%, #eef7ff 100%);
  box-shadow: 0 24px 70px rgba(16, 35, 58, 0.35);
}

.onja-modal__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  transform: translate(-34%, -40%);
  background: radial-gradient(circle, rgba(255, 188, 122, 0.55) 0%, rgba(255, 188, 122, 0) 72%);
  pointer-events: none;
}

.onja-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 35, 58, 0.08);
  color: #213549;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.onja-modal__close:hover {
  background: rgba(16, 35, 58, 0.14);
  transform: rotate(90deg);
}

.onja-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 118, 210, 0.1);
  color: #1f67b1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.onja-modal__title {
  margin: 0 34px 14px 0;
  font-size: 31px;
  line-height: 1.08;
  color: #1d2f40;
}

.onja-modal__text {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.45;
  color: #445869;
}

.onja-modal__actions {
  display: block;
}

.onja-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8b38 0%, #ff5f5f 100%);
  color: #fff;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(255, 110, 93, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.onja-modal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(255, 110, 93, 0.35);
  filter: saturate(1.05);
}

.onja-modal-open {
  overflow: hidden;
}

/* ===== РђРќРРњРђР¦РР ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}
.animate {
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* ===== РњР•Р”РРђР—РђРџР РћРЎР« (РґРµСЃРєС‚РѕРї first + mobile) ===== */
@media (min-width: 760px) {
  .mobile-toggle { display: none; }
  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
  }
  .topbar { min-height: 76px; }
  .hero-actions { flex-direction: row; }
  .hero-grid { align-items: stretch; }
  .hero-side-stack {
    height: 100%;
    align-content: stretch;
  }
  .hero-ad {
    margin-top: auto;
  }
  .layout { grid-template-columns: 1fr 300px; align-items: start; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1.5fr 0.85fr; }
  .lead-grid { grid-template-columns: 1.2fr 0.8fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-bottom-row {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .featured-story {
    border-bottom: 0;
    padding-bottom: 0;
    padding-right: 1rem;
    border-right: 1px solid var(--line);
  }
}

@media (min-width: 1080px) {
  .hero-lead h1 {
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    line-height: 1.02;
  }

  .featured-story h3 {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.03;
  }

  .hero-media img { height: 260px; }
  .story-media img { height: 250px; }
  .rail-media img { height: 180px; }
  .hero-ad-media img { height: 105px; }
}

@media (max-width: 759px) {
  .container { width: calc(100% - 1rem); }
  .topbar {
    min-height: 62px;
  }
  .topbar-right {
    gap: 0.55rem;
  }
  .menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0.4rem 0.5rem;
    gap: 0.1rem;
    z-index: 99;
  }
  .menu.open a {
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
  }
  .search-panel {
    position: fixed;
    top: 62px;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    height: 42px;
    transform: translateY(0);
  }
  .search-shell.open .search-panel {
    transform: translateY(0);
  }
  .search-input-wrap {
    display: block;
  }
  .search-field {
    height: 38px;
    min-height: 38px;
    font-size: 0.9rem;
    line-height: 38px;
  }
  .search-item-title {
    font-size: 0.92rem;
  }
  .hero { padding-top: 0.2rem; }
  .hero-lead, .hero-rail, .section, .sidebar-card, .digest {
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }
  .hero-lead h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 7vw, 1.9rem);
    line-height: 1.05;
  }
  .hero-deck { font-size: 0.85rem; }
  .hero-media { margin-top: 0.7rem; }
  .hero-media img { height: 180px; }
  .news-row { grid-template-columns: 48px 1fr; gap: 0.6rem; }
  .story-media img { height: 180px; }
  .category-media img { height: 120px; }
  .rail-media img { height: 140px; }
  .hero-ad-media img { height: 105px; }
  .featured-story h3 { max-width: 100%; font-size: 1.25rem; }
  .hero-rail {
    background: var(--paper-2);
    color: var(--ink);
    border-color: var(--line);
  }
  .rail-item span { color: var(--muted); }
  .sidebar-card.dark {
    background: #3a3732;
  }
  .layout { gap: 0.8rem; }
  .section-title { font-size: 1rem; }
  .button { font-size: 0.7rem; padding: 0.5rem 0.9rem; }
  .naloger-banner {
    padding: 1rem;
  }
  .naloger-banner-title {
    font-size: 1.1rem;
  }
  .naloger-banner-text {
    font-size: 0.86rem;
  }
  .naloger-banner-button {
    width: 100%;
  }
  .onja-modal {
    padding: 16px;
  }
  .onja-modal__dialog {
    padding: 26px 20px 20px;
    border-radius: 20px;
  }
  .onja-modal__title {
    font-size: 25px;
  }
  .onja-modal__text {
    font-size: 16px;
  }
  .onja-modal__button {
    width: 100%;
  }
}

/* РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Рµ СѓР»СѓС‡С€РµРЅРёСЏ СЂРёС‚РјР° Рё РІРѕР·РґСѓС…Р° */
.main-column {
  display: grid;
  gap: 1rem;
}
.section + .section {
  margin-top: 0;
}
.story-row, .news-row {
  transition: transform 0.15s, color 0.15s;
}
.category-card .split-list .story-row {
  padding-bottom: 0.5rem;
}
.utility-item a strong {
  font-weight: 600;
}
input, button {
  border-radius: 0;
}
.digest-form button {
  background: var(--dark);
  width: 100%;
}
.digest-form button.alt {
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
  color: #1b140c;
}
.sidebar-card:not(.dark) .sidebar-item strong {
  font-weight: 600;
}
.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.prose-block {
  display: grid;
  gap: 0.9rem;
  color: var(--dark-soft);
  line-height: 1.7;
}
.prose-block a {
  color: var(--accent);
}
.prose-block a:hover {
  text-decoration: underline;
}
