/* =====================================================================
   Читлид — Liquid Glass. Основной стиль.
   Порядок: база → свет → стекло → типографика → сетка → компоненты → адаптив
   ===================================================================== */

/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-micro) ease; }
a:hover { color: var(--accent); }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,113,227,.28); border-radius: var(--r-xs); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--surface); padding: 12px 18px; border-radius: var(--r-pill); }

/* ---------- СВЕТ (блобы) ---------- */
.blobs {
  /* Свет только у первого экрана. На всю высоту документа тянуть нельзя:
     слой с blur(70px) высотой в тысячи пикселей браузер перестаёт
     отрисовывать. А закреплять по вьюпорту — получается дымка на всей
     странице. Дальше по странице подсветку дают сами секции (ниже). */
  position: absolute; top: 0; left: 0; right: 0; height: 1500px;
  overflow: hidden; pointer-events: none; z-index: 0;
  /* Нижний край слоя не режется прямой линией, а плавно растворяется */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0) 100%);
}
.blob {
  position: absolute; display: block;
  border-radius: 50%; filter: blur(70px); opacity: .7;
  will-change: transform;
}
.blob.b1 { width: 720px; height: 720px; background: radial-gradient(circle at 30% 30%, var(--blob-sky), var(--blob-lavender) 60%, transparent 72%); animation: drift1 18s ease-in-out infinite; }
.blob.b2 { width: 560px; height: 560px; background: radial-gradient(circle at 60% 40%, var(--blob-mint), #bfe3ff 60%, transparent 72%);      animation: drift2 22s ease-in-out infinite; }
.blob.b3 { width: 520px; height: 520px; background: radial-gradient(circle at 50% 50%, var(--blob-peach), var(--blob-rose) 60%, transparent 72%); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(120px, 80px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(-90px, 120px) scale(.94); } }
@keyframes drift3 { 50% { transform: translate(60px, -100px) scale(1.06); } }

/* ---------- СТЕКЛО ---------- */
.glass {
  position: relative;
  isolation: isolate; /* блик ::before уходит ПОД контент, а не поверх текста */
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.glass--thin {
  background: var(--glass-bg-thin);
  -webkit-backdrop-filter: blur(var(--glass-blur-thin));
  backdrop-filter: blur(var(--glass-blur-thin));
  border-color: rgba(255,255,255,.9);
  box-shadow: var(--glass-shadow-sm);
}
.glass--dark {
  background: var(--glass-bg-dark);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.glass--dark::before { background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0) 45%); }
.glass--dark a:hover { color: #8fc4ff; }

/* Браузеры без backdrop-filter: стекло превращается в плотную карточку, а не в мутное пятно */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass       { background: rgba(255,255,255,.9); }
  .glass--dark { background: rgba(29,29,31,.94); }
}

/* ---------- ТИПОГРАФИКА ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.025em; line-height: 1.15; }
h4 { font-size: var(--fs-h4); letter-spacing: -.02em; line-height: 1.2; }
p  { margin: 0; text-wrap: pretty; }

.display   { font-size: var(--fs-display); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.lead      { font-size: var(--fs-lead); line-height: 1.45; color: var(--secondary); text-wrap: pretty; }
.body-text { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.caption   { font-size: var(--fs-caption); line-height: 1.5; color: var(--secondary); }
.eyebrow   { font-size: var(--fs-caption); font-weight: 500; color: var(--accent); letter-spacing: .01em; }
.grad      { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.number    { font-size: var(--fs-number); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.num-tab   { font-variant-numeric: tabular-nums; }

/* ---------- СЕТКА ---------- */
.wrap    { position: relative; z-index: 1; width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
/* Контент всегда выше световых пятен: у .blobs z-index 0, и без своего слоя
   статичные секции оказывались под ними и становились невидимыми. */
article, main > section, .site-footer { position: relative; z-index: 1; }
.section { position: relative; padding-top: var(--section); }
.section--first { padding-top: var(--s-9); }
.stack   { display: flex; flex-direction: column; gap: var(--s-5); }
.grid    { display: grid; gap: var(--s-4); }
.grid-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }

.section-head { display: grid; grid-template-columns: 1fr 420px; gap: var(--s-7); align-items: end; margin-bottom: var(--s-6); }
.section-head__t { display: flex; flex-direction: column; gap: var(--s-3); }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border: 0; cursor: pointer;
  border-radius: var(--r-pill); font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform var(--t-micro) ease, box-shadow var(--t-micro) ease, background var(--t-micro) ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--blue { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(0,113,227,.6); }
.btn--blue:hover  { background: var(--accent-hover); color: #fff; box-shadow: 0 14px 30px -10px rgba(0,113,227,.7); }
.btn--blue:active { background: var(--accent-press); box-shadow: none; transform: none; }
.btn--glass { background: var(--glass-bg-thin); -webkit-backdrop-filter: blur(var(--glass-blur-thin)); backdrop-filter: blur(var(--glass-blur-thin)); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--glass-shadow-sm); color: var(--ink); }
.btn--glass:hover { background: rgba(255,255,255,.85); color: var(--ink); }
.btn--dark  { background: var(--ink); color: #fff; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; }
.btn[disabled], .btn.is-busy { background: var(--fill); color: var(--tertiary); box-shadow: none; transform: none; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent); }
.link-arrow svg { transition: transform var(--t-micro) ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- ЧИПЫ, СЕГМЕНТЫ ---------- */
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.chip--blue  { background: var(--accent-tint); color: var(--accent-press); font-weight: 500; }
.chip--solid { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); gap: 2px; flex-wrap: wrap; background: var(--fill); }
.seg a, .seg span { height: 40px; padding: 0 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--secondary); white-space: nowrap; }
.seg .is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(30,41,59,.12); }

