/* ====== Breakless Course — single consolidated CSS ======
   - Объединено course_page.css + course_custom.css
   - Убраны дубликаты, лишние !important сведены к минимуму
   - Исправлено выравнивание overview (контент слева, не центр)
========================================================== */

/* Imports */
@import url('fontawesome.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Base */
html, body { font-family:'Montserrat',sans-serif; height:100%; margin:0; padding:0; }
.wrapper { display:flex; flex-direction:column; min-height:100vh; }
a { color:#3CF; text-decoration:none; }
a:hover { color:#FC3; text-decoration:none; }
ul { margin:0; padding:0; list-style:none; }
p { font-size:13px; line-height:22px; }
p em { font-style:normal; color:#f5a425; font-weight:600; }

/* HEADER LESSON */
.lesson-header {
  margin: 36px 0px 24px;
  padding: 12px 0;
}

.lesson-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.lesson-title em {
  font-size: 26px;
  font-weight: 700;
  color: #f7b651;
  margin: 0 0 8px;
  font-style: normal;
}

.lesson-subtitle {
  font-size: 16px;
  color: #ccc;
  margin: 0;
}


/* Buttons */
.main-button a,
.button {
  background:#f5a425; color:#fff; font-size:13px; text-transform:uppercase;
  letter-spacing:.5px; font-weight:700; padding:12px 20px; display:inline-block;
  outline:none; border:none; box-shadow:none;
}
.button { margin-top:10px; border-radius: 12px; }
.button:hover, .main-button a:hover { background:#f7b651; }
/* small button */
.button.button--sm { padding:8px 12px; font-size:12px; }

.lesson-done-wrap {
  text-align: center;           /* выравнивание содержимого по центру */
  margin-top: 20px;             /* дополнительный отступ сверху */
}

/* строка "название шага — кнопка" */
.ov-continue-row{
  display: flex;
  align-items: center;           /* вертикальное центрирование кнопки с текстом */
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  white-space: nowrap;           /* заголовок не переносится */
}
/* текст шага слева: если не влазит — троеточие */
.ov-continue-title{
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* сам заголовок шага */
.ov-continue{
  margin: 0;
  color: #fff;
}

/* кнопка справа — компактная, белый текст, скруглённые углы, hover светлее */
.ov-continue-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;                  /* одинаковая ширина */
  height: 30px;                  /* одинаковая высота */
  padding: 0;                    /* высоту держим через height */
  border-radius: 12px;
  background: #f5a425;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;                /* чтобы текст не «прыгал» */
  white-space: nowrap;           /* текст в одну строку */
  transition: filter .15s ease, background-color .15s ease;
}

.ov-continue-btn:hover{
  background: #f7b651;         /* светлее при наведении */
}



/* ==== Header (flex-centered, height: 60px) ==== */
.main-header{
  background: rgba(2,11,28,.70);
  height: 60px;
  position: fixed;
  z-index: 12;
  width: 100%;
  top: 0;

  display: flex;              /* центрируем содержимое */
  align-items: center;        /* по вертикали */
  justify-content: space-between;
}

/* Логотип слева */
.main-header .logo{
  padding-left: 60px;
  line-height: 1;             /* без «растяжки» */
  display: flex;
  align-items: center;
}

.main-header .logo a{
  font-size: 36px;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
}
.main-header .logo a em{
  font-style: normal;
  color: #f5a425;
}

/* Верхнее меню справа */
.top-menu{
  margin-left: auto;          /* уводим вправо */
  padding-right: 60px;

  display: flex;
  align-items: center;
  gap: 15px;                  /* вместо margin-left у li */
}

/* Элементы меню */
.top-menu li{
  position: relative;         /* для dropdown */
  display: flex;
  align-items: center;
  line-height: 1;
}
.top-menu li:first-child{ margin-left: 0; }

.top-menu li > a{
  display: flex;
  align-items: center;
  height: 60px;               /* ровно по высоте шапки */
  padding: 0 15px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  color: #fff;
  border: 2px solid transparent;
  transition: all .3s;
}

/* Иконка у пунктов с подменю */
.top-menu li.has-submenu > a::after{
  content: '\f107';
  font-family: 'FontAwesome';
  margin-left: 5px;
}

/* Dropdown */
.top-menu li .sub-menu{
  position: absolute;
  left: 0;
  top: 100%;                  /* прямо под пунктом */
  width: 160px;
  background: #18233a;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.top-menu li:hover .sub-menu{
  opacity: 1;
  visibility: visible;
}
.top-menu li .sub-menu li{
  display: block;
  line-height: 20px;
  margin-left: 0;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #121b2f;
}
.top-menu li .sub-menu li:first-child{ padding-top: 15px; }
.top-menu li .sub-menu li:last-child{
  margin-bottom: 0;
  border-bottom: none;
}
.top-menu li .sub-menu a{
  font-size: 12px;
  font-weight: 500;
  padding: 0 15px;
  letter-spacing: .5px;
  border: none;
  transition: all .3s;
}
.top-menu li .sub-menu a:hover{ color: #f5a425; }

/* Mobile header controls */
a.menu-link { display:none; }

/***** Side Navigation *****/
.side-nav { position:fixed; left:0; top:60px; width:260px; height:calc(100% - 60px); background:rgba(2,11,28,.70); padding-top:10px; z-index:900; display:flex; flex-direction:column; justify-content:space-between; overflow-y:auto; }
.side-menu > li { margin-bottom:4px; }
.side-menu li a { padding:10px 15px; font-size:13px; text-transform:uppercase; letter-spacing:.5px; font-weight:700; color:#fff; border:2px solid transparent; transition:all .3s; display:block; }
.side-menu .sub-menu a {
  padding:10px 15px;
  letter-spacing:.5px;
  color:#fff;
  font-weight:500;
  font-size:12px;       /* можно чуть меньше */
  padding:6px 12px;     /* более узкие отступы */
}
.side-menu a:hover { background:#f5a425; }
.side-menu li.has-submenu > a::after { content:'\f107'; font-family:'FontAwesome'; margin-left:5px; display:inline-block; transform:rotate(0deg); transition:transform .3s ease; }
.side-menu li.has-submenu > a.active::after { transform:rotate(180deg); }
.side-menu .sub-menu { display:none; opacity:0; transition:opacity .3s ease; padding-left:20px; margin:0; list-style:none; }
.side-menu .sub-menu.show { display:block; opacity:1; }
.side-menu a.lesson-link { display:flex; align-items:center; justify-content:space-between; width:100%; box-sizing:border-box; padding:4px 8px; text-decoration:none; }
.side-menu a.lesson-link .lesson-title { flex:1 1 auto; text-align:left; }
.side-menu .done-badge { color:#4CAF50; font-weight:800; margin-left:auto; }
.side-menu li.has-submenu ul.sub-menu li.has-submenu > a::after { content:'\f105'; font-family:'FontAwesome'; margin-left:5px; transition:transform .3s ease; }
.side-menu li.has-submenu ul.sub-menu li.has-submenu > a.active::after { transform:rotate(90deg); }
.side-menu li.has-submenu ul.sub-menu li.has-submenu ul.sub-menu { display:none; opacity:0; transition:opacity .3s ease; padding-left:30px; }
.side-menu li.has-submenu ul.sub-menu li.has-submenu ul.sub-menu.show { display:block; opacity:1; }
.side-menu a.active-step, .side-menu a.lesson-link.active { background:rgba(245,164,37,.18); border-radius:4px; }
.side-menu .lesson-title{
  font-size: 13px;        /* тот же, что у .side-menu li a */
  font-weight: 700;       /* если нужно сохранить жирность */
  line-height: 1.2;
}

/* Search box in side-nav */
.search-container { padding:15px; background:rgba(22,34,57,.95); }
#search-input { width:100%; padding:10px; border:none; border-radius:3px; background:rgba(180,180,180,.45); color:#fff; font-size:14px; outline:none; }
#search-input::placeholder { color:#fff; }

/* Hero / Slider */
.main-banner { position:relative; max-height:100%; overflow:hidden; margin-bottom:-7px; }
#bg-video { min-width:100%; min-height:100vh; max-width:100%; max-height:100vh; object-fit:cover; z-index:-1; }
#bg-video::-webkit-media-controls { display:none !important; }
.video-overlay { position:absolute; background:rgba(22,34,57,.85); inset:0 0 7px 0; width:100%; }
.main-banner .caption { text-align:center; position:absolute; width:80%; left:50%; top:50%; transform:translate(-50%,-50%); }
.main-banner .caption h6 { margin:0; font-size:18px; text-transform:uppercase; font-weight:600; color:#fff; letter-spacing:1px; }
.main-banner .caption h2 { margin:30px 0; font-size:64px; text-transform:uppercase; font-weight:800; color:#fff; letter-spacing:1px; }
.main-banner .caption h2 em { font-style:normal; color:#f5a425; font-weight:900; }
#video-play { width:720px; max-width:720px; height:auto; object-fit:cover; border-radius:10px; position:relative; z-index:1; }

/* Main content scaffold */
.main-content { flex:1; display:flex; flex-direction:column; }

/* ===== Study section (course pages) ===== */
section.study{
  background:#172238 url('../images/BG/BG_basic.jpg') center/cover no-repeat;
  padding:56px 0 28px !important;   /* было 100px 40px — убрали боковые */
  display:flex; justify-content:center; align-items:center;
  flex-grow:1; min-height:100vh;
}
/* контейнер шире и отступ от левого сайд-меню */
.study .container{
  /* ширина рабочего пространства: окно − меню − поля по 30px */
  width: calc(100vw - 260px - 60px);
  margin-left: calc(260px + 30px); /* меню + левое поле 30 */
  margin-right: 30px;               /* правое поле 30 */
  box-sizing: border-box;

  /* без центрирования всего блока — центрируем уже .content */
  display: block;
  text-align: left;
  padding: 0;                       /* паддинги тут не нужны */
}

/* НЕ центрировать основной текст/overview */
.study .content{
  max-width: 1200px;   /* ограничение, чтобы текст не растягивался на огромных экранах */
  margin: 0 auto;      /* центрируем внутри «рабочего поля» */
  width: 100%;
  padding-bottom: 0px;
}

/* ==== Видео/iframe в уроке: резиновая ширина и центрирование ==== */

/* центрируем сам контейнер с медиа */
.study .content figure{
  width: 100%;
  max-width: 720px;       /* чтобы на очень широких экранах не разъезжалось */
  margin: 0 auto 16px;     /* <-- центрирование */
}

/* делаем сам плеер «fluid» и 16:9 */
.study .content iframe,
.study .content video{
  display: block;
  width: 100% !important;  /* игнорируем атрибут width="720" */
  height: auto !important; /* игнорируем атрибут height="405" */
  aspect-ratio: 16 / 9;    /* сохраняем пропорцию */
  border: 0;
  border-radius: 10px;
}

/* если используете <img> в figure — тоже по центру и адаптивно */
.study .content figure img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


.study .image-box { width:100%; max-width:100%; }
.study img { max-width:100%; height:auto; border-radius:10px; margin-bottom:20px; border-radius:10px; }
.study h4 { font-size:28px; font-weight:700; color:#fff; margin-bottom:20px; }
.study p { font-size:16px; line-height:1.6; color:#fff; margin-bottom:20px; text-align:left; }
.study a { color:#f5a425; }
.study a:hover { text-decoration:underline; }

/* ===== Tabs (kept) ===== */
#tabs { text-align:center; }
#tabs ul { margin:0; padding:0; column-count:3; column-gap:0; }
#tabs ul::after { content:""; display:table; clear:both; }
#tabs ul li { display:block; font-weight:400; font-size:1.2em; letter-spacing:1px; text-align:center; }
#tabs ul li a { display:block; font-size:13px; font-weight:700; letter-spacing:1px; cursor:pointer; outline:0; padding-bottom:30px; color:#fff; text-transform:uppercase; position:relative; }
#tabs ul li a::after { transition:all 1s; width:10px; height:10px; background:#fff; content:''; position:absolute; left:50%; transform:translateX(-50%); bottom:0; }
#tabs ul li a::before { transition:all 1s; width:25px; height:25px; border:2px solid transparent; background:transparent; content:''; position:absolute; left:50%; transform:translateX(-50%); bottom:-5px; }
#tabs ul .ui-tabs-active a { color:#f5a425; }
#tabs ul .ui-tabs-active a::after { background:#f5a425; width:15px; height:15px; }
#tabs ul .ui-tabs-active a::before { border-color:#f5a425; }
#tabs h4 { margin-top:60px; font-size:32px; font-weight:700; letter-spacing:1px; color:#fff; margin-bottom:30px; }
#tabs p { color:#fff; font-size:15px; line-height:28px; }
.tabs-content { margin-top:60px; text-align:left; }
.tabs-content img { width:100%; overflow:hidden; padding-right:45px; }

/* ===== Exercises (kept) ===== */
section.exercise { background:#172238 url('../images/BG/BG_basic.jpg') center/cover no-repeat; padding:200px 40px; display:flex; flex-direction:column; justify-content:space-between; align-items:center; flex-grow:1; min-height:100vh; }
.exercise_sec { background:#172238 url('../images/BG/BG_basic.jpg') center/cover no-repeat; }
.exercises .container { max-width:1800px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.exercise-list { display:flex; flex:1; flex-wrap:wrap; margin-top:100px; margin-left:260px; background:rgba(22,34,57,.15); justify-content:flex-start; gap:20px; }
.exercise-list .item { background:rgba(180,180,180,.45); border-radius:10px; box-shadow:0 4px 8px rgba(0,0,0,.1); overflow:hidden; width:calc(20% - 20px); max-width:720px; min-width:150px; margin-bottom:10px; display:flex; flex-direction:column; justify-content:space-between; }
.exercise-list .item figure { display:flex; justify-content:center; align-items:center; width:100%; height:100%; margin:0; }
.exercise-list .item-link { text-decoration:none; color:inherit; display:block; width:100%; }
.exercise-list .item img { width:100%; height:auto; border-bottom:1px solid #ddd; }
.exercise-list .down-content { padding:15px; text-align:left; }
.exercise-list .down-content h4 { font-size:18px; margin-bottom:10px; }
.exercise-list .down-content p { font-size:14px; line-height:1.6; }
@media (max-width: 1200px) {
  .exercise-list .item { width: calc(25% - 20px); } /* четыре в ряд */
}
@media (max-width: 900px) {
  .exercise-list .item { width: calc(33.333% - 20px); } /* три в ряд */
}
@media (max-width: 600px) {
  .exercise-list .item { width: 100%; } /* одна на всю ширину */
  .exercise-list { margin-left:20px; margin-right:20px; }
}

/* ===== Video section (kept) ===== */
section.video { background:#172238 url('../images/video-bg.jpg') center/cover no-repeat; padding:120px 0; }
section.video .left-content { color:#fff; }
section.video .left-content span { text-transform:uppercase; font-size:14px; letter-spacing:.5px; }
section.video .left-content h4 { margin:20px 0; font-size:30px; color:#fff; font-weight:800; letter-spacing:.5px; line-height:40px; }
section.video .left-content h4 em { font-style:normal; color:#f5a425; }
section.video .left-content .main-button { margin-top:30px; }
.video-item { position:relative; width:500px; max-width:100%; margin:0 auto; }
.video-item figure { position:relative; width:100%; font-size:0; }
.video-item figure img { width:100%; }
.video-item figure a::before { content:''; position:absolute; bottom:10px; right:60px; width:60px; height:60px; margin:-32.5px 0 0 -32.5px; border-radius:50%; background:#f5a425; z-index:10; }
.video-item figure a::after  { content:''; position:absolute; bottom:27.5px; right:65px; border:solid 13px transparent; border-left:solid 20px #fff; z-index:10; }
.video-item figure a:hover::before { background:#f5a425; }
.video-item .video-caption { position:absolute; z-index:10; background:rgba(250,250,250,.5); height:80px; width:91%; padding:0; bottom:0; }
.video-item .video-caption h4 { font-size:20px; text-transform:uppercase; font-weight:700; letter-spacing:1px; }

/* ===== Footer ===== */
footer { background:rgba(5,10,17,1); text-align:center; padding:0; }
footer p { margin:0; padding:25px 0; color:#fff; font-size:13px; text-transform:uppercase; font-weight:600; letter-spacing:.5px; }
footer p a { color:#f5a425; }
footer p a:hover { color:#f5a425; }

/* ===================================================== */
/* *****************  COMMENTS (Chat)  ***************** */
.cmt-form { display:flex; gap:8px; align-items:center; margin:10px 0 6px; }
.cmt-input { flex:1 1 auto; height:40px; line-height:40px; padding:0 16px; border-radius:999px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff; resize:none; overflow-y:hidden; }
.cmt-input::placeholder { color:rgba(255,255,255,.65); }
.cmt-send { height:40px; padding:0 16px; border-radius:999px; }
section.study #comments.cmt-list { margin-top:8px; display:flex; flex-direction:column; gap:8px; }
section.study .cmt-row { display:flex; }
section.study .cmt-row--left { justify-content:flex-start; }
section.study .cmt-row--right { justify-content:flex-end; }
section.study .cmt-bubble { display:inline-block; box-sizing:border-box; max-width:640px; padding:8px 12px 8px; border-radius:14px; color:#fff; background:rgba(255,255,255,.10); line-height:1.4; font-size:14px; }
section.study .cmt-bubble.cmt-bubble--user { background:rgba(80,140,255,.22); }
section.study .cmt-bubble.cmt-bubble--staff { background:rgba(200,200,200,.18); }
section.study .cmt-bubble > * { margin:0; padding:0; }
section.study .cmt-bubble .cmt-meta { display:flex; align-items:baseline; gap:8px; margin:0 0 4px 0; opacity:.8; font-size:11px; line-height:1.1; }
section.study .cmt-bubble p.cmt-text, section.study .cmt-bubble .cmt-text { margin:0; padding:0; color:#fff; line-height:1.2; }

/* ===================================================== */
/* *****************  CHECKLIST (Lessons)  ************* */
.checklist { list-style:none; margin:14px 0; padding:0; display:grid; gap:8px; }
.checklist li { display:flex; align-items:center; }
.checklist label { display:inline-flex; align-items:center; gap:10px; cursor:pointer; color:#f5a425; font-weight:600; letter-spacing:.2px; }
.checklist input[type="checkbox"] { width:18px; height:18px; accent-color:#f5a425; cursor:pointer; }
.checklist label:hover{ opacity:.9; }
.checklist input[type="checkbox"]:focus-visible{ outline:2px solid rgba(245,164,37,.6); outline-offset:2px; border-radius:4px; }

/* ===================================================== */
/* *****************  COACH DASHBOARD  ***************** */
.coach-wrap { max-width:1060px; margin:0 auto; color:#fff; text-align:left; }
.coach-wrap h2 { font-size:32px; font-weight:800; margin:0 0 22px; }
.coach-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;   /* вертикальное выравнивание */
  margin: 0 0 18px;
}
.coach-search {
  flex: 1 1 auto;
  height: 42px;          /* одинаковая высота */
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.coach-toolbar .button {
  height: 42px;          /* совпадает с .coach-search */
  margin-top: 0;         /* убираем смещение вниз */
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-actions .button {
  color: #fff !important;     /* белый текст */
  background: #f5a425;
}
.coach-actions .button:hover {
  background: #f7b651;
}
.coach-table {
  width:100%; border-collapse:collapse;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  border-radius:14px; overflow:hidden;
}
.coach-table th, .coach-table td { padding:12px 14px; font-size:14px; }
.coach-table thead th {
  background:rgba(255,255,255,.06); text-transform:uppercase; letter-spacing:.25px; font-weight:800;
}
.coach-table tbody tr+tr td { border-top:1px solid rgba(255,255,255,.08); }

.pbar { position:relative; height:10px; border-radius:999px; background:rgba(255,255,255,.12); overflow:hidden; }
.pbar__fill { position:absolute; inset:0 auto 0 0; width:0; height:100%; background:#f5a425; }
.pbar__label { margin-left:10px; opacity:.9; }

.client-cell .name { font-weight:800; }
.client-cell .email { opacity:.75; font-size:12px; }

.coach-actions { display:flex; gap:8px; flex-wrap:wrap; }
.coach-activity { margin-top:8px; }
.coach-activity summary{
  cursor:pointer; list-style:none; padding:6px 10px; border-radius:8px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  font-size:12px; color:#fff;
}
.coach-activity[open] summary{ background:rgba(255,255,255,.12); }
.coach-activity__list{ margin:8px 0 0 0; padding-left:16px; font-size:12px; opacity:.95; }
.coach-activity__list li{ margin:4px 0; }
.coach-activity__time{ opacity:.8; }
.coach-activity a{ color:#f5a425; text-decoration:none; }
.coach-activity a:hover{ text-decoration:underline; }
.coach-activity__empty{ opacity:.6; margin-top:8px; }
.coach-empty{ opacity:.8; text-align:center; padding:28px; }

/* width helpers for tables */
.w-44{ width:44%; } .w-40{ width:40%; } .w-25{ width:25%; } .w-20{ width:20%; } .w-16{ width:16%; } .w-10{ width:10%; }

/* ===================================================== */
/* ******************  OVERVIEW PAGE  ****************** */

.ov-wrap{
  max-width:1080px;
  width:100%;
  margin:0 auto;
  text-align:left;
  color:#fff;
}

/* === Две колонки одинаковой высоты (grid) === */
.ov-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr; /* левая шире */
  gap:16px;
  align-items:stretch;                 /* дети растягиваются по высоте строки */
  margin-bottom:36px;
}

/* === Карточки внутри гриды — заполняют высоту строки === */
.ov-grid > .ov-card{
  height:100%;             /* занять высоту трека целиком */
  min-width:0;             /* не раздувать контентом */
  margin-top:0 !important; /* убираем «сползание» вниз */
  display:flex;
  flex-direction:column;
}

/* убираем любые прежние фиксации ширины у правой карточки */
.ov-card.continue-card{
  width:auto;
  max-width:none;
  min-width:0 !important;
}

/* === Общий стиль карточек === */
.ov-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px 14px 10px;
  color:#fff;
  overflow:hidden;

}


/* строки/мелочи */
.ov-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ov-muted{ opacity:.85; color:#fff; }
.bar{ height:8px; background:rgba(255,255,255,.12); border-radius:999px; overflow:hidden; }
.bar i{ display:block; height:100%; background:#f5a425; }
.pct-badge{ min-width:46px; text-align:right; font-weight:800; color:#fff; }

.ov-step{ display:grid; grid-template-columns:1fr 60px; gap:10px; align-items:center; margin:8px 0; }
.ov-step a{ color:#f5a425; font-weight:700; font-size:12px; }

/* ===== Tasks bar ===== */
.ov-taskbar{ display:flex; gap:10px; margin:8px 0 12px; }
.ov-taskbar input{
  flex:1 1 auto;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
}

.ov-tasklist{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.ov-tasklist li{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.06); color:#fff;
}

/* Кнопка (ADD/DONE/GO TO STEP) */
.ov-continue-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:110px; height:32px; padding:0;
  border-radius:12px; background:#f5a425;
  color:#fff !important; font-size:12px; font-weight:800;
  text-transform:uppercase; line-height:1; white-space:nowrap;
  transition:filter .15s ease;
}
.ov-continue-btn:hover{ filter:brightness(1.08); }

/* ===== Список задач — «уже», с кнопкой справа в одну линию */
.ov-tasklist{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.ov-tasklist li{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.06); color:#fff;
}
.ov-tasklist .task-title{
  flex:1 1 auto; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;  /* однострочно */
}

/* Перечёркивание при завершении */
.ov-tasklist li.done .task-title{
  opacity:.6; text-decoration:line-through;
}

/* Заглушка */
.ov-task-empty{
  justify-content:center; opacity:.8; text-align:center; padding:10px;
}



/* coach mode table */
.ov-table{
  width:100%; border-collapse:collapse; margin:6px 0 14px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  border-radius:12px; overflow:hidden;
}
.ov-table th, .ov-table td{ padding:10px 12px; font-size:14px; line-height:1.35; color:#fff; }
.ov-table thead th{ background:rgba(255,255,255,.06); font-weight:800; text-transform:uppercase; letter-spacing:.2px; }
.ov-table tbody tr+tr td{ border-top:1px solid rgba(255,255,255,.08); }
.ov-table .pct{ font-weight:800; }
.ov-table select{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18);
  color:#fff; padding:6px 8px; border-radius:8px; font-size:13px;
}

/* Utilities */
.viewing-note, .coach-view-note{ margin-bottom:0px; color:#fff; opacity:.85; }
.divider{ opacity:.2; margin:24px 0; border:none; border-top:1px solid rgba(255,255,255,.2); }
.comments-title{ color:#fff; margin-top:10px; margin-bottom:10px; }
.lessons-title{ color:#fff; margin-top:24px; }
.lessons-list{ list-style:none; padding-left:0; }
.lessons-list__item{ margin:8px 0; }
.mt-12{ margin-top:12px; } .mt-16{ margin-top:16px; } .mt-18{ margin-top:18px; } .mb-8{ margin-bottom:8px; }


/* HERO */
.step-hero{
  position: relative;
  width: 100%;
  max-height: 350px;   /* ограничиваем только контейнер */
  overflow: hidden;    /* кропим по вертикали */
  margin: 8px 0 0;
  padding: 0;
  border-radius: 0;
}
.step-hero__img{
  display: block;
  width: 100% !important;     /* растягиваем на всю ширину контейнера */
  height: auto !important;    /* сохраняем пропорции */
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.step-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.step-hero__titlewrap {
  position: absolute; left: 24px; bottom: 20px; right: 24px;
}
.step-hero__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.step-hero__subtitle {
  margin: 6px 0 0;
  color: #e7e7e7;
}

/* общий прогресс шага */
.step-progress {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0 22px;
}
.step-progress__bar {
  flex: 1; height: 10px; background: rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.step-progress__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #ffb200, #ff8a00);
  border-radius: 999px;
  transition: width .35s ease;
}
.step-progress__label { color: #ddd; font-size: 13px; }

/* INTRO карточка (в духе Notion callout) */
.intro-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 6px solid #d0b36f; /* акцентная полоса */
  border-radius: 16px;
  margin-top: 16px !important;
  padding: 18px 18px 14px;
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  margin-bottom: 26px;
}
.intro-card__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #fff;
}
.intro-card__title em {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #f5a425;
  font-style: normal;
}

.intro-card__body p { color: #e7e7e7; margin: 0 0 10px; }
.intro-card__body em {
  color: #f5a425;        /* оранжевый */
  font-weight: 700;      /* жирный как <b> */
  font-style: normal;    /* убираем курсив, если не нужен */
}
.intro-card__body ul, .intro-card__body ol { margin: 8px 0 8px 18px; }
/* Стили для списков внутри intro и task */
.lessons-list {
  list-style-type: disc;
  margin: 12px 0 0 20px;
  padding: 0;
}

.lessons-list__item {
  margin-bottom: 6px;
  font-size: 1rem;
  color: #ddd; /* выровняем цвет под обычный текст */
}

/* TASK карточка (в духе Notion callout) */
.task-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 6px solid #f5a425; /* акцентная полоса */
  border-radius: 16px;
  padding: 18px 18px 14px;
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  margin: 16px 0 26px;
}
.task-card__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #fff;
}
.task-card__title em {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #f5a425;
  font-style: normal;

}
.task-card__body p { color: #e7e7e7; margin: 0 0 10px; }
.task-card__body em {
  color: #f5a425;        /* оранжевый */
  font-weight: 700;      /* жирный как <b> */
  font-style: normal;    /* убираем курсив, если не нужен */
}
.task-card__body ul, .task-card__body ol { margin: 8px 0 8px 18px; }

/* LESSONS */
.lessons__head { display:flex; align-items:center; justify-content:space-between; margin: 10px 0 8px; }
.lessons__title { margin: 0; color: #fff; font-size: 18px; }
.lessons__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lesson-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lesson-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.12);
}
.lesson-card__link { display:block; padding: 14px 16px; text-decoration:none; }
.lesson-card__top { display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.lesson-card__name { color:#fff; font-weight:600; }
.lesson-card__status { color:#cfcfcf; font-size: 13px; white-space: nowrap; }
.lesson-card__bar {
  margin-top: 8px; height: 6px; background: rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden;
}
.lesson-card__fill {
  display:block; height:100%; width:0;
  transition: width .35s ease;
  background: linear-gradient(90deg, #ffb200, #ff8a00);
  border-radius: 999px;
}
.lesson-card--done .lesson-card__status { color:#7de37a; }
.lesson-card--done .lesson-card__fill { width:100% !important; background: linear-gradient(90deg,#5bd65b,#47b947); }

.lessons__empty { color:#bbb; padding: 10px 0; }

/* адаптив */
@media (max-width: 820px){
  .lesson-card__top { align-items: flex-start; flex-direction: column; }
}

/* ===== Desktop defaults ===== */
.mobile-btn{
  display: none !important;      /* гамбургеры скрыты на десктопе */
}

.top-menu{
  display: flex;                  /* верхнее меню видно на десктопе */
}

/* Боковое меню стационарно под шапкой, БЕЗ transform здесь */
.side-nav{
  top: 60px;
  height: calc(100% - 60px);
  /* transform: none;  <- не ставим! */
}

body.menu-open{ overflow: auto; } /* на десктопе не блокируем скролл */



/* ======================= Responsive ======================= */
/* ======================= Responsive ======================= */
@media (max-width: 600px){

  /* Рабочее поле: только поля по 30px, без левого меню */
  .study .container{
    width: calc(100vw - 32px);
    padding-top: 0px;
    margin-left: 16px;
    margin-right: 16px;
    box-sizing: border-box;
  }
  .study .content{ max-width: 100%; }



  .ov-grid{
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom:20px; /* вместо 48px */
  }
  .ov-grid > .ov-card{
    height:auto !important;
  }

  /* Шапка */
  .main-header{
    height: 56px;
    padding: 0;
    position: fixed;      /* гарантируем фиксацию */
    top: 0; left: 0; right: 0;
    z-index: 1200;
  }

  /* Гамбургеры */
  .mobile-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;      /* больше */
    line-height: 1;
    cursor: pointer;
    z-index: 1210;        /* выше шапки, ниже модалок */
    background: none;
    border: 0;
    padding: 0;
  }
  /* левый — открывает левое меню */
  #mobile_bar{
    left: 12px;                 /* отступ от края */
    color: #f5a425;             /* оранжевый */
    display: block !important;
  }
  /* правый — открывает верхнее меню */
  #mobile_bar_right{
    right: 12px;                /* отступ справа */
    color: #fff;                /* белый */
    display: block !important;
  }

  /* Логотип строго по центру и поменьше */
  .main-header .logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 0;
    margin: 0;
  }
  .main-header .logo a{
    font-size: 20px !important;
    line-height: 1;
  }

  /* Десктопная верхняя навигация скрыта,
     мобильная — через класс .is-open */
  .top-menu{ display: none; }
  .top-menu.is-open{
    display: block;
    position: absolute;
    right: 0;
    top: 56px;                          /* сразу под шапкой */
    width: 200px;
    background: rgba(2,11,28,.95);
    padding: 8px 0;
    border-left: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
    z-index: 1190;
  }
  .top-menu.is-open li a{
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-align: right;
  }

  /* Левая боковая навигация (мобайл): спрятана, выезжает из-под шапки */
  .side-nav{
    position: fixed;
    left: 0;
    top: 56px;                           /* под мобильной шапкой */
    width: 260px;
    height: calc(100% - 56px);
    background: rgba(2,11,28,.95);
    padding-top: 10px;
    overflow-y: auto;
    z-index: 1180;
    transform: translateX(-100%) !important;        /* скрыто за левым краем */
    transition: transform .25s ease;
    display: block;                      /* отдельный слой */
    box-shadow: 2px 0 16px rgba(0,0,0,.35);
  }
  .side-nav.is-open{
    transform: translateX(0) !important;            /* показ меню */
  }

  /* Блокируем скролл фона при открытом левом меню */
  body.menu-open{ overflow: hidden; }

  /* Хиро на мобиле пониже */
  .step-hero{ height: 220px; }

  /* Узкие карточки уроков */
  .lesson-card__top{ align-items:flex-start; flex-direction:column; }

  /* ОВЕРВЬЮ  */
  .study .ov-grid{
    grid-template-columns: 1fr;     /* один столбец */
    gap: 12px;
  }
  .ov-card.continue-card{ min-width: 0; }
}

/* ==== Modal look & feel overrides ==== */
#modal-root{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
  /* ключевое: всегда есть внутренние поля от краёв экрана */
  padding: 8px;
  box-sizing: border-box;

  /* удобное центрирование окна */
  display: none;               /* по умолчанию */
}
#modal-root.open{
  display: grid;               /* grid + place-items:center */
  place-items: center;
}

.modal-overlay{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);              /* затемнение фона */
  backdrop-filter: blur(2px);
}

.modal-window{
  position: relative;          /* без left/top/transform */
  width: 97% !important;                 /* <-- вместо min()/clamp() */
  max-width: 1000px;           /* <-- верхний предел */
  height: 90%;
  max-height: 1000px;
  overflow: auto;
  background: #1a2238;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px 8px 18px;
  box-shadow: 0 22px 70px rgba(255,255,255,.16);
}

/* Кнопка закрытия */
.modal-close{
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0;
  font-size: 22px; line-height: 1; color: #fff; cursor: pointer;
  opacity: .9;
}
.modal-close:hover{ opacity: 1; }

/* Медиаконтент сверху */
.modal-media{
  margin: 4px 0 12px;
  text-align: center;
}
.modal-media img,
.modal-media video,
.modal-media iframe{
  display: block;
  margin: 0 auto;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;                          /* ограничение высоты картинки/видео */
  border-radius: 10px;
}

/* Заголовок по центру, без линий */
.modal-title{
  margin: 4px 0 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  border: 0;
}

/* Текст */
.modal-body{
  font-size: 15px;
  line-height: 1.55;
  color: #e8e8e8;
}
.modal-body em{ color: #f5a425; font-style: normal; font-weight: 600; }
.modal-body hr{ display: none; }              /* прячем возможные <hr> из контента */


/* — Панель коуча (Viewing as …) в одну ширину с остальными — */
.coach-view-note,
.viewing-note,            /* оба класса были у тебя */
.ov-wrap .coach-bar {
  margin-top: 54px;   /* теперь точно появится отступ */
}

.coach-bar {
  display: flex;
  align-items: center !important;          /* центрируем всё по вертикали */
  justify-content: space-between;
  gap: 12px;
  padding: 4px 14px;            /* уменьшаем высоту панели */
  margin: 0px 0 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: #fff;
  line-height: 1.4;             /* фиксируем текст */
}

/* — Убрать лишний зазор между хедером и верхней панелью — */
section.study {
  padding-top: 12px;      /* было заметно выше; подгони при желании */
}

/* — Кнопки в коуч-режиме гарантированно с белым текстом — */
.coach-wrap .button,
.coach-actions .button,
.coach-wrap .ov-continue-btn {
  color: #fff !important;
}

/* — Tasks: поле ввода и кнопка в одной линии и одной высоты — */
.ov-taskbar {
  display: flex;
  align-items: center;     /* вертикальное выравнивание */
  gap: 10px;
  margin: 8px 0 12px;
}
.ov-taskbar input {
  flex: 1 1 auto;
  height: 40px;            /* = высоте кнопки */
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.ov-taskbar .ov-continue-btn,
.ov-taskbar .button {      /* на случай, если где-то осталась .button */
  height: 40px;
  margin-top: 0;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* — Список задач: более узкий блок + кнопка одной ширины — */
.ov-tasklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
}
.ov-tasklist.compact li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 13px;
}

.ov-tasklist.compact .task-title {
  flex: 1;
  margin-right: 8px;
}

.ov-tasklist .task-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-tasklist .ov-continue-btn {
  width: 130px; height: 40px;   /* такая же, как в “Continue” */
}

/* — Для надёжности: белый текст у всех «малых» кнопок в таблицах — */
.coach-table .button,
.coach-table .ov-continue-btn { color:#fff !important; }

.coach-bar__who {
  font-size: 14px;
  opacity: .95;
  display: flex;
  align-items: center;          /* текст центрирован */
}


.coach-bar__actions {
  display: flex;
  gap: 8px;
  align-items: center !important;          /* кнопки по центру панели */
}

.button--sm {
  height: 12px;                 /* меньше и аккуратнее */
  padding: 0 0px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  background: #f5a425;
  color: #fff !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase;
}
.button--sm:hover {
  background: #f7b651;
}

/* ↓ слегка опускаем блок под главным хедером */
.ov-wrap { margin-top: 12px; }

/* ↓ шапка Steps: убираем лишний верхний отступ внутри карточки */
.ov-card.steps-card { padding-top: 10px; }
.ov-card.steps-card h4 { margin-top: 0; }
.ov-card.steps-card h3 { margin-top: 0; }


/* ↓ Quick Tasks: меньше «воздуха» сверху */
.ov-card.quick-add{
  padding: 6px 12px 10px;        /* было 10px 14px 10px */
}
.ov-card.quick-add h3{
  margin: 0;                      /* убрали дефолтный верхний margin */
  font-size: 18px;                /* по желанию можно 16–18 */
}

.ov-card.quick-add .ov-row{
  margin: 0 0 6px;                /* плотнее шапка с кнопкой ADD */
}

/* 2) Кнопка DONE — ниже и компактнее (перекрываем общий .ov-continue-btn) */
.ov-tasklist .ov-continue-btn{
  height: 28px;                   /* ниже */
  padding: 0 0px;
  width: auto;                    /* без фиксированной ширины */
  min-width: 82px;                /* чтобы текст не прыгал */
  font-size: 11px;
  border-radius: 10px;
}

/* 3) Строки задач — ниже и плотнее */
.ov-tasklist.compact{
  gap: 6px;                       /* меньше расстояние между строками */
}
.ov-tasklist.compact li{
  padding: 0px 0px;              /* ниже высота строки */
}
.ov-tasklist.compact .task-title{
  line-height: 1.2;               /* плотнее текст */
}

/* Комментарии: выровнять кнопку SEND с полем */
.cmt-form{
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmt-send{
  /* перекрываем .button { margin-top:10px } */
  margin-top: 0 !important;

  height: 36px;                 /* как у .cmt-input */
  padding: 0 16px;
  border-radius: 999px;

  /* чтобы текст в кнопке был по центру */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ====== layout ====== */
.ov-tasklist.compact li { padding: 8px 10px; }
.ov-tasklist.compact .ov-continue-btn { padding: 6px 10px; }

/* перечёркивание и серый для выполненных задач (список) */
.ov-tasklist li.done .task-title {
  text-decoration: line-through;
  opacity: .6;
}

/* для календаря */
.task-done { opacity: .6; text-decoration: line-through; }

/* ====== FullCalendar в тёмной теме ====== */
.fc {
  --fc-border-color: rgba(255,255,255,.12);
  --fc-page-bg-color: transparent;
}
.fc-theme-standard .fc-scrollgrid, .fc .fc-scrollgrid {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
}
/* 🔹 Невыполненные задачи (фон оранжево-серый, шрифт как у Quick Tasks) */
.fc .fc-daygrid-event {
  background: linear-gradient(135deg, #c78d2e 0%, rgba(255,255,255,.15) 100%);
  border: none;
  color: #fff;
  font-weight: 300;
  font-size: 13px;       /* такой же размер, как у Quick Tasks */
  border-radius: 8px;
  padding: 2px 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 🔹 Выполненные задачи (фон серый, текст перечёркнутый) */
.fc .fc-daygrid-event.task-done {
  background: rgba(255,255,255,.15);
  color: #ddd;
  text-decoration: line-through !important;
  font-weight: 200;
  font-size: 12px;       /* тот же шрифт, что и для невыполненных */
}
/* перечёркивать всё содержимое выполненного события */
.fc .task-done,
.fc .task-done * {
  text-decoration: line-through !important;
}
.fc .fc-toolbar-title { color:#fff; }
.fc .fc-button { background:#f5a425; border:0; color:#fff; text-transform:uppercase; font-weight:800; }
.fc .fc-button:hover { filter: brightness(1.06); }

/* ====== Modal Task (унифицировано и не вылазит) ====== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; z-index: 3000;
}
.modal.hidden { display: none; }

.modal-content {
  position: relative;
  background:#1a2238; color:#fff;
  border-radius:14px; padding:20px;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
  width: min(640px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border:1px solid rgba(255,255,255,.12);
  box-sizing: border-box;
}

.modal-title { margin: 0 0 10px; text-align: center; }

.modal-close {
  position:absolute; right:16px; top:12px;
  background:none; border:0; color:#fff; font-size:22px;
  cursor:pointer; opacity:.9;
}
.modal-close:hover{opacity:1}

/* формы */
.modal-content label{display:block;margin:10px 0 6px}
.modal-content input,
.modal-content textarea,
.modal-content select{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  box-sizing: border-box;
}

/* ряд с датой/временем */
.modal-row {
  display:grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  align-items: end;
}

/* нижняя панель действий */
.modal-actions {
  display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px;
}

/* кнопка Done-переключатель */
.btn-done {
  border:1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  padding:10px 14px; border-radius:10px; color:#fff;
  cursor:pointer; transition: .15s ease-in-out;
}
.btn-done[aria-pressed="true"] {
  background:#2a7a2a;
}
.btn-done:focus { outline: 2px solid rgba(255,255,255,.25); outline-offset: 2px; }

/* универсальная кнопка, на случай если у тебя уже есть ov-continue-btn — можно не трогать */
.btn {
  background:#f5a425; border:0; color:#0f1424;
  font-weight:800; padding:10px 16px; border-radius:10px; cursor:pointer;
}
.btn--danger { background:#d9534f; color:#fff; }
.btn:hover { filter: brightness(1.06); }



/* ==== FAQ (accordion) ==== */

.faq-page .main-header{
  box-sizing: border-box;               /* ← чтобы padding входил в ширину */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px !important;        /* было 40px — поменьше справа/слева */
  position: fixed; top:0; left:0; right:0;
  z-index: 12;
  background: rgba(2,11,28,.7);
}

.faq-page .main-header .main-nav{
  margin-left: auto !important;         /* прижимаем <nav> вправо */
  padding-right: 0 !important;          /* защитно */
}

.faq-page .logo {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.faq-page .top-menu{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;                /* ← убираем лишний правый padding */
}

.faq-page .top-menu li {
  display: flex;
  align-items: center;
}

.faq-page .top-menu .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 12px;
  margin-right: 0 !important;  /* убираем правый отступ, который выталкивает */
}

.faq-page section.study{
  /* было 56–72px — уменьшаем */
  padding: 20px 0 28px !important;   /* под шапку хватает ~20px */
}

.faq-page .faq-item{
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 0;              /* убираем лишние внутренние отступы */
  margin: 0;               /* минимальный внешний отступ */
}

.faq-page .faq-question {
  font-size: 20px !important;       /* меньше, чем было 22px */
  font-weight: 600 !important;       /* чуть легче визуально */
  padding: 10px 0 !important;          /* меньше отступ сверху и снизу */
  line-height: 1.2;        /* уменьшает расстояние до полосы */
  color: #fff;
  margin: 8px;
  padding: 8px 0 12px;       /* компактный отступ над/под текстом */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s ease;
}
.faq-page .faq-question:hover {
  color: #f5a425;         /* при наведении оранжевый */
}

.faq-page .faq-question .toggle-icon{
  display: inline-block;
  width: 28px;
  text-align: center;
  line-height: 1;
  transition: transform .25s ease, opacity .25s ease;
  opacity: .9;
}

.faq-page .faq-answer{
  color: #e8e8e8;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;                 /* убираем отступ, появится при open */
  max-height: 0;             /* скрыто по умолчанию */
  overflow: hidden;          /* прячем контент */
  opacity: 0;                /* прозрачность 0 */
  transition:
    max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.4s ease;
}

/* при открытии показываем ответ */
.faq-page .faq-item.open .faq-answer{
  opacity: 1;
  margin: 6px 0 10px;       /* небольшой зазор для открытого ответа */
}

/* визуальная индикация открытия (плюс «поворачивается») */
.faq-page .faq-item.open .toggle-icon{
  transform: rotate(45deg);   /* из + делаем похожее на × */
}

.faq-page .top-menu li{ display:flex; align-items:center; }
.faq-page .top-menu .button{
  margin: 0;                   /* убираем margin-top у .button по умолчанию */
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.faq-page .side-nav{ display:none; }  /* если вдруг подключена */

.faq-page .study .container{
  width: min(1000px, 92vw);           /* аккуратная ширина */
  margin: 0 auto;                     /* центр по странице */
  padding: 0 16px;                    /* мелкие поля по краям */
}
.faq-page .study .content{
  max-width: 1000px;
  margin: 0 auto;
}
/* на всякий случай: уберём любые верхние маргины у первого вопроса */
.faq-page .text-box { margin-top: 0; }
.faq-page .faq-item:first-child { margin-top: 0; }
.faq-page .faq-item:first-child .faq-question { padding-top: 0; } /* ещё плотнее у самого первого */

/* === HEADER mobile layout fix === */
@media (max-width: 600px) {
  .faq-page .main-header {
    position: fixed;          /* фиксированная, как на десктопе */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 11, 28, 0.7); /* вернуть прозрачность, как была */
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    height: 56px;
  }

  /* логотип слева, без смещения */
  .faq-page .main-header .logo {
    margin: 0;
    padding: 0;
  }

  .faq-page .main-header .logo a {
    font-size: 20px;
    white-space: nowrap;
  }

  /* кнопка справа */
  .faq-page .main-header .button {
    height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: right;
    justify-content: center;
    margin: 0;
  }

  /* меню-гамбургер скрываем */
  .faq-page .menu-link {
    display: none;
  }

  /* top-menu остаётся горизонтальной */
  .faq-page .top-menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  /* контент не налезает на хедер */
  .faq-page section.study {
    padding-top: 72px !important;
  }
}

/* убираем внешние отступы figure */
.video-card { margin: 0; }

/* фикс: держим 16:9, чёрный фон и скругления */
.video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;          /* современно и просто */
  background: #000;              /* чтобы не просвечивал фон */
  border-radius: 12px;
  overflow: hidden;              /* на всякий случай */
}

/* фикс: никаких baseline-зазоров и рамок */
.video-wrap > iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;                /* убирает “типографскую” щель */
  border: 0;
}