/* ==========================================================================
   SpeShu.AI — Новая главная. Пиксель-референс из Figma для бэкенд-вёрстки.
   Токены 1:1 с макетом (цвета, типографика, тени, радиусы, отступы).
   Шрифт: Inter. Базовая ширина макета: 1440px.
   ========================================================================== */

:root {
  /* Цвета (slate / blue палитра макета) */
  --c-bg: #f1f5f9; /* fill_U60UVO  slate-100 */
  --c-surface: #ffffff; /* fill_UVREUR  */
  --c-surface-50: #f8fafc; /* fill_EZNUFX  slate-50 */
  --c-text: #020618; /* fill_I3HRNJ  slate-950 */
  --c-text-900: #0f172b; /* fill_JSE6Z4  slate-900 */
  --c-muted: #62748e; /* fill_21JDDW  slate-500 */
  --c-border: #e2e8f0; /* fill_HUD4JA  slate-200 */
  --c-blue: #155dfc; /* fill_WAFBWA  blue-600 */
  --c-blue-100: #dbeafe; /* fill_3551OA  blue-100 */
  --c-dark: #171717; /* fill_FFJWOA  neutral-900 (API-секция) */
  --c-neutral-600: #525252; /* fill_27J4F6  */

  /* Тени */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;
  --sidebar-width: 280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.4;
}

img,
svg {
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ----- Типографика (text-* токены макета) ----- */
.t-6xl-bold {
  font-size: 60px;
  font-weight: 700;
  line-height: 1em;
}
.t-3xl-bold {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2em;
}
.t-xl-semi {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4em;
}
.t-xl-normal {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4em;
}
.t-base-bold {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5em;
}
.t-base-semi {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5em;
}
.t-base-med {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5em;
}
.t-base {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5em;
}
.t-sm-med {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43em;
}
.t-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43em;
}
.t-xs {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33em;
}
.muted {
  color: var(--c-muted);
}

/* ==========================================================================
   Каркас: 1440px, сайдбар + контент
   ========================================================================== */
.app {
  background: var(--c-bg);
  position: relative;
  min-height: 100vh;
}

/* ----- Сайдбар: отдельная фиксированная панель у левого края ----- */
.sidebar {
  --sidebar-inline-offset: 16px;
  --sidebar-tab-icon-size: 20px;
  --sidebar-tab-svg-size: 16px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 64px 0 8px;
  overflow: hidden;
  background: var(--c-bg);
  color: #252b37;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  z-index: 20;
}
.sidebar .logo {
  position: absolute;
  top: 18px;
  left: 12px !important;
  display: flex;
  align-items: center;
  width: 125.858px;
  height: 24px;
  padding: 0;
}
.sidebar .logo svg {
  display: block;
  width: 125.858px !important;
  height: 24px !important;
  min-width: 125.858px;
  max-width: 125.858px;
  flex: 0 0 125.858px;
  color: var(--c-text);
}
.sidebar .logo span {
  font-size: 20px;
  font-weight: 600;
}

.sidebar .menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.sidebar .menu-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar .menu-label {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  height: 36px;
  padding: 0 var(--sidebar-inline-offset);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #717680;
}

