/* Шрифт Manrope лежит в теме (fonts/), а не грузится с Google Fonts. Один переменный файл на набор символов
   покрывает все начертания от 400 до 800; браузер качает только нужные ему наборы. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070d0b;
  --bg-soft: #0b1411;
  --card: #0d1714;
  --card-2: #101c18;
  --border: #1b2a24;
  --border-strong: #26392f;
  --text: #f1f5f2;
  --text-muted: #a3b1aa;
  --text-dim: #6f7f77;
  --green: #2f9e4f;
  --green-bright: #45c466;
  --green-deep: #14532b;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(47, 158, 79, .10), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

.sprite {
  position: absolute;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 13, 11, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  width: 34px;
  height: 34px;
  color: var(--green-bright);
}

.logo__text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.nav__list {
  display: flex;
  gap: 30px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 26px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.contact-link:hover {
  color: var(--text);
}

.contact-link svg {
  width: 18px;
  height: 18px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--green);
  box-shadow: 0 6px 20px -8px rgba(69, 196, 102, .7);
}

.btn--primary:hover {
  background: #37b25a;
}

.btn--outline {
  background: var(--green-deep);
  border-color: var(--green);
}

.btn--outline:hover {
  background: #1a6a37;
}

.btn--pill {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* ---------- Сетка ---------- */

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
  padding-top: 26px;
  padding-bottom: 40px;
}

.sidebar,
.aside,
.content {
  display: grid;
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- Девблоги ---------- */

.devlogs {
  padding: 22px 12px 14px;
}

.devlogs .card__title {
  padding: 0 10px 14px;
}

.devlogs__list {
  display: grid;
  gap: 4px;
}

.devlog {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background .2s, border-color .2s;
}

.devlog:hover {
  background: rgba(255, 255, 255, .03);
}

.devlog.is-active {
  background: linear-gradient(90deg, #17662f, #124c26);
  border-color: var(--green);
  box-shadow: inset 3px 0 0 var(--green-bright);
}

.devlog__num {
  width: 12px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.devlog.is-active .devlog__num {
  color: #fff;
}

.devlog__body {
  display: grid;
  line-height: 1.4;
}

.devlog__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.devlog__name {
  font-size: 13px;
  color: var(--text-dim);
}

.devlog.is-active .devlog__name {
  color: #cfe9d6;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 45%, rgba(4, 10, 8, .25), rgba(4, 10, 8, .75));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 36px 20px;
}

.hero__leaf {
  width: 46px;
  height: 46px;
  color: #fff;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5));
}

.hero__heading {
  font: inherit;
}

.hero__title,
.hero__subtitle {
  display: block;
}

.hero__title {
  margin-top: 4px;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}

.hero__subtitle {
  margin-top: 10px;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500;
  color: #e3ebe6;
}

.hero__tagline {
  margin-top: 16px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--green-bright);
}

/* ---------- О проекте ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: start;
  padding: 6px 4px 0;
}

.about__text p {
  margin: 14px 0 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.creator {
  padding: 18px;
}

.creator__heading {
  font-size: 14px;
  font-weight: 700;
}

.creator__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
}

.creator__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.creator__name {
  font-size: 14px;
  font-weight: 600;
}

.creator__role {
  font-size: 12px;
  color: var(--text-dim);
}

.creator__quote {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-bright);
}

.more-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.more-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Блоки главной: прогресс, команда, логотипы ---------- */

.card__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* заглушка на месте картинки, которой ещё нет в img/ */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--text-dim);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 8px, transparent 8px 16px),
    var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 22px;
}

/* прогресс: четыре стадии на одной линии */

.progress {
  padding: 22px 22px 26px;
}

.progress__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--progress-count), minmax(0, 1fr));
  margin-top: 14px;
}

.progress__track::before,
.progress__track::after {
  content: "";
  position: absolute;
  top: 85px;
  left: calc(50% / var(--progress-count));
  height: 2px;
  border-radius: 2px;
}

