/* ── Sensei Design System — tokens ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@700;800;900&family=Nunito:wght@400;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* Palette */
  --ink:            #2E1A0E;
  --brown-900:      #3A2415;
  --brown-700:      #5A4632;
  --brown-500:      #8A7763;
  --brown-300:      #B9A892;
  --cream-50:       #FFFBF2;
  --cream-100:      #FBF3E4;
  --cream-200:      #F3E7D0;
  --sand-300:       #E7D5B8;
  --sand-400:       #D6BF9A;
  --ginger-500:     #FF8C1A;
  --ginger-600:     #F57400;
  --ginger-700:     #CC5E00;
  --ginger-100:     #FFE6C7;
  --lavender-400:   #A98AD4;
  --grape-500:      #5B2E9D;
  --cyan-500:       #00A6CE;
  --cyan-700:       #006B89;
  --gold-500:       #FFC94D;
  --coral-500:      #F47B6A;

  /* Semantic */
  --color-dark:         var(--ink);
  --color-primary:      var(--ginger-500);
  --color-primary-dark: var(--ginger-600);
  --color-light:        var(--cream-50);
  --color-white:        #fff;
  --radius:             14px;

  /* Surfaces */
  --bg-body:        var(--cream-50);
  --bg-card:        #fff;
  --bg-card-hover:  var(--cream-100);
  --bg-section-alt: var(--cream-100);
  --text-main:      var(--brown-700);
  --text-muted:     var(--brown-500);
  --text-heading:   var(--brown-900);
  --border-card:    var(--sand-300);

  /* Elevation */
  --shadow-sm:  0 1px 2px rgba(46,26,14,.08);
  --shadow-md:  0 4px 12px rgba(46,26,14,.10);
  --shadow-lg:  0 12px 32px rgba(46,26,14,.14);
  --pop:        4px 4px 0 var(--ink);
  --pop-sm:     2px 2px 0 var(--ink);
  --pop-lg:     6px 6px 0 var(--ink);
}

/* ─── Base ─────────────────────────────────────────────── */
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brown-900);
}

.accent { color: var(--ginger-500); }

a { color: var(--cyan-700); }
a:hover { color: var(--ginger-600); }

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  background-color: var(--cream-50) !important;
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink), var(--shadow-sm);
}
.navbar-brand {
  font-family: 'Rubik', sans-serif;
  color: var(--ginger-500) !important;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.navbar-brand.home-link {
  color: var(--brown-700) !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
}
.navbar-brand.home-link:hover {
  color: var(--ginger-500) !important;
}
.navbar-nav .nav-link {
  color: var(--brown-700) !important;
  font-weight: 600;
  transition: color 0.15s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ginger-500) !important;
}
.navbar-toggler {
  border-color: var(--sand-400);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232E1A0E' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--cream-100);
  border-bottom: 2px solid var(--ink);
  color: var(--brown-900);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(169,138,212,0.15);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brown-900);
}
.hero .subtitle {
  color: var(--brown-500);
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
.hero .lead {
  color: var(--brown-700);
  font-size: 1.1rem;
}
.hero .accent { color: var(--ginger-500); }

/* ─── Hero info card ────────────────────────────────────── */
.hero-info-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--pop);
  padding: 20px 22px;
  color: var(--brown-700);
}
.hero-info-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.hero-info-row {
  font-size: 0.9rem;
  color: var(--brown-700);
}
.hero-info-qr-row {
  text-align: center;
}
.hero-info-qr {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  opacity: 0.9;
}
.btn-hero-action {
  display: block;
  text-align: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn-hero-action:hover { transform: translate(-1px,-1px); box-shadow: var(--pop); }
.btn-hero-action:active { transform: translate(2px,2px); box-shadow: none; }
.btn-hero-primary {
  background: var(--ginger-500);
  color: var(--ink);
  box-shadow: var(--pop-sm);
}
.btn-hero-secondary {
  background: var(--cream-100);
  color: var(--brown-700);
}

/* ─── Page header (inner pages) ────────────────────────── */
.page-header {
  background: var(--cream-100);
  border-bottom: 2px solid var(--ink);
  color: var(--brown-900);
  padding: 60px 0 50px;
}
.page-header h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brown-900);
}
.page-header .lead { color: var(--brown-700); }
.page-header .badge-section {
  background: var(--ginger-100);
  color: var(--ginger-700);
  border: 1.5px solid var(--ginger-500);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35em 0.8em;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ─── Section ───────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-alt { background-color: var(--bg-section-alt); }

.section-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 2rem;
  font-size: 1.6rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--ginger-500);
  margin-top: 8px;
  border-radius: 2px;
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  transition: transform 0.08s, box-shadow 0.08s;
  height: 100%;
  color: var(--text-main);
}
.card:hover {
  transform: translate(-1px,-1px);
  box-shadow: var(--pop-lg);
  background: var(--bg-card-hover);
}
.card:active {
  transform: translate(2px,2px);
  box-shadow: none;
}
.card-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  display: block;
}
.card-title { font-weight: 700; color: var(--text-heading); }
.text-muted { color: var(--text-muted) !important; }