.sidebar .nav-row {
  position: relative;
  flex: 0 0 36px;
  width: 100%;
  min-height: 36px;
}
.sidebar .nav-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 6px !important;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 8px var(--sidebar-inline-offset) !important;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #252b37;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  letter-spacing: normal;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  width: 100%;
  transition: background 0.15s ease-out;
}
.sidebar .nav-item:hover {
  background: var(--c-surface);
}
.sidebar .nav-item.is-hover {
  background: var(--c-surface);
}
.sidebar .nav-item svg,
.sidebar .nav-item img {
  display: block;
  box-sizing: border-box;
  width: var(--sidebar-tab-icon-size) !important;
  height: var(--sidebar-tab-icon-size) !important;
  min-width: var(--sidebar-tab-icon-size);
  max-width: var(--sidebar-tab-icon-size);
  min-height: var(--sidebar-tab-icon-size);
  max-height: var(--sidebar-tab-icon-size);
  flex: 0 0 var(--sidebar-tab-icon-size);
  object-fit: contain;
  margin: 0;
  transition: transform 0.15s ease-out;
}
.sidebar .nav-item > .nav-item__icon {
  display: flex;
  width: var(--sidebar-tab-icon-size);
  height: var(--sidebar-tab-icon-size);
  min-width: var(--sidebar-tab-icon-size);
  max-width: var(--sidebar-tab-icon-size);
  min-height: var(--sidebar-tab-icon-size);
  max-height: var(--sidebar-tab-icon-size);
  flex: 0 0 var(--sidebar-tab-icon-size);
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: currentColor;
  transition: transform 0.15s ease-out;
}
.sidebar .nav-item > .nav-item__icon > svg,
.sidebar .nav-item > .nav-item__icon > img {
  width: var(--sidebar-tab-svg-size) !important;
  height: var(--sidebar-tab-svg-size) !important;
  min-width: var(--sidebar-tab-svg-size);
  max-width: var(--sidebar-tab-svg-size);
  min-height: var(--sidebar-tab-svg-size);
  max-height: var(--sidebar-tab-svg-size);
  flex: 0 0 var(--sidebar-tab-svg-size);
}
.sidebar .nav-item > svg:not(.nav-item__external-icon),
.sidebar .nav-item > img {
  width: var(--sidebar-tab-svg-size) !important;
  height: var(--sidebar-tab-svg-size) !important;
  min-width: var(--sidebar-tab-svg-size);
  max-width: var(--sidebar-tab-svg-size);
  min-height: var(--sidebar-tab-svg-size);
  max-height: var(--sidebar-tab-svg-size);
  flex: 0 0 var(--sidebar-tab-svg-size);
  margin-right: 2px;
  margin-left: 2px;
}
.sidebar .nav-item:hover > svg {
  transform: scale(1.15);
}
.sidebar .nav-item:hover > .nav-item__icon {
  transform: scale(1.15);
}
.sidebar .nav-item .nav-item__external-icon {
  display: block;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  color: #717680;
  transition: transform 0.15s ease-out;
}
.sidebar .nav-item:hover .nav-item__external-icon {
  transform: translate(2px, -2px);
}
.sidebar .nav-item > .nav-item__content,
.sidebar .nav-item > span:not(.nav-item__icon) {
  display: block;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar .nav-item:has(> .nav-item__external-icon) > span:not(.nav-item__icon) {
  flex: 0 1 auto;
}
.sidebar .nav-item__inline {
  display: inline-flex;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  overflow: visible;
}
.sidebar .nav-item__text {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar .nav-row:hover .nav-item {
  background: var(--c-surface);
}
.sidebar .nav-item--plus {
  padding-right: 42px;
}
.sidebar .nav-plus {
  position: absolute;
  top: 50%;
  right: var(--sidebar-inline-offset);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  overflow: hidden;
  line-height: 0;
  border-radius: var(--r-full);
  background: var(--c-bg);
  color: #252b37;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.sidebar .nav-row:hover .nav-plus,
.sidebar .nav-plus:focus-visible {
  opacity: 1;
}
.sidebar .nav-plus > svg {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px;
  max-width: 10px;
  flex: 0 0 10px;
}

.sidebar .sidebar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  width: 100%;
  color: #252b37;
}
.sidebar .sidebar-links a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: normal;
  white-space: nowrap;
}
.sidebar .sidebar-links a:hover {
  background: var(--c-surface);
}
.sidebar .sidebar-links span {
  color: #717680;
}
.sidebar .sidebar-bottom {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 12px;
  width: 100%;
}

.sidebar .theme-button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: #252b37;
  font-family: inherit;
  text-align: left;
}
.sidebar .theme-button img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar .theme-button span {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* ----- Основной контент -----
   Симметричные горизонтальные отступы = ширине сайдбара: слева отступ
   очищает фиксированный сайдбар, справа — зеркалит его (зона Чаты/Баланс/
   Профиль в макете), поэтому контент центрируется по ИСТИННОМУ центру
   вьюпорта, а не уезжает вправо на широких экранах. */
.main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 96px var(--sidebar-width) 240px;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}
.main:not(.main--blog) > .topbar,
.main:not(.main--blog) > :not(.topbar) {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.main > * {
  position: relative;
  z-index: 1;
}
.main > .announce {
  width: fit-content;
}

/* Анимированное свечение за hero (декор) */
.hero-glow {
  position: absolute;
  z-index: 0;
  top: 80px;
  left: 50%;
  width: 1120px;
  height: 814px;
  transform: translateX(-50%);
  background: url('./hero-glow.png') center / contain no-repeat;
  pointer-events: none;
  animation: heroGlow 16s linear infinite;
  will-change: transform;
}
@keyframes heroGlow {
  0% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translateX(-50%) rotate(180deg) scale(1.08);
  }
  100% {
    transform: translateX(-50%) rotate(360deg) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow {
    animation: none;
  }
}

.section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}
.section--center {
  align-items: center;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.section-head--left {
  align-items: flex-start;
  text-align: left;
}
.section-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-secondary {
  background: var(--c-bg);
  color: var(--c-text-900);
}
.btn-secondary:hover {
  background: #e9eef5;
}
.btn-outline {
  background: var(--c-surface);
  color: var(--c-text-900);
  border-color: var(--c-border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--c-surface-50);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
}
.btn-ghost:hover {
  background: var(--c-bg);
}
.btn-primary {
  background: var(--c-blue);
  color: #fff;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
}
.btn-lg {
  height: 40px;
  padding: 0 24px;
}

/* ==========================================================================
   Верхняя плашка-анонс
   ========================================================================== */
.announce {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-xl);
  padding: 12px;
}
.announce .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}
.announce .left svg {
  width: 24px;
  height: 24px;
  color: var(--c-blue);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero-head h1 {
  max-width: 820px;
}
.hero-head p {
  max-width: 680px;
  color: var(--c-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-surface);
}
.chip .dot {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--c-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
}
.chip .dot svg {
  width: 18px;
  height: 18px;
}
.chip span {
  font-size: 16px;
  font-weight: 500;
}

/* ==========================================================================
   Карточки AI-инструментов
   ========================================================================== */
.cards-3 {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}
.tool-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.tool-card .img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.tool-card .body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}
.tool-card .body .head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-card .body .head .sub {
  color: var(--c-muted);
  font-size: 16px;
}