/* ---------- КАРТОЧКИ ---------- */
.card { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.tile { padding: 28px; display: flex; flex-direction: column; gap: var(--s-4); min-height: 230px; transition: transform .35s var(--ease); }
.tile:hover { transform: translateY(-6px); }
.ico { width: 48px; height: 48px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 16px -8px rgba(30,41,59,.4); flex: none; }

.kpi { border-radius: var(--r-md); background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi__v { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__l { font-size: 12px; color: var(--secondary); line-height: 1.3; }
.kpi--accent { background: linear-gradient(135deg, rgba(0,113,227,.92), rgba(124,92,255,.92)); color: #fff; border-color: rgba(255,255,255,.4); }
.kpi--accent .kpi__l { color: rgba(255,255,255,.75); }

/* Карточка кейса / статьи */
.entry { overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.entry:hover { transform: translateY(-6px); }
.cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cover__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.entry:hover .cover__img { transform: scale(1.04); }
.cover--type { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.cover__big { font-size: 72px; font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.cover__sub { font-size: 18px; color: var(--secondary); margin-top: 8px; }
.cover__ring { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 2px 10px rgba(255,255,255,.9), 0 30px 60px -30px rgba(30,41,59,.35); }
.rbadge { position: absolute; left: 16px; bottom: 16px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(30,41,59,.35); z-index: 2; white-space: nowrap; }
.cat { position: absolute; left: 16px; top: 16px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.9); z-index: 2; }
.entry__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.entry__niche { font-size: 13px; color: var(--secondary); line-height: 1.4; }
.entry__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; text-wrap: pretty; }
.entry__what  { font-size: 14px; color: var(--secondary); line-height: 1.5; }
.entry__more  { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* Браузерная рамка для скриншотов сайтов */
.shot { border-radius: 14px 14px 0 0; background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95); border-bottom: none; box-shadow: 0 30px 60px -24px rgba(30,41,59,.45); overflow: hidden; transition: transform .9s var(--ease); }
.entry:hover .shot { transform: translateY(-8px); }
.shot__bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--hairline); }
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d1d1d6; display: block; }

/* ---------- ШАПКА ---------- */
.site-header { position: sticky; top: 16px; z-index: 50; display: flex; justify-content: center; padding-top: 22px; }
.nav {
  border-radius: var(--r-pill); height: 60px; padding: 0 8px 0 22px;
  display: flex; align-items: center; gap: 34px;
  transition: background var(--t-micro) ease;
}
.site-header.is-stuck .nav { background: rgba(255,255,255,.75); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.brand__mark { width: 28px; height: 28px; border-radius: 9px; background: var(--spectrum); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.nav__menu { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.nav__menu .current-menu-item > a, .nav__menu .is-active > a { color: var(--accent); }
.nav__burger, .nav__call { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--fill); place-items: center; }

/* ---------- ПОДВАЛ + мобильный таб-бар ---------- */
.site-footer { position: relative; padding: var(--s-7) 0 var(--s-6); margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col__title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: 13px; color: var(--secondary); padding-top: var(--s-5); margin-top: var(--s-5); border-top: 1px solid var(--hairline); }
.tabbar { display: none; }

/* ---------- ФОРМЫ ---------- */
.field { width: 100%; height: 52px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -12px rgba(30,41,59,.25); padding: 0 18px; font-size: 15px; font-family: inherit; color: var(--ink); transition: border-color var(--t-micro) ease, box-shadow var(--t-micro) ease; }
.field::placeholder { color: var(--tertiary); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.18), inset 0 1px 0 #fff; }
textarea.field { height: 120px; padding-top: 16px; resize: vertical; line-height: 1.5; }
.field.has-error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,59,48,.14); }
.form__error { font-size: 12px; color: var(--danger); }
.form__note  { font-size: 12px; color: var(--secondary); line-height: 1.4; }
.form__status { font-size: 14px; }
.form__status.is-ok  { color: var(--success); }
.form__status.is-err { color: var(--danger); }

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary); }
.crumbs__sep { color: var(--tertiary); }

/* ---------- ДВИЖЕНИЕ ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.float { animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .section-head { grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
  .nav { gap: 20px; }
  .nav__menu { gap: 18px; }
}

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }

  /* Шапка: логотип + звонок + бургер. Пункты уезжают в шторку. */
  .site-header { top: 8px; padding-top: 14px; }
  .nav { width: calc(100% - 28px); height: 54px; padding: 0 6px 0 16px; justify-content: space-between; gap: 12px; }
  .nav__menu, .nav .btn { display: none; }
  .nav__burger, .nav__call { display: grid; }
  .nav__call { background: var(--accent); color: #fff; }

  /* Плавающий таб-бар — большие цели нажатия под большой палец */
  .tabbar {
    position: fixed; left: 14px; right: 14px; bottom: 16px; z-index: 60;
    display: flex; align-items: center; gap: 4px; height: 64px; padding: 6px;
    border-radius: var(--r-pill);
  }
  .tabbar__t { flex: 1; height: 52px; border-radius: var(--r-pill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--secondary); }
  .tabbar__t.is-active { background: var(--accent-tint); color: var(--accent-press); }
  .tabbar__cta { flex: 1.3; height: 52px; border-radius: var(--r-pill); background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 500; box-shadow: 0 10px 24px -10px rgba(0,113,227,.6); }
  body { padding-bottom: 96px; }

  /* Кейсы и услуги листаются вбок, а не растягивают страницу */
  .hscroll { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll > * { flex: none; width: 78vw; max-width: 320px; scroll-snap-align: start; }

  /* Свет: без анимации и с меньшим размытием — иначе телефон греется */
  .blob { filter: blur(46px); animation: none !important; transform: scale(.62); }
  .cover__ring { display: none; }
  .btn, .tabbar__t { min-height: 48px; }
}

/* Шторка мобильного меню */
.mobile-menu { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; padding: 14px 14px 20px; background: rgba(251,251,253,.55); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.mobile-menu.is-open { display: flex; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 6px; padding: 40px 10px 0; list-style: none; margin: 0; }
.mobile-menu__list a { display: flex; justify-content: space-between; align-items: center; font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; padding: 8px 0; }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ---------- ПЕЧАТЬ И ДОСТУПНОСТЬ ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none !important; }
}
@media print {
  .site-header, .tabbar, .blobs, .btn { display: none !important; }
  .glass { background: #fff; box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- ТЕКСТ СТАТЕЙ И СТРАНИЦ ---------- */
.prose { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); margin-top: 44px; }
.prose h3 { font-size: 24px; letter-spacing: -.02em; color: var(--ink); margin-top: 34px; }
.prose p { margin: 0; }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: 1em; }
.prose a { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 22px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose li { line-height: 1.6; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--r-lg); }
.prose blockquote { margin: 0; padding: 26px 30px; border-radius: var(--r-lg); background: var(--glass-bg-dark); color: #fff; font-size: 20px; line-height: 1.45; font-weight: 500; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hairline); }
.prose th { font-weight: 600; color: var(--ink); font-size: 13px; }
.prose figure { margin: 0; }
.prose figcaption { font-size: 14px; color: var(--secondary); margin-top: 10px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--fill); padding: 2px 6px; border-radius: 6px; }
.prose > :first-child { margin-top: 0; }
.prose h2 + p, .prose h3 + p { margin-top: 18px; }

/* Широкие блоки внутри текста не должны рвать страницу */
.prose .wp-block-table, .prose pre { overflow-x: auto; }