.progress__track::before {
  right: calc(50% / var(--progress-count));
  background: var(--border-strong);
}

.progress__track::after {
  width: calc((100% - 100% / var(--progress-count)) * var(--progress-done) / (var(--progress-count) - 1));
  background: var(--green);
}

.progress__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 76px 20px auto;
  justify-items: center;
  align-items: end;
  color: #55635c;
}

.progress__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.progress__icon--sprout { width: 46px; height: 46px; }
.progress__icon--plant  { width: 58px; height: 58px; }
.progress__icon--bloom  { width: 68px; height: 68px; }

.progress__stage:hover .progress__icon {
  transform: translateY(-3px);
}

.progress__dot {
  align-self: center;
  width: 10px;
  height: 10px;
  background: #3a4a42;
  border: 2px solid var(--card);
  border-radius: 50%;
  box-sizing: content-box;
}

.progress__name {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.progress__stage.is-done {
  color: #5f9a70;
}

.progress__stage.is-done .progress__dot {
  background: var(--green);
}

.progress__stage.is-done .progress__name {
  color: var(--text);
}

.progress__stage.is-current {
  color: #7dff8a;
}

.progress__stage.is-current .progress__icon {
  filter: drop-shadow(0 0 6px rgba(125, 255, 138, .75)) drop-shadow(0 0 16px rgba(69, 196, 102, .55));
}

.progress__stage.is-current .progress__dot {
  background: #7dff8a;
  box-shadow: 0 0 0 4px rgba(125, 255, 138, .18), 0 0 14px rgba(125, 255, 138, .8);
}

.progress__stage.is-current .progress__name {
  font-weight: 700;
  color: var(--green-bright);
}

@media (max-width: 480px) {
  .progress {
    padding-left: 10px;
    padding-right: 10px;
  }

  .progress .card__title {
    padding-left: 10px;
  }

  .progress__name {
    font-size: 11px;
  }
}

/* команда */

.team {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.team__list {
  display: grid;
  gap: 16px;
  margin: 16px 0 6px;
}

.team__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team__avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.avatar-stub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-bright);
  background: var(--green-deep);
}

.author__avatar.avatar-stub {
  font-size: 22px;
}

.team__name {
  font-size: 14px;
  font-weight: 600;
}

.team__role {
  font-size: 12px;
  color: var(--text-dim);
}

.team .more-link {
  margin-top: auto;
  padding-top: 12px;
}

.team-cards {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-top: 18px;
}

.team-cards .author {
  margin-top: 0;
  align-items: center;
}

.team-cards .author:first-child {
  align-items: flex-start;
}

/* магазины, достижения, партнёры */

.buy,
.achievements,
.partners {
  padding: 20px 18px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.logo-grid li,
.logo-grid a {
  display: block;
}

.logo-tile {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s;
}

.logo-grid--stores {
  max-width: 190px;
  margin-left: auto;
  margin-right: auto;
}

.logo-grid--partners .logo-tile {
  aspect-ratio: 3 / 2;
}

/* логотипы партнёров — на белых плитках: часть из них тёмные на прозрачном фоне */
.logo-grid--partners img.logo-tile {
  padding: 8px;
  background: #fff;
}

.logo-grid li:hover .logo-tile {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--green);
}

.achievements__list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.achievements__list li {
  display: flex;
  justify-content: center;
}

/* заглушка держит место под картинку; настоящая картинка показывается в своих пропорциях */
.achievement {
  width: 100%;
  border-radius: var(--radius-sm);
}

.placeholder.achievement {
  aspect-ratio: 16 / 9;
}

img.achievement {
  height: auto;
  max-height: 190px;
  object-fit: contain;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.achievements__list li:hover img.achievement {
  transform: scale(1.04);
}

/* круглый знак «УМНИК» — на прозрачном фоне, шире не растягиваем */
img.achievement[src*="umnik"] {
  width: auto;
  max-width: 78%;
}

/* «ТОП-1000» — картинка на белом фоне */
img.achievement[src*="top-1000"] {
  background: #fff;
}

/* ---------- Страницы партнёров ---------- */

.partner-head__row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
}