/* ==========================================================================
   Карточки моделей
   ========================================================================== */
.models {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.models-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.model-card {
  flex: 1;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-2xl);
  padding: 24px;
}
.model-card .content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.model-card .content .head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model-card .content .head .sub {
  color: var(--c-muted);
  font-size: 16px;
}
.model-card .actions {
  display: flex;
  gap: 8px;
}
.model-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--c-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.model-avatar svg {
  width: 30px;
  height: 30px;
}
.model-avatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.models-section {
  height: 642px;
  gap: 31px;
}
.models-section .section-title-row {
  width: 100%;
  height: 36px;
  align-items: center;
}
.models-section .models {
  width: 100%;
  height: 508px;
  gap: 20px;
}
.models-section .models-row {
  display: grid;
  grid-template-columns: repeat(2, 354px);
  gap: 20px;
  width: 100%;
  align-items: stretch;
}
.models-section .models-row:first-child {
  height: 232px;
}
.models-section .models-row:nth-child(2) {
  height: 256px;
}
.models-section .model-card {
  flex: none;
  width: 354px;
  height: 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  box-shadow:
    0 4px 3px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.06);
}
.models-section .model-card .content {
  flex: 0 0 222px;
  width: 222px;
  height: 100%;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.models-section .models-row:first-child .model-card:nth-child(2) {
  gap: 0;
}
.models-section .models-row:first-child .model-card:nth-child(2) .content {
  flex-basis: 242px;
  width: 242px;
}
.models-section .model-card .content .head {
  width: 100%;
  gap: 8px;
}
.models-section .model-card .content .head .sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--c-muted);
}
.models-section .model-card .actions {
  height: 32px;
  gap: 8px;
}
.models-section .model-card .actions .btn {
  height: 32px;
  padding: 0 12px;
  border: 0;
  box-shadow: none;
}
.models-section .model-card .actions .btn:first-child {
  width: 84px;
}
.models-section .model-card .actions .btn:nth-child(2) {
  width: 92px;
  background: transparent;
}
.models-section .model-avatar {
  width: 64px;
  height: 64px;
}
.models-section .models-row:first-child .model-card:first-child .model-avatar img {
  width: 26px;
  height: 26px;
}
.models-section > .btn-outline {
  width: 134px;
  height: 36px;
  padding: 8px 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   AI-эксперты
   ========================================================================== */
.experts {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  flex-wrap: nowrap;
}
.expert-card {
  flex: 0 0 calc((100% - 20px) / 2);
  width: calc((100% - 20px) / 2);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-2xl);
  padding: 24px;
}
.expert-card .top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.expert-card .head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.expert-card .head .sub {
  color: var(--c-muted);
  font-size: 16px;
}
.expert-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.expert-avatar img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.expert-card--accent {
  width: calc((100% - 20px) / 2);
  flex: 0 0 calc((100% - 20px) / 2);
  min-height: 260px;
  background: var(--c-blue-100);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.expert-tab {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 4px;
  padding: 4px 32px;
  color: var(--c-blue);
  font-weight: 500;
}
.expert-tab svg {
  width: 20px;
  height: 20px;
}
.expert-card--accent .inner {
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-2xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 auto;
  min-height: 0;
}

/* ==========================================================================
   API-секция (тёмная)
   ========================================================================== */
.api {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.api-diamond {
  width: 96px;
  height: 96px;
  border-radius: var(--r-lg);
  background: var(--c-neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: rotate(45deg);
}
.api-diamond .code-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  height: 48px;
  transform: rotate(-45deg);
}
.api-diamond .code-icon img {
  width: 16px;
  height: 24px;
  object-fit: contain;
}
.api .head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}

/* ==========================================================================
   Цены
   ========================================================================== */
.pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px 12px 12px;
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-2xl);
}
.price-row .who {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.price-row .who .av {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.price-row .who .av img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.price-row .cost {
  font-size: 14px;
}

.pricing-section {
  width: 728px;
  max-width: 100%;
  height: 500px;
  gap: 32px;
}
.pricing-section .section-head {
  width: 100%;
  height: 84px;
  gap: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.pricing-section .pricing {
  width: 100%;
  height: 312px;
  gap: 8px;
  flex-shrink: 0;
}
.pricing-section .price-row {
  display: grid;
  grid-template-columns: minmax(220px, 266px) minmax(180px, 1fr) 124px;
  align-items: center;
  position: relative;
  width: 100%;
  height: 72px;
  min-height: 72px;
  flex-shrink: 0;
  column-gap: 20px;
  padding: 12px 20px 12px 12px;
  border-radius: 24px;
  box-shadow:
    0 1px 1.5px rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.06);
}
.pricing-section .price-row .who {
  width: auto;
  min-width: 0;
  gap: 12px;
}
.pricing-section .price-row .who .av {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.pricing-section .price-row .who .av img {
  width: 32px;
  height: 32px;
}
.pricing-section .price-row .who span {
  flex: 1 0 0;
  min-width: 0;
  line-height: 20px;
}
.pricing-section .price-row .cost {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 266px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text);
  text-align: left;
}
.pricing-section .price-row .btn {
  width: 124px;
  justify-self: end;
  height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: none;
}
.pricing-section > .btn-lg {
  width: 163px;
  height: 40px;
  padding: 0 24px;
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 500;
}
.faq-item svg {
  width: 16px;
  height: 16px;
  color: var(--c-muted);
  flex-shrink: 0;
}
.faq-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Блог
   ========================================================================== */
.blog-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.blog-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.blog-card .img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}
.blog-card .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.blog-card .body .date {
  color: var(--c-muted);
  font-size: 14px;
}
.blog-card .body .title {
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   Приложение
   ========================================================================== */
.appcta {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-2xl);
  height: 388px;
  min-height: 388px;
  padding: 32px 340px 32px 32px;
  overflow: hidden;
  position: relative;
}
.appcta .left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  flex: 1 0 0;
  width: 356px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.appcta .head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 356px;
}
.appcta .head p {
  text-align: left;
}
.appcta-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 356px;
}
.appcta .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  width: 100%;
}
.appcta .row img,
.appcta .row svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.appcta .qr-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 356px;
  min-height: 128px;
}
.appcta .qr {
  width: 128px;
  height: 128px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}
