/* ==========================================================================
   Хорошие SEOшники — фирменный стиль
   Палитра логотипа: бирюза, чёрный, жёлтый акцент
   Шрифты: Nunito 900 (заголовки), Golos Text (текст), JetBrains Mono (цифры)
   ========================================================================== */

:root {
  --brand: #45d8df;
  --brand-soft: #e2fafc;
  --brand-deep: #17a3ab;
  --sun: #ffc93c;
  --sun-soft: #ffe9a8;

  --ink: #16181a;
  --ink-soft: #4b5457;
  --ink-faint: #7d878a;
  --paper: #ffffff;

  --display: 'Nunito', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1120px;
  --gap: 22px;
  --r: 20px;
  --bd: 2.5px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-deep); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- типографика ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
}

h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

mark {
  background: var(--sun);
  color: var(--ink);
  padding: 0 5px;
  border-radius: 5px;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 14px;
  display: block;
}

.lede { font-size: 19px; color: var(--ink-soft); max-width: 62ch; }

.num { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- шапка ---------- */

.site-head {
  background: var(--brand);
  border-bottom: var(--bd);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; color: #fff; }

.nav { display: flex; gap: 18px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 600; }
.nav a:hover { color: #fff; text-decoration: none; }

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

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 100px;
  border: var(--bd);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--pop-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover {
  background: var(--sun);
  color: var(--ink);
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--brand); color: var(--ink); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- секции ---------- */

section { padding: 76px 0; }
section:nth-of-type(even) { background: var(--brand-soft); }

.section-head { max-width: 66ch; margin-bottom: 38px; }

/* ---------- герой ---------- */

.hero {
  background: var(--brand);
  border-bottom: var(--bd);
  padding: 62px 0 74px;
}

.serp {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop);
  max-width: 800px;
  overflow: hidden;
}

.serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: var(--bd);
  background: var(--sun);
  padding: 13px 20px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.serp-bar .q { font-weight: 700; }

.caret {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--ink);
  vertical-align: -3px;
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.serp-body { padding: 26px 24px; }

.serp-url {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 8px;
}

.serp-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.serp-snippet { color: var(--ink-soft); margin: 0; font-size: 18px; }

.serp-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 2px dashed var(--ink);
  margin-top: 22px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.serp-meta span {
  background: var(--brand-soft);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 4px 12px;
}
.serp-meta b { color: var(--ink); font-weight: 700; }

.hero .eyebrow { color: var(--ink); }

/* ---------- цифры ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: var(--gap);
}

.stat {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 26px 22px;
}
.stat:nth-child(2) { background: var(--sun-soft); }
.stat:nth-child(3) { background: var(--brand-soft); }

.stat .v {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.stat .k { font-size: 14px; color: var(--ink-soft); margin-top: 10px; display: block; }

/* ---------- прайс ---------- */

.rate-list { border-top: var(--bd); }

.rate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 2px dashed var(--ink);
}
.rate .name { font-family: var(--display); font-weight: 800; font-size: 19px; }
.rate .desc { color: var(--ink-soft); font-size: 15px; grid-column: 1 / -1; margin: 6px 0 0; max-width: 60ch; }
.rate .price {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 4px 14px;
}

/* ---------- карточки ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: var(--gap);
}

.card {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 26px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.person { display: flex; gap: 16px; align-items: flex-start; }
.person img {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2.5px solid var(--ink);
  background: var(--brand);
}
.person .who { font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: -0.01em; }
.person .what { color: var(--ink-soft); font-size: 15px; margin: 6px 0 0; }

/* ---------- темы ---------- */

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
}

.topic {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 26px 24px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.topic:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.topic:nth-child(3n+2) { background: var(--brand-soft); }
.topic:nth-child(3n) { background: var(--sun-soft); }

.topic img {
  width: 52px; height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
}
.topic h3 { margin-bottom: 10px; }
.topic p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- нумерованный список ---------- */

.who-list { border-top: var(--bd); }

.who-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 2px dashed var(--ink);
  align-items: start;
}

