@charset "UTF-8";

/* =============================================================================
   VIZITKA KG — дизайн-система
   Цвета взяты с логотипа: красный #BB2231, чёрный #1F1D19.
   Светлая тема — основная. Тёмная включается переключателем или системной
   настройкой. Все цвета описаны токенами в :root, чтобы обе темы совпадали.
   ========================================================================== */

:root {
  /* поверхности */
  --paper:        #FBFAF8;   /* фон страницы: тёплая бумага, не стерильный белый */
  --surface:      #FFFFFF;
  --surface-2:    #F4F1EC;
  --surface-ink:  #17140F;   /* тёмные полосы внутри светлой темы */

  /* текст */
  --ink:          #141110;
  --ink-2:        #635A54;
  --ink-3:        #938981;
  --ink-on-dark:  #F6F1EB;

  --rule:         #E5DFD7;
  --rule-strong:  #CFC6BB;

  /* акценты */
  --red:          #BB2231;
  --red-deep:     #8E1523;
  --red-wash:     rgba(187, 34, 49, .08);
  --gold:         #A9791E;
  --gold-wash:    rgba(169, 121, 30, .12);

  --ok:           #1F7A4C;
  --warn:         #B4761A;
  --err:          #C02434;

  --shadow-sm:    0 1px 2px rgba(20, 17, 16, .06);
  --shadow:       0 2px 6px rgba(20, 17, 16, .07), 0 14px 34px -22px rgba(20, 17, 16, .35);
  --shadow-lg:    0 4px 12px rgba(20, 17, 16, .09), 0 30px 60px -30px rgba(20, 17, 16, .45);

  /* типографика */
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --ui:      "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif:   "PT Serif", Georgia, "Times New Roman", serif;

  --wrap:     1240px;
  --wrap-narrow: 760px;
  --gutter:   24px;
  --radius:   4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #111010;
    --surface:      #1A1817;
    --surface-2:    #221F1D;
    --surface-ink:  #000000;
    --ink:          #F4EFE9;
    --ink-2:        #A79D95;
    --ink-3:        #7C736C;
    --ink-on-dark:  #F6F1EB;
    --rule:         #2E2A26;
    --rule-strong:  #454039;
    --red:          #E8515F;
    --red-deep:     #C13040;
    --red-wash:     rgba(232, 81, 95, .13);
    --gold:         #D9A94E;
    --gold-wash:    rgba(217, 169, 78, .14);
    --ok:           #4CBF88;
    --warn:         #E0A94B;
    --err:          #F0616F;
    --shadow-sm:    0 1px 2px rgba(0, 0, 0, .5);
    --shadow:       0 2px 6px rgba(0, 0, 0, .5), 0 14px 34px -22px rgba(0, 0, 0, .9);
    --shadow-lg:    0 4px 12px rgba(0, 0, 0, .55), 0 30px 60px -30px rgba(0, 0, 0, 1);
  }
}

:root[data-theme="dark"] {
  --paper:        #111010;
  --surface:      #1A1817;
  --surface-2:    #221F1D;
  --surface-ink:  #000000;
  --ink:          #F4EFE9;
  --ink-2:        #A79D95;
  --ink-3:        #7C736C;
  --ink-on-dark:  #F6F1EB;
  --rule:         #2E2A26;
  --rule-strong:  #454039;
  --red:          #E8515F;
  --red-deep:     #C13040;
  --red-wash:     rgba(232, 81, 95, .13);
  --gold:         #D9A94E;
  --gold-wash:    rgba(217, 169, 78, .14);
  --ok:           #4CBF88;
  --warn:         #E0A94B;
  --err:          #F0616F;
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .5);
  --shadow:       0 2px 6px rgba(0, 0, 0, .5), 0 14px 34px -22px rgba(0, 0, 0, .9);
  --shadow-lg:    0 4px 12px rgba(0, 0, 0, .55), 0 30px 60px -30px rgba(0, 0, 0, 1);
}