.appcta .qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.appcta .qr-row span {
  flex: 1 0 0;
  min-width: 0;
  line-height: 24px;
}
.appcta .phone {
  position: absolute;
  left: 432px;
  top: 32px;
  width: 264px;
  height: 384px;
  overflow: hidden;
}
.appcta .phone img {
  position: absolute;
  left: 0;
  top: 0;
  width: 264px;
  height: 540px;
  max-width: none;
  border-radius: 0;
}

/* ==========================================================================
   Футер
   ========================================================================== */
.footer {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 16px;
}
.footer-cols {
  display: flex;
  gap: 32px;
}
.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col .ftitle {
  font-size: 16px;
  font-weight: 700;
}
.footer-col a {
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--c-blue);
}
.footer-copy {
  font-size: 14px;
  color: var(--c-muted);
  white-space: pre-line;
}

/* ==========================================================================
   Правая колонка (профиль + CSAT) поверх контента
   ========================================================================== */
.topbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ----- Плавающая кнопка «Создать» ----- */
.quick-ai {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 31;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 8px 12px;
  border: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  color: var(--c-surface-50);
  font-size: 14px;
  font-weight: 500;
  background: var(--c-blue);
  box-shadow: none;
}
.quick-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -75.39500110072481deg,
    rgba(205, 220, 254, 0) 23.557%,
    rgba(205, 220, 254, 0.55) 40.869%,
    rgba(205, 220, 254, 0) 64.016%
  );
  transform: translateX(-105%);
  animation: quickAiGradient 2.8s linear infinite;
  pointer-events: none;
}
.quick-ai .icon-slot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
.quick-ai .icon-slot img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.quick-ai .icon-slot--lightning img {
  width: 14px;
  height: 14px;
}
.quick-ai .icon-slot--chevron img {
  width: 12px;
  height: 8px;
}
.quick-ai > span:not(.icon-slot) {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
@keyframes quickAiGradient {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(105%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-ai::before {
    animation: none;
    transform: none;
  }
}

/* ==========================================================================
   Плавающий чат-инпут снизу
   ========================================================================== */
.chatbar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: 800px;
  max-width: calc(100% - 2 * var(--sidebar-width) - 24px);
  background: transparent;
  padding: 0;
}
.chatbar .form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-2xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chatbar .textarea {
  color: var(--c-muted);
  font-size: 16px;
}
.chatbar .controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.chatbar .left,
.chatbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.switch .track {
  width: 44px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px;
}
.switch .track .knob {
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: #fff;
}
.send-btn {
  background: var(--c-blue);
  color: #fff;
  border: none;
  opacity: 0.5;
}
.chatbar .cost {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 12px 0 0;
}
.chatbar .cost span {
  font-size: 14px;
  color: var(--c-muted);
}
.chatbar .cost svg {
  width: 18px;
  height: 18px;
  color: var(--c-muted);
}

.mobile-bottom-menu {
  display: none;
}

/* ==========================================================================
   Адаптивность — дизайн резиновый, не привязан к 1440px макета
   ========================================================================== */

/* Ряды-колонки переносятся, когда не хватает ширины */
.cards-3,
.blog-grid,
.models-row,
.footer-cols {
  flex-wrap: wrap;
}
.cards-3 > *,
.blog-grid > * {
  flex: 1 1 280px;
}
.cards-3 > .tool-card {
  flex: 1 1 0%;
  min-width: 0;
}
.blog-grid > .blog-card {
  flex: 1 1 0%;
  min-width: 0;
}
.models-row > * {
  flex: 1 1 320px;
}
.experts > .expert-card {
  flex: 0 0 calc((100% - 20px) / 2);
}
.experts > .expert-card--accent {
  flex: 0 0 calc((100% - 20px) / 2);
}
.footer-cols > * {
  flex: 1 1 150px;
}

/* Планшет: сайдбар сворачивается, контент на всю ширину */
@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }
  .main {
    padding: 88px clamp(16px, 4vw, 48px) 240px;
  }
  .quick-ai {
    left: 50%;
  }
  .chatbar {
    left: 50%;
    max-width: calc(100% - 24px);
  }
  .experts {
    flex-direction: column;
    align-items: stretch;
  }
  .expert-card,
  .experts > .expert-card {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }
  .expert-card--accent,
  .experts > .expert-card--accent {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* Мобайл */
@media (max-width: 760px) {
  .appcta,
  .main > .appcta {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 24px;
  }
  .appcta .left,
  .appcta .head,
  .appcta-downloads,
  .appcta .qr-row {
    width: 100%;
  }
  .appcta .phone {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  .app {
    min-width: 0;
  }
  .main {
    padding: 96px 16px 244px;
    gap: 32px;
    overflow: visible;
  }
  .main > .topbar,
  .main > :not(.topbar) {
    max-width: 100%;
  }
  .topbar {
    display: none;
  }
  .quick-ai {
    top: 20px;
    left: 50%;
    height: 36px;
  }
  .hero {
    gap: 20px;
  }
  .hero-head {
    gap: 12px;
  }
  .t-6xl-bold {
    font-size: 36px;
    line-height: 40px;
  }
  .t-3xl-bold {
    font-size: 20px;
    line-height: 28px;
  }
  .t-xl-normal {
    font-size: 14px;
    line-height: 20px;
  }
  .chips {
    gap: 8px;
  }
  .chip {
    padding: 8px 16px 8px 8px;
    font-size: 12px;
    line-height: 16px;
  }
  .announce {
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--r-2xl);
  }
  .announce .left {
    align-items: flex-start;
    gap: 12px;
  }
  .announce .left span {
    font-size: 14px;
    line-height: 20px;
  }
  .section {
    gap: 20px;
  }
  .section-head {
    gap: 12px;
  }
  .cards-3 {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .cards-3 > .tool-card,
  .tool-card {
    flex: none;
    width: 100%;
    height: 120px;
    flex-direction: row-reverse;
    border-radius: var(--r-2xl);
  }
  .tool-card .img {
    width: 50%;
    height: 120px;
  }
  .tool-card .body {
    width: 50%;
    padding: 16px;
    gap: 12px;
  }
  .tool-card .body .head {
    gap: 4px;
  }
  .tool-card .body .t-xl-semi {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
  }
  .tool-card .body .sub {
    font-size: 12px;
    line-height: 16px;
  }
  .tool-card .body .btn {
    width: 100%;
    height: 36px;
  }
  .models-section,
  .main > .models-section {
    width: 100%;
    height: auto;
    gap: 20px;
  }
  .models-section .section-title-row,
  .models-section .models {
    width: 100%;
    height: auto;
  }
  .models-section .models,
  .models {
    gap: 20px;
  }
  .models-section .models-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 20px;
  }
  .models-section .models-row:first-child,
  .models-section .models-row:nth-child(2) {
    height: auto;
  }
  .models-section .model-card,
  .model-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: 100%;
    height: auto;
    min-height: 0;
    column-gap: 20px;
    row-gap: 12px;
    padding: 16px;
    border-radius: var(--r-2xl);
    align-items: start;
  }
  .models-section .model-card .content,
  .models-section .models-row:first-child .model-card:nth-child(2) .content,
  .model-card .content {
    display: contents;
  }
  .models-section .model-card .content .head,
  .model-card .content .head {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    gap: 4px;
  }
  .models-section .model-card .content .head .sub,
  .model-card .content .head .sub {
    font-size: 14px;
    line-height: 20px;
  }
  .models-section .model-card .actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 8px;
  }
  .models-section .model-card .actions .btn,
  .models-section .model-card .actions .btn:first-child,
  .models-section .model-card .actions .btn:nth-child(2) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 32px;
    padding: 0 12px;
    justify-content: center;
  }
  .models-section .model-avatar,
  .model-avatar {
    grid-column: 2;
    grid-row: 1;
    width: 48px;
    height: 48px;
    align-self: flex-start;
  }
  .models-section .model-avatar img,
  .model-avatar img,
  .models-section .models-row:first-child .model-card:first-child .model-avatar img {
    width: 24px;
    height: 24px;
  }
  .pricing-section,
  .main > .pricing-section {
    width: 100%;
    height: auto;
  }
  .pricing-section .section-head,
  .pricing-section .pricing {
    height: auto;
    white-space: normal;
  }
  .pricing-section .price-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    gap: 12px;
    padding: 16px;
    border-radius: var(--r-2xl);
  }
  .pricing-section .price-row .who {
    flex: none;
    width: 100%;
    align-items: center;
  }
  .pricing-section .price-row .cost {
    position: static;
    transform: none;
    width: 100%;
    flex: none;
    padding-left: 60px;
    text-align: left;
  }
  .pricing-section .price-row .btn {
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
  }
  .experts {
    flex-direction: column;
    gap: 20px;
  }
  .expert-card,
  .expert-card--accent,
  .experts > .expert-card,
  .experts > .expert-card--accent {
    width: 100%;
    flex: 1 1 auto;
  }
  .expert-card,
  .expert-card--accent .inner {
    padding: 16px;
    border-radius: var(--r-2xl);
  }
  .expert-card {
    gap: 20px;
  }
  .expert-card--accent .inner {
    gap: 12px;
  }
  .expert-card .top,
  .expert-card--accent .inner .top {
    gap: 20px;
  }
  .expert-card .btn,
  .expert-card--accent .btn {
    width: 100%;
    height: 36px;
  }
  .blog-grid,
  .footer-cols {
    flex-direction: column;
  }
  .faq {
    width: 100%;
  }
  .faq-item {
    padding: 16px 20px;
    border-radius: var(--r-md);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
  }
  .blog-grid {
    gap: 20px;
  }
  .blog-card .img {
    height: 128px;
  }
  .blog-card .body .date {
    font-size: 12px;
    line-height: 16px;
  }
  .blog-card .body .title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
  }
  .footer,
  .footer-cols {
    gap: 32px;
  }
  .footer-col {
    gap: 16px;
  }
  .footer-col h4,
  .footer-col a,
  .footer-copy {
    font-size: 14px;
    line-height: 20px;
  }
  .appcta,
  .main > .appcta {
    border-radius: var(--r-2xl);
  }
  .chatbar {
    left: 50%;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-width: 480px;
  }
  .chatbar .form {
    padding: 0 12px 12px;
    border-radius: var(--r-2xl);
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .chatbar .textarea {
    padding: 12px 0;
    font-size: 14px;
    line-height: 20px;
  }
  .chatbar .controls {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .chatbar .left,
  .chatbar .right {
    gap: 8px;
    justify-content: flex-start;
  }
  .chatbar .right {
    margin-left: auto;
  }
  .chatbar .cost {
    display: none;
  }
  .icon-btn,
  .send-btn {
    width: 32px;
    height: 32px;
  }
  .switch {
    width: 32px;
    height: 32px;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    background: var(--c-surface);
    box-shadow: var(--shadow-xs);
  }
  .switch .track {
    width: 16px;
    height: 16px;
    padding: 0;
    background: transparent;
    position: relative;
  }
  .switch .track::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-text);
    box-shadow:
      0 -5px 0 var(--c-text),
      0 5px 0 var(--c-text);
  }
  .switch .track .knob,
  .switch .t-sm-med {
    display: none;
  }
  .chatbar .btn-outline {
    height: 32px;
    padding: 0 8px;
  }
  .mobile-bottom-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 29;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: var(--c-bg);
    box-shadow: 0 -12px 24px rgba(241, 245, 249, 0.9);
  }
  .mobile-bottom-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(241, 245, 249, 0), var(--c-bg));
    pointer-events: none;
  }
  .mobile-bottom-item {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 36px;
    padding: 0 2px;
    border-radius: var(--r-md);
    color: var(--c-text);
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
  }
  .mobile-bottom-item svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .mobile-bottom-item span {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-bottom-item.is-active {
    color: var(--c-blue);
  }
  .footer-copy {
    text-align: center;
  }
}
/* ==========================================================================
   Блог: список карточек и детальная страница
   ========================================================================== */