.who-row .n {
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 100px;
  text-align: center;
  padding: 3px 0;
}
.who-row h3 { margin-bottom: 8px; }
.who-row p { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 62ch; }

/* ---------- SEO Деревня ---------- */

.offer-card {
  background: var(--sun);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 34px;
  max-width: 580px;
}
.offer-card .eyebrow { color: var(--ink); }
.offer-price { display: flex; align-items: baseline; gap: 16px; margin: 18px 0 22px; }
.offer-price .old {
  font-family: var(--mono);
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 21px;
}
.offer-price .new {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.offer-card ul { padding-left: 20px; margin: 0 0 8px; color: var(--ink); font-size: 16px; }
.offer-card li { margin-bottom: 9px; }
.offer-card .btn:hover { background: #fff; }

/* ---------- видео ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--gap);
}
.video {
  position: relative;
  padding-top: 56.25%;
  background: var(--ink);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- блок на тёмном ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 42px;
  align-items: start;
}

section.tint { background: var(--ink); }
.tint h2, .tint h3 { color: #fff; }
.tint p, .tint .lede { color: #c9d2d4; }
.tint .eyebrow { color: var(--brand); }
.tint .btn { background: var(--brand); color: var(--ink); border-color: #fff; box-shadow: 3px 3px 0 #fff; }
.tint .btn:hover { background: var(--sun); box-shadow: 5px 5px 0 #fff; }
.tint a { color: var(--sun); }

/* ---------- проза ---------- */

.prose { max-width: 74ch; }
.prose h2 { font-size: 28px; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 9px; }

/* ---------- финал ---------- */

.finale { text-align: center; background: var(--brand) !important; border-top: var(--bd); border-bottom: var(--bd); }
.finale .lede { margin: 0 auto; color: var(--ink); }
.finale .btn-row { justify-content: center; }

/* ---------- блог ---------- */

.post-list { border-top: var(--bd); }

.post-item {
  display: block;
  padding: 28px 0;
  border-bottom: 2px dashed var(--ink);
  color: inherit;
  font-weight: 400;
}
.post-item:hover { text-decoration: none; }
.post-item:hover .post-title { color: var(--brand-deep); }

.post-date {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--brand-soft);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 3px 11px;
}

.post-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 12px 0 10px;
  color: var(--ink);
}

.post-desc { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 70ch; }

.soon { color: var(--ink-faint); }
.soon .post-title { color: var(--ink-faint); }
.soon .post-date { background: #f1f3f3; color: var(--ink-faint); border-color: var(--ink-faint); }

/* статья */

.article { max-width: 740px; padding: 56px 0 76px; }
.article h1 { font-size: clamp(32px, 5.4vw, 52px); margin-bottom: 20px; }
.article h2 { font-size: 28px; margin: 46px 0 16px; }
.article p, .article li { font-size: 18px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 1.2em; }
.article li { margin-bottom: 9px; }
.article blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--sun-soft);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  color: var(--ink);
  font-size: 18px;
}

.article-meta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--brand);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 4px 13px;
  display: inline-block;
  margin-bottom: 24px;
}

.cta-box {
  background: var(--brand);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 32px;
  margin: 52px 0 0;
}
.cta-box h3 { margin-bottom: 12px; font-size: 24px; }
.cta-box p { color: var(--ink); font-size: 16px; }

/* ---------- заглушки ---------- */

.todo {
  background: var(--sun);
  border: 2px dashed var(--ink);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
}

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

