
:root {
  --portal-card: var(--color-surface);
  --portal-border: var(--color-border);
  --portal-accent: var(--color-accent);
  --portal-action: var(--color-accent-action);
  --portal-on-accent: var(--color-on-accent);
  --about-hero-start: #111827;
  --about-hero-mid: #171717;
  --about-hero-end: #2A160D;
  --about-hero-eyebrow: #FDBA74;
  --about-hero-accent: #FB923C;
  --about-hero-text-90: rgba(255,255,255,.90);
  --about-hero-text-70: rgba(255,255,255,.70);
  --about-hero-text-68: rgba(255,255,255,.68);
  --about-hero-text-55: rgba(255,255,255,.55);
  --about-hero-text-45: rgba(255,255,255,.45);
  --about-hero-border: rgba(255,255,255,.16);
  --about-hero-surface: rgba(255,255,255,.04);
  --about-hero-ring: rgba(255,255,255,.025);
  --about-hero-shadow: rgba(0,0,0,.22);
  --about-accent-soft-border: rgba(234,88,12,.28);
  --about-accent-shadow: rgba(234,88,12,.07);
  --about-card-shadow: rgba(17,24,39,.06);
  --about-card-hover-shadow: rgba(17,24,39,.07);
  --about-direction-icon-bg: #FFF7ED;
  --about-direction-hover-border: #FED7AA;
  --about-leader-end: #FFF7ED;
  --about-leader-role: #9A3412;
  --about-contact-border: rgba(255,255,255,.12);
  --about-contact-surface: rgba(255,255,255,.06);
  --about-contact-hover: rgba(255,255,255,.10);
  --about-contact-hover-border: rgba(251,146,60,.55);
}
[data-theme="dark"] {
  --about-direction-icon-bg: #2A1608;
  --about-direction-hover-border: #7C2D12;
  --about-leader-end: #2A1608;
  --about-leader-role: #FDBA88;
  --about-card-shadow: rgba(0,0,0,.28);
  --about-card-hover-shadow: rgba(0,0,0,.34);
}
/* =============================================
   Шапка портальных страниц, поиск, лента новостей
   (страницы /axtaris, /arxiv, /xeberler, /:category)
   ============================================= */
