/* ============================================================================
   Стили статических (SSR) CMS-страниц AI.Desk. Правится из админки: /admin/page-styles.
   Разметку отдаёт бэкенд (CmsPageHtmlBuilder); здесь только оформление.
   Токены темы (--bg-primary, --text-primary, --bg-brand, --stroke-primary …)
   приходят из основного бандла и переключаются через <html data-theme="dark">.
   ============================================================================ */

/* --- Базовое --- */
.cms-body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-primary, #f9f9fa);
  color: var(--text-primary, #0b0b0b);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cms-body * { box-sizing: border-box; }

/* --- Шапка (как на сайте) --- */
.cms-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
}
.cms-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); }
.cms-logo img { width: 28px; height: 28px; display: block; }
.cms-logo span { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.cms-nav { display: none; align-items: center; gap: 24px; }
.cms-nav a { color: var(--text-primary); text-decoration: none; font-size: 15px; opacity: 0.9; }
.cms-nav a:hover { opacity: 0.6; }
.cms-actions { display: flex; align-items: center; gap: 8px; }
.cms-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--stroke-primary, #e6e6e6); background: var(--bg-secondary, #fff); color: var(--text-primary);
}
.cms-btn:hover { background: var(--bg-tertiary, #f0f0f0); }
.cms-btn--primary { background: var(--text-primary); color: var(--bg-primary); border-color: transparent; }
.cms-btn--primary:hover { opacity: 0.9; background: var(--text-primary); }
@media (min-width: 900px) { .cms-nav { display: flex; } }

/* --- Первый экран (hero): H1 + блок чата --- */
.cms-hero { padding: 56px 24px 24px; text-align: center; }
.cms-h1 {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(30px, 5vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
}
/* Контейнер, куда React монтирует поле чата (#cms-chat) */
#cms-chat { margin: 36px auto 0; max-width: 784px; width: 100%; }

/* --- Мобилка --- */
@media (max-width: 640px) {
  .cms-header { height: 60px; padding: 0 14px; gap: 12px; }
  .cms-logo span { font-size: 19px; }
  .cms-btn { height: 36px; padding: 0 12px; font-size: 14px; }
  .cms-hero { padding: 32px 14px 16px; }
  #cms-chat { margin-top: 24px; padding: 0 2px; }
  /* Поле чата не должно вылезать за экран и растягивать страницу вбок. */
  #cms-chat, #cms-chat * { max-width: 100%; }
}

/* --- Хлебные крошки (сдержанно) --- */
.cms-breadcrumb { margin: 40px auto 0; max-width: 760px; padding: 0 24px; }
.cms-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cms-breadcrumb li { display: inline-flex; align-items: center; font-size: 13px; color: var(--text-tertiary, #999); }
.cms-breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.cms-breadcrumb a { color: inherit; text-decoration: none; }
.cms-breadcrumb a:hover { color: var(--text-primary); }
.cms-breadcrumb li[aria-current] { color: var(--text-secondary, #666); }

/* --- Контент статьи (свободный HTML под чатом) --- */
.cms-content {
  margin: 24px auto 96px; max-width: 760px; padding: 0 24px;
  font-size: 18px; line-height: 1.7; color: var(--text-primary); word-wrap: break-word;
}
.cms-content h1 { font-size: 34px; font-weight: 600; line-height: 1.2; margin: 48px 0 18px; }
.cms-content h2 { font-size: 28px; font-weight: 600; line-height: 1.25; margin: 44px 0 16px; }
.cms-content h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 32px 0 12px; }
.cms-content h4 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.cms-content p { margin: 0 0 22px; }
.cms-content ul, .cms-content ol { margin: 0 0 22px; padding-left: 24px; }
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li { margin-bottom: 10px; }
.cms-content a { color: var(--bg-brand, #8437ff); text-decoration: underline; text-underline-offset: 2px; }
.cms-content b, .cms-content strong { font-weight: 600; }
.cms-content img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 24px 0; }
.cms-content figure { margin: 24px 0; }
.cms-content figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--text-tertiary); }
.cms-content blockquote {
  margin: 32px 0; padding: 16px 24px; border-left: 4px solid var(--bg-brand);
  background: var(--bg-secondary); border-radius: 8px; font-style: italic;
}
/* Блок кода — БЕЗ контейнера: оформляйте сами в своём HTML. Оставлен лишь горизонтальный
   скролл, чтобы длинные строки не растягивали страницу. */
.cms-content pre { overflow-x: auto; }
.cms-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.cms-content th, .cms-content td { border: 1px solid var(--stroke-primary); padding: 10px 14px; text-align: left; }
.cms-content th { background: var(--bg-secondary); font-weight: 600; }
.cms-content hr { border: none; border-top: 1px solid var(--stroke-primary); margin: 32px 0; }


/* КИРИЛЛ */



/* ─── DIVIDERS / SECTIONS ─── */
hr { border: none; border-top: 1px solid var(--border); }
.section-wrap { padding: 72px 24px; max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 10px;
}
.section-h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px;
}
.section-sub { font-size: 15px; color: var(--text2); margin-bottom: 40px; }

/* ─── PERKS (блок «Возможности») ─── */
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media(max-width:640px){ .perks-grid { grid-template-columns: repeat(2, 1fr); } }
.perk {
  background: var(--white); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.perk:first-child { border-radius: var(--radius) 0 0 0; }
.perk:nth-child(3) { border-radius: 0 var(--radius) 0 0; }
.perk:nth-child(4) { border-radius: 0 0 0 var(--radius); }
.perk:last-child { border-radius: 0 0 var(--radius) 0; }
.perk-icon { font-size: 24px; }
.perk-title { font-size: 15px; font-weight: 700; }
.perk-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }

/* ─── AI CATALOG (каталог всех нейросетей на /ai) ─── */
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(max-width:640px){ .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 22px 24px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-card:hover { border-color: var(--border2); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ai-card.featured { border-color: var(--black); }
.ai-card-top { display: flex; align-items: center; gap: 14px; }
.ai-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.ai-card-head { flex: 1; }
.ai-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.ai-vendor { font-size: 12px; color: var(--text3); margin-top: 1px; }
.ai-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-new { background: var(--purple-soft); color: var(--purple); }
.badge-fast { background: #fef3c7; color: #d97706; }
.badge-think { background: var(--green-soft); color: var(--green); }
.badge-free { background: var(--green-soft); color: var(--green); }
.ai-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }
.ai-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg); color: var(--text3);
  border: 1px solid var(--border); font-weight: 500;
}
.ai-card-foot { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }

/* ─── GPT VERSIONS / generic card grid ─── */
.gpt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(max-width:560px){ .gpt-grid { grid-template-columns: 1fr; } }
.gpt-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.gpt-card:hover { border-color: var(--border2); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.gpt-card.featured { border-color: var(--black); }
.gpt-card-top { display: flex; align-items: center; justify-content: space-between; }
.gpt-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.gpt-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}
.gpt-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }
.gpt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.gpt-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg); color: var(--text3);
  border: 1px solid var(--border); font-weight: 500;
}

/* ─── LANGUAGES (страницы /tasks/code/*) ─── */
.langs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media(max-width:700px){ .langs-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width:420px){ .langs-grid { grid-template-columns: repeat(3, 1fr); } }
.lang-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); padding: 16px 12px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: default; transition: border-color 0.18s, box-shadow 0.18s;
}
.lang-card:hover { border-color: var(--border2); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.lang-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; font-family: 'Courier New', monospace;
}
.lang-name { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; }
.lang-level { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 100px; text-align: center; }
.lvl-top { background: var(--green-soft); color: var(--green); }
.lvl-good { background: var(--blue-soft); color: var(--blue); }
.lvl-ok { background: #f5f5f5; color: var(--text3); border: 1px solid var(--border); }

/* ─── PROMPT TEMPLATES (готовые промпты) ─── */
.prompt-cards { display: flex; flex-direction: column; gap: 10px; }
.prompt-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 22px;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: flex-start; gap: 16px;
}
.prompt-card:hover { border-color: var(--black); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.pc-lang {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 8px; background: var(--bg);
  border: 1px solid var(--border); color: var(--text3);
  white-space: nowrap; flex-shrink: 0; margin-top: 1px;
  font-family: 'Courier New', monospace;
}
.pc-body { flex: 1; }
.pc-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pc-prompt { font-size: 13px; color: var(--text2); line-height: 1.5; font-style: italic; }
.pc-copy {
  font-size: 12px; color: var(--text3); flex-shrink: 0;
  margin-top: 2px; padding: 4px 10px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--border);
  transition: all 0.18s; white-space: nowrap;
}
.prompt-card:hover .pc-copy { background: var(--black); color: #fff; border-color: var(--black); }

/* ─── PROMPTS BIG (кнопки-примеры) ─── */
.prompts-big { display: flex; flex-wrap: wrap; gap: 10px; }
.prompt-big {
  padding: 12px 20px; border-radius: var(--radius-xs);
  background: var(--white); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text2);
  cursor: pointer; transition: all 0.18s; text-align: left;
}
.prompt-big:hover { border-color: var(--black); color: var(--text); }