/* Feature cards on main page */
.feature-card { border-top: 4px solid var(--ginger-500); }

/* ─── Timeline ──────────────────────────────────────────── */
.timeline-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.timeline-item {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  text-align: center;
  padding: 1rem 0.5rem;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 28px;
  font-size: 1.4rem;
  color: var(--ginger-500);
  line-height: 1;
}
.timeline-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ginger-500);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  box-shadow: var(--pop-sm);
}
.timeline-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}
.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Track steps (путь обучения — два трека) ───────────── */
.track-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.track-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--pop-sm);
}
.track-step-future {
  opacity: 0.6;
  border-style: dashed;
}
.track-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.track-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.track-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.track-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--sand-400);
  line-height: 1;
  padding: 4px 0;
}

/* ─── Token badge ───────────────────────────────────────── */
.token-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1.5px solid #f0c040;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b8860b;
  white-space: nowrap;
}
.token-reward img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.token-reward-lg {
  font-size: 0.9rem;
  padding: 6px 14px 6px 8px;
}
.token-reward-lg img {
  width: 26px;
  height: 26px;
}
/* Блок системы вознаграждений */
.reward-system-block {
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
  border: 2px solid #f0c040;
  border-radius: 14px;
  padding: 28px 32px;
}
.reward-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #e8d88a;
}
.reward-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.reward-step-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.reward-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 2px;
}
.reward-step-desc {
  font-size: 0.82rem;
  color: #666;
}
/* Таблица токенов в задачах */
.task-tokens-board {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--pop-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.task-tokens-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--sand-300);
  gap: 12px;
}
.task-tokens-row:last-child { border-bottom: none; }
.task-tokens-row-title {
  font-size: 0.9rem;
  color: var(--text-main);
  flex: 1;
}

/* ─── PDF embed ─────────────────────────────────────────── */
.pdf-embed-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.pdf-embed {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: none;
  display: block;
}

