
/* ── CSS-переменные ── */
:root {
  --gb-orange: #F5A623;
  --gb-orange-dark: #E09000;
  --gb-orange-light: #FFF4E0;
  --gb-black: #111111;
  --gb-gray-dark: #333333;
  --gb-gray: #666666;
  --gb-gray-light: #999999;
  --gb-bg: #FFFFFF;
  --gb-bg-card: #F5F5F5;
  --gb-error: #CC4444;
  --gb-success: #2E7D32;
  --gb-radius: 20px;
  --gb-radius-sm: 12px;
  --gb-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Контейнер ── */
.gb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Типографика ── */
.gb-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gb-black);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 24px;
}

.gb-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gb-black);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 20px;
}

.gb-h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gb-black);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 12px;
}

.gb-h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--gb-black);
  margin-bottom: 8px;
}

.gb-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gb-gray-dark);
  margin-bottom: 16px;
}

.gb-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gb-gray);
  max-width: 640px;
}

.gb-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gb-gray-light);
}

/* ── Секции ── */
.gb-section {
  padding: 80px 0;
}

.gb-section-continuation {
  padding-top: 40px;
  padding-bottom: 80px;
}

.gb-section-header {
  margin-bottom: 48px;
  max-width: 720px;
}

/* ── Акцентное подчеркивание (оранжевое) ── */
.gb-accent {
  color: var(--gb-orange);
  position: relative;
  display: inline-block;
}

.gb-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gb-orange);
  border-radius: 2px;
}

/* ── Лейбл с номером ── */
.gb-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gb-orange);
  margin-bottom: 16px;
}

.gb-label .gb-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gb-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* ── Карточки ── */
.gb-card {
  background: var(--gb-bg-card);
  border-radius: var(--gb-radius);
  padding: 40px;
  transition: var(--gb-transition);
}

.gb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

/* ── Сетки ── */
.gb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-width: 0;
}

.gb-grid-2 > * {
  min-width: 0;
}

.gb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-width: 0;
}

.gb-grid-3 > * {
  min-width: 0;
}

.gb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-width: 0;
}

.gb-grid-4 > * {
  min-width: 0;
}

/* ── Hero: flex с фиксированной шириной изображения ── */
.gb-hero-row {
  display: flex;
  align-items: center;
  gap: 60px;
  min-width: 0;
}

.gb-hero-content {
  flex: 1 1 55%;
  min-width: 0;
}

.gb-hero-visual {
  flex: 0 0 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--gb-radius);
}

/* ── Feature row (текст + изображение) ── */
.gb-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  min-width: 0;
}

.gb-feature-row:last-child {
  margin-bottom: 0;
}

.gb-feature-row.gb-reverse {
  direction: rtl;
}

.gb-feature-row.gb-reverse > * {
  direction: ltr;
}

.gb-feature-row > * {
  min-width: 0;
}

/* ── Кнопки (обязательно !important на цветах) ── */
.gb-btn,
a.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--gb-transition);
  white-space: normal;
  background: var(--gb-orange);
  color: #ffffff !important;
  flex-shrink: 0;
}

.gb-btn:hover,
a.gb-btn:hover {
  background: var(--gb-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.35);
  color: #ffffff !important;
}

.gb-btn.gb-outline,
a.gb-btn.gb-outline {
  background: var(--gb-orange-light) !important;
  color: #000A0F !important;
  border: 2px solid var(--gb-orange) !important;
}

.gb-btn.gb-outline:hover,
a.gb-btn.gb-outline:hover {
  background: var(--gb-orange) !important;
  color: #ffffff !important;
  border-color: var(--gb-orange) !important;
}

/* ── Метрические карточки ── */
.gb-metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.gb-metric-card {
  background: var(--gb-bg-card);
  border-radius: var(--gb-radius);
  padding: 24px;
  text-align: center;
}

.gb-metric-card .gb-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gb-orange);
  display: block;
  margin-bottom: 6px;
}

.gb-metric-card .gb-label-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--gb-gray);
  line-height: 1.4;
}

/* ── Список критериев с чекбоксами ── */
.gb-criteria-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.gb-criteria-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--gb-gray-dark);
}

.gb-criteria-list li:last-child {
  border-bottom: none;
}

.gb-criteria-list .gb-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gb-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── SVG-галочка (для вставки внутри .gb-icon) ──
   <svg class="gb-checkmark" viewBox="0 0 24 24" fill="none" stroke="#F5A623" stroke-width="2">
     <polyline points="20 6 9 17 4 12"/>
   </svg>
*/
.gb-checkmark {
  width: 20px;
  height: 20px;
}

/* ── Блок цитаты ── */
.gb-quote-block {
  background: var(--gb-bg-card);
  border-radius: var(--gb-radius);
  padding: 40px;
  margin: 40px 0;
  position: relative;
}

.gb-quote-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  width: 60px;
  height: 4px;
  background: var(--gb-orange);
  border-radius: 0 0 4px 4px;
}

.gb-quote-block p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-style: italic;
  color: var(--gb-gray-dark);
  margin-bottom: 16px;
}

.gb-quote-block .gb-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gb-black);
}

/* ── Highlight box (оранжевый акцент) ── */
.gb-highlight-box {
  background: var(--gb-orange-light);
  border-radius: var(--gb-radius);
  padding: 32px;
  margin: 32px 0;
}

.gb-highlight-box h4 {
  color: var(--gb-orange-dark);
  margin-bottom: 12px;
}

