/* ============================================================
   Sotka2026 — дизайн-система новостного портала о недвижимости
   Типографика: Manrope (единственная гарнитура)
   Палитра: бумага #F7F6F3, карточки #FFFFFF, чернила #141414,
   приглушенный #6B6B66, акцент — глубокий зеленый #0F3D2E,
   лаймовый маркер #A3E635
   ============================================================ */

:root {
  --paper: #F7F6F3;
  --card: #FFFFFF;
  --ink: #141414;
  --muted: #6B6B66;
  --line: #E5E3DD;
  --green: #0F3D2E;
  --green-soft: #E8F1EC;
  --lime: #A3E635;
  --danger: #B3382C;
  --radius-card: 16px;
  --radius-el: 8px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 8px 24px rgba(20, 20, 20, .06);
  --shadow-lift: 0 2px 4px rgba(20, 20, 20, .06), 0 16px 40px rgba(20, 20, 20, .10);
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .3s var(--curve); }
a:hover { color: #1A6B4F; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

/* ---------- Плавающая навигация ---------- */
.topbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.topbar__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow .5s var(--curve), transform .5s var(--curve);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 8px;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green);
  position: relative;
  flex: 0 0 auto;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2px;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  background:
    linear-gradient(var(--lime), var(--lime)) 0 0 / 8px 8px no-repeat,
    linear-gradient(#fff, #fff) 10px 0 / 8px 8px no-repeat,
    linear-gradient(#fff, #fff) 0 10px / 8px 8px no-repeat,
    linear-gradient(var(--lime), var(--lime)) 10px 10px / 8px 8px no-repeat;
}
.brand__name { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.brand__name span { color: var(--green); }

.topnav { display: flex; gap: 2px; }
.topnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background .3s var(--curve), color .3s var(--curve), transform .5s var(--curve);
}
.topnav a:hover { background: var(--green-soft); color: var(--green); }
.topnav a.is-active { background: var(--green); color: #fff; }

.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .5s var(--curve), background .3s var(--curve), color .3s var(--curve), box-shadow .3s var(--curve);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #15523E; color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--green-soft); color: var(--green); }
.btn--lime { background: var(--lime); color: #14310F; }
.btn--lime:hover { background: #B5F04F; color: #14310F; }
.btn--lg { font-size: 16px; padding: 12px 20px; }

.iconbtn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background .3s var(--curve), border-color .3s var(--curve);
}
.iconbtn:hover { background: var(--green-soft); border-color: var(--green-soft); }
.iconbtn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
.iconbtn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Бургер */
.burger { display: none; position: relative; width: 36px; height: 36px; }
.burger span {
  position: absolute;
  left: 9px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .5s var(--curve), opacity .3s var(--curve);
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 18px; }
.burger span:nth-child(3) { top: 23px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Мобильное меню — полноэкранная панель */
.mobilepanel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(247, 246, 243, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  padding: 96px 24px 48px;
  overflow-y: auto;
}
body.nav-open .mobilepanel { display: block; }
.mobilepanel nav { display: flex; flex-direction: column; gap: 4px; max-width: 480px; }
.mobilepanel nav a {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
}
body.nav-open .mobilepanel nav a {
  animation: linkIn .5s var(--curve) forwards;
}
.mobilepanel nav a:nth-child(1) { animation-delay: 0ms; }
.mobilepanel nav a:nth-child(2) { animation-delay: 60ms; }
.mobilepanel nav a:nth-child(3) { animation-delay: 120ms; }
.mobilepanel nav a:nth-child(4) { animation-delay: 180ms; }
.mobilepanel nav a:nth-child(5) { animation-delay: 240ms; }
.mobilepanel nav a:nth-child(6) { animation-delay: 300ms; }
.mobilepanel nav a:nth-child(7) { animation-delay: 360ms; }
.mobilepanel nav a:nth-child(8) { animation-delay: 400ms; }
@keyframes linkIn { to { opacity: 1; transform: translateY(0); } }

/* Поиск */
.searchpop {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(560px, calc(100% - 32px));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 8px;
  z-index: 110;
  display: none;
}
.searchpop.open { display: block; animation: popIn .5s var(--curve); }
@keyframes popIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.searchpop form { display: flex; gap: 8px; }
.searchpop input[name="story"] {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  padding: 8px 12px;
  color: var(--ink);
}
.searchpop input[name="story"]:focus { outline: none; }

/* ---------- Отступы страницы ---------- */
.page { padding-top: 96px; }

/* ---------- Хиро ---------- */
.hero { padding: 32px 0 48px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}
.hero__copy { max-width: 680px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 12px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.hero__title {
  margin-top: 16px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #000, #666);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 680px;
}
.hero__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Большая карточкаfeatured */
.fcard {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
  display: block;
  min-height: 320px;
}
.fcard__img { position: absolute; inset: 0; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1s var(--curve); }
.fcard:hover .fcard__img img { transform: scale(1.04); }
.fcard__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,61,46,.15) 25%, rgba(15,61,46,.92) 100%);
}
.fcard__body { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; height: 100%; min-height: 320px; justify-content: flex-end; gap: 8px; }
.fcard__tag {
  align-self: flex-start;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #14310F;
  background: var(--lime);
  border-radius: 999px;
  padding: 4px 12px;
}
.fcard__title, .fcard__title a { font-size: 24px; line-height: 32px; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fcard:hover .fcard__title a, .fcard:hover .fcard__title { color: var(--lime); }
.fcard__meta { display: flex; gap: 16px; font-size: 12px; line-height: 16px; color: rgba(255,255,255,.75); }

/* ---------- Заголовки секций ---------- */
.section { padding: 0 0 48px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font-size: 30px; line-height: 36px; }
.sec-head .all { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sec-head .all:hover { color: var(--green); }

/* ---------- Сетка карточек ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards .information, .cards .info-block { grid-column: 1 / -1; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--2 > div { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cards--2 .card { height: auto; }
.cards--2 .card__body { min-height: 136px; }
.cards--2 .sec-head { margin-bottom: 0; }

.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--curve), box-shadow .5s var(--curve);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--curve); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.card__title { font-size: 18px; line-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--green); }
.card__text { font-size: 14px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; align-items: center; gap: 16px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* Компактная строка новости */
.nrow {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  transition: transform .5s var(--curve), box-shadow .5s var(--curve);
}
.nrow:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nrow__img { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--green-soft); }
.nrow__img img { width: 100%; height: 100%; object-fit: cover; }
.nrow__title { font-size: 16px; line-height: 24px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nrow__title a { color: var(--ink); }
.nrow__title a:hover { color: var(--green); }
.nrow__meta { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 4px; }

.nrows { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Слоган со словами-реактором ---------- */
.tagline { padding: 64px 0; }
.tagline p {
  max-width: 680px;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.tagline .w { opacity: .3; transition: opacity .6s var(--curve), color .6s var(--curve); }
.tagline .w.on { opacity: 1; }
.tagline .w.accent { color: transparent; -webkit-text-fill-color: transparent; }
.tagline .w.accent.on {
  background: linear-gradient(90deg, var(--green), #1A6B4F);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 1;
}

/* ---------- Чипсы категорий ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
  transition: background .3s var(--curve), color .3s var(--curve), border-color .3s var(--curve), transform .5s var(--curve);
}
.chip:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }

/* ---------- Баннер-оффер ---------- */
.offer {
  position: relative;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.offer::after {
  content: "";
  position: absolute;
  right: -64px;
  top: -64px;
  width: 280px;
  height: 280px;
  background:
    linear-gradient(var(--lime), var(--lime)) 0 0 / 88px 88px no-repeat,
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) 96px 0 / 88px 88px no-repeat,
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) 0 96px / 88px 88px no-repeat,
    linear-gradient(var(--lime), var(--lime)) 96px 96px / 88px 88px no-repeat;
  transform: rotate(8deg);
  border-radius: 16px;
  opacity: .9;
}
.offer h2 { font-size: 36px; line-height: 1.1; max-width: 680px; }
.offer p { margin-top: 12px; color: rgba(255,255,255,.8); max-width: 680px; }
.offer .btn { margin-top: 24px; position: relative; z-index: 1; }

/* ---------- Страница статьи ---------- */
.article { max-width: 1168px; margin: 0 auto; }
.article--wide .article-body { font-size: 19px; line-height: 32px; }
.article--wide .article-body h2 { font-size: 32px; line-height: 40px; }
.article--wide .article-body h3 { font-size: 26px; line-height: 34px; }
.article__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 16px; }
.article__meta a { color: var(--muted); }
.article__meta a:hover { color: var(--green); }
.article h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }

.article-body { font-size: 18px; line-height: 30px; }
.article-body p { margin: 0 0 16px; }
.article-body h2 { font-size: 30px; line-height: 36px; margin: 32px 0 16px; }
.article-body h3 { font-size: 24px; line-height: 32px; margin: 24px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
/* Обычные картинки — блок с отступами */
.article-body img { border-radius: 16px; margin: 24px 0; max-width: 100%; height: auto; display: block; }
/* Врезка с обтеканием текстом (TBegin |left / |right): отступ между картинкой и текстом */
.article-body img[style*="float:left"] { display: inline-block; float: left; margin: 4px 24px 16px 0; border-radius: 12px; }
.article-body img[style*="float:right"] { display: inline-block; float: right; margin: 4px 0 16px 24px; border-radius: 12px; }
.article-body:after { content: ""; display: block; clear: both; }
.article-body p { margin: 0 0 16px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: none;
  background: var(--green-soft);
  border-radius: 16px;
  padding: 16px 24px;
  margin: 16px 0;
  font-weight: 600;
  color: var(--green);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; line-height: 20px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* Поделиться */
.sharebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 32px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.sharebar__label { font-size: 14px; font-weight: 700; margin-right: 8px; }
.sharebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background .3s var(--curve), color .3s var(--curve), transform .5s var(--curve);
}
.sharebtn:hover { transform: translateY(-2px); }
.sharebtn svg { width: 16px; height: 16px; }
.sharebtn--tg:hover { background: #229ED9; color: #fff; }
.sharebtn--vk:hover { background: #0077FF; color: #fff; }
.sharebtn--ok:hover { background: #ED812B; color: #fff; }
.sharebtn--wa:hover { background: #25D366; color: #fff; }
.sharebtn--copy:hover { background: var(--green); color: #fff; }

/* Инструменты админа */
.admin-tools {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 12px;
  border: 1px dashed var(--green);
  border-radius: 16px;
  background: #FBFDF9;
}
.admin-tools .btn { text-transform: none; }

/* Теги статьи */
.articletags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.articletags a {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
}
.articletags a:hover { background: var(--green); color: #fff; }

/* Хлебные крошки */
.speedbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 24px; }
.speedbar a { color: var(--muted); }
.speedbar a:hover { color: var(--green); }
.speedbar .sep { color: var(--line); }

/* Похожие новости */
.related { margin-top: 48px; }
.related h2 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 48px; }
.comments__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.comments__head h2 { font-size: 24px; line-height: 32px; }
.comments__count { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 4px 12px; }
.comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--green-soft); }
.comment__name { font-weight: 700; font-size: 14px; line-height: 20px; }
.comment__date { font-size: 12px; line-height: 16px; color: var(--muted); }
.comment__text { font-size: 14px; line-height: 22px; color: var(--ink); }

.addcomment { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.addcomment h3 { font-size: 18px; line-height: 28px; margin-bottom: 16px; }
.field { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; line-height: 20px; background: var(--paper); color: var(--ink); margin-bottom: 12px; transition: border-color .3s var(--curve), background .3s var(--curve); }
.field:focus { outline: none; border-color: var(--green); background: #fff; }
.field--area { min-height: 120px; resize: vertical; }
.formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formrow .field { margin-bottom: 12px; }

/* ---------- Пагинация ---------- */
.cards .pagination { grid-column: 1 / -1; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .3s var(--curve), color .3s var(--curve), border-color .3s var(--curve);
}
.pagination span.npage { background: var(--green); border-color: var(--green); color: #fff; }
.pagination a:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }

/* ---------- Сообщения DLE ---------- */
.information, .info-block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 24px; margin-bottom: 24px; font-size: 14px; line-height: 22px; }
.i-error { border-color: #F3C8C3; background: #FDF6F5; color: var(--danger); }
.i-success { border-color: #CBE7D6; background: #F4FAF6; color: var(--green); }
.i-note { border-color: #E5E3DD; background: var(--card); }

/* ---------- Футер ---------- */
.footer { margin-top: 48px; background: var(--green); color: rgba(255,255,255,.85); padding: 48px 0 32px; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer__mark { width: 32px; height: 32px; border-radius: 8px; background: var(--lime); position: relative; }
.footer__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 8px 8px no-repeat,
    linear-gradient(rgba(15,61,46,.25), rgba(15,61,46,.25)) 10px 0 / 8px 8px no-repeat,
    linear-gradient(rgba(15,61,46,.25), rgba(15,61,46,.25)) 0 10px / 8px 8px no-repeat,
    linear-gradient(var(--green), var(--green)) 10px 10px / 8px 8px no-repeat;
}
.footer__name { font-weight: 700; font-size: 16px; color: #fff; }
.footer h4 { color: #fff; font-size: 14px; line-height: 20px; margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  transition: background .3s var(--curve), transform .5s var(--curve);
}
.socials a:hover { background: var(--lime); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255,255,255,.6);
}
.footer .counters { margin-top: 8px; }
.footer .counters img { display: inline-block; }

/* ---------- Скролл-анимации ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--curve), transform .8s var(--curve); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .topnav { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer { grid-template-columns: 1fr; padding: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page { padding-top: 80px; }
  .hero { padding: 16px 0 32px; }
  .hero__title { font-size: 36px; }
  .tagline p { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  .section { padding-bottom: 32px; }
  .sec-head h2 { font-size: 24px; }
  .article h1 { font-size: 30px; }
  .article-body { font-size: 16px; line-height: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .formrow { grid-template-columns: 1fr; }
  .topbar__bar { max-width: calc(100% - 16px); }
  .brand__name { display: none; }
}

/* Печать и мелочи */
.clear { clear: both; }
::selection { background: var(--lime); color: #14310F; }

.print-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); transition: background .3s var(--curve), border-color .3s var(--curve); }
.print-link:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }

.addcomment select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; line-height: 20px; background: var(--paper); color: var(--ink); margin-bottom: 12px; }
.addcomment select:focus { outline: none; border-color: var(--green); background: #fff; }


