/* ============================================================
   BBB2 Business Hub — index.css
   Mobile: 360px–1169px | Desktop: ≥1170px
   Source of truth: Figma Builder.io JSON
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:                  #F76230;
  --primary-foreground:       #ffffff;
  --foreground:               #1D1D1D;
  --foreground-white:         #ffffff;
  --muted:                    #EFEAE2;    
  --muted-foreground:         rgba(29, 29, 29, 0.70);
  --muted-foreground-white:   rgba(255, 255, 255, 0.70);
  --background:               #EFEAE2;
  --surface-1:                #ffffff;
  --surface-2:                #E4DACA;
  --surface-4:                #23211F;
  --surface-5:                #EFEAE2;
  --text-primary:             #282828;
  --border:                   #E4E0D9;
  --input:                    #E4E0D9;
  --popover:                  #ffffff;
  --card-foreground:          #1D1D1D;
  --accent-2:                 #E3EFE2;

  /* Радиусы скругления (единые для всего сайта) */
  --radius-lg:                20px;   /* большие секции / карточки */
  --radius-md:                16px;   /* средние блоки-карточки */
  --radius-sm:                12px;   /* мелкие блоки / поля */
  --radius-xs:                8px;    /* кнопки / бейджи */

  /* Отступы между секциями */
  --section-gap:              12px;

  /* Опорные размеры шрифтов */
  --font-content:             18px;   /* базовый текст */
  --font-body-sm:             14px;   /* подписи / мета */
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