.site-foot {
  border-top: var(--bd);
  background: var(--ink);
  color: #c9d2d4;
  padding: 46px 0 56px;
  font-size: 14px;
}
.site-foot b { color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.site-foot a { color: var(--brand); }
.site-foot .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 26px;
  margin-bottom: 30px;
  line-height: 2;
}
.site-foot .legal { color: #8b9497; font-size: 13px; line-height: 1.6; }

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

.rise { opacity: 0; transform: translateY(12px); animation: rise 0.5s ease forwards; }
.rise-2 { animation-delay: 0.1s; }
.rise-3 { animation-delay: 0.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .caret { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .nav { gap: 12px; font-size: 13px; }
  .rate { grid-template-columns: 1fr; }
  .serp-body { padding: 22px 18px; }
  .offer-card { padding: 26px; }
  :root { --pop: 4px 4px 0 var(--ink); }
}

/* ---------- офлайн-встречи ---------- */

section.meet-section { background: var(--brand-soft); }

.meet-hero {
  margin: 0 0 var(--gap);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop);
  overflow: hidden;
  background: #fff;
}
.meet-hero img { width: 100%; height: auto; display: block; }
.meet-hero figcaption {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 12px 18px;
  border-top: var(--bd);
  background: #fff;
}

.meet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--gap);
}
.meet-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  background: #fff;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.meet-grid img:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }

@media (max-width: 640px) {
  .meet-grid { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
}

/* ---------- живой чат ---------- */

section.live-section { background: #fff; }

.live-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--gap);
  margin-bottom: 34px;
}

.live-q {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 22px 24px;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.live-q:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.live-q:nth-child(3n+2) { background: var(--brand-soft); }
.live-q:nth-child(3n) { background: var(--sun-soft); }

.live-q p { margin: 12px 0 0; font-size: 16px; color: var(--ink); }

.live-tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 14px;
}

.live-q h3 { margin-bottom: 10px; }

.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--gap);
  border-top: var(--bd);
  padding-top: 28px;
}
.live-stats .v {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.live-stats .k { font-size: 14px; color: var(--ink-soft); margin-top: 8px; display: block; }

/* ==========================================================================
   Компоненты обновлённой главной
   ========================================================================== */

/* ---------- бегущая строка ---------- */

.ticker {
  background: var(--ink);
  border-top: var(--bd);
  border-bottom: var(--bd);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 46s linear infinite;
}
.ticker-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 0 22px;
  white-space: nowrap;
}
.ticker-track span::after {
  content: '●';
  color: var(--brand);
  margin-left: 22px;
}
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- герой: доработка ---------- */

.hero-side {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
@media (max-width: 900px) { .hero-side { grid-template-columns: 1fr; } }

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

.pill {
  background: #fff;
  border: var(--bd);
  border-radius: 100px;
  box-shadow: var(--pop-sm);
  padding: 12px 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pill b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.pill span { font-size: 14px; color: var(--ink-soft); }
.pill:nth-child(2) { background: var(--sun); }
.pill:nth-child(2) span { color: var(--ink); }

/* ---------- лента блога ---------- */

.blog-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
}
.blog-card {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 26px;
  display: block;
  color: inherit;
  font-weight: 400;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.blog-card:hover { transform: translate(-2px,-2px); box-shadow: var(--pop); text-decoration: none; }
.blog-card h3 { margin: 12px 0 10px; font-size: 20px; }
.blog-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.blog-card.soon-card { background: var(--brand-soft); }

/* ---------- FAQ ---------- */

.faq { border-top: var(--bd); }

.faq details {
  border-bottom: 2px dashed var(--ink);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--brand-deep);
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--brand-deep); }
.faq .answer { padding: 0 0 24px; color: var(--ink-soft); max-width: 74ch; }
.faq .answer p { margin: 0 0 0.8em; }
.faq .answer p:last-child { margin: 0; }

/* ---------- лента преимуществ ---------- */

.perk-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--gap);
}
.perk {
  border: var(--bd);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--pop-sm);
  padding: 24px;
}
.perk:nth-child(4n+2) { background: var(--brand-soft); }
.perk:nth-child(4n+4) { background: var(--sun-soft); }
.perk h3 { font-size: 17px; margin-bottom: 8px; }
.perk p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- полоса-цитата ---------- */

