/* Вектор — светлая «бумажная» тема, serif-заголовки + системный sans.
   Без внешних зависимостей: ни шрифтовых CDN, ни картинок-сервисов.
   Плейсхолдер иллюстраций — локальный SVG (data URI). */

/* ===== Токены ===== */
:root {
  --vk-bg:       #f4f3ec;
  --vk-paper:    #fffdf8;
  --vk-ink:      #22271f;
  --vk-text:     #272c24;
  --vk-muted:    #6d7368;
  --vk-muted-2:  #8f9489;
  --vk-line:     #e2dfd2;
  --vk-line-2:   #cdcab8;
  --vk-accent:   #1d6f52;
  --vk-accent-2: #b97a1f;
  --vk-dark:     #1e231d;
  --vk-radius:    10px;
  --vk-radius-sm: 7px;
  --vk-serif: Georgia, "Times New Roman", "PT Serif", "Noto Serif", serif;
  --vk-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --vk-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ===== База ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vk-bg);
  color: var(--vk-text);
  font-family: var(--vk-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
::selection { background: rgba(29, 111, 82, .22); }

.vk-wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.vk-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--vk-accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.vk-skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--vk-accent); outline-offset: 2px; border-radius: 4px; }

/* ===== Шапка ===== */
.vk-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 3px solid var(--vk-accent);
  border-bottom: 1px solid var(--vk-line);
}
.vk-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.vk-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.vk-brand-mark { display: inline-grid; place-items: center; flex: none; }
.vk-brand-mark-sm { transform: scale(.78); }
.vk-brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.vk-brand-name {
  font-family: var(--vk-serif);
  font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; color: var(--vk-ink);
}
.vk-brand-tag {
  font-family: var(--vk-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--vk-accent-2);
}
.vk-nav { display: flex; align-items: center; gap: 1.4rem; }
.vk-nav a {
  color: var(--vk-muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: color .15s ease;
}
.vk-nav a:hover { color: var(--vk-accent); }

/* ===== Hero ===== */
.vk-hero {
  background: var(--vk-paper);
  border-bottom: 1px solid var(--vk-line);
  padding: 3.2rem 0 3.6rem;
}
.vk-hero-inner { max-width: 800px; }
.vk-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--vk-mono); font-size: .74rem; letter-spacing: .05em;
  color: var(--vk-muted);
  background: var(--vk-bg);
  border: 1px solid var(--vk-line-2);
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.vk-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vk-accent);
  box-shadow: 0 0 0 0 rgba(29, 111, 82, .5);
  animation: vk-pulse 2.2s infinite;
}
@keyframes vk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 111, 82, .5); }
  70% { box-shadow: 0 0 0 10px rgba(29, 111, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 111, 82, 0); }
}
.vk-hero-title {
  font-family: var(--vk-serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.01em;
  margin-bottom: .95rem;
}
.vk-hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--vk-muted); max-width: 640px; margin-bottom: 1.1rem;
}
.vk-hero-intro {
  font-size: .96rem; color: var(--vk-muted-2); max-width: 620px; line-height: 1.65;
  border-left: 3px solid var(--vk-line-2); padding-left: .95rem;
}