.portal-simple-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--portal-border);
}
.portal-simple-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.portal-brand {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-text);
  white-space: nowrap;
}
.portal-brand b {
  color: var(--portal-accent);
}
.portal-search {
  display: flex;
  flex: 1;
  max-width: 680px;
  margin-left: auto;
}
.portal-search input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--portal-border);
  border-radius: 12px 0 0 12px;
  background: var(--color-surface);
  color: var(--color-text);
}
.portal-search button {
  border: 0;
  padding: 0 18px;
  border-radius: 0 12px 12px 0;
  background: var(--portal-action);
  color: var(--portal-on-accent);
  font-weight: 800;
}
.portal-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  font-weight: 700;
  white-space: nowrap;
}
.portal-lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.portal-lang-btn {
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--color-text-muted);
}
.portal-lang-btn.is-active {
  color: var(--portal-accent);
  background: var(--color-bg-alt);
}
.portal-lang-divider {
  color: var(--color-border);
}
.portal-category-strip {
  border-bottom: 1px solid var(--portal-border);
  background: var(--color-surface);
}
.portal-category-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.portal-category-strip a {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.portal-category-strip__accent {
  color: var(--color-accent) !important;
  font-weight: 800 !important;
}
.portal-page {
  padding-top: 30px;
  padding-bottom: 60px;
}
.portal-page__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-bottom: 3px solid var(--portal-accent);
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.portal-page__head h1 {
  font-size: clamp(27px, 4vw, 42px);
  margin: 0;
}
.portal-page__head a {
  font-weight: 700;
  color: var(--portal-accent);
}
.portal-list {
  display: grid;
  gap: 16px;
}
.portal-list-card {
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  overflow: hidden;
}
.portal-list-card__link {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 14px;
}
.portal-list-card img {
  width: 260px;
  height: 158px;
  object-fit: cover;
  border-radius: 12px;
}
.portal-list-card__cat {
  color: var(--portal-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.portal-list-card h2 {
  font-size: 21px;
  margin: 5px 0 8px;
  line-height: 1.25;
}
.portal-list-card p {
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.portal-list-card small {
  color: var(--color-text-muted);
}
.portal-empty {
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed var(--portal-border);
  border-radius: 16px;
  color: var(--color-text-muted);
}
/* =============================================
   Сервисные виджеты — погода/валюта (/hava, /valyuta),
   таблицы, форма архива по дате
   ============================================= */
.portal-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.portal-service-card {
  padding: 22px;
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  background: var(--portal-card);
}
.portal-service-card h2 {
  margin: 0 0 8px;
}
.portal-service-card__value {
  font-size: 30px;
  font-weight: 900;
  margin: 10px 0;
}
.portal-service-card__meta {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Şəhər seçici (hava/namaz vidcetlərinin başında) — dropdown 48px
   toxunma hündürlüyündə, mobil klaviaturada zoom-un qarşısını almaq
   üçün 16px+ şrift ölçüsü ilə. */
.region-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.region-picker label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.region-picker select {
  flex: 1;
  max-width: 240px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  border-radius: 10px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--portal-card);
  border-radius: 16px;
  overflow: hidden;
}
.portal-table th,
.portal-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--portal-border);
  text-align: left;
}
.portal-table th {
  background: var(--color-bg-alt);
}
.portal-archive-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.portal-archive-form input {
  padding: 12px 14px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
}
.portal-archive-form button {
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--portal-action);
  color: var(--portal-on-accent);
  font-weight: 800;
}

/* =============================================
   Вкладки переключения периода в блоке "Топ по просмотрам"
   ============================================= */
.portal-more-nav {
  margin: 12px auto 0;
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
}
.portal-more-nav a {
  white-space: nowrap;
  padding: 8px 12px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.top-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.top-tabs button {
  border: 1px solid var(--portal-border);
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.top-tabs button.is-active {
  background: var(--portal-action);
  color: var(--portal-on-accent);
  border-color: var(--portal-accent);
}
@media (max-width: 760px) {
  .portal-simple-header__inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .portal-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .portal-list-card__link {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }
  .portal-list-card img {
    width: 110px;
    height: 90px;
  }
  .portal-list-card p {
    display: none;
  }
  .portal-list-card h2 {
    font-size: 16px;
  }
  .portal-hub {
    grid-template-columns: 1fr;
  }
  .portal-pill {
    display: none;
  }
}

/* =============================================
   Пагинация архива/поиска, форма обратной связи
   (/elaqe), футер портальных страниц
   ============================================= */
.portal-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 28px 0;
}
.portal-page-link {
  padding: 9px 13px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  font-weight: 700;
  background: var(--portal-card);
}
.portal-page-link.is-active {
  background: var(--portal-action);
  color: var(--portal-on-accent);
  border-color: var(--portal-accent);
}
.portal-results-meta {
  color: var(--color-text-muted);
  margin: -8px 0 18px;
}
.portal-clear {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-weight: 700;
}
.portal-prose {
  max-width: 820px;
  line-height: 1.75;
}
.portal-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.portal-contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}
.portal-contact-form input,
.portal-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: inherit;
  font: inherit;
}
.portal-contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--portal-action);
  color: var(--portal-on-accent);
  font-weight: 900;
  cursor: pointer;
}
.portal-contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.portal-form-status {
  min-height: 1.5em;
  color: var(--color-text-muted);
}
.portal-footer {
  border-top: 1px solid var(--portal-border);
  padding: 24px 0;
  margin-top: 30px;
  background: var(--color-bg-alt);
}
.portal-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.portal-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.portal-footer a {
  font-weight: 700;
}

/* =========================================================
   Premium bilingual About page
   ========================================================= */
