/* ============================================================================
   INSIDER.pm — страница «Обучение»
   ============================================================================
   Структура:
   1. Дизайн-токены (CSS переменные)
   2. Reset + базовая типографика
   3. Page grid + site header (дубль из /styles.css главной)
   4. Контент страницы обучения: секции, карточки, тарифы и пр.
   ============================================================================ */

/* ============================================================================
   1. ДИЗАЙН-ТОКЕНЫ
   ============================================================================ */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-border: #bfdbfe;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --red-50:    #fef2f2;
  --red-200:   #fecaca;
  --red-500:   #ef4444;
  --red-600:   #dc2626;
  --yellow-50: #fefce8;
  --yellow-200:#fde68a;
  --yellow-600:#ca8a04;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --purple-600:#9333ea;
  --cyan-600:  #0891b2;

  --radius:    12px;
  --radius-lg: 16px;
  --font-main: 'Inter', sans-serif;
}

/* ============================================================================
   2. RESET + БАЗОВАЯ ТИПОГРАФИКА
   ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: #f5f0e6;
  color: var(--slate-600);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--slate-900);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

strong, b { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================================
   3. PAGE GRID + SITE HEADER
   ----------------------------------------------------------------------------
   Базовая сетка .page-grid и шапка header.site-header — единый источник в
   /elements/layout.css (подключается перед этим файлом). Здесь остаётся
   только размещение контентного блока .edu-content в сетке.
   ============================================================================ */
.page-grid > .edu-content {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .page-grid > .edu-content { grid-column: span 12; }
}

/* ============================================================================
   4. КОНТЕНТ СТРАНИЦЫ ОБУЧЕНИЯ
   ============================================================================ */

/* --- Контейнер контента --- */
.edu-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* --- Секция: общий «лист» --- */
.edu-section {
  background: #ffffff;
  border: 1px solid #dde1e8;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.edu-section--muted { background: var(--slate-50); }

.edu-section--hero {
  text-align: center;
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 100%),
    #ffffff;
}

@media (min-width: 768px) {
  .edu-section { padding: 3rem 2.5rem; }
}

/* --- Заголовок секции (центрированный блок «h2 + lead») --- */
.edu-section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* --- Завершающий блок секции: то же центрирование, но отбивка сверху --- */
.edu-section__foot {
  text-align: center;
  margin-top: 3rem;
}

.edu-section__foot > :last-child { margin-bottom: 0; }

/* --- Типографика --- */
.edu-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.edu-h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.edu-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.accent          { color: var(--primary); }
.accent--red     { color: var(--red-500); }
.accent--green   { color: var(--green-600); }

.edu-lead {
  font-size: 1.0625rem;
  color: var(--slate-600);
  max-width: 50rem;
  margin: 0 auto;
  line-height: 1.6;
}

.edu-lead--hero {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.edu-note {
  margin-top: 2.5rem;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--slate-500);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .edu-h1 { font-size: 3.25rem; }
  .edu-h2 { font-size: 2rem; }
  .edu-lead--hero { font-size: 1.25rem; }
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--secondary {
  border-color: var(--slate-200);
  background-color: #fff;
  color: var(--slate-700);
}

.btn--secondary:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.btn--large {
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
}

.btn--block { width: 100%; }

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- Сетка из 3 «статистических» карточек --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.stat {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s;
}

.stat:hover {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.stat__value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.stat__value--green { color: var(--green-600); }

.stat__label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.stat__text {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* --- Сетка «Проблема»: 2 колонки с цветными вариантами --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.problem-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s;
}

.problem-card .icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-card .icon-box svg { width: 1.5rem; height: 1.5rem; }

.problem-card p { color: var(--slate-600); line-height: 1.65; }

.problem-card--red  .icon-box { background: var(--red-50);    color: var(--red-500); }
.problem-card--red:hover      { border-color: var(--red-200); }
.problem-card--red:hover .edu-h3 { color: var(--red-600); }

.problem-card--yellow .icon-box { background: var(--yellow-50); color: var(--yellow-600); }
.problem-card--yellow:hover     { border-color: var(--yellow-200); }
.problem-card--yellow:hover .edu-h3 { color: var(--yellow-600); }

/* --- Секция «Решение»: 2-колоночный split --- */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .solution-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.solution-h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .solution-h2 { font-size: 2.25rem; }
}

.solution-intro {
  font-size: 1.0625rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.solution-list {
  list-style: none;
  padding: 0;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--slate-700);
}

.solution-list svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.solution-illustration {
  position: relative;
}

.solution-illustration .glow {
  position: absolute;
  inset: 0;
  background: var(--primary);
  filter: blur(64px);
  opacity: 0.1;
  border-radius: 9999px;
  transform: translate(2.5rem, 2.5rem);
  z-index: 0;
}

.solution-illustration .panel {
  position: relative;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1;
}

.solution-illustration .panel .panel-icon {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.solution-illustration .panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.solution-illustration .panel p {
  color: var(--slate-500);
  margin-bottom: 0.25rem;
}

/* --- Сетка «Полный арсенал»: feature-cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-icon svg { width: 1.75rem; height: 1.75rem; }

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(3deg); }

.feature-icon--blue   { background: var(--primary);     box-shadow: 0 10px 25px -5px rgba(37,  99, 235, 0.4); }
.feature-icon--purple { background: var(--purple-600);  box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.4); }
.feature-icon--cyan   { background: var(--cyan-600);    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.4); }

.feature-card p { color: var(--slate-600); line-height: 1.65; }

/* --- Тарифный блок --- */
.pricing-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: white;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card__badge {
  background: var(--primary);
  color: white;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--slate-900);
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin-bottom: 0.875rem;
}

.pricing-list li::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.pricing-list li.is-divider {
  font-weight: 600;
  color: var(--primary);
}

.pricing-list li.is-divider::before {
  background-image: none;
  background: transparent;
}

/* --- Блок «Требования» --- */
.requirements {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.875rem;
  color: var(--slate-500);
  font-size: 0.875rem;
  font-weight: 500;
}

.requirements > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirements svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 768px) {
  .requirements { flex-direction: row; gap: 2rem; }
}
