/* ==========================================================================
   Порешаем — основные стили темы
   ========================================================================== */

:root {
  --green-900: #336A29;
  --green-700: #498428;
  --green-500: #80B155;
  --lime: #C1D95C;
  --lime-100: #EAEF9D;
  --cream: #F7F9E2;
  --ink: #1d2a17;
  --white: #fff;
  --font-heading: 'Rubik', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(46, 43, 37, .14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, .16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a, button, input, label, select, textarea, [role="button"] { touch-action: manipulation; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site { overflow-x: hidden; overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0 0 13px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--green-700); text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--green-900); } }
:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
::selection { background: rgba(73, 132, 40, .3); }
button { font: inherit; }
[hidden] { display: none !important; }
svg { flex: none; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
  left: 8px; top: 8px; padding: 12px 20px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-lg);
}

.wrap { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section { padding: 0 24px 104px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.h2 {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; margin: 0 0 14px; color: var(--green-900);
}
.h2--sm { font-size: clamp(30px, 4vw, 44px); }
.section-head--row .h2 { margin-bottom: 0; }
.section-lead { font-size: 18px; margin: 0; opacity: .8; }
.section-head--row .section-lead { margin-top: 14px; }

.blob { position: absolute; border-radius: 50%; pointer-events: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-lime { background: var(--lime); color: var(--green-900); }
@media (hover: hover) { .btn-lime:hover { background: var(--lime-100); color: var(--green-900); } }
.btn-green { background: var(--green-700); color: #fff; }
@media (hover: hover) { .btn-green:hover { background: var(--green-900); color: #fff; } }
.btn-ghost-light { border-color: var(--lime-100); color: #fff; }
@media (hover: hover) { .btn-ghost-light:hover { background: var(--green-700); color: #fff; } }
.btn-soft { background: var(--lime-100); color: var(--green-900); }
@media (hover: hover) { .btn-soft:hover { background: var(--lime); color: var(--green-900); } }
.btn-line { border-color: var(--lime); color: var(--green-900); background: transparent; }
@media (hover: hover) { .btn-line:hover { background: rgba(29, 42, 23, .07); color: var(--green-900); } }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  font-size: 13px; font-weight: 800; padding: 4px 12px; white-space: nowrap;
}
.pill--soft { background: var(--lime-100); color: var(--green-900); }
.pill--white { background: #fff; color: var(--green-900); }
.pill--lime { background: var(--lime); color: var(--green-900); }
.eyebrow {
  display: inline-flex; background: var(--lime); color: var(--green-900); font-weight: 800;
  text-transform: uppercase; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
  letter-spacing: .04em; font-size: 12px;
}

.stars { display: flex; gap: 3px; color: var(--green-500); }

/* изображения-плейсхолдеры; загруженные фото показываются в исходных цветах */
.cover { width: 100%; height: 100%; object-fit: cover; }
/* обложки статей (2:1) показываются целиком, без обрезки */
.post-card-img .cover, .feat-main-img .cover, .feat-side-img .cover, .lead-post-img .cover { object-fit: contain; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 70% 25%, var(--lime) 0 22%, transparent 23%), var(--lime-100);
  color: var(--green-900); font-weight: 800; font-size: 14px; padding: 16px;
}
.ph svg { opacity: .55; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.hdr-desk { display: flex; align-items: stretch; filter: drop-shadow(0 12px 28px rgba(20, 40, 10, .22)); }
.hdr-logo {
  flex: none; width: clamp(150px, 17vw, 240px); background: #fff; border-radius: 24px 0 72px 24px;
  display: flex; align-items: center; justify-content: center; padding: 14px 22px 14px 18px; position: relative; z-index: 2;
}
.hdr-logo img { width: 100%; height: auto; mix-blend-mode: multiply; }
.hdr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hdr-bar {
  background: #fff; border-radius: 0 20px 20px 0; display: flex; align-items: center; gap: 12px;
  padding: 0 12px 0 16px; min-height: 66px; position: relative; z-index: 1;
}
.hdr-nav { flex: 1; min-width: 0; display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.hdr-nav::-webkit-scrollbar { display: none; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.hdr-nav .menu-list a {
  display: flex; align-items: center; padding: 8px clamp(8px, 1vw, 14px); border-radius: 999px; white-space: nowrap;
  color: var(--ink); font-weight: 700; font-size: clamp(14px, 1.3vw, 16px); transition: background .2s, color .2s;
}
@media (hover: hover) { .hdr-nav .menu-list a:hover { color: var(--green-700); background: var(--lime-100); } }
.site-header .menu-list .current-menu-item > a,
.site-header .menu-list .current-menu-ancestor > a,
.site-header .menu-list .current_page_parent > a,
.site-header .menu-list .is-active > a { color: var(--green-700); background: var(--lime-100); }
.menu-list .sub-menu { display: none; }
.icon-btn {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
  color: var(--green-900); cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
@media (hover: hover) { .icon-btn:hover { background: var(--lime-100); } }
.hdr-cta { flex: none; border-radius: 14px; padding: 13px 22px; }
.hdr-contacts {
  background: var(--lime-100); margin-right: 14%; border-radius: 0 0 20px 20px; display: flex; flex-wrap: wrap;
  height: 42px; overflow: hidden; font-size: 14px; font-weight: 700; color: var(--green-900); padding-left: 12px;
}
.hdr-contacts > * {
  display: flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; color: var(--green-900);
  padding: 0 16px; height: 42px; border-right: 2px solid var(--lime); flex: 1;
}
.hdr-contacts > *:last-child { border-right: 0; }
@media (hover: hover) { .hdr-contacts a:hover { color: var(--green-700); } }

.hdr-search { position: relative; }
.hdr-search-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, 80vw); background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 30;
}
.hdr-search.is-open .hdr-search-pop { display: block; }

.hdr-mob { display: none; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hdr-mob-top { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; }
.hdr-mob-top .logo-link { display: flex; margin-right: auto; }
.hdr-mob-top .logo-link img { height: 34px; width: auto; }
.hdr-mob-cta { padding: 12px 16px; font-size: 14px; }
.burger {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: 0 0 46px;
  width: 46px; height: 46px; min-width: 46px; max-width: 46px; aspect-ratio: 1 / 1; padding: 0; margin: 0;
  border-radius: 50%; border: 0; background: var(--lime-100); color: var(--green-900); cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 0; font-size: 0; overflow: hidden;
  -webkit-tap-highlight-color: transparent; transition: background .2s;
}
.burger:active, .hdr-mob.is-open .burger { background: var(--lime); }
.burger span { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.burger svg { display: block; width: 22px; height: 22px; }
.burger .i-close { display: none; }
.hdr-mob.is-open .burger .i-close { display: flex; }
.hdr-mob.is-open .burger .i-open { display: none; }
.hdr-mob-nav { display: none; flex-direction: column; gap: 4px; padding: 6px 12px 16px; border-top: 2px solid var(--lime-100); }
.hdr-mob.is-open .hdr-mob-nav { display: flex; }
.hdr-mob-nav .menu-list { flex-direction: column; align-items: stretch; gap: 2px; }
.hdr-mob-nav .menu-list li + li { border-top: 1px solid var(--lime-100); }
.hdr-mob-nav .menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 12px; border-radius: 14px;
  font-weight: 700; font-size: 17px; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.hdr-mob-nav .menu-list a::after {
  content: ''; flex: none; width: 18px; height: 18px; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23336A29' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.hdr-mob-nav .menu-list a:active { background: var(--lime-100); }
.hdr-mob-nav .search-pill { margin: 8px 4px 0; }
.hdr-mob-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 0 0; border-top: 2px solid var(--lime-100); margin-top: 4px; font-size: 14px; font-weight: 800; }
.hdr-mob-contacts a {
  display: flex; gap: 6px; align-items: center; justify-content: center; min-width: 0; white-space: nowrap;
  color: var(--green-900); background: var(--lime-100); border-radius: 999px; padding: 10px 4px; -webkit-tap-highlight-color: transparent;
}
.hdr-mob-contacts a:active { background: var(--lime); }
.hdr-mob-contacts a:not([href]) { opacity: .6; }

@media (max-width: 899px) {
  .hdr-desk { display: none; }
  .hdr-mob { display: block; }
}

/* поле поиска в форме-пилюле */
.search-pill {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px;
}
.search-pill--bordered { border: 2px solid var(--lime-100); }
.search-pill input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px;
  color: var(--ink); padding: 12px 0;
}
.search-pill .btn { padding: 12px 22px; }

/* ==========================================================================
   Зелёный первый экран (общий для всех страниц)
   ========================================================================== */
.hero {
  background: var(--green-900); position: relative; overflow: hidden;
  padding: clamp(12px, 3vw, 24px) clamp(12px, 3vw, 24px) 0;
}
.hero .blob-a { width: 520px; height: 520px; background: var(--green-700); right: -140px; top: -160px; }
.hero .blob-b { width: 220px; height: 220px; background: var(--green-500); opacity: .5; left: -80px; bottom: -60px; }
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px;
  align-items: end; padding-top: clamp(32px, 6vw, 64px);
}
.hero-copy { padding-bottom: clamp(8px, 8vw, 88px); max-width: 580px; }
.hero-title {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 5.4vw, 66px); line-height: 1.04;
  color: #fff; margin: 22px 0 20px; letter-spacing: -.02em; text-wrap: balance;
}
.hero-title em, .hl { font-style: normal; color: var(--lime); }
.hero-lead { color: var(--lime-100); font-size: 19px; max-width: 520px; margin: 0 0 32px; text-wrap: pretty; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.crumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700;
  color: var(--lime-100); margin-bottom: 20px;
}
.crumbs a { color: var(--lime-100); }
@media (hover: hover) { .crumbs a:hover { color: #fff; } }
.crumbs .sep { color: var(--green-500); }
.crumbs .cur { color: var(--lime); }

/* арка с фото */
.hero-art { position: relative; height: 600px; max-width: 520px; width: 100%; justify-self: end; }
.arch-back { position: absolute; inset: 40px 0 0 0; border-radius: 260px 260px 0 0; background: var(--lime); }
.arch-photo { position: absolute; inset: 60px 20px 0 20px; border-radius: 240px 240px 0 0; overflow: hidden; background: var(--lime-100); }
.hero-review {
  position: absolute; left: -24px; right: 40px; bottom: 32px; background: #fff; border-radius: 28px;
  padding: clamp(18px, 4vw, 22px) clamp(18px, 4vw, 26px); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.hero-review-text { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink); text-wrap: pretty; min-height: 72px; transition: opacity .3s; }
.hero-review-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid;
  place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 18px; flex: none;
}
.avatar--lg { width: 52px; height: 52px; font-size: 20px; }
.who-text { line-height: 1.3; flex: 1; min-width: 0; }
.who-name { font-weight: 800; font-size: 15px; }
.who-result { color: var(--green-700); font-weight: 700; font-size: 13px; }
.dots { display: flex; gap: 6px; flex: none; }
.dots button { height: 8px; width: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: var(--lime-100); transition: width .3s, background .3s; }
.dots button.is-active { width: 22px; background: var(--green-700); }
.hero-badge {
  position: absolute; left: -90px; top: -14px; background: #fff; border-radius: 24px; padding: 14px 20px; z-index: 3;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
@media (max-width: 1100px) { .hero-badge { left: -30px; } }
.hero-badge-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--lime-100); display: grid; place-items: center; color: var(--green-900); }
.hero-badge-t { font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.25; }
.hero-badge-s { font-size: 13px; color: var(--green-700); font-weight: 700; line-height: 1.25; }
@media (max-width: 639px) {
  .hero-art { height: 480px; }
  .hero-review { left: 0; right: 0; }
  .hero-badge { left: 0; top: -10px; }
}

/* ==========================================================================
   Направления (карточки)
   ========================================================================== */
.sec-dirs { padding: clamp(64px, 10vw, 104px) 24px clamp(64px, 9vw, 96px); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.dir-card {
  background: var(--bg); color: var(--ink-c); border-radius: 32px;
  padding: clamp(26px, 5vw, 40px) clamp(24px, 5vw, 40px) clamp(26px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 14px; min-height: clamp(0px, calc((100vw - 600px) * 999), 440px);
  position: relative; overflow: hidden; transition: transform .2s;
}
@media (hover: hover) { .dir-card:hover { transform: translateY(-4px); color: var(--ink-c); } }
.dir-card > * { position: relative; }
.dir-card .blob { position: absolute; width: 160px; height: 160px; background: var(--blob); right: -50px; top: -50px; opacity: .55; }
.dir-short { font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 8vw, 44px); line-height: 1; }
.dir-card .pill { align-self: flex-start; }
.dir-title { font-family: var(--font-heading); font-weight: 700; font-size: 21px; margin: 6px 0 0; color: inherit; }
.dir-desc { margin: 0; font-size: 16px; opacity: .9; max-width: 440px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-content: flex-start; margin-top: 4px; }
.chip {
  display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; white-space: nowrap; background: var(--chip); color: var(--ink-c);
}
.more-link { display: flex; align-items: center; gap: 8px; font-weight: 800; }

/* ==========================================================================
   Мини-тест
   ========================================================================== */
.panel {
  max-width: 1200px; margin: 0 auto; background: var(--lime-100); border-radius: 48px;
  padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden;
}
.quiz-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.quiz-panel .blob { width: 300px; height: 300px; background: var(--lime); left: -120px; bottom: -140px; }
.quiz-intro { position: relative; }
.quiz-intro .h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.quiz-intro p { font-size: 18px; margin: 0 0 24px; max-width: 420px; }
.quiz-card {
  background: #fff; border-radius: 32px; padding: clamp(20px, 5vw, 32px); box-shadow: var(--shadow-md);
  position: relative; min-height: 360px; display: flex; flex-direction: column;
}
.quiz-step { font-weight: 800; font-size: 14px; color: var(--green-700); margin-bottom: 12px; }
.progress { height: 10px; border-radius: 999px; background: var(--lime-100); margin-bottom: 24px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--green-500); transition: width .3s; }
.quiz-q { font-family: var(--font-heading); font-weight: 700; font-size: 22px; margin: 0 0 20px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left; font: inherit; font-weight: 700; font-size: 16px; padding: 14px 20px; border-radius: 999px;
  border: 2px solid var(--lime-100); background: #fff; color: var(--ink); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; transition: background .15s, border-color .15s;
}
@media (hover: hover) { .quiz-opt:hover { background: var(--lime-100); border-color: var(--lime); color: var(--green-900); } }
.quiz-opt:active { background: var(--lime); }
.quiz-result { display: flex; flex-direction: column; flex: 1; }
.quiz-result .pill { align-self: flex-start; text-transform: uppercase; letter-spacing: .05em; padding: 5px 14px; }
.quiz-result-short { font-family: var(--font-heading); font-weight: 800; font-size: 52px; line-height: 1; color: var(--green-900); margin: 20px 0 8px; }
.quiz-result h3 { font-family: var(--font-heading); font-weight: 700; font-size: 24px; margin: 0 0 12px; }
.quiz-result p { margin: 0 0 24px; flex: 1; }

/* ==========================================================================
   Отзывы
   ========================================================================== */
.sec-reviews { padding: 0 0 104px; overflow: hidden; }
.sec-reviews .section-head { padding: 0 24px; max-width: 1248px; }
.marquee { width: 100%; overflow: hidden; padding: 8px 0; }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 160s linear infinite; }
@media (hover: hover) { .marquee-track:hover { animation-play-state: paused; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review {
  margin: 0; background: var(--cream); border-radius: 32px; padding: clamp(22px, 5vw, 30px);
  display: flex; flex-direction: column; gap: 18px;
}
.marquee .review { width: min(360px, 78vw); flex: none; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; flex: 1; text-wrap: pretty; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 15px; color: var(--ink); }
.review .who-result { font-size: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }

/* ==========================================================================
   Карточки статей
   ========================================================================== */
.sec-cream { background: var(--cream); }
.sec-rounded { border-radius: 56px 56px 0 0; }
.sec-blog { padding: 96px 24px 104px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.post-card {
  background: #fff; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s; color: var(--ink);
}
@media (hover: hover) { .post-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); } }
.post-card-img { aspect-ratio: 2 / 1; margin: 10px 10px 0; border-radius: 24px; overflow: hidden; background: var(--lime-100); }
.post-card-body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.post-meta .pill { font-weight: 700; padding: 3px 12px; }
.post-meta .date { color: var(--green-700); white-space: nowrap; }
.post-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 1.25; margin: 4px 0 0; }
.post-grid--fill .post-card-title { font-size: 19px; }
.post-card-ex { margin: 0; font-size: 15px; opacity: .8; flex: 1; }
.post-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.read-link { font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--green-700); }
.views { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--green-700); white-space: nowrap; }

/* ==========================================================================
   Преподаватели
   ========================================================================== */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.teacher-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.teacher {
  background: #fff; border-radius: 32px; padding: 28px 24px 30px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 8px;
}
.teacher--cream { background: var(--cream); }
.teacher-photo { width: 150px; height: 150px; border-radius: 50%; background: var(--lime); padding: 8px; margin-bottom: 10px; }
.teacher-photo > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.teacher-photo .ph { font-family: var(--font-heading); font-size: 44px; background: var(--lime-100); }
.teacher h3 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 0; }
.teacher-subj { color: var(--green-700); font-weight: 800; font-size: 15px; }
.teacher--cream .pill--soft { background: #fff; }
.teacher p { margin: 4px 0 0; font-size: 15px; opacity: .85; }

/* ==========================================================================
   Заявка + подвал
   ========================================================================== */
.sec-lead { background: var(--cream); padding: 0 clamp(12px, 3vw, 24px) clamp(56px, 8vw, 88px); }
.sec-lead.is-first { background: #fff; }
.lead-box {
  max-width: 1200px; margin: 0 auto; background: var(--green-900); color: #fff; border-radius: 48px;
  padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden;
}
.lead-box .blob { width: 320px; height: 320px; background: var(--green-500); right: -100px; top: -120px; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; position: relative; }
.lead-grid .h2 { color: #fff; margin-bottom: 16px; }
.lead-grid .h2 em { font-style: normal; color: var(--lime); }
.lead-grid > div > p { font-size: 18px; color: var(--lime-100); margin: 0; max-width: 460px; }
.lead-form { background: var(--green-700); border-radius: 36px; padding: clamp(20px, 5vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.field {
  width: 100%; padding: 16px 22px; font: inherit; font-size: 16px; border: 0; background: #fff;
  border-radius: 999px; color: var(--ink);
}
.lead-form .btn { padding: 16px; font-size: 16px; border: 0; }
.lead-form .note { margin: 0; font-size: 13px; color: var(--lime-100); }
.lead-form .note a { color: #fff; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 24px 8px; }
.form-done-t { font-family: var(--font-heading); font-weight: 800; font-size: 26px; color: #fff; margin-bottom: 8px; }
.form-done-s { color: var(--lime-100); }
.form-error { color: #fff; background: rgba(0,0,0,.18); border-radius: 16px; padding: 10px 16px; font-size: 14px; font-weight: 700; }

.site-footer { background: var(--green-900); color: #fff; padding: 72px 24px 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px 32px; padding-bottom: 56px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-col--brand { gap: 18px; }
.foot-logo { background: #fff; border-radius: 999px; padding: 8px 20px; display: flex; align-self: flex-start; }
.foot-logo img { height: 38px; width: auto; }
.foot-about { margin: 0; color: var(--lime-100); font-size: 15px; max-width: 280px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { padding: 8px 16px; border-radius: 999px; background: var(--green-700); color: #fff; font-weight: 700; font-size: 14px; transition: background .2s; }
@media (hover: hover) { .socials a:hover { background: var(--green-500); color: #fff; } }
.foot-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--lime); margin-bottom: 6px; }
.foot-col a { color: var(--lime-100); font-weight: 600; }
@media (hover: hover) { .foot-col a:hover { color: #fff; } }
.foot-col .menu-list { flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-col .foot-phone { color: #fff; font-weight: 800; font-size: 18px; }
.foot-text { color: var(--lime-100); }
@media (hover: hover) { .foot-col .foot-phone:hover { color: var(--lime); } }
.foot-col .btn { align-self: flex-start; margin-top: 8px; color: var(--green-900); font-weight: 700; }
@media (hover: hover) { .foot-col .btn:hover { color: var(--green-900); } }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 24px;
  border-top: 2px solid var(--green-700); font-size: 14px; color: var(--lime-100);
}
.foot-bottom div { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-bottom a { color: var(--lime-100); white-space: nowrap; }
@media (hover: hover) { .foot-bottom a:hover { color: #fff; } }

/* согласие с политикой и офертой */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lime); cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.lead-form .consent { color: var(--lime-100); }
.lead-form .consent a { color: #fff; }
.news-form .consent { color: var(--green-900); padding: 0 12px; }
.news-form .consent input { accent-color: var(--green-700); }
.news-form .consent a { color: var(--green-700); }
.foot-bottom { justify-content: center; text-align: center; }

/* ==========================================================================
   Страница направления
   ========================================================================== */
.hero-title--dir { font-size: clamp(34px, 5.4vw, 64px); margin: 20px 0; }
.hero--dir .hero-grid { padding-top: clamp(28px, 5vw, 48px); }
.hero--dir .hero-copy { max-width: 600px; }
.facts-art { position: relative; height: 540px; max-width: 500px; width: 100%; justify-self: end; }
.facts-art .arch-back { inset: 30px 0 0 0; border-radius: 250px 250px 0 0; }
.facts-arch {
  position: absolute; inset: 50px 20px 0 20px; border-radius: 230px 230px 0 0; background: #fff; display: flex;
  flex-direction: column; justify-content: flex-end; text-align: center; padding: 40px 40px 44px; gap: 4px;
}
.facts-short { font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--green-900); margin-bottom: 20px; overflow-wrap: anywhere; }
.facts-short.is-mid { font-size: clamp(30px, 3.3vw, 44px); }
.facts-short.is-long { font-size: clamp(26px, 2.7vw, 36px); }
.fact { display: flex; flex-direction: column; align-items: center; padding: 12px 0; border-top: 2px solid var(--lime-100); }
.fact-k { font-size: 13px; font-weight: 800; color: var(--green-700); text-transform: uppercase; letter-spacing: .05em; }
.fact-v { font-weight: 700; font-size: 16px; line-height: 1.4; }
@media (max-width: 479px) { .facts-arch { padding: 32px 22px 34px; } .facts-art { height: 560px; } }

.sec-includes { padding: clamp(64px, 10vw, 104px) 24px clamp(56px, 8vw, 88px); }
.inc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.inc {
  background: var(--cream); border-radius: 32px; padding: clamp(22px, 5vw, 32px); display: flex; gap: 20px; align-items: flex-start;
}
.check-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; flex: none; }
.inc h3 { font-family: var(--font-heading); font-weight: 700; font-size: 21px; margin: 4px 0 8px; }
.inc p { margin: 0; font-size: 16px; opacity: .85; }

.steps-panel .blob { width: 280px; height: 280px; background: var(--lime); right: -100px; bottom: -120px; }
.steps-panel .h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 40px; position: relative; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; position: relative; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-n { width: 64px; height: 64px; border-radius: 50%; background: var(--green-900); color: var(--lime-100); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 26px; }
.step h3 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 6px 0 0; color: var(--green-900); }
.step p { margin: 0; font-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--cream); color: var(--ink); border-radius: 36px; padding: clamp(26px, 5vw, 36px) clamp(22px, 5vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}
.plan.is-featured { background: var(--green-900); color: #fff; box-shadow: var(--shadow-lg); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-family: var(--font-heading); font-weight: 700; font-size: 22px; margin: 0; color: inherit; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; }
.plan-price span { font-weight: 700; font-size: 16px; opacity: .85; }
.plan-note { font-size: 15px; font-weight: 700; color: var(--green-700); }
.plan.is-featured .plan-note { color: var(--lime); }
.plan-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; margin: 8px 0 12px; }
.plan-feat { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.plan-feat i { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; flex: none; }
.plan .btn { width: 100%; padding: 15px; font-size: 16px; }
.plan.is-featured .btn { background: var(--lime); color: var(--green-900); }
@media (hover: hover) { .plan.is-featured .btn:hover { background: var(--lime-100); } }

/* ==========================================================================
   Блог
   ========================================================================== */
.hero--blog { padding-bottom: clamp(48px, 7vw, 80px); }
.blog-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
}
.blog-top > div { max-width: 620px; }
.blog-top .crumbs { margin-bottom: 16px; }
.hero-title--blog { font-size: clamp(38px, 5.4vw, 64px); margin: 0 0 14px; }
.blog-top p { color: var(--lime-100); font-size: 18px; margin: 0; text-wrap: pretty; }
.blog-top .search-pill { flex: 1 1 320px; max-width: 440px; box-shadow: var(--shadow-lg); }

.feat-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; }
.feat-grid:has(> :only-child) { grid-template-columns: 1fr; }
@media (max-width: 899px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-main { position: relative; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: var(--ink); }
@media (hover: hover) { .feat-main:hover { color: var(--ink); } }
.feat-main-img { aspect-ratio: 2 / 1; margin: 10px 10px 0; border-radius: 24px; overflow: hidden; background: var(--lime-100); flex: none; }
.feat-main-body { padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.feat-main-body .pill { font-weight: 700; }
.pill--dark { background: var(--green-900); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.feat-main h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.14; margin: 0; color: var(--green-900); text-wrap: balance; }
.feat-main p { margin: 0; font-size: 16px; opacity: .85; max-width: 620px; }
.feat-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feat-side-item {
  flex: 1; display: flex; gap: 14px; align-items: center; background: var(--green-700); border-radius: 28px;
  padding: 12px 18px 12px 12px; color: #fff; transition: background .2s;
}
@media (hover: hover) { .feat-side-item:hover { background: var(--green-500); color: #fff; } }
.feat-side-img { width: 120px; aspect-ratio: 2 / 1; flex: none; border-radius: 12px; overflow: hidden; background: var(--lime-100); }
.feat-side-img .ph { font-size: 0; }
.feat-side-item > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feat-side-meta { font-size: 12px; font-weight: 800; color: var(--lime); text-transform: uppercase; letter-spacing: .05em; }
.feat-side-t { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.25; text-wrap: pretty; }

.filterbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 24px; }
.admin-bar .filterbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .filterbar { top: 0; } }
.filterbar-in { max-width: 1200px; margin: 0 auto; display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.cats::-webkit-scrollbar { display: none; }
.cat-btn {
  font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--lime-100);
  background: #fff; color: var(--green-900); display: flex; gap: 8px; align-items: center; white-space: nowrap; flex: none;
}
@media (hover: hover) { .cat-btn:hover { border-color: var(--lime); color: var(--green-900); } }
.cat-btn span { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--lime-100); }
.cat-btn.is-active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.cat-btn.is-active span { background: var(--green-700); }
.sorts { display: flex; background: var(--cream); border-radius: 999px; padding: 4px; flex: none; }
.sorts a { font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; color: var(--green-700); white-space: nowrap; }
.sorts a.is-active { background: #fff; color: var(--green-900); }

.lenta { padding: clamp(28px, 4vw, 40px) 24px clamp(64px, 9vw, 96px); scroll-margin-top: 80px; }
.lenta-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.feed { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.found { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.found .btn { padding: 6px 14px; font-size: 14px; font-family: var(--font-body); }
.empty { background: var(--cream); border-radius: 32px; padding: 48px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty h3 { font-family: var(--font-heading); font-weight: 700; font-size: 24px; margin: 0; color: var(--green-900); }
.empty p { margin: 0; opacity: .8; }

.lead-post {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); background: var(--lime-100);
  border-radius: 36px; overflow: hidden; color: var(--ink); position: relative;
}
@media (hover: hover) { .lead-post:hover { color: var(--ink); } }
.lead-post .blob { width: 220px; height: 220px; background: var(--lime); right: -80px; bottom: -100px; }
.lead-post-img { margin: 10px; border-radius: 24px; overflow: hidden; aspect-ratio: 2 / 1; align-self: center; background: var(--lime-100); position: relative; }
.lead-post-img img, .lead-post-img .ph { position: absolute; inset: 0; }
.lead-post-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; justify-content: center; position: relative; }
.lead-post-body .date { color: var(--green-900); }
.lead-post h3 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.18; margin: 0; color: var(--green-900); text-wrap: balance; }
.lead-post p { margin: 0; font-size: 16px; }
.lead-post .btn { align-self: flex-start; margin-top: 4px; }

.pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; background: var(--cream); color: var(--green-900); }
.pager .page-numbers.current { background: var(--green-900); color: #fff; }
@media (hover: hover) { .pager a.page-numbers:hover { background: var(--lime-100); } }
.load-more { align-self: center; margin-top: 8px; }

.aside { position: sticky; top: 88px; display: grid; grid-template-columns: 1fr; gap: 20px; min-width: 0; align-items: start; }
.admin-bar .aside { top: 120px; }
@media (max-width: 899px) {
  .lenta-grid { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) { .aside { grid-template-columns: 1fr; } }
.box { border-radius: 32px; padding: 26px; }
.box--cream { background: var(--cream); padding: 26px 26px 18px; }
.box--line { background: #fff; border: 2px solid var(--lime-100); padding: 24px 26px; }
.box h3 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 0 0 12px; color: var(--green-900); }
.box--line h3 { font-size: 18px; margin-bottom: 14px; }
.pop-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; margin: 0 -14px; border-radius: 20px; color: var(--ink); }
@media (hover: hover) { .pop-item:hover { background: var(--lime-100); color: var(--green-900); } }
.pop-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lime-100); color: var(--green-900); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.pop-item:nth-child(1) .pop-num { background: var(--green-900); color: #fff; }
.pop-item:nth-child(2) .pop-num, .pop-item:nth-child(3) .pop-num { background: var(--green-500); color: #fff; }
.pop-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pop-t b { font-weight: 700; line-height: 1.35; }
.pop-t span { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--green-700); }
.box--dark { background: var(--green-900); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.box--dark .blob { width: 160px; height: 160px; background: var(--green-700); right: -50px; top: -60px; }
.box--dark > *:not(.blob) { position: relative; }
.box--dark .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; }
.box--dark h3 { color: #fff; font-size: 21px; line-height: 1.2; margin: 0; }
.box--dark p { margin: 0; color: var(--lime-100); font-size: 15px; }
.box--dark .btn { align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--cream); color: var(--green-900); white-space: nowrap; }
@media (hover: hover) { .tags a:hover { background: var(--lime-100); } }

.sec-series { padding: clamp(64px, 9vw, 96px) 24px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.series {
  background: var(--bg); color: var(--ink-c); border-radius: 36px; padding: 30px; display: flex; flex-direction: column;
  gap: 14px; min-height: 300px; position: relative; overflow: hidden; transition: transform .2s;
}
@media (hover: hover) { .series:hover { transform: translateY(-4px); color: var(--ink-c); } }
.series > * { position: relative; }
.series .blob { position: absolute; width: 180px; height: 180px; background: var(--blob); right: -60px; bottom: -70px; opacity: .6; }
.series .pill { align-self: flex-start; }
.series h3 { font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.15; margin: 4px 0 0; }
.series p { margin: 0; font-size: 15px; flex: 1; }
.series-items { display: flex; flex-direction: column; gap: 6px; }
.series-items span { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.series-items i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-size: 12px; font-style: normal; }

.sec-videos { padding: 0 24px clamp(64px, 9vw, 96px); }
.video-box { max-width: 1200px; margin: 0 auto; background: var(--green-900); border-radius: 48px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.video-box .blob { width: 300px; height: 300px; background: var(--green-700); right: -90px; top: -120px; }
.video-box .section-head--row { margin-bottom: 32px; position: relative; }
.video-box .h2 { color: #fff; margin-bottom: 12px !important; }
.video-box .section-lead { color: var(--lime-100); opacity: 1; margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; position: relative; }
.video { display: flex; flex-direction: column; gap: 12px; color: #fff; }
@media (hover: hover) { .video:hover { color: var(--lime); } }
.video-img { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: var(--green-700); }
.video-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.video-time { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--green-900); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.video-tag { font-size: 12px; font-weight: 800; color: var(--lime); text-transform: uppercase; letter-spacing: .05em; }
.video-t { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.3; margin-top: -6px; }

.sec-news { padding: 0 24px clamp(64px, 9vw, 96px); }
.news-panel { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 48px; align-items: center; }
.news-panel .blob { width: 260px; height: 260px; background: var(--lime); left: -100px; bottom: -130px; }
.news-panel > *:not(.blob) { position: relative; }
.news-panel .h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin-bottom: 12px; }
.news-panel p { font-size: 17px; margin: 0; max-width: 440px; }
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-row { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; flex-wrap: wrap; }
.news-row input { flex: 1 1 180px; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 12px 18px; color: var(--ink); }
.news-row .btn { padding: 12px 24px; border: 0; }
.news-hint { font-size: 13px; color: var(--green-900); padding-left: 18px; }
.news-done { background: #fff; border-radius: 28px; padding: 20px 24px; display: flex; gap: 14px; align-items: center; font-weight: 700; }

/* ==========================================================================
   Статья
   ========================================================================== */
.hero--post { padding-bottom: clamp(120px, 16vw, 200px); }
.post-head { padding-top: clamp(40px, 7vw, 72px); max-width: 820px; }
.hero-title--post { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; margin: 0 0 24px; }
.post-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 700; }
.post-chips span, .post-chips a { padding: 5px 14px; border-radius: 999px; white-space: nowrap; background: var(--green-700); color: #fff; }
.post-chips .is-cat { background: var(--lime); color: var(--green-900); }
.sec-article { padding: 0 24px clamp(64px, 9vw, 104px); }
.article-wrap { max-width: 1200px; margin: clamp(-160px, -12vw, -90px) auto 0; position: relative; z-index: 3; }
.article-cover { height: clamp(240px, 38vw, 480px); border-radius: 40px; overflow: hidden; background: var(--lime); box-shadow: var(--shadow-lg); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding-top: clamp(40px, 6vw, 64px); align-items: start; }
.article-grid.no-cover { padding-top: 0; }
@media (max-width: 899px) { .article-grid { grid-template-columns: 1fr; } }
.article-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-bar .article-aside { top: 56px; }
@media (max-width: 899px) { .article-aside { position: static; } }
.dir-mini {
  background: var(--bg); color: var(--ink-c); border-radius: 32px; padding: 28px; display: flex; flex-direction: column;
  gap: 10px; position: relative; overflow: hidden;
}
@media (hover: hover) { .dir-mini:hover { color: var(--ink-c); } }
.dir-mini > * { position: relative; }
.dir-mini .blob { position: absolute; width: 140px; height: 140px; background: var(--blob); right: -40px; top: -40px; opacity: .6; }
.dir-mini .dir-short { font-size: 34px; }
.dir-mini .pill { align-self: flex-start; }
.dir-mini p { margin: 4px 0 0; font-size: 15px; }
.side-list { background: var(--cream); border-radius: 32px; padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.side-list-t { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--green-900); margin-bottom: 8px; }
.side-list a { display: flex; flex-direction: column; padding: 10px 14px; margin: 0 -14px; border-radius: 18px; color: var(--ink); }
@media (hover: hover) { .side-list a:hover { background: var(--lime-100); color: var(--green-900); } }
.side-list a b { font-weight: 700; line-height: 1.35; }
.side-list a span { font-size: 13px; font-weight: 700; color: var(--green-700); }

.author-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--cream); border-radius: 32px; padding: 20px 24px; margin-top: 32px; }
.author-photo { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); padding: 5px; flex: none; }
.author-photo > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.author-photo .ph { font-family: var(--font-heading); font-size: 22px; padding: 0; }
.author-info { flex: 1; min-width: 180px; line-height: 1.35; }
.author-lbl { font-size: 13px; font-weight: 800; color: var(--green-700); text-transform: uppercase; letter-spacing: .04em; }
.author-name { font-family: var(--font-heading); font-weight: 700; font-size: 19px; }
.author-sub { font-size: 15px; opacity: .8; }
.author-box .socials a { background: #fff; color: var(--green-900); }
@media (hover: hover) { .author-box .socials a:hover { background: var(--lime-100); color: var(--green-900); } }

/* типографика контента из редактора */
.prose { min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.7; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; text-wrap: pretty; }
.prose .lead, .prose > p.is-style-lead, .prose-lead { font-size: 21px; line-height: 1.6; font-weight: 600; color: var(--green-900); margin: 0 0 32px; }
.prose h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 36px 0 14px; color: var(--green-900); }
.prose h3 { font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 28px 0 12px; color: var(--green-900); }
.prose h4 { font-family: var(--font-heading); font-weight: 700; font-size: 19px; margin: 24px 0 10px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .socials a, .prose .tags a { text-decoration: none; }
.prose ul { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul li::before {
  content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 3px;
  background: var(--lime-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23336A29' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose ol li { margin-bottom: 8px; }
.prose ol li::marker { color: var(--green-700); font-weight: 800; }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote {
  margin: 8px 0 32px; background: var(--lime-100); border: 0; border-radius: 32px; padding: clamp(24px, 4vw, 36px);
  position: relative; overflow: hidden; text-align: left;
}
.prose blockquote::before { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--lime); right: -40px; top: -50px; }
.prose blockquote > * { position: relative; }
.prose blockquote p { font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; color: var(--green-900); margin: 0 0 14px; }
.prose blockquote p:last-of-type { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 800; font-size: 15px; color: var(--green-700); }
.prose img, .prose .wp-block-image img { border-radius: 28px; height: auto; }
.prose figure { margin: 0 0 28px; }
.prose figcaption { font-size: 14px; opacity: .7; margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 2px solid var(--lime-100); text-align: left; }
.prose th { color: var(--green-900); }
.prose hr { border: 0; height: 2px; background: var(--lime-100); margin: 32px 0; }
.prose .wp-block-button__link { background: var(--green-700); color: #fff; border-radius: 999px; padding: 14px 24px; font-family: var(--font-heading); font-weight: 700; text-decoration: none; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose iframe { max-width: 100%; border-radius: 24px; }

/* статьи, импортированные из Word и PDF */
.prose math { font-size: 1.12em; }
.prose math[display="block"] { margin: 8px auto; overflow-x: auto; overflow-y: hidden; max-width: 100%; }
.prose .pr-math-block { text-align: center; }
.prose p img, .prose li img, .prose td img { display: inline-block; vertical-align: middle; border-radius: 8px; }
.prose table { display: block; overflow-x: auto; }
.prose .wp-block-table { margin: 0 0 28px; }
.prose .wp-block-table td, .prose .wp-block-table th { border: 2px solid var(--lime-100); vertical-align: top; }
.prose .wp-block-image.aligncenter, .prose .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .wp-block-image.aligncenter img { margin: 0 auto; }
.prose .wp-block-image.alignright { margin-left: auto; width: fit-content; }
.prose .is-resized img { max-width: 100%; height: auto; }
.pr-import-miss { background: #fde8e8; color: #9b1c1c; border-radius: 6px; padding: 0 6px; font-size: .85em; }
.pr-pdf { display: flex; flex-direction: column; gap: 16px; margin: 0 0 24px; }
.pr-pdf.is-loading { min-height: 320px; border-radius: 24px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%2380B155' stroke-width='5' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat; }
.pr-pdf-page { width: 100%; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.pr-pdf-page canvas { display: block; width: 100%; height: auto; }
.prose .pr-pdf-download {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-700); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 12px 22px; font-family: var(--font-heading); font-weight: 700; font-size: 15px;
}
@media (hover: hover) { .prose .pr-pdf-download:hover { background: var(--green-900); color: #fff; } }

/* формулы LaTeX (KaTeX) */
.prose code.pr-tex { font-family: inherit; background: none; color: inherit; }
.prose .katex { font-size: 1.1em; }
.prose .katex-display { margin: 8px 0; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.prose .pr-tex-error { color: #9b1c1c; background: #fde8e8; border-radius: 6px; padding: 0 6px; font-family: monospace; font-size: .85em; }

/* статьи из Word: выделенные формулы, формулы в строке, подписи к рисункам */
.prose .pr-formula {
  background: #F5F1E8; border-top: 1px solid #E0D8C0; border-bottom: 1px solid #E0D8C0; margin: 6px 0 22px; padding: 12px 18px;
  font-family: Consolas, 'Courier New', monospace; font-size: 17px; line-height: 1.6; color: #B3261E; overflow-x: auto;
}
.prose .pr-formula--text { font-family: inherit; color: inherit; font-size: inherit; }
.prose code { font-family: Consolas, 'Courier New', monospace; font-size: .95em; color: #B3261E; }
.prose .wp-block-image figcaption, .prose .wp-element-caption { font-size: 15px; line-height: 1.5; color: #595959; text-align: center; margin: 10px auto 0; max-width: 620px; opacity: 1; }
.prose .wp-block-image { margin-bottom: 28px; }
.prose th { font-weight: 700; }

/* ==========================================================================
   Обычная страница / 404
   ========================================================================== */
.hero--page { padding-bottom: clamp(48px, 7vw, 80px); }
.page-head { padding-top: clamp(40px, 7vw, 72px); max-width: 820px; }
.page-head .hero-title { margin: 0; font-size: clamp(34px, 4.6vw, 56px); }
.page-head p { color: var(--lime-100); font-size: 19px; margin: 16px 0 0; }
.sec-page { padding: clamp(48px, 7vw, 80px) 24px clamp(64px, 9vw, 104px); }
.sec-page .prose { margin: 0 auto; max-width: 820px; }

/* ==========================================================================
   Плашка контактов, закреплённая при прокрутке
   ========================================================================== */
.stick-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100; background: var(--lime-100);
  box-shadow: 0 6px 20px rgba(20, 40, 10, .18); transform: translateY(-110%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.admin-bar .stick-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .stick-bar { top: 0; } }
.is-stuck .stick-bar { transform: none; visibility: visible; }
@media (hover: none), (pointer: coarse) { .stick-bar { transition: none; } }
.stick-bar-in {
  max-width: 1248px; margin: 0 auto; padding: 0 24px; height: 48px; display: flex; align-items: center;
  font-size: 14px; font-weight: 700; color: var(--green-900);
}
.stick-bar-in > a:not(.btn), .stick-bar-in > span {
  display: flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; color: var(--green-900);
  padding: 0 16px; height: 100%; border-right: 2px solid var(--lime); flex: 1;
}
@media (hover: hover) { .stick-bar-in > a:not(.btn):hover { color: var(--green-700); } }
.stick-bar-in > :nth-last-child(2) { border-right: 0; }
.stick-cta { flex: none; margin-left: 12px; padding: 8px 18px; font-size: 14px; border-radius: 12px; }
.stick-cta .cta-short { display: none; }
.lbl-s { display: none; }
.hdr-mob-contacts .lbl { display: none; }
.hdr-mob-contacts .lbl-s { display: inline; }
@media (max-width: 899px) {
  .stick-bar-in { padding: 0 12px; }
  .stick-bar-in > a:not(.btn) { padding: 0 10px; }
}
@media (max-width: 639px) {
  .stick-bar-in { padding: 0 6px; }
  .stick-bar-in > a:not(.btn) { flex: 1 1 0; min-width: 0; padding: 0 4px; gap: 5px; font-size: 13px; }
  .stick-bar-in .lbl { display: none; }
  .stick-bar-in .lbl-s { display: inline; }
  .stick-cta { margin-left: 6px; padding: 8px 10px; font-size: 13px; }
  .stick-cta .cta-full { display: none; }
  .stick-cta .cta-short { display: inline; }
}
@media (max-width: 359px) {
  .stick-bar-in > a:not(.btn) svg { display: none; }
}
/* липкие элементы страницы опускаются под плашку */
.is-stuck .filterbar { top: 48px; }
.admin-bar.is-stuck .filterbar { top: 80px; }
.is-stuck .aside { top: 136px; }
.admin-bar.is-stuck .aside { top: 168px; }
.is-stuck .article-aside { top: 72px; }
.admin-bar.is-stuck .article-aside { top: 104px; }
@media (max-width: 782px) { .admin-bar.is-stuck .filterbar { top: 48px; } }
html { scroll-padding-top: 64px; }

/* горизонтальные ленты: затухание у края, если есть что прокручивать */
.js-hscroll { scroll-behavior: auto; }
.js-hscroll.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.js-hscroll.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.js-hscroll.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.js-hscroll.is-dragging { cursor: grabbing; user-select: none; }
.js-hscroll.is-dragging a { pointer-events: none; }

/* кнопка «наверх» */
.to-top {
  position: fixed; right: 20px; bottom: calc(20px + var(--cookie-h, 0px)); z-index: 250;
  -webkit-appearance: none; appearance: none; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: var(--green-700); color: #fff; box-shadow: 0 8px 24px rgba(20, 40, 10, .3); cursor: pointer;
  display: none; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.to-top.is-on { display: flex; }
.to-top svg { display: block; }
.to-top:active { background: var(--green-900); }
@media (hover: hover) { .to-top:hover { background: var(--green-900); } }
@media (max-width: 600px) { .to-top { right: 14px; bottom: calc(14px + var(--cookie-h, 0px)); width: 46px; height: 46px; } }

/* уведомление о cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 780px; margin: 0 auto;
  background: #fff; color: var(--ink); border-radius: 24px; box-shadow: 0 12px 40px rgba(20, 40, 10, .28);
  padding: 16px 18px 16px 22px; font-size: 14px; line-height: 1.45; max-height: calc(100vh - 32px); overflow-y: auto;
}
.cookie-main { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.cookie-text { margin: 0; flex: 1 1 320px; }
.cookie-text a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.cookie .btn-sm { padding: 10px 18px; font-size: 14px; }
.cookie-settings { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--lime-100); margin-top: 14px; padding-top: 14px; }
.cookie-settings[hidden] { display: none; }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cookie-opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-700); cursor: pointer; }
.cookie-opt input:disabled { cursor: default; }
.cookie-opt b { display: block; font-family: var(--font-heading); font-size: 15px; color: var(--green-900); }
.cookie-settings .cookie-btns { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 600px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: 14px; border-radius: 20px; }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Появление при прокрутке
   ========================================================================== */
/* Только на компьютере с мышью. На телефонах и планшетах анимации нет: Safari на iPhone
   принимает «проявляющиеся» блоки за раскрывающееся меню и не засчитывает первое касание. */
@media (hover: hover) and (pointer: fine) {
  .js [data-reveal] { opacity: 0; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0ms); }
  .js [data-reveal="up"] { transform: translateY(36px); }
  .js [data-reveal="left"] { transform: translateX(-40px); }
  .js [data-reveal="zoom"] { transform: scale(.92); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (hover: hover) { .js .dir-card[data-reveal].is-in:hover, .js .series[data-reveal].is-in:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