.about-page{background:var(--color-bg-alt)}
.about-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--about-hero-start) 0%,var(--about-hero-mid) 60%,var(--about-hero-end) 100%);color:var(--color-on-dark);padding:clamp(54px,8vw,100px) 0}
.about-hero::before{content:"";position:absolute;inset:-20% -10% auto auto;width:560px;height:560px;border-radius:50%;background:radial-gradient(circle,var(--color-brand-glow),transparent 68%);pointer-events:none}
.about-hero__inner{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:clamp(36px,7vw,88px);align-items:center;position:relative;z-index:1}
.about-hero__copy{max-width:850px}
.about-hero__eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--about-hero-eyebrow);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:18px}
.about-hero__eyebrow .icon{width:16px;height:16px}
.about-hero__title{font-size:clamp(32px,5vw,58px);line-height:1.05;letter-spacing:-.035em;font-weight:900;max-width:900px;margin:0 0 26px;color:var(--color-on-dark)}
.about-hero__lead{font-size:clamp(17px,2vw,21px);line-height:1.7;color:var(--about-hero-text-90);font-weight:600;margin:0 0 18px;max-width:880px}
.about-hero__text{font-size:15px;line-height:1.8;color:var(--about-hero-text-70);margin:0 0 12px;max-width:850px}
.about-hero__mark{display:flex;flex-direction:column;align-items:center;gap:16px}
.about-hero__mark-ring{width:190px;height:190px;border-radius:50%;border:1px solid var(--about-hero-border);box-shadow:0 0 0 18px var(--about-hero-ring),0 24px 80px var(--about-hero-shadow);display:flex;align-items:center;justify-content:center;gap:7px;background:var(--about-hero-surface);-webkit-backdrop-filter: blur(8px);backdrop-filter:blur(8px)}
.about-hero__mark-ring span{font-size:68px;font-weight:900;letter-spacing:-.08em}.about-hero__mark-ring b{color:var(--about-hero-accent);font-size:28px;align-self:center;margin-top:32px}
.about-hero__mark-label{font-size:11px;font-weight:800;letter-spacing:.24em;color:var(--about-hero-text-55)}
.about-section{padding:clamp(52px,7vw,88px) 0;background:var(--color-surface);color:var(--color-text)}
.about-section--soft{background:var(--color-bg-alt)}.about-section--contact{background:var(--color-panel-dark);color:var(--color-on-dark)}
.about-two-col{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:clamp(34px,7vw,90px);align-items:start}
.about-section__head{display:flex;gap:16px;align-items:flex-start}.about-section__head--wide{margin-bottom:30px}
.about-section__number{font-size:12px;font-weight:900;color:var(--color-accent);border:1px solid var(--about-accent-soft-border);border-radius:999px;padding:5px 8px;line-height:1}
.about-section__kicker{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--color-accent);margin:0 0 7px}
.about-section__head h2{font-size:clamp(25px,3.2vw,38px);line-height:1.12;letter-spacing:-.025em;margin:0;color:var(--color-text)}
.about-section--contact .about-section__head h2{color:var(--color-on-dark)}
.about-mission-card{position:relative;background:var(--color-surface);border:1px solid var(--color-border);border-radius:20px;padding:clamp(26px,4vw,42px);box-shadow:0 16px 50px var(--about-card-shadow)}
.about-mission-card::after{content:"";position:absolute;left:0;top:24px;bottom:24px;width:4px;border-radius:0 4px 4px 0;background:var(--color-accent)}
.about-mission-card__icon{width:28px;height:28px;color:var(--color-accent);margin-bottom:16px}.about-mission-card p{font-size:clamp(17px,2vw,20px);line-height:1.75;color:var(--color-text-muted);margin:0;font-weight:600}
.about-directions{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.about-directions li{display:flex;align-items:center;gap:14px;min-height:86px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;padding:17px 18px;font-size:14px;font-weight:700;color:var(--color-text);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.about-directions li:hover{transform:translateY(-2px);box-shadow:0 12px 30px var(--about-card-hover-shadow);border-color:var(--about-direction-hover-border)}
.about-directions__icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;background:var(--color-surface)7ed;color:var(--color-accent)}.about-directions__icon .icon{width:17px;height:17px}
.about-leader-card{display:flex;align-items:center;gap:22px;background:linear-gradient(135deg,var(--color-surface) 0%,var(--about-leader-end) 100%);border:1px solid var(--about-direction-hover-border);border-radius:20px;padding:28px;box-shadow:0 15px 44px var(--about-accent-shadow)}
.about-leader-card__avatar{width:76px;height:76px;border-radius:20px;display:grid;place-items:center;background:var(--color-panel-dark);color:var(--about-hero-eyebrow);font-size:24px;font-weight:900;flex:0 0 76px}
.about-leader-card__body{display:flex;flex-direction:column;gap:6px}.about-leader-card__role{font-size:12px;text-transform:uppercase;letter-spacing:.11em;color:var(--about-leader-role);font-weight:800}.about-leader-card__name{font-size:clamp(22px,3vw,30px);color:var(--color-text);line-height:1.15}
.about-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:4px}
.about-contact-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:15px;padding:20px;border-radius:17px;border:1px solid var(--about-contact-border);background:var(--about-contact-surface);color:var(--color-on-dark);text-decoration:none;transition:background .18s ease,transform .18s ease,border-color .18s ease}
.about-contact-card:hover{background:var(--about-contact-hover);border-color:var(--about-contact-hover-border);transform:translateY(-2px)}
.about-contact-card__icon{width:48px;height:48px;border-radius:14px;background:var(--color-accent-action);color:var(--color-on-accent);display:grid;place-items:center}.about-contact-card__icon .icon{width:19px;height:19px}
.about-contact-card small{display:block;color:var(--about-hero-text-55);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;margin-bottom:4px}.about-contact-card strong{display:block;color:var(--color-on-dark);font-size:clamp(14px,1.8vw,18px);overflow-wrap:anywhere}.about-contact-card__arrow{color:var(--about-hero-accent);font-size:22px}
.about-contact-note{max-width:760px;font-size:15px;line-height:1.75;color:var(--about-hero-text-68);margin:24px 0 0}
.about-signature{display:flex;align-items:center;gap:16px;margin-top:34px;color:var(--color-on-dark)}.about-signature__line{width:46px;height:3px;background:var(--color-accent);border-radius:4px}.about-signature strong{font-size:15px;letter-spacing:.01em}
@media(max-width:900px){.about-hero__inner{grid-template-columns:1fr}.about-hero__mark{display:none}.about-two-col{grid-template-columns:1fr}.about-directions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.about-hero{padding:48px 0}.about-hero__title{font-size:34px}.about-hero__lead{font-size:16px}.about-section{padding:46px 0}.about-directions{grid-template-columns:1fr}.about-contact-grid{grid-template-columns:1fr}.about-contact-card{grid-template-columns:44px minmax(0,1fr) auto;padding:17px}.about-contact-card__icon{width:44px;height:44px}.about-leader-card{align-items:flex-start;padding:22px}.about-leader-card__avatar{width:60px;height:60px;flex-basis:60px;border-radius:16px;font-size:20px}.about-section__head{gap:11px}}


