/* ==========================================================================
   TravelSkills — main.css
   Структура: 1) токены  2) база  3) layout  4) компоненты  5) секции  6) страницы
   Mobile-first не используется строго: компоненты описаны для desktop,
   адаптация — в конце каждого блока (1200 / 1024 / 768 / 520).
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --navy-950: #061340;
  --navy-900: #0a1d5c;
  --navy-800: #102a78;
  --blue-600: #3346f0;
  --blue-500: #4b5cff;
  --violet-500: #7b4dff;
  --pink-500: #ff2d8a;
  --pink-600: #e8177a;
  --pink-100: #ffe3f0;
  --amber-400: #ffb020;
  --green-500: #19b37a;

  --ink: #0f1b4c;          /* заголовки */
  --text: #46507a;         /* основной текст */
  --muted: #8790b3;        /* второстепенный */
  --line: #e6e9f5;
  --bg: #f6f7fd;
  --surface: #fff;
  --lav-50: #f3f4ff;
  --lav-100: #e9ebff;

  --grad-primary: linear-gradient(90deg, #ff2d8a 0%, #ff4fa0 100%);
  --grad-blue: linear-gradient(135deg, #2f3ff0 0%, #5a3df5 60%, #8a4dff 100%);
  --grad-text: linear-gradient(90deg, #ff2d8a, #c94bff);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", var(--font);
  --font-script: "Caveat", cursive;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(16, 32, 100, .06);
  --shadow: 0 10px 30px rgba(16, 32, 100, .08);
  --shadow-lg: 0 24px 60px rgba(16, 32, 100, .14);
  --shadow-pink: 0 10px 24px rgba(255, 45, 138, .32);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(48px, 7vw, 88px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(75, 92, 255, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--pink-500); color: #fff; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 26px; height: 26px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* auth-состояние: в WordPress решается на сервере (is_user_logged_in) */
[data-auth="guest"] [data-show="user"],
[data-auth="user"] [data-show="guest"] { display: none !important; }

/* 3. LAYOUT --------------------------------------------------------------- */
body .container {
    width: 100% !important;
    max-width: calc(var(--container) + var(--gutter) * 2) !important;
    margin-inline: auto !important;
    padding-inline: var(--gutter) !important;
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--white { background: var(--surface); }
.section--lav { background: linear-gradient(180deg, #f1f3ff, #f8f9ff); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: var(--stack, 16px); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-pink { color: var(--pink-500); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* 4. COMPONENTS ----------------------------------------------------------- */

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 15px/1 var(--font-head); white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-pink); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(255, 45, 138, .42); transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--pink-500); color: var(--pink-500); }
.btn--ghost { background: var(--lav-50); color: var(--ink); }
.btn--ghost:hover { background: var(--lav-100); }
.btn--white { background: #fff; color: var(--blue-600); }
.btn--white:hover { box-shadow: var(--shadow); }
.btn--amber { background: var(--amber-400); color: var(--ink); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--xs { --h: 34px; padding: 0 16px; font-size: 13px; }
.btn--lg { --h: 58px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--lav-50); color: var(--pink-500); }

.play-btn { display: inline-flex; align-items: center; gap: 14px; color: #fff; font: 600 14px/1.3 var(--font-head); text-align: left; }
.play-btn__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); transition: background-color .2s, transform .2s var(--ease); }
.play-btn__icon .i { width: 18px; height: 18px; margin-left: 3px; }
.play-btn:hover .play-btn__icon { background: rgba(255, 255, 255, .15); transform: scale(1.06); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--font-head); color: var(--pink-500); }
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow--underline { padding-bottom: 6px; border-bottom: 2px solid var(--pink-500); }

/* Badges / chips */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font: 700 11px/1.2 var(--font-head); letter-spacing: .02em; color: #fff; background: var(--pink-500); }
.badge--blue { background: var(--blue-600); }
.badge--soft { background: var(--lav-100); color: var(--blue-600); }
.badge--pink-soft { background: var(--pink-100); color: var(--pink-600); }
.badge--glass { background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 12px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--pink-500); }
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2, .h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { margin-top: 12px; max-width: 560px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card--pad { padding: clamp(20px, 2.6vw, 32px); }
.card--hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--lav-100); color: var(--blue-600); }
.icon-tile--pink { background: var(--pink-100); color: var(--pink-500); }
.icon-tile--round { border-radius: 50%; }
.icon-tile--grad { background: var(--grad-blue); color: #fff; }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs [aria-current] { color: #fff; }

/* Forms */
.field { display: grid; gap: 6px; }
.field__label { font: 600 13px var(--font); color: var(--ink); }
.field__input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field__input::placeholder { color: #a6adc8; }
.field__input:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(75, 92, 255, .12); }
.field__error { display: none; font-size: 12px; color: #e5394b; }
.field.is-invalid .field__input { border-color: #e5394b; }
.field.is-invalid .field__error { display: block; }
.select { position: relative; display: block; }
.select .i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.select .field__input { padding-right: 42px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--pink-500); }
.check a { color: var(--blue-600); text-decoration: underline; }

.lead-form { display: grid; gap: 14px; }
.lead-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lead-form__status:empty { display: none; }
.lead-form__status { font-size: 14px; color: #e5394b; }
.lead-form.is-loading button[type="submit"] { opacity: .7; pointer-events: none; }
.lead-form__success { display: grid; justify-items: center; gap: 10px; padding: 24px 8px; text-align: center; }
.lead-form__success .icon-tile { width: 64px; height: 64px; border-radius: 50%; background: #e6f8f0; color: var(--green-500); }
.lead-form__success h3 { font-size: 22px; }
@media (max-width: 520px) { .lead-form__row { grid-template-columns: minmax(0, 1fr); } }

/* Tabs (pill) */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 12px 20px; border-radius: var(--r-pill); font: 600 14px var(--font-head); color: var(--text); white-space: nowrap; transition: background-color .2s, color .2s; }
.tab .i { color: var(--blue-600); }
.tab:hover { color: var(--ink); background: var(--lav-50); }
.tab[aria-selected="true"], .tab.is-active { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-pink); }
.tab[aria-selected="true"] .i, .tab.is-active .i { color: #fff; }
.tabs--plain { background: none; border: 0; padding: 0; }
.tabs--plain .tab { border: 1px solid var(--line); background: var(--surface); padding: 9px 18px; font-size: 13px; }
.tabs--plain .tab[aria-selected="true"] { background: var(--grad-primary); border-color: transparent; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: var(--lav-50); }
.segmented__btn { padding: 10px; border-radius: 9px; font: 600 14px var(--font-head); color: var(--muted); }
.segmented__btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Accordion (details/summary) */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.acc + .acc { margin-top: 12px; }
.acc[open] { border-color: #d7dbff; box-shadow: var(--shadow); }
.acc__head { display: flex; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; }
.acc__head::-webkit-details-marker { display: none; }
.acc__num { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--lav-100); color: var(--blue-600); font: 800 18px var(--font-head); }
.acc[open] .acc__num { background: var(--grad-blue); color: #fff; }
.acc__title { flex: 1; min-width: 0; }
.acc__title b { display: block; font: 700 16px/1.35 var(--font-head); color: var(--ink); }
.acc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.acc__meta span + span::before { content: "•"; margin-right: 14px; opacity: .6; }
.acc__chev { width: 22px; height: 22px; color: var(--blue-600); transition: transform .25s var(--ease); }
.acc[open] .acc__chev { transform: rotate(180deg); }
.acc__body { padding: 0 22px 20px 84px; }
.acc__body p { color: var(--text); }
.acc--faq .acc__head { padding: 20px 22px; }
.acc--faq .acc__body { padding-left: 22px; }
@media (max-width: 640px) {
  .acc__head { gap: 12px; padding: 14px 14px; }
  .acc__num { width: 36px; height: 36px; font-size: 15px; }
  .acc__title b { font-size: 15px; }
  .acc__body { padding: 0 14px 16px; }
  .acc__meta { gap: 2px 10px; }
  .acc__meta span + span::before { display: none; }
}

.lessons { display: grid; gap: 4px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.lesson:hover { background: var(--lav-50); }
.lesson .i { width: 18px; height: 18px; color: var(--blue-600); }
.lesson__time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lesson.is-done .i { color: var(--green-500); }
.lesson.is-locked { color: var(--muted); }
.lesson.is-locked .i { color: var(--muted); }

/* Slider (native scroll-snap + кнопки) */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide, calc((100% - 3 * 20px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 12px; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
@media (min-width: 1025px) { .slider__track--3 { --slide: calc((100% - 2 * 20px) / 3); } }
.slider__btn { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.slider__btn:hover { color: var(--pink-500); transform: scale(1.06); }
.slider__btn:disabled { opacity: 0; pointer-events: none; }
.slider__btn--prev { left: -22px; }
.slider__btn--next { right: -22px; }
.slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(120, 130, 190, .35); transition: width .25s, background-color .25s; }
.slider__dots button[aria-current="true"] { width: 24px; background: var(--pink-500); }
@media (max-width: 1024px) { .slider__track { --slide: calc((100% - 20px) / 2.3); } .slider__btn { display: none; } }
@media (max-width: 640px) { .slider__track { --slide: 82%; gap: 14px; } }

/* Progress */
.progress { --p: 0%; height: 8px; border-radius: 8px; background: var(--lav-100); overflow: hidden; }
.progress::before { content: ""; display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--violet-500)); transition: width 1s var(--ease); }
.progress--pink::before { background: var(--grad-primary); }

/* Modal (native <dialog>) */
.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-xl); background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(6, 19, 64, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
.modal__box { position: relative; max-height: calc(100dvh - 24px); overflow: auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-lg); }
.modal__box--sm { max-width: 440px; margin-inline: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; padding-right: 40px; }
.modal__text { margin-bottom: 20px; }
.modal__tariff { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: var(--lav-50); font: 700 14px var(--font-head); color: var(--ink); }
.modal__tariff b { color: var(--pink-500); }
.modal--video { width: min(960px, calc(100% - 24px)); }
.modal__box--video { padding: 0; background: #000; overflow: hidden; }
.modal__box--video .modal__close { z-index: 2; color: #fff; background: rgba(0, 0, 0, .4); }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 520px) {
  .modal:not(.modal--video) { width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh; }
  .modal:not(.modal--video) .modal__box { border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.auth-form { display: grid; gap: 14px; }
.auth-form__link { justify-self: center; font-size: 14px; color: var(--blue-600); }

/* Toasts */
.toasts { position: fixed; z-index: 1100; right: 16px; bottom: 16px; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 360px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); animation: modal-in .3s var(--ease); }
.toast .i { color: #5ee0a8; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 5. SITE CHROME ---------------------------------------------------------- */

/* Topbar */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .85); font-size: 12.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__left { display: flex; align-items: center; gap: 28px; }
.topbar__link, .topbar__note { display: inline-flex; align-items: center; gap: 8px; }
.topbar__link { font-weight: 600; color: #fff; }
.topbar .i { width: 15px; height: 15px; color: var(--pink-500); }
.topbar__right a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 768px) { .topbar__note { display: none; } }

/* Header */
.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
/* blur на псевдоэлементе: backdrop-filter на самом .header сделал бы его containing block для fixed-меню */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 32, 100, .06); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { flex: none; }
.logo img { width: 180px; height: auto; }
.logo--light img { filter: brightness(0) invert(1); opacity: .95; }

.nav { flex: 1; }
.nav__list { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; white-space: nowrap; border-radius: 10px; font: 600 14px var(--font-head); color: var(--ink); transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-current { color: var(--pink-500); }
.nav__link .i { transition: transform .2s; }
[data-dropdown].is-open > [data-dropdown-toggle] .i { transform: rotate(180deg); }
.nav__item--drop, .lang { position: relative; }
.nav__mobile-extra { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; min-width: 270px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
[data-dropdown].is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.dropdown a:hover { background: var(--lav-50); color: var(--pink-500); }
.dropdown a .i { color: var(--blue-600); }
.dropdown b { display: block; font: 600 14px var(--font-head); }
.dropdown small { display: block; font-size: 12px; color: var(--muted); }
.dropdown--sm { min-width: 150px; left: auto; right: 0; }

.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang__btn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 600 13px var(--font-head); color: var(--ink); }
.header__login { display: inline-flex; align-items: center; width: auto; padding: 0 10px; gap: 8px; border-radius: var(--r-pill); font: 600 14px var(--font-head); }
.header__cta { margin-left: 6px; }
.burger { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; /* ниже .header (100), внутри которого живёт меню */ background: rgba(6, 19, 64, .5); }

/* Компактная шапка на всех ширинах: контейнер ограничен 1304px, а узбекские/английские пункты меню длиннее русских */
.nav__link { padding: 10px 8px; font-size: 13px; }
.header__login span { display: none; }
.header__in { gap: 14px; }
@media (max-width: 1100px) {
  :root { --header-h: 66px; }
  .burger { display: inline-grid; }
  .header__cta { display: none; }
  .logo img { width: 150px; }
  .nav {
    position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    display: flex; flex-direction: column; gap: 24px; padding: 76px 20px calc(24px + env(safe-area-inset-bottom));
    background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; }
  .nav__item--drop .dropdown { position: static; display: none; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item--drop.is-open .dropdown { display: block; }
  .nav__mobile-extra { display: grid; gap: 10px; margin-top: auto; }
  .nav__phone { display: flex; justify-content: center; gap: 8px; padding: 10px; font: 700 15px var(--font-head); color: var(--ink); }
  .nav__phone .i { color: var(--pink-500); }
}
@media (max-width: 520px) {
  .lang { display: none; }
  .logo img { width: 132px; }
}

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 200; padding-top: 12vh; background: rgba(6, 19, 64, .6); backdrop-filter: blur(6px); animation: modal-in .25s var(--ease); }
.search-overlay__box { display: flex; align-items: center; gap: 12px; max-width: 720px; padding: 10px 10px 10px 22px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-lg); }
.search-overlay__box > .i { color: var(--muted); }
.search-overlay__box input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; font-size: 17px; background: none; }

/* Hero */
.hero {
  --hero-pos: right center;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 90% at 0% 110%, rgba(255, 45, 138, .45), transparent 60%),
    linear-gradient(90deg, var(--navy-900) 0%, rgba(10, 29, 92, .94) 32%, rgba(10, 29, 92, .45) 60%, rgba(10, 29, 92, .1) 100%),
    var(--hero-img, none) var(--hero-pos) / cover no-repeat,
    var(--navy-900);
}
.hero__in { position: relative; padding-block: 28px clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; margin-top: clamp(18px, 3vw, 32px); }
.hero__title { color: #fff; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; }
.hero__lead { max-width: 520px; margin-top: 18px; font-size: clamp(15px, 1.3vw, 17px); color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero__plane { position: absolute; z-index: -1; right: 38%; top: 30px; width: 260px; height: 120px; opacity: .7; pointer-events: none; }

.hero-stats { display: grid; gap: 22px; min-width: 240px; padding: 26px 28px; border-radius: var(--r-lg); background: rgba(10, 29, 92, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); }
.hero-stats li { display: flex; align-items: center; gap: 16px; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.hero-stats .i { width: 34px; height: 34px; stroke-width: 1.6; color: var(--pink-500); }
.hero-stats b { display: block; font: 800 24px/1.1 var(--font-head); color: #fff; }

@media (max-width: 900px) {
  .hero {
    --hero-pos: 70% center;
    background:
      linear-gradient(180deg, rgba(10, 29, 92, .55) 0%, rgba(10, 29, 92, .9) 55%, var(--navy-900) 100%),
      var(--hero-img, none) var(--hero-pos) / cover no-repeat, var(--navy-900);
  }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__plane { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; min-width: 0; }
  .hero-stats li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12px; }
  .hero-stats .i { width: 26px; height: 26px; }
  .hero-stats b { font-size: 20px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

/* Lead band */
.lead-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(0, 520px); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); color: #fff;
  background:
    linear-gradient(90deg, rgba(37, 52, 210, .96) 0%, rgba(90, 61, 245, .82) 45%, rgba(255, 45, 138, .35) 100%),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1600&q=70&auto=format&fit=crop") center / cover;
}
.lead-band__title { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.lead-band__text p { margin-top: 12px; max-width: 460px; color: rgba(255, 255, 255, .88); }
.lead-band__points { display: grid; gap: 10px; margin-top: 22px; font-size: 14px; }
.lead-band__points li { display: flex; align-items: center; gap: 10px; }
.lead-band__points .i { width: 18px; height: 18px; }
.lead-band__form { padding: clamp(18px, 2.5vw, 28px); border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .lead-band { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.footer { padding-top: clamp(40px, 5vw, 64px); background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer__brand p { margin-top: 16px; max-width: 260px; }
.footer h3 { margin-bottom: 14px; font: 700 15px var(--font-head); color: #fff; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col a:hover { color: #fff; }
.footer__contacts a, .footer__contacts span { display: flex; align-items: center; gap: 10px; }
.footer__contacts .i { width: 17px; height: 17px; color: var(--pink-500); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s; }
.socials a:hover { background: var(--pink-500); }
.socials .i { width: 18px; height: 18px; }
.footer__slogan { position: relative; align-self: start; font: 500 26px/1.15 var(--font-script); color: #fff; transform: rotate(-6deg); }
.footer__slogan .i { position: absolute; right: 0; bottom: -40px; width: 30px; height: 30px; color: var(--blue-500); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__slogan { display: none; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contacts { grid-column: 1 / -1; }
}

/* 6. SECTIONS & PAGES ----------------------------------------------------- */

/* Quote card */
.quote-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); background: linear-gradient(160deg, #f4f2ff, #ece9ff 60%, #f6f0ff); border: 1px solid #e3e0ff; }
.quote-card > .i { width: 34px; height: 34px; color: var(--blue-600); }
.quote-card blockquote { margin: 16px 0 22px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.quote-card blockquote.is-italic { font-style: italic; font-size: 15px; color: var(--text); }
.quote-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.quote-card figcaption b { display: block; font: 700 14px var(--font-head); color: var(--ink); }
.quote-card figcaption small { font-size: 12px; color: var(--muted); }
.quote-card__sign { font: 500 28px/1 var(--font-script); color: var(--blue-600); transform: rotate(-8deg); }
.quote-card__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-block: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 16px; padding: 28px clamp(16px, 2.4vw, 32px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 24px/1.1 var(--font-head); color: var(--ink); }
.stat > div > span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 16px; } }

/* About (home) */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.about__text p { margin-top: 16px; }
.about__text .btn { margin-top: 24px; }
/* Общее фото команды широкое (16:9) — показываем целиком, без кадрирования до 2–3 человек */
.about__photo { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.about .quote-card { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.about .quote-card blockquote { flex: 1; margin: 0; }
.about .quote-card figcaption { flex: none; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about .quote-card { flex-direction: column; align-items: stretch; }
  .about .quote-card figcaption { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Check list */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 15px; }
.checklist .icon-tile { width: 32px; height: 32px; border-radius: 10px; }
.checklist .icon-tile .i { width: 16px; height: 16px; }
.checklist--compact li { align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.checklist--compact .i { width: 18px; height: 18px; margin-top: 2px; color: var(--pink-500); }

/* Feature card */
.feature { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.feature h3 { margin-top: 6px; font-size: 18px; }
.feature p { font-size: 14px; }
.feature__arrow { position: absolute; top: 22px; right: 22px; color: var(--blue-600); }
.feature { position: relative; }

/* Two-col section */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Dark band (teachers / success stories) */
.band-dark {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(100deg, var(--navy-900) 0%, rgba(16, 42, 120, .95) 40%, rgba(90, 61, 245, .7) 100%),
    url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1600&q=60&auto=format&fit=crop") center / cover;
}
.band-dark h2 { color: #fff; }
.band-dark .band__grid { display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.band-dark .band__intro p { margin-top: 14px; color: rgba(255, 255, 255, .82); }
.band-dark .band__intro .btn { margin-top: 26px; }
@media (max-width: 900px) { .band-dark .band__grid { grid-template-columns: minmax(0, 1fr); } }

/* Teacher card */
.teacher { overflow: hidden; border-radius: var(--r); background: #fff; color: var(--text); }
.teacher__photo { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #dfe6ff, #b9c4f7); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.teacher__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; }
.teacher__body b { display: block; font: 700 15px var(--font-head); color: var(--ink); }
.teacher__body small { font-size: 12px; color: var(--muted); }
.teacher__body .i { color: var(--pink-500); }

/* Review card */
.review { display: flex; flex-direction: column; gap: 14px; padding: 22px; height: 100%; }
.review__top { display: flex; align-items: center; gap: 10px; }
.review__g { font: 800 20px var(--font-head); background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { display: flex; gap: 2px; color: var(--amber-400); }
.stars .i { width: 16px; height: 16px; }
.review p { flex: 1; font-size: 14px; color: var(--ink); }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.person b { display: block; font: 700 13px var(--font-head); color: var(--ink); }
.person small { font-size: 12px; color: var(--muted); }

/* Course card (catalog) */
.course-card { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.course-card__media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.05); }
.course-card__media .badge { position: absolute; left: 14px; bottom: 14px; }
.course-card__fav { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); }
.course-card__fav[aria-pressed="true"] { color: var(--pink-500); }
.course-card__fav[aria-pressed="true"] .i { fill: currentColor; }
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); }
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta .i { width: 16px; height: 16px; color: var(--pink-500); }
.course-card__meta b { color: var(--ink); font-weight: 600; }
.course-card h3 { margin-top: 14px; font-size: 19px; line-height: 1.25; }
.course-card p { margin-top: 10px; font-size: 14px; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.course-card__price { font: 800 16px var(--font-head); color: var(--ink); }
.course-card__price small { display: block; font: 500 11px var(--font); color: var(--muted); }

/* Catalog filter */
.filter-panel { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 24px 32px; align-items: center; padding: clamp(20px, 3vw, 32px); margin-top: calc(-1 * clamp(24px, 3vw, 40px)); position: relative; z-index: 2; }
.filter-panel h2 { font-size: clamp(24px, 2.6vw, 32px); }
.filter-panel p { margin-top: 10px; font-size: 14px; }
.filter-panel__controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.filter-panel__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.searchbox { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.searchbox input { width: 100%; height: 44px; padding: 0 44px 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--bg); outline: 0; font-size: 14px; }
.searchbox input:focus { border-color: var(--blue-500); background: #fff; }
.searchbox .i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--blue-600); width: 18px; height: 18px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 0 96px; padding: 10px 6px; border-radius: var(--r); font: 600 12px/1.25 var(--font-head); color: var(--ink); text-align: center; transition: background-color .2s; }
.cat-chip__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lav-50); border: 1px solid var(--line); color: var(--blue-600); transition: all .2s; }
.cat-chip:hover .cat-chip__icon { border-color: var(--pink-500); }
.cat-chip[aria-pressed="true"] .cat-chip__icon { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: var(--shadow-pink); }
.catalog-empty { padding: 48px 16px; text-align: center; }
.catalog-empty h3 { font-size: 20px; margin-bottom: 8px; }
.catalog-count { font-size: 14px; color: var(--muted); }
@media (max-width: 1024px) { .filter-panel { grid-template-columns: minmax(0, 1fr); } }

/* Why us */
.why { display: grid; grid-template-columns: .8fr 2fr; gap: 32px; align-items: center; overflow: hidden; padding: 0 clamp(20px, 3vw, 40px) 0 0; background: linear-gradient(120deg, #fff, #f3f1ff); }
.why__img { align-self: end; max-height: 360px; object-fit: cover; object-position: top; border-radius: 0 0 0 var(--r-lg); width: 100%; height: 100%; }
.why__body { padding-block: 36px; }
.why__items { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.why__items li { display: flex; flex-direction: column; gap: 12px; padding: 0 18px; font: 700 14px/1.3 var(--font-head); color: var(--ink); }
.why__items li + li { border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .why__img { max-height: 260px; border-radius: 0; }
  .why__body { padding: 8px 20px 28px; }
  .why__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .why__items li:nth-child(3) { border-left: 0; }
}

/* Story card (dark band) */
.story { display: flex; flex-direction: column; gap: 14px; padding: 20px; height: 100%; border-radius: var(--r); background: #fff; color: var(--ink); font-size: 14px; }

/* Course page: summary */
.course-summary { display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 20px; margin-top: calc(-1 * clamp(20px, 3vw, 36px)); position: relative; z-index: 2; }
.course-summary__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; grid-column: span 2; }
.course-summary__img { position: relative; min-height: 220px; padding: 28px; color: #fff; background: linear-gradient(90deg, rgba(10, 29, 92, .55), rgba(10, 29, 92, .05)), url("https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?w=900&q=70&auto=format&fit=crop") center / cover; }
.course-summary__img h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); max-width: 260px; }
.course-summary__img .badge { position: absolute; top: 20px; right: 20px; }
.course-summary__mods { padding: 26px; background: linear-gradient(160deg, #f7f6ff, #eeecff); }
.course-summary__mods h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.course-summary__mods h3 .i { color: var(--blue-600); }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; align-items: center; gap: 14px; }
.info-list .i { width: 24px; height: 24px; color: var(--pink-500); }
.info-list small { display: block; font-size: 12px; color: var(--muted); }
.info-list b { font: 700 15px var(--font-head); color: var(--ink); }
.info-list--blue .i { color: var(--blue-600); }
@media (max-width: 1024px) {
  .course-summary { grid-template-columns: minmax(0, 1fr); }
  .course-summary__main { grid-column: auto; }
  .course-summary .info-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .course-summary__main { grid-template-columns: minmax(0, 1fr); }
  .course-summary .info-list { grid-template-columns: minmax(0, 1fr); }
}

/* Sticky in-page nav */
.page-nav { position: sticky; top: calc(var(--header-h) + 8px); z-index: 50; display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.page-nav .tabs { flex: 1; box-shadow: var(--shadow); }
.page-nav .tab { padding: 10px 18px; font-size: 13px; }
@media (max-width: 1100px) { .page-nav { top: calc(var(--header-h) + 6px); } }

/* Course layout with aside */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.with-aside__side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1024px) {
  .with-aside { grid-template-columns: minmax(0, 1fr); }
  .with-aside__side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.teacher-hero { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
.teacher-hero img { width: 170px; height: 170px; border-radius: var(--r); object-fit: cover; object-position: top; filter: grayscale(1); }
.teacher-hero h3 { margin-top: 10px; font-size: 26px; }
.teacher-hero p { margin-top: 4px; font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fact { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; line-height: 1.25; }
.fact .i { width: 18px; height: 18px; color: var(--blue-600); }
.fact b { display: block; color: var(--ink); }
@media (max-width: 640px) {
  .teacher-hero { grid-template-columns: minmax(0, 1fr); }
  .teacher-hero img { width: 120px; height: 120px; }
}

.h3-bar { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.h3-bar::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--grad-primary); }
.rich p + p { margin-top: 12px; }
.rich strong { color: var(--ink); }
.learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
@media (max-width: 640px) { .learn-grid { grid-template-columns: minmax(0, 1fr); } }

.cert-card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); background: var(--grad-blue); color: #fff; }
.cert-card h3 { color: #fff; font-size: 20px; margin-top: 4px; }
.cert-card p { color: rgba(255, 255, 255, .85); font-size: 14px; }
.cert { margin-top: 22px; padding: 18px; border-radius: 10px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .2); transform: rotate(-2deg); }
.cert__frame { padding: 18px 12px; border: 2px solid #c9cff8; border-radius: 6px; background: repeating-linear-gradient(45deg, #fafbff 0 8px, #f4f5ff 8px 16px); }
.cert__brand { font: 800 11px var(--font-head); color: var(--blue-600); }
.cert__title { margin: 8px 0 4px; font: 800 18px var(--font-head); letter-spacing: .08em; }
.cert__name { font: 500 22px var(--font-script); color: var(--blue-600); }
.cert__seal { display: grid; place-items: center; width: 40px; height: 40px; margin: 10px auto 0; border-radius: 50%; background: var(--lav-100); color: var(--blue-600); }

/* Benefits row */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.benefits li { display: grid; gap: 14px; font: 600 15px/1.3 var(--font-head); color: var(--ink); }
.benefits li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.benefits .i { width: 28px; height: 28px; color: var(--blue-600); stroke-width: 1.7; }
@media (max-width: 768px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan__head { display: flex; align-items: center; gap: 12px; }
.plan__head h3 { font-size: 18px; letter-spacing: .03em; text-transform: uppercase; }
.plan__desc { min-height: 66px; margin-top: 14px; font-size: 14px; }
.plan__price { margin: 18px 0 22px; font: 800 28px var(--font-head); color: var(--ink); }
.plan__price small { display: block; margin-top: 4px; font: 500 13px var(--font); color: var(--muted); }
.plan__list { display: grid; gap: 11px; margin-bottom: 28px; font-size: 14px; color: var(--ink); }
.plan__list li { display: flex; gap: 10px; }
.plan__list .i { width: 18px; height: 18px; color: var(--pink-500); }
.plan__list li.is-off { color: #b5bbd3; }
.plan__list li.is-off .i { color: #cfd4e6; }
.plan .btn { margin-top: auto; }
.plan--best { border: 2px solid var(--pink-500); box-shadow: 0 18px 40px rgba(255, 45, 138, .15); }
.plan--premium { background: var(--grad-blue); border: 0; color: rgba(255, 255, 255, .85); }
.plan--premium h3, .plan--premium .plan__price, .plan--premium .plan__list { color: #fff; }
.plan--premium .plan__price small { color: rgba(255, 255, 255, .7); }
.plan--premium .plan__list .i { color: #fff; }
.plan--premium .icon-tile { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 1024px) {
  .pricing { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .pricing > * { scroll-snap-align: center; }
}

/* Callback banner */
.callback { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 24px 32px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(90deg, var(--navy-900), rgba(51, 70, 240, .9) 60%, rgba(255, 45, 138, .45)), url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1400&q=60&auto=format&fit=crop") right center / cover; }
.callback__text { flex: 1; min-width: 220px; }
.callback b { display: block; font: 700 18px var(--font-head); }
.callback p { font-size: 14px; color: rgba(255, 255, 255, .8); }
.callback .icon-tile { background: rgba(255, 255, 255, .15); color: #fff; }

/* Mobile sticky CTA (страница курса) */
.sticky-cta { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 32, 100, .08); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta small { display: block; font-size: 12px; color: var(--muted); }
.sticky-cta b { font: 800 17px var(--font-head); color: var(--ink); }
@media (max-width: 900px) { .sticky-cta { display: flex; } .has-sticky-cta .toasts { bottom: 84px; } }

/* Program page */
.panel { padding: clamp(16px, 2.5vw, 28px); }
.panel__head { display: flex; align-items: center; gap: 16px; margin: 8px 0 22px; }
.panel__head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.panel__head p { font-size: 14px; margin-top: 4px; }
.cert-banner { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 24px 28px; border-radius: var(--r); background: linear-gradient(110deg, #fff4fa, #f1efff); }
.cert-banner p { font-size: 14px; }
.cert-banner b { display: block; margin: 4px 0; font: 700 17px var(--font-head); color: var(--ink); }
.cert-banner .icon-tile { width: 60px; height: 60px; border-radius: 50%; }
.course-side-card { overflow: hidden; }
.course-side-card__img { position: relative; height: 150px; margin: 10px 10px 0; padding: 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(10, 29, 92, .7), rgba(10, 29, 92, .05)), url("https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?w=700&q=70&auto=format&fit=crop") center / cover; color: #fff; }
.course-side-card__img b { display: block; max-width: 220px; font: 800 21px/1.15 var(--font-head); }
.course-side-card__img .badge { margin-top: 12px; }
.course-side-card__body { padding: 22px; }
.course-side-card .btn { margin-top: 22px; }
.materials { display: grid; gap: 10px; }
.material { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.material b { display: block; font: 600 14px var(--font-head); color: var(--ink); }
.material small { font-size: 12px; color: var(--muted); }
.material .icon-btn { margin-left: auto; }

/* Cabinet */
.welcome { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 32px; align-items: center; }
.profile-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.profile-card img { grid-row: span 3; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--lav-100); }
.profile-card h2 { font-size: 20px; }
.profile-card ul { display: grid; gap: 4px; font-size: 13px; }
.profile-card li { display: flex; align-items: center; gap: 8px; }
.profile-card li .i { width: 15px; height: 15px; color: var(--blue-600); }
.profile-card .btn { grid-column: 1 / -1; justify-self: end; margin-top: 6px; }
@media (max-width: 900px) { .welcome { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .profile-card { grid-template-columns: minmax(0, 1fr); } .profile-card img { grid-row: auto; } .profile-card .btn { justify-self: stretch; } }

.cabinet { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.cabinet__side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav { padding: 10px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font: 600 14px var(--font-head); color: var(--ink); transition: background-color .2s, color .2s; }
.side-nav a .i { color: var(--muted); }
.side-nav a:hover { background: var(--lav-50); }
.side-nav a[aria-current="page"] { background: var(--pink-100); color: var(--pink-600); }
.side-nav a[aria-current="page"] .i { color: var(--pink-500); }
.side-nav__count { margin-left: auto; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink-500); color: #fff; font-size: 11px; }
.progress-card b { display: block; margin: 10px 0 12px; font: 800 30px var(--font-head); color: var(--ink); }
.progress-card small { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }
.promo-card { overflow: hidden; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .2), #fff 55%), url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=600&q=60&auto=format&fit=crop") top / 100% auto no-repeat, #fff; border: 1px solid var(--line); padding-top: 110px; }
.promo-card h3 { font-size: 20px; }
.promo-card p { margin: 10px 0 18px; font-size: 13px; }

.cabinet__main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.cabinet__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { display: flex; align-items: center; gap: 14px; padding: 20px; }
.stat-tile b { display: block; font: 800 22px var(--font-head); color: var(--ink); }
.stat-tile span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.stat-tile .i--sm { color: var(--blue-600); }
.my-courses .section-head { margin-bottom: 18px; align-items: center; }
.my-courses h2 { font-size: 26px; }
.my-course { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px; }
.my-course + .my-course { margin-top: 14px; }
.my-course img { width: 180px; height: 130px; border-radius: 12px; object-fit: cover; }
.my-course h3 { margin: 8px 0 4px; font-size: 17px; }
.my-course small { font-size: 12px; color: var(--muted); }
.my-course__progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 8px 0 6px; font: 700 13px var(--font-head); color: var(--ink); }
.my-course__deadline b { color: var(--pink-500); font-weight: 600; }
.my-course__actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.my-course__more { align-self: end; }
.next-step { padding: 26px; border-radius: var(--r-lg); background: var(--grad-blue); color: #fff; }
.next-step h3 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; }
.next-step p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.next-step .btn { margin-top: 22px; }
.cabinet__aside { display: grid; gap: 20px; }

@media (max-width: 1200px) {
  .cabinet__main { grid-template-columns: minmax(0, 1fr); }
  .cabinet__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cabinet { grid-template-columns: minmax(0, 1fr); }
  .cabinet__side { position: static; grid-template-columns: minmax(0, 1fr); }
  .side-nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 6px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; padding: 10px 14px; }
  .progress-card, .promo-card { display: none; }
  .cabinet__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cabinet__aside { grid-template-columns: minmax(0, 1fr); }
  .my-course { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .my-course img { width: 100%; height: 140px; }
  .my-course__more { display: none; }
  .my-course__actions .btn { flex: 1; }
  .stat-tile { flex-direction: column; align-items: flex-start; padding: 16px; }
}

.goal-band { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 32px 40px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(90deg, rgba(37, 52, 210, .95), rgba(123, 77, 255, .75) 60%, rgba(255, 45, 138, .4)), url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1400&q=60&auto=format&fit=crop") center / cover; }
.goal-band__text { flex: 1; min-width: 240px; }
.goal-band h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); }
.goal-band p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.goal-band .icon-tile { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 640px) { .goal-band { padding: 24px; } .goal-band .btn { width: 100%; } }
.with-aside--static .with-aside__side { position: static; }
/* Дети grid-раскладок не должны раздвигать колонку под ширину скролл-лент */
.with-aside > *, .cabinet > *, .cabinet__main > *, .filter-panel > *, .split > *, .band__grid > * { min-width: 0; }

/* Журнал «Туризм без фильтров» (главная) */
.media-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 56px); border-radius: var(--r-xl); color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(45% 70% at 100% 100%, rgba(255, 45, 138, .35), transparent 70%),
    radial-gradient(40% 60% at 0% 0%, rgba(75, 92, 255, .35), transparent 70%),
    linear-gradient(120deg, var(--navy-950), var(--navy-900));
}
.media-band__cover-link { position: relative; display: block; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-3deg); transition: transform .4s var(--ease); }
.media-band__cover-link:hover { transform: rotate(0) translateY(-6px); }
.media-band__cover-link img { width: 100%; border-radius: 12px; }
.media-band__cover-link .badge { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; white-space: nowrap; background: var(--amber-400); color: var(--ink); box-shadow: var(--shadow); }
.media-band__tag { background: rgba(123, 77, 255, .9); text-transform: uppercase; letter-spacing: .06em; }
.media-band__title { margin-top: 14px; color: #fff; font-size: clamp(30px, 4vw, 48px); }
.media-band__sub { margin: 8px 0 18px; font-size: 14px; color: #ff8cc1; }
.media-band__sub b { color: #fff; }
.media-band__text > p:not(.media-band__sub) { max-width: 560px; }
.media-band__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.media-band__topics li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.35; }
.media-band__topics b { display: block; font: 700 14px var(--font-head); color: #fff; }
.media-band__quote { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--pink-500); font-style: italic; color: #fff; }
.media-band__quote cite { display: block; margin-top: 6px; font-size: 12px; font-style: normal; color: rgba(255, 255, 255, .6); }
.media-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) {
  .media-band { grid-template-columns: minmax(0, 1fr); }
  .media-band__cover-link { width: min(260px, 70%); margin: 0 auto 12px; }
}
@media (max-width: 520px) {
  .media-band__topics { grid-template-columns: minmax(0, 1fr); }
  .media-band__actions .btn { width: 100%; }
}

/* Доступ только после регистрации ------------------------------------------ */
a.lesson { cursor: pointer; }
.lesson__lock { width: 16px !important; height: 16px !important; margin-left: auto; color: var(--muted) !important; }
.lesson__lock + .lesson__time { margin-left: 10px; }
[data-auth="guest"] .lesson { color: var(--text); }
[data-auth="guest"] .lesson:hover { background: var(--pink-100); }

.gated { position: relative; min-height: 260px; }
[data-auth="guest"] .gated__content { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; }
.gated__overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 12px; }

.gate { max-width: 440px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; }
.gate .icon-tile { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; }
.gate h3 { font-size: 20px; }
.gate p { margin-top: 8px; font-size: 14px; }
.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.cabinet-gate { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cabinet-gate .gate { max-width: none; }
.unlock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.unlock-list li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.unlock-list .icon-tile { grid-row: span 2; }
.unlock-list b { font: 700 15px var(--font-head); color: var(--ink); }
.unlock-list li > span:last-child { font-size: 13px; color: var(--muted); }
.unlock-list li::after { content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) { .cabinet-gate { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .unlock-list { grid-template-columns: minmax(0, 1fr); } }

.login-reason { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--pink-100); color: var(--ink); font-size: 14px; }
.login-reason .i { width: 18px; height: 18px; color: var(--pink-500); }
.video-frame__soon { display: grid; place-items: center; height: 100%; padding: 24px; color: #fff; font: 600 16px/1.5 var(--font-head); text-align: center; }

.demo-hint { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #e6f8f0; color: #0d6b47; font-size: 13px; line-height: 1.45; }

/* Жесткое скрытие отфильтрованных карточек */
[hidden],
.course-card[hidden],
.catalog-empty[hidden] {
    display: none !important;
}

/* ==========================================================================
   АБСОЛЮТНЫЙ ПРИОРИТЕТ TRAVELSKILLS STYLES
   ========================================================================== */
body.academy-course-landing,
body.home,
body.page-template-page-cabinet,
body.post-type-archive-sfwd-courses {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Принудительное включение нашей сетки контейнеров */
.academy-course-landing .container,
.academy-course-landing .academy-container,
body.home .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   АБСОЛЮТНЫЙ ПРИОРИТЕТ ДЛЯ МОДАЛЬНЫХ ОКОН (ОТМЕНЯЕМ СТАРЫЙ BOOTSTRAP)
   ========================================================================== */
dialog.modal,
dialog.modal.is-open,
dialog.modal[open] {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 999999 !important;
    border: none !important;
    padding: 0 !important;
}

/* Скрываем модалку, когда она не активна */
dialog.modal:not([open]):not(.is-open) {
    display: none !important;
}

/* Внутренний контейнер модалки */
dialog.modal .modal__box {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 35px !important;
    width: 90% !important;
    max-width: 480px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    position: relative !important;
}

/* Фоллбэк для иконок на случай отсутствия спрайта */
.i {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: -0.125em;
}

/* Принудительная видимость иконок в кнопках и карточках */
.btn svg.i, .link-arrow svg.i, .course-card__foot svg.i {
    margin-left: 6px;
}

/* ==========================================================================
   PIXEL-PERFECT ФИКС ДЛЯ ИКОНОК, СЛАЙДЕРА И КАРТОЧЕК
   ========================================================================== */

/* Нормальный размер SVG иконок */
svg.i {
    width: 1.15em !important;
    height: 1.15em !important;
    vertical-align: -0.2em !important;
    display: inline-block !important;
}

/* Иконки в кружочках и блоках преимуществ */
.icon-tile svg.i {
    width: 22px !important;
    height: 22px !important;
}

/* Активные розовые вкладки и чипсы */
.tabs--plain .tab.is-active,
.tabs--plain .tab[aria-selected="true"],
.cat-chip.is-active,
.cat-chip[aria-pressed="true"] {
    background: #ec4899 !important;
    color: #ffffff !important;
    border-color: #ec4899 !important;
}

/* Слайдер преподавателей: единая высота фото */
.teacher-card__photo {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Кабинет: выравнивание профиля строго слева */
.cabinet .welcome {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 30px !important;
}

.profile-card {
    text-align: left !important;
    align-items: flex-start !important;
}

/* Адаптив для фиолетового блока CTA со скриншота */
@media (max-width: 992px) {
    .lead-band {
        grid-template-columns: 1fr !important;
        padding: 30px !important;
    }
}

/* Исправление контраста имен преподавателей на главной в слайдере */
.teacher-card .teacher-card__info,
.card.teacher-card .teacher-card__info {
    background: #0a1d5c !important;
    padding: 18px !important;
    border-radius: 0 0 12px 12px !important;
}
.teacher-card .teacher-card__info b {
    color: #ffffff !important;
    font-size: 16px !important;
    display: block !important;
    margin-bottom: 4px !important;
}
.teacher-card .teacher-card__info span {
    color: #93c5fd !important;
    font-size: 13px !important;
}

/* ==========================================================================
   ФИНАЛЬНОЕ СХЛОПЫВАНИЕ МЕНЮ В ОДИН РЯД
   ========================================================================== */

/* 1. Блок навигации не растягивается, а аккуратно встает рядом с логотипом */
header.header .nav {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    width: auto !important;
    margin-right: auto !important; /* Прижимает всё меню влево к логотипу */
    margin-left: 35px !important;  /* Аккуратный отступ от логотипа */
}

/* 2. Список пунктов: выравнивание строго от начала (никаких дыр) */
header.header .nav__list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Запрещает разрыв элементов */
    gap: 24px !important;                   /* Ровный шаг между пунктами */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 3. Каждый отдельный элемент списка */
header.header .nav__item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* 4. Правый блок действий (Поиск, Язык, Кабинет) жестко зафиксирован справа */
header.header .header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-left: auto !important; /* Всегда прижимает кнопки к правому краю */
    flex-shrink: 0 !important;
}

/* Обнуляем отталкивание у первого пункта меню */
header.header .nav__list > li.nav__item--drop,
header.header .nav__list > li:first-child {
    margin-right: 0 !important;
}

/* Принудительно отменяем flex-grow у пунктов меню */
header.header .nav__list > li {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* ЖЕСТКИЙ СБРОС БУТСУРАПОВСКИХ ДРОПДАУНОВ В ШАПКЕ */
header.header .dropdown, 
header.header .dropup {
    position: absolute !important; /* Возвращаем нормальное абсолютное позиционирование выпадающему меню */
}

header.header .nav__item--drop {
    position: relative !important;
}

/* Полное выравнивание всей строки шапки без плавающих отступов */
header.header .header__in {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

header.header .nav {
    margin: 0 auto !important; /* Центрирует всю навигацию */
    flex: 0 1 auto !important;
}

header.header .nav__list {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.header .header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   Преподаватели курса: Ч/Б фильтр и адаптивная сетка (1, 2, 3+ карточек)
   ========================================================================== */

.teachers-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* 1. Эффект Ч/Б по умолчанию -> Цветной при ховере */
.teacher-hero__avatar img,
.teacher-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 0.35s ease, transform 0.35s ease;
  background-color: #f1f5f9;
  display: block;
}

.teacher-hero:hover .teacher-hero__avatar img,
.teacher-card:hover .teacher-card__avatar img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* 2. Hero-стиль для одного преподавателя */
.teacher-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0;
}

.teacher-hero__avatar {
  width: 160px;
  height: 160px;
  min-width: 160px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.teacher-hero__info h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #0f172a;
}

.teacher-hero__info p {
  color: #64748b;
  font-size: 15px;
  margin: 0 0 16px 0;
}

/* 3. Сетка преподавателей (2 и более) */
.teachers-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

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

.teachers-grid--multi {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Карточка в сетке */
.teacher-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.teacher-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.teacher-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.teacher-card__avatar {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.teacher-card__meta {
  flex: 1;
  min-width: 0;
}

.teacher-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.teacher-card__role {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* 4. Бейджи фактов во всю ширину карточки (под фото) */
.facts--full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.facts--full .fact {
  width: 100%;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .teachers-grid--2,
  .teachers-grid--multi {
    grid-template-columns: 1fr;
  }
  
  .teacher-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .teacher-hero .facts {
    justify-content: center;
  }
}

  .faq-accordion .faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
  }
  .faq-accordion .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 8px;
  }
  .faq-accordion .faq-item:first-child {
    padding-top: 8px;
  }
  .faq-item__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    list-style: none;
    gap: 16px;
  }
  .faq-item__trigger::-webkit-details-marker {
    display: none;
  }
  .faq-item__title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.2s ease;
  }
  .faq-item__trigger:hover .faq-item__title {
    color: var(--color-primary, #6366f1);
  }
  .faq-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
  }
  details[open] .faq-item__icon {
    transform: rotate(180deg);
    background: #eef2ff;
    color: var(--color-primary, #6366f1);
  }
  .faq-item__content {
    margin-top: 10px;
    padding-right: 32px;
  }
  .faq-item__content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
  }

/* ==========================================================================
   ТИПОГРАФИКА ДЛЯ КЛАССИЧЕСКОГО РЕДАКТОРА WORDPRESS (.rich / .entry-content)
   ========================================================================== */

.rich,
.entry-content,
.lesson-content {
  font-size: 16px;
  line-height: 1.75;
  color: #334155; /* Современный slate-700 */
  word-break: break-word;
}

/* 1. Абзацы */
.rich p,
.entry-content p {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.rich p:last-child,
.entry-content p:last-child {
  margin-bottom: 0;
}

/* 2. Заголовки внутри контента */
.rich h1, .entry-content h1,
.rich h2, .entry-content h2,
.rich h3, .entry-content h3,
.rich h4, .entry-content h4,
.rich h5, .entry-content h5,
.rich h6, .entry-content h6 {
  color: #0f172a; /* Slate-900 */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.rich h1, .entry-content h1 { font-size: 26px; }
.rich h2, .entry-content h2 { font-size: 22px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
.rich h3, .entry-content h3 { font-size: 19px; }
.rich h4, .entry-content h4 { font-size: 17px; }

/* 3. СПИСКИ (Маркированные и нумерованные) — ВОЗВРАТ БУЛЛЕТОВ */
.rich ul,
.entry-content ul {
  list-style-type: disc !important;
  margin: 1em 0 1.4em 0 !important;
  padding-left: 28px !important;
}

.rich ol,
.entry-content ol {
  list-style-type: decimal !important;
  margin: 1em 0 1.4em 0 !important;
  padding-left: 28px !important;
}

/* Разрешаем list-item только обычным спискам, ИСКЛЮЧАЯ квизы LearnDash */
.rich ol:not(.wpProQuiz_list) li,
.entry-content ol:not(.wpProQuiz_list) li,
.rich ul:not(.wpProQuiz_list) li,
.entry-content ul:not(.wpProQuiz_list) li {
  display: list-item !important;
}

/* Вложенные списки */
.rich ul ul, .entry-content ul ul,
.rich ol ul, .entry-content ol ul {
  list-style-type: circle !important;
  margin: 0.4em 0 0.4em 0 !important;
}

.rich ol ol, .entry-content ol ol,
.rich ul ol, .entry-content ul ol {
  list-style-type: lower-latin !important;
  margin: 0.4em 0 0.4em 0 !important;
}

/* 4. Выделение текста */
.rich strong, .entry-content strong,
.rich b, .entry-content b {
  font-weight: 700;
  color: #0f172a;
}

.rich em, .entry-content em,
.rich i, .entry-content i {
  font-style: italic;
}

/* 5. Цитаты (Blockquote) */
.rich blockquote,
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  background-color: #f8fafc;
  border-left: 4px solid var(--color-primary, #6366f1);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}

.rich blockquote p,
.entry-content blockquote p {
  margin: 0;
}

/* 6. Ссылки внутри конспекта */
.rich a,
.entry-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.rich a:hover,
.entry-content a:hover {
  color: #1d4ed8;
}

/* 7. Таблицы (если есть в уроках) */
.rich table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}

.rich table th,
.entry-content table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.rich table td,
.entry-content table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.rich table tr:nth-child(even) td,
.entry-content table tr:nth-child(even) td {
  background: #f8fafc;
}

/* 8. Изображения, вставленные контент-менеджером */
.rich img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2em 0;
}

.rich .aligncenter,
.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rich .alignleft,
.entry-content .alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.rich .alignright,
.entry-content .alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

/* 9. Горизонтальная линия */
.rich hr,
.entry-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2em 0;
}

.course-card__btn {
    background-color: #ffe500;
    padding: 5px 10px;
    border-radius: 5px;
}

/* ==========================================================================
   Плавающая плашка Telegram (снизу по центру)
   ========================================================================== */

.ts-tg-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  
  /* Эффект матового стекла */
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, background 0.2s ease;
  user-select: none;
}

.ts-tg-pill:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.02);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.4), 0 0 15px rgba(56, 189, 248, 0.2);
}

.ts-tg-pill:active {
  transform: translateX(-50%) translateY(0) scale(0.98);
}

/* 1. Пульсирующая зеленая точка "Онлайн" */
.ts-tg-pill__pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ts-tg-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes ts-tg-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* 2. Иконка самолетика Telegram */
.ts-tg-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8; /* Telegram Sky Blue */
  transition: transform 0.25s ease;
}

.ts-tg-pill:hover .ts-tg-pill__icon {
  transform: rotate(-10deg) scale(1.1);
}

/* 3. Текст */
.ts-tg-pill__text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Мобильная адаптация */
@media (max-width: 640px) {
  .ts-tg-pill {
    bottom: 16px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .ts-tg-pill__text {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Интерактивный аватар с загрузкой фото в личном кабинете
   ========================================================================== */
.user-avatar-uploader {
  position: relative;
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 50%;
  cursor: pointer;
}

.user-avatar-uploader .user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  display: block;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.user-avatar-uploader:hover .user-avatar-img {
  filter: brightness(0.85);
}

.user-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.user-avatar-uploader:hover .user-avatar-badge {
  transform: scale(1.1);
  background: #1d4ed8;
}

.user-avatar-uploader.is-uploading .user-avatar-img {
  opacity: 0.4;
}

/* ==========================================================================
   Идеально ровный B2B Баннер в каталоге
   ========================================================================== */

.b2b-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.b2b-banner-box__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.b2b-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #eef2ff !important;
  color: var(--color-primary, #6366f1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-icon svg {
  width: 24px;
  height: 24px;
}

.b2b-banner-box__text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.b2b-banner-box__text p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.b2b-banner-box__right {
  flex-shrink: 0;
}

.b2b-banner-box__right .btn {
  white-space: nowrap;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .b2b-banner-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .b2b-banner-box__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .b2b-banner-box__right {
    width: 100%;
  }
  .b2b-banner-box__right .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   1. КРАСИВЫЙ БЛОК СТАТИСТИКИ HERO (ПОСТРОЧНО)
   ========================================================================== */

.hero__stats--list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 440px;
  margin-top: 28px;
}

.hero__stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero__stat-card:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.18);
}

.hero__stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__stat-icon svg {
  width: 20px;
  height: 20px;
}

.hero__stat-content {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.35;
}


/* ==========================================================================
   2. МОБИЛЬНОЕ МЕНЮ: ВЫПАДЕНИЕ ВНИЗ (ВМЕСТО ВЫЛЕТА В БОК)
   ========================================================================== */

@media (max-width: 991px) {
  /* Перебиваем старый боковой выезд (.mobile-menu / .nav-menu / .menu-drawer) */
  .header__menu,
  .mobile-menu,
  .site-navigation.is-open,
  .header-nav.is-open,
  [data-mobile-menu].is-open {
    position: fixed !important;
    top: 68px !important; /* Высота вашей шапки */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    
    /* Анимация раскрытия строго ВНИЗ */
    transform: translateY(0) !important;
    display: block !important;
    animation: tsMenuSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    z-index: 9999 !important;
    padding: 20px 24px 28px !important;
  }

  /* Состояние до открытия */
  .header__menu:not(.is-open),
  .mobile-menu:not(.is-open),
  .site-navigation:not(.is-open),
  [data-mobile-menu]:not(.is-open) {
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  @keyframes tsMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Стилизация ссылок внутри выпадающего меню */
  .mobile-menu a,
  .header__menu a,
  [data-mobile-menu] a {
    display: block !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
}

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ: ВЫПАДЕНИЕ ВНИЗ ПОД ШАПКУ (ВМЕСТО БОКОВОГО ДРОЭРА)
   ========================================================================== */

@media (max-width: 991px) {

  /* 1. Сам контейнер мобильного меню .nav */
  .header .nav[data-nav] {
    position: fixed !important;
    top: 68px !important; /* Высота шапки */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12) !important;
    
    /* Скрыто по умолчанию: смещено вверх и прозрачно */
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    padding: 24px 20px 32px !important;
    z-index: 9999 !important;
  }

  /* 2. Состояние ОТКРЫТО: плавное выпадание ВНИЗ */
  .header .nav[data-nav].is-open,
  body.menu-open .header .nav[data-nav],
  .header.is-open .nav[data-nav] {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* 3. Список ссылок */
  .header .nav__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header .nav__item {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .header .nav__link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    width: 100% !important;
  }

  /* Выпадающий пункт "Курсы" в мобилке */
  .header .nav__item--drop .dropdown {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
  }

  .header .nav__item--drop .dropdown li a {
    padding: 10px 0 !important;
  }

  /* 4. Нижний блок с кнопками (Войти/Регистрация/Телефон) */
  .header .nav__mobile-extra {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }

  .header .nav__phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    margin-top: 8px !important;
  }

  /* Запрещаем скролл страницы при открытом меню */
  body.menu-open {
    overflow: hidden !important;
  }
}

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ: ПОЛНОЕ ОТОБРАЖЕНИЕ ВСЕХ ПУНКТОВ И ВЫПАДЕНИЕ ВНИЗ
   ========================================================================== */

@media (max-width: 991px) {

  /* 1. Главный контейнер мобильного меню .nav */
  .header .nav[data-nav] {
    position: fixed !important;
    top: 68px !important; /* Высота шапки */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15) !important;
    
    /* Состояние закрыто */
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    padding: 20px 20px 32px !important;
    z-index: 99999 !important;
  }

  /* Состояние ОТКРЫТО */
  .header .nav[data-nav].is-open,
  body.menu-open .header .nav[data-nav] {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* 2. Принудительно показываем СПИСОК ПУНКТОВ (делаем видимым!) */
  .header .nav__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .header .nav__item {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
  }

  .header .nav__link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 4px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important; /* Четкий темный цвет текста */
    text-decoration: none !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
  }

  /* 3. ВЫПАДАЮЩИЙ СПИСОК "КУРСЫ" — РАСКРЫТИЕ СТРОГО ВНИЗ (НЕ В БОК!) */
  .header .nav__item--drop {
    position: relative !important;
  }

  .header .nav__item--drop .dropdown {
    position: static !important; /* Отменяем absolute, убираем боковой вылет */
    display: none; /* Скрыто, пока не кликнули */
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    margin: 4px 0 12px 0 !important;
    list-style: none !important;
  }

  /* Когда пункт "Курсы" раскрыт (класс is-active или open) */
  .header .nav__item--drop.is-open .dropdown,
  .header .nav__item--drop.is-active .dropdown {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .header .nav__item--drop .dropdown li {
    width: 100% !important;
    border-bottom: 1px solid #edf2f7 !important;
  }
  .header .nav__item--drop .dropdown li:last-child {
    border-bottom: none !important;
  }

  .header .nav__item--drop .dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 6px !important;
    color: #1e293b !important;
    text-decoration: none !important;
  }

  .header .nav__item--drop .dropdown b {
    display: block !important;
    font-size: 14px !important;
    color: #0f172a !important;
  }

  .header .nav__item--drop .dropdown small {
    display: block !important;
    font-size: 11px !important;
    color: #64748b !important;
  }

  /* 4. Нижний мобильный блок (кнопки Войти / Регистрация / Телефон) */
  .header .nav__mobile-extra {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px dashed #cbd5e1 !important;
  }

  .header .nav__phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    text-decoration: none !important;
    margin-top: 6px !important;
  }
}

/* ==========================================================================
   ФИКС МОБИЛЬНОГО МЕНЮ TRAVELSKILLS (ТОЛЬКО ЧИСТЫЙ CSS)
   ========================================================================== */

@media (max-width: 991px) {

  /* 1. Когда меню открыто родным скриптом (класс .is-open) */
  .header .nav.is-open,
  .header [data-nav].is-open {
    position: fixed !important;
    top: 68px !important; /* Ровно под шапкой */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    
    /* Отменяем боковой выезд (transform / right) */
    transform: none !important;
    right: 0 !important;
    
    padding: 20px 24px 36px !important;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    z-index: 999999 !important;
  }

  /* 2. Делаем СПИСОК ССЫЛОК видимым (он был спрятан десктопным стилем!) */
  .header .nav.is-open .nav__list,
  .header [data-nav].is-open .nav__list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .header .nav.is-open .nav__item,
  .header [data-nav].is-open .nav__item {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .header .nav.is-open .nav__link,
  .header [data-nav].is-open .nav__link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important; /* Контрастный темный текст */
    text-decoration: none !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
  }

  /* 3. ВЫПАДАЮЩИЙ СПИСОК "КУРСЫ" — РАСКРЫВАЕТСЯ ВНИЗ */
  .header .nav__item--drop {
    position: relative !important;
  }

  /* Отменяем абсолютное позиционирование дропдауна, чтобы он не улетал вправо */
  .header .nav__item--drop .dropdown {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    margin: 6px 0 12px 0 !important;
  }

  /* Когда пункт "Курсы" активен/раскрыт */
  .header .nav__item--drop.is-active .dropdown,
  .header .nav__item--drop.is-open .dropdown,
  .header .nav__item--drop:hover .dropdown {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .header .nav__item--drop .dropdown li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    color: #1e293b !important;
    text-decoration: none !important;
  }

  .header .nav__item--drop .dropdown b {
    display: block !important;
    font-size: 14px !important;
    color: #0f172a !important;
  }

  .header .nav__item--drop .dropdown small {
    display: block !important;
    font-size: 11px !important;
    color: #64748b !important;
  }

  /* 4. Кнопки входа и телефон внизу меню */
  .header .nav.is-open .nav__mobile-extra,
  .header [data-nav].is-open .nav__mobile-extra {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 16px !important;
    border-top: 1px dashed #cbd5e1 !important;
  }

  .header .nav__phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    text-decoration: none !important;
    margin-top: 6px !important;
  }
}

/* ==========================================================================
   Рекомендованные курсы (Related Courses)
   ========================================================================== */
.related-courses .course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.08);
}

.related-courses .course-card:hover img {
  transform: scale(1.04);
}


/* ==========================================================================
   ВОССТАНОВЛЕНИЕ ПОШАГОВОГО ОТОБРАЖЕНИЯ ВОПРОСОВ В ТЕСТАХ LEARNDASH
   ========================================================================== */

/* 1. Сбрасываем стили списков для обертки квиза */
.wpProQuiz_content ol.wpProQuiz_list {
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. По умолчанию скрываем вопросы, у которых в style прописано display: none */
.wpProQuiz_content .wpProQuiz_listItem[style*="display: none"],
.wpProQuiz_content .wpProQuiz_listItem[style*="display:none"] {
  display: none !important;
}

/* 3. Кнопка "Далее" и отправки внутри квиза */
.wpProQuiz_content input[type="button"].wpProQuiz_button {
  cursor: pointer;
}

/*временный кард удалить */
.card {
display:grid !important;
}