.main--blog {
  gap: 0;
  padding-top: 64px;
  align-items: stretch;
}
.blog-layout {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.blog-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.breadcrumbs {
  font-size: 14px;
  line-height: 1.43em;
  color: var(--c-muted);
}
.blog-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11em;
  color: var(--c-text);
}
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
}
.blog-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.blog-card__date {
  font-size: 14px;
  line-height: 1.43em;
  color: var(--c-muted);
}
.blog-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5em;
  color: var(--c-text);
}

.article-hero {
  width: 100%;
  height: 331px;
  border-radius: var(--r-2xl);
  object-fit: cover;
}
.article-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-head__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11em;
  color: var(--c-text);
}
.article-head__date {
  font-size: 14px;
  line-height: 1.43em;
  color: var(--c-muted);
}

@media (max-width: 640px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
  .article-hero {
    height: 220px;
  }
  .blog-title,
  .article-head__title {
    font-size: 28px;
  }
}

/* ==========================================================================
   AI‑модели: список моделей и страница модели
   ========================================================================== */
.model-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.model-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.model-row:hover {
  border-color: var(--c-blue);
  box-shadow: var(--shadow-sm);
}
.model-row__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface-50);
}
.model-row__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.model-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.model-row__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5em;
  color: var(--c-text);
}
.model-row__desc {
  font-size: 14px;
  line-height: 1.43em;
  color: var(--c-muted);
}
.model-row__action {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text-900);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.model-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.model-header__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11em;
  color: var(--c-text);
}
.model-header__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4em;
  color: var(--c-text);
}
.model-select-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text-900);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.model-select-btn:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.model-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.model-section__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.33em;
  color: var(--c-text);
}
.model-section__text {
  font-size: 16px;
  line-height: 1.5em;
  color: var(--c-muted);
}
.model-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.model-example {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-50);
}
.model-similar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .model-header__title {
    font-size: 28px;
  }
  .model-examples,
  .model-similar {
    grid-template-columns: 1fr;
  }
  .model-row__action span {
    display: none;
  }
}
