/* ========================= 
   БАЗА / ПЕРЕМЕННЫЕ
   ========================= */

:root {
  --bg: #ffffff;
  --text: #0a0f1a;
  --muted: #5a667a;

  --blue: #0b66ff;
  --blue-600: #1558d6;
  --blue-100: #e8f1ff;

  --card: #ffffff;
  --border: #e8eef7;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08),
            0 2px 10px rgba(16, 24, 40, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.page {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* =========================
   TOPBAR
   ========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.topbar__inner {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 4px 0;
  gap: 16px;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  width: clamp(120px, 10vw, 160px);
  height: auto;
}

/* NAV (десктоп) */

.nav {
  display: flex;
  margin-left: auto;
  gap: 18px;
}

.nav > a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7690;
  transition: color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.nav > a:hover {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  color: #0b1020;
  transform: translateY(-1px);
}

/* BUTTONS */

.btn {
  padding: 0 16px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  color: #0b1324;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, filter 0.18s ease;
}

.btn--cta {
  background: var(--blue);
  color: #fff;
  border: none;
}

.btn--cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.btn--wide {
  min-width: 230px;
}

/* ===== БУРГЕР ===== */

.burger {
  margin-left: 10px;
  width: 40px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(179, 192, 224, 0.7);
  background: #ffffff;
  display: none; /* по умолчанию скрыт (десктоп) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* =========================
   HERO ПРОГРАММЫ ОБУЧЕНИЯ
   ========================= */

.training-hero {
  position: relative;
  width: min(1200px, 92vw);
  margin: 36px auto 32px;
  min-height: 420px;

  border-radius: 28px;
  overflow: hidden;

  background: url("background2.gif") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.training-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.7)
  );
  backdrop-filter: blur(2px);
}

.training-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 72px 20px 64px;
}

.training-hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

.training-hero__content h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.3vw + 14px, 42px);
}

.training-hero__content p {
  max-width: 720px;
  margin: 0 auto 22px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.96;
}

/* =========================
   СЕКЦИИ
   ========================= */

.section {
  padding: 64px 0;
}

.section--muted {
  background: var(--blue-100);
}

.section--contacts {
  background: #ffffff;
}

.sectionTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: #1f2937;
  font-weight: 700;
  margin: -40px auto 18px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.sectionTitle {
  font-size: clamp(22px, 1.6vw + 12px, 32px);
  margin-bottom: 20px;
}

/* =========================
   GRID / CARDS / STEPS
   ========================= */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--step {
  gap: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
}

.stepCard {
  background: #ffffff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stepCard__num {
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* =========================
   CTA / FOOTER
   ========================= */

.ctaCard {
  background: #f9fafb;
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
}

.footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.link {
  color: #246dff;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .ctaCard {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .topbar__inner {
    min-height: 56px;
  }

  /* моб. меню: по умолчанию скрыто */
  .nav {
    position: fixed;
    inset: 56px 0 auto 0; /* прямо под шапкой */
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    border-bottom: 1px solid rgba(179, 192, 224, 0.6);
    z-index: 29;
    font-size: 15px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav a:hover {
    background: rgba(36, 109, 255, 0.08);
    color: #111729;
  }

  /* показываем бургер */
  .burger {
    display: inline-flex;
  }

  .training-hero {
    margin-top: 24px;
  }

  .training-hero__content {
    padding: 56px 16px 52px;
  }
}

/* ===== Reveal-анимация ===== */

.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Фокус */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 999px;
}

/* =========================
   PREMIUM PRICING TABLE (AUTO)
   ========================= */

/* фон секции */
.section.pricing {
  background: #f9fafb;
}

/* делаем карточку вокруг всего содержимого блока "Стоимость" */
.section.pricing > .container {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

/* тонкая градиентная рамка */
.section.pricing > .container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(11, 102, 255, 0.0), rgba(11, 102, 255, 0.45))
    border-box;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* чтобы контент не залез под псевдоэлемент */
.section.pricing > .container > * {
  position: relative;
  z-index: 1;
}

/* текст под заголовком */
.section.pricing .sectionTitle {
  margin-bottom: 12px;
}

.section.pricing p {
  font-size: 15px;
}

/* ------- ТАБЛИЦА ВНУТРИ БЛОКА "СТОИМОСТЬ" ------- */

.section.pricing table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  margin-top: 18px;
}

/* шапка с градиентом */
.section.pricing table thead th {
  padding: 14px 16px;
  font-weight: 600;
  color: #f9fafb;
  background: linear-gradient(90deg, #0B66FF 0%, #0843C5 50%, #0637AF 100%);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.section.pricing table thead th:first-child {
  border-top-left-radius: 14px;
}

.section.pricing table thead th:last-child {
  border-top-right-radius: 14px;
  border-right: none;
}

/* тело таблицы */
.section.pricing table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0; /* вертикальные разделители */
  color: #0f172a;
  background: #ffffff;
}

/* убрать правую границу у последнего столбца */
.section.pricing table tbody td:last-child {
  border-right: none;
}

/* чередование строк */
.section.pricing table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

/* hover по строке */
.section.pricing table tbody tr:hover td {
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

/* нижние скругления */
.section.pricing table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}
.section.pricing table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

/* выравнивание чисел справа */
.section.pricing table tbody td:nth-child(2),
.section.pricing table tbody td:nth-child(3),
.section.pricing table tbody td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* подпись под таблицей, если она есть */
.section.pricing .pricing__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}





/* ===== PRICING: мобильная версия (карточки вместо таблицы) ===== */

@media (max-width: 640px) {

  /* чуть компактнее паддинги карточки */
  .section.pricing > .container {
    padding: 20px 16px 22px;
    border-radius: 18px;
  }

  /* прячем шапку таблицы */
  .section.pricing table thead {
    display: none;
  }

  /* превращаем таблицу в stack-карточки */
  .section.pricing table,
  .section.pricing table tbody,
  .section.pricing table tr,
  .section.pricing table td {
    display: block;
    width: 100%;
  }

  .section.pricing table tr {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    background: #ffffff;
  }

  .section.pricing table tbody td {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 14px;
  }

  /* у последней ячейки в карточке убираем нижнюю границу */
  .section.pricing table tbody tr:last-child td:last-child {
    border-bottom: none;
  }

  /* подпись над значением: берём из data-label */
  .section.pricing table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
  }

  /* на мобиле все значения выравниваем влево */
  .section.pricing table tbody td:nth-child(2),
  .section.pricing table tbody td:nth-child(3),
  .section.pricing table tbody td:nth-child(4) {
    text-align: left;
  }
}