.partner-head__row .page__title {
  margin-top: 0;
}

.partner-head__logo {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius);
}

img.partner-head__logo,
img.partner-card__img {
  padding: 12px;
  background: #fff;
}

.partner-list {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-top: 32px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 196, 102, .45);
  box-shadow: 0 14px 30px -18px rgba(69, 196, 102, .55);
}

.partner-card__logo {
  flex-shrink: 0;
}

.partner-card__img {
  display: block;
  width: 120px;
  height: 96px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.partner-card__body .entry__title {
  margin-top: 0;
}

.partner-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 12px;
}

.partner-card__links .more-link {
  margin-top: 0;
}

.partner-card__site {
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partner-card__site:hover {
  color: var(--green-bright);
}

.page__cta .btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .partner-head__row,
  .partner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .partner-head__logo {
    width: 104px;
    height: 104px;
  }
}

/* ---------- Страница «Поддержать проект» ---------- */

.support-soon {
  display: flex;
  gap: 18px;
  max-width: 720px;
  margin-top: 18px;
  padding: 24px;
}

.support-soon__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--green-bright);
}

.support-soon__title {
  font-size: 17px;
  font-weight: 700;
}

.support-soon p:not(.support-soon__title) {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.support-soon .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  word-break: break-word;
}

.support-methods {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-top: 18px;
}

.support-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.support-method--qr {
  justify-content: flex-start;
}

.support-method h3 {
  font-size: 17px;
  font-weight: 700;
}

.support-method p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.support-method .btn {
  flex-shrink: 0;
}

.support-method__qr {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  padding: 10px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
}

@media (max-width: 560px) {
  .support-soon,
  .support-method {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Новости ---------- */

.news {
  padding: 6px 4px 0;
}

.news__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.news-item {
  padding: 18px;
}

.news-item__date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-bright);
}