.quote-band {
  background: var(--sun);
  border-top: var(--bd);
  border-bottom: var(--bd);
  padding: 54px 0;
}
.quote-band p {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 24ch;
  margin: 0;
}
.quote-band .who {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 16px;
  color: var(--ink-soft);
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- команда ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
}

.team-card {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 28px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.team-card:hover { transform: translate(-2px,-2px); box-shadow: var(--pop); }
.team-card:nth-child(2) { background: var(--brand-soft); }
.team-card:nth-child(3) { background: var(--sun-soft); }

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  background: var(--brand);
  margin-bottom: 18px;
}

.monogram {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}

.team-card h3 { font-size: 21px; margin-bottom: 6px; }
.team-card .role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  display: block;
  margin-bottom: 12px;
}
.team-card p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.team-card .tg { font-size: 14px; }

/* ---------- блоки для аудиторий ---------- */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--gap);
}

.aud-card {
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.aud-card.accent { background: var(--brand); }
.aud-card h3 { font-size: 24px; margin-bottom: 12px; }
.aud-card p { color: var(--ink-soft); font-size: 16px; }
.aud-card.accent p { color: var(--ink); }
.aud-card ul { padding-left: 20px; margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.aud-card.accent ul { color: var(--ink); }
.aud-card li { margin-bottom: 7px; }
.aud-card .btn-row { margin-top: auto; }

/* ---------- команда: крупный блок ---------- */

section.team-section { background: var(--brand-soft); }

.team { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.team-card { padding: 32px; }
.team-card:nth-child(2), .team-card:nth-child(3) { background: #fff; }

.team-photo {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  margin-bottom: 22px;
}
.team-card h3 { font-size: 26px; margin-bottom: 14px; }
.team-card p { font-size: 15px; margin-bottom: 12px; }
.team-card .tg { margin: 18px 0 0; font-weight: 600; }

/* ---------- друзья сообщества ---------- */

.friends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
}

.friend {
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  background: #fff;
  padding: 26px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.friend:hover { transform: translate(-2px,-2px); box-shadow: var(--pop); }
.friend:nth-child(6n+2), .friend:nth-child(6n+4) { background: var(--brand-soft); }
.friend:nth-child(6n+3), .friend:nth-child(6n+5) { background: var(--sun-soft); }
.friend h3 { font-size: 21px; margin-bottom: 12px; }
.friend p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ==========================================================================
   Правки после проверки на устройствах
   ========================================================================== */

/* якорные переходы не должны прятать заголовок под липкой шапкой */
section[id], div[id] { scroll-margin-top: 86px; }

/* кнопка Telegram прижата к низу карточки команды */
.team-card { display: flex; flex-direction: column; }
.team-card .tg { margin-top: auto; padding-top: 6px; }

/* меню на планшетах и телефонах — одна строка с горизонтальной прокруткой */
@media (max-width: 900px) {
  .site-head .wrap {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-height: 58px;
  }
  .brand { flex: none; font-size: 15px; }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding: 6px 0;
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  section[id], div[id] { scroll-margin-top: 66px; }
}

/* мелкие экраны: чуть плотнее */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .team-card, .aud-card, .friend, .live-q { padding: 20px; }
  .btn { font-size: 15px; padding: 13px 20px; }
  .team-photo { max-width: 140px; }
}

/* видео внутри карточки друга */
.friend .video {
  margin-top: 18px;
  border-width: 2px;
  border-radius: 14px;
  box-shadow: none;
}

/* ---------- партнёрам: яркий блок ---------- */

section.partners-section {
  background: var(--sun);
  border-top: var(--bd);
  border-bottom: var(--bd);
}
.partners-section .eyebrow { color: var(--ink); }
.partners-section .lede { color: var(--ink); }

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--gap);
}
.format {
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 24px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.format:hover { transform: translate(-2px,-2px); box-shadow: var(--pop); }
.format h3 { font-size: 18px; margin-bottom: 10px; }
.format p { color: var(--ink-soft); font-size: 15px; margin: 0; }

section.friends-section { background: #fff; }

/* ---------- мобильная эргономика ---------- */

@media (max-width: 900px) {
  /* область нажатия в меню — не меньше 44px по высоте */
  .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }
  .nav { padding: 0; gap: 18px; }
  .site-head .wrap { min-height: 56px; }

  /* метки аудиторий — читаемый размер */
  .live-tag { font-size: 12px; }

  /* заголовки не должны разрываться посреди слова */
  h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }

  /* аккордеон FAQ — крупнее зона нажатия */
  .faq summary { padding: 20px 44px 20px 0; min-height: 44px; }
}

/* числа в пилюлях не должны разрываться */
.pill b { white-space: nowrap; flex: none; }
.pill { flex-wrap: wrap; row-gap: 2px; }
.serp-meta span { white-space: nowrap; }

/* ---------- отдел исследований ---------- */

section.research-section { background: var(--ink); }
.research-section h2, .research-section h3 { color: #fff; }
.research-section p, .research-section .lede { color: #c9d2d4; }
.research-section .eyebrow { color: var(--brand); }
.research-section .btn { background: var(--brand); color: var(--ink); border-color: #fff; box-shadow: 3px 3px 0 #fff; }
.research-section .btn:hover { background: var(--sun); box-shadow: 5px 5px 0 #fff; }
.research-section img { width: 100%; height: auto; }

/* ---------- длинные руководства ---------- */

.guide { max-width: 780px; }

.guide .authors {
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 4px solid var(--brand);
  padding-left: 14px;
  margin: 0 0 30px;
}

.toc {
  background: var(--brand-soft);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 26px 28px;
  margin: 0 0 44px;
}
.toc h2 { font-size: 18px; margin: 0 0 14px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 8px; font-size: 15px; }
.toc a { color: var(--ink); font-weight: 500; }
.toc a:hover { color: var(--brand-deep); }

.guide h2 {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px dashed var(--ink);
  font-size: 30px;
}
.guide h3 { font-size: 21px; margin: 34px 0 12px; text-transform: none; letter-spacing: -0.01em; }
.guide h4 { font-family: var(--display); font-weight: 800; font-size: 17px; margin: 24px 0 8px; }

.guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.guide table thead { background: var(--sun); }
.guide th, .guide td {
  border: 2px solid var(--ink);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.guide th { font-family: var(--display); font-weight: 800; font-size: 14px; }

.guide code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--brand-soft);
  border: 1px solid var(--rule, var(--ink));
  border-radius: 4px;
  padding: 1px 5px;
  word-break: break-word;
}
.guide pre {
  background: var(--ink);
  border: var(--bd);
  border-radius: var(--r);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.guide pre code {
  background: none;
  border: 0;
  color: #e6ecee;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.guide blockquote {
  background: var(--sun-soft);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 17px;
}
.guide blockquote p:last-child { margin: 0; }

.guide ul, .guide ol { padding-left: 24px; }
.guide li { margin-bottom: 10px; }
.guide strong { font-weight: 700; }

@media (max-width: 640px) {
  .guide h2 { font-size: 24px; margin-top: 42px; }
  .guide h3 { font-size: 19px; }
  .toc { padding: 20px; }
  .guide table { font-size: 14px; }
  .guide th, .guide td { padding: 8px 10px; }
}

/* заголовок оглавления — без разделителя */
.guide .toc h2 { margin-top: 0; padding-top: 0; border-top: 0; }

/* ==========================================================================
   Шапка: бренд с подписью и мобильное меню-бургер
   ========================================================================== */

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand:hover img { opacity: 0.82; }
.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.62;
  white-space: nowrap;
  border-left: 2px solid rgba(22,24,26,0.28);
  padding-left: 12px;
}

/* кнопка-бургер: на десктопе скрыта */
.burger { display: none; }

@media (max-width: 900px) {
  .site-head .wrap {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
  }

  .brand img { height: 30px; }
  .brand { gap: 9px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0.13em; padding-left: 9px; }

  /* сам бургер */
  .burger {
    display: block;
    width: 46px;
    height: 46px;
    flex: none;
    border: 2.5px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease;
  }
  .burger:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }

  .burger span,
  .burger span::before,
  .burger span::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.15s ease;
  }
  .burger span { top: 50%; margin-top: -1.25px; }
  .burger span::before { content: ''; top: -7px; }
  .burger span::after  { content: ''; top:  7px; }

  /* открытое состояние — крестик */
  .nav-toggle:checked ~ .burger { background: var(--sun); }
  .nav-toggle:checked ~ .burger span { transform: translateX(-50%) rotate(45deg); }
  .nav-toggle:checked ~ .burger span::before { opacity: 0; }
  .nav-toggle:checked ~ .burger span::after  { top: 0; transform: translateX(-50%) rotate(90deg); }

  /* меню скрыто, раскрывается по нажатию */
  .site-head .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 3;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    border-top: 2.5px solid var(--ink);
    margin: 0;
    padding: 0 0 10px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }

  .site-head .nav a {
    display: block;
    min-height: 0;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 2px dashed rgba(22,24,26,0.28);
    white-space: normal;
    overflow-wrap: break-word;
  }
  .site-head .nav a:last-child {
    border-bottom: 0;
    margin-top: 10px;
    background: var(--ink);
    color: #fff;
    text-align: center;
    border-radius: 100px;
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    padding: 13px 20px;
  }
  .site-head .nav a:last-child:hover { background: var(--sun); color: var(--ink); }
}



/* длинные адреса и неразрывные строки не должны рвать вёрстку */
.article, .guide, .prose, .faq .answer { overflow-wrap: break-word; }
.article a, .guide a, .prose a, .todo, .article code { overflow-wrap: anywhere; word-break: break-word; }

/* шапка: компактное меню на средних экранах */
@media (min-width: 901px) and (max-width: 1300px) {
  .nav { gap: 13px; font-size: 13px; }
  .brand img { height: 40px; }
}

/* ---------- шапка: логотип и подпись всегда в одну строку ---------- */

.brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}
.brand img { flex: none; }
.brand .brand-sub { flex: none; white-space: nowrap; }