/* ===== Подборка дня ===== */
.vk-featured {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.1rem;
  margin-top: -1.9rem; position: relative; z-index: 3;
}
.vk-feat-stack { display: grid; gap: 1.1rem; }
.vk-feat {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--vk-radius); min-height: 235px;
  background: linear-gradient(150deg, #245e48 0%, #1d6f52 46%, #16382b 100%);
  text-decoration: none; color: #fff;
  border: 1px solid var(--vk-line-2);
  box-shadow: 0 14px 34px rgba(34, 39, 31, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.vk-feat:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(34, 39, 31, .24); }
.vk-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vk-feat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 26, .04) 30%, rgba(23, 32, 26, .9) 100%);
}
.vk-feat-body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: .45rem; justify-content: flex-end;
}
.vk-feat-big { min-height: 470px; }
.vk-feat-big .vk-feat-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.vk-feat-title {
  font-family: var(--vk-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3;
}

/* ===== Чипы и мета ===== */
.vk-chip {
  font-family: var(--vk-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--vk-accent-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.vk-feat .vk-chip { color: #ecd9ae; }
.vk-date { font-family: var(--vk-mono); font-size: .73rem; color: var(--vk-muted-2); white-space: nowrap; }

/* ===== Секции ===== */
.vk-section { padding: 2.8rem 0 1.5rem; }
.vk-section-top { padding-top: 2.2rem; }
.vk-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
  border-bottom: 3px double var(--vk-line-2); padding-bottom: .75rem;
}
.vk-section-title {
  font-family: var(--vk-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem); font-weight: 700; letter-spacing: 0;
  display: flex; align-items: center; gap: .6rem;
}
.vk-section-title::before {
  content: ""; width: 7px; height: 7px; background: var(--vk-accent-2);
  transform: rotate(45deg); flex: none;
}
.vk-section-link {
  font-size: .9rem; font-weight: 600; color: var(--vk-accent); text-decoration: none;
}
.vk-section-link:hover { text-decoration: underline; }
.vk-updated { font-family: var(--vk-mono); font-size: .74rem; color: var(--vk-muted-2); }

/* ===== Сетка карточек ===== */
.vk-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.vk-card {
  background: var(--vk-paper);
  border: 1px solid var(--vk-line); border-radius: var(--vk-radius);
  overflow: hidden; height: 100%;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.vk-card:hover {
  transform: translateY(-3px); border-color: var(--vk-line-2);
  box-shadow: 0 14px 30px rgba(34, 39, 31, .12);
}
.vk-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.vk-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #ebe9de;
}
.vk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vk-card:hover .vk-media img { transform: scale(1.04); }
.vk-media.is-empty {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 54'%3E%3Cpath d='M26 40 L62 12' stroke='%231d6f52' stroke-opacity='.34' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M44 9 H65 V30' fill='none' stroke='%231d6f52' stroke-opacity='.34' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px auto no-repeat,
    repeating-linear-gradient(135deg, #ebe9de 0 10px, #e4e2d4 10px 20px);
}
.vk-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.vk-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.vk-card-title {
  font-family: var(--vk-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.32;
}
.vk-card-sum { font-size: .9rem; line-height: 1.55; color: var(--vk-muted); }
.vk-card-more {
  margin-top: auto; padding-top: .35rem; font-size: .85rem; font-weight: 600;
  color: var(--vk-accent);
}

/* ===== Кнопки ===== */
.vk-cta { text-align: center; margin-top: 1.9rem; }
.vk-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--vk-accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem;
  padding: .72rem 1.35rem; border-radius: var(--vk-radius-sm); border: none;
  box-shadow: 0 8px 20px rgba(29, 111, 82, .26);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.vk-btn:hover { transform: translateY(-2px); background: #17603f; box-shadow: 0 12px 26px rgba(29, 111, 82, .34); }

/* ===== Пагинатор ===== */
.vk-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2.2rem 0 .6rem; }
.vk-pg {
  min-width: 42px; height: 42px; padding: 0 .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--vk-line); border-radius: var(--vk-radius-sm);
  background: var(--vk-paper);
  color: var(--vk-text); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background .14s ease, border-color .14s ease;
}
a.vk-pg:hover { background: var(--vk-bg); border-color: var(--vk-line-2); }
.vk-pg.is-active {
  background: var(--vk-accent); border-color: var(--vk-accent); color: #fff; cursor: default;
}
.vk-pg.is-gap, .vk-pg.is-disabled { color: var(--vk-muted-2); background: transparent; cursor: default; }
.vk-pager-info { text-align: center; font-family: var(--vk-mono); font-size: .75rem; color: var(--vk-muted-2); }

/* ===== Статья ===== */
.vk-article { max-width: 760px; margin: 0 auto; padding: 1.8rem 0 2.4rem; }
.vk-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--vk-accent);
  text-decoration: none; margin-bottom: 1.3rem;
}
.vk-back:hover { text-decoration: underline; }
.vk-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: .8rem;
}
.vk-article-title {
  font-family: var(--vk-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 700; line-height: 1.18; margin-bottom: 1.2rem;
}
.vk-article-hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--vk-radius); border: 1px solid var(--vk-line);
  margin-bottom: 1.5rem; background: #ebe9de;
}
.vk-article-body p {
  font-family: var(--vk-serif);
  font-size: 1.08rem; line-height: 1.75; color: var(--vk-text); margin-bottom: 1.05rem;
}
.vk-note {
  background: #eef3ee;
  border: 1px solid #d6e2d8; border-left: 3px solid var(--vk-accent);
  border-radius: var(--vk-radius-sm); padding: .85rem 1.1rem;
  color: #4c5850; font-size: .9rem; margin: 1.3rem 0;
}
.vk-article-actions { margin-top: 1.3rem; }

/* ===== Подвал ===== */
.vk-footer { background: var(--vk-dark); color: #b9bfb4; margin-top: 3rem; }
.vk-footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem;
  padding: 2.6rem 0 1.8rem;
}
.vk-footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.vk-footer-name {
  font-family: var(--vk-serif); font-size: 1.15rem; font-weight: 700; color: #f2f0e8;
}
.vk-footer-brand p, .vk-footer-col p { font-size: .88rem; line-height: 1.65; color: #b9bfb4; margin: 0; }
.vk-footer-col h6 {
  font-family: var(--vk-mono);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: #e7e4d9; margin-bottom: .9rem; font-weight: 600;
}
.vk-footer-col a {
  display: block; color: #b9bfb4; text-decoration: none; font-size: .9rem; margin-bottom: .5rem;
  transition: color .15s ease;
}
.vk-footer-col a:hover { color: #fff; }
.vk-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 0 1.35rem; border-top: 1px solid rgba(255, 253, 248, .1);
  font-size: .84rem; color: #9aa093; flex-wrap: wrap;
}

/* ===== Скелетоны и статусы ===== */
.vk-status { text-align: center; color: var(--vk-muted); padding: 4rem 1rem; }
.vk-sk { position: relative; overflow: hidden; background: #e9e7db; border-radius: var(--vk-radius-sm); }
.vk-sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, .65), transparent);
  animation: vk-sk 1.4s infinite;
}
@keyframes vk-sk {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.vk-sk-hero { height: 220px; border-radius: var(--vk-radius); margin-bottom: 1.4rem; }
.vk-sk-card { height: 330px; border-radius: var(--vk-radius); }

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
  .vk-featured { grid-template-columns: 1fr; }
  .vk-feat-big { min-height: 360px; }
  .vk-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .vk-wrap { width: min(1160px, 100% - 1.6rem); }
  .vk-topbar-inner { flex-wrap: wrap; row-gap: .35rem; padding-bottom: .55rem; min-height: 0; }
  .vk-nav { gap: .95rem; flex-wrap: wrap; padding-bottom: .35rem; }
  .vk-hero { padding: 2.2rem 0 2.8rem; }
  .vk-featured { margin-top: -1.4rem; }
  .vk-feat-big { min-height: 300px; }
  .vk-footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .vk-article-body p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vk-card, .vk-feat, .vk-media img, .vk-pulse, .vk-sk::after, .vk-btn { transition: none !important; animation: none !important; }
}