/* === UI audit hardening: portal controls === */
.portal-search input, .portal-archive-form input, .portal-contact-form input, .portal-contact-form textarea, .region-picker select {
  color: var(--color-text);
  background: var(--portal-card);
}
.portal-search input::placeholder, .portal-archive-form input::placeholder, .portal-contact-form input::placeholder, .portal-contact-form textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.portal-search input:focus-visible, .portal-archive-form input:focus-visible, .portal-contact-form input:focus-visible, .portal-contact-form textarea:focus-visible, .region-picker select:focus-visible {
  outline: 2px solid var(--portal-accent);
  outline-offset: 2px;
}
.portal-search button, .portal-archive-form button, .portal-contact-form button, .top-tabs button, .portal-page-link, .portal-clear { min-height: 44px; }
.portal-search button:hover, .portal-archive-form button:hover, .portal-contact-form button:hover, .top-tabs button.is-active:hover, .portal-page-link.is-active:hover { filter: brightness(.94); }
.portal-search button:active, .portal-archive-form button:active, .portal-contact-form button:active { transform: translateY(1px); }
.portal-search button:disabled, .portal-archive-form button:disabled, .portal-contact-form button:disabled { opacity: .62; cursor: not-allowed; }
.portal-list-card__link, .portal-service-card, .about-directions li, .about-leader-card, .about-contact-card { min-width: 0; }
.portal-list-card h2, .portal-list-card p, .portal-service-card, .about-section, .about-leader-card__name { overflow-wrap: anywhere; }
.portal-list-card img { flex-shrink: 0; }

/* Service trend indicators */
.trend-up{color:var(--color-success);font-weight:700}
.trend-down{color:var(--color-danger);font-weight:700}
.trend-flat{color:var(--color-text-muted);font-weight:700}

.portal-footer .container { align-items: center; }
.portal-footer .footer-credit { font-size: 13px; color: var(--color-text-muted); }

/* =========================================================
   Topic, author, "most read" pages and homepage rubric blocks
   (all colours come from design tokens, light and dark themes)
   ========================================================= */
.portal-results-meta { margin: 0 0 var(--space-4); color: var(--color-text-muted); font-size: 14px; }

.portal-tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-5); }
.portal-tab {
  padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--portal-border);
  font-weight: 700; font-size: 14px; color: var(--color-text); text-decoration: none;
}
.portal-tab:hover { border-color: var(--color-accent-action); }
.portal-tab.is-active { background: var(--color-accent-action); border-color: var(--color-accent-action); color: var(--color-on-accent); }

