@import "normalize.css";
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg: #0f1220;
  --card: #fff;
  --text: #e9ecf1;
  --muted: #a9b0c6;
  --accent: #6ea8fe;
}

body {
  background: #EEF2FF;
  font-family: "Nunito Sans", sans-serif;
}
.container {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 1280px;
}
.container-xl {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.container-sm {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 960px;
}

header {
  background: #fff;
}
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}
.header-logo { 
  grid-column: 1;
  justify-self: start;
}

.header-menu {
  grid-column: 2;
  justify-self: center;
  position: relative;            /* обязательно, чтобы .underline позиционировался от nav */
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 4px; 
}
.header-menu .menu-close {
  display: none;
}
.header-menu a {
  position: relative;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #010101;
  border-radius: 9px;
  line-height: 1;
}
.header-menu .underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #007ACC;     /* цвет вашего подчеркивания */
  width: 0;
  transform: translateX(0);
  transition: transform 0.3s ease, width 0.3s ease;
  border-radius: 2px;
  will-change: transform, width;
}

.header-controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-user button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  outline: none;
}
.header-mobile { 
  display: none; 
} 

.dropdown {
  position: relative;
  display: inline-block;
}

/* Скрытое по умолчанию меню */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 1000;
}

/* Когда у .dropdown есть .open — показываем меню */
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Сброс списка внутри меню */
.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.dropdown-menu li + li {
  border-top: 1px solid #eee;
}
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.dropdown-menu a:hover {
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .header-menu {
    display: none;
  }
  .header-mobile {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  .header-menu.open {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
  }
  .header-menu .menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
  }
  .header-menu.open a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
  }
  .header-user {
    gap: 7px;
  }
  .header-user span {
    display: none;
  }
  .dropdown-menu {
    /* Располагаем фиксированно, но ограничиваем по ширине области шапки */
    position: fixed;
    /* Под шапкой высотой 60px */
    top: 60px;
    /* Выравниваем по правому краю кнопки */
    right: 20px;
    /* Ограничиваем ширину, чтобы не уезжать слишком вправо */
    width: calc(100% - 40px);
    /* Максимальная высота под шапкой, чтобы не вылезало */
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: none;
  }
}

._block {
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,.05);
}

.dashboard {
  margin: 40px 0;
  display: flex;
  gap: 40px;
}

.panel_academy{
  margin-bottom: 32px;
}
.academy_swiper{position:relative;}
.academy_swiper .swiper-slide{height:auto;}
.academy_card{display:block; background:var(--card); border-radius:18px; overflow:hidden; text-decoration:none; color:inherit;transition:transform .25s ease, box-shadow .25s ease, background .25s ease;}
.thumb{position:relative; aspect-ratio:16/9; background:#0b0e1a;}
.thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.play{position:absolute; inset:auto auto 12px 12px; width:42px; height:42px; border-radius:50%; background:rgba(0,0,0,.55); backdrop-filter: blur(2px); display:grid; place-items:center;}
.play:before{content:""; border-style:solid; border-width:8px 0 8px 13px; border-color:transparent transparent transparent white; margin-left:3px;}
.title{padding:12px 14px 14px; font-size:14px; font-weight:600; min-height:64px; display:flex; align-items:flex-start;}
.academy_swiper .swiper-button-prev,
.academy_swiper .swiper-button-next{
  width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.06); backdrop-filter: blur(2px); border:1px solid rgba(255,255,255,.08); color:#fff;
}
.academy_swiper .swiper-button-prev:after,
.academy_swiper .swiper-button-next:after{font-size:18px; font-weight:700;}
.academy_swiper .swiper-pagination-bullet{background:rgba(255,255,255,.4); opacity:1;}
.academy_swiper .swiper-pagination-bullet-active{background:var(--accent);}
@media (max-width: 768px){
  .academy_head h2{font-size:22px}
  .title{min-height:unset}
}






.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: button;
  backface-visibility: hidden;
  background-color: #005bff;
  border-radius: 16px;
  border-width: 0;
  box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif;
  font-size: 100%;
  height: 44px;
  line-height: 1.15;
  margin: 12px 0 0;
  outline: none;
  overflow: hidden;
  padding: 0 25px;
  position: relative;
  text-align: center;
  text-transform: none;
  transform: translateZ(0);
  transition: all .2s,box-shadow .08s ease-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
  text-decoration: none;
}
.btn:disabled {
  cursor: default;
}
.btn:focus {
  box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px;
}



.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #444;
}
.input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrapper:focus-within {
  border-color: #5577ff;
  box-shadow: 0 0 0 3px rgba(85,117,255,0.2);
}
.input-wrapper input {
  border: none;
  background: transparent;
  outline: none;
}
.input-icon {
  flex: 0 0 auto;
  margin: 0 0.75rem;
  font-size: 1rem;
  color: #666;
}
.form-input {
  flex: 1 1 auto;
  border: none;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  color: #222;
}
.form-input::placeholder {
  color: #aaa;
}
.input-action {
  flex: 0 0 auto;
  background: none;
  border: none;
  margin: 0 0.75rem;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
}
.input-action:focus {
  outline: none;
}



.modal_wrapper {
  position: fixed;
  width: 100%;
  height: 100vh;
  left: 0;
  top: 0;
  background: #00000041;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal_container {
  width: 672px;
  height: fit-content;
  border-radius: 20px;
  background: rgb(255, 255, 255);
}
.modal_container.mini {
  width: 500px;
}
.modal_container_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 17px 18px;
  border-bottom: 0.5px solid rgb(234, 234, 234);
}
.modal_container_title h3 {
  color: rgb(36, 36, 36);
  font-family: Cygre SemiBold;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0%;
  text-align: left;
}
.modal_container_title img {
  cursor: pointer;
}
.modal_content {
  padding: 26px 17px;
}
.modal_exit {
  cursor: pointer;
  width: 44px;
  height: 44px;
  background: rgb(250, 250, 252);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.modal-btns button {
  flex: 1 1 50%;
  height: 48px!important;
  justify-content: center;
}
.visible_modal_wrapper {
  display: flex;
  z-index: 999999;
}

@media only screen and (max-width: 700px) {
  .modal_container {
    width: 100%;
    height: 100vh;
    border-radius: 0px;
  }
  .modal_wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}


.custom-select {
  position: relative;
  width: 100%;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .2s;
}
.select-trigger:hover {
  border-color: #9ca3af;
}
.trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trigger-left img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.trigger-label {
  font-size: 16px;
  font-weight: 500;
}
.trigger-code {
  font-size: 14px;
  color: #6b7280;
}
.arrow {
  margin-left: 8px;
  width: 12px;
  height: 12px;
  transition: transform .3s;
}
.custom-select.open .arrow {
  transform: rotate(180deg);
}
.options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}
.custom-select.open .options {
  display: block;
}
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
  cursor: pointer;
  transition: background .2s;
}
.option:hover {
  background: #f3f4f6;
}
.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.option-left img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.option-label {
  font-size: 16px;
  color: #111827;
}
.option-code {
  font-size: 14px;
  color: #6b7280;