html, body { margin: 0; padding: 0; background: var(--background); font-family: Inter, -apple-system, Roboto, Helvetica, sans-serif; color: var(--foreground); overflow-x: hidden; word-break: normal; overflow-wrap: break-word; hyphens: none; text-wrap: pretty; }
a { color: var(--primary); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════════════════ */
.page-wrapper {
  width: 100%;
  padding: 0 12px;
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* page-content: все секции стекаются с gap 12px (из Figma) */
.page-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER — DESKTOP
══════════════════════════════════════════════════════════════ */
.header-desktop {
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.header-desktop .header-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1170px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
}

.btn-menu {
  padding: 7px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-menu:hover { background: var(--muted); }
.btn-menu--accent {
  background: var(--primary, #2563eb);
  color: #fff;
  font-weight: 600;
}
.btn-menu--accent:hover {
  background: var(--primary-hover, #1d4ed8);
  color: #fff;
}

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

.btn-login {
  height: 40px;
  padding: 0 20px;
  background: var(--muted);
  border-radius: 99px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-login:hover { opacity: 0.85; }

/* Header avatar (logged-in user) */
.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  background: linear-gradient(135deg, #FFC800 0%, #E974AC 100%);
  transition: transform 0.15s, box-shadow 0.15s;
}
.header-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(231, 116, 172, 0.35);
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-avatar__initials {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════
   HEADER — MOBILE
══════════════════════════════════════════════════════════════ */
.header-mobile {
  display: none;
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 8px 12px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.header-mobile .header-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-mobile .header-logo { flex: 1; }

.btn-dark-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  background: var(--foreground);
  border-radius: 99px;
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground-white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  margin-top: 20px;
  transition: opacity 0.15s;
}
.btn-dark-sm:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════
   СЕКЦИЯ 2 — ЭКОНОМИЯ  (bg: #FFF)
══════════════════════════════════════════════════════════════ */
.sec-economy {
  background: var(--surface-1);
  border-radius: 32px;
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card {
  flex: 1 1 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
}

/* Desktop scaling */
@media (min-width: 1170px) {
  .card-deck--hero { max-width: 480px; height: 480px; }
  .card-deck--check { max-width: 940px; height: 264px; }
}

@media (max-width: 640px) {
    .ci-form-wrap { margin-top: 32px; padding: 0 12px; }
    .ci-toolbar { gap: 8px; }
    .ci-pill input { width: 100px; }
    .ci-textarea-wrap { padding: 12px 16px 8px; }
    .ci-input-card textarea { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════
   СЕКЦИЯ 5 — НЕЙРООТЛИЧИЯ / AI  (bg: #FFF)
══════════════════════════════════════════════════════════════ */
.sec-ai-cat {
  background: var(--surface-1);
  border-radius: 32px;
  padding: 60px 0;
  display: flex;
  flex-direction: column;

}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--foreground);
}

.stats {
  padding: 100px 0;
}

.stats-grid {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .stats-grid { flex-direction: column; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats { padding: 60px 0; }
  .benefits { margin-top: 48px; }
  .benefits-title { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   СЕКЦИЯ 5 v2 — ИНДЕКС (изолирована от category.php)
   Классы: sec-ai-index, ai-cards-index, ai-card-index
══════════════════════════════════════════════════════════════ */
.sec-ai-index {
  background: var(--surface-1);
  border-radius: 32px;
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   СЕКЦИЯ 8 — FAQ  (bg: #FFF)
══════════════════════════════════════════════════════════════ */
.sec-faq {
  background: var(--surface-1);
  border-radius: 32px;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER  (bg: #23211F, borderRadius: 24px 24px 0 0)
══════════════════════════════════════════════════════════════ */
.footer-new {
  background: var(--surface-4);
  border-radius: 24px 24px 0 0;
  margin-top: 24px;
}

.container-footer {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
}

/* ── Нижняя полоса ──────────────────────── */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 400;
  color: white;
}
.footer-nav-links a {
  color: white;
  text-decoration: none;
}
.footer-nav-links a:hover { text-decoration: underline; }

.footer-bar__right-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-social-btn {
  padding: 10px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
  white-space: nowrap;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.22); }

/* ── Копирайт / правовая информация ─────── */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 300;
  max-width: 600px;
  width: calc(100% - 40px);
  font-size: 14px;
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner__text { flex: 1; }
.cookie-banner__text a { color: var(--primary); }
.cookie-banner__btn {
  padding: 8px 20px;
  background: #1D1D1D;
  color: #fff;
  border-radius: 9999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   UNIFIED DESIGN TOKENS — радиусы, отступы, шрифты
   (перекрывает разрозненные значения ниже)
══════════════════════════════════════════════════════════════ */

/* ── Большие карточки / секции → --radius-lg ── */
.sec-inner, .sec-hero, .sec-economy, .sec-tech, .sec-idea,
.sec-ai-cat, .sec-ai-index, .sec-pricing, .sec-catalog, .sec-faq,
.post-sheet, .post-premium-card, .post-yandex-card,
.card-promo, .card-deck, .card-deck__card, .modal-content {
  border-radius: var(--radius-lg) !important;
}

/* ── Средние блоки-карточки в контенте → --radius-md ── */
.post-metrics, .verdict-block, .marketing-budget-card,
.channel-card, .channel-detail-card, .post-paywall,
.money-flow-block, .money-flow-total, .ai-card, .ai-card-index,
.post-hero-img, .ci-check-panel, .ci-settings-panel,
.post-content pre, .post-content code {
  border-radius: var(--radius-md) !important;
}

/* ── Мелкие вложенные блоки → --radius-sm ── */
.bank-rec, .post-quote, .bank-reco-card,
.product-unit-block, .ch-details, .ch-eff-item,
.post-content blockquote, .post-content .callout,
.post-content .post-callout, .post-content .summary-block,
.post-content [class*="callout"], .cost-row, .unit-econ-row,
.unit-econ, .sec-economy__stats > *, .pricing-card,
.tech-feature, .ai-cat-card {
  border-radius: var(--radius-sm) !important;
}

/* ── Кнопки / поля / бейджи → --radius-sm или --radius-xs ── */
.btn-primary, .btn-outline, .btn-primary-sm, .btn-outline-sm,
.budget-range, .favorite-btn, .post-badge {
  border-radius: var(--radius-sm) !important;
}
input[type="text"], input[type="email"], input[type="search"],
textarea, select {
  border-radius: var(--radius-sm) !important;
}

/* ── Отступы между секциями ── */
.page-wrapper { gap: var(--section-gap); }
.post-page, .post-article { gap: var(--section-gap); }

/* ── Шрифты единые ── */
.post-content, .post-content p, .post-content li,
.post-content blockquote, .post-content .callout,
.sec-hero__sub, .sec-economy__heading, .sec-tech__heading,
.sec-idea__heading, .sec-ai-cat__heading, .sec-ai-index__heading,
.sec-pricing__heading, .sec-catalog__heading, .sec-faq__heading {
  font-size: var(--font-content);
}
.post-content em, .post-content blockquote em, .post-quote p {
  font-size: var(--font-content);
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAV — плавающая таблетка со стеклом (mobile only)
   Figma: padding 8px 12px, bg rgba(255,255,255,0.20), radius 99px
══════════════════════════════════════════════════════════════ */

/* Body отступ снизу, чтобы контент не прятался под баром */
@media (max-width: 1169px) {
  /* ── Мобильные значения дизайн-токенов ── */
  :root {
    --radius-lg:               16px;
    --radius-md:               12px;
    --radius-sm:               10px;
    --radius-xs:               6px;
    --section-gap:             8px;
    --font-content:            16px;
    --font-body-sm:            12px;
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 12px));
  }

  /* ── Мобильные шрифты: контент 18→16px, подписи 14→12px ── */
  .post-content, .post-content p, .post-content li,
  .post-content blockquote, .post-content .callout,
  .post-content .post-callout, .post-content .summary-block,
  .post-content [class*="callout"],
  .post-content pre, .post-content code, .post-content em,
  .hero p, .sec-hero__sub, .sec-hero__text,
  .sec-economy__text, .sec-tech__text,
  p, li, .text-content, .content-body { font-size: 16px !important; }

  /* Заголовки — скейлим на 2px вниз */
  h1, .post-title, .sec-hero__heading { font-size: 28px !important; }
  h2, .post-content h2, .section-heading { font-size: 22px !important; }
  h3, .post-content h3 { font-size: 18px !important; }
  h4, .post-content h4 { font-size: 16px !important; }

  .post-content h2,
  .post-content h3,
  .post-content h4 { margin-top: 20px; }

  /* Подписи / мета: 14→12px */
  .post-meta, .post-date, .post-author, .card-desc,
  .sec-eyebrow, .sec-hero__eyebrow, .channel-label,
  .post-tag, .tag, .text-sm, .text-xs,
  .marketing-block-label, .badge, figcaption,
  .post-subtitle, .product-card__desc, .product-card__price,
  .sec-economy__header small, .sec-tech__header small,
  .sec-faq__question, .cost-label, .footer-text,
  .ai-card-desc, .ai-card-price, .table-caption {
    font-size: 12px !important;
  }

  /* Очень мелкие: 12→10px */
  .post-content small, .post-content .text-2xs,
  .footnote, .disclaimer, .text-2xs {
    font-size: 10px !important;
  }

  /* Кнопки и инпуты */
  .btn-primary, .btn-outline, .btn-primary-sm, .btn-outline-sm,
  button, input, textarea, select {
    font-size: 14px;
  }
}

/* ═══ BottomNavigation — стеклянная таблетка (показана только на mobile) ═══ */
.BottomNavigation {
  display: none; /* показывается через media query */
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;

  /* Таблетка */
  padding: 8px 12px;
  border-radius: 99px;

  /* Эффект стекла — тёмный фон сайта просвечивает */
  background: rgba(35, 33, 31, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  /* Тонкая обводка как у стекла */
  border: 1px solid rgba(255, 255, 255, 0.14);

  /* Тень для отрыва от контента */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.40),
    0 2px 8px  rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);

  /* Ширина по содержимому */
  width: auto;
  max-width: calc(100vw - 32px);

  /* Плавное появление */
  transition: opacity 0.2s;
}

.BottomMenu {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Figma: ширина меню 336px внутри таблетки */
  width: 336px;
  max-width: calc(100vw - 56px);
  padding: 0 4px;
}

.BottomTab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  border-radius: 12px;
  transition: opacity 0.15s;
}

/* Иконка-кружок */
.BottomTabIcon {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  /* нет фона у неактивных */
  transition: background 0.18s;
}

/* Активный таб — оранжевый круг за иконкой */
.BottomTab--active .BottomTabIcon,
.BottomTabIcon--active {
  background: var(--primary, #F76230);
  border-radius: 99px;
}

/* Подпись */
.BottomTab > div:last-child {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-family: Inter, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Активная подпись — белая */
.BottomTab--active > div:last-child {
  color: #ffffff;
}

/* Иконки неактивных табов чуть приглушены */
.BottomTabIcon:not(.BottomTabIcon--active) svg {
  opacity: 0.55;
}
.BottomTab--active .BottomTabIcon svg,
.BottomTabIcon--active svg {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   TABLE SCROLL
══════════════════════════════════════════════════════════════ */
.table-scroll-container {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  display: block;
  margin-bottom: 24px;
}

.table-scroll-hint {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE BREAKPOINT  ≤ 1169px
══════════════════════════════════════════════════════════════ */
@media (max-width: 1169px) {
  /* wrapper */
  .page-wrapper { padding: 0 4px; }
  .page-content { gap: 4px; }

  /* header */
  .header-desktop { display: none !important; }
  .header-mobile  { display: flex; }

  /* hero */
  .sec-hero { padding: 40px 16px 40px; border-radius: 16px; }
  .sec-hero__inner { flex-direction: column; align-items: center; gap: 20px; }
  .sec-hero__image { order: 1; }
  .sec-hero__text  { order: 2; width: 100%; align-items: center; text-align: center; }
  .sec-hero__heading { font-size: 28px; line-height: 33px; }
  .sec-hero__sub { font-size: 16px; line-height: 22px; }
  .sec-hero__glow { display: none; }
  .sec-hero__image { position: relative; right: auto; bottom: auto; width: 100%; max-width: 360px; min-height: 180px; }
  .sec-hero__decor--tl { top: -40px; left: -25px; width: 55px; }
  .sec-hero__decor--cr { right: -30px; width: 50px; }

  /* card deck — mobile scaling (≈38% от десктопа) */
  .card-deck--hero { height: 260px; max-width: 100%; }
  .card-deck--hero .card-deck__card[style*="--i:1"] { top: -270px; }
  .card-deck--hero .card-deck__card[style*="--i:2"] { top: -210px; }
  .card-deck--hero .card-deck__card[style*="--i:3"] { top: -155px; }
  .card-deck--check { height: 42px; max-width: 100%; }
  .card-deck--check .card-deck__card[style*="--i:1"] { top: -59px; }
  .card-deck--check .card-deck__card[style*="--i:2"] { top: -49px; }
  .card-deck--check .card-deck__card[style*="--i:3"] { top: -40px; }

  /* economy */
  .sec-economy { padding: 40px 16px; border-radius: 16px; }
  .sec-economy__heading { font-size: 24px; line-height: 30px; }
  .sec-economy__stats { gap: 12px; margin-top: 40px; }
  .stat-card__value { font-size: 24px; }
  .sec-economy__quality { margin-top: 40px; }
  .sec-economy__quality-heading { font-size: 22px; }
  .data-sources { flex-direction: column; gap: 16px; }

  /* tech */
  .sec-tech { padding: 40px 16px; border-radius: 16px; }
  .sec-tech__heading { font-size: 24px; line-height: 30px; }
  .tech-feature { flex-direction: column !important; gap: 20px; margin-top: 40px; }
  .tech-feature__heading { font-size: 22px; line-height: 28px; }
  .tech-feature__desc { font-size: 16px; margin-top: 16px; }
  .tech-feature__img { flex: none; width: 100%; }

  /* idea */
  .sec-idea { padding: 40px 16px; border-radius: 16px; }
  .sec-idea__heading { font-size: 24px; line-height: 30px; }
  .sec-idea__sub { font-size: 16px; }
  .sec-idea__image { margin-top: 40px; }
  .sec-idea__cta { margin-top: 40px; }

  /* ai cards */
  .sec-ai-cat { padding: 60px 16px; border-radius: 16px; }
  .sec-ai-cat__heading { font-size: 24px; line-height: 30px; }
  .sec-ai-cat__inner { max-width: 100%; }
  .ai-cards { flex-direction: column; gap: 12px; margin-top: 40px; }
  .ai-card { padding: 20px; }

  /* sec-ai-index mobile */
  .sec-ai-index { padding: 40px 16px; border-radius: 16px; }
  .sec-ai-index__heading { font-size: 24px; line-height: 30px; }
  .ai-cards-index { flex-direction: column; gap: 12px; margin-top: 40px; }
  .ai-card-index { padding: 24px; min-height: 320px; }
  .ai-card-index__heading { font-size: 24px; }
  .ai-card-index__illu { max-width: 60%; max-height: 110px; }

  /* pricing */
  .sec-pricing { padding: 40px 0; border-radius: 16px; }
  .sec-pricing__header { padding: 0 16px; }
  .pricing-tabs { margin-left: 16px; margin-right: 16px; }
  .sec-pricing__heading { font-size: 24px; line-height: 30px; }

  /* Горизонтальный свайп карточек тарифов */
  .pricing-cards {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 20px;
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .pricing-cards::-webkit-scrollbar { display: none; }

  .pricing-card {
    flex: 0 0 calc(85vw - 32px);
    min-width: 0;
    max-width: 320px;
    scroll-snap-align: start;
  }

  /* catalog */
  .sec-catalog { padding: 40px 16px; border-radius: 16px; }
  .sec-catalog__heading { font-size: 24px; line-height: 30px; }
  .posts-row { flex-direction: column; }
  .post-card { flex: 0 0 auto; width: 100%; }
  .posts-grid { margin-top: 32px; }
  .sec-catalog__cta { margin-top: 32px; }

  /* faq */
  .sec-faq { padding: 40px 16px; border-radius: 16px; }
  .sec-faq__heading { font-size: 24px; line-height: 30px; }
  .sec-faq__list { margin-top: 32px; }
  .sec-faq__question { font-size: 16px; }

  /* footer */
  .footer-new { border-radius: 16px 16px 0 0; }
  .container-footer { padding: 24px 16px 32px; }

  /* TG promo */
  .footer-tg { padding: 16px; min-height: 0; }
  .footer-tg__text { max-width: calc(100% - 100px); }
  .footer-tg__heading { font-size: 18px; line-height: 22px; }
  .footer-tg__img { width: 88px; height: 88px; bottom: 0; }

  /* Категории: десктоп прячем, мобайл показываем */
  .footer-cats-desktop { display: none; }
  .footer-cats-mobile  { display: none; }

  /* Разделитель */
  .footer-divider { margin-top: 0; }

  /* Нижняя полоса: на мобиле две строки */
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
  }
  .footer-bar__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .footer-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
  }
  /* Логотип + соцсети — одна строка */
  .footer-bar__right-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .footer-bar__right { flex-shrink: 0; }
  .footer-legal { margin-top: 20px; }

  /* bottom nav — показываем плавающую таблетку */
  .BottomNavigation { display: inline-flex; }

  /* ===== FIX: Horizontal scroll for tables ===== */
  .post-content {
    min-width: 0;
    overflow-x: auto;
  }
  .post-sheet__body {
    min-width: 0;
    width: 100%;
  }
  .table-scroll-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
  }
  .table-scroll-container table {
    min-width: 800px;
    width: auto;
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP  ≥ 1170px
══════════════════════════════════════════════════════════════ */
@media (min-width: 1170px) {
  .page-wrapper { padding: 0 12px; }
  .header-desktop { display: flex; }
  .header-mobile  { display: none !important; }
  .BottomNavigation { display: none !important; }
}
/* ═══════════════════════════════════════════════════════════ */
/* post.css → index.css (merge 2026-05-29 22:31 MSK) */
/* ═══════════════════════════════════════════════════════════ */

/* ============================================================
   post.css — BBB2 страница бизнес-плана
   Подключать ПОСЛЕ index.css
   Mobile ≤1169px | Desktop ≥1170px
   ============================================================ */

/* ── Layout ────────────────────────────────────────────────── */
.post-page   { display: flex; flex-direction: column; align-items: center; width: 100%; }

.post-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 1170px;
}

.post-article {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Белая карточка-секция ──────────────────────────────────── */
.post-sheet {
  background: white;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}

.post-sheet__body {
  width: 796px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Мета-строка: город / направление / избранное ─────────── */
.post-meta {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Заголовок и обложка ───────────────────────────────────── */
.post-h1 {
  color: var(--foreground);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  align-self: stretch;
  margin: 0;
}

.post-hero-img {
  align-self: stretch;
  width: 100%;
  height: auto;
  aspect-ratio: 3/1.5;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}

.post-tab {
  flex: 1;
  height: 48px;
  padding: 6px 12px;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.post-tab.active {
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 10px;
  color: var(--foreground);
}

/* ── Контент из БД (генерированный HTML) ───────────────────── */
.post-content {
  width: 100%;
  max-width: 796px;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: auto;
  contain: inline-size;
}

.post-content h1 {
  color: var(--foreground);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 28px;
}

.post-content h2 {
  margin-top: 0;
  color: var(--foreground);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin:32px 0 24px 0;
}

.post-content h3 {
  color: var(--foreground);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 24px 0 ;
}

.post-content h4 {
  color: var(--foreground);
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  margin: 16px 0 12px 0 ;
}

.post-content h5 {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 8px 0;
}

.post-content p { margin: 0 0 12px; }

/* Callout / цитата */
.post-content blockquote,
.post-content .callout,
.post-content .post-callout,
.post-content [class*="callout"],
.post-content .summary-block {
  padding: 24px;
  background: var(--muted);
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--foreground);
  margin: 20px 0;
}
 .post-content em {
    font-size: 18px;
    font-style: normal;
    color: var(--foreground);
    line-height: 1.4;
  }
/* Цитата-плашка (post-quote) — оранжевая, с левой полосой */
.post-content blockquote.post-quote,
.post-quote {
  padding: 24px;
  margin: 16px 0;
  background: #EFEAE2;
  border-radius: 12px;
  color: #1B1B1B;
  font-size: 16px;
  line-height: 1.6;
}
.post-quote p {
  margin: 0;
}

/* Списки ul, ol, li */
.post-content ul,
.post-content ol {
  margin: 12px 0;
  padding-left: 1.5rem;
}
.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
}
.post-content ul { list-style-type: disc; }
.post-content ol { list-style-type: decimal;}
.post-content ul li::marker,
.post-content ol li::marker {
  color: var(--foreground);
}

/* Таблицы */
.post-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post-content thead {
}
.post-content thead th {
  border-bottom: 2px solid var(--foreground);
}
.post-content tbody {
}
.post-content tr {
  border-bottom: 1px solid var(--border);
}
.post-content tr:last-child {
  border-bottom: none;
}
.post-content th {
  padding: 16px 0;
  border-bottom: 2px solid var(--foreground);
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  vertical-align: middle;
}
.post-content td {
  padding: 16px  16px 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  vertical-align: top;
}

/* pre — блок кода с отступами, фон не налезает */
.post-content pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0;
    background: #f1e6fb;
    font-size: 18px;
    line-height: 1.6;
}
/* code — инлайн, не ломает строку */
.post-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 5px;
    padding: 2px 6px;
    background: #f1e6fb;
    font-size: 18px;
}
/* ── Copy button for <pre> blocks ── */
.post-content pre {
    position: relative;
}
.pre-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity .2s, background .2s, box-shadow .2s;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.post-content pre:hover .pre-copy-btn,
.post-content pre .pre-copy-btn:focus-visible {
    opacity: 1;
}
.pre-copy-btn:hover {
    background: rgba(255,255,255,.95);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    opacity: 1;
}
.pre-copy-btn svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}
.pre-copy-btn.copied svg {
    color: #22c55e;
}
/* Изображения, iframe, figure — не вылезают за контент */
.post-content img,
.post-content iframe,
.post-content figure,
.post-content video {
  max-width: 100%;
  height: auto;
}
.post-content img,
.post-content svg {
  position: relative;
  top: 0.15em;
}
/* Ссылки — длинные URL не вылезают */
.post-content a {
  overflow-wrap: break-word;
}

/* Чистая прибыль — акцент */
.tr-highlight td {
  font-weight: 500;
  border-bottom: none;
}

.tr-highlight td:first-child {
  font-size: 15px;
}

/* Юнит-экономика */
.unit-econ { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }

/* ── Premium sidebar ────────────────────────────────────────── */
.post-sidebar {
  width: 282px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
}

.post-premium-card {
  width: 282px;
  background: #E3D9C8;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-premium-card__img {
  width: 282px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.post-premium-card__body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-premium-card__title {
  color: var(--foreground);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  margin: 0;
}
.post-premium-card__desc {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 400;
  margin: 0 auto;
  line-height: 1.4;
  text-align: center;
}

.post-yandex-card {
  width: 282px;
  background: #F6D3D3;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-yandex-card__img {
  width: 282px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.post-yandex-card__body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-yandex-card__title {
  color: var(--foreground);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  margin: 0;
}
.post-yandex-card__desc {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 400;
  margin: 0 auto;
  line-height: 1.4;
  text-align: center;
}

/* ── Mobile ≤1169px ─────────────────────────────────────────── */
@media (max-width: 1169px) {
  .post-page { gap: 4px; }

  .post-main {
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
  }

  /* Sidebar под контентом — после article, перед footer */
  .post-sidebar { order: 1; position: static; width: 100%; }
  .post-article  { order: 0; }

  .post-sheet { padding: 16px; border-radius: 12px; gap: 20px; min-width: 0; }
  .tab-panel { width: 100%; contain: inline-size; }
  .post-sheet__body { width: 100%; gap: 16px; min-width: 0; }

  .post-h1 { font-size: 24px; line-height: 30px; }
  .post-hero-img { aspect-ratio: 3/1.5; border-radius: 16px; }

  .post-metrics__title,
  .post-metrics__tab { font-size: 20px; line-height: 25px; }
  .post-verdict { font-size: 20px; line-height: 26px; }
  .post-unit-row { gap: 16px; }
  .post-stats { gap: 12px; }
  .post-stat__value { font-size: 16px; line-height: 20px; }
  .post-stats--verdict .post-stat { max-width: none; }
    .post-content em {font-size: 16px;}
  /* Карточка «Бюджет на маркетинг» — мобильная */
  .marketing-budget-card { padding: 16px; border-radius: 12px; gap: 16px; }
  .marketing-budget-row { gap: 10px; }
  .marketing-budget-icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; }
  .marketing-budget-icon svg { width: 18px; height: 18px; }
  .marketing-budget-label { font-size: 13px; line-height: 17px; }
  .marketing-budget-value,
  .marketing-budget-pct { font-size: 16px; line-height: 20px; }

  .post-content h1 { font-size: 28px; line-height: 34px; margin: 0 0 20px; }
  .post-content h2 { font-size: 24px; line-height: 30px; margin: 0 0 20px; }
  .post-content h3 { font-size: 20px; line-height: 26px; margin: 16px 0 8px; }
  .post-content h4 { font-size: 16px; line-height: 22px; margin: 12px 0 8px; }
  .post-content h5 { font-size: 14px; line-height: 20px; margin: 12px 0 6px; }
  .post-content { font-size: 16px; min-width: 0; }
  .post-content * { max-width: 100%; min-width: 0; box-sizing: border-box; }
  .flow-row-label { font-size: 16px; line-height: 20px; }

  .post-premium-card { width: 100%; }
  .post-premium-card__img { width: 100%; height: auto; aspect-ratio: 282/159; }
  .post-yandex-card { width: 100%; }
  .post-yandex-card__img { width: 100%; height: auto; aspect-ratio: 282/159; }

  .channel-stat { width: calc(50% - 10px); }

  /* Детальная карточка канала — мобильная */
  .channel-detail-card { padding: 16px; border-radius: 16px; gap: 20px; }
  .channel-detail-header h4 { font-size: 16px; line-height: 20px; }
  .ch-metrics-grid { gap: 16px; }
  .ch-metric { min-width: 120px; }
  .ch-metric-value { font-size: 16px; line-height: 20px; }
  .ch-eff-grid { flex-direction: column; }
  .ch-costs-table td,
  .ch-unit-table td { padding: 12px; font-size: 12px; line-height: 15px; }
  .ch-eff-item { padding: 12px; }

  /* ══ Горизонтальный скролл таблиц на мобильных (скопировано из index_responsive.css) ══ */
  .post-content p,
  .post-quote { font-size: 16px; line-height: 1.4; }

  .post-table,
  .post-content table,
  .post-content .table-scroll-container table {
    font-size: 14px;
  }
.post-card__title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 0;
}
  .post-table,
  .ch-costs-table,
  .ch-unit-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

.direction-post {
    font-size: 14px;
    
}
.post-article {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
  .post-content th,
  .post-content td {
    min-width: 120px;
    white-space: normal;
    padding: 8px 10px;
    font-size: 14px;
    word-break: break-word;
  }

  .post-content th:first-child,
  .post-content td:first-child {
    min-width: 150px;
  }

  .post-content tr {
    border-bottom: 1px solid var(--border);
  }

  .post-content tr:last-child {
    border-bottom: none;
  }

  .post-content .table-scroll-container {
    overflow-x: auto !important;
    width: 100%;
    max-width: 100%;
  }

  .post-content .table-scroll-container table {
    min-width: 360px !important;
    width: 100%;
  }

  .table-scroll-hint {
    display: block;
    text-align: left;
    font-size: 12px;
    color: var(--primary);
    margin-top: 6px;
    margin-bottom: 4px;
    opacity: 0.8;
  }

  .post-content td h1,
  .post-content td h2,
  .post-content td h3,
  .post-content td h4,
  .post-content td h5,
  .post-content td h6 {
    font-size: inherit;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    display: inline;
    color: inherit;
  }

  /* Адаптивные таблицы — горизонтальный скролл */
  .cost-table .cost-row,
  .unit-econ-table .unit-econ-thead,
  .unit-econ-table .unit-econ-row {
    min-width: 480px;
  }

  /* pre/code — предотвращает выезд длинных строк на мобилках */
  .post-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 16px 0;
    padding: 10px 14px;
  }
  .post-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* Ссылки — длинные URL не вылезают */
  .post-content a {
    overflow-wrap: break-word;
  }

  /* Картинки в контенте */
  .post-content img,
  .post-content svg {
    max-width: 100%;
    height: auto;
    position: relative;
    top: 0.15em;
  }

  /* Бейдж — перенос вместо однострочного nowrap */
  .post-badge {
    white-space: normal;
    max-width: 100%;
  }
.money-flow-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .post-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── Desktop ≥1170px ────────────────────────────────────────── */
@media (min-width: 1170px) {
  .post-sidebar { display: flex; }
}

/* Кнопка primary маленькая */
.post-premium-card__body .btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  margin: 0;
}

.post-yandex-card__body .btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  margin: 0;
}

/* ── Банк-рекомендация: мобайл ── */
@media (max-width: 768px) {
  .bank-reco-card { padding: 16px; gap: 12px; }
  .bank-reco-logo { width: 40px; height: 40px; }
  .bank-reco-logo svg { width: 40px; height: 40px; }
  .bank-reco-subtitle { font-size: 12px; }
  .bank-reco-name { font-size: 14px; }
  .bank-reco-btn { height: 28px; padding: 7.5px 14px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY.PHP — модалки, фильтры, кнопки
   (вынесено из инлайн-стилей)
══════════════════════════════════════════════════════════════ */

/* ── Модальное окно ── */
.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:1000; align-items:center; justify-content:center; }
.modal-close { width:36px; height:36px; border-radius:8px; border:none; background:transparent; font-size:24px; cursor:pointer; color:var(--muted); display:flex; align-items:center; justify-content:center; }
.modal-close:hover { background:rgba(0,0,0,0.05); }
.category-item:hover, .category-item.active { color:var(--primary); border-bottom-color:var(--primary); }
.budget-range:hover, .budget-range.active { border-color:var(--primary); color:var(--primary); background:rgba(247,98,48,0.05); }

/* ── Кнопки фильтров (скопчены, не конфликтуют с .btn-* в секциях) ── */
.sec-ai-cat__filters { display:flex; gap:12px; flex-wrap:wrap; }

/* ── Модалка: мобайл ── */
@media (max-width:768px) {
  .directions-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px) {
  .directions-grid { grid-template-columns:1fr; }
  .modal-content { max-width:100vw; border-radius:12px 12px 0 0; }
}

/* ═══════════════════════════════════════════════════════════
   CHECK-IDEA.PHP — sec-economy-check (Figma redesign)
   Оригинал .sec-economy — не тронут (нужен index.php / about.php)
══════════════════════════════════════════════════════════════ */

.sec-economy-check {
  background: rgba(239,234,226,1);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* ════════════════════ MOBILE ════════════════════ */
@media (max-width: 1169px) {
  .sec-economy-check { padding: 40px 16px; border-radius: 16px; }
  .sec-economy-check__glow { width: 300px; height: 300px; top: 40px; left: 50%; transform: translateX(-50%); filter: blur(60px); }
  .sec-economy-check__heading { font-size: 28px; line-height: 34px; }
  .sec-economy-check__desc { font-size: 14px; }
  .sec-economy-check .ci-form-wrap { margin-top: 24px; }
  .sec-economy-check .ci-alert { flex-direction: column; align-items: flex-start; border-radius: 14px; }
  .sec-economy-check .ci-alert__login { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   FEED
   ═══════════════════════════════════════════════════════════ */
.feed {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — COMPACT HERO + FEED + PAGINATION
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1169px) {
  .sec-hero--compact {
    padding: 32px 16px;
    border-radius: 12px;
  }
  .sec-hero--compact .sec-hero__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .sec-hero--compact .sec-hero__text {
    max-width: 100%;
    align-items: center;
  }
  .sec-hero--compact .sec-hero__heading {
    font-size: 28px;
    line-height: 34px;
  }
  .sec-hero--compact .sec-hero__sub {
    font-size: 16px;
    max-width: 100%;
  }
  .sec-hero--compact .sec-hero__image {
    display: none;
  }

  .rubric-filter {
    padding: 0 4px;
    gap: 6px;
  }
  .rubric-filter__tab {
    font-size: 13px;
    padding: 6px 12px;
  }

  .feed-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 4px;
  }

  .feed-card__body {
    padding: 12px;
  }
  .feed-card__title {
    font-size: 16px;
  }

  .pagination {
    padding: 24px 4px 16px;
    gap: 4px;
  }
  .pagination__arrow {
    font-size: 13px;
    padding: 6px 10px;
  }
  .pagination__page {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════════════
   INDEX-PAGE STYLES (moved from index.php inline)
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   INDEX-SPECIFIC STYLES (header — see index.css)
   ═══════════════════════════════════════════════ */
:root {
  --bg: #EFEAE2;
  --surface: #ffffff;
  --border: #E4E0D9;
  --text: #1D1D1D;
  --text-muted: rgba(29, 29, 29, 0.55);
  --accent: #F76230;
  --accent-hover: #e5551a;
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══════════════════════════════════════════════
   HERO — Figma: Surface-2 bg, 32px radius, ellipse
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  background: #E4DACA;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 1143px;
  height: 1014px;
  right: -200px;
  top: -368px;
  opacity: 0.30;
  background: radial-gradient(ellipse 81.97% 81.97% at 59.53% 39.80%, #FF8C20 0%, rgba(228, 218, 202, 0) 100%);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: self-end;
}
.hero__left {
  max-width: 660px;
  padding: 60px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__badge {
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: rgba(29, 29, 29, 0.70);
  line-height: 1.4;
  width: fit-content;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 52.8px;
  color: #1D1D1D;
  margin: 0;
  letter-spacing: normal;
}
.hero p {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #1D1D1D;
  margin: 0;
}
.hero__right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero__img {
  max-width: 680px;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════ */
.products-section {
  background: white;
  border-radius: 32px;
  padding: 100px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.products-header {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.products-header__ellipse {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products-header__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.products-header__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #EFEAE2;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(29, 29, 29, 0.70);
  line-height: 18.2px;
  width: fit-content;
}
.products-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 35.2px;
  color: #1D1D1D;
  margin: 0;
  align-self: stretch;
}
.products-header__subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 22.4px;
  color: #1D1D1D;
  margin: 0;
  align-self: stretch;
}
.products-row {
  width: 100%;
  max-width: 1170px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.product-card {
  flex: 1 1 280px;
  min-width: 260px;
  max-width: calc(33.333% - 14px);
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  opacity: 0.85;
}
.product-card__img-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  background: rgba(0, 0, 0, 0.20);
  border-radius: 16px;
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__body {
  padding: 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__tag {
  color: var(--primary, #F76230);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}
.product-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #282828;
}
.product-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: rgba(29, 29, 29, 0.70);
}

/* ═══════════════════════════════════════════════
   WHO — личный подход
   ═══════════════════════════════════════════════ */
.who-section {
  background: var(--Surface-1, #fff);
  border-radius: 32px;
  padding: 100px 60px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.who-section__ellipse {
  width: 646px;
  height: 395px;
  position: absolute;
  left: 65px;
  top: -177px;
  transform: rotate(26deg);
  opacity: 0.20;
  background: linear-gradient(180deg, #FF5252 0%, #FFDA09 100%);
  box-shadow: 200px 200px 200px rgba(0,0,0,0.15);
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.who-section__inner {
  width: 100%;
  max-width: 1170px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

/* Карточка с фото */
.who-card {
  width: 100%;
  max-width: 956px;
  background: var(--Surface-5, #EFEAE2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}
.who-card__img {
  width: 270px;
  height: 270px;
  object-fit: cover;
  flex-shrink: 0;
}
.who-card__body {
  flex: 1 1 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.who-card__text {
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

/* Три колонки */
.who-features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.who-feat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.who-feat__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  background: #EFEAE2;
  border-radius: 9999px;
  color: var(--foreground, #1D1D1D);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.who-feat__title {
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
.who-feat__desc {
  color: var(--muted-foreground, rgba(29, 29, 29, 0.70));
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   Vibecode Section
   ═══════════════════════════════════════════════ */
.vibecode-section {
  background: var(--Surface-2, #E4DACA);
  border-radius: 32px;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vibecode-container {
  width: 100%;
  max-width: 1170px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  outline: 1px solid var(--Surface-2, #E4DACA);
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 0 20px;
  box-sizing: border-box;
}
.vibecode-decor {
  position: absolute;
  left: 12px;
  top: 10px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.vibecode-decor svg {
  display: block;
  width: 100%;
  height: auto;
}
.vibecode-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.vibecode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--muted, #EFEAE2);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground, rgba(29, 29, 29, 0.70));
  line-height: 18.2px;
}
.vibecode-title {
  align-self: stretch;
  text-align: center;
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 35.2px;
  margin: 0;
}
.vibecode-subtitle {
  align-self: stretch;
  text-align: center;
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  margin: 0;
}
.vibecode-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  display: flex;
  gap: 12px;
}
.vibecode-cards {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.vibecode-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vibecode-card__text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.vibecode-card__title {
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 35.2px;
  margin: 0;
}
.vibecode-card__desc {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  margin: 0;
}
.vibecode-card__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  position: relative;
  top: 2px;
}
.vibecode-featured {
  flex: 1 1 0;
  background: linear-gradient(180deg, #ffedd3 0%, white 100%);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.vibecode-featured__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vibecode-featured__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vibecode-featured__title {
  flex: 1 1 0;
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 35.2px;
  margin: 0;
  min-width: 0;
}
.vibecode-featured__item:first-child .vibecode-featured__title {
  color: var(--Surface-4, #23211F);
}
.vibecode-featured__img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.vibecode-featured__desc {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  margin: 0;
}
.vibecode-featured__desc strong {
  font-weight: 700;
}
.vibecode-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--foreground, #1D1D1D);
  color: var(--primary-foreground, white);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  border-radius: 99px;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.2s;
}
.vibecode-cta:hover {
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #d46128);
  color: #fff;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(247, 98, 48, .35);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; line-height: 1.2; }
  .hero p { font-size: 16px; line-height: 1.45; }
  .hero { padding: 60px 20px; border-radius: 24px; }
  .hero__inner { flex-direction: column; }
  .hero__img { max-width: 100%; }
  .product-card { max-width: 100%; flex: 1 1 100%; }
  .products-section { padding: 60px 20px; border-radius: 24px; }
  .products-section h2 { font-size: 24px; line-height: 1.3; }
  .who-section { padding: 48px 20px; border-radius: 24px; }
  .who-section__ellipse { display: none; }
  .who-section__inner { gap: 48px; }
  .who-card { flex-direction: column; align-items: stretch; padding-right: 0; }
  .who-card__img { width: 100%; height: 220px; }
  .who-card__body { padding: 24px; }
  .who-card__text { font-size: 22px; }
  .who-features { grid-template-columns: 1fr; gap: 32px; }
  .who-feat__title { font-size: 24px; }
  .stat-item { min-width: 100px; padding: 12px 16px; }
  .stat-item__value { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero__badge { font-size: 13px; padding: 10px 14px; }
  .hero { padding: 48px 16px; border-radius: 20px; }
  .hero p { font-size: 15px; }
  .hero__inner { flex-direction: column; }
  .hero__img { max-width: 100%; }
  .who-section { padding: 36px 16px; border-radius: 20px; }
  .who-card__text { font-size: 18px; }
  .who-feat__title { font-size: 22px; }
  .who-feat__desc { font-size: 15px; }
}

/* ═══════════════════════════════════════════════
   POST SCREENSHOTS — click‑to‑enlarge (CSS‑only lightbox)
   ═══════════════════════════════════════════════ */
.post-screenshot {
  margin: 32px 0;
  position: relative;
}

.post-screenshot__thumb {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  cursor: zoom-in;
  transition: transform .25s, box-shadow .25s;
}

.post-screenshot__thumb:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 28px rgba(0,0,0,.14);
}

.post-screenshot__zoom {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 8px;
}

/* ── Overlay (hidden until :target) ── */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 32px;
}

.screenshot-lightbox:target {
  display: flex;
}

.screenshot-lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  z-index: 1;
  opacity: .65;
  transition: opacity .2s;
}

.screenshot-lightbox__close:hover {
  opacity: 1;
}

.screenshot-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 12px 56px rgba(0,0,0,.55);
  object-fit: contain;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .screenshot-lightbox {
    padding: 16px;
  }
  .screenshot-lightbox img {
    max-width: 96vw;
    max-height: 80vh;
  }
  .screenshot-lightbox__close {
    top: 12px;
    right: 16px;
    font-size: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════
   HELP MODAL
   ══════════════════════════════════════════════════════════════ */
/* ── Help Modal (Персональная помощь) ── */
.help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.help-modal {
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ── Left block ── */
.help-modal__left {
  width: 340px;
  min-width: 340px;
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.help-modal__title {
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  align-self: stretch;
  word-wrap: break-word;
}

.help-modal__text {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  align-self: stretch;
  word-wrap: break-word;
}

.help-modal__divider {
  align-self: stretch;
  height: 0;
  outline: 1px solid var(--accent, #EFEAE2);
  outline-offset: -0.5px;
}

.help-modal__price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  align-self: stretch;
}

.help-modal__price-label {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
}

.help-modal__price-value {
  color: var(--foreground, #1D1D1D);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

/* Button */
.help-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 52px;
  background: #1D1D1D;
  border-radius: 99px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.help-modal__btn:hover {
  background: #333;
}

/* Note */
.help-modal__note {
  color: var(--muted-foreground, rgba(29, 29, 29, 0.70));
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  align-self: stretch;
  word-wrap: break-word;
}

/* ── Right block ── */
.help-modal__right {
  width: 340px;
  min-width: 340px;
  background: #DDD2BF;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.help-modal__right-img {
  width: 340px;
  height: 434px;
  object-fit: cover;
  display: block;
}

.help-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.2s;
  z-index: 2;
}

.help-modal__close:hover {
  background: #f5f0ed;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .help-modal-overlay {
    padding: 16px;
  }

  .help-modal {
    flex-direction: column;
    border-radius: 0;
    max-width: 340px;
  }

  .help-modal__left {
    width: 100%;
    min-width: unset;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    gap: 14px;
  }

  .help-modal__title {
    font-size: 24px;
  }

  .help-modal__text {
    font-size: 14px;
  }

  .help-modal__btn {
    font-size: 18px;
  }

  .help-modal__right {
    width: 100%;
    min-width: unset;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
  }

  .help-modal__right-img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .help-modal__close {
    top: 12px;
    right: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   about.php — Примеры результатов / Топ 3 инструкций
   ═══════════════════════════════════════════════════════════════ */

.about-ru-example__img img,
.about-see-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   about.php — О проекте
   ═══════════════════════════════════════════════════════════════ */

/* ═══ ABOUT HERO ═══ */
.about-hero {
    background: var(--Surface-4, #23211F);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.about-hero__inner {
    width: 100%;
    max-width: 1170px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
}
.about-hero__text {
    width: 661px;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    order: 1;
}
.about-hero__img {
    order: 2;
}
.about-hero__heading {
    color: var(--foreground-white, white);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}
.about-hero__sub {
    color: var(--foreground-white, white);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}
.about-hero__img {
    width: 390px;
    height: 390px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ═══ РОССИЙСКИЕ ИИ ═══ */
.about-ru-ai {
    background: var(--Surface-1, white);
    border-radius: 32px;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about-ru-ai__inner {
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}
.about-ru-ai__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.about-ru-ai__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--Surface-5, #EFEAE2);
    border-radius: 99px;
    color: var(--muted-foreground, rgba(29,29,29,0.70));
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}
.about-ru-ai__heading {
    color: var(--foreground, #1D1D1D);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    max-width: 827px;
}
.about-ru-ai__desc {
    color: var(--foreground, #1D1D1D);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    max-width: 827px;
}

/* Карточка результатов */
.about-ru-ai__card {
    position: relative;
    background: var(--accent-2, #E3EFE2);
    border-radius: 24px;
    overflow: hidden;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.about-ru-ai__coin {
    position: absolute;
    top: 117px;
    width: 255px;
    height: 214px;
    pointer-events: none;
}
.about-ru-ai__coin--left { left: 0; }
.about-ru-ai__coin--right { right: 0; }
.about-ru-ai__card-date {
    color: var(--foreground, #1D1D1D);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}
.about-ru-ai__stats {
    display: flex;
    gap: 40px;
}
.about-ru-ai__stat {
    width: 296px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.about-ru-ai__stat-value {
    color: var(--foreground, #1D1D1D);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.about-ru-ai__stat-label {
    color: var(--muted-foreground, rgba(29,29,29,0.70));
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

/* ═══ ПРИМЕРЫ РЕЗУЛЬТАТОВ (внутри ru-ai) ═══ */
.about-ru-ai__examples-heading {
    color: var(--foreground, #1D1D1D);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    margin: 0;
    white-space: pre-line;
}
.about-ru-ai__examples-grid {
    display: flex;
    gap: 20px;
}
.about-ru-example {
    flex: 1 1 0;
    background: white;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}
.about-ru-example__img {
    height: 200px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.about-ru-example__title {
    color: var(--secondary, #1D1D1D);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.about-ru-example__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.about-ru-example__desc {
    color: var(--primary, #F76230);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}
.about-ru-example__desc--muted {
    color: var(--muted-foreground, rgba(29,29,29,0.70));
}

/* ═══ ТОП 3 ИНСТРУКЦИЙ (see-product) ═══ */
.about-see {
    background: var(--Surface-1, white);
    border-radius: 32px;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about-see__inner {
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}
.about-see__header {
    width: 680px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.about-see__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--Surface-5, #EFEAE2);
    border-radius: 99px;
    color: var(--muted-foreground, rgba(29,29,29,0.70));
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}
.about-see__heading {
    color: var(--foreground, #1D1D1D);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}
.about-see__sub {
    color: var(--foreground, #1D1D1D);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}
.about-see__grid {
    display: flex;
    gap: 20px;
    align-self: stretch;
}
.about-see-card {
    flex: 1 1 0;
    background: white;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.about-see-card:hover .about-see-card__title {
    color: var(--primary, #F76230);
}
.about-see-card__img {
    height: 200px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 16px;
}
.about-see-card__body {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-see-card__tags {
    display: flex;
    gap: 8px;
}
.about-see-card__tag {
    color: var(--primary, #F76230);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}
.about-see-card__title {
    color: var(--text-primary, #282828);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.about-see-card__desc {
    color: var(--muted-foreground, rgba(29,29,29,0.70));
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

/* ═══ ABOUT RESPONSIVE ═══ */
@media (max-width: 768px) {
    .about-hero__inner { flex-direction: column; }
    .about-hero__text { order: 0; width: 100%; padding: 48px 20px 24px; }
    .about-hero__heading { font-size: 32px; }
    .about-hero__sub { font-size: 16px; }
    .about-hero__img { order: 0; width: 100%; height: auto; max-height: 300px; }
    .about-ru-ai { padding: 48px 20px; border-radius: 24px; }
    .about-ru-ai__inner { gap: 48px; }
    .about-ru-ai__heading { font-size: 24px; }
    .about-ru-ai__desc { font-size: 16px; }
    .about-ru-ai__card { padding: 40px 20px; }
    .about-ru-ai__coin { display: none; }
    .about-ru-ai__stats { flex-direction: column; gap: 24px; }
    .about-ru-ai__stat { width: 100%; }
    .about-ru-ai__stat-value { font-size: 32px; }
    .about-ru-ai__examples-grid { flex-direction: column; }
    .about-ru-ai__examples-heading { font-size: 24px; }
    .about-see { padding: 60px 20px; border-radius: 24px; }
    .about-see__grid { flex-direction: column; }
    .about-see__inner { gap: 60px; }
    .about-see__heading { font-size: 24px; }
}
@media (max-width: 480px) {
    .about-hero__text { padding: 36px 16px 20px; }
    .about-hero__heading { font-size: 26px; }
    .about-hero__sub { font-size: 15px; }
    .about-hero__img { max-height: 240px; }
    .about-ru-ai { padding: 36px 16px; border-radius: 20px; }
    .about-ru-ai__card-date { font-size: 16px; }
    .about-ru-ai__examples-heading { font-size: 20px; }
    .about-ru-example__img { height: 200px; }
    .about-see { padding: 40px 16px; border-radius: 20px; }
    .about-see__heading { font-size: 22px; }
    .about-see__inner { gap: 40px; }
    .about-see-card__img { height: 160px; }
}

/* ═══════════════════════════════════════════════════════════════
   cookies.php
   ═══════════════════════════════════════════════════════════════ */
.cookie-policy { max-width: 860px; margin: 40px auto 60px; padding: 40px 48px; background: #fff; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.02); }
.cookie-policy h1 { font-size: 28px; margin-bottom: 8px; }
.cookie-policy .updated { color: #888; font-size: 14px; margin-bottom: 32px; }
.cookie-policy h2 { font-size: 20px; margin: 32px 0 12px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.cookie-policy p, .cookie-policy li { font-size: 15px; line-height: 1.7; color: #444; }
.cookie-policy ul { padding-left: 20px; margin: 8px 0 16px; }
.cookie-policy li { margin-bottom: 6px; }
.cookie-policy table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.cookie-policy table th { background: #f5f5f5; text-align: left; padding: 10px 12px; font-weight: 600; }
.cookie-policy table td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.back-link { display: inline-block; margin-top: 40px; color: #4a6cf7; text-decoration: none; font-size: 15px; }
.back-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .cookie-policy { margin: 20px 12px 40px; padding: 24px 20px; border-radius: 16px; }
    .cookie-policy h1 { font-size: 22px; }
    .cookie-policy h2 { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════════
   bp.php
   ═══════════════════════════════════════════════════════════════ */
.bp-spinner { width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top-color: #2563eb; border-radius: 50%; animation: bp-spin 1s linear infinite; margin: 0 auto 20px; }

/* ═══════════════════════════════════════════════════════════════
   privacy.php
   ═══════════════════════════════════════════════════════════════ */
.privacy-wrapper { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.privacy-card { background: #ffffff; border-radius: 20px; padding: 48px 48px 56px; }
.privacy-card h1 { font-size: 28px; font-weight: 700; line-height: 1.25; color: #1D1D1D; margin: 0 0 8px; }
.privacy-card .effective { font-size: 14px; color: rgba(29, 29, 29, 0.55); margin: 0 0 36px; }
.privacy-card h2 { font-size: 20px; font-weight: 600; color: #1D1D1D; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid #E4E0D9; }
.privacy-card h3 { font-size: 16px; font-weight: 600; color: #1D1D1D; margin: 28px 0 10px; }
.privacy-card p, .privacy-card li { font-size: 15px; line-height: 1.75; color: rgba(29, 29, 29, 0.78); margin: 0 0 12px; }
.privacy-card ul, .privacy-card ol { padding-left: 22px; margin: 0 0 20px; }
.privacy-card li { margin-bottom: 6px; }
.privacy-card a { color: #F76230; text-decoration: none; }
.privacy-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.privacy-card strong { font-weight: 600; color: #1D1D1D; }
.privacy-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.privacy-table th, .privacy-table td { border: 1px solid #E4E0D9; padding: 12px 16px; text-align: left; vertical-align: top; }
.privacy-table th { background: #EFEAE2; font-weight: 600; font-size: 13px; color: #1D1D1D; text-transform: uppercase; letter-spacing: .5px; }
.privacy-table td { color: rgba(29, 29, 29, 0.78); }
.privacy-table.rekv td:first-child { font-weight: 600; color: #1D1D1D; white-space: nowrap; width: 200px; }
.privacy-highlight { background: #FFF7F0; border-left: 4px solid #F76230; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 28px 0; font-size: 14px; color: rgba(29, 29, 29, 0.78); line-height: 1.65; }
.privacy-highlight strong { color: #1D1D1D; }
.privacy-toc { background: #F8F7F5; border-radius: 16px; padding: 24px 28px; margin: 0 0 40px; }
.privacy-toc h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; padding: 0; border: none; color: #1D1D1D; }
.privacy-toc ol { list-style: decimal; padding-left: 20px; margin: 0; }
.privacy-toc li { font-size: 14px; margin-bottom: 8px; }
.privacy-toc a { color: rgba(29, 29, 29, 0.70); text-decoration: none; }
.privacy-toc a:hover { color: #F76230; text-decoration: underline; }
@media (max-width: 600px) {
    .privacy-wrapper { padding: 16px 8px 48px; }
    .privacy-card { padding: 32px 20px 40px; border-radius: 16px; }
    .privacy-card h1 { font-size: 24px; }
    .privacy-card h2 { font-size: 18px; margin-top: 36px; }
    .privacy-table.rekv td:first-child { width: auto; white-space: normal; }
}

/* ═══════════════════════════════════════════════════════════════
   product.php
   ═══════════════════════════════════════════════════════════════ */
.scr-figure { margin: 24px 0; }
.scr-box { aspect-ratio: 2/1; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.15s; }
.scr-box:hover { opacity: 0.92; }
.scr-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.scr-figure figcaption { font-size: 14px; color: var(--muted-foreground, #6b7280); margin-top: 8px; line-height: 1.4; text-align: center; }
.product-rec-cards { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.product-rec-card { display: flex; align-items: center; gap: 16px; background: #f5f0e8; border-radius: 12px; padding: 18px 22px; text-decoration: none; }

.product-rec-card .scr-figure { margin: 0; flex-shrink: 0; }
.product-rec-card .scr-figure figcaption { display: none; }
.product-rec-card .scr-box { aspect-ratio: 3/1.5; width: 160px; height: auto; border: none; border-radius: 10px; }
.product-rec-card .scr-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.product-rec-card__img { width: 160px; height: auto; aspect-ratio: 3/1.5; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.product-rec-card__title { color: var(--primary, #F76230); font-weight: 600; font-size: 15px; line-height: 1.4; min-width: 0; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.scr-lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; cursor: pointer; }
.scr-lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.scr-lightbox-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.scr-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.ai-box { cursor: pointer; transition: opacity 0.15s; }
.ai-box:hover { opacity: 0.92; }
.ai-box img { display: block; max-width: 100%; height: auto; border-radius: 12px; }

@media (max-width: 768px) {
  .ai-figure { margin: 24px 0; }
}

/* ═══════════════════════════════════════════════════════════════
   services.php
   ═══════════════════════════════════════════════════════════════ */

.services-page { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }

/* ── Header ── */
.services-header { margin-bottom: 64px; }
.services-header__text { max-width: 720px; margin: 0 auto; text-align: center; }
.services-header__title { font-size: 48px; font-weight: 800; color: #000; margin: 0 0 20px; line-height: 1.1; }
.services-header__desc { font-size: 18px; color: #666; line-height: 1.6; margin: 0; }

/* ── Grid ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }

/* ── Card ── */
.service-card { background: #ffffff; border-radius: 20px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.04); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.08); transform: translateY(-2px); }

.service-card__top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.service-card__icon { flex-shrink: 0; line-height: 0; }
.service-card__icon img { display: block; }

.service-card__info { flex: 1; min-width: 0; }
.service-card__title { font-size: 20px; font-weight: 700; color: #1d1d1d; margin: 0 0 4px; line-height: 1.3; }
.service-card__sub { font-size: 14px; color: #999; margin: 0; line-height: 1.3; }

.service-card__desc { font-size: 14px; color: #666; line-height: 1.6; margin: 0 0 20px; flex: 1; }

.service-card__btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary, #F76230);
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    transition: opacity 0.15s;
}
.service-card__btn:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════
   view-plan.php
   ═══════════════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
.plan-tab.active { background: #1B1B1B; color: #fff; border-color: #1B1B1B; }
/* ═══ dashboard.php ═══ */
:root { --sidebar-w: 260px; }
.dash-nav a.active { background: var(--muted, #EFEAE2); color: var(--primary, #F76230); font-weight: 600; }
.dash-nav a.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--primary, #F76230); border-radius: 0 3px 3px 0; }
.dash-nav a.active .dash-nav-icon { opacity: 1; }
.dash-input { width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--input, #E4E0D9); border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--surface-1, #fff); color: var(--foreground); transition: border-color 0.15s; }
.dash-input:focus { outline: none; border-color: var(--primary, #F76230); }
.dash-input:disabled { background: var(--muted); color: var(--muted-foreground); }
.dash-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; font-family: inherit; border: none; border-radius: 12px; cursor: pointer; transition: background 0.15s, opacity 0.15s; text-decoration: none; }
.dash-btn-primary { background: var(--primary, #F76230); color: #fff; }
.dash-btn-primary:hover { opacity: 0.9; }
.dash-gen-result.show { display: block; }

@media (max-width: 600px) {
    .dash-pricing-header h2 { font-size: 20px; }
    .dash-sub-cards { flex-direction: row; flex-wrap: nowrap; gap: 12px; margin-top: 20px; overflow-x: scroll; overflow-y: visible; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
    .dash-sub-cards::-webkit-scrollbar { display: none; }
    .dash-sub-card { flex: 0 0 calc(85vw - 32px); min-width: 0; max-width: 320px; scroll-snap-align: start; }
    .dash-period-badge { top: -8px; right: -8px; height: 18px; padding: 2px 7px; font-size: 10px; line-height: 14px; }
    .dash-home-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .dash-home-card { padding: 18px; gap: 8px; }
    .dash-home-card__title { font-size: 14px; }
    .dash-home-card__desc { font-size: 12px; }
}
/* ═══════════════════════════════════════════════════════════════
   ГЛОБАЛЬНЫЙ ОВЕРРАЙД МОБИЛЬНЫХ СЕКЦИЙ
   border-radius: 12px | padding: 24px — единый стиль для всех страниц
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* homepage */
  .hero,
  .products-section,
  .sec-ai-cat {
    border-radius: 12px;
  }
  .products-section,
  .sec-ai-cat {
    padding: 24px;
  }

  /* about */
  .about-hero,
  .about-ru-ai,
  .about-see {
    border-radius: 12px;
  }
  .about-ru-ai,
  .about-see {
    padding: 24px;
  }

  /* posts / product / tag */
  .post-page,
  .post-sheet {
    border-radius: 12px;
  }

  /* services */
  .services-page { padding: 40px 16px; }
  .services-header { margin-bottom: 40px; }
  .services-header__title { font-size: 28px; }
  .services-header__desc { font-size: 15px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-radius: 12px; padding: 24px; }

  /* premium */
  .pricing-card {
    border-radius: 12px;
    padding: 24px;
  }

  /* tag page cards */
  .tag-post-card {
    border-radius: 12px;
    padding: 24px;
  }

  /* bp */
  .bp-card {
    border-radius: 12px;
    padding: 24px;
  }

  /* cookie / privacy */
  .cookie-policy {
    border-radius: 12px;
    padding: 24px;
  }

  /* ci input card */
  .ci-input-card {
    border-radius: 12px;
  }

  /* about-ru-ai card */
  .about-ru-ai__card {
    border-radius: 12px;
    padding: 24px;
  }
}

@media (max-width: 900px) {
    .dash-sidebar { position: fixed; left: -280px; top: 0; bottom: 0; transition: left 0.3s; z-index: 60; box-shadow: none; }
    .dash-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,0.15); }
    .dash-sidebar-overlay.show { display: block; }
    .dash-burger { display: inline-flex; }
    .dash-content { padding: 20px 16px; }
    .dash-content-inner { max-width: 100%; }
    .dash-fav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .dash-card { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   tag.php
   ═══════════════════════════════════════════════════════════════ */
.tag-header { margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════════
   view-plan.php
   ═══════════════════════════════════════════════════════════════ */
.plan-header-back { margin-bottom: 12px; display: inline-block; }
.plan-spinner { width: 40px; height: 40px; border: 4px solid #EFEAE2; border-top-color: #1B1B1B; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }

/* ═══════════════════════════════════════════════════════════════
   post.php — B2C metrics section
   ═══════════════════════════════════════════════════════════════ */
.post-sheet__header { margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   index.php — products header
   ═══════════════════════════════════════════════════════════════ */
.products-header__avatar-wrap { display: inline-flex; align-items: center; gap: 8px; }
.products-header__badge svg { vertical-align: middle; margin-right: 6px; flex-shrink: 0; }
.products-section { padding-top: 100px; }

/* ═══════════════════════════════════════════════════════════════
   product.php
   ═══════════════════════════════════════════════════════════════ */
.product-card__tag { text-decoration: none; cursor: pointer; }
.post-content--product { color: var(--muteforeground); font-size: 16px; padding: 40px 0; }

/* ═══════════════════════════════════════════════════════════════
   premium.php
   ═══════════════════════════════════════════════════════════════ */
.sec-faq__answer[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   index.php — products header
   ═══════════════════════════════════════════════════════════════ */
.products-header__ellipse { width: 56px; height: 56px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   bp.php — code block & footer
   ═══════════════════════════════════════════════════════════════ */
.bp-code-block { display: block; background: #f1f5f9; padding: 10px; border-radius: 6px; margin: 10px 0; }

/* ═══════════════════════════════════════════════════════════════
   dashboard.php — stats & profile
   ═══════════════════════════════════════════════════════════════ */
.dash-profile-stat { margin-left: 12px; font-size: 13px; }

/* ============================================
   Simplified Dashboard (dashboard.php v2)
   ============================================ */

.dash-simple {
    max-width: 640px;
    margin: 40px auto 40px;
    padding: 0 20px;
    min-height: 60vh;
}

.dash-simple-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border, #e0e0e0);
    padding: 28px 32px;
    margin-bottom: 20px;
}

/* ── Profile card ── */

.dash-simple-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-simple-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #F0F0F0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-simple-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-simple-info {
    min-width: 0;
}

.dash-simple-name {
    font-size: 20px;
    font-weight: 700;
    color: #1B1B1B;
    line-height: 1.3;
    word-break: break-word;
}

.dash-simple-meta {
    font-size: 14px;
    color: var(--muted-foreground, #8C8C8C);
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dash-simple-sep {
    color: var(--border, #e0e0e0);
}

/* ── Card title ── */

.dash-simple-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B1B1B;
    margin: 0 0 20px;
}

/* ── Key display (if purchased) ── */

.dash-key-info p {
    font-size: 15px;
    color: #333;
    margin: 0 0 16px;
    line-height: 1.6;
}

.dash-key-info a {
    color: var(--primary, #F76230);
    text-decoration: none;
    font-weight: 600;
}

.dash-key-info a:hover {
    text-decoration: underline;
}

.dash-key-code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #1B1B1B;
    background: #F5F5F5;
    border: 1px dashed var(--border, #e0e0e0);
    border-radius: 10px;
    padding: 14px 20px;
    text-align: center;
    letter-spacing: 2px;
    word-break: break-all;
    margin-bottom: 14px;
}

.dash-key-meta {
    font-size: 13px;
    color: var(--muted-foreground, #8C8C8C);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Key buy block ── */

.dash-key-buy p {
    font-size: 15px;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.6;
}

.dash-key-buy a {
    color: var(--primary, #F76230);
    text-decoration: none;
    font-weight: 600;
}

.dash-key-buy a:hover {
    text-decoration: underline;
}

.dash-key-price {
    font-size: 18px !important;
    color: #1B1B1B !important;
    margin: 16px 0 !important;
}

.dash-key-price strong {
    color: var(--primary, #F76230);
    font-weight: 700;
}

.dash-key-form {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.dash-key-form .dash-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.dash-key-form .dash-input:focus {
    border-color: var(--primary, #F76230);
}

.dash-key-form .dash-btn {
    flex-shrink: 0;
}

#keyEmailMsg {
    font-size: 13px;
    width: 100%;
}

/* ── Shared button styles ── */

.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
}

.dash-btn-primary {
    background: var(--primary, #F76230);
    color: #fff;
}

.dash-btn-primary:hover {
    opacity: 0.9;
}

/* ── Delete button ── */

.dash-simple-delete {
    text-align: center;
    padding: 8px 0 40px;
}

.dash-btn-delete {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.dash-btn-delete:hover {
    color: #C44;
    background: rgba(204, 68, 68, 0.06);
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .dash-simple {
        padding: 0 16px;
        margin: 24px auto 24px;
    }

    .dash-simple-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .dash-simple-profile {
        gap: 16px;
    }

    .dash-simple-avatar {
        width: 56px;
        height: 56px;
    }

    .dash-simple-name {
        font-size: 18px;
    }

    .dash-key-code {
        font-size: 18px;
        padding: 12px 16px;
        letter-spacing: 1px;
    }

    .dash-key-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Consult Banner ── */
.consult-section {
  background: #fff;
  padding: 60px 0;
  border-radius: 32px;
}

.consult-banner {
  background: #E4DACA;
  padding: 24px;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.consult-banner__img {
  flex-shrink: 0;
  border-radius: 12px;
}

.consult-banner__text {
  font-size: 18px;
  font-weight: 600;
  color: #2d2d2d;
  flex: 1;
}

/* ── YandexART Examples Gallery ── */
.art-examples {
  margin: 0 0 32px;
}

.art-examples__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 32px 0;
}

.art-examples__item {
  text-align: center;
}

.art-examples__item .ai-box {
  margin: 0;
}

.art-examples__item .scr-box {
  margin: 0;
  aspect-ratio: auto;
  border: 0px solid;
}

.art-examples__item .scr-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.art-examples__item img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.art-examples__item .scr-figure > figcaption {
  display: none;
}

.art-examples__label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-top: 12px;
}

.ai-style-desc {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--muted-foreground, #6b7280);
    line-height: 1.5;
    text-align: left;
}
.ai-style-desc strong {
  display: block;
  margin-bottom: 4px;
  color: var(--foreground, #1a1a1a);
  font-size: 14px;
}

@media (max-width: 480px) {
  .art-examples__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Consultation (payment page)
   ═══════════════════════════════════════════════════════════════ */

.consult-page {
  background: #EFEAE2 !important;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.consult-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

.consult-logo {
  margin-bottom: 32px;
}

.consult-card {
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  max-width: 680px;
  width: 100%;
}

/* Left block */
.consult-left {
  width: 340px;
  min-width: 340px;
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* Badge */
.consult-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 16px;
  border-radius: 99px;
  outline: 1px solid #EFEAE2;
  outline-offset: -1px;
  color: var(--muted-foreground, rgba(29,29,29,0.70));
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  width: fit-content;
  box-sizing: border-box;
}

.consult-title {
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.consult-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consult-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consult-check-item img {
  flex-shrink: 0;
  margin-top: 2px;
}

.consult-check-text {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.consult-info {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* Email input */
.consult-email-wrap {
  position: relative;
}

.consult-email-input {
  width: 100%;
  height: 52px;
  padding: 0 32px;
  background: #fff;
  border: none;
  outline: 1px solid #E4DACA;
  outline-offset: -1px;
  border-radius: 99px;
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  font-family: inherit;
  box-sizing: border-box;
  transition: outline-color 0.2s;
}

.consult-email-input::placeholder {
  color: var(--muted-foreground, rgba(29,29,29,0.70));
}

.consult-email-input:focus {
  outline: 2px solid #1D1D1D;
  outline-offset: -2px;
}

.consult-email-error {
  display: none;
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  padding-left: 32px;
}

/* Divider */
.consult-divider {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  outline: 1px #EFEAE2 solid;
  outline-offset: -0.50px;
}

/* Price row */
.consult-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.consult-price-label {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
}

.consult-price-value {
  color: var(--foreground, #1D1D1D);
  font-size: 24px;
  font-weight: 700;
}

/* Pay button */
.consult-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 99px;
  background: #1D1D1D;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.consult-btn:hover:not(:disabled) {
  background: #333333;
}

.consult-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Security badge */
.consult-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 1px;
}

.consult-security-text {
  opacity: 0.5;
  color: var(--muted-foreground, rgba(29,29,29,0.70));
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

/* Pay error/status */
.consult-pay-error {
  display: none;
  color: #e74c3c;
  font-size: 14px;
  text-align: center;
  margin: 0;
}

.consult-pay-status {
  display: none;
  color: var(--muted-foreground, rgba(29,29,29,0.70));
  font-size: 14px;
  text-align: center;
  margin: 0;
}

/* Right block */
.consult-right {
  width: 340px;
  min-width: 340px;
  background: #DDD2BF;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.consult-right-logo {
  padding: 24px;
  display: flex;
  justify-content: flex-end;
}

.consult-right-img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

/* Error banner */
.consult-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md, 16px);
  padding: 16px 20px;
  max-width: 680px;
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════
   Consultation Success (post-payment page)
   ═══════════════════════════════════════════════════════════════ */

.success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  gap: 24px;
  box-sizing: border-box;
}

.success-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-card {
  width: 440px;
  max-width: 100%;
  padding: 24px;
  background: #FFFFFF;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.success-check {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check img {
  width: 110px;
  height: 110px;
  display: block;
}

.success-title {
  color: var(--foreground, #1D1D1D);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin: 0;
  align-self: stretch;
}

.success-desc {
  color: var(--foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  margin: 0;
  align-self: stretch;
}

.success-key-wrap {
    height: 80px;
    padding: 0 24px;
    background: #efeae2;
    border-radius: 12px;
    outline-offset: -2px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

.success-key {
  flex: 1;
  color: var(--foreground, #1D1D1D);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

.success-copy-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #FFFFFF;
  border: none;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.success-copy-btn:hover {
  background: #E4DACA;
}

.success-copy-btn:active {
  transform: scale(0.92);
}

.success-copy-btn.copied {
  background: #DCFCE7;
}

.success-copy-hint {
  color: var(--muted-foreground, rgba(29, 29, 29, 0.70));
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.success-socials {
  display: flex;
  gap: 8px;
}

.success-social-btn {
  height: 40px;
  padding: 0 20px;
  background: #EFEAE2;
  border-radius: 99px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--secondary-foreground, #1D1D1D);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  transition: background 0.2s;
}

.success-social-btn:hover {
  background: #E4DACA;
}

.success-social-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.success-home-link {
  color: var(--muted-foreground, rgba(29, 29, 29, 0.70));
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}

.success-home-link:hover {
  opacity: 0.7;
}

.success-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1D1D1D;
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.success-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   Consultation shared mobile
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .consult-wrapper {
    padding: 24px 16px;
    min-height: auto;
  }

  .consult-logo {
    margin-bottom: 24px;
  }

  .consult-card {
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
    max-width: 340px;
    gap: 16px;
  }

  .consult-left {
    width: 100%;
    min-width: unset;
    border-radius: 24px;
  }

  .consult-right {
    width: 100%;
    min-width: unset;
    border-radius: 24px;
    overflow: hidden;
  }

  .consult-right-logo {
    padding: 20px;
  }

  .consult-right-img {
    min-height: 250px;
  }

  .consult-title {
    font-size: 24px;
  }

  .consult-btn {
    font-size: 18px;
  }

  .success-wrapper {
    padding: 24px 16px;
    min-height: 100dvh;
    gap: 20px;
  }

  .success-card {
    width: 100%;
    padding: 20px;
    gap: 14px;
  }

  .success-title {
    font-size: 24px;
  }

  .success-desc {
    font-size: 15px;
  }

  .success-key-wrap {
    height: 72px;
    padding: 0 20px;
  }

  .success-key {
    font-size: 20px;
  }

  .success-socials {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Vibecode Mobile
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1169px) {
  .vibecode-section {
    padding: 60px 0;
    border-radius: 24px;
  }
  .vibecode-container {
    gap: 40px;
    padding: 0 16px;
  }
  .vibecode-header {
    max-width: 100%;
    gap: 16px;
  }
  .vibecode-title {
    font-size: 26px;
    line-height: 30px;
  }
  .vibecode-grid {
    max-width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .vibecode-card__title {
    font-size: 26px;
    line-height: 30px;
  }
  .vibecode-featured__title {
    font-size: 26px;
    line-height: 30px;
  }
}

@media (max-width: 768px) {
  .vibecode-section {
    padding: 40px 0;
    border-radius: 20px;
  }
  .vibecode-container {
    gap: 32px;
    padding: 0 12px;
    outline: none;
  }
  .vibecode-decor {
    display: none;
  }
  .vibecode-header {
    gap: 12px;
  }
  .vibecode-title {
    font-size: 22px;
    line-height: 27px;
  }
  .vibecode-subtitle {
    font-size: 15px;
    line-height: 21px;
  }
  .vibecode-badge {
    padding: 10px 14px;
    font-size: 13px;
  }
  .vibecode-grid {
    gap: 10px;
  }
  .vibecode-card {
    padding: 20px;
    flex-direction: column;
  }
  .vibecode-card__icon {
    align-self: flex-end;
    top: 0;
  }
  .vibecode-card__title {
    font-size: 22px;
    line-height: 27px;
  }
  .vibecode-card__desc {
    font-size: 15px;
    line-height: 21px;
  }
  .vibecode-featured {
    padding: 20px;
    gap: 20px;
  }
  .vibecode-featured__title {
    font-size: 22px;
    line-height: 27px;
  }
  .vibecode-featured__desc {
    font-size: 15px;
    line-height: 21px;
  }
  .vibecode-featured__img {
    width: 56px;
    height: 56px;
  }
  .vibecode-featured__header {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .vibecode-section {
    padding: 32px 0;
    border-radius: 16px;
  }
  .vibecode-container {
    gap: 24px;
    padding: 0 8px;
  }
  .vibecode-title {
    font-size: 20px;
    line-height: 25px;
  }
  .vibecode-card {
    padding: 16px;
  }
  .vibecode-card__title {
    font-size: 20px;
    line-height: 25px;
  }
  .vibecode-featured {
    padding: 16px;
    gap: 16px;
  }
  .vibecode-featured__title {
    font-size: 20px;
    line-height: 25px;
  }
  .vibecode-cta {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
