/* ===== CSS VARIABLES (Brand Book) ===== */
:root {
  --color-primary: #171717;
  --color-primary-hover: #989898;
  --color-bg: #F9FAFA;
  --color-bglight: #FFFFFF;
  --color-text: #171717;
  --color-text-secondary: #989898;
  --color-accent: #FEE121;
  --color-accent-hover: #e6cc1e;
  --color-button-primary: #FEE121;
  --color-button-primary-hover: #e6cc1e;
  --color-button-secondary: #FFFFFF;
  --color-button-secondary-hover: #F9FAFA;
  --color-button-third: #171717;
  --color-button-third-hover: #989898;
  --color-border: #989898;
  --color-border-secondary: #171717;
  --color-surface: #F9FAFA;
  --font-primary: 'Onest', sans-serif;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 18px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bglight);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 56px; line-height: 64px; font-weight: 500; }
h2 { font-size: 46px; line-height: 52px; font-weight: 500; }
h3 { font-size: 18px; line-height: 24px; font-weight: 400; }
.body-lg { font-size: 18px; line-height: 24px; font-weight: 500; }
.body { font-size: 16px; line-height: 18px; font-weight: 400; }
.caption { font-size: 16px; line-height: 18px; font-weight: 500; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== SECTION ===== */
.section { padding: 120px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-primary);
  font-size: 16px; font-weight: 400; border-radius: 8px;
  padding: 12px 24px; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--color-button-primary); color: #171717; }
