/* =====================================================================
   JEDI — общая тема (сайт + classroom)
   Спокойный зелёный, мягкий фон вместо ослепительного белого.
   Подключается на всех страницах: /css/theme.css
   ===================================================================== */

:root {
  --jd-page:      #eef3ef;   /* фон страницы */
  --jd-page-2:    #e6ede7;   /* альтернативная секция */
  --jd-surface:   #fafcfa;   /* карточки */
  --jd-surface-2: #f4f8f5;
  --jd-border:    #dde6df;
  --jd-border-2:  #e8eee9;
  --jd-ink:       #15241b;   /* основной текст */
  --jd-ink-2:     #435449;
  --jd-ink-3:     #6f8176;
  --jd-green:     #2fbf57;
  --jd-green-d:   #1f9a45;
  --jd-green-dd:  #17692e;
  --jd-green-s:   #e2f2e6;   /* мягкая заливка */
  --jd-deep:      #0f2518;   /* тёмно-зелёный (хедер/футер) */
  --jd-deep-2:    #163322;
  --jd-radius:    16px;
  --jd-shadow:    0 1px 2px rgba(16,40,24,.05), 0 4px 16px rgba(16,40,24,.06);
  --jd-shadow-h:  0 2px 4px rgba(16,40,24,.06), 0 12px 32px rgba(16,40,24,.10);
}