/* ─── HONEST (сильные/слабые стороны) ─── */
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:600px){ .honest-grid { grid-template-columns: 1fr; } }
.honest-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 24px 22px; }
.honest-card.good-card { border-color: #bbf7d0; }
.honest-card.bad-card { border-color: var(--border); }
.honest-card-title { font-size: 13px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.honest-list { display: flex; flex-direction: column; gap: 10px; }
.honest-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.5; }
.hi-icon { flex-shrink: 0; font-size: 15px; margin-top: 0px; }
.hi-body strong { color: var(--text); font-weight: 600; }

/* ─── USE CASES / TASKS (ИИ по задачам) ─── */
.uses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
@media(max-width:640px){ .uses-grid { grid-template-columns: repeat(2, 1fr); } }
.use-card {
  background: var(--white); padding: 24px 22px;
  text-decoration: none; color: var(--text);
  transition: background 0.18s;
  display: flex; flex-direction: column; gap: 8px;
}
.use-card:first-child { border-radius: var(--radius) 0 0 0; }
.use-card:nth-child(4) { border-radius: 0 var(--radius) 0 0; }
.use-card:nth-child(5) { border-radius: 0 0 0 var(--radius); }
.use-card:last-child { border-radius: 0 0 var(--radius) 0; }
.use-card:hover { background: #fafafa; }
.use-card.active-card { background: var(--bg); border: 2px solid var(--black); border-radius: var(--radius-sm); }
.use-icon { font-size: 22px; }
.use-title { font-size: 14px; font-weight: 700; }
.use-desc { font-size: 12px; color: var(--text2); line-height: 1.45; }
.use-arrow { font-size: 13px; color: var(--text3); margin-top: auto; }

/* ─── HOW TO (пошаговая инструкция) ─── */
.howto-steps { display: flex; flex-direction: column; gap: 0; }
.howto-step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.howto-step:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: #fff;
  font-size: 15px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body { flex: 1; padding-top: 6px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }
.step-example {
  margin-top: 12px; padding: 12px 16px;
  background: var(--bg); border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-size: 13px; color: var(--text2); font-style: italic; line-height: 1.55;
}
.step-example strong { font-style: normal; color: var(--text); font-weight: 600; }

/* ─── MODELS LINKS (карточки-ссылки на модели) ─── */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media(max-width:640px){ .models-grid { grid-template-columns: repeat(2, 1fr); } }
.model-link-card {
  background: var(--white); padding: 22px 22px;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 14px;
  transition: background 0.18s;
}
.model-link-card:first-child { border-radius: var(--radius) 0 0 0; }
.model-link-card:nth-child(3) { border-radius: 0 var(--radius) 0 0; }
.model-link-card:nth-child(4) { border-radius: 0 0 0 var(--radius); }
.model-link-card:last-child { border-radius: 0 0 var(--radius) 0; }
.model-link-card:hover { background: #fafafa; }
.mlc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mlc-body { flex: 1; }
.mlc-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.mlc-desc { font-size: 12px; color: var(--text2); }
.mlc-arrow { font-size: 16px; color: var(--text3); }

/* ─── CROSS-LINKS (смежные страницы) ─── */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media(max-width:640px){ .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.case-link {
  background: var(--white); padding: 20px 22px;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 12px;
  transition: background 0.18s;
}
.case-link:first-child { border-radius: var(--radius) 0 0 0; }
.case-link:nth-child(3) { border-radius: 0 var(--radius) 0 0; }
.case-link:nth-child(4) { border-radius: 0 0 0 var(--radius); }
.case-link:last-child { border-radius: 0 0 var(--radius) 0; }
.case-link:hover { background: #fafafa; }
.cl-icon { font-size: 20px; flex-shrink: 0; }
.cl-body { flex: 1; }
.cl-name { font-size: 13px; font-weight: 700; }
.cl-desc { font-size: 12px; color: var(--text3); }
.cl-arrow { color: var(--text3); font-size: 14px; }

/* ─── MODEL COMPARISON TABLE ─── */
.model-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.model-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.model-table th, .model-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.model-table th { font-weight: 600; font-size: 13px; color: var(--text2); background: var(--bg); position: sticky; top: 0; }
.model-table th:first-child, .model-table td:first-child { text-align: left; font-weight: 500; color: var(--text); position: sticky; left: 0; background: #fff; white-space: normal; min-width: 140px; }
.model-table th:first-child { background: var(--bg); }
.model-table tr:last-child td { border-bottom: none; }
.model-table tr:hover td { background: var(--bg); }
.model-table tr:hover td:first-child { background: var(--bg); }
.model-table .col-featured { background: #fafafa; }
.model-table .col-featured th { background: #f0f0f0; }
.mt-badge-new { display: inline-block; background: #0f0f0f; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 100px; vertical-align: middle; margin-left: 4px; }
.mt-badge-free { display: inline-block; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 100px; vertical-align: middle; margin-left: 4px; }
.mt-head-model { font-size: 13px; font-weight: 700; color: var(--text); }
.model-table .good { color: #16a34a; font-size: 18px; }
.model-table .ok   { color: #ca8a04; font-size: 18px; }
.model-table .weak { color: #d1d5db; font-size: 18px; }
.model-table .na   { color: #d1d5db; font-size: 16px; }

/* ─── PRICING ─── */
.pricing-toggle { display: flex; align-items: center; gap: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 3px; margin-bottom: 40px; width: fit-content; }
.pt-btn { padding: 7px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--text2); transition: all 0.18s; }
.pt-btn.active { background: var(--white); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media(max-width:860px){ .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px){ .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 24px 22px; display: flex; flex-direction: column; gap: 0; position: relative; }
.price-card.popular { border-color: var(--black); box-shadow: 0 0 0 3px rgba(15,15,15,0.06); }
.price-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--black); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; white-space: nowrap; letter-spacing: 0.04em; }
.price-tagline { font-size: 11px; color: var(--text3); font-weight: 500; margin-bottom: 4px; }
.price-name { font-size: 17px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.price-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 3px; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.price-amount .cur { font-size: 20px; font-weight: 600; }
.price-amount .per { font-size: 13px; font-weight: 400; color: var(--text3); }
.price-period { font-size: 12px; color: var(--text3); margin-bottom: 18px; }
.price-btn { display: block; text-align: center; padding: 11px 0; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 20px; transition: all 0.2s; }
.price-btn-outline { border: 1.5px solid var(--border2); color: var(--text); }
.price-btn-outline:hover { border-color: var(--black); }
.price-btn-filled { background: var(--black); color: #fff; }
.price-btn-filled:hover { opacity: 0.8; }
.price-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 10px; }
.price-features { display: flex; flex-direction: column; gap: 8px; }
.pf { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text2); line-height: 1.4; }
.pf::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; font-size: 11px; }
.pf.dim::before { content: '—'; color: var(--text3); font-size: 13px; }
.pf.dim { color: var(--text3); }
.price-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ─── IMAGE GALLERY BLOCK (промо-блок с плиткой картинок) ─── */
.img2-section { padding: 72px 0; overflow: hidden; }
.img2-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.img2-grid { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr; gap: 10px; align-items: start; }
@media(max-width:900px){ .img2-grid { grid-template-columns: 1fr 2fr 1fr; } .img2-col-hide { display: none!important; } }
@media(max-width:560px){ .img2-grid { grid-template-columns: 1fr 2fr; } }
.img2-col { display: flex; flex-direction: column; gap: 10px; }
.img2-tile { overflow: hidden; border-radius: 16px; border: 1px solid var(--border); aspect-ratio: 1; }
.img2-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.img2-tile:hover img { transform: scale(1.04); }
.img2-promo { background: var(--white); border: 1.5px solid var(--border); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.img2-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--text2); }
.img2-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.img2-sub { font-size: 13px; color: var(--text2); }
.img2-cta { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; padding: 11px 22px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; display: inline-block; }
.img2-cta:hover { opacity: 0.85; }
.img2-2grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: transparent; border: none; color: var(--text);
  text-align: left; font-family: inherit; gap: 16px;
}
.faq-icon { font-size: 20px; color: var(--text3); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 14px; color: var(--text2); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ─── SEO TEXT ─── */
.seo-wrap { padding: 40px 24px 80px; max-width: 860px; margin: 0 auto; }
.seo-wrap h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.seo-wrap h3 { font-size: 14px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.seo-wrap p { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 10px; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px; max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.footer-logo { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 12px; color: var(--text3); width: 100%; }

/* ============================================================
   ChatGPT — редизайн блоков по макету Figma (v2)
   Возможности (перки), таблица сравнения, «Что можно делать»
   ============================================================ */
:root { --brand: #8437FF; --brand-border: #ece7fb; }

.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.sec-badge {
  display: inline-block; background: var(--white);
  border: 1px solid var(--brand-border); border-radius: 100px;
  padding: 9px 20px; font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 24px;
}
.sec-h2-lg { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 14px; }
.sec-sub2 { font-size: 16px; color: var(--text2); margin-bottom: 44px; line-height: 1.5; }

/* ─ Перки v2: асимметричная сетка 3 кол, широкие карточки span 2 ─ */
.perks2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk2 {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid #ececec;
  border-radius: 22px; padding: 30px 32px; min-height: 208px;
}
.perk2.wide { grid-column: span 2; }
.perk2-icon { width: 32px; height: 32px; display: block; margin-bottom: 18px; }
.perk2 h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.perk2 p { font-size: 14px; color: var(--text2); line-height: 1.5; position: relative; z-index: 1; }
.perk2.wide p { max-width: 58%; }
.perk2-blob { position: absolute; right: 0; bottom: 0; pointer-events: none; z-index: 0; }
.perk2 > *:not(.perk2-blob) { position: relative; z-index: 1; }
@media(max-width: 820px){ .perks2 { grid-template-columns: 1fr 1fr; } .perk2.wide { grid-column: span 2; } .perk2.wide p { max-width: 62%; } }
@media(max-width: 520px){ .perks2 { grid-template-columns: 1fr; } .perk2.wide { grid-column: span 1; } .perk2.wide p { max-width: 68%; } }

/* ─ Юзкейсы v2: 2 колонки с 3D-иконками ─ */
.uses2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width: 720px){ .uses2 { grid-template-columns: 1fr; } }
.uc2 {
  position: relative; display: flex; align-items: center;
  background: var(--white); border: 1px solid #ececec;
  border-radius: 22px; padding: 26px 30px; min-height: 148px;
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.uc2:hover { border-color: #d9d2f0; box-shadow: 0 6px 22px rgba(132,55,255,0.08); }
.uc2-body { flex: 1; padding-right: 128px; }
.uc2 h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.uc2 p { font-size: 14px; color: var(--text2); line-height: 1.5; }
.uc2-icon { position: absolute; right: 0; bottom: -16px; width: 142px; height: 118px; object-fit: contain; }
@media(max-width: 400px){ .uc2-icon { width: 88px; height: 88px; } .uc2-body { padding-right: 96px; } }

/* ─ Таблица сравнения v2: иконки строк + цветные точки ─ */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.cmp-table th, .cmp-table td { padding: 15px 16px; text-align: center; }
.cmp-table thead th { background: var(--bg); border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 700; color: var(--text); }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; border-right: 1px solid #f0f0f0; }
.cmp-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.cmp-table tbody tr:last-child { border-bottom: none; }
.cmp-task { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.cmp-task img { width: 22px; height: 22px; flex-shrink: 0; }
.cmp-free { display: inline-block; background: var(--green-soft); color: #166534; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 7px; vertical-align: middle; }
.cmp-new { display: inline-block; background: var(--black); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 100px; margin-left: 7px; vertical-align: middle; }
.rate { display: inline-flex; gap: 5px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e5e7eb; display: inline-block; }
.dot.g { background: #16a34a; }
.dot.y { background: #eab308; }
.dot.k { background: #c4c4c4; }
.cmp-dash { color: #cfcfcf; font-size: 16px; }
.cmp-check { color: var(--green); font-size: 18px; font-weight: 700; }
.cmp-legend { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; color: var(--text2); align-items: center; }

/* ─ Версии GPT v2 (в стиле макета): «Выбери версию ChatGPT» ─ */
.ver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ver-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid #ececec;
  border-radius: 22px; padding: 28px 30px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ver-card:hover { border-color: #d9d2f0; box-shadow: 0 6px 22px rgba(132,55,255,0.08); }
.ver-card.static { cursor: default; }
.ver-card.static:hover { border-color: #ececec; box-shadow: none; }
.ver-card.featured { grid-column: span 2; border-color: var(--brand); background: linear-gradient(180deg, #faf7ff, #ffffff); }
.ver-top { display: flex; align-items: center; gap: 12px; }
.ver-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ver-card.featured .ver-name { font-size: 26px; }
.ver-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; }
.vb-new { background: #f0e7ff; color: var(--brand); }
.vb-top { background: var(--green-soft); color: var(--green); }
.vb-fast { background: #fef3c7; color: #d97706; }
.vb-think { background: var(--blue-soft); color: var(--blue); }
.vb-free { background: var(--green-soft); color: var(--green); }
.ver-desc { font-size: 14px; color: var(--text2); line-height: 1.55; }
.ver-card.featured .ver-desc { font-size: 15px; max-width: 68%; }
.ver-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ver-tag { font-size: 11px; padding: 4px 10px; border-radius: 8px; background: var(--bg); color: var(--text3); border: 1px solid var(--border); font-weight: 500; }
.ver-foot { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text); }
@media(max-width: 640px){ .ver-grid { grid-template-columns: 1fr; } .ver-card.featured { grid-column: span 1; } .ver-card.featured .ver-desc { max-width: 100%; } }

/* ─ Обёртка для текстовых блоков (промпты, FAQ) ─ */
.wrap-mid { max-width: 900px; margin: 0 auto; padding: 72px 24px; }

/* ─ Тарифы v2 (перенос с /plans) ─ */
.plan-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--brand-border); border-radius: 100px; padding: 4px; margin-bottom: 44px; }
.plan-tab { padding: 9px 20px; border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--text2); transition: all 0.18s; display: inline-flex; align-items: center; gap: 8px; }
.plan-tab.active { background: var(--brand); color: #fff; }
.plan-tab .save { font-size: 11px; font-weight: 700; background: var(--green-soft); color: var(--green); padding: 2px 7px; border-radius: 100px; }
.plan-tab.active .save { background: rgba(255,255,255,0.22); color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
@media(max-width: 900px){ .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 520px){ .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid #ececec; border-radius: 22px; padding: 28px 26px; }
.plan-card.popular { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(132,55,255,0.08); }
.plan-pop-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 100px; white-space: nowrap; letter-spacing: 0.02em; }
.plan-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.plan-tagline { font-size: 13px; color: var(--text2); line-height: 1.45; margin-bottom: 18px; min-height: 38px; }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 5px; }
.plan-price .per { font-size: 14px; font-weight: 500; color: var(--text3); letter-spacing: 0; }
.plan-btn { display: block; text-align: center; padding: 12px 0; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; margin: 22px 0; transition: all 0.2s; }
.plan-btn-fill { background: var(--brand); color: #fff; }
.plan-btn-fill:hover { opacity: 0.88; }
.plan-btn-outline { border: 1.5px solid var(--border2); color: var(--text); }
.plan-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.plan-feats { display: flex; flex-direction: column; gap: 10px; }
.plan-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text2); line-height: 1.45; }
.plan-feat::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; font-size: 12px; margin-top: 1px; }

/* ─ Другие нейросети v2 (rounded карточки-ссылки) ─ */
.nlink-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media(max-width: 760px){ .nlink-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px){ .nlink-grid { grid-template-columns: 1fr; } }
.nlink { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid #ececec; border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.nlink:hover { border-color: #d9d2f0; box-shadow: 0 6px 22px rgba(132,55,255,0.08); }
.nlink-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.nlink-body { flex: 1; }
.nlink-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.nlink-desc { font-size: 12.5px; color: var(--text2); }
.nlink-arrow { color: var(--text3); font-size: 16px; }

/* ─ Двухколоночная секция (FAQ, SEO): заголовок слева, контент справа ─ */
.split2 { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
@media(max-width: 820px){ .split2 { grid-template-columns: 1fr; gap: 26px; } }
.split2-head .sec-sub2 { margin-bottom: 0; }

/* ─ Примеры запросов v2 (карточки-сетка) ─ */
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width: 640px){ .try-grid { grid-template-columns: 1fr; } }
.try-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; background: var(--white); border: 1px solid #ececec; border-radius: 16px; padding: 18px 22px; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s, transform 0.05s; }
.try-card:hover { border-color: var(--brand); box-shadow: 0 6px 22px rgba(132,55,255,0.08); }
.try-card:active { transform: translateY(1px); }
.try-text { line-height: 1.45; }
.try-arrow { color: var(--brand); font-size: 16px; flex-shrink: 0; }

/* ─ FAQ карточки v2 ─ */
.faq2-list { display: flex; flex-direction: column; gap: 12px; }
.faq2-list .faq-item { border: 1px solid #ececec !important; border-radius: 16px; background: var(--white); padding: 2px 22px; }
.faq2-list .faq-item.open { border-color: #d9d2f0 !important; }

/* ─ SEO текст v2 ─ */
.seo-body h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; color: var(--text); }
.seo-body h3:first-child { margin-top: 0; }
.seo-body p { font-size: 15px; color: var(--text2); line-height: 1.75; margin-bottom: 12px; }
.seo-body p:last-child { margin-bottom: 0; }