/* ─── Video embed ───────────────────────────────────────── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d1b2a;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  gap: 0.5rem;
}
.video-placeholder .play-icon { font-size: 2.5rem; opacity: 0.4; }

/* ─── Download buttons ──────────────────────────────────── */
.btn-download {
  background-color: var(--ink);
  color: var(--cream-50);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: var(--pop-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn-download:hover { transform: translate(-1px,-1px); box-shadow: var(--pop); color: var(--cream-50); }
.btn-download:active { transform: translate(2px,2px); box-shadow: none; }
.btn-download.pdf { background-color: #c0392b; }
.btn-download.ev3 { background-color: #16a085; }
.btn-download.zip { background-color: var(--grape-500); }
.btn-download.msi { background-color: #1a5276; }

/* ─── Accordion ─────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background-color: var(--ginger-100);
  color: var(--brown-900);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(255,140,26,0.3);
}
.accordion-button { font-weight: 700; color: var(--brown-700); }

/* ─── Model card (LEGO) ─────────────────────────────────── */
.model-preview { width: 100%; height: 200px; object-fit: contain; background: rgba(255,255,255,0.05); border-radius: var(--radius) var(--radius) 0 0; display: block; padding: 8px; }
.model-card .card-body { padding: 1rem 1.1rem; }
.model-card .card-title { font-size: 1rem; margin-bottom: 0.4rem; }
.model-card .downloads { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }

/* ─── Software download box ─────────────────────────────── */
.software-box {
  background: var(--cream-100);
  border: 2px solid var(--ink);
  box-shadow: var(--pop);
  color: var(--brown-900);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.software-box .sw-icon { font-size: 2.5rem; flex-shrink: 0; }
.software-box .sw-title { font-weight: 700; font-size: 1.1rem; color: var(--brown-900); }
.software-box .sw-desc { color: var(--brown-500); font-size: 0.9rem; }

/* ─── Coming soon ───────────────────────────────────────── */
.coming-soon {
  background: var(--cream-200);
  border: 2px solid var(--ink);
  box-shadow: var(--pop);
  color: var(--brown-900);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.coming-soon .cs-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background-color: var(--ink);
  border-top: 2px solid var(--ink);
  color: rgba(255,251,242,0.65);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}
footer .footer-title {
  font-family: 'Rubik', sans-serif;
  color: var(--ginger-500);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
footer a { color: rgba(255,251,242,0.7); text-decoration: none; }
footer a:hover { color: var(--ginger-500); }
footer hr { border-color: rgba(255,255,255,0.12); }

/* ─── Лендинг (index.html) ───────────────────────────── */
.landing-screen {
  min-height: 100vh;
  background: var(--cream-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 3rem;
  gap: 2rem;
}
.landing-info {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--pop);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}
.landing-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.landing-info-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.landing-info-item {
  font-size: 0.88rem;
  color: var(--brown-700);
}
.landing-info-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.landing-info-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--brown-700);
  background: var(--cream-100);
  box-shadow: var(--pop-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.landing-info-btn:hover {
  transform: translate(-1px,-1px);
  box-shadow: var(--pop);
  color: var(--brown-900);
}
.landing-info-btn:active { transform: translate(2px,2px); box-shadow: none; }
.landing-info-btn--primary {
  background: var(--ginger-500);
  color: var(--ink);
}
.landing-info-btn--primary:hover {
  background: var(--ginger-600);
  color: var(--ink);
}
.landing-info-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.landing-info-qr img {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  border: 2px solid var(--sand-400);
  transition: transform 0.2s;
}
.landing-info-qr:hover img { transform: scale(1.04); }
.landing-info-qr span {
  font-size: 0.72rem;
  color: var(--brown-500);
  text-align: center;
}
@media (max-width: 700px) {
  .landing-info { grid-template-columns: 1fr; }
  .landing-info-qr { flex-direction: row; justify-content: flex-start; }
  .landing-info-qr img { width: 72px; height: 72px; }
}
.landing-hero {
  text-align: center;
  color: var(--brown-900);
  max-width: 600px;
}
.landing-h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0;
  color: var(--brown-900);
}
.landing-lead {
  color: var(--brown-500);
  font-size: 1.05rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.landing-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}
@media (min-width: 640px) {
  .landing-panels { grid-template-columns: repeat(3, 1fr); }

  /* Уроки — первый ряд, одна по центру, чуть крупнее */
  .landing-panel--featured {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(420px, 100%);
  }
  .landing-panel--featured .landing-panel-img {
    aspect-ratio: 3 / 2;
  }
  .landing-panel--featured .landing-panel-tag  { font-size: 1.5rem; }
  .landing-panel--featured .landing-panel-desc { font-size: 0.88rem; }
}
@media (max-width: 639px) {
  .landing-h1 { font-size: 1.8rem; }
}
.landing-panel {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  text-decoration: none;
  color: var(--brown-900);
  border: 2.5px solid var(--ink);
  box-shadow: var(--pop);
  transition: transform 0.08s, box-shadow 0.08s;
}
.landing-panel:hover {
  color: var(--brown-900);
  transform: translate(-2px,-2px);
  box-shadow: var(--pop-lg);
}
.landing-panel:active {
  transform: translate(2px,2px);
  box-shadow: none;
  color: var(--brown-900);
}
.landing-panel:hover .landing-panel-img img {
  transform: scale(1.05);
}
.landing-panel-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-50);
}
.landing-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.landing-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--cream-50);
  color: var(--brown-900);
  border-radius: 0 0 13px 13px;
}
.landing-panel-tag {
  font-family: 'Rubik', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brown-900);
}
.landing-panel-desc  { font-size: 0.82rem; color: var(--brown-500); }

.landing-panel--lessons   { background: var(--cream-50); }
.landing-panel--about     { background: var(--cream-50); }
.landing-panel--minecraft { background: var(--cream-50); }
.landing-panel--store     { background: var(--cream-50); }

/* Featured (уроки) — шире и заметнее */
.landing-panel--featured {
  border-color: var(--ginger-500);
  border-width: 3px;
  box-shadow: var(--pop-lg);
}
.landing-panel--featured:hover {
  box-shadow: 8px 8px 0 var(--ink);
}
.landing-panel--featured .landing-panel-tag {
  font-size: 1.4rem;
}
.landing-panel--featured .landing-panel-tag {
  color: var(--ginger-600);
}

/* Бейдж "УРОК" поверх картинки */
.landing-panel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ginger-500);
  color: var(--ink);
  font-family: 'Rubik', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  box-shadow: var(--pop-sm);
  pointer-events: none;
}
.landing-panel-img { position: relative; }