.news-item__title {
  margin: 8px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.news-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Поддержка ---------- */

.support {
  padding: 24px 22px;
}

.support__text {
  margin: 14px 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.support__why {
  margin: 26px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.checklist svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--green-bright);
}

/* ---------- Страница «О проекте» ---------- */

.page {
  max-width: 960px;
  min-height: calc(100vh - 136px);
  padding-top: 34px;
  padding-bottom: 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s;
}

.back-link:hover {
  color: var(--green-bright);
}

.back-link svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.page__title {
  margin-top: 16px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.page__lead {
  max-width: 720px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: #d3ddd7;
}

.page__section {
  margin-top: 48px;
}

.page__note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.prose {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feature {
  padding: 20px;
}

.feature__icon {
  width: 24px;
  height: 24px;
  color: var(--green-bright);
}

.feature h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.feature p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.checklist--wide {
  max-width: 720px;
  margin-top: 16px;
  gap: 12px;
}

.checklist--wide li {
  font-size: 15px;
}

.checklist--wide svg {
  width: 18px;
  height: 18px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stage {
  padding: 22px;
}

.stage__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.stage h3 {
  margin: 8px 0 14px;
  font-size: 19px;
  font-weight: 700;
}

.stage ul {
  display: grid;
  gap: 9px;
}

.stage li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.stage li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.author {
  display: flex;
  gap: 20px;
  max-width: 720px;
  margin-top: 18px;
  padding: 22px;
}

.author__avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.author__name {
  font-size: 19px;
  font-weight: 700;
}

.author__role {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.author p:not(.author__role) {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.author__mail {
  margin-top: 14px;
  color: var(--green-bright);
}

.page__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.btn--ghost {
  color: var(--text);
  background: var(--card);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--green);
}

@media (max-width: 560px) {
  .author {
    flex-direction: column;
    gap: 14px;
  }
}

/* ---------- Страница девблога ---------- */

.layout--post {
  grid-template-columns: 250px minmax(0, 1fr);
}

.post {
  min-height: 320px;
  padding: clamp(22px, 4vw, 44px);
}

.post__loading {
  color: var(--text-dim);
}

.post__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.post__title {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.post__body {
  max-width: 720px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: #c9d4ce;
}

.post__body > * + * {
  margin-top: 16px;
}

.post__body h2 {
  margin-top: 34px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.post__body h3 {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.post__body ul {
  display: grid;
  gap: 8px;
}

.post__body li {
  position: relative;
  padding-left: 20px;
}

.post__body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .68em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.post__body strong {
  font-weight: 700;
  color: var(--text);
}

.post__body a {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post__body img {
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.post__body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(47, 158, 79, .08);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-nav__link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}

.post-nav__link:hover {
  border-color: var(--green);
}

.post-nav__link--next {
  text-align: right;
}

.post-nav__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-bright);
}

.post-nav__title {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .layout--post {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout--post .post {
    order: -1;
  }

  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-nav__link--next {
    text-align: left;
  }
}

/* ---------- Содержимое из редактора CMS ---------- */

.card__title a:hover,
.news-item__title a:hover,
.entry__title a:hover {
  color: var(--green-bright);
}

.devlogs__empty {
  padding: 0 10px 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.news__head .more-link {
  margin-top: 0;
}

.page__kicker {
  margin-top: 18px;
}

.page__kicker + .page__title {
  margin-top: 8px;
}

.page__body {
  max-width: none;
  margin-top: 32px;
}

.page__body > p,
.page__body > ul:not([class]),
.page__body > ol,
.page__body > blockquote {
  max-width: 720px;
}

.page__body > h2 {
  margin-top: 48px;
  font-size: 26px;
  letter-spacing: -.02em;
}

.post__cover {
  width: 100%;
  height: auto;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.post__body ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  list-style: decimal;
}

.post__body ol > li {
  padding-left: 4px;
}

.post__body ol > li::before {
  content: none;
}

.post__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.post__body th,
.post__body td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.post__body th {
  color: var(--text);
  background: var(--bg-soft);
}

/* карточки и этапы на странице «О проекте» */

.post__body .feature-grid {
  margin-top: 18px;
}

.post__body .feature-grid > li {
  padding: 20px;
}

.post__body .feature-grid > li::before {
  position: static;
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--green-bright);
  border-radius: 2px;
}

.post__body .feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.post__body .feature p {
  margin: 0;
}

.post__body .stage h3 {
  margin: 8px 0 14px;
  font-size: 19px;
}

.post__body .stage__label {
  margin: 0;
}

.post__body .stage li {
  padding-left: 18px;
}

.post__body .stage li::before {
  left: 2px;
  top: .6em;
}

/* список записей рубрики */

.entry-list {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 32px;
}

.entry {
  padding: 22px;
}

.entry__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.entry__title {
  margin: 8px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.entry__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Страница не найдена ---------- */

.nf {
  display: flex;
  align-items: center;
}

.nf__card {
  position: relative;
  width: 100%;
  padding: clamp(36px, 7vw, 72px) 24px clamp(40px, 7vw, 64px);
  overflow: hidden;
  text-align: center;
}

/* зелёное свечение за цифрами */
.nf__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 52% at 50% 26%, rgba(69, 196, 102, .16), transparent 70%);
  pointer-events: none;
}

.nf__card > * {
  position: relative;
}

.nf__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  margin-bottom: clamp(20px, 4vw, 34px);
  font-size: clamp(96px, 22vw, 190px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  color: transparent;
  background: linear-gradient(180deg, var(--green-bright), var(--green-deep));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* ноль — круглая грядка: росток сверху, земля снизу */
.nf__zero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: .78em;
  height: .78em;
  overflow: hidden;
  border: .06em solid var(--green);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(69, 196, 102, .1) 0 68%, #3b2a1c 68% 100%);
  box-shadow: 0 0 60px -10px rgba(69, 196, 102, .55), inset 0 0 30px rgba(4, 10, 8, .6);
}

.nf__sprout {
  width: .5em;
  height: .5em;
  margin-bottom: .17em;
  color: var(--green-bright);
  transform-origin: 50% 92%;
  animation: rs-sway 6s ease-in-out infinite;
}

.nf__title {
  margin-top: 10px;
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.nf__text {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.nf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 560px) {
  .nf__actions .btn {
    flex: 1 1 40%;
  }

  .nf__actions .btn--primary {
    flex-basis: 100%;
  }
}

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

.footer {
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

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

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .aside {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 16px;
  }

  .header__inner {
    height: 64px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 16px 20px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__link.is-active {
    color: var(--green-bright);
  }

  .nav__actions {
    justify-content: space-between;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }

  .content {
    order: -1;
  }

  .aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 260px;
  }
}

/* ---------- Анимации ---------- */

/* плавный переход между страницами — там, где браузер это умеет */
@view-transition {
  navigation: auto;
}

@keyframes rs-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes rs-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@keyframes rs-sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(6deg); }
}

@keyframes rs-glow {
  0%, 100% { box-shadow: 0 6px 20px -8px rgba(69, 196, 102, .7); }
  50%      { box-shadow: 0 8px 30px -6px rgba(69, 196, 102, .95); }
}

/* баннер: фон медленно «дышит», текст поднимается по очереди, лист покачивается */

.hero__bg {
  animation: rs-zoom 26s ease-in-out infinite alternate;
}

.hero__content > * {
  animation: rs-rise .8s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .3s; }

.hero__leaf {
  transform-origin: 50% 90%;
  animation: rs-rise .8s cubic-bezier(.2, .7, .2, 1) both, rs-sway 7s ease-in-out .9s infinite;
}

.logo__icon {
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.logo:hover .logo__icon {
  transform: rotate(-12deg) scale(1.08);
}

/* появление блоков при прокрутке. Список селекторов повторён в js/main.js.
   Класс .js ставится скриптом в <head>: без JavaScript всё видно сразу. */

.js :is(.card:not(.hero), .about__text, .news__head, .page__head, .page__body > *, .page__section > .section-title, .page__cta):not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

.js :is(.card:not(.hero), .about__text, .news__head, .page__head, .page__body > *, .page__section > .section-title, .page__cta):not(.is-done) {
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

/* отклик на наведение */

.news-item,
.entry,
.feature,
.stage,
.post-nav__link {
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
}

.news-item:hover,
.entry:hover,
.feature:hover,
.stage:hover,
.post-nav__link:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 196, 102, .45);
  box-shadow: 0 14px 30px -18px rgba(69, 196, 102, .55);
}

.devlog {
  transition: background .2s, border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1);
}

.devlog:not(.is-active):hover {
  transform: translateX(4px);
}

.devlog__num {
  transition: color .2s;
}

.devlog:hover .devlog__num {
  color: var(--green-bright);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -8px rgba(69, 196, 102, .85);
}

.btn--primary:active {
  transform: translateY(1px);
}

.support .btn--primary {
  animation: rs-glow 3.6s ease-in-out infinite;
}

.creator__avatar,
.author__avatar {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s;
}

.creator:hover .creator__avatar,
.author:hover .author__avatar {
  transform: scale(1.06);
  border-color: var(--green-bright);
}

/* подчёркивание в меню выезжает от центра */

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

@media (max-width: 860px) {
  .nav__link::after {
    display: none;
  }

  .nav.is-open {
    animation: rs-rise .3s cubic-bezier(.2, .7, .2, 1) both;
  }
}

/* кто просил поменьше движения — получает сайт без него */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js :is(.card:not(.hero), .about__text, .news__head, .page__head, .page__body > *, .page__section > .section-title, .page__cta) {
    opacity: 1 !important;
    transform: none !important;
  }
}