.gb-highlight-box p {
  color: var(--gb-gray-dark);
  margin-bottom: 0;
  font-size: 15px;
}

/* ── Tip box (подсказка с иконкой) ── */
.gb-tip-box {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--gb-bg-card);
  border-radius: var(--gb-radius);
  margin: 28px 0;
  align-items: flex-start;
}

.gb-tip-box .gb-tip-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--gb-radius-sm);
  background: var(--gb-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gb-tip-box h4 {
  margin-bottom: 8px;
}

.gb-tip-box p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ── Pipeline / алгоритм (горизонтальные шаги) ── */
.gb-pipeline,
.gb-algo-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 32px 0;
  border-radius: var(--gb-radius);
  overflow: hidden;
}

.gb-pipeline-step,
.gb-algo-step {
  flex: 1;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.gb-pipeline-step:nth-child(1),
.gb-algo-step:nth-child(1) {
  background: var(--gb-orange-light);
}

.gb-pipeline-step:nth-child(2),
.gb-algo-step:nth-child(2) {
  background: #FFE8CC;
}

.gb-pipeline-step:nth-child(3),
.gb-algo-step:nth-child(3) {
  background: #FFD9A8;
}

.gb-pipeline-step:nth-child(4),
.gb-algo-step:nth-child(4) {
  background: #FFCC85;
}

.gb-pipeline-step:nth-child(5),
.gb-algo-step:nth-child(5) {
  background: var(--gb-orange);
  color: white;
}

.gb-pipeline-step .gb-step-num,
.gb-algo-step .gb-step-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  opacity: 0.7;
}

.gb-algo-step .gb-step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gb-algo-step .gb-step-desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}

.gb-pipeline-arrow,
.gb-algo-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  background: inherit;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ── Таблица данных ── */
.gb-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--gb-radius);
}

.gb-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.gb-table-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.gb-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--gb-orange);
  border-radius: 3px;
}

.gb-data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.gb-data-table thead th {
  background: var(--gb-orange);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gb-data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: var(--gb-gray-dark);
}

.gb-data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ── Шкала оценок (E→A) ── */
.gb-grade-scale {
  display: flex;
  gap: 8px;
  margin: 28px 0;
}

.gb-grade-item {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--gb-radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

.gb-grade-item.gb-e {
  background: #FFF0F0;
  color: #CC4444;
}

.gb-grade-item.gb-d {
  background: #FFF8F0;
  color: #DD8844;
}

.gb-grade-item.gb-c {
  background: #FFFDF0;
  color: var(--gb-orange);
}

.gb-grade-item.gb-b {
  background: #F0FFF4;
  color: #44AA66;
}

.gb-grade-item.gb-a {
  background: #E8F5E9;
  color: #2E7D32;
}

.gb-grade-item .gb-letter {
  font-size: 28px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

/* ── Закрывающая секция ── */
.gb-closing-section {
  padding: 80px 0;
}

/* ── Анимация появления (IntersectionObserver) ──
   JS для активации:
   document.querySelectorAll('.gb-fade-in').forEach(el => {
     new IntersectionObserver((entries, obs) => {
       entries.forEach(e => { if(e.isIntersecting){ e.target.classList.add('gb-visible'); obs.unobserve(e.target); } });
     }, {rootMargin:'0px 0px -60px 0px', threshold:0.1}).observe(el);
   });
*/
.gb-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.gb-fade-in.gb-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════ */

/* ── Планшет (до 1024px) ── */
@media (max-width: 1024px) {
  .gb-feature-row,
  .gb-grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gb-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gb-feature-row.gb-reverse {
    direction: ltr;
  }

  .gb-hero-row {
    gap: 40px;
  }

  .gb-hero-visual {
    flex: 0 0 340px;
  }
}

/* ── Мобильный (до 768px) ── */
@media (max-width: 768px) {
  .gb-container {
    padding: 0 16px;
  }

  .gb-section {
    padding: 50px 0;
  }

  .gb-section-continuation {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .gb-grid-3,
  .gb-grid-4 {
    grid-template-columns: 1fr;
  }

  .gb-metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gb-pipeline,
  .gb-algo-steps {
    flex-direction: column;
  }

  .gb-pipeline-arrow,
  .gb-algo-arrow {
    display: none;
  }

  .gb-grade-scale {
    flex-wrap: wrap;
  }

  .gb-grade-item {
    flex: 1 1 30%;
  }

  .gb-tip-box {
    flex-direction: column;
  }

  .gb-data-table {
    font-size: 12px;
  }

  .gb-quote-block {
    padding: 24px 20px;
  }

  .gb-quote-block::before {
    left: 20px;
  }

  /* Hero вертикально */
  .gb-hero-row {
    flex-direction: column;
  }

  .gb-hero-content {
    flex: 1 1 auto;
    order: 1;
  }

  .gb-hero-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
    order: 2;
    margin: 0 auto;
  }

  /* Кнопки на всю ширину */
  .gb-btn,
  a.gb-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
  }
}

/* ── Мелкий мобильный (до 480px) ── */
@media (max-width: 480px) {
  .gb-metric-cards {
    grid-template-columns: 1fr;
  }

  .gb-grade-item {
    flex: 1 1 100%;
  }

  .gb-h1 {
    font-size: 28px;
  }

  .gb-h2 {
    font-size: 24px;
  }

  .gb-h3 {
    font-size: 20px;
  }

  .gb-card {
    padding: 24px 20px;
  }

  .gb-hero-visual {
    max-width: 100%;
  }
}