@media (max-width: 639px) {
  .landing-panel { flex-direction: row; align-items: stretch; }
  .landing-panel-img {
    width: 110px;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-radius: 13px 0 0 13px;
  }
  .landing-panel-body {
    justify-content: center;
    border-radius: 0 13px 13px 0;
  }
  .landing-panel-tag   { font-size: 1.05rem; }
  .landing-panel-badge { display: none; }
}

/* ─── Картинки-иконки в карточках ──────────────────────── */
.card-icon-wrap {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-subject-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.materials-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.materials-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.materials-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.materials-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ─── Subject cards (lessons.html) ──────────────────────── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.subject-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--pop);
  overflow: hidden;
  border-top: 4px solid var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.subject-card:hover {
  transform: translate(-2px,-2px);
  box-shadow: var(--pop-lg);
  background: var(--bg-card-hover);
  color: var(--text-main);
}
.subject-card:hover .subject-card-img {
  background: var(--bg-card-hover);
}
.subject-card--scratch  { border-top-color: #ff8c00; }
.subject-card--lego     { border-top-color: #e63946; }
.subject-card--3dprint  { border-top-color: var(--cyan-500); }

.subject-card-stage {
  align-self: flex-start;
  margin: 1rem 0 0 1rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.subject-card-img {
  width: 100%;
  background: #fff;
  padding: 2rem 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subject-card-img img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.subject-card-body {
  padding: 1rem 1.5rem 1.6rem;
  width: 100%;
}
.subject-card-title { font-size: 1.3rem; font-weight: 800; color: var(--text-heading); margin-bottom: 0.3rem; }
.subject-card-sub   { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.subject-card-meta  { font-size: 0.82rem; color: var(--text-muted); }

/* ─── Lessons list (lessons.html + scratch.html) ────────── */
.lessons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .lessons-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .lessons-list { grid-template-columns: repeat(3, 1fr); }
}

.lessons-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop-sm);
  text-decoration: none;
  color: var(--text-main);
  border-left: 5px solid var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.lessons-card:hover {
  transform: translate(-1px,-1px);
  box-shadow: var(--pop);
  background: var(--bg-card-hover);
  color: var(--text-main);
}
.lessons-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.lessons-card-icon img { width: 56px; height: 56px; object-fit: contain; }
.lessons-card-body { flex: 1; min-width: 0; }
.lessons-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); }
.lessons-card-sub   { font-size: 0.9rem; color: var(--brown-500); }
.lessons-card-meta  { font-size: 0.8rem; color: var(--brown-300); margin-top: 2px; }
.lessons-card-arrow { font-size: 1.3rem; color: var(--brown-300); flex-shrink: 0; }

/* ─── Кнопка теории в page-header ───────────────────────── */
.btn-theory-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-200);
  color: var(--brown-700);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--pop-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn-theory-link:hover {
  transform: translate(-1px,-1px);
  box-shadow: var(--pop);
  color: var(--brown-900);
}

/* ─── Разделитель перед финальным заданием ───────────────── */
.lesson-final-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brown-300);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.5rem 0;
}
.lesson-final-divider::before,
.lesson-final-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--sand-300);
  border-radius: 1px;
}

/* ─── Финальная карточка задания ─────────────────────────── */
.lessons-card--final {
  grid-column: 1 / -1;
  max-width: 480px;
  justify-self: center;
  width: 100%;
  background: var(--ginger-100);
  border-left-color: var(--ginger-500) !important;
}
.lessons-card--final .lessons-card-title { color: var(--ginger-700); }
.lessons-card--final .lessons-card-arrow { color: var(--ginger-500); }

