@charset "UTF-8";

/* ============================================================
   Марафон «Закрываем 2026 без ошибок и рисков» — /marathon-2026/assets/css/style.css
   Стили лендинга поверх шаблона pravovest, префикс mr-. В сборщик шаблона не входят.
   Структура: hero + календарь публикаций (даты в строку) · ближайшие мероприятия | лента свернутых постов | форма.
   Размеры в px: на ≤767px шаблон ставит html{font-size:62.5%}, rem там равен 10px.
   Красным — только ссылки и кликабельные элементы (договорённость с клиентом).
   ============================================================ */

.mr-page {
  --mr-red: #9e0e11;
  --mr-red-dark: #7d0b0e;
  --mr-ink: #1d1d1f;
  --mr-text: #3c3c40;
  --mr-muted: #7a7a7e;
  --mr-beige: #f6f3ee;
  --mr-beige-2: #efe9e0;
  --mr-line: #e9e4dd;
  --mr-graphite: #2c2927;
  --mr-radius: 20px;
  --mr-ease: cubic-bezier(.22, .61, .36, 1);
  --mr-sticky: 136px;
  /* участки дистанции: важность растет к концу года */
  --mr-q1: #e4d6c6;
  --mr-q2: #cfae95;
  --mr-q3: #b0735a;
  --mr-q4: #7c2a1f;
  color: var(--mr-text);
  font-size: 17px;
  line-height: 1.6;
}
.mr-page *,
.mr-page *::before,
.mr-page *::after { box-sizing: border-box; }
.mr-page p { margin: 0 0 14px; font-size: inherit; line-height: inherit; }
.mr-page li { font-size: inherit; line-height: inherit; }
.mr-page p:last-child { margin-bottom: 0; }
.mr-page img { max-width: 100%; height: auto; display: block; }
.mr-page strong, .mr-page b { color: var(--mr-ink); font-weight: 600; }
.mr-page a:where(:not(.btn, .kb-card, .mr-ev)) { color: var(--mr-red); text-decoration: underline; text-decoration-color: rgba(158,14,17,.3); text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.mr-page a:where(:not(.btn, .kb-card, .mr-ev)):hover { text-decoration-color: var(--mr-red); }
.mr-page svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.mr-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.mr-page .mr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px 3px; /* шрифт сидит низко — поднимаем текст */
  border: 1px solid var(--mr-red); border-radius: 50px;
  background: var(--mr-red); color: #fff;
  font-size: 17px; line-height: 1.2; font-weight: 500; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--mr-ease), color .25s var(--mr-ease), transform .25s var(--mr-ease), box-shadow .25s var(--mr-ease);
}
.mr-page .mr-btn:hover { background: var(--mr-red-dark); border-color: var(--mr-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(158,14,17,.6); }
.mr-page .mr-btn:active { transform: translateY(0); box-shadow: none; }
.mr-page .mr-btn--outline { background: rgba(255,255,255,.6); color: var(--mr-red); }
.mr-page .mr-btn--outline:hover { background: var(--mr-red); color: #fff; }
.mr-page .mr-btn--block { width: 100%; }

/* ============================================================
   HERO: текст поверх иллюстрации
   ============================================================ */
.mr-hero { padding: 24px 0 0; }
.mr-hero__box {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 720px;
  padding: 72px 72px 40px;
  background: var(--mr-beige);
  border-radius: var(--mr-radius);
  overflow: hidden;
}
.mr-hero__visual { position: absolute; top: 0; right: 0; bottom: 0; width: 76%; z-index: 0; }
.mr-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* плавный переход картинки в фон под текстом */
.mr-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mr-beige) 0%, rgba(246,243,238,.85) 18%, rgba(246,243,238,0) 42%), linear-gradient(0deg, var(--mr-beige) 0%, rgba(246,243,238,0) 28%); }
.mr-hero__content { position: relative; z-index: 2; max-width: 780px; padding-bottom: 40px; }
.mr-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 8px 18px 9px 14px;
  background: #fff; border: 1px solid var(--mr-line); border-radius: 50px;
  color: var(--mr-ink);
  font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.mr-badge__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mr-graphite); }