.portal-tag-cloud, .home-topics { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.portal-tag, .home-topics__tag, .article-topics__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--radius-full); background: var(--color-bg-alt); border: 1px solid var(--portal-border);
  color: var(--color-text); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.3;
}
.portal-tag:hover, .home-topics__tag:hover, .article-topics__tag:hover { border-color: var(--color-accent-action); color: var(--color-accent-action); }
.portal-tag span { font-size: 12px; color: var(--color-text-muted); font-weight: 700; }

.article-topics { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-6) 0; }
.article-topics__label, .home-topics__label { font-weight: 800; font-size: 14px; margin-right: var(--space-1); }
.article-meta__author a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.article-breadcrumb a + span + a { font-weight: 600; }

.widget__more { display: inline-block; margin-top: var(--space-3); font-weight: 700; font-size: 14px; color: var(--color-accent-action); text-decoration: none; }
.widget__more:hover { text-decoration: underline; }

/* Homepage: topics strip + rubric blocks */
.home-topics { margin: var(--space-10) 0 var(--space-6); padding: var(--space-4) 0; border-top: 1px solid var(--portal-border); border-bottom: 1px solid var(--portal-border); }
.home-topics__more { font-weight: 700; font-size: 14px; color: var(--color-accent-action); text-decoration: none; margin-left: auto; }

.home-sections {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6);
  margin: var(--space-6) 0 var(--space-12);
}
.home-section { min-width: 0; display: flex; flex-direction: column; }
.home-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
  border-top: 3px solid var(--color-accent-action); padding-top: var(--space-3); margin-bottom: var(--space-4);
}
.home-section__title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.home-section__title a { color: var(--color-text); text-decoration: none; }
.home-section__title a:hover { color: var(--color-accent-action); }
.home-section__all { font-size: 13px; font-weight: 700; color: var(--color-accent-action); text-decoration: none; white-space: nowrap; }
.home-section__lead { display: block; color: var(--color-text); text-decoration: none; }
.home-section__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: var(--color-bg-alt); margin-bottom: var(--space-3); }
.home-section__img picture, .home-section__pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-section__lead-title { font-size: 18px; line-height: 1.3; font-weight: 800; margin: 0 0 var(--space-2); }
.home-section__lead:hover .home-section__lead-title { color: var(--color-accent-action); }
.home-section__excerpt {
  margin: 0 0 var(--space-2); color: var(--color-text-muted); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-section__time, .home-section__list time { font-size: 12px; color: var(--color-text-muted); }
.home-section__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.home-section__list li { padding: var(--space-3) 0; border-top: 1px solid var(--portal-border); display: flex; flex-direction: column; gap: 4px; }
.home-section__list a { color: var(--color-text); font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; }
.home-section__list a:hover { color: var(--color-accent-action); }
.home-section a:focus-visible, .home-topics a:focus-visible, .portal-tab:focus-visible, .portal-tag:focus-visible { outline: 2px solid var(--color-accent-action); outline-offset: 2px; }

@media (max-width: 1023px) { .home-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .home-sections { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .home-topics__more { margin-left: 0; }
}

/* Current rubric in the category strip: underlined, so the reader sees where they are */
.portal-category-strip a { position: relative; padding-bottom: 4px; }
.portal-category-strip a:hover { color: var(--color-accent-action); }
.portal-category-strip a.is-active { color: var(--color-accent-action); }
.portal-category-strip a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: var(--radius-full); background: var(--color-accent-action);
}

/* Main menu on desktop: labels never break into two lines ("Шоу-бизнес",
   "Все новости"), and between 1024 and 1279 px the row is tightened and can
   scroll sideways instead of pushing the whole page wider than the screen. */
@media (min-width: 1024px) {
  .main-nav__link { white-space: nowrap; }
  .main-nav__list { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .main-nav__list::-webkit-scrollbar { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav__link { padding-left: var(--space-2); padding-right: var(--space-2); font-size: 13px; }
  .main-nav__link.is-active::after { left: var(--space-2); right: var(--space-2); }
}
/* 1024–1279 px: "About" and "Advertising" stay in the footer, so the menu row fits. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav__list li:has(> a[href^="/haqqimizda"]),
  .main-nav__list li:has(> a[href^="/reklam"]) { display: none; }
}