.lesson-card-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Lesson video list (scratch.html) ──────────────────── */
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
}
.lesson-item {
  overflow: hidden;
}
.lesson-video { width: 100%; }
.lesson-info  { padding: 1.2rem 1.4rem; }

/* ─── Theory list (Scratch) ─────────────────────────────── */
.theory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.theory-item {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--pop-sm);
}
.theory-item-body {
  flex: 1;
}
.theory-item-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}
.theory-item-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
@media (max-width: 576px) {
  .theory-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ─── Track header (обучающие треки) ──────────────────────── */
.track-header {
  border-left: 4px solid var(--track-color, #ccc);
  padding-left: 12px;
}
.track-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--track-color, var(--text-heading));
}
.track--robotics { --track-color: #ff8c00; }
.track--3dprint  { --track-color: var(--color-primary); }

/* ─── Materials cards border accent ─────────────────────── */
.materials-card--scratch { border-left: 4px solid #ff8c00; }
.materials-card--lego    { border-left: 4px solid #e63946; }
.materials-card--3dprint { border-left: 4px solid var(--color-primary); }

/* ─── Card accent borders (content pages) ───────────────── */
.card--accent-blue   { border-left: 4px solid var(--color-primary); }
.card--accent-yellow { border-left: 4px solid #f59e0b; }
.card--accent-green  { border-left: 4px solid #22c55e; }

/* ─── Badge "в планах" ───────────────────────────────────── */
.badge-planned {
  background: #ffc107;
  color: #333;
  font-size: 0.7rem;
  vertical-align: middle;
}

/* ─── Token images in reward display ─────────────────────── */
.token-display-img { width: 30px; height: 30px; }

/* ─── QR code image (footer) ─────────────────────────────── */
.footer-qr {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  opacity: 0.9;
}

/* ─── Footer contact button ──────────────────────────────── */
.btn-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,251,242,0.75);
  text-decoration: none;
  border: 1px solid rgba(255,251,242,0.25);
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-footer-contact:hover {
  color: var(--ginger-500);
  border-color: rgba(255,140,26,0.4);
}

/* ─── Utilities ─────────────────────────────────────────── */
.text-primary-custom { color: var(--color-primary) !important; }
.bg-dark-custom { background-color: var(--color-dark); }

/* ─── Minecraft page ─────────────────────────────────────── */
.mc-page { background: #0f1a0f; min-height: 100vh; }
.mc-page .navbar {
  background-color: rgba(0,0,0,0.75) !important;
  border-bottom-color: rgba(74,222,128,0.3) !important;
  box-shadow: 0 2px 0 rgba(0,0,0,0.5) !important;
}
.mc-page .navbar-brand.home-link { color: rgba(255,255,255,0.8) !important; }
.mc-page .navbar-brand.home-link:hover { color: #4ade80 !important; }

.mc-page-wrap {
  padding: 3rem 0 4rem;
  color: #fff;
}
.mc-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.mc-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.02em;
}
.mc-page-version {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* IP блок */
.mc-ip-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.mc-ip-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}
.mc-ip-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.mc-ip-big span {
  font-family: ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.04em;
  user-select: all;
}
.mc-copy-btn-big {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mc-copy-btn-big:hover { background: rgba(74,222,128,0.2); }

/* Скачать */
.mc-section {
  text-align: center;
  margin-bottom: 2rem;
}
/* Белый список */
.mc-whitelist-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.mc-whitelist-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.mc-whitelist-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mc-whitelist-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fcd34d;
}
.mc-whitelist-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.mc-whitelist-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--color-primary);
  color: #fff;
  align-self: flex-start;
  transition: background 0.2s;
}
.mc-whitelist-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.mc-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.mc-download-btn:hover { background: #15803d; color: #fff; }

/* Два блока: Как зайти + Правила */
.mc-two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .mc-two-cols { grid-template-columns: 1fr 1fr; }
}
.mc-info-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
}
.mc-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mc-info-list {
  margin: 0;
  padding-left: 1.3rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 2;
}
.mc-info-list code {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.88em;
}

/* Блок скачивания лаунчера */
.mc-download-section {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.mc-download-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(22,163,74,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.mc-launcher-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.mc-download-info {
  flex: 1;
  min-width: 160px;
}
.mc-download-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.mc-download-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Предупреждение браузера под кнопкой скачивания */
.mc-browser-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--brown-700);
  line-height: 1.5;
}
.mc-browser-warn-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}
.mc-browser-warn strong {
  color: var(--brown-900);
}

/* Скриншот SmartScreen в инструкции */
.mc-warn-screenshot {
  margin-top: 0.75rem;
  display: inline-block;
}
.mc-warn-screenshot img {
  display: block;
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}
.mc-warn-caption {
  font-size: 0.8rem;
  color: #4ade80;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* Широкие инфо-блоки */
.mc-wide {
  max-width: 860px;
  margin: 0 auto 1.5rem;
}

/* Блок пароля */
.mc-password-block {
  background: rgba(251,191,36,0.07);
  border-color: rgba(251,191,36,0.25);
}
.mc-info-text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.mc-cmd-example {
  background: rgba(0,0,0,0.4);
  border-left: 3px solid #4ade80;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}
.mc-cmd-example code {
  color: #4ade80;
}
.mc-tip {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Заметка для родителей */
.mc-parents-note {
  max-width: 860px;
  margin: 0 auto 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  padding: 0 0.5rem;
}
.mc-parents-note code {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
kbd {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
  color: rgba(255,255,255,0.8);
}

/* ─── Minecraft card ─────────────────────────────────────── */
.mc-card {
  background: linear-gradient(135deg, #0f1f0f, #1b3a1b);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  margin-top: 12px;
}
.mc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mc-card-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.mc-version-badge {
  margin-left: auto;
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  white-space: nowrap;
}
.mc-ip-row {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 10px;
  gap: 6px;
}
.mc-ip {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  color: #4ade80;
  font-weight: 700;
  flex: 1;
  user-select: all;
}
.mc-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 1;
}
.mc-copy-btn:hover { color: #fff; }
.mc-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.mc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  flex-shrink: 0;
}
.mc-dot.online  { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.6); }
.mc-dot.offline { background: #f87171; }
.mc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-mc-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-mc-primary:hover { background: #15803d; color: #fff; }
.btn-mc-secondary {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-mc-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }
/* Collapse — инструкция подключения */
.mc-howto {
  margin-top: 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.mc-howto ol {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 2;
}
.mc-howto code {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
}

/* ─── About carousel ────────────────────────────────────── */
.about-carousel {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  max-height: 420px;
}
.about-carousel .carousel-item img {
  height: 420px;
  object-fit: cover;
}
@media (max-width: 576px) {
  .about-carousel,
  .about-carousel .carousel-item img { max-height: 260px; height: 260px; }
}
/* Красивые кнопки стрелок карусели */
.about-carousel .carousel-control-prev,
.about-carousel .carousel-control-next {
  width: 48px;
  opacity: 1;
}
.about-carousel .carousel-control-prev-icon,
.about-carousel .carousel-control-next-icon {
  display: none;
}
.about-carousel .carousel-control-prev::after,
.about-carousel .carousel-control-next::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.25);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: background-color 0.2s;
}
.about-carousel .carousel-control-prev:hover::after,
.about-carousel .carousel-control-next:hover::after {
  background-color: rgba(0,180,216,0.7);
}
.about-carousel .carousel-control-prev::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M10 3L5 8l5 5'/%3e%3c/svg%3e");
}
.about-carousel .carousel-control-next::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M6 3l5 5-5 5'/%3e%3c/svg%3e");
}

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-100);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  box-shadow: var(--pop-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.gallery-item:hover {
  transform: translate(-2px,-2px);
  box-shadow: var(--pop);
}
.gallery-item:active {
  transform: translate(2px,2px);
  box-shadow: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(46,26,14,0.55));
  color: var(--cream-50);
  font-size: 0.82rem;
  padding: 1.5rem 0.75rem 0.5rem;
}

/* ─── Enroll steps (Как записаться) ─────────────────────── */
.enroll-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ginger-500);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pop-sm);
  margin-bottom: 1rem;
}
.enroll-hint {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.enroll-hint-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.9rem; }
  .timeline-item:not(:last-child)::after { display: none; }
  .software-box { flex-direction: column; text-align: center; }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 40px 0; }
}