.mr-badge__pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--mr-graphite); opacity: 0;
  animation: mr-pulse 2.4s var(--mr-ease) infinite 1.2s;
}
.mr-hero__title {
  margin: 0 0 24px;
  color: var(--mr-ink);
  font-size: 62px; line-height: 1.04; font-weight: 700; letter-spacing: -.02em;
}
.mr-hero__lead { max-width: 540px; margin: 0 0 36px !important; font-size: 19px; line-height: 1.55; color: var(--mr-text); }

/* Появление hero — на CSS, без зависимости от JS */
@keyframes mr-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes mr-visual { from { opacity: 0; transform: scale(1.06) translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes mr-pulse { 0% { opacity: .8; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.mr-badge, .mr-hero__title, .mr-hero__lead, .mr-hero .mr-btns, .mr-cal { animation: mr-up .8s var(--mr-ease) both; }
.mr-hero__title { animation-delay: .08s; }
.mr-hero__lead { animation-delay: .16s; }
.mr-hero .mr-btns { animation-delay: .24s; }
.mr-cal { animation-delay: .32s; }
.mr-hero__visual img { animation: mr-visual 1.4s var(--mr-ease) both; transform-origin: 80% 60%; }

/* ---------- Календарь публикаций: даты месяца в одну строку ---------- */
.mr-cal {
  position: relative; z-index: 2;
  margin-top: auto; padding: 20px 24px 18px;
  background: rgba(255,255,255,.94); border-radius: 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(44,41,39,.04), 0 16px 40px -24px rgba(44,41,39,.35);
}
.mr-cal__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 14px; }
.mr-cal__title { display: flex; align-items: baseline; gap: 12px; margin-right: auto; }
.mr-cal__month { color: var(--mr-ink); font-size: 20px; font-weight: 600; text-transform: capitalize; }
.mr-cal__navs { display: flex; gap: 8px; }
.mr-cal__nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--mr-line); border-radius: 50%; background: #fff; color: var(--mr-red);
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.mr-cal__nav svg { width: 16px; height: 16px; stroke-width: 1.8; }
.mr-cal__nav:hover:not(:disabled) { background: var(--mr-red); border-color: var(--mr-red); color: #fff; }
.mr-cal__nav:disabled { opacity: .35; color: var(--mr-muted); cursor: default; }
.mr-cal__viewport { overflow-x: auto; overflow-y: hidden; margin: 0 -6px; padding: 2px 6px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mr-cal__viewport::-webkit-scrollbar { display: none; }
.mr-cal__days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 2px; transition: opacity .25s var(--mr-ease), transform .25s var(--mr-ease); }
.mr-cal__days.is-out-left { opacity: 0; transform: translateX(-16px); }
.mr-cal__days.is-out-right { opacity: 0; transform: translateX(16px); }
.mr-cal__day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; border: 0; background: none; color: var(--mr-text);
  font: inherit; font-size: 14px; line-height: 1;
}
.mr-cal__day i { font-style: normal; font-size: 11px; line-height: 14px; color: var(--mr-muted); text-transform: uppercase; letter-spacing: .03em; }
.mr-cal__day span {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding-bottom: 2px;
  border-radius: 50%;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--mr-ease);
}
.mr-cal__day--week::before { content: ""; position: absolute; left: -2px; top: 2px; bottom: 2px; width: 1px; background: var(--mr-line); }
.mr-cal__day--weekend, .mr-cal__day--weekend i { color: #a9a39c; }
.mr-cal__day--today span { font-weight: 700; color: var(--mr-ink); box-shadow: inset 0 0 0 1.5px var(--mr-graphite); }
.mr-cal__day--post { cursor: pointer; }
.mr-cal__day--post span { box-shadow: inset 0 0 0 1.5px var(--mr-red); color: var(--mr-red); font-weight: 600; }
.mr-cal__day--post:hover span, .mr-cal__day--post:focus-visible span { background: var(--mr-red); color: #fff; transform: scale(1.06); }
.mr-cal__day--post.is-current span { background: var(--mr-red); color: #fff; }
.mr-cal__day--post.is-dim span { box-shadow: inset 0 0 0 1.5px #d7cfc6; color: #a9a39c; }
.mr-cal__day--post.is-dim:hover span { background: #d7cfc6; color: #fff; }
.mr-js .mr-cal__days.is-enter .mr-cal__day--post span { animation: mr-pop .45s var(--mr-ease) both; animation-delay: calc(.3s + var(--d, 0) * 40ms); }
@keyframes mr-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   Три колонки: мероприятия · лента · форма
   ============================================================ */
.mr-main { padding: 56px 0 96px; overflow-x: clip; }
.mr-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 300px;
  grid-template-areas: "events feed form";
  gap: 32px;
  align-items: start;
}
.mr-layout--no-events { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "feed form"; gap: 40px; }
.mr-col--events { grid-area: events; height: 100%; min-width: 0; }
.mr-col--feed { grid-area: feed; min-width: 0; }
.mr-col--form { grid-area: form; height: 100%; }

/* ---------- Ближайшие мероприятия ---------- */
.mr-events__title { margin-bottom: 12px; color: var(--mr-ink); font-size: 18px; line-height: 1.3; font-weight: 600; }
.mr-events__list { display: flex; flex-direction: column; gap: 10px; }
.mr-page .mr-ev {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px 18px 16px;
  border: 1px solid var(--mr-line); border-radius: 18px; background: #fff;
  color: var(--mr-ink); text-decoration: none;
  transition: border-color .25s, box-shadow .3s var(--mr-ease), transform .3s var(--mr-ease);
}
.mr-page .mr-ev:hover { border-color: #d9d1c7; transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(44,41,39,.45); }
.mr-ev__date { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mr-ev__day { color: var(--mr-ink); font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.mr-ev__rows { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; color: var(--mr-muted); }
.mr-ev__rows b { color: var(--mr-ink); font-size: 14px; font-weight: 600; }
.mr-ev__type { margin-bottom: 8px; padding: 3px 10px 4px; border-radius: 30px; background: var(--mr-beige); color: var(--mr-text); font-size: 12px; line-height: 1.3; }
.mr-ev__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--mr-ink); font-size: 15px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.mr-page .mr-ev:hover .mr-ev__name { color: var(--mr-red); }
.mr-ev__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mr-line); font-size: 13px; line-height: 1.3; }
.mr-ev__price { color: var(--mr-muted); }
.mr-ev__go { display: inline-flex; align-items: center; gap: 4px; color: var(--mr-red); font-weight: 500; }
.mr-ev__go svg { width: 14px; height: 14px; stroke-width: 1.8; transition: transform .25s var(--mr-ease); }
.mr-page .mr-ev:hover .mr-ev__go svg { transform: translateX(3px); }
.mr-page .mr-events__all { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; }
.mr-sticky { position: sticky; top: var(--mr-sticky); transition: top .4s linear; }
/* шапка сайта прячется при прокрутке вниз (класс _header-is-collapsed у .wrapper) — колонки поднимаются вслед за ней */
.wrapper._header-is-collapsed:not(._header-is-visible) .mr-page { --mr-sticky: 24px; }
#mr-form, #mr-feed, .mr-post { scroll-margin-top: var(--mr-sticky); }

/* Появление при прокрутке */
.mr-js .mr-anim { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--mr-ease), transform .7s var(--mr-ease), border-color .3s, box-shadow .3s; }
.mr-js .mr-anim.is-in { opacity: 1; transform: none; }

/* ---------- Табы ---------- */
.mr-tabs { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, .8fr); gap: 8px; margin-bottom: 20px; }
.mr-tab {
  position: relative;
  display: flex; align-items: flex-start;
  min-height: 84px; padding: 14px 30px 15px 16px;
  border: 1px solid var(--mr-line); border-radius: 14px; background: #fff;
  color: var(--mr-ink); font: inherit; font-size: 14px; line-height: 1.35; font-weight: 500; text-align: left;
  cursor: pointer;
  transition: background-color .25s var(--mr-ease), border-color .25s var(--mr-ease), color .25s var(--mr-ease), transform .25s var(--mr-ease), box-shadow .25s var(--mr-ease);
}
.mr-tab:hover { border-color: var(--mr-red); transform: translateY(-2px); box-shadow: 0 8px 20px -14px rgba(158,14,17,.6); }
.mr-tab.is-active { background: var(--mr-red); border-color: var(--mr-red); color: #fff; box-shadow: 0 10px 24px -14px rgba(158,14,17,.7); }
.mr-tab__count { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--mr-beige-2); color: var(--mr-ink); font-size: 11px; line-height: 19px; font-weight: 600; text-align: center; transition: background-color .25s, color .25s; }
.mr-tab.is-active .mr-tab__count { background: rgba(255,255,255,.2); color: #fff; }
/* первая часть названия — крупно и жирно, вторая — обычным начертанием */
.mr-tab__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; white-space: normal; overflow-wrap: break-word; }
.mr-tab, .mr-tab b, .mr-tab span { white-space: normal; }
.mr-tab__text b { font-size: 17px; line-height: 1.25; font-weight: 600; color: inherit; }
.mr-tab__text span { font-size: 14px; line-height: 1.3; font-weight: 400; opacity: .85; }
.mr-post__new { align-self: flex-start; display: inline-flex; align-items: center; padding: 1px 9px 2px; border-radius: 20px; background: var(--mr-graphite); color: #fff; font-size: 12px; line-height: 1.5; font-weight: 500; }

/* ---------- Вариант «Оглавление» (?view=toc): темы и подтемы-теги как фильтр ---------- */
.mr-toc { margin-bottom: 20px; padding: 10px 12px; border-radius: 20px; background: var(--mr-beige); }
.mr-toc__list { margin: 0; padding: 0; list-style: none; }
.mr-page .mr-toc__list > li { margin: 0; padding: 0; list-style: none; }
.mr-page .mr-toc__list > li::before { content: none; display: none; }
.mr-toc__sec { padding: 2px 0; }
.mr-toc__link {
  position: relative; display: block; width: 100%;
  margin: 0; padding: 8px 14px 9px; border: 0; border-radius: 12px; background: none;
  color: var(--mr-text); font: inherit; font-size: 16px; line-height: 1.35; text-align: left; white-space: normal;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.mr-toc__link b { color: var(--mr-ink); font-size: 18px; font-weight: 600; transition: color .2s; }
.mr-toc__link:hover, .mr-toc__link:hover b { color: var(--mr-red); }
/* выбранный пункт — спокойно: белая подложка и красный заголовок */
.mr-toc__link.is-active { background: #fff; color: var(--mr-text); box-shadow: 0 1px 2px rgba(44,41,39,.06); }
.mr-toc__link.is-active b { color: var(--mr-red); }
.mr-toc__link.is-parent b { color: var(--mr-red); }
.mr-toc__tags { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: -4px; padding: 0 14px 8px; }
.mr-toc__tag {
  margin: 0; padding: 2px 0 3px; border: 0; background: none;
  color: var(--mr-muted); font: inherit; font-size: 15px; line-height: 1.35; white-space: normal; text-align: left;
  cursor: pointer; text-decoration: underline dotted; text-decoration-color: rgba(122,122,126,.6); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.mr-toc__tag:hover { color: var(--mr-red); text-decoration-color: var(--mr-red); }
.mr-toc__tag.is-active { color: var(--mr-red); font-weight: 600; text-decoration-color: var(--mr-red); }

/* ---------- Лента: посты свернуты, по клику раскрываются ---------- */
.mr-feed { position: relative; display: flex; flex-direction: column; gap: 12px; }
.mr-post {
  position: relative;
  border: 1px solid var(--mr-line); border-radius: 20px; background: #fff;
  transition: border-color .25s, box-shadow .3s var(--mr-ease);
}
.mr-post:hover { border-color: #d9d1c7; }
.mr-post.is-open { border-color: #d9d1c7; box-shadow: 0 18px 40px -28px rgba(44,41,39,.35); }
.mr-post.is-flash { border-color: var(--mr-graphite); box-shadow: 0 0 0 4px rgba(44,41,39,.08), 0 18px 40px -24px rgba(44,41,39,.35); }
.mr-post.is-hidden { display: none; }
.mr-post.is-leaving { opacity: 0 !important; transform: translateY(-8px) !important; transition: opacity .2s var(--mr-ease), transform .2s var(--mr-ease) !important; }
.mr-post.is-entering { animation: mr-up .5s var(--mr-ease) both; animation-delay: calc(var(--d, 0) * 40ms); }
.mr-post__head { position: relative; padding: 22px 76px 22px 30px; cursor: pointer; }
.mr-post__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; color: var(--mr-muted); font-size: 14px; line-height: 1.4; }
.mr-post__topic { position: relative; padding-left: 16px; }
.mr-post__topic::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #c2bab1; }
.mr-post__title { margin: 0; color: var(--mr-ink); font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.mr-post__toggle {
  display: block; width: 100%; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; text-align: left; letter-spacing: inherit; white-space: normal; overflow-wrap: anywhere;
  transition: color .2s;
}
.mr-post__head:hover .mr-post__toggle { color: var(--mr-red); }
.mr-post__toggle:focus-visible { outline: 2px solid var(--mr-graphite); outline-offset: 4px; border-radius: 4px; }
.mr-post__chevron {
  position: absolute; right: 24px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--mr-line); border-radius: 50%; color: var(--mr-red);
  transition: transform .35s var(--mr-ease), background-color .2s, border-color .2s, color .2s;
}
.mr-post__chevron svg { width: 16px; height: 16px; stroke-width: 1.8; }
.mr-post__head:hover .mr-post__chevron { border-color: var(--mr-red); }
.mr-post.is-open .mr-post__chevron { transform: rotate(180deg); background: var(--mr-red); border-color: var(--mr-red); color: #fff; }
/* раскрытие: 0fr → 1fr, без расчета высоты в JS; без JS посты раскрыты */
.mr-post__body { display: grid; grid-template-rows: 1fr; }
.mr-js .mr-post__body { grid-template-rows: 0fr; transition: grid-template-rows .45s var(--mr-ease); }
.mr-js .mr-post.is-open .mr-post__body { grid-template-rows: 1fr; }
.mr-post__inner { min-height: 0; overflow: hidden; padding: 0 30px; }
.mr-post__inner > :first-child { margin-top: 0 !important; }
.mr-post__inner::after { content: ""; display: block; height: 28px; }
.mr-js .mr-post__inner { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--mr-ease), transform .35s var(--mr-ease); }
.mr-js .mr-post.is-open .mr-post__inner { opacity: 1; transform: none; transition-delay: .08s; }
.mr-post__subtitle { margin: 0 0 16px !important; color: var(--mr-text); font-size: 17px; font-weight: 500; }
.mr-post__text { margin-top: 16px; }
.mr-post__text > :first-child { margin-top: 0; }
.mr-list { margin: 0 0 14px; padding: 0; list-style: none; }
.mr-list li { position: relative; margin: 0 0 8px; padding-left: 22px; }
.mr-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1.5px; background: #b9b0a6; }
.mr-sign { padding-left: 16px; border-left: 2px solid var(--mr-line); font-size: 15px; color: var(--mr-muted); }
.mr-post__img { margin: 24px 0 0; }
.mr-post__img a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--mr-line); background: #fff; cursor: zoom-in; }
.mr-post__img img { width: 100%; transition: transform .6s var(--mr-ease); }
.mr-post__img a:hover img { transform: scale(1.02); }
.mr-feed__empty { padding: 40px 0; color: var(--mr-muted); text-align: center; }

/* «Рекомендуем» — карточки базы знаний (стили .kb-card из шаблона сайта) */
.mr-rec { margin-top: 24px; }
.mr-rec__title { margin-bottom: 12px; color: var(--mr-ink); font-size: 15px; font-weight: 600; }
.mr-page .mr-rec__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mr-page .mr-rec__grid .kb-card { color: #231f1f; text-decoration: none; }
.mr-page .mr-rec__grid .kb-card__content { padding-top: 72px; }
.mr-page .mr-rec__grid .kb-card__image + .kb-card__content { padding-top: 20px; }
.mr-page .mr-rec__grid .kb-card__title { margin-bottom: 20px; font-size: 17px; line-height: 23px; transition: color .2s; }
.mr-page .mr-rec__grid .kb-card:hover .kb-card__title { color: var(--mr-red); }
.mr-page .mr-rec__grid .kb-card__image { height: auto; aspect-ratio: 334 / 224; }
.mr-page .mr-rec__grid .kb-card__footer .dot { display: inline-block; width: 4px; height: 4px; margin: 0 6px 2px; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* ---------- Форма ---------- */
.mr-col--form .mr-sticky { display: flex; flex-direction: column; gap: 12px; }
.mr-form-card { padding: 22px 22px 22px; border-radius: 20px; background: var(--mr-beige); }
.mr-form-card--cost { background: #fff; border: 1px solid var(--mr-line); }
.mr-form-card--cost .mr-form .modal-form__success { background: #fff; }
.mr-form-card__title { margin-bottom: 14px; color: var(--mr-ink); font-size: 20px; line-height: 1.25; font-weight: 600; }
.mr-page .mr-form { position: relative; margin: 0; padding: 0; }
.mr-field { display: block; margin-bottom: 10px; }
.mr-field__label { display: block; margin-bottom: 5px; color: var(--mr-ink); font-size: 13px; font-weight: 500; line-height: 1.3; }
.mr-page .mr-field__input {
  display: block; width: 100%; height: 44px; padding: 0 14px 2px;
  border: 1px solid #ded7ce; border-radius: 12px; background: #fff;
  color: var(--mr-ink); font: inherit; font-size: 16px;
  outline: none; box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.mr-page .mr-field__input--area { height: 76px; min-height: 76px; padding: 10px 14px; line-height: 1.4; resize: vertical; }
.mr-page .mr-field__input:hover { border-color: #c9c0b6; }
.mr-page .mr-field__input:focus { border-color: var(--mr-graphite); box-shadow: 0 0 0 3px rgba(44,41,39,.08); }
.mr-page .mr-field__input.error { border-color: #b71c1c; }
.mr-field .form-error, .mr-check .form-error { display: block; margin-top: 4px; color: #b71c1c; font-size: 12px; line-height: 1.3; }
.mr-page .mr-check { display: flex; align-items: flex-start; margin: 12px 0 14px; color: var(--mr-muted); }
.mr-page .mr-check .checkbox__label { font-size: 12px; line-height: 1.45; }
.mr-page .mr-form .mr-check .checkbox__label a:not(.btn) { color: var(--mr-ink); text-decoration-color: rgba(29,29,31,.3); }
.mr-page .mr-form .mr-check .checkbox__label a:not(.btn):hover { color: var(--mr-ink); text-decoration-color: var(--mr-ink); }
.mr-page .mr-form .mr-btn { min-height: 48px; }
.mr-page .mr-form .modal-form__success {
  top: -8px; bottom: -8px; left: -8px; right: -8px; width: auto;
  align-items: center; padding: 16px; border-radius: 14px; background: var(--mr-beige);
}
.mr-form__success svg { width: 56px; height: 56px; margin-bottom: 14px; color: var(--mr-graphite); stroke-width: 3; }
.mr-form__success p { margin-bottom: 6px; font-size: 15px; }
.mr-form.success .mr-form__success svg path { stroke-dasharray: 40; animation: mr-check .6s var(--mr-ease) .15s both; }
@keyframes mr-check { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* ---------- Будь в курсе, подписывайся! ---------- */
.mr-col--events .mr-sticky { display: flex; flex-direction: column; gap: 24px; }
.mr-subs { padding: 20px 16px 20px; border-radius: 20px; background: var(--mr-beige); }
.mr-subs__title { margin-bottom: 14px; color: var(--mr-ink); font-size: 18px; line-height: 1.3; font-weight: 600; }
.mr-subs__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mr-page .mr-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--mr-ink); color: #fff; text-decoration: none;
  transition: filter .25s, box-shadow .3s var(--mr-ease), transform .3s var(--mr-ease);
}
.mr-soc svg { width: 20px; height: 20px; fill: currentColor; }
.mr-soc--max svg { width: 20px; height: 20px; }
.mr-page .mr-soc--tg { background: #27a7e7; }
.mr-page .mr-soc--vk { background: #0077ff; }
.mr-page .mr-soc--max { background: linear-gradient(135deg, #44ccff 0%, #5533ee 66%, #9933dd 100%); }
.mr-page .mr-soc--dzen { background: #000; }
.mr-page .mr-soc:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 20px -12px rgba(0,0,0,.45); }
.mr-subs__form .mr-field__label { color: var(--mr-muted); font-weight: 400; }
.mr-page .mr-subs__form .mr-check { margin: 10px 0 20px; }
.mr-page .mr-subs__form .mr-check .checkbox__label { font-size: 11.5px; }
.mr-page .mr-subs__form .modal-form__success { background: var(--mr-beige); }
.mr-subs__error { margin: 8px 0 0; color: #b71c1c; font-size: 13px; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1399px) {
  .mr-hero__box { padding: 64px 56px 32px; min-height: 680px; }
  .mr-hero__title { font-size: 56px; }
  .mr-layout { grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 28px; }
  .mr-page .mr-subs__form .mr-check .checkbox__label { font-size: 11px; }
  .mr-layout--no-events { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}

@media (max-width: 1199px) {
  .mr-hero__box { padding: 52px 40px 28px; min-height: 640px; }
  .mr-hero__visual { width: 82%; }
  .mr-hero__visual::after { background: linear-gradient(90deg, var(--mr-beige) 0%, rgba(246,243,238,.92) 32%, rgba(246,243,238,0) 60%), linear-gradient(0deg, var(--mr-beige) 0%, rgba(246,243,238,0) 28%); }
  .mr-hero__title { font-size: 46px; }
  .mr-hero__lead { font-size: 17px; max-width: 460px; }
  .mr-layout, .mr-layout--no-events { grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto 1fr; grid-template-areas: "feed form" "feed events"; gap: 28px; }
  .mr-col--events, .mr-col--form { height: auto; }
  .mr-col--events .mr-sticky { position: static; }
  .mr-page .mr-subs__form .mr-check .checkbox__label { font-size: 12px; }
}

@media (max-width: 991px) {
  .mr-hero__box { min-height: 0; padding: 36px 28px 24px; }
  .mr-hero__visual { position: relative; order: 2; width: auto; height: 340px; margin: -8px -28px 0; }
  .mr-hero__visual img { object-position: 78% 60%; }
  .mr-hero__visual::after { background: linear-gradient(180deg, var(--mr-beige) 0%, rgba(246,243,238,0) 30%), linear-gradient(0deg, var(--mr-beige) 0%, rgba(246,243,238,0) 30%); }
  .mr-hero__content { order: 1; padding-bottom: 0; }
  .mr-cal { order: 3; margin-top: -40px; }
  .mr-layout, .mr-layout--no-events { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "events" "feed" "form" "subs"; gap: 32px; }
  .mr-col--events, .mr-col--events > .mr-sticky { display: contents; }
  .mr-events { grid-area: events; min-width: 0; }
  .mr-subs { grid-area: subs; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 32px; padding: 24px; }
  .mr-subs__title { grid-column: 1; font-size: 20px; }
  .mr-subs__socials { grid-column: 1; margin-bottom: 0; }
  .mr-subs__form { grid-column: 2; grid-row: 1 / span 2; }
  .mr-events__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mr-sticky { position: static; }
  .mr-form-card { max-width: 480px; }
  .mr-col--form .mr-sticky { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .mr-col--form .mr-form-card { max-width: none; }
  .mr-tabs { grid-template-columns: 150px repeat(3, minmax(220px, 1fr)); overflow-x: auto; margin-left: -15px; margin-right: -15px; padding: 4px 15px 8px; scroll-padding-inline: 15px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mr-tabs::-webkit-scrollbar { display: none; }
  .mr-tab { scroll-snap-align: start; }
}

@media (max-width: 767px) {
  .mr-page { font-size: 16px; --mr-sticky: 84px; }
  .wrapper._header-is-collapsed:not(._header-is-visible) .mr-page { --mr-sticky: 16px; }
  .mr-events__list { display: flex; flex-direction: row; overflow-x: auto; margin: 0 -15px; padding: 2px 15px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 15px; scrollbar-width: none; }
  .mr-events__list::-webkit-scrollbar { display: none; }
  .mr-page .mr-ev { flex: 0 0 248px; scroll-snap-align: start; }
  .mr-hero { padding-top: 12px; }
  .mr-hero__box { padding: 28px 20px 20px; border-radius: 16px; }
  .mr-br { display: none; }
  .mr-badge { margin-bottom: 20px; font-size: 12px; }
  .mr-hero__title { font-size: 32px; line-height: 1.1; margin-bottom: 16px; }
  .mr-hero__lead { font-size: 16px; margin-bottom: 24px !important; }
  .mr-btns { flex-direction: column; }
  .mr-page .mr-btn { width: 100%; min-height: 52px; padding: 0 20px 3px; font-size: 16px; }
  .mr-hero__visual { height: 240px; margin: -8px -20px 0; }
  .mr-cal { padding: 16px 12px 12px; border-radius: 12px; }
  .mr-cal__head { gap: 8px; margin-bottom: 10px; }
  .mr-cal__title { flex-direction: column; gap: 0; }
  .mr-cal__month { font-size: 18px; }
  .mr-cal__days { grid-auto-columns: 38px; }
  .mr-main { padding: 32px 0 64px; }
  .mr-tabs { grid-template-columns: 140px repeat(3, 220px); margin-bottom: 16px; }
  .mr-tab__text b { font-size: 16px; }
  .mr-toc { padding: 6px 6px; border-radius: 16px; }
  .mr-toc__link { padding: 8px 10px 9px; font-size: 15px; }
  .mr-toc__link b { font-size: 16px; }
  .mr-toc__tags { padding: 0 10px 8px; gap: 2px 14px; }
  .mr-toc__tag { font-size: 14px; }
  .mr-feed { gap: 10px; margin: 0 -5px; }
  .mr-post { border-radius: 16px; }
  .mr-post__head { padding: 18px 60px 18px 18px; }
  .mr-post__chevron { right: 14px; width: 32px; height: 32px; margin-top: -16px; }
  .mr-post__meta { flex-direction: column; gap: 2px; font-size: 13px; }
  .mr-post__topic { padding-left: 0; }
  .mr-post__topic::before { display: none; }
  .mr-post__title { font-size: 18px; }
  .mr-post__inner { padding: 0 18px; }
  .mr-post__inner::after { height: 20px; }
  .mr-post__subtitle { font-size: 16px; }
  .mr-page .mr-rec__grid { grid-template-columns: 1fr; gap: 8px; }
  .mr-form-card { padding: 22px 18px 24px; }
  .mr-col--form .mr-sticky { grid-template-columns: 1fr; }
  .mr-subs { display: block; padding: 22px 18px 24px; }
  .mr-subs__socials { margin-bottom: 18px; }
}
