/* v4 — один яркий цвет на тёплом белом, крупная типографика, мало текста */

/* Onest со своего сервера: Google Fonts из России грузится медленно и тормозит первый показ */
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* math */
@font-face {
  font-family: 'Onest';
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/onest-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Onest';
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/onest-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/onest-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;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/onest-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: #fbf7f0;
  --paper: #ffffff;
  --ink: #15120f;
  --muted: #6b645c;
  --line: #e7e0d5;
  --accent: #0fa36b;
  --accent-deep: #0b7f53;
  --accent-soft: #d4f1e3;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; } /* якоря не прячутся под липкой шапкой */
body {
  font: 400 18px/1.55 'Onest', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 48px; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.eyebrow {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 20px;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 700 17px 'Onest', sans-serif; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(15, 163, 107, .55); }
.btn:disabled { opacity: .6; }
.btn--small { height: 44px; padding: 0 20px; font-size: 15px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 247, 240, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; flex-shrink: 0; }
.logo img { display: block; height: 26px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav .nav__mobile { display: none; }
.header__phone { font-size: 15px; font-weight: 700; white-space: nowrap; }
.header .btn--small { flex-shrink: 0; }
.burger { display: none; }

/* Первый экран */
.hero { padding: 88px 0 96px; }
.hero__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin-bottom: 28px; }
.hero h1 mark {
  background: none; color: var(--ink);
  box-shadow: inset 0 -0.32em 0 var(--accent-soft);
}
.hero__lead { font-size: 20px; color: var(--muted); max-width: 560px; margin-bottom: 40px; }

/* Форма «введите адрес сайта» */
.check {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end;
  background: var(--paper); padding: 10px; border-radius: 26px;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(21, 18, 15, .25);
  max-width: 640px;
}
.check__field { display: flex; flex-direction: column; padding: 8px 14px; }
.check__field span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.check__field input {
  border: 0; outline: 0; background: none; font: 500 18px 'Onest', sans-serif;
  color: var(--ink); padding: 4px 0; width: 100%;
}
.check__field input.is-error { color: #e5262b; }
.check__field input.is-error::placeholder { color: #e5262b; }
.check__field + .check__field { border-left: 1px solid var(--line); }
.check__note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding: 4px 14px 6px; }
.check__ok { display: none; grid-column: 1 / -1; font-weight: 700; padding: 18px 14px; }
.check.is-sent > :not(.check__ok) { display: none; }
.check.is-sent .check__ok { display: block; }
.check__agree { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); padding: 4px 14px 0; cursor: pointer; }
.check__agree input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.check__agree a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Плашка о cookie (показывает app.js, пока посетитель не нажмёт «Понятно») */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; margin: 0 auto; max-width: 720px;
  display: flex; gap: 16px; align-items: center; padding: 14px 16px 14px 22px;
  background: var(--ink); color: #fff; border-radius: 18px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 20px 40px -20px rgba(21, 18, 15, .5);
}
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex: none; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } }

/* Визуал: ответ нейросети */
.chat {
  background: var(--paper); border-radius: 28px; padding: 22px 24px 26px;
  box-shadow: 0 40px 80px -40px rgba(21, 18, 15, .35), 0 0 0 1px var(--line);
  transform: rotate(1.2deg);
}
.chat__top { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chat__top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat__top span { margin-left: 10px; }
.chat__q {
  margin-left: auto; width: fit-content; max-width: 85%;
  background: var(--ink); color: #fff; padding: 14px 18px;
  border-radius: 20px 20px 4px 20px; font-size: 16px; font-weight: 500;
}
.chat__a { margin-top: 18px; font-size: 16px; }
.chat__typing { color: var(--muted); animation: blink 1s steps(2) infinite; }
.chat__answer { display: none; }
.chat.is-done .chat__typing { display: none; }
.chat.is-done .chat__answer { display: block; animation: rise .5s ease-out; }
.chat__answer ol { list-style: none; margin: 14px 0; display: grid; gap: 8px; counter-reset: n; }
.chat__answer li {
  counter-increment: n; position: relative;
  padding: 12px 14px 12px 46px; border-radius: 14px; background: var(--bg); line-height: 1.4;
}
.chat__answer li::before {
  content: counter(n); position: absolute; left: 14px; top: 12px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--line);
  font-size: 13px; font-weight: 800; text-align: center; line-height: 22px;
}
.chat__answer li.is-you { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.chat__answer li.is-you::before { background: var(--accent); color: #fff; }
.chat__answer em {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 700 11px 'Onest'; font-style: normal;
  text-transform: uppercase; letter-spacing: .05em; vertical-align: 2px;
}
.chat__src { font-size: 13px; color: var(--muted); }
@keyframes blink { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Логотипы клиентов */
.logos { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__title { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.logos__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logos__row a {
  height: 64px; display: grid; place-items: center; border-radius: 12px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  text-align: center; padding: 0 8px; line-height: 1.1; transition: box-shadow .2s;
}
.logos__row a:hover { box-shadow: 0 0 0 2px var(--ink); }
.logos__niches { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Что изменилось */
.shift { padding: 120px 0; }
.shift__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shift__card { border-radius: var(--radius); padding: 36px; }
.shift__card > p:last-child { font-size: 18px; }
.shift__card--old { background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.shift__card--new { background: var(--ink); color: #fff; }
.shift__label { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 24px; }
.shift__card--new .shift__label { color: var(--accent); }
.serp, .answer { min-height: 220px; margin-bottom: 28px; font-size: 15px; line-height: 1.35; }
.serp { display: grid; gap: 12px; align-content: start; }
.serp__q, .answer__q { border-radius: 10px; padding: 9px 14px; font-weight: 600; }
.serp__q { background: var(--bg); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.serp__item b { display: block; font-weight: 600; color: #3b5bab; }
.serp__item span { font-size: 13px; color: #4f8a5b; }
.serp__more { font-size: 13px; }
.answer__q { display: inline-block; background: #2a2622; margin-bottom: 14px; }
.answer__lead { color: rgba(255, 255, 255, .75); margin-bottom: 10px; }
.answer__list { list-style: none; display: grid; gap: 8px; counter-reset: n; }
.answer__list li { counter-increment: n; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .75); }
.answer__list li::before {
  content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px;
}
.answer__list b { color: #fff; }
.shift__bottom { max-width: 760px; margin-top: 48px; font-size: 22px; line-height: 1.5; }

/* Как работаем */
.how { padding: 120px 0; background: var(--paper); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps__n { display: block; font-size: 56px; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; margin-bottom: 16px; }
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Услуги */
.services { padding: 120px 0; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border-radius: var(--radius); padding: 36px;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s;
}
.svc:hover { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-3px); }
.svc h3 { font-size: 28px; }
.svc p { color: var(--muted); }
.svc .svc__price { margin-top: auto; padding-top: 10px; color: var(--ink); font-weight: 800; font-size: 20px; }

/* Реализованные проекты */
.projects { padding: 0; }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.projects .projects__domain { font-size: 14px; font-weight: 700; color: var(--accent-deep); }

/* Кейс */
.case { padding: 120px 0; background: var(--accent-deep); color: #fff; }
.case .eyebrow { color: rgba(255, 255, 255, .8); }
.case__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.case h2 { margin-bottom: 28px; }
.case__text p + p { margin-top: 16px; }
.case__nums { display: grid; gap: 14px; }
.case__nums div { background: rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px 30px; }
.case__nums b { display: block; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.case__nums span { font-size: 16px; opacity: .9; }

/* Вопросы */
.faq { padding: 120px 0; }
.faq__in { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative;
  font-size: 21px; font-weight: 700; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 20px; font-size: 30px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 26px; }

/* Финал */
.final { padding: 120px 0; background: var(--ink); color: #fff; }
.final h2 { max-width: 820px; }
.check--dark { box-shadow: none; }

/* Подвал */
.footer { padding: 48px 0; background: var(--ink); color: #9b938a; font-size: 15px; border-top: 1px solid #2a2622; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer .logo { color: #fff; }
.footer a:hover { color: #fff; }

/* Узкий десктоп: в половине экрана три поля формы не помещаются — кнопка уходит под поля */
@media (min-width: 1101px) and (max-width: 1240px) {
  .check { grid-template-columns: 1fr 1fr; }
  .check .btn { grid-column: 1 / -1; }
}

/* Мобильные */
@media (max-width: 1100px) {
  .nav, .header__phone { display: none; }
  .header .btn--small { margin-left: auto; }
  .burger {
    display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .burger span, .burger::before, .burger::after {
    content: ''; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  }
  .burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
  .burger span, .burger::before, .burger::after { transition: transform .2s, opacity .2s; }
  .header.is-open .burger::before { transform: translateY(6px) rotate(45deg); }
  .header.is-open .burger span { opacity: 0; }
  .header.is-open .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 28px 20px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .header.is-open .nav a { padding: 12px 0; font-size: 18px; }
  .header.is-open .nav .nav__mobile { display: block; font-weight: 700; color: var(--accent-deep); }

  .hero { padding: 48px 0 72px; }
  .hero__in, .case__in, .faq__in { grid-template-columns: 1fr; gap: 48px; }
  .chat { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logos__row { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: 1fr; }
  .shift, .how, .services, .case, .faq, .final { padding: 80px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header .btn--small { display: none; }
  .burger { margin-left: auto; }
  .check { grid-template-columns: 1fr; }
  .check__field + .check__field { border-left: 0; border-top: 1px solid var(--line); }
  .shift__grid, .services__grid, .steps { grid-template-columns: 1fr; }
  .shift__card, .svc { padding: 28px; }
  .shift__bottom { font-size: 19px; }
  .footer__in { flex-direction: column; }
}

/* ---------- Подвал: ссылки на страницы и фраза о компании ---------- */
.footer__nav { display: flex; flex-direction: column; gap: 6px; }
.footer__about { max-width: 820px; margin-top: 36px; color: #b5ac9f; }
.footer__legal { margin-top: 12px; font-size: 14px; }

/* ---------- Внутренние страницы (генерирует pages.js) ---------- */
.pg-hero { padding: 56px 0 72px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.crumbs a:hover { color: var(--accent); }
.pg-hero h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 980px; margin-bottom: 28px; }
.pg-hero__lead { font-size: 21px; color: var(--muted); max-width: 820px; }
.pg-date { margin-top: 20px; font-size: 14px; color: var(--muted); }
.pg-hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.pg-hero__facts div {
  background: var(--paper); border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 0 0 1px var(--line);
}
.pg-hero__facts b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-deep); }
.pg-hero__facts span { font-size: 15px; color: var(--muted); }

.pg-sec { padding: 88px 0; }
.pg-sec--paper { background: var(--paper); }
.pg-sec h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 36px; }
.pg-narrow > * { max-width: 824px; }
.pg-legal { padding-top: 0; }
.pg-legal h2 { font-size: 24px; margin: 40px 0 14px; }
.pg-legal h2:first-child { margin-top: 0; }
.pg-note { color: var(--muted); max-width: 760px; margin: -12px 0 32px; }

.prose p + p, .prose ul + p, .prose p + ul { margin-top: 18px; }
.prose ul { list-style: none; display: grid; gap: 14px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before {
  content: ''; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.prose a, .pg-facts a, .faq details p a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.pg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pg-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: 0 0 0 1px var(--line);
}
.pg-sec--paper .pg-card { background: var(--bg); }
.pg-card p { color: var(--muted); }
.pg-card .eyebrow { margin-bottom: 0; }
.pg-card--link { transition: box-shadow .2s, transform .2s; }
.pg-card--link:hover { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-3px); }
.pg-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.steps__n--small { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }

.pg-check { list-style: none; counter-reset: c; display: grid; gap: 14px; }
.pg-check li {
  counter-increment: c; position: relative; padding: 24px 28px 24px 84px;
  background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
}
.pg-check li::before {
  content: counter(c); position: absolute; left: 24px; top: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800;
}
.pg-check h3 { margin-bottom: 6px; }
.pg-check p { color: var(--muted); }

.pg-table { overflow-x: auto; margin-bottom: 24px; }
.pg-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pg-table thead th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pg-table tbody th { font-weight: 700; white-space: nowrap; }

.pg-facts { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); }
.pg-facts dt, .pg-facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pg-facts dt { font-weight: 700; }

.pg-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pg-team__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 14px;
}
.pg-team figcaption { margin-top: 14px; display: flex; flex-direction: column; }
.pg-team figcaption span { color: var(--muted); font-size: 16px; }

/* Места под реальные данные — видно сразу, чтобы не уехали на боевой незаполненными */
.todo { background: #fff1c2; color: #6b4e00; border-radius: 6px; padding: 1px 6px; }

@media (max-width: 1100px) {
  .pg-sec { padding: 64px 0; }
  .pg-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pg-hero { padding: 32px 0 56px; }
  .pg-hero__lead { font-size: 18px; }
  .pg-hero__facts, .pg-cards, .pg-related, .pg-team { grid-template-columns: 1fr; }
  .pg-card { padding: 26px; }
  .pg-check li { padding: 72px 22px 22px; }
  .pg-check li::before { left: 22px; top: 20px; }
  .pg-facts { grid-template-columns: 1fr; }
  .pg-facts dt { border-bottom: 0; padding-bottom: 0; }
  .pg-table tbody th { white-space: normal; }
}

/* ---------- Страница фирменного стиля (brand.html) ---------- */
.bb-hero { padding: 96px 0 80px; }
.bb-hero__logo { display: block; width: min(760px, 100%); margin: 8px 0 56px; }
.bb-hero__idea { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 980px; font-size: 20px; }
.bb-hero__idea p + p { color: var(--muted); }

.bb-sec { padding: 104px 0; }
.bb-sec--paper { background: var(--paper); }
.bb-sec h2 { margin-bottom: 24px; }
.bb-note { color: var(--muted); max-width: 720px; margin-bottom: 40px; }
.bb-note a, .bb-tile a, .bb-marks a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.bb-h3 { margin: 72px 0 12px; font-size: 28px; }

.bb-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bb-tile { border-radius: var(--radius); padding: 64px 36px 20px; display: flex; flex-direction: column; gap: 48px; }
.bb-tile img { width: 100%; }
.bb-tile figcaption { font-size: 14px; }
.bb-tile--light { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.bb-tile--dark { background: var(--ink); color: #b5ac9f; }
.bb-tile--dark a, .bb-tile--green a { color: #fff; }
.bb-tile--green { background: var(--accent); color: rgba(255, 255, 255, .85); }

.bb-marks { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.bb-marks figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bb-marks figcaption { font-size: 14px; color: var(--muted); }

.bb-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bb-rule { border-radius: var(--radius); padding: 28px 32px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.bb-rule b { display: block; margin-bottom: 8px; font-size: 18px; }
.bb-rule p { color: var(--muted); }
.bb-rule--ok { box-shadow: inset 4px 0 0 var(--accent), 0 0 0 1px var(--line); }
.bb-rule--no { box-shadow: inset 4px 0 0 #e5262b, 0 0 0 1px var(--line); }

.bb-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bb-color {
  position: relative; text-align: left; border: 0; cursor: pointer; font-family: inherit;
  background: var(--c); color: var(--t); border-radius: var(--radius); padding: 28px; min-height: 200px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 0 1px var(--line);
}
.bb-color span { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.bb-color code { font: 500 16px 'Onest', monospace; opacity: .85; }
.bb-color small { margin-top: auto; font-size: 14px; opacity: .8; }
.bb-color.is-copied::after {
  content: 'Скопировано'; position: absolute; top: 20px; right: 20px; font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--t); color: var(--c);
}

.bb-type { display: grid; gap: 36px; }
.bb-type small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.bb-type__h { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.bb-type__s { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.bb-type__t { max-width: 640px; }

.bb-voice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bb-voice__col { border-radius: var(--radius); padding: 32px; }
.bb-voice__col b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.bb-voice__col p { font-size: 19px; font-weight: 500; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.bb-voice__col--yes { background: var(--accent-soft); }
.bb-voice__col--yes b { color: var(--accent-deep); }
.bb-voice__col--no { background: var(--bg); }
.bb-voice__col--no b { color: #e5262b; }
.bb-voice__col--no p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229, 38, 43, .5); }

/* Облачко реплики — главный графический элемент */
.bb-bubble {
  position: relative; display: inline-block; background: var(--accent); color: #fff;
  font-weight: 800; letter-spacing: -0.02em; padding: 14px 22px; border-radius: 24px 24px 24px 6px;
}
.bb-bubble--big { font-size: clamp(26px, 3vw, 40px); padding: 22px 32px; border-radius: 36px 36px 36px 8px; line-height: 1.1; }
.bb-slogans { list-style: none; display: grid; gap: 18px; }
.bb-slogans li { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bb-slogans .bb-bubble { font-size: 22px; }
.bb-slogans small { color: var(--muted); font-size: 14px; }

.bb-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.bb-media figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.bb-card {
  aspect-ratio: 90 / 50; border-radius: 10px; padding: 7% 8%;
  box-shadow: 0 20px 40px -24px rgba(21, 18, 15, .4), 0 0 0 1px var(--line);
}
.bb-card + .bb-card { margin-top: 14px; }
.bb-card--front { background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.bb-card--front img { width: 62%; }
.bb-card--front p { font-size: 13px; color: var(--muted); line-height: 1.35; }
.bb-card--back { background: var(--accent); color: #fff; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; }
.bb-card--back img { width: 26%; align-self: flex-start; }
.bb-card--back div { display: flex; flex-direction: column; font-size: 12px; text-align: right; line-height: 1.45; }
.bb-card--back b { font-size: 15px; }

.bb-social { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: 0 0 0 1px var(--line); }
.bb-social__top { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.bb-social__top img { width: 44px; }
.bb-social__top div { display: flex; flex-direction: column; line-height: 1.25; }
.bb-social__top span { font-size: 13px; color: var(--muted); }
.bb-post { background: var(--ink); color: #fff; border-radius: 16px; padding: 22px; font-size: 15px; }
.bb-post__q { color: #b5ac9f; margin-bottom: 14px; }
.bb-post__big { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 6px; }

.bb-cover {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--accent-deep); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.bb-cover .bb-bubble { background: #fff; color: var(--ink); align-self: flex-start; }
.bb-cover img { width: 70%; }

@media (max-width: 1000px) {
  .bb-logos, .bb-media { grid-template-columns: 1fr; max-width: 520px; }
  .bb-colors { grid-template-columns: repeat(2, 1fr); }
  .bb-hero__idea, .bb-rules, .bb-voice { grid-template-columns: 1fr; }
  .bb-sec { padding: 72px 0; }
}
@media (max-width: 640px) {
  .bb-colors { grid-template-columns: 1fr; }
  .bb-color { min-height: 150px; }
}
