/* ==========================================================================
   Vruz redesign — mockup-aligned tokens and layout
   ========================================================================== */
@font-face {
  font-family: "Bretan Pro";
  src: url("/fonts/BretanPro-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f4f7fb;
  --text: #1c2430;
  --text-secondary: #6b7585;
  --border: #e3e8ef;
  --brand: #2a7ec4;
  --brand-hover: #1f68a6;
  --brand-dark: #163a5c;
  --brand-soft: #e8f2fa;
  --accent: #2a7ec4;
  --shadow: 0 8px 24px rgba(22, 58, 92, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --page-max: 1180px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-display: "Bretan Pro", "Manrope", sans-serif;
}

h1,
h2,
h3,
.section-title,
.feature-card__title,
.side-card__title,
.ochevidets-banner__title,
.geo-card__text strong {
  font-family: var(--font-display);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#page {
  width: auto;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 20px 40px;
  background: transparent;
}

#wrapper,
#container,
#center,
#squeeze,
#sidebar-left,
#sidebar-right {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  position: static !important;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */
.site-header {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo img {
  width: 160px;
  height: auto;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

.site-header__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.site-header__actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.site-header__status {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header__status .weather {
  color: var(--brand);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 4px;
}

.mobile-nav a {
  padding: 10px 0;
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.nav-toggle {
  display: none;
}

html.js .nav-toggle {
  display: inline-flex;
}

@media (min-width: 901px) {
  html.js .nav-toggle {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Shared bits                                                                */
/* -------------------------------------------------------------------------- */
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-line .cat {
  color: var(--brand);
}

.meta-line time {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.section-title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
  font-size: 22px;
  font-weight: 800;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.read-more:hover {
  gap: 10px;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 90px;
  background: var(--surface-tint);
  color: var(--text-secondary);
  overflow: hidden;
}

.img-placeholder svg {
  width: 42%;
  height: 42%;
}

.img-placeholder.cat-afisha { background-color: #f5ccda; color: #d6336c; }
.img-placeholder.cat-avto { background-color: #c3dee7; color: #0f7a9e; }
.img-placeholder.cat-bezopasnost { background-color: #caddf5; color: #2a78d6; }
.img-placeholder.cat-dialog { background-color: #c6ebde; color: #1baf7a; }
.img-placeholder.cat-ekonomika { background-color: #fbe8bf; color: #eda100; }
.img-placeholder.cat-kultura { background-color: #d2cee9; color: #4a3aa7; }
.img-placeholder.cat-nam-pishut { background-color: #fad9cc; color: #eb6834; }
.img-placeholder.cat-politika { background-color: #d6d6f5; color: #5b5bd6; }
.img-placeholder.cat-proisshestviya { background-color: #f8d2d1; color: #e34948; }
.img-placeholder.cat-sport { background-color: #bfe0bf; color: #008300; }
.img-placeholder.cat-tekhnologii { background-color: #c3e9f0; color: #0ea5c4; }
.img-placeholder.cat-vokrug-raiona { background-color: #dee6c7; color: #7a9c1f; }
.img-placeholder.cat-ya-ochevidets { background-color: #f9dee8; color: #e87ba4; }
.img-placeholder.cat-zhkkh { background-color: #e7d9cb; color: #a0672e; }

/* -------------------------------------------------------------------------- */
/* Feature + side cards                                                       */
/* -------------------------------------------------------------------------- */
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #101820;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.feature-card__media {
  position: absolute;
  inset: 0;
}

.feature-card__media img,
.feature-card__media .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.05) 70%);
}

.feature-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 28px;
  color: #fff;
}

.feature-card .meta-line,
.feature-card .meta-line .cat,
.feature-card .meta-line time {
  color: rgba(255, 255, 255, 0.85);
}

.feature-card .meta-line .cat {
  color: #9fd0ff;
}

.feature-card__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.feature-card__title a {
  color: #fff;
}

.feature-card__title a:hover {
  color: #dcebff;
}

.feature-card__teaser {
  margin: 0;
  max-width: 36em;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
}

.feature-card .read-more {
  color: #9fd0ff;
}

.side-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.side-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  background: var(--surface-tint);
}

.side-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.side-card__title a {
  color: var(--text);
}

.side-card__title a:hover {
  color: var(--brand);
}

.side-card__teaser {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* Homepage                                                                   */
/* -------------------------------------------------------------------------- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 28px;
  align-items: start;
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slider__slide[hidden] {
  display: none !important;
}

.hero-slider .feature-card,
.hero-slider .feature-card__body {
  min-height: 420px;
}

.hero-slider__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero-slider__progress {
  display: block;
  width: 56px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-slider__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.hero-slider__counter {
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

.hero-slider__btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hero-slider__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.geo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.geo-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  padding: 16px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: #1a3048 center / cover no-repeat;
  background-image: var(--geo-bg);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.geo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 48, 0.15) 0%, rgba(10, 28, 48, 0.78) 100%);
  transition: background 160ms ease;
}

.geo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 58, 92, 0.18);
  text-decoration: none;
  color: #fff;
}

.geo-card:hover::before {
  background: linear-gradient(180deg, rgba(10, 28, 48, 0.1) 0%, rgba(10, 28, 48, 0.7) 100%);
}

.geo-card__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.geo-card__text strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.geo-card__text span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.home-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: 20px;
}

.home-main__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-main__feature .feature-card,
.home-main__feature .feature-card__body {
  min-height: 420px;
}

/* -------------------------------------------------------------------------- */
/* Widgets / sidebar                                                          */
/* -------------------------------------------------------------------------- */
.widget {
  margin-bottom: 22px;
  padding: 18px 18px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.widget h2 {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 10px 14px;
  border-bottom: none;
  font-size: 18px;
  font-weight: 800;
}

.widget h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.55em;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
}

.widget-sections ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-sections a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.widget-sections li:last-child a {
  border-bottom: none;
}

.widget-sections a:hover,
.widget-sections a.is-active {
  color: var(--brand);
}

.widget-popular ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-popular li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.widget-popular li:last-child {
  border-bottom: none;
}

.widget-popular__num {
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.widget-popular a {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.widget-popular a:hover {
  color: var(--brand);
}

.ochevidets-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 180px;
  color: #fff;
  box-shadow: var(--shadow);
}

.ochevidets-banner img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.ochevidets-banner__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(10, 30, 55, 0.15), rgba(10, 30, 55, 0.78));
}

.ochevidets-banner__title {
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
}

.ochevidets-banner__text {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
}

.ochevidets-banner:hover {
  color: #fff;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Inner pages                                                                */
/* -------------------------------------------------------------------------- */
.inner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.inner-content .title h1,
.inner-content .title h2,
.title h1,
.title h2 {
  float: none;
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

div.title {
  padding-bottom: 0;
}

.section-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.section-top__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-feed,
.view-razdel,
.view-frontpage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.view-frontpage .views-row,
.view-razdel .views-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.view-frontpage .img,
.view-razdel .img {
  float: none;
}

.view-frontpage .img img,
.view-razdel .img img,
.view-frontpage .img-placeholder,
.view-razdel .img-placeholder {
  width: 140px;
  height: 105px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.txt {
  margin: 0;
}

.created a {
  color: var(--text-secondary);
  background: var(--surface-tint);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

h3.title a,
.txt h3 a {
  color: var(--text);
  font-weight: 800;
}

h3.title a:hover,
.txt h3 a:hover {
  color: var(--brand);
}

.teaser {
  color: var(--text-secondary);
  font-size: 14px;
}

.com,
.com a {
  color: var(--text-secondary);
  font-size: 13px;
}

span.basetax {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

span.basetax a {
  color: inherit;
}

.breadcrumb {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--brand);
}

/* Article */
.node .submitted {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.first-img {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.first-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.content {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
}

.content p {
  margin: 0 0 18px;
  padding: 0;
  text-indent: 1.5em;
}

.content p:last-child {
  margin-bottom: 0;
}

.similar,
.meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0;
}

.share-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.share-btn:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}

.share-vk { background: #4a76a8; }
.share-ok { background: #ee8208; }
.share-tg { background: #229ed9; }

ul.links.inline {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.links.inline li {
  display: inline;
  margin-right: 8px;
}

ul.links.inline li a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--brand-dark);
  font-size: 13px;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer,
#footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  height: auto;
  position: relative;
}

.site-footer__brand {
  display: flex;
  align-items: center;
}

.site-footer__logo img {
  width: 120px;
  height: auto;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer__links a,
.site-footer__copy a,
#footer a {
  color: var(--brand-dark);
  font-weight: 700;
}

.site-footer__links a:hover,
.site-footer__copy a:hover {
  color: var(--brand);
}

/* -------------------------------------------------------------------------- */
/* Pager / search / 404                                                       */
/* -------------------------------------------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.pager-prev,
.pager-next {
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-weight: 700;
  padding: 8px 16px;
}

.pager-prev:hover,
.pager-next:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.pager-disabled {
  color: var(--border);
  border-color: var(--border);
}

.pager-current {
  color: var(--text-secondary);
}

.clear-block:after {
  content: "";
  display: table;
  clear: both;
}

.error-404-page .title h1,
.error-404-page .title h2 {
  font-size: 260%;
  color: var(--brand-dark);
}

.error-404-image {
  padding: 10px 0 20px;
}

.error-404-image img {
  width: 320px;
}

.error-404-lead {
  font-size: 130%;
  color: var(--text-secondary);
}

.pagefind-ui {
  color: var(--text);
  font-family: var(--font);
  --pagefind-ui-primary: var(--brand);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--surface);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: var(--font);
}

.top-banner {
  background: #2a4592;
}

.top-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
}

.top-banner-link img {
  display: block;
  width: min(100%, 970px);
  max-height: 90px;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .geo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-main,
  .home-main__grid,
  .home-hero,
  .section-top,
  .inner-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .site-header__row {
    flex-wrap: wrap;
  }

  .geo-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #page {
    padding: 0 14px 28px;
  }

  .side-card,
  .view-frontpage .views-row,
  .view-razdel .views-row {
    grid-template-columns: 1fr;
  }

  .view-frontpage .img img,
  .view-razdel .img img,
  .view-frontpage .img-placeholder,
  .view-razdel .img-placeholder {
    width: 100%;
    height: 180px;
  }

  .feature-card,
  .feature-card__body,
  .home-main__feature .feature-card,
  .home-main__feature .feature-card__body {
    min-height: 320px;
  }

  .feature-card__body {
    padding: 18px;
  }

  .geo-strip {
    grid-template-columns: 1fr;
  }

  .site-footer,
  #footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