/* ==========================================================================
   Базовое
   ========================================================================== */

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Орнамент — кыргызский завиток из фирменного стиля
   ========================================================================== */

.orn {
  display: block;
  color: var(--red);
  opacity: .5;
  background-color: currentColor;
  -webkit-mask: url("../img/ornament.png") no-repeat center / contain;
  mask: url("../img/ornament.png") no-repeat center / contain;
}

/* Разделитель полосы: линия — завиток — линия */
.orn-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.orn-divider::before,
.orn-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule-strong), transparent);
}
.orn-divider .orn { width: 26px; height: 44px; flex: none; }
.orn-divider .orn:first-child { transform: scaleX(-1); }

/* Водяной знак в углу крупных блоков */
.orn-mark {
  position: absolute;
  pointer-events: none;
  color: var(--red);
  opacity: .07;
  width: 120px;
  height: 200px;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Метка рубрики
   ========================================================================== */

.tag-cat {
  display: inline-block;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 4px 10px 3px;
  border-radius: 2px;
  white-space: nowrap;
}
.tag-cat--outline {
  background: transparent;
  color: var(--red);
  border: 1px solid currentColor;
}

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}

.meta {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ==========================================================================
   Шапка
   ========================================================================== */

.header { position: relative; z-index: 60; background: var(--paper); }

/* верхняя строка: дата, погода, курс, соцсети, тема */
.topbar {
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar-facts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-facts > * { display: inline-flex; align-items: baseline; white-space: nowrap; }
.topbar-facts b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.topbar-facts .ico { color: var(--red); display: inline-flex; margin-right: 7px; align-self: center; }
.topbar-facts .ico svg { width: 15px; height: 15px; fill: currentColor; }

.topbar-side { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { color: var(--red); background: var(--red-wash); }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.auth-link {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.auth-link:hover { border-color: var(--red); color: var(--red); }
.auth-link svg { width: 15px; height: 15px; fill: currentColor; }

/* строка с логотипом */
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.masthead-logo { justify-self: center; }
.masthead-logo img { height: 66px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.masthead-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  transition: border-color .2s var(--ease);
  min-width: 240px;
}
.search-form:focus-within { border-color: var(--red); }
.search-form input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-width: 0;
}
.search-form input::placeholder { color: var(--ink-3); }
.search-form input:focus { outline: none; }
.search-form button {
  border: 0;
  background: var(--red);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  transition: background .2s var(--ease);
}
.search-form button:hover { background: var(--red-deep); }
.search-form button svg { width: 15px; height: 15px; fill: currentColor; }

/* навигация по рубрикам */
.mainnav {
  border-top: 1px solid var(--rule);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.mainnav .wrap {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 14px;
  white-space: nowrap;
  position: relative;
  transition: color .2s var(--ease);
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.mainnav a:hover, .mainnav a.is-active { color: var(--red); }
.mainnav a:hover::after, .mainnav a.is-active::after { transform: scaleX(1); }

.mainnav .nav-more { margin-left: auto; }

.burger { display: none; }

/* мобильное меню */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, 86vw);
  background: var(--surface);
  border-right: 1px solid var(--rule);
  transform: translateX(-102%);
  transition: transform .32s var(--ease);
  z-index: 120;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head img { height: 40px; width: auto; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.drawer nav a:hover { color: var(--red); }
.drawer-section-title {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 8, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  z-index: 110;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Секции
   ========================================================================== */

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-head .more {
  margin-left: auto;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap .2s var(--ease);
}
.section-head .more:hover { gap: 12px; }
.section-head .more svg { width: 14px; height: 14px; fill: currentColor; }

/* ==========================================================================
   Карточки материалов
   ========================================================================== */

.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-img .tag-cat { position: absolute; left: 12px; top: 12px; z-index: 2; }

.card-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
}
.card-title a {
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: left 92%;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.card-title a:hover { background-size: 100% 1px; color: var(--red); }

.card-lead {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* карточка-обложка: текст поверх фото */
.card-overlay {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--surface-ink);
}
.card-overlay img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .7s var(--ease);
}
.card-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(10, 7, 7, .92) 0%,
    rgba(10, 7, 7, .70) 32%,
    rgba(10, 7, 7, .18) 65%,
    rgba(10, 7, 7, .05) 100%);
}
.card-overlay:hover img { transform: scale(1.04); }
.card-overlay .card-body {
  position: relative;
  padding: 26px;
  color: var(--ink-on-dark);
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}
.card-overlay .card-title { color: #fff; }
.card-overlay .card-title a:hover { color: #fff; }
.card-overlay .meta { color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   Главная: витрина
   ========================================================================== */

.hero { padding: 34px 0 6px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 20px;
}
.hero-lead { position: relative; min-height: 480px; }
.hero-lead .card-body { padding: 34px; gap: 14px; }
.hero-lead .card-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; }
.hero-lead .card-lead { color: rgba(255, 255, 255, .82); -webkit-line-clamp: 2; line-clamp: 2; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.hero-side .card-overlay { min-height: 230px; }
.hero-side .card-title { font-size: 20px; }

/* лента + боковая колонка */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 44px;
  align-items: start;
}

.feed { display: flex; flex-direction: column; gap: 30px; }

.feed-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.feed:last-child .feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item .card-img { aspect-ratio: 4 / 3; }
.feed-item .card-body { display: flex; flex-direction: column; gap: 11px; }
.feed-item .card-title { font-size: 23px; }

/* сетка карточек */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 34px 26px;
}
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); }

/* боковая колонка */
.sidebar { display: flex; flex-direction: column; gap: 34px; position: sticky; top: 20px; }

.widget { display: flex; flex-direction: column; gap: 16px; }
.widget-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-title .orn { width: 12px; height: 20px; opacity: .7; }

.rank-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.rank-item {
  display: grid;
  grid-template-columns: 34px 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.rank-item:last-child { border-bottom: 0; }
.rank-num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  color: var(--rule-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rank-item:hover .rank-num { color: var(--red); }
.rank-item img {
  width: 84px; height: 62px;
  object-fit: cover;
  border-radius: 3px;
}
.rank-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rank-body .card-title { font-size: 15.5px; line-height: 1.28; }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--rule); }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.cat-list a:hover { color: var(--red); padding-left: 6px; }
.cat-list .count {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 9px;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Тёмная полоса — журналы и премия
   ========================================================================== */

.band {
  position: relative;
  background: var(--surface-ink);
  color: var(--ink-on-dark);
  overflow: hidden;
}
.band .section-head { border-bottom-color: rgba(255, 255, 255, .22); }
.band .section-head h2 { color: #fff; }
.band .orn-mark { color: #fff; opacity: .05; }
.band .card-title { color: #fff; }
.band .meta { color: rgba(255, 255, 255, .6); }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 30px 24px;
}
.mag-card { display: flex; flex-direction: column; gap: 14px; }
.mag-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  background: #2a2725;
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease);
}
.mag-cover::before {
  /* корешок журнала */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  z-index: 2;
  background: linear-gradient(to right, rgba(0,0,0,.42), rgba(0,0,0,0));
}
.mag-cover img { width: 100%; height: 100%; object-fit: cover; }
.mag-card:hover .mag-cover { transform: translateY(-8px) rotate(-.6deg); }
.mag-card .card-title { font-size: 17px; }

/* ==========================================================================
   Материал
   ========================================================================== */

.article-hero { padding: 34px 0 26px; text-align: center; }
.article-hero .breadcrumbs { justify-content: center; }
.article-title {
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 600;
  margin: 16px auto 14px;
  max-width: 24ch;
}
.article-hero .meta { justify-content: center; }

.article-cover {
  display: flex;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 34px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
/* Обложки бывают вертикальные: показываем целиком, без обрезки лиц. */
.article-cover img { width: auto; max-width: 100%; max-height: 640px; }

.article-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 15px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.tool svg { width: 15px; height: 15px; fill: currentColor; }
.tool:hover { border-color: var(--red); color: var(--red); }
.tool.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.tool--stat { border-color: transparent; cursor: default; }
.tool--stat:hover { border-color: transparent; color: var(--ink-2); }
.tool-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.tool-spacer { margin-left: auto; }

/* тело статьи — шрифт с настоящей кириллицей, в отличие от старого сайта */
.prose {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.72;
  color: var(--ink);
}
.prose > * { margin: 0 0 1.15em; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { max-width: 68ch; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--display);
  font-weight: 600;
  margin: 1.9em 0 .6em;
  letter-spacing: 0;
}
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 20px; }
.prose a { color: var(--red); border-bottom: 1px solid var(--red-wash); }
.prose a:hover { border-bottom-color: var(--red); }
.prose img {
  border-radius: var(--radius);
  margin: 1.8em auto;
  box-shadow: var(--shadow-sm);
}
.prose figure { margin: 1.8em 0; }
.prose figcaption {
  font-family: var(--ui);
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 9px;
}
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--red);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
/* Материалы переносились из Word — гасим инлайновые шрифты и размеры */
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose [style*="background-color"] { background: none !important; }
.prose font { font-family: inherit !important; font-size: inherit !important; }

.table-scroll { overflow-x: auto; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.tag-cloud a:hover { border-color: var(--red); color: var(--red); background: var(--red-wash); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--rule-strong); }
.breadcrumbs a:hover { color: var(--red); }

/* ==========================================================================
   Заголовок раздела
   ========================================================================== */

.page-head {
  position: relative;
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.page-head h1 {
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  margin-top: 12px;
}
.page-head .orn-mark { right: -18px; top: -30px; height: 220px; width: 130px; }

/* ==========================================================================
   Партнёры
   ========================================================================== */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partner-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.partner-card img {
  height: 96px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.partner-card .name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-left: 3px solid var(--red);
}
.contact-card .label {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-card .value { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--red); }

/* ==========================================================================
   Прайс на рекламу
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.price-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .shot { aspect-ratio: 16 / 10; background: var(--surface-2); }
.price-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.price-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card h3 { font-size: 20px; font-weight: 500; }
.price-tag {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
}
.price-tag .cur { font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: .06em; }

/* ==========================================================================
   Премия и голосование
   ========================================================================== */

.countdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown .unit {
  min-width: 84px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.countdown .num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.countdown .lbl {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.countdown.is-over { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; }

.nomination {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.nomination > .orn-mark { right: -26px; bottom: -40px; opacity: .05; }
.nomination h3 { font-size: 22px; position: relative; }

.nominee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  position: relative;
}
.nominee {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  position: relative;
}
.nominee:hover { border-color: var(--red-deep); transform: translateY(-2px); }
.nominee.is-selected { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.nominee.is-mine::after {
  content: "ваш голос";
  position: absolute;
  right: 10px; top: 10px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 3px 7px;
  border-radius: 2px;
}
.nominee img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: var(--surface-2);
}
.nominee .name { font-family: var(--display); font-size: 15.5px; letter-spacing: .03em; }
.nominee-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.nominee-bar i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width .7s var(--ease);
}
.nominee-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.nominee-stats b { color: var(--ink); }
.voted-note {
  font-size: 14px;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Формы
   ========================================================================== */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field .errorlist {
  list-style: none; margin: 0; padding: 0;
  color: var(--err); font-size: 13px;
}
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
  padding: 13px 18px;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: 15px;
  background: var(--surface-2);
}
.alert-success { border-color: var(--ok); }
.alert-error { border-color: var(--err); }
.alert-info { border-color: var(--gold); }
.alerts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

/* ==========================================================================
   Пагинация
   ========================================================================== */

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 44px;
  list-style: none;
  padding: 0;
}
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: all .2s var(--ease);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .gap { border: 0; min-width: 24px; color: var(--ink-3); }

/* ==========================================================================
   Баннеры
   ========================================================================== */

.banner { display: block; margin: 0 auto; }
.banner img { width: 100%; border-radius: var(--radius); }
.banner-slot { padding: 24px 0; }

/* ==========================================================================
   Подписка
   ========================================================================== */

.subscribe {
  position: relative;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  overflow: hidden;
}
.subscribe h3 { font-size: 26px; color: #fff; text-transform: uppercase; }
.subscribe p { margin: 6px 0 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.subscribe .orn-mark { color: #fff; opacity: .12; right: 2%; top: -30px; }
.subscribe form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.subscribe input {
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  font: inherit;
  min-width: 250px;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, .7); }
.subscribe input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .2); }
.subscribe .btn { background: #fff; color: var(--red); }
.subscribe .btn:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  position: relative;
  margin-top: 70px;
  background: var(--surface-ink);
  color: var(--ink-on-dark);
  overflow: hidden;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 54px 0 44px;
  position: relative;
}
.footer h4 {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img.footer-logo { height: 48px; width: auto; }
.footer-brand p { color: rgba(255, 255, 255, .62); font-size: 14.5px; margin: 0; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .74); font-size: 14.5px; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--red); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .74); }
.footer-contact a:hover { color: #fff; }

.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .8);
  transition: all .25s var(--ease);
}
.social a svg { width: 16px; height: 16px; fill: currentColor; }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a:hover { color: #fff; }

/* орнамент по краям подвала — как на старом сайте, но аккуратно */
.footer-orn {
  position: absolute;
  top: 40px;
  width: 74px;
  height: 250px;
  color: #fff;
  opacity: .06;
  pointer-events: none;
}
.footer-orn.left { left: 12px; transform: scaleX(-1); }
.footer-orn.right { right: 12px; }

/* ==========================================================================
   Наверх
   ========================================================================== */

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.to-top svg { width: 18px; height: 18px; fill: currentColor; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-deep); }