.btn-primary:hover { background: var(--color-button-primary-hover); }
.btn-secondary { background: var(--color-button-secondary); color: #171717; border: 1px solid #171717; }
.btn-secondary:hover { background: var(--color-button-secondary-hover); }
.btn-third { background: var(--color-button-third); color: #FFFFFF; }
.btn-third:hover { background: var(--color-button-third-hover); }

/* ===== CARDS ===== */
.card {
  border-radius: 12px; border: 1px solid #F5F5F5;
  padding: 32px 16px; background: var(--color-surface); gap: 24px;
}

/* Шапка и оверлей-меню: стили живут в общем компоненте /components/header.html
   (он один на весь сайт и сам несёт свой <style>, скоупленный через #t-header). */

/* ===== HERO ===== */
.hero { padding: 80px 0 60px; }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content p { font-size: 18px; line-height: 26px; color: var(--color-text-secondary); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-visual {
  margin-top: 60px; background: var(--color-surface); border-radius: 16px;
  min-height: 360px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  border: 1px solid #F5F5F5;
}
.hero-visual-video {
  width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 16px;
}
.hero-captions {
  display: flex; gap: 24px; justify-content: center; margin-top: 20px;
  flex-wrap: wrap;
}
.hero-captions span {
  font-size: 14px; color: #171717;
  padding: 8px 16px; background: #FEE121; border-radius: 20px;
  border: none;
}

@media (max-width: 768px) {
  h1 { font-size: 32px; line-height: 38px; }
  h2 { font-size: 28px; line-height: 34px; }
  .hero { padding: 40px 0 32px; }
  .hero-visual { min-height: 200px; }
}

/* ===== TRUST METRICS ===== */
.trust-metrics { background: var(--color-bglight); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.trust-card {
  padding: 32px 24px; border-radius: 12px; border: 1px solid #F5F5F5;
  background: var(--color-surface); text-align: center;
}
.trust-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.trust-card.is-clickable:hover {
  border-color: #171717;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.trust-card.is-clickable:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}
.trust-card-icon {
  width: 48px; height: 48px; background: var(--color-accent);
  border-radius: 12px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.trust-card-icon img { width: 32px; height: 32px; }
.trust-card h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ===== UNIFIED ANALYTICS ===== */
.unified { background: var(--color-bglight); }
.unified-header { text-align: center; margin-bottom: 64px; }
.unified-header h2 { margin-bottom: 16px; }
.unified-header p { font-size: 18px; line-height: 26px; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }
.unified-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.benefit-item { padding: 20px 0; border-bottom: 1px solid #F5F5F5; }
.benefit-item:last-child { border-bottom: none; }
.benefit-item h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.benefit-item p { font-size: 14px; line-height: 20px; color: var(--color-text-secondary); }
.unified-visual {
  background: var(--color-surface); border-radius: 16px; padding: 32px;
  min-height: 400px; border: 1px solid #F5F5F5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.unified-visual-placeholder {
  width: 100%; min-height: 300px; background: linear-gradient(135deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary); font-size: 14px;
}
.unified-visual-caption { margin-top: 20px; text-align: center; }
.unified-visual-caption h4 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.unified-visual-caption p { font-size: 14px; color: var(--color-text-secondary); }
@media (max-width: 768px) {
  .unified-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== CORTEX ===== */
.cortex { background: #F9FAFA; color: var(--color-text); padding-bottom: 45px !important; }
.cortex-radial {
  display: flex; justify-content: center; align-items: center;
  margin-top: 32px;
}
.cortex-radial-inner {
  position: relative; width: 800px; height: 680px;
}
.cortex-logo-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.cortex-logo-center img {
  width: 300px; height: 300px; border-radius: 50%;
}
.cortex-lines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.cortex-thesis {
  position: absolute; z-index: 3;
  background: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px 20px;
  width: 300px;
  display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: start;
  white-space: normal;
  font-size: 14px; line-height: 20px; color: var(--color-text);
  transition: all 0.3s ease;
  cursor: default;
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  outline: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #FEE121, #E5341E, #29C44A);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
}
.cortex-thesis-title {
  grid-column: 2; grid-row: 1;
  display: block; font-size: 13px; font-weight: 500; color: #1a1a18; line-height: 1.35;
}
.cortex-thesis-desc {
  grid-column: 1 / -1; grid-row: 2;
  display: block; font-size: 12px; color: #5f5e5a; line-height: 1.55;
}
.cortex-thesis:hover {
  box-shadow: 0 4px 16px rgba(254,225,33,0.2);
  transform-origin: center;
}
.cortex-thesis:hover .cortex-thesis-icon {
  background: var(--color-accent);
  color: #171717;
}
.cortex-thesis-icon {
  grid-column: 1; grid-row: 1;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  color: #171717;
  transition: all 0.3s ease;
}
/* Logo is 300px centered. Gap = 60px. Thesis height = 55px */
/* Top: logo top edge at 50%-150px, thesis bottom = logo_top - 60px, so thesis top = logo_top - 60 - 55 */
.cortex-thesis-top { bottom: calc(50% + 150px + 60px); left: 50%; transform: translateX(-50%); }
/* Right: logo right edge at 50%+150px, thesis left = logo_right + 60px */
.cortex-thesis-right { top: 50%; left: calc(50% + 150px + 60px); transform: translateY(-50%); }
/* Bottom: logo bottom edge at 50%+150px (in height), thesis top = logo_bottom + 60px */
.cortex-thesis-bottom { top: calc(50% + 150px + 60px); left: 50%; transform: translateX(-50%); }
/* Left: logo left edge at 50%-150px, thesis right = logo_left - 60px */
.cortex-thesis-left { top: 50%; right: calc(50% + 150px + 60px); transform: translateY(-50%); }
@media (max-width: 768px) {
  .cortex-radial-inner {
    width: 100%; height: auto; display: flex; flex-direction: column;
    align-items: center; gap: 24px; padding: 40px 0;
  }
  .cortex-logo-center { position: static; transform: none; }
  .cortex-lines { display: none; }
  .cortex-thesis {
    position: static; transform: none; max-width: 100%;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-accent);
  padding: 28px 0 !important;
}
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta-content h2 { margin-bottom: 16px; }
.cta-content > p { font-size: 16px; line-height: 24px; color: rgba(23,23,23,0.7); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-visual {
  min-height: 180px; display: flex; align-items: center; justify-content: center;
}
.cta-visual-img { width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 16px; display: block; }
.cta-visual-placeholder {
  width: 100%; min-height: 220px;
  background: rgba(23,23,23,0.06); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(23,23,23,0.4); font-size: 14px;
}
@media (max-width: 768px) {
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-visual { display: none; }
}

/* ===== CASES ===== */
.cases { background: var(--color-bglight); }
.cases-header { text-align: center; margin-bottom: 48px; }
.cases-header h2 { margin-bottom: 12px; }
.cases-header p { font-size: 18px; color: var(--color-text-secondary); }
.cases-slider-wrapper { position: relative; overflow: hidden; }
.cases-track {
  display: flex; gap: 24px; transition: transform 0.4s ease;
  cursor: grab;
  touch-action: pan-y;        /* вертикальный скролл страницы на тач остаётся, горизонталь — наш drag */
  user-select: none;          /* не выделять текст при перетаскивании */
}
.cases-track.is-dragging { cursor: grabbing; transition: none; }
.cases-track:active { cursor: grabbing; }
.case-card {
  min-width: 920px; width: 920px; background: var(--color-bglight);
  border-radius: 24px; border: 1px solid #F5F5F5;
  overflow: hidden; flex-shrink: 0;
  display: flex; padding: 24px; gap: 16px; height: 520px;
}
.case-card-left {
  width: 288px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.case-card-logo-box { flex-shrink: 0; }
.case-card-logo-box img { width: 100%; height: auto; display: block; }
.case-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-card-tags span {
  font-size: 12px; padding: 4px 10px; background: #F5F5F5;
  border-radius: 16px; color: #171717;
}
.case-card-screenshot {
  flex: 1; background: var(--color-surface); border-radius: 12px; overflow: hidden;
}
.case-card-screenshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card-right {
  width: 568px; flex-shrink: 0; background: var(--color-surface); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column;
}
.case-card-right-content { flex: 1; }
.case-card-right h3 { font-size: 20px; font-weight: 500; margin-bottom: 16px; line-height: 26px; }
.case-card-right p { font-size: 14px; line-height: 20px; color: #171717; }
.case-card-right .btn { align-self: flex-start; font-size: 14px; padding: 10px 20px; margin-top: 24px; }

.slider-controls {
  display: flex; justify-content: center; gap: 12px; margin-top: 32px;
}
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--color-border-secondary);
  background: var(--color-bglight); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.slider-btn:hover { background: var(--color-primary); color: #fff; }
.slider-btn:hover img { filter: brightness(0) invert(1); }
.slider-btn svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .case-card { width: 100%; min-width: 0; height: auto; flex-direction: column; }
  .case-card-left { width: 100%; }
  .case-card-right { width: 100%; min-width: 0; }
  .case-card-logo-box img { max-width: 160px; }
  .case-card-screenshot { height: 160px; }
}

/* ===== MANAGEMENT SCENARIOS (TABS) ===== */
.scenarios { background: var(--color-surface); }
.scenarios-header { text-align: center; margin-bottom: 48px; }
.scenarios-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px; border-radius: 8px; border: 1px solid #F5F5F5;
  background: var(--color-bglight); cursor: pointer; font-family: var(--font-primary);
  font-size: 15px; transition: all 0.2s;
}
.tab-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tab-btn:hover:not(.active) { border-color: var(--color-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tab-left { display: flex; flex-direction: column; gap: 24px; }
.tab-quote-card {
  background: var(--color-bglight); border-radius: 16px; padding: 32px;
  border: 1px solid #F5F5F5;
}
.tab-quote-photo {
  width: 64px; height: 64px; border-radius: 50%; background: #eee;
  margin-bottom: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--color-text-secondary); overflow: hidden;
}
.tab-quote-text {
  font-size: 15px; line-height: 22px; font-style: italic;
  color: var(--color-text); margin-bottom: 16px;
}
.tab-quote-author { font-size: 14px; font-weight: 500; }
.tab-quote-role { font-size: 13px; color: var(--color-text-secondary); }
.tab-right { display: flex; flex-direction: column; gap: 16px; }
.tab-feature-card {
  background: var(--color-bglight); border-radius: 12px; padding: 24px;
  border: 1px solid #F5F5F5;
}
.tab-feature-card h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.tab-feature-card p { font-size: 14px; line-height: 20px; color: #4D4D4D; }
.tab-feature-card.cortex-card {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.tab-feature-card.cortex-card h4 { color: var(--color-accent); }
.tab-feature-card.cortex-card p { color: rgba(255,255,255,0.5); }
.tab-bottom-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }

/* Business tab (cards.svg reference) */
.tab-layout-business {
  grid-template-columns: 752px 1fr;
  justify-content: start;
  align-items: stretch;
  gap: 16px;
}
.tab-quote-card-business {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 212px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-radius: 28px;
  background: #F5F5F6;
}
.tab-quote-photo-business {
  width: 212px;
  height: 100%;
  border-radius: 16px;
  margin-bottom: 0;
}
.tab-quote-photo-business img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.tab-quote-main {
  display: flex;
  flex-direction: column;
}
.tab-quote-bubble {
  background: #ECEDEF;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tab-quote-text-business {
  margin-bottom: 0;
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 400;
  color: #171717;
}
.tab-quote-mark {
  display: block; flex-shrink: 0;
  font-size: 24px; line-height: 1; color: #FEE121 !important;
}
.tab-quote-mark-open { align-self: flex-start; }
.tab-quote-mark-close { align-self: flex-end; }
.tab-quote-author-business {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 4px;
}
.tab-quote-role-business {
  font-size: 14px;
  line-height: 1.4;
  color: #9CA0A6;
}
.tab-bottom-cards-business {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.tab-feature-card-business {
  border-radius: 20px;
  padding: 20px 18px 18px;
}
.tab-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.tab-feature-card-business h4 {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.tab-feature-card-business p {
  font-size: 14px;
  line-height: 1.35;
}
.tab-right-business {
  gap: 16px;
  align-items: stretch;
}
.tab-right-business .tab-feature-card:last-child {
  flex: 1;
}
.tab-side-card-business { border-radius: 20px; }
.tab-right-business .tab-feature-card {
  width: 368px;
  max-width: 100%;
}
.tab-side-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.tab-side-card-title .tab-feature-icon {
  flex: 0 0 34px;
  margin-bottom: 0;
}
.tab-side-card-title h4 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.15;
}
.tab-side-card-business p {
  font-size: 14px;
  line-height: 1.35;
}
.tab-feature-card.tab-side-card-cortex-business {
  background: #FEE121;
  border-color: #FEE121;
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-feature-card.tab-side-card-cortex-business p {
  color: #171717;
  font-size: 14px;
  line-height: 1.35;
}
/* Блок «От Self-Service к Self-Made»: описания/подпись в карточках были
   блёклым серым (#989898 / #9CA0A6) — делаем контрастнее (жёлтую Cortex-карточку
   не трогаем). */
.scenarios .tab-feature-card-business p,
.scenarios .tab-side-card-business:not(.tab-side-card-cortex-business) p,
.scenarios .tab-quote-role-business {
  color: #6B6B6B;
}
@media (max-width: 768px) {
  .tab-layout { grid-template-columns: 1fr; }
  .tab-bottom-cards { grid-template-columns: 1fr; }
  .tab-layout-business { grid-template-columns: 1fr; }
  .tab-quote-card-business { width: 100%; }
  .tab-right-business { align-items: stretch; width: 100%; }
  .tab-right-business .tab-feature-card { max-width: 100%; width: 100%; box-sizing: border-box; }
  .tab-quote-card-business {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tab-quote-photo-business {
    width: 100%;
    max-width: 244px;
    height: auto;
    aspect-ratio: 244 / 307;
  }
  .tab-quote-main {
    min-height: auto;
    padding-right: 0;
  }

  .tab-quote-text-business { font-size: 16px; }
  .tab-quote-author-business { font-size: 16px; }
  .tab-quote-role-business { font-size: 13px; }
  .tab-feature-card-business h4 { font-size: 18px; }
  .tab-feature-card-business p { font-size: 14px; line-height: 1.35; }
  .tab-side-card-title h4 { font-size: 18px; }
  .tab-side-card-business p { font-size: 14px; }
  .tab-side-card-cortex-business p { font-size: 14px; }
}

/* ===== TABLET (769–1024px) ===== */
/* В этом диапазоне ещё действуют десктопные правила, но часть блоков имеет
   фиксированную ширину (.tab-layout-business — колонка 752px; радиальная
   диаграмма Cortex — 800px) и переполняет контейнер, сдвигая контент вбок.
   Сворачиваем их так же, как на мобильных, не трогая типографику. */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Сценарии → таб «Руководителю бизнеса»: фикс-колонка 752px → одна колонка */
  .tab-layout-business { grid-template-columns: 1fr; }
  .tab-quote-card-business { width: 100%; }
  .tab-right-business { width: 100%; align-items: stretch; }
  .tab-right-business .tab-feature-card { width: 100%; max-width: 100%; box-sizing: border-box; }

  /* Cortex: радиальная диаграмма 800px шире планшета → вертикальная раскладка */
  .cortex-radial-inner {
    width: 100%; height: auto; display: flex; flex-direction: column;
    align-items: center; gap: 24px; padding: 40px 0;
  }
  .cortex-logo-center { position: static; transform: none; }
  .cortex-lines { display: none; }
  .cortex-thesis { position: static; transform: none; max-width: 100%; }

  /* Кейсы: карточка 920px шире планшета → подгоняем под вьюпорт, колонки гибкие */
  .case-card { width: 100%; min-width: 0; }
  .case-card-left { width: 38%; max-width: 300px; min-width: 0; flex-shrink: 1; }
  .case-card-right { width: auto; flex: 1 1 0; min-width: 0; }
}

/* ===== CTA 2 ===== */
.cta2 { background: var(--color-accent); padding: 28px 0 !important; }
.cta2-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta2-content h2 { margin-bottom: 16px; }
.cta2-content > p { color: rgba(23,23,23,0.7); font-size: 16px; line-height: 24px; margin-bottom: 16px; }
.cta2-link-wrap { margin-bottom: 32px; }
.cta2-link {
  display: inline;
  color: var(--color-primary); font-size: 16px; font-weight: 600;
  transition: opacity 0.2s;
}
.cta2-link:hover { opacity: 0.8; }
.cta2-link .benefit-arrow { color: var(--color-primary); font-size: 20px; }
.cta2-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta2-visual {
  min-height: 180px; display: flex; align-items: center; justify-content: center;
}
.cta2-visual-img { width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 16px; display: block; }
.cta2-visual-placeholder {
  width: 100%; min-height: 220px;
  background: rgba(23,23,23,0.06); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(23,23,23,0.4); font-size: 14px;
}
@media (max-width: 768px) {
  .cta2-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta2-visual { display: none; }
}

/* ===== CLIENTS ===== */
.clients { background: var(--color-bglight); }
.clients-header { text-align: center; margin-bottom: 48px; }
.clients-header h2 { margin-bottom: 12px; }
.clients-header p { font-size: 18px; color: var(--color-text-secondary); }
.client-group { margin-bottom: 40px; }
.client-group h3 { font-size: 16px; font-weight: 500; margin-bottom: 16px; color: #171717; }
.client-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.client-logo-item {
  height: 110px; background: var(--color-surface);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--color-text-secondary); border: 1px solid #F5F5F5;
  overflow: hidden; padding: 4px 8px;
}
.client-logo-item img {
  width: 100%; height: 100%; object-fit: contain;
}
/* Цветные клиентские лого (cl_*) без внутреннего «воздуха» в файле —
   добавляем CSS-отступ, чтобы все слоты блока выглядели одного размера. */
.client-logo-item img[src*="/cl_"] {
  padding: 16px 32px;
  box-sizing: border-box;
}
/* ── Кнопка-«листалка»: общая база ── */
.client-logo-item--more {
  place-self: center;
  border: none; cursor: pointer; padding: 0; font: inherit;
  background: none; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.client-logo-item--more .more-arrow { display: block; transition: transform 0.2s; }
.client-logo-item--more:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* Вариант 1 — выглядывающие логотипы + затухание (круглая стрелка) */
.client-logo-item--more1 {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(254, 225, 33, 0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.client-logo-item--more1:hover {
  background: var(--color-accent-hover);
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(254, 225, 33, 0.55);
}
.client-logo-item--more1:hover .more-arrow { transform: translateX(3px); }
.client-logo-item--more1:active { transform: scale(0.96); }
/* затухание правого края ленты + полупрозрачный «выглядывающий» логотип */
.client-logos--peek .client-logos-slider { position: relative; }
.client-logos--peek .client-logos-slider::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 96px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--color-bglight));
  pointer-events: none;
}

/* Вариант 2 — счётчик «Ещё N» + бегущая стрелка (таблетка) */
.client-logo-item--more2 {
  gap: 6px; padding: 0 16px; height: 44px; border-radius: 999px;
  background: var(--color-accent); color: var(--color-primary);
  font-size: 15px; font-weight: 400; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(254, 225, 33, 0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.client-logo-item--more2 .more-arrow { width: 18px; height: 18px; }
.client-logo-item--more2:hover {
  background: var(--color-accent-hover); transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(254, 225, 33, 0.55);
}
.client-logo-item--more2:hover .more-arrow { transform: translateX(4px); }
.client-logo-item--more2:active { transform: translateY(0); }

/* Вариант 3 — кольцо-прогресс вокруг стрелки */
.client-logo-item--more3 {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-bglight); color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.client-logo-item--more3::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-accent), rgba(254,225,33,0) 130deg, var(--color-accent) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: more-ring-spin 3.2s linear infinite;
}
@keyframes more-ring-spin { to { transform: rotate(360deg); } }
.client-logo-item--more3:hover { transform: scale(1.07); }
.client-logo-item--more3:hover::before { animation-duration: 1s; }
.client-logo-item--more3:hover .more-arrow { transform: translateX(3px); }
.client-logo-item--more3:active { transform: scale(0.92); box-shadow: 0 1px 5px rgba(0,0,0,0.12); transition: transform 0.08s ease, box-shadow 0.08s ease; }

/* Вариант 4 — «стопка карточек» 3D */
.client-logo-item--more4 {
  position: relative; width: 64px; height: 64px; border-radius: 12px;
  /* левая половина — сплошной жёлтый (исходный вид), правая — жёлтый→белый.
     При наведении сдвигаем background-position, отчего жёлтый плавно перетекает в белый. */
  background-image: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 50%, #ffffff 100%);
  background-size: 200% 100%;
  background-position: left center;
  border: 1px solid rgba(0,0,0,0.06); color: var(--color-primary);
  box-shadow: 0 3px 8px rgba(0,0,0,0.14);
  transition: background-position 0.4s ease, transform 0.2s, box-shadow 0.2s;
}
.client-logo-item--more4::before,
.client-logo-item--more4::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px; z-index: -1;
  background: var(--color-surface); border: 1px solid #ECECEC;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s, opacity 0.15s;
}
.client-logo-item--more4::before { transform: translate(5px, -5px); }
.client-logo-item--more4::after { transform: translate(10px, -10px); }
.client-logo-item--more4:hover { background-position: right center; transform: translateY(-3px); box-shadow: 0 9px 20px rgba(0,0,0,0.16); }
.client-logo-item--more4:hover::before { transform: translate(6px, -7px); }
.client-logo-item--more4:hover::after { transform: translate(12px, -13px); }
/* стрелка переезжает из центра жёлтой карточки в центр верхней белой */
.client-logo-item--more4:hover .more-arrow { transform: translate(12px, -13px); }
/* эффект клика: карточка вдавливается, стопка слегка сжимается */
.client-logo-item--more4:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
/* при нажатии оставляем только 2 карточки: переднюю + одну белую */
.client-logo-item--more4:active::before { transform: translate(4px, -4px); opacity: 1; }
.client-logo-item--more4:active::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .client-logo-item--more3::before { animation: none; }
}

.client-logos-slider {
  grid-column: span 5;
  overflow: hidden;
}
.client-logos-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}
.client-logos-track .client-logo-item {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .client-logo-item { height: 76px; }
  .client-logo-item--more1, .client-logo-item--more3 { width: 52px; height: 52px; }
  .client-logo-item--more4 { width: 56px; height: 56px; }
  .client-logo-item--more2 { height: 40px; padding: 0 12px; font-size: 14px; }
}
.clients-cta {
  display: flex; justify-content: center; margin-top: 32px;
}
.clients-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--color-text);
  padding: 12px 24px; border-radius: 8px; transition: background 0.2s;
}
.clients-cta a:hover { background: var(--color-surface); }
.clients-cta .green-circle {
  width: 24px; height: 24px; border-radius: 50%; background: #34C759;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 500;
}

/* ===== FOOTER ===== */
.footer { background: var(--color-primary); color: #fff; padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-size: 14px; font-weight: 500; margin-bottom: 16px;
  color: #fff; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col a.footer-col-heading {
  font-size: 14px; font-weight: 500; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 24px; padding: 0;
}
.footer-col-brand .footer-logo {
  display: block; height: 18px; line-height: 18px;
  margin-top: -4px; margin-bottom: 20px;
}
.footer-col-brand .footer-logo img { display: block; height: 18px; width: auto; }
.footer-copy {
  font-size: 14px; color: rgba(255,255,255,0.5);
  padding: 4px 0; margin-bottom: 20px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 1; }
.footer-social img { display: block; width: 32px; height: 32px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-legal a {
  font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer-legal a:hover { color: #fff; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-legal { gap: 8px 16px; }
}

/* ===== POPUP ===== */
.popup-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.popup-overlay.open { display: flex; }
.popup {
  background: #fff; border-radius: 16px; padding: 40px; max-width: 480px;
  width: 90%; position: relative;
}
.popup-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; cursor: pointer; font-size: 24px; color: var(--color-text-secondary);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.2s;
}
.popup-close:hover { background: var(--color-surface); }
.popup h2 { font-size: 24px; line-height: 30px; margin-bottom: 24px; }
.popup-field { margin-bottom: 16px; }
.popup-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.popup-field input, .popup-field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 8px;
  font-family: var(--font-primary); font-size: 15px; transition: border-color 0.2s;
  outline: none;
}
.popup-field input:focus, .popup-field textarea:focus { border-color: var(--color-primary); }
.popup-field textarea { resize: vertical; min-height: 80px; }
.popup-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45; color: var(--color-text-secondary);
  margin: 4px 0 8px; cursor: pointer;
}
.popup-consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.popup-consent a { color: var(--color-primary); text-decoration: underline; }
.popup-error {
  font-size: 13px; color: #C2453C; background: #FCEDED;
  border: 1px solid #F3D2D2; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px;
}
.popup .btn { width: 100%; margin-top: 8px; }
.popup-success { text-align: center; padding: 32px 0; }
.popup-success p { font-size: 18px; font-weight: 500; color: var(--color-text); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* Cortex pulse lines */
@keyframes cortex-dash-move {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -30; }
}
@keyframes cortex-dash-move-rev {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 30; }
}
.cortex-pulse-line {
  stroke-dasharray: 8 6;
  animation: cortex-dash-move 1.2s linear infinite;
}
.cortex-pulse-line-rev {
  stroke-dasharray: 8 6;
  animation: cortex-dash-move-rev 1.2s linear infinite;
}

/* ===== INTERACTIVE DIAGRAM ===== */
.benefit-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.benefit-item:hover,
.benefit-item.active {
  background: rgba(254, 225, 33, 0.08);
  border-left-color: var(--color-accent);
  padding-left: 16px;
}
.benefit-arrow {
  font-size: 20px; color: var(--color-text-secondary);
  margin-left: 4px; transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.benefit-item:hover .benefit-arrow,
.benefit-item.active .benefit-arrow {
  color: var(--color-text); transform: translateX(4px);
}
.ring-segment {
  transition: fill 0.4s ease;
}
.icon-group {
  transition: opacity 0.4s ease;
}