/* ---------- ПАГИНАЦИЯ ---------- */
.pagination { display: flex; justify-content: center; margin-top: var(--s-7); }
.pg { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pg:hover { background: var(--fill); color: var(--ink); }
.pg.is-active { background: var(--ink); color: #fff; }

/* ---------- АККОРДЕОН ---------- */
[data-accordion] .accordion__body { display: none; }
[data-accordion].is-open .accordion__body { display: block; }
[data-accordion] button svg { transition: transform var(--t-micro) ease; }
[data-accordion].is-open button svg { transform: rotate(45deg); }

/* ---------- КОЛОНКИ, КОТОРЫЕ СХЛОПЫВАЮТСЯ ---------- */
@media (max-width: 1023px) {
  .case-body, .service-hero, .faq-grid, .contacts-grid, .article-layout { grid-template-columns: 1fr !important; }
  .case-body aside, .service-hero aside, .article-layout aside { position: static !important; }
}

/* ---------- ГЛОССАРИЙ ---------- */
.ltr { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); }
.ltr:hover { background: var(--ink); color: #fff; }
.term { padding: 22px 28px; display: grid; grid-template-columns: 1fr 2fr 32px; gap: var(--s-5); align-items: center; transition: transform .3s var(--ease); }
.term:hover { transform: translateX(6px); }
.term__h { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.term__d { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 767px) {
  .glossary-group { grid-template-columns: 1fr !important; gap: var(--s-3) !important; }
  .glossary-group .number { position: static !important; font-size: 56px !important; }
  .term { grid-template-columns: 1fr 28px; padding: 18px 20px; gap: var(--s-3); }
  .term__d { grid-column: 1 / -1; }
  .term:hover { transform: none; }
}

/* ---------- КОНТАКТЫ ---------- */
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.contact-row__i { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent-press); display: grid; place-items: center; flex: none; }
select.field { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 46px; }

/* Заголовок карточки — h3, но визуально это не «третий уровень» */
h3.entry__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }

/* ---------- ТАБЛИЦА СРАВНЕНИЯ ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.cmp-table th, .cmp-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cmp-table th { font-size: 13px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .is-key { font-weight: 500; color: var(--ink); }
.cmp-table th.is-us { color: var(--accent-press); }
.cmp-table td.is-us { background: var(--accent-tint); color: var(--accent-press); font-weight: 600; }
.cmp-table tr td.is-us:first-of-type { border-top-left-radius: var(--r-sm); }

/* ---------- КАЛЬКУЛЯТОР (разметка перенесена со старых страниц) ---------- */
.calc-wrap .rlv2-calc { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); align-items: start; }
.calc-wrap .rlv2-calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.calc-wrap .rlv2-calc__field { display: flex; flex-direction: column; gap: 6px; }
.calc-wrap .rlv2-calc__field label { font-size: 13px; color: var(--secondary); }
.calc-wrap .rlv2-calc__field input {
  height: 52px; border-radius: 16px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -12px rgba(30,41,59,.25);
  padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink); width: 100%;
}
.calc-wrap .rlv2-calc__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.18), inset 0 1px 0 #fff; }
.calc-wrap .rlv2-calc__result { border-radius: var(--r-lg); background: var(--glass-bg-dark); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.calc-wrap .rlv2-calc__rtitle { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.calc-wrap .rlv2-calc__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-wrap .rlv2-calc__row:last-child { border-bottom: none; }
.calc-wrap .rlv2-calc__row-label { font-size: 14px; color: rgba(255,255,255,.7); }
.calc-wrap .rlv2-calc__row-val { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-wrap .rlv2-calc__row-val--accent { font-size: 30px; color: #5ee3b8; }
.calc-wrap .rlv2-calc__note { font-size: 13px; color: var(--secondary); }
@media (max-width: 1023px) {
  .calc-wrap .rlv2-calc { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .calc-wrap { padding: 24px !important; }
  .calc-wrap .rlv2-calc__form { grid-template-columns: 1fr; }
}

/* ---------- ПРАВКИ ПО ЗАМЕЧАНИЯМ ---------- */

/* Блоки внутри секции не должны липнуть друг к другу */
.section { display: flex; flex-direction: column; gap: var(--s-5); }
.section > .section-head { margin-bottom: 0; }

/* Первый экран: меньше воздуха над крошками */
.section--first { padding-top: var(--s-6); }
.service-landing .section--first { padding-top: var(--s-5); }

/* Чипы не растягиваются на всю ширину в колоночных раскладках */
.stack > .chip, .stack > .eyebrow { align-self: flex-start; }

/* ---------- ВИДЕООТЗЫВЫ НА СВЕТЛОМ ФОНЕ ----------
   Компонент рисовался под тёмную тему: белый текст и полупрозрачные
   заливки на светлом становились нечитаемыми. Переопределяем. */
.vrev-grid { gap: var(--s-4) !important; }
.vrev-card {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--glass-shadow) !important;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.vrev-card:hover { transform: translateY(-6px); }
.vrev-card__body { background: transparent !important; padding: 18px 20px 20px !important; }
.vrev-card__quote { color: var(--ink) !important; font-size: 16px !important; line-height: 1.4 !important; font-style: normal !important; font-weight: 500 !important; }
.vrev-card__author { margin-top: 10px !important; }
.vrev-card__name { color: var(--ink) !important; font-size: 14px !important; }
.vrev-card__role { color: var(--secondary) !important; font-size: 13px !important; }
.vrev-card__src, .vrev-card__dur {
  background: rgba(255,255,255,.82) !important; color: var(--ink) !important;
  border: 1px solid rgba(255,255,255,.95); backdrop-filter: blur(12px); font-weight: 500;
}
.vrev-card__thumb { border-radius: 0 !important; }
.vrev-card__play { background: rgba(255,255,255,.9) !important; border: none !important; box-shadow: 0 10px 24px -10px rgba(30,41,59,.5); }
.vrev-card__play svg, .vrev-card__play path { fill: var(--accent) !important; stroke: var(--accent) !important; }
.vrev-note { color: var(--secondary) !important; }

/* Плитки видеоотзывов: в компоненте они залиты старым фиолетовым градиентом.
   Перекрашиваем в пастель дизайн-системы, чередуя оттенки по нишам. */
.vrev-card__thumb { position: relative; }
.vrev-card:nth-child(6n+1) .vrev-card__thumb { background: radial-gradient(120% 120% at 25% 15%, #9ed0ff, #c7b8ff 70%) !important; }
.vrev-card:nth-child(6n+2) .vrev-card__thumb { background: radial-gradient(120% 120% at 25% 15%, #a7f3e6, #bfe3ff 70%) !important; }
.vrev-card:nth-child(6n+3) .vrev-card__thumb { background: radial-gradient(120% 120% at 25% 15%, #ffd6a8, #ffc2d8 70%) !important; }
.vrev-card:nth-child(6n+4) .vrev-card__thumb { background: radial-gradient(120% 120% at 25% 15%, #c7b8ff, #9ed0ff 70%) !important; }
.vrev-card:nth-child(6n+5) .vrev-card__thumb { background: radial-gradient(120% 120% at 25% 15%, #bfe3ff, #a7f3e6 70%) !important; }
.vrev-card:nth-child(6n+6) .vrev-card__thumb { background: radial-gradient(120% 120% at 25% 15%, #ffc2d8, #ffd6a8 70%) !important; }
.vrev-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.35) 100%); pointer-events: none; }
.vrev-card__src { color: var(--ink) !important; }

/* ---------- ПОДСВЕТКА СЕКЦИЙ ----------
   Мягкие радиальные пятна прямо в секциях вместо одного огромного слоя
   с размытием: дешевле, не даёт дымки на весь экран и не ломает отрисовку. */
main > section:nth-of-type(4n+2),
.service-landing > section:nth-of-type(4n+2) {
  background-image: radial-gradient(58% 62% at 88% 24%, rgba(158,208,255,.22), rgba(158,208,255,0) 72%);
  background-repeat: no-repeat;
}
main > section:nth-of-type(4n+4),
.service-landing > section:nth-of-type(4n+4) {
  background-image: radial-gradient(58% 62% at 10% 22%, rgba(199,184,255,.20), rgba(255,214,168,.10) 48%, rgba(255,255,255,0) 74%);
  background-repeat: no-repeat;
}

/* ---------- ШАПКА: ТЕЛЕФОН И МЕССЕНДЖЕРЫ ---------- */
.nav__contacts { display: flex; align-items: center; gap: 6px; }
.nav__ico {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(29,29,31,.05); color: var(--ink);
  transition: background var(--t-micro) ease, transform var(--t-micro) ease;
}
.nav__ico:hover { background: rgba(29,29,31,.1); transform: translateY(-1px); }
.nav__ico img { width: 18px; height: 18px; border-radius: 4px; }
@media (max-width: 1100px) { .nav__contacts { display: none; } }

/* Первый экран: воздуха меньше, чем было изначально, но не впритык */
.section--first { padding-top: var(--s-7); }
.service-landing .section--first { padding-top: var(--s-6); }

/* ---------- ПЛИТКА ОТЗЫВА: ИНИЦИАЛЫ ВМЕСТО ПУСТОГО ГРАДИЕНТА ---------- */
.vrev-card__thumb { display: grid; place-items: center; }
.vrev-card__thumb .vrev-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 76px; font-weight: 600; letter-spacing: -.04em;
  color: rgba(255,255,255,.72); text-shadow: 0 2px 20px rgba(30,41,59,.18);
  pointer-events: none; user-select: none;
}
.vrev-card__play { position: relative; z-index: 2; }

/* ---------- КАЛЬКУЛЯТОР: ДВЕ КОЛОНКИ ---------- */
.calc-wrap .rlv2-calc { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); align-items: start; }
@media (max-width: 1023px) { .calc-wrap .rlv2-calc { grid-template-columns: 1fr; } }

/* ---------- ТАБЛИЦА СРАВНЕНИЯ: ИКОНКИ ВМЕСТО ЭМОДЗИ ---------- */
.cmp-i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; vertical-align: -4px; }
.cmp-i--yes { background: rgba(26,155,75,.14); color: var(--success); }
.cmp-i--no  { background: rgba(255,59,48,.12); color: var(--danger); }

/* ---------- ПИСЬМО ОСНОВАТЕЛЯ ---------- */
.letter__head {
  width: 100%; background: none; border: 0; cursor: pointer; color: inherit;
  padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
}
.letter__who { display: flex; align-items: center; gap: 16px; }
.letter__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.letter__title { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.letter__sub { display: block; margin-top: 4px; font-size: 14px; color: var(--secondary); }
.letter__toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex: none; transition: transform var(--t-micro) ease, background var(--t-micro) ease; }
.letter__head:hover .letter__toggle { background: var(--accent-tint); color: var(--accent-press); }
.letter.is-open .letter__toggle { transform: rotate(45deg); }
.letter__body { padding: 0 32px 32px; display: flex; flex-direction: column; gap: 16px; }
.letter__body .body-text { font-size: 17px; line-height: 1.65; }

/* Одинокий список «кому подойдём» — в две колонки, чтобы не оставлять пустоту */
@media (max-width: 767px) { .fit-list { grid-template-columns: 1fr !important; } }

/* Крошки чуть отступают от навигации */
.service-landing .section--first { padding-top: var(--s-7); }
.crumbs { margin-bottom: 2px; }

/* ================= ПРАВКИ ПО ДИЗАЙН-АУДИТУ ================= */

/* 1. Двухколоночные блоки схлопываются на узких экранах.
      Раньше сетка задавалась инлайном имедиазапрос её не перебивал —
      форма заявки выезжала за экран телефона. */
.split-form { display: grid; grid-template-columns: 1fr 420px; gap: var(--s-7); align-items: start; }
.split-side { display: grid; grid-template-columns: 420px 1fr; gap: var(--s-7); align-items: start; }
@media (max-width: 1023px) {
  .split-form, .split-side { grid-template-columns: 1fr; gap: var(--s-5); }
  .split-form aside, .split-side aside { position: static !important; }
}

/* 2. Кнопка из старой темы внутри перенесённого калькулятора */
.calc-wrap .ak-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; text-decoration: none;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.24);
}
.calc-wrap .ak-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* 3. Подпись внутри тёмной панели расчёта была серой — не читалась */
.calc-wrap .rlv2-calc__note { color: rgba(255,255,255,.72) !important; font-size: 13px; }
.calc-wrap .rlv2-calc__rtitle { color: rgba(255,255,255,.82) !important; }
.calc-wrap .rlv2-calc__row-label { color: rgba(255,255,255,.86) !important; }

/* 4. Ссылка под видеоотзывами осталась фиолетовой из тёмной темы */
.vrev-note a { color: var(--accent-press) !important; font-weight: 500; }

/* 5. Тёмные панели были выцветше-серыми: поднимаем плотность */
:root { --glass-bg-dark: rgba(24,24,27,.93); }

/* 6. Заголовок секции без второй колонки не должен держать пустые 420px */
.section-head:not(:has(> :nth-child(2))) { grid-template-columns: 1fr; }
/* Кнопка справа в шапке секции не должна растягиваться на всю колонку */
.section-head > .btn { justify-self: end; }
/* Одинокая карточка в последнем ряду сетки растягивается на всю ширину */
.tiles-auto > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 1023px) { .tiles-auto > :last-child:nth-child(3n+1) { grid-column: auto; } }
@media (max-width: 1023px) { .section-head > .btn { justify-self: start; } }

/* 7. Длина строки у подписей и дисклеймеров */
.caption { max-width: 68ch; }
.section-head .caption, .entry__niche, .kpi__l, .form__note, .crumbs { max-width: none; }

/* 8. Контраст мелких зелёных подписей и плейсхолдеров */
:root { --success: #14803e; --tertiary: #8a8a8e; }
.kpi__l { font-size: 13px; }

/* 9. Одинокая карточка в конце сетки занимает всю строку */
.grid-2 > .glass--dark:last-child:nth-child(odd),
.grid-3 > .glass--dark:last-child:nth-child(3n+1) { grid-column: 1 / -1; }

/* 10. Ритм: между секциями одной темы — меньше воздуха, чем на смене темы */
.section + .section { padding-top: var(--s-9); }
.section--major { padding-top: var(--section); }

/* 11. Цели нажатия на телефоне */
@media (max-width: 767px) {
  .footer-col a { padding: 5px 0; }
  .link-arrow, .entry__more { min-height: 44px; align-items: center; }
  .tl-row { grid-template-columns: 1fr !important; gap: 4px !important; }
  .tl-row > span:first-child { padding-top: 0 !important; }
  .tl-row > span:last-child { padding-left: 20px !important; }
}

/* Последняя карточка, оставшаяся одна в ряду, занимает всю строку —
   иначе половина ряда зияет пустотой. */
@media (min-width: 1024px) {
  .service-landing .grid-2 > .glass:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .service-landing .grid-3 > .glass:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

/* ---------- ВЫПАДАЮЩЕЕ МЕНЮ УСЛУГ ---------- */
.nav__menu .has-drop { position: relative; }
.nav__menu .has-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav__menu .has-drop > a svg { transition: transform var(--t-micro) ease; }
.nav__menu .has-drop:hover > a svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 18px); left: -14px; transform: translateY(-6px);
  width: min(620px, calc(100vw - 48px)); padding: 14px; border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 24px 60px rgba(29,29,31,.14), 0 2px 8px rgba(29,29,31,.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
/* Мостик, чтобы курсор не терял меню по пути вниз */
.nav__menu .has-drop::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 22px; }
.nav__menu .has-drop:hover .drop,
.nav__menu .has-drop:focus-within .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.drop__item { display: block; padding: 12px 14px; border-radius: var(--r-sm); transition: background var(--t-micro) ease; }
.drop__item:hover { background: rgba(29,29,31,.05); color: var(--ink); }
.drop__t { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.drop__d { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--secondary); }
.drop__all { grid-column: 1 / -1; margin-top: 4px; padding: 12px 14px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent); }
@media (max-width: 1023px) { .drop { display: none; } }

/* Список услуг внутри мобильной шторки */
.mobile-menu__sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 10px 2px; }
.mobile-menu__sub a { font-size: 16px; font-weight: 500; color: var(--secondary); padding: 9px 0; }

/* ---------- НИШИ ---------- */
.niche { min-height: 210px; }
.niche__icon { font-size: 30px; line-height: 1; }

/* ---------- ТАРИФЫ ---------- */
.price { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.price__tier { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.price--hit .price__tier { color: rgba(255,255,255,.7); }
.price__val { font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__sub { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--secondary); }
.price--hit .price__sub { color: rgba(255,255,255,.6); }
.price__desc { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.price--hit .price__desc { color: rgba(255,255,255,.75); }
.price__feat { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price__feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.price--hit .price__feat li { color: rgba(255,255,255,.86); }

/* ---------- СХЕМА-ВОРОНКА (этапы работы контента) ---------- */
.funnel { display: grid; gap: 14px; margin-bottom: var(--s-6); }
.funnel__step {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start;
  padding: 22px 26px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.62); border: 1px solid var(--hairline);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.funnel__n {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
}
.funnel__body { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px 28px; align-items: start; }
.funnel__t { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.funnel__cell--t { color: var(--ink); }
.funnel__cell { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.funnel__cell i { display: block; font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin-bottom: 3px; }
.funnel__cell--res { font-weight: 500; color: var(--accent); }
@media (max-width: 1023px) {
  .funnel__step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; }
  .funnel__n { width: 34px; height: 34px; font-size: 15px; }
  .funnel__body { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- ИТОГ ПО БОНУСАМ ---------- */
.bonus-total {
  margin-top: var(--s-5); padding: 24px 30px; border-radius: var(--r-lg);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
}
.bonus-total b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.bonus-total span { font-size: 15px; line-height: 1.5; opacity: .8; }

/* Подписи делений у ползунка в калькуляторе (в старой теме стиля не было) */
.calc-wrap .rlv2-calc__range-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.calc-wrap .rlv2-calc__range-labels span { font-size: 12px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.calc-wrap .rlv2-calc__field input[type="range"] { padding: 0; border: none; background: transparent; box-shadow: none; accent-color: var(--accent); }
.calc-wrap .rlv2-calc__field label strong { color: var(--ink); font-weight: 600; }
/* Первое поле с ползунком занимает всю ширину формы */
.calc-wrap .rlv2-calc__form > .rlv2-calc__field:first-child { grid-column: 1 / -1; }

/* Кнопка-ссылка под блоком + подпись доверия */
.block-cta { margin-top: var(--s-5); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.block-cta .caption { max-width: 560px; }

/* Плашка «на сегодня свободно: N мест» над финальной формой */
.avail {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(26,155,75,.10); color: var(--success);
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
}
.avail i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: avail-pulse 2s ease-in-out infinite; }
@keyframes avail-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .avail i { animation: none; } }

/* Одинокая широкая плитка услуг читается как баннер: иконка слева, текст справа */
@media (min-width: 1024px) {
  .tiles-auto > .tile:last-child:nth-child(3n+1) { flex-direction: row; align-items: center; gap: 28px; min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .tiles-auto > .tile:last-child:nth-child(3n+1) > span { flex: 1; }
}
/* Подписи оси графика на узких экранах — только номер недели */
.ax-w { font-style: normal; }
@media (max-width: 480px) { .ax-w { display: none; } }
/* Чипы соцсетей в подвале с иконками */
.chip--soc { display: inline-flex; align-items: center; gap: 7px; }

/* Ссылка «смотреть все во ВКонтакте» не должна переносить стрелку на новую строку */
.vrev-note a { white-space: nowrap; }

/* ---------- SEO-текст об услуге: редакционная вёрстка ---------- */
.seo-text { padding: 44px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.seo-text__block h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.seo-text__block p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.seo-text__block p + p { margin-top: 10px; }
.seo-text__block--intro { grid-column: 1 / -1; padding-bottom: 28px; border-bottom: 1px solid var(--hairline); }
.seo-text__block--intro p { font-size: 18px; color: var(--ink); max-width: 820px; }
@media (max-width: 1023px) { .seo-text { grid-template-columns: 1fr; gap: 26px; padding: 28px 24px; } }

/* ---------- Мобильные правки после QA-прохода 04.09.2026 ---------- */
.stat-num { font-size: 84px; white-space: nowrap; }
@media (max-width: 767px) {
  h1 { overflow-wrap: anywhere; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
  .kpi-grid, .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-num { font-size: 44px; }
  /* Плавающие карточки-цитаты на телефоне встают в поток, а не вылезают за фото */
  .card.float { position: static !important; max-width: none !important; margin-top: 12px; right: auto !important; left: auto !important; }
}
@media (max-width: 480px) {
  h1 { font-size: 36px; }
  /* Фильтры-сегменты прокручиваются по горизонтали вместо «пузыря» в несколько рядов */
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
}

/* На телефоне длинный чип в герое (например, «Для собственников бизнеса с выручкой…») не должен
   раздвигать колонку за экран: разрешаем перенос строк и запрещаем min-content-ширину колонок. */
@media (max-width: 767px) {
  .split-side > *, .split-form > *, .grid > * { min-width: 0; }
  .chip { white-space: normal; height: auto; line-height: 1.3; padding-top: 7px; padding-bottom: 7px; max-width: 100%; text-align: left; }
}

/* Длинные заголовки в герое услуг: чем длиннее, тем мельче, чтобы герой не уезжал вниз */
.h1--long { font-size: clamp(34px, 3.7vw, 54px); letter-spacing: -.035em; }
.h1--xlong { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.03em; line-height: 1.06; }
@media (max-width: 480px) { .h1--long { font-size: 32px; } .h1--xlong { font-size: 29px; } }

/* ---------- Мобильная шапка: мессенджеры рядом со звонком ---------- */
@media (max-width: 1100px) {
  .nav__contacts { display: flex; gap: 4px; margin-left: auto; }
  .nav__contacts .nav__ico:first-child { display: none; } /* телефон уже есть отдельной кнопкой */
  .nav__contacts .nav__ico { width: 36px; height: 36px; }
  .nav__contacts .nav__ico img { width: 20px; height: 20px; }
}
@media (max-width: 767px) {
  .nav { gap: 6px; padding-left: 14px; }
  .nav__contacts { gap: 2px; }
  .nav__burger, .nav__call { width: 40px; height: 40px; }
  /* Хлебные крошки одной строкой: длинное название текущей страницы обрезается многоточием */
  .crumbs { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .crumbs > * { flex: none; }
  .crumbs > *:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 360px) {
  .nav .brand > span:not(.brand__mark) { display: none; }
}

/* ---------- Мобильные: таблица сравнения и калькулятор ---------- */
@media (max-width: 767px) {
  /* первая колонка таблицы сравнения закреплена, остальное листается вбок */
  .cmp-table { min-width: 560px; font-size: 14px; }
  .cmp-table th, .cmp-table td { padding: 12px 12px; }
  .cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 4px 0 8px -6px rgba(0,0,0,.18); }
  .cmp-hint { display: block; }
  /* строки результата калькулятора: подпись сверху, значение снизу, без переносов внутри числа */
  .calc-wrap .rlv2-calc__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .calc-wrap .rlv2-calc__row-val { font-size: 22px; white-space: nowrap; }
}
.cmp-hint { display: none; font-size: 12px; color: var(--secondary); margin: 6px 0 0 4px; }

/* Крошки в центрированных шапках (статьи) на телефоне прижимаются влево, иначе обрезается начало */
@media (max-width: 767px) {
  .crumbs { justify-content: flex-start; max-width: 100%; }
}

/* Текст внутри стекла — темнее, чтобы не читался как «дымка» */
.glass .caption { color: var(--ink-2); }
.glass .caption.form__note, .glass .footer-col .caption, .site-footer .caption { color: var(--secondary); }

/* ==================================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ: ЧЕК-ЛИСТЫ, ГАЙДЫ, ПОЛИТИКА
   ================================================================== */

/* Кнопка внутри .prose: правило «.prose a» перебивало цвет кнопки,
   из-за чего синий текст ложился на синюю кнопку. */
.prose a.btn { text-decoration: none; }
.prose a.btn--blue, .prose a.btn--dark { color: #fff; }
.prose a.btn--blue:hover { color: #fff; }
.prose a.btn--glass { color: var(--ink); }
.prose .cta-row { margin-top: var(--s-6); }

/* Тело текстовой страницы. Раньше падинг стоял инлайном в шаблоне,
   поэтому не переопределялся на мобильном. */
.page-body { padding: 48px; max-width: 860px; margin: 0 auto; }
.page-body-section { padding-top: var(--s-5); }

/* Тёмный блок-цитата — тяжёлый, ему нужно больше воздуха, чем абзацу */
.prose > blockquote { margin-top: var(--s-6); }
.prose > blockquote + * { margin-top: var(--s-6); }

/* Широкая таблица не должна рвать страницу на телефоне */
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .table-scroll table { min-width: 560px; }
.prose .table-scroll td b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

.prose .fineprint { font-size: 14px; color: var(--secondary); }

/* ---------- ПУНКТ ЧЕК-ЛИСТА ---------- */
.prose .chk-list { padding-left: 26px; gap: 0; }
.prose .chk-item { margin-top: var(--s-5); line-height: 1.5; }
.prose .chk-item:first-child { margin-top: 0; }
.prose .chk-item > strong { display: block; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.prose .chk { display: block; margin-top: 7px; font-size: 17px; color: var(--ink-2); }
.prose .chk b {
  display: inline-block; margin-right: 9px; padding: 3px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; vertical-align: 2px;
}
.prose .chk--how b { background: var(--accent-tint); color: var(--accent-press); }
.prose .chk--bad  b { background: rgba(232,130,12,.16);  color: #8A4B06; }
.prose .chk--cost b { background: rgba(229,72,77,.14);   color: #A82227; }
.prose .chk--do   b { background: rgba(10,132,73,.14);   color: #076B3C; }
.prose .chk--do { color: var(--ink); font-weight: 500; }

@media (max-width: 768px) {
  .page-body { padding: 26px 20px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 27px; margin-top: 36px; }
  .prose h3 { font-size: 21px; }
  .prose h2 + p, .prose h3 + p { margin-top: 16px; }
  .prose blockquote { padding: 20px 22px; font-size: 18px; }
  .prose .chk-list { padding-left: 20px; }
  .prose .chk-item > strong { font-size: 18px; }
  .prose .chk { font-size: 16px; }
  .prose .chk b { font-size: 10.5px; padding: 2px 7px; margin-right: 7px; }
}

/* Хлебные крошки одной строкой: ширина колонки не должна вырастать до ширины nowrap-текста.
   Иначе весь герой уезжает за правый край (замечено на iPhone, 16.09.2026). */
@media (max-width: 767px) {
  .service-hero > *, .case-body > *, .article-layout > *, .contacts-grid > *, .faq-grid > *, .section-head > *, .stack > * { min-width: 0; }
  .crumbs { width: 100%; max-width: 100%; }
}
/* Широкая таблица в текстовой странице: прокрутка внутри блока, а не рост всей колонки */
.page-body, .prose { min-width: 0; max-width: 100%; }
.prose .table-scroll { width: 100%; contain: inline-size; }
/* Страховка: на телефоне страница никогда не прокручивается вбок, даже если какой-то
   блок шире экрана (clip, а не hidden — не ломает position: sticky и fixed). */
@media (max-width: 1023px) { html, body { overflow-x: clip; } }
/* Подвал на телефоне: ссылки плотнее (было 32px между строками), колонки ближе */
@media (max-width: 767px) {
  .footer-col { gap: 4px; }
  .footer-col__title { margin-bottom: 4px; }
  .footer-grid { row-gap: var(--s-5); }
}
/* Реквизиты и правовые ссылки в подвале: <address> без курсива (у шрифта нет italic-начертания),
   кнопка «Настройки cookie» выглядит как соседние ссылки */
.footer-legal { font-style: normal; font-size: 12px; line-height: 1.5; color: var(--secondary); margin-top: var(--s-4); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-docs a, .footer-docs button { font: inherit; font-size: 13px; color: var(--secondary); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-docs a:hover, .footer-docs button:hover { color: var(--ink); }

/* ---------- Правки по скринам владельца 16.09.2026 ---------- */
/* Мобильное меню прокручивается само, сайт под ним — нет (iOS игнорирует overflow:hidden на body) */
.mobile-menu { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body.is-locked { position: fixed; left: 0; right: 0; width: 100%; }
@media (max-width: 767px) {
  /* Кнопки с длинным текстом переносятся на две строки, а не вылезают за край */
  .btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; line-height: 1.25; text-align: center; }
  .btn--sm { min-height: 44px; padding: 10px 16px; }
  form .btn, .form .btn, .rlv2-calc__result .btn { width: 100%; align-self: stretch; margin-left: 0; margin-right: 0; }
  /* Соцсети в подвале — только иконки, по ним и так понятно */
  .chip--soc { font-size: 0; gap: 0; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .chip--soc img, .chip--soc svg { width: 20px; height: 20px; }
}
/* Финальная форма на телефоне: внутренний отступ 48px съедал четверть ширины, поля и кнопка были узкими */
@media (max-width: 767px) { .split-form { padding: 28px 20px !important; } }

/* ---------- ТЕКСТОВАЯ СТРАНИЦА: ОДНА КОЛОНКА ----------
   Заголовок с крошками и карточка с текстом стоят на одной вертикали.
   Раньше заголовок был зажат инлайном в 900px (вместе с полями .wrap),
   а правило «.page-body, .prose { max-width: 100% }» растягивало карточку
   на весь контейнер — края расходились. Селектор ниже специфичнее
   и ограничивает только тело обычной страницы, защита таблиц сохраняется. */
:root { --page-col: 860px; }
.page-head { max-width: calc(var(--page-col) + var(--gutter) * 2); }
.page-body-section > .page-body { max-width: var(--page-col); margin-left: auto; margin-right: auto; }

/* ---------- ГАЙДЫ: НОРМА ПОД ПУНКТОМ, УСЛОВНЫЙ ПУНКТ, КРУПНЫЕ ЦИФРЫ ----------
   Используется на /shtrafy-rkn/ и в будущих чек-листах раздела «Чек-листы и гайды». */
.prose .chk-norm { display: block; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--secondary); }
.prose .chk-if { display: inline-block; margin: 0 0 10px; padding: 4px 11px; border-radius: var(--r-pill); background: var(--fill); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.prose .step-lead { color: var(--secondary); }
.prose .rkn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.prose .rkn-stat { background: var(--glass-bg-dark); color: #fff; border-radius: var(--r-lg); padding: 20px 22px; }
.prose .rkn-stat b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.prose .rkn-stat span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.74); }
.prose .rkn-stat--warn b { color: #FFB45C; }
.prose .have-list { columns: 2; column-gap: 28px; }
.prose .have-list li { break-inside: avoid; }
/* <br> между плашками (их добавляет wpautop) давал лишнюю пустую строку в каждом пункте */
.prose .chk-item > br { display: none; }
/* Подпись-источник под плитками и таблицей: .prose p { margin: 0 } обнулял отступ */
.prose .rkn-stats + .fineprint, .prose .table-scroll + .fineprint { margin-top: 12px; }
@media (max-width: 768px) {
  .prose .rkn-stat b { font-size: 28px; }
  .prose .have-list { columns: 1; }
}

/* ---------- Шапка кейса: текст слева, обложка справа (23.09.2026) ----------
   Раньше обложка шла отдельным блоком во всю ширину и занимала целый второй экран:
   декоративная картинка стояла между цифрами и историей кейса. Теперь она рядом с заголовком,
   целиком в 4:3, а история начинается на первом экране. */
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--s-7); align-items: center; }
.case-hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.case-hero__h1 { font-size: clamp(38px, 3.6vw, 56px); letter-spacing: -.035em; line-height: 1.05; }
.case-hero__media { padding: 12px; }
.case-hero__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 1023px) {
  .case-hero { grid-template-columns: 1fr; gap: 20px; }
  .case-hero__media { max-width: 560px; }
}
@media (max-width: 767px) {
  /* длинные слова вроде «Переоборудование» не рвутся посередине */
  .case-hero__h1 { font-size: 30px; line-height: 1.12; overflow-wrap: normal; hyphens: manual; }
}

/* Счётчик внутри кнопки фильтра (кейсы, блог): правило «.seg span» давало ему поля кнопки,
   и цифра отъезжала от названия на ~40px. */
.seg a > span { height: auto; padding: 0; border-radius: 0; margin-left: -2px; font-size: 13px; }

/* ---------- Кейсы сайтов: состав сайта и окно с макетом (23.09.2026) ---------- */
.site-sections { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: ss; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.site-sections li { counter-increment: ss; display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.site-sections li::before { content: counter(ss, decimal-leading-zero); font-size: 12px; font-weight: 600; color: var(--accent); flex: none; min-width: 20px; }
.site-window { padding: 0; overflow: hidden; border-radius: var(--r-xl); }
.site-window__bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,.7); }
.site-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e2e7; }
.site-window__bar i:nth-child(1) { background: #ff5f57; } .site-window__bar i:nth-child(2) { background: #febc2e; } .site-window__bar i:nth-child(3) { background: #28c840; }
.site-window__bar span { margin-left: 12px; font-size: 13px; color: var(--secondary); }
.site-window__view { height: min(78vh, 820px); overflow-y: auto; overscroll-behavior: contain; background: #fff; scrollbar-width: thin; }
.site-window__view img { display: block; width: 100%; height: auto; }
.site-window__view:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* превью в портфолио «Создание сайтов»: верх макета в рамке браузера */
.shot__view { display: block; height: 150px; overflow: hidden; background: #fff; }
.shot__view img { display: block; width: 100%; height: auto; transition: transform 4s ease; }
.entry:hover .shot__view img { transform: translateY(calc(-100% + 150px)); transition-duration: 9s; }
@media (max-width: 767px) {
  .site-sections { grid-template-columns: 1fr; }
  .site-window__view { height: 70vh; }
}

/* ---------- Тёмное стекло: чистый край (23.09.2026) ----------
   Тёмные блоки наследовали от светлого стекла белую линию-блик по верхнему краю.
   На тёмном фоне она читалась как отклеившаяся плёнка на углах, плюс двойная обводка. */
.glass--dark {
  box-shadow: 0 24px 60px -24px rgba(30,41,59,.45), 0 0 0 1px rgba(0,0,0,.06);
  border-color: rgba(255,255,255,.06);
}
.glass--dark::before { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,0) 35%); }

/* ---------- Калькулятор v2 (23.09.2026) ----------
   Заголовок переехал внутрь карточки, поля — под ним, итог — справа на всю высоту.
   .rlv2-calc растворяется (display: contents), чтобы поля и итог стали ячейками общей сетки. */
.calc2 { padding: 44px !important; display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr auto; column-gap: 56px; row-gap: 28px; }
.calc2 .rlv2-calc { display: contents; }
.calc2__head { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; }
.calc2__head h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; }
.calc2__head .body-text { font-size: 16px; }
.calc2 .rlv2-calc__form { grid-column: 1; grid-row: 2; align-self: start; gap: 18px 16px; }
.calc2 .rlv2-calc__result { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; padding: 30px 28px; gap: 4px; justify-content: center; }
.calc2__foot { grid-column: 1; grid-row: 3; align-self: end; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.calc2__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--secondary); }
.calc2 .rlv2-calc__rtitle { margin-bottom: 8px; }
.calc2 .rlv2-calc__row { padding: 12px 0; align-items: center; }
.calc2 .rlv2-calc__row-label { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.calc2 .rlv2-calc__row-val { flex: none; white-space: nowrap; font-size: 22px; }
.calc2 .rlv2-calc__row-val--accent { font-size: 30px; }
.calc2 .rlv2-calc__note { margin-top: 10px; line-height: 1.45; }
.calc2 .ak-btn { margin-top: 12px; }
@media (max-width: 1023px) {
  .calc2 { grid-template-columns: 1fr; grid-template-rows: none; padding: 28px !important; row-gap: 22px; }
  .calc2__head, .calc2 .rlv2-calc__form, .calc2 .rlv2-calc__result, .calc2__foot { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
  .calc2 { padding: 22px !important; }
  .calc2 .rlv2-calc__row { flex-direction: row; align-items: center; }
  .calc2 .rlv2-calc__row-val { font-size: 19px; }
  .calc2 .rlv2-calc__row-val--accent { font-size: 24px; }
}

/* Сноски и пояснения под сетками карточек — на всю ширину рабочей области, а не узкой колонкой */
section.section > p.caption, section.section > p.body-text, section.section > .block-cta .caption { max-width: none; }

/* Галочка в кружке не должна сжиматься, когда рядом длинный текст */
.cmp-i { flex: none; }

/* Подпись под сеткой карточек: не от внешней кромки карточек, а от их внутреннего поля (как текст внутри).
   Так края подписи совпадают с текстом карточек, блок не кажется шире сетки. */
section.section > p.caption, section.section > p.body-text, section.section > .block-cta .caption { padding-inline: 28px; margin-top: 4px; }
@media (max-width: 767px) { section.section > p.caption, section.section > p.body-text, section.section > .block-cta .caption { padding-inline: 4px; } }

/* ---------- Рубрики блога: отдельные таблетки вместо одной капсулы (28.09.2026) ----------
   Рубрик стало 9 — в одну капсулу они не помещались, последняя уезжала на вторую строку
   и капсула превращалась в бесформенный овал. Отдельные таблетки переносятся ровными строками. */
.seg--chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; background: none; border-radius: 0; max-width: 1100px; margin-inline: auto; }
.seg--chips a {
  background: var(--glass-bg-thin); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--glass-shadow-sm);
  -webkit-backdrop-filter: blur(var(--glass-blur-thin)); backdrop-filter: blur(var(--glass-blur-thin));
  color: var(--ink-2); transition: background var(--t-micro) ease, color var(--t-micro) ease;
}
.seg--chips a:hover { background: rgba(255,255,255,.9); color: var(--ink); }
.seg--chips a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 6px 16px -8px rgba(29,29,31,.5); }
@media (max-width: 767px) {
  .seg--chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg--chips::-webkit-scrollbar { display: none; }
  .seg--chips a { flex: none; }
}

/* ---------- Страница «Чек-листы и гайды» (/gaydy/, page-gaydy.php, 28.09.2026) ---------- */
.guides-head { display: flex; flex-direction: column; gap: 18px; }
.guides-head .lead { max-width: 720px; }
.guides-section { padding-top: var(--s-6); }
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; transition: transform var(--t-micro) ease, box-shadow var(--t-micro) ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(30,41,59,.35); }
.guide-card__cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.guide-card__topic { position: absolute; left: 18px; top: 18px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); }
.guide-card__fig { position: absolute; left: 22px; bottom: 16px; display: flex; flex-direction: column; line-height: 1; }
.guide-card__fig b { font-size: 72px; font-weight: 600; letter-spacing: -.05em; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-card__fig i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
/* «лист чек-листа» справа: стеклянная карточка с тремя строками-галочками */
.guide-card__sheet { position: absolute; right: -18px; bottom: -22px; width: 52%; padding: 18px 18px 26px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 18px 40px -20px rgba(30,41,59,.35); transform: rotate(-6deg); transition: transform .5s var(--ease); }
.guide-card:hover .guide-card__sheet { transform: rotate(-3deg) translateY(-6px); }
.guide-card__sheet span { display: flex; align-items: center; gap: 10px; }
.guide-card__sheet em { flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(26,155,75,.18); position: relative; }
.guide-card__sheet em::after { content: ''; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--success); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.guide-card__sheet s { display: block; height: 8px; border-radius: 4px; background: rgba(29,29,31,.12); text-decoration: none; }
.guide-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.guide-card__kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.guide-card__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.guide-card__desc { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.guide-card__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }
/* первая карточка — широкая: обложка слева, текст справа */
.guide-card--wide { grid-column: span 2; flex-direction: row; }
.guide-card--wide .guide-card__cover { aspect-ratio: auto; width: 48%; min-height: 300px; }
.guide-card--wide .guide-card__body { padding: 32px; justify-content: center; }
.guide-card--wide .guide-card__title { font-size: 26px; }
.guide-card--wide .guide-card__desc { font-size: 16px; }
.guide-card--wide .guide-card__fig b { font-size: 96px; }
.guides-outro { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; }
.guides-outro p { margin-top: 8px; font-size: 20px; line-height: 1.45; color: #fff; max-width: 680px; }
.guides-outro .btn { flex: none; }
@media (max-width: 1023px) {
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .guides-grid { grid-template-columns: 1fr; gap: 16px; }
  .guide-card--wide { flex-direction: column; }
  .guide-card--wide .guide-card__cover { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .guide-card--wide .guide-card__body { padding: 22px 24px 24px; }
  .guide-card--wide .guide-card__title { font-size: 21px; }
  .guide-card--wide .guide-card__fig b, .guide-card__fig b { font-size: 64px; }
  .guides-outro { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .guides-outro .btn { width: 100%; }
}
/* широкая карточка гайда: цифра и лист по центру высоты, чтобы обложка не пустовала */
.guide-card--wide .guide-card__fig { left: 32px; bottom: auto; top: 50%; transform: translateY(-50%); }
.guide-card--wide .guide-card__sheet { width: 46%; right: 24px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-6deg); }
.guide-card--wide:hover .guide-card__sheet { transform: translateY(-54%) rotate(-3deg); }
@media (max-width: 767px) {
  .guide-card--wide .guide-card__fig { left: 22px; top: auto; bottom: 16px; transform: none; }
  .guide-card--wide .guide-card__sheet { width: 52%; right: -18px; top: auto; bottom: -22px; transform: rotate(-6deg); }
}

/* ---------- ПОСАДОЧНАЯ SEO-АУДИТА ---------- */
.audit-landing .section--first { padding-top: var(--s-6); }
.audit-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: var(--s-7); align-items: center; padding-top: var(--s-5); }
.audit-hero__copy { gap: 22px; }
.audit-hero__copy .chip { align-self: flex-start; }
.audit-hero__copy h1 { max-width: 16ch; }
.audit-hero__copy .lead { max-width: 620px; }
.audit-checks { display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; }
.audit-checks span { position: relative; padding-left: 28px; }
.audit-checks span::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }
.audit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.audit-preview { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.audit-preview h2 { font-size: clamp(28px, 3vw, 40px); max-width: 12ch; }
.audit-preview__row { display: flex; gap: 18px; padding: 15px 0; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 1.45; }
.audit-preview__row b { color: var(--accent); font-size: 13px; flex: none; }
.audit-grid .card { min-height: 250px; gap: 16px; padding: 30px; }
.audit-grid .card h3 { font-size: 24px; }
.audit-card__num { color: var(--accent); font-size: 13px; font-weight: 600; }
.audit-process { padding: 42px; display: grid; grid-template-columns: .8fr 1fr; gap: var(--s-7); }
.audit-process ol { margin: 0; padding: 0 0 0 24px; display: grid; gap: 18px; }
.audit-process li { padding-left: 8px; }
.audit-process li b, .audit-process li span { display: block; }
.audit-process li span { color: var(--secondary); font-size: 15px; margin-top: 4px; }
.audit-form { padding: 42px; }
.audit-form form { min-width: 0; }
.audit-form .btn { width: 100%; }
.audit-last__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.audit-last h2 { max-width: 780px; }
.audit-last .btn { flex: none; }
@media (max-width: 1023px) {
  .audit-hero__grid, .audit-process { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr 1fr; }
  .audit-last__inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
  .audit-hero__grid { gap: 26px; }
  .audit-hero__copy h1 { max-width: none; }
  .audit-actions { flex-direction: column; }
  .audit-actions .btn, .audit-last .btn { width: 100%; white-space: normal; text-align: center; }
  .audit-preview, .audit-process, .audit-form { padding: 26px 22px; }
  .audit-grid { grid-template-columns: 1fr; }
  .audit-grid .card { min-height: 0; }
}