/* ---------- База ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 84px; }
body, .font-sans { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
::selection { background: #bfe6ca; color: #0f2518; }

/* Скроллбар */
* { scrollbar-width: thin; scrollbar-color: #b9cbbd transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #b9cbbd; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #8fae97; }

/* ---------- Светлая тема: убираем ослепительный белый ----------
   (html:not(.dark) — чтобы не ломать тёмную тему classroom/test)   */
html:not(.dark) body                { background-color: var(--jd-page); color: var(--jd-ink); }
html:not(.dark) body .bg-white      { background-color: var(--jd-surface); }
html:not(.dark) body .bg-gray-50,
html:not(.dark) body .bg-jedi-bg    { background-color: var(--jd-page); }
html:not(.dark) body .bg-gray-100   { background-color: var(--jd-page-2); }
html:not(.dark) body .hover\:bg-gray-50:hover  { background-color: var(--jd-surface-2); }
html:not(.dark) body .hover\:bg-gray-100:hover { background-color: var(--jd-page-2); }
html:not(.dark) body .border-gray-100 { border-color: var(--jd-border-2); }
html:not(.dark) body .border-gray-200,
html:not(.dark) body .border-gray-300 { border-color: var(--jd-border); }
html:not(.dark) body .text-gray-900 { color: var(--jd-ink); }
html:not(.dark) body .text-gray-800 { color: #1d2e24; }
html:not(.dark) body .text-gray-700 { color: #334539; }
html:not(.dark) body .text-gray-600 { color: var(--jd-ink-2); }
html:not(.dark) body .text-gray-500 { color: #5d6f63; }
html:not(.dark) body .text-gray-400 { color: var(--jd-ink-3); }
html:not(.dark) body .shadow,
html:not(.dark) body .shadow-sm     { box-shadow: var(--jd-shadow); }
html:not(.dark) body .shadow-2xl    { box-shadow: 0 20px 50px rgba(16,40,24,.10); }

/* Поля ввода */
html:not(.dark) body input:not([type=radio]):not([type=checkbox]):not([type=range]),
html:not(.dark) body textarea,
html:not(.dark) body select { background-color: #fdfefd; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--jd-green) !important;
  box-shadow: 0 0 0 3px rgba(47,191,87,.16) !important;
}
:focus-visible { outline: 2px solid var(--jd-green); outline-offset: 2px; }

/* Кнопка с градиентом */
.gradient-button {
  background-image: linear-gradient(135deg, #34c75d 0%, #1f9a45 100%) !important;
  box-shadow: 0 6px 20px rgba(31,154,69,.28) !important;
}
.gradient-button:hover { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(31,154,69,.34) !important; }

/* Активный пункт меню */
.active-nav { color: var(--jd-green-d) !important; font-weight: 700 !important; border-bottom: 2px solid var(--jd-green); }

/* =====================================================================
   ХЕДЕР САЙТА (для посетителей)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
/* Размытие фона — на псевдоэлементе. Если повесить backdrop-filter на сам header,
   fixed-меню внутри него «застревает» в высоте шапки и не раскрывается на телефоне. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(15,37,24,.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.site-header .logo { position: relative; z-index: 50;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: #fff;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.site-header .logo-dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #3fd26a, #1f9a45);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; box-shadow: 0 4px 12px rgba(47,191,87,.35);
}
.site-header .logo span.accent { color: #5dd67c; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: #c9d8ce;
  text-decoration: none; transition: background .18s, color .18s; white-space: nowrap;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-dd.open > .nav-link { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.is-active { color: #fff; background: rgba(47,191,87,.18); box-shadow: inset 0 0 0 1px rgba(93,214,124,.25); }
.nav-link .chev { font-size: .65rem; opacity: .6; transition: transform .2s; }
.nav-dd.open > .nav-link .chev { transform: rotate(180deg); }

/* Выпадающие меню */
.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 230px; padding: 8px;
  background: #fbfdfb; border: 1px solid var(--jd-border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10,30,18,.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav-dd-menu.right { left: auto; right: 0; }
.nav-dd.open > .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) and (min-width: 1024px) {
  .nav-dd:hover > .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dd:hover > .nav-link { color: #fff; background: rgba(255,255,255,.07); }
}
/* мостик, чтобы меню не закрывалось при переходе мышью */
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 9px;
  font-size: .88rem; font-weight: 600; color: #26382d; text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
  transition: background .15s, color .15s;
}
.nav-dd-item:hover { background: var(--jd-green-s); color: var(--jd-green-dd); }
.nav-dd-item .fi { width: 22px !important; height: 16px !important; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); background-size: cover; }
.nav-dd-item .ico { width: 22px; text-align: center; color: var(--jd-green-d); flex-shrink: 0; }
.nav-dd-item small { display: block; font-weight: 500; font-size: .74rem; color: var(--jd-ink-3); }
.nav-dd-sep { height: 1px; background: var(--jd-border-2); margin: 6px 4px; }

/* Кнопки справа в хедере */
.hdr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px; font-size: .88rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: filter .18s, transform .18s, background .18s;
}
.hdr-btn-primary { background: linear-gradient(135deg, #34c75d, #1f9a45); color: #fff; box-shadow: 0 4px 14px rgba(47,191,87,.30); }
.hdr-btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.hdr-btn-ghost { color: #d7e5db; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); }
.hdr-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hdr-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #d7e5db; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  transition: background .18s, color .18s; text-decoration: none;
}
.hdr-icon-btn:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* Переключатель языка */
.lang-current .fi { width: 20px !important; height: 15px !important; border-radius: 3px; background-size: cover; }
.nav-dd-item.lang-button.active { background: var(--jd-green-s); color: var(--jd-green-dd); }
.nav-dd-item.lang-button.active::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .75rem; }

@media (min-width: 1024px) { #mobile-menu-button, #mobile-menu { display: none !important; } }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding-top: 68px;
  background: #0c1e13;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s, visibility .3s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.m-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border-radius: 12px; font-size: 1.02rem; font-weight: 600;
  color: #dce8e0; text-decoration: none; background: none; border: 0; font-family: inherit; text-align: left;
}
.m-link:hover, .m-link.is-active { background: rgba(255,255,255,.07); color: #fff; }
.m-link i.lead { width: 22px; text-align: center; color: #5dd67c; }
.m-sub { padding: 2px 0 8px 46px; display: none; }
.m-sub.open { display: block; }
.m-sub a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: #a9bfb0; font-size: .93rem; font-weight: 500; text-decoration: none; }
.m-sub a:hover { color: #fff; }
.m-sub .fi { width: 20px; height: 15px; border-radius: 3px; background-size: cover; }

.hamburger-icon { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 22px; height: 22px; }
.hamburger-icon span { display: block; height: 2px; width: 100%; background: #e6f1e9; border-radius: 2px; transition: transform .3s, opacity .3s; margin: 0 !important; }
.hamburger-icon.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   ФУТЕР
   ===================================================================== */
.site-footer { background: var(--jd-deep); color: #c3d4c8; position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #2fbf57, transparent); opacity: .7; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: #c3d4c8; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #5dd67c; }
.site-footer .f-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; font-size: .92rem; }
.site-footer .f-row i { color: #5dd67c; width: 18px; margin-top: 3px; text-align: center; }
.site-footer .f-social { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #e6f1e9; font-size: 1.05rem; }
.site-footer .f-social:hover { background: #2fbf57; color: #fff; }
.site-footer .f-bottom { border-top: 1px solid rgba(255,255,255,.07); color: #7f9787; font-size: .82rem; }

/* Плавающая кнопка WhatsApp */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.40); transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.07); box-shadow: 0 12px 30px rgba(37,211,102,.5); color: #fff; }
@media (max-width: 640px) { .whatsapp-float { width: 50px; height: 50px; right: 14px; bottom: 14px; font-size: 1.5rem; } }

/* =====================================================================
   ГЛАВНАЯ — секции и карточки
   ===================================================================== */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--jd-green-s); color: var(--jd-green-dd); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}

/* Hero — мягкий фон вместо белого */
.hero-section { background: linear-gradient(180deg, #f5f9f6 0%, var(--jd-page) 100%) !important; box-shadow: none !important; }
#dynamic-hero-bg::after { background: rgba(240,246,241,.72) !important; }
.hero-content p, .hero-content h1 { text-shadow: none !important; }
.hero-content strong { color: var(--jd-green-d) !important; }

/* Карточки курсов */
.card-glass {
  background: var(--jd-surface) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 1px solid var(--jd-border) !important;
  box-shadow: var(--jd-shadow) !important;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-glass:hover { transform: translateY(-4px); box-shadow: var(--jd-shadow-h) !important; border-color: rgba(47,191,87,.35) !important; }
.course-card { position: relative; overflow: hidden; scroll-margin-top: 96px; }
.course-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #2fbf57, #5dd67c); opacity: 0; transition: opacity .25s; }
.course-card:hover::before { opacity: 1; }
.course-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--jd-surface-2) !important; border: 1px solid var(--jd-border-2);
}
.course-flag { width: 28px !important; height: 21px !important; border-radius: 4px; display: block !important; background-size: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.12); }
.course-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  background: var(--jd-green-s); color: var(--jd-green-dd); border: 1px solid rgba(47,191,87,.18);
}
.badge i { font-size: .7rem; opacity: .8; }
.course-card > p { margin-bottom: 16px; }
.course-meta { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--jd-border); display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--jd-ink-3); }
.course-meta i { color: var(--jd-green-d); margin-right: 5px; }

/* Секция "Почему Жедай" — тёмная полоса для контраста */
.why-section { background: radial-gradient(1200px 400px at 20% 0%, #1a4029 0%, transparent 60%), var(--jd-deep) !important; }
.why-section .floating-bg { opacity: .25 !important; }
.why-section h2 { color: #fff !important; }
.why-section .why-sub { color: #9fb8a7; }
.benefit-card {
  position: relative; overflow: hidden; height: 100%;
  padding: 28px 24px 26px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s, border-color .25s, background .25s;
}
.benefit-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); border-color: rgba(93,214,124,.35); }
.benefit-card-glow { position: absolute; top: -50px; right: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(47,191,87,.22), transparent 70%); pointer-events: none; }
.benefit-card-icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  color: #5dd67c; background: rgba(47,191,87,.12); border: 1px solid rgba(93,214,124,.25);
}
.benefit-card-number { position: absolute; top: 22px; right: 22px; font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.06); line-height: 1; }
.benefit-card h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.benefit-card p  { color: #a7bdae; font-size: .9rem; line-height: 1.6; }

/* Форма записи */
.form-glass {
  background: var(--jd-surface) !important; backdrop-filter: none !important;
  border: 1px solid var(--jd-border) !important; box-shadow: var(--jd-shadow-h) !important;
}
.course-label {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 10px 12px; border-radius: 12px; cursor: pointer; user-select: none;
  font-size: .88rem; font-weight: 600; color: #334539;
  background: #fdfefd; border: 1.5px solid var(--jd-border);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.course-label:hover { border-color: rgba(47,191,87,.5); }
.course-label:has(input:checked) { background: var(--jd-green-s); border-color: var(--jd-green); color: var(--jd-green-dd); box-shadow: 0 0 0 3px rgba(47,191,87,.12); }
.course-label:has(input:checked)::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 6px; right: 8px; font-size: .65rem; color: var(--jd-green-d); }

/* Плавающие фигуры — тише */
.floating-shape { opacity: .05 !important; }
.floating-word  { color: rgba(31,154,69,.10) !important; }

/* =====================================================================
   Простые страницы (новости, 404)
   ===================================================================== */
.simple-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.simple-card { max-width: 520px; width: 100%; text-align: center; background: var(--jd-surface); border: 1px solid var(--jd-border); border-radius: 22px; padding: 44px 28px; box-shadow: var(--jd-shadow-h); }
.simple-card .big-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--jd-green-s); color: var(--jd-green-d); }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---------- Нейтрализуем старые правила шапки из css/main.css ----------
   main.css (contacts, results…) ставил header nav { overflow-x:auto },
   из-за этого выпадающие меню обрезались по краю шапки. */
.site-header nav { overflow: visible !important; flex: 0 1 auto; justify-content: flex-start !important; }
.site-header .nav-link { display: inline-flex; padding: 8px 12px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: #c9d8ce; background: none; border-bottom: 0; }
.site-header .nav-link:hover, .site-header .nav-dd.open > .nav-link { color: #fff; background: rgba(255,255,255,.07); }
.site-header .nav-link.is-active { color: #fff; background: rgba(47,191,87,.18); }
.site-header .max-w-7xl > div { gap: 0 !important; }

/* ── Карточки курсов: кнопка «Записаться» и подсветка при переходе из меню ── */
.course-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; }
.course-card > p + .course-actions { margin-top: auto; }
.course-enroll {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #2fbf57, #1f9a45); color: #fff !important;
  box-shadow: 0 4px 14px rgba(31,154,69,.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.course-enroll:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,154,69,.32); filter: brightness(1.05); }
.course-enroll:active { transform: translateY(0); }
.course-enroll.is-ghost { background: var(--jd-green-s); color: var(--jd-green-dd) !important; box-shadow: none; border: 1.5px solid rgba(47,191,87,.35); }
.course-enroll.is-ghost:hover { border-color: var(--jd-green); }

.course-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(47,191,87,0); background: rgba(47,191,87,0);
}
.course-card.is-glow {
  border-color: var(--jd-green) !important;
  box-shadow: 0 0 0 4px rgba(47,191,87,.28), 0 0 38px rgba(47,191,87,.45) !important;
  transition: box-shadow 1.4s ease, border-color 1.4s ease;
}
.course-card.is-glow::after { animation: jdCardGlow 2.4s ease-out; }
@keyframes jdCardGlow {
  0%   { box-shadow: inset 0 0 0 2px rgba(47,191,87,.9);  background: rgba(47,191,87,.10); }
  25%  { box-shadow: inset 0 0 0 2px rgba(47,191,87,.35); background: rgba(47,191,87,.03); }
  50%  { box-shadow: inset 0 0 0 2px rgba(47,191,87,.9);  background: rgba(47,191,87,.09); }
  100% { box-shadow: inset 0 0 0 2px rgba(47,191,87,0);   background: rgba(47,191,87,0); }
}
.course-label.is-picked { animation: jdPick 1.9s ease-out; }
@keyframes jdPick {
  0%, 40% { box-shadow: 0 0 0 6px rgba(47,191,87,.35), 0 0 24px rgba(47,191,87,.45); transform: scale(1.05); }
  20%     { box-shadow: 0 0 0 3px rgba(47,191,87,.2); transform: scale(1.02); }
  100%    { box-shadow: 0 0 0 3px rgba(47,191,87,.12); transform: scale(1); }
}
#form { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  .course-card.is-glow::after, .course-label.is-picked { animation: none; }
}
.picked-course {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 14px; font-size: .95rem; color: var(--jd-green-dd);
  background: var(--jd-green-s); border: 1.5px solid rgba(47,191,87,.45);
}
.picked-course[hidden] { display: none; }
.picked-course > i { color: var(--jd-green-d); font-size: 1.1rem; }
.picked-course > span { flex: 1; min-width: 0; }
.picked-course a { font-size: .85rem; font-weight: 700; color: var(--jd-green-d); text-decoration: underline; text-underline-offset: 3px; }
.picked-course.is-picked { animation: jdPick 1.9s ease-out; }

/* ── Выбор языка при первом визите ─────────────────────────────────── */
.jd-lang-pick { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8,22,14,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.jd-lang-pick.open { opacity: 1; }
.jd-lang-box { width: 100%; max-width: 420px; background: #fff; border-radius: 26px; padding: 28px 22px 20px; text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.3); transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.jd-lang-pick.open .jd-lang-box { transform: none; }
.jd-lang-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #15241b; margin-bottom: 14px; }
.jd-lang-logo span { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #3fd26a, #1f9a45); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.jd-lang-box h2 { font-size: 1.4rem; font-weight: 800; color: #15241b; margin: 0 0 18px; line-height: 1.25; }
.jd-lang-box h2 small { display: block; font-size: .85rem; font-weight: 600; color: #6f8176; margin-top: 4px; }
.jd-lang-list { display: flex; flex-direction: column; gap: 10px; }
.jd-lang-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid #e1e9e3; background: #fff; cursor: pointer; text-align: left; font-family: inherit; transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
.jd-lang-opt:hover, .jd-lang-opt:focus-visible { border-color: #2fbf57; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,154,69,.14); outline: none; }
.jd-lang-opt.is-guess { border-color: #2fbf57; background: #f2fbf4; }
.jd-lang-opt .fi { width: 34px !important; height: 25px !important; border-radius: 5px; background-size: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.12); }
.jd-lang-txt { flex: 1; display: flex; flex-direction: column; }
.jd-lang-txt b { font-size: 1.05rem; color: #15241b; }
.jd-lang-txt small { font-size: .8rem; color: #6f8176; }
.jd-lang-opt > i { color: #1f9a45; opacity: .5; transition: opacity .15s, transform .15s; }
.jd-lang-opt:hover > i { opacity: 1; transform: translateX(3px); }
.jd-lang-note { font-size: .8rem; color: #8a9a8f; margin: 14px 0 0; }
@media (max-width: 520px) {
  .jd-lang-pick { align-items: flex-end; padding: 0; }
  .jd-lang-box { border-radius: 26px 26px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