/* ==========================================================================
   Пустое состояние и 404
   ========================================================================== */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty .orn { width: 30px; height: 52px; opacity: .35; }

.error-page { text-align: center; padding: 80px 0; }
.error-code {
  font-family: var(--display);
  font-size: clamp(90px, 20vw, 190px);
  font-weight: 700;
  line-height: .85;
  color: var(--red);
}

/* ==========================================================================
   Личный кабинет
   ========================================================================== */

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 25px;
  flex: none;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 46px; }
  .sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-orn { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .masthead .wrap > * { min-width: 0; }
  .hero-lead { min-height: 380px; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .masthead .wrap { grid-template-columns: auto 1fr auto; }
  .masthead-logo { justify-self: start; }
  .masthead .search-form { display: none; }
  .mainnav .wrap { display: none; }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: none;
  }
  .burger svg { width: 18px; height: 18px; fill: currentColor; }
  .topbar-facts .fact-rates { display: none; }
}

@media (max-width: 700px) {
  /* На узком экране в шапке остаётся логотип и бургер: кнопка «Стать
     партнёром» и соцсети иначе не влезают и растягивают всю страницу.
     Обе группы доступны в выдвижном меню и подвале. */
  .masthead-right { display: none; }
  .masthead .wrap { grid-template-columns: auto 1fr; gap: 14px; }
  .topbar-side .icon-btn:not(.theme-toggle) { display: none; }
  .topbar .wrap { min-height: 38px; }
  .feed-item { grid-template-columns: 1fr; gap: 14px; }
  .hero-side { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .prose { font-size: 17.5px; }
  .rank-item { grid-template-columns: 26px 70px minmax(0, 1fr); gap: 11px; }
  .rank-item img { width: 70px; height: 54px; }
  .footer-main { grid-template-columns: 1fr; }
  .topbar-facts .fact-weather { display: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .masthead-logo img { height: 44px; }
  .article-title { max-width: none; }
  .hero-lead .card-body { padding: 22px; }
  .card-overlay .card-body { padding: 20px; }
  .subscribe { padding: 24px; }
  .nomination { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .mainnav, .masthead-right, .footer, .to-top,
  .article-toolbar, .sidebar, .banner-slot { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; }
}