@media (max-width: 900px) {
  .site-head .wrap { flex-wrap: wrap; }
  .brand { max-width: calc(100% - 62px); overflow: hidden; }
  .brand img { height: 30px; }
}

@media (max-width: 360px) {
  .brand img { height: 26px; }
  .brand { gap: 7px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.1em; padding-left: 7px; }
}

/* ---------- шаги «как мы работаем» ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
}

.step {
  position: relative;
  background: #fff;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  padding: 30px 26px 26px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.step:hover { transform: translate(-2px,-2px); box-shadow: var(--pop); }
.step:nth-child(2) { background: var(--brand-soft); }
.step:nth-child(3) { background: var(--sun-soft); }

.step-n {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
}
.step:nth-child(2) .step-n { background: var(--brand); color: var(--ink); }
.step:nth-child(3) .step-n { background: var(--sun); color: var(--ink); }

.step h3 { margin: 14px 0 10px; font-size: 20px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

@media (max-width: 640px) {
  .steps { gap: 34px; }
  .step { padding: 28px 20px 22px; }
}

/* ---------- призыв «описать ситуацию» ---------- */

.ask-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--brand);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 28px 32px;
  margin-top: 34px;
}
.ask-box h3 { font-size: 23px; margin-bottom: 8px; }
.ask-box p { color: var(--ink); font-size: 16px; margin: 0; max-width: 56ch; }
.ask-box .btn { flex: none; }

@media (max-width: 640px) {
  .ask-box { padding: 24px; gap: 20px; }
  .ask-box .btn { width: 100%; text-align: center; }
}
