@font-face {
  font-family: "Magistral";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Magistral-Bold.woff") format("woff"),
    url("../fonts/Magistral-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Magistral";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/Magistral-Medium.woff") format("woff"),
    url("../fonts/Magistral-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Magistral";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Magistral-Book.woff") format("woff"),
    url("../fonts/Magistral-Book.woff2") format("woff2");
}
@font-face {
  font-family: "Magistral";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/Magistral-Light.woff") format("woff"),
    url("../fonts/Magistral-Light.woff2") format("woff2");
}

body {
  font-family: "Magistral", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: #dfe5eb !important;
}
a:hover,
a:focus {
  opacity: 0.8;
}

.lw-container {
  width: 100%;
  max-width: 1584px;
  margin: 0 auto;
  padding: 16px 128px;
}

@media (max-width: 1024px) {
  .lw-container {
    padding: 16px 20px;
  }
}

/*----------------------------------burger---------------------------------*/
/* Кнопка мобильного меню (≤1024px): три полоски → крестик */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  z-index: 101;
  transition: background-color 0.2s ease;
}
.burger:hover {
  background-color: #f3f4f6;
}
.burger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
@media (max-width: 1024px) {
  .burger {
    display: block;
  }
}
.burger-line {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: #0a0a0a;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.burger-line--top {
  top: 15px;
}
.burger-line--middle {
  top: 21px;
}
.burger-line--bottom {
  top: 27px;
}
.burger.active .burger-line--top {
  top: 21px;
  transform: rotate(45deg);
}
.burger.active .burger-line--middle {
  opacity: 0;
}
.burger.active .burger-line--bottom {
  top: 21px;
  transform: rotate(-45deg);
}
/*----------------------------------burger-end---------------------------------*/
.header.active {
  background-color: #101010;
}

.menu-item a {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.01em;
  color: rgb(10, 10, 10) !important;
  display: inline-block; /* scale/transform не работают у строчных (inline) элементов */
  scale: 1;
  transition: scale 0.2s ease;
}

.menu-item a:hover {
  scale: 1.05;
}

.menu-item.current_page_item a {
  color: red !important;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .menu-item a {
    font-size: 12px;
  }
}
@media (max-width: 1024px) {
  .menu-item a {
    font-size: 16px;
  }
}

.header__nav {
  width: 100%;
  display: flex;
}

/* Мобильное меню (≤1024px): белая панель под шапкой + затемнение страницы */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }
  .header__nav.mobile-active {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 8px 16px 16px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.18);
    z-index: 100;
    animation: edu-menu-in 0.25s ease;
  }
  body.edu-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(3, 2, 19, 0.35);
    z-index: 40;
    animation: edu-fade-in 0.25s ease;
  }
  body.edu-menu-open {
    overflow: hidden;
  }
}
@keyframes edu-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes edu-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.header__nav.mobile-active .header__nav-list {
  margin-left: 0;
}
.header__nav.mobile-active .header__nav-list ul {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}
.header__nav.mobile-active .header__nav-list ul > li {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header__nav.mobile-active .header__nav-list ul > li:last-child {
  border-bottom: 0;
}
.header__nav.mobile-active .header__nav-list ul > li > a {
  display: block;
  width: 100%;
  padding: 14px 40px 14px 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  scale: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.header__nav.mobile-active .header__nav-list ul > li > a:hover {
  scale: 1;
  background-color: #f3f4f6;
  color: #2563eb !important;
}
/* стрелка справа */
.header__nav.mobile-active .header__nav-list ul > li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
/* текущая страница */
.header__nav.mobile-active .header__nav-list ul > li.current_page_item > a,
.header__nav.mobile-active .header__nav-list ul > li.current-menu-item > a {
  background-color: #fef2f2;
}

.tab-content {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}

@media (max-width: 1200px) {
  .tab-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tab-content.active {
  display: grid;
}

.tab-button {
  position: relative;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  border: none;
  padding-bottom: 8px;
  border-bottom: 2px solid #dfe5eb;
  сursor: pointer;
  border-radius: 0;
  text-align: start;
  display: flex;
  align-items: flex-end;
}

.tab-button:hover,
.tab-button:focus {
  color: #30a8f9;
  border-color: #30a8f9;
}

.tab-button.active {
  color: #30a8f9;
  border-color: #30a8f9;
}

.tab-button.tab-button-project.active {
  position: relative;
}

.tab-button.active::before,
.tab-button-project.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 330px;
  height: 165px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #131f27 30%,
    rgba(19, 31, 39, 0) 100%
  );
  z-index: -1;
  border-radius: 10px;
  opacity: 0.3;
}

.link_hover {
  width: fit-content;
}
.link_hover:hover {
  border-color: #30a8f9;
  color: #30a8f9;
}
.link_hover:hover svg path {
  stroke: #30a8f9 !important;
  fill: #30a8f9 !important;
}

.link_hover:hover span {
  color: #30a8f9;
}

/* 

.tab-button.tab-button-project.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: -1;
  transition: background 0.3s ease;
}

.tab-button.tab-button-project.active.active::before {
  background: radial-gradient(
    50% 50% at 50% 50%,
    #131f27 30%,
    rgba(19, 31, 39, 0) 100%
  );
} */

.tab-button-plans {
  text-align: start;
  font-size: 16px;
  line-height: 19px;
  border-radius: 0;
  padding-bottom: 16px;
  border-color: #3c3d3e;
}

.tab-button-plans:hover {
  color: #30a8f9;
  border-color: #3c3d3e;
}
.tab-button-development--alt {
  border-color: #3c3d3e !important;
}
.tab-button-development--alt:hover {
  color: #30a8f9;
  border-color: #3c3d3e;
}

.tab-button-plans.active {
  border-color: #3c3d3e;
}

.tab-buttons-projects {
  gap: clamp(20px, 2vw, 80px);
}

.tab-content-plans {
  grid-template-columns: 1fr;
  padding: 64px;
  gap: 2px;
  border-left: 2px solid #3c3d3e;
}

.tab-content-plans h2 {
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  margin-bottom: 32px;
}
.tab-content-plans h3 {
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  margin-bottom: 12px;
}

.tab-content-plans p {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  margin-bottom: 32px;
}

.tab-content-plans p:has(span) {
  margin: 0;
}
.tab-content-plans p span {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.1em;
  color: #dfe5eb;
}

.tab-content-plans ul,
.tab-content-plans ol {
  list-style: disc;
  padding-left: 50px;
  margin-bottom: 32px;
}
.tab-content-plans ul,
.tab-content-plans ol li {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.1em;
  color: #dfe5eb;
}

.tab-button-development {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  border: none;
  padding-bottom: 8px;
  border-bottom: 2px solid #dfe5eb;
  сursor: pointer;
  text-align: start;
}
.tab-button-development.active {
  color: #30a8f9;
}

.tab-content-development {
  grid-template-columns: 1fr;
  padding: 64px;
  gap: 2px;
  border-left: 2px solid #3c3d3e;
}

.tab-content-development h2 {
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  margin-bottom: 32px;
}
.tab-content-development h3 {
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  margin-bottom: 12px;
}

.tab-content-development p {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  margin-bottom: 32px;
}

.tab-content-development p:has(span) {
  margin: 0;
}
.tab-content-development p span {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.1em;
  color: #dfe5eb;
}

.tab-content-development ul,
.tab-content-development ol {
  list-style: disc;
  padding-left: 50px;
  margin-bottom: 32px;
}
.tab-content-development ul,
.tab-content-development ol li {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.1em;
  color: #dfe5eb;
}

.tab-parther-content.active {
  display: flex;
}

.tab-button-partners:hover {
  color: #30a8f9;
}

.tab-button-partners.active {
  display: none;
}
.tab-buttons-partners.active {
  display: none;
}
.tab-content-partners {
  display: none;
}
.tab-content-partners.active {
  display: flex;
}
.icon-edit-btn {
  display: none;
}
.icon-edit-btn.active {
  display: flex;
}
.icon-back-btn {
  display: none;
}
.icon-back-btn.active {
  display: flex;
}
.icon-edit-btn-support {
  display: none;
}
.icon-edit-btn-support.active {
  display: flex;
}
.icon-back-btn-support {
  display: none;
}
.icon-back-btn-support.active {
  display: flex;
}

.project__item {
  display: flex !important;
  align-items: center;
}

.about__slider {
  height: 572px;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.nav-about .slick-dots {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 53px;
  width: auto;
  order: 2;
  padding: 0;
  margin: 0;
  font-size: 0;
  margin-top: 2px;
}

.nav-about .slick-dots li {
  vertical-align: middle;
}

.nav-about .slick-dots li.slick-active {
  height: 10px;
  background: #dfe5eb;
  border-radius: 5px;
}
.nav-about .slick-dots li.slick-active button {
  border: none;
}

.nav-about .slick-dots li {
  width: 100%;
  padding: 0;
  height: 4px;
  background: #656769;
  border-radius: 2px;
  cursor: pointer;
}
.nav-about .slick-dots li button {
  border-color: #656769;
}

.nav-about .slick-dots li button::before {
  display: none;
}
.about__slider .next-btn {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 33px;
  height: 60px;
  z-index: 1;
  cursor: pointer;
  opacity: 1;
}
.about__slider .prev-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 33px;
  height: 60px;
  z-index: 1;
  cursor: pointer;
  opacity: 1;
}
.about__slider .next-btn.slick-disabled,
.about__slider .prev-btn.slick-disabled {
  opacity: 0.5;
}
.project__slider {
  height: 206px;
  border-radius: 20px;
  position: relative;
}

.nav-project {
  display: flex;
  justify-content: center;
  align-items: end;
}

.nav-project .slick-dots {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  width: auto;
  padding: 0;
  margin: 0;
  font-size: 0;
  /* margin-top: 410px; */
}

.nav-project .slick-dots li {
  vertical-align: middle;
}

.nav-project .slick-dots li.slick-active {
  background: #30a8f9;
  border-color: #30a8f9;
}
.nav-project .slick-dots li.slick-active button {
  border: none;
}

.nav-project .slick-dots li {
  width: 12px;
  padding: 0;
  height: 12px;
  background: rgba(223, 229, 235, 0.2);
  border-radius: 50%;
  border: 1px solid #dfe5eb;
  cursor: pointer;
}
.nav-project .slick-dots li button {
  border-color: #656769;
}

.nav-project .slick-dots li button::before {
  display: none;
}
.project__slider .next-btn {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-40%);
  width: 33px;
  height: 60px;
  z-index: 1;
  cursor: pointer;
  opacity: 1;
}

@media (max-width: 1024px) {
  .project__slider .next-btn {
    left: 0;
  }
}
.project__slider .prev-btn {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-40%);
  width: 33px;
  height: 60px;
  z-index: 1;
  cursor: pointer;
  opacity: 1;
}

@media (max-width: 1024px) {
  .project__slider .prev-btn {
    right: 0;
  }
}
.project__slider .next-btn.slick-disabled,
.project__slider .prev-btn.slick-disabled {
  opacity: 0.5;
}

.accordeon {
  display: flex;
  flex-direction: column;
}
.accordeon.active {
  display: none;
}
.accordeon-desctop.active {
  display: none;
}
.category {
  display: none;
}
.category.active {
  display: flex;
}
.next-btn {
  display: block;
}
.next-btn.active {
  display: none;
}
.accordeon__item {
  border-bottom: 1px solid #3c3d3e;
}

@media (max-width: 768px) {
  .accordeon__item {
    border-color: #dfe5eb;
  }
}

.accordeon__item-header,
.accordeon__item-header-product-mobile {
  position: relative;
  cursor: pointer;
  padding: 32px 0;
  display: flex;
  align-items: center;
  z-index: 2;
  font-weight: 500;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.1em;
  color: #3c3d3e;
}

@media (max-width: 768px) {
  .accordeon__item-header,
  .accordeon__item-header-product-mobile {
    font-weight: 500;
    font-size: 19px;
    line-height: 19px;
    letter-spacing: 0.1em;
    color: #dfe5eb;
  }
}

.accordeon__item.expanded .accordeon__item-header {
  color: #dfe5eb;
}
.accordeon__item.expanded.active .accordeon__item-header {
  display: none;
}
.accordeon__item.expanded.active .accordeon__item-content-wrapper {
  display: none;
}

.accordeon__item-content-card--alt {
  display: none;
}

.accordeon__item.expanded.active .accordeon__item-content-card--alt {
  display: flex;
  padding-top: 32px;
}

@media (max-width: 768px) {
  .accordeon__item.expanded.active .accordeon__item-content-card--alt {
    padding-top: 16px;
  }
}
.accordeon__item.expanded.active .accordeon__item-content-card {
  display: none;
}

.accordeon__item-content-card-desctop,
.accordeon__item-content-wrapper {
  width: 100%;
  max-width: 374px;
  min-width: 374px;
}

@media (max-width: 768px) {
  .accordeon__item-content-card-desctop,
  .accordeon__item-content-wrapper {
    min-width: 100%;
  }
}
.accordeon__item.expanded.active .accordeon__item-content-card-desctop {
  display: none;
}

.accordeon__item-content {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  visibility: hidden;
  opacity: 0;
  height: 0;
  transition: opacity 0;
}
.accordeon__item.expanded .accordeon__item-content,
.accordeon__item.expanded.active .accordeon__item-content {
  visibility: visible;
  height: auto;
  opacity: 1;
  margin-top: 0;
  padding-bottom: 32px;
}

@media (max-width: 768px) {
  .accordeon__item.expanded .accordeon__item-content,
  .accordeon__item.expanded.active .accordeon__item-content {
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 768px) {
  .accordeon__item-content {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .accordeon__item.expanded .accordeon__item-content {
    padding-bottom: 12px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Плавное масштабирование + свечение при наведении */
.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(0px);
  opacity: 1;
}

/* Альтернатива: цветное свечение под каждую платформу (по желанию) */
.social-link[href*="youtube"]:hover img {
  filter: drop-shadow(0 0 12px #ff0000);
}
.social-link[href*="instagram"]:hover img {
  filter: drop-shadow(0 0 12px #e4405f);
}
.social-link[href*="telegram"]:hover img {
  filter: drop-shadow(0 0 12px #229ed9);
}
.social-link[href*="X"]:hover img,
.social-link[href*="twitter"]:hover img {
  filter: drop-shadow(0 0 12px #000000);
}
.social-link[href*="discord"]:hover img {
  filter: drop-shadow(0 0 12px #5865f2);
}
.social-link[href*="facebook"]:hover img {
  filter: drop-shadow(0 0 12px #1877f2);
}

/*modal*/

.modal-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 100vw;
  height: 100%;
  min-height: 95vh;
  background-color: #101010;
  /* background-color: rgba(0, 0, 0, 0.5); */
  z-index: 9999;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  height: 100%;
  max-height: 95vh;
  min-height: 80vh;
  max-width: 1440px;
  padding: 64px;
  overflow: hidden;
  overflow-y: auto;
  background: #131313;
  border: 2px solid #3c3d3e;
  border-radius: 32px;
}

@media (max-width: 1024px) {
  .modal {
    gap: 0;
  }
}
@media (max-width: 768px) {
  .modal {
    padding: 20px;
  }
}

.modal-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 130px;
}

@media (max-width: 1024px) {
  .modal-form {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.modal-form__input {
  width: 100%;
  background: #101010 !important;
  border: 2px solid #3c3d3e !important;
  border-radius: 18px !important;
  height: 100%;
  min-height: 57px !important;
  max-height: 57px !important;
  padding: 20px 32px !important;
  font-weight: 300 !important;
  font-size: 16px !important;
  line-height: 19px !important;
  letter-spacing: 0.1em !important;
  color: #dfe5eb !important;
  outline: none !important;
}

@media (max-width: 1024px) {
  .modal-form__input {
    min-height: 45px !important;
    padding: 13px 32px !important;
  }
}

.modal-for__input::placeholder {
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #3c3d3e;
}

.modal-form .main-btn {
  width: 100%;
  background: rgba(60, 61, 62, 0.1);
  border: 2px solid #3c3d3e;
  border-radius: 15px;
}

input[type="tel"]:focus,
input[type="tel"]:active {
  border: none;
  outline: none;
}

/* === Custom Dropdown === */
.custom-dropdown {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 57px;
}

.dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(16, 16, 16, 0.6);
  border: 2px solid #3c3d3e;
  border-radius: 18px;
  height: 100%;
  padding: 20px 32px;
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  min-height: 57px !important;
  max-height: 57px !important;
}

.dropdown-arrow {
  color: #dfe5eb;
  transition: transform 0.2s ease;
  width: 23px;
  height: 23px;
}

@media (max-width: 768px) {
  .dropdown-arrow {
    width: 15px;
    height: 15px;
  }
}

.dropdown-selected.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  background: #131313;
  border: 2px solid #3c3d3e;
  border-radius: 18px;
  border-top: 0;
  padding: 16px 32px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
  max-height: 0;
}

.dropdown-list.open {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
  border-top: 1px solid #3c3d3e;
}

.dropdown-item {
  padding: 16px 0;
  color: #dfe5eb;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #3c3d3e;
}

/* .dropdown-item:hover {
  background-color: #2a2a2a;
} */

.dropdown-item:last-child {
  border-bottom: 0;
}
.dropdown-item:first-child {
  padding-top: 0;
}

/* Плейсхолдер, когда значение пустое */
.dropdown-value:empty::before {
  content: attr(data-placeholder);
  color: rgba(223, 229, 235, 0.6); /* #DFE5EB / 60% */
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  user-select: none;
  cursor: pointer;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  cursor: pointer;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

/* Галочка */
.checkbox-box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #101010;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  position: absolute;
}

/* При отмеченном */
.checkbox-input:checked + .checkbox-label .checkbox-box {
  background: #dfe5eb;
  border-color: #dfe5eb;
}

.checkbox-input:checked + .checkbox-label .checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

/* Фокус (для клавиатуры) */
.checkbox-input:focus-visible + .checkbox-label .checkbox-box {
  outline: 2px solid #dfe5eb;
  outline-offset: 2px;
}

/* Ховер */
.checkbox-label:hover .checkbox-box {
  border-color: #dfe5eb;
}

.modal-form__textarea {
  width: 100%;
  height: 100%;
  max-height: 203px;
  min-height: 128px;
  background: #101010;
  border: 2px solid #3c3d3e;
  border-radius: 32px;
  resize: none;
  padding: 20px 32px;
  font-weight: 300 !important;
  font-size: 16px !important;
  line-height: 19px !important;
  letter-spacing: 0.1em !important;
  color: #dfe5eb !important;
  outline: none !important;
}

@media (max-width: 768px) {
  .modal-form__textarea {
    border-radius: 18px;
  }
}

.modal-form__textarea::placeholder {
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #3c3d3e;
}

.file-upload-container {
  width: 100%;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.file-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  min-height: 130px;
  max-height: 130px;
  padding: 24px 32px;
  background: #101010;
  border: 2px dashed #3c3d3e;
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #3c3d3e;
}

@media (max-width: 768px) {
  .file-upload-area {
    padding: 16px;
    min-height: 60px;
    max-height: 60px;
    border-radius: 18px;
  }
}
.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: #30a8f9;
}

.file-upload-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #3c3d3e;
  transition: color 0.3s ease;
}

.file-upload-area:hover .file-upload-area.dragover {
  color: #30a8f9;
}
.file-upload-area:hover .file-icon {
  stroke: #30a8f9;
}

.file-icon {
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke 0.3s ease;
}

@media (max-width: 768px) {
  .file-icon {
    width: 14px;
    height: 26px;
  }
}

.upload-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #dfe5eb;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .upload-link {
    font-weight: 300;
  }
}

.file-upload-area:hover .upload-link {
  color: #30a8f9;
}

/* Состояние с файлом */
.file-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.1em;
  color: #3c3d3e;
  transition: color 0.3s ease;
}

/* .file-preview .file-icon {
  stroke: #30a8f9;
} */

.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dfe5eb;
  margin-left: 16px;
}

.remove-file {
  background: none;
  border: none;
  color: #dfe5eb;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.file-upload-area:has(.close-icon:hover) {
  border-color: #3c3d3e !important;
  color: #3c3d3e !important;
}

.file-upload-area:has(.close-icon:hover) .file-icon {
  stroke: #3c3d3e !important;
}

.close-icon:hover {
  stroke: #30a8f9;
}

.hidden {
  display: none !important;
}
/*modal end*/

.link {
  color: #dfe5eb !important;
  width: fit-content;
}
.link:hover,
.link:focus {
  color: #30a8f9 !important;
}

a:focus {
  outline: 0 !important;
}
.modal-opener-btn:hover {
  color: #30a8f9;
}
.modal-opener-btn--alt:hover {
  color: #101010;
  background-color: #30a8f9;
}
.back-btn:hover,
.edit-btn:hover {
  color: #30a8f9;
}

.year-checkbox {
  position: relative;
  display: flex;
  align-items: center;
}

.year-checkbox input[type="checkbox"]:checked + .year-label {
  @apply text-[#30A8F9];
}

.year-checkbox input[type="checkbox"]:checked ~ svg {
  stroke: #30a8f9;
}

/* Опционально: кастомный чекбокс */
/* .year-checkbox::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #3c3d3e;
  border-radius: 4px;
  margin-right: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.year-checkbox input[type="checkbox"]:checked::before {
  background: #30a8f9;
  border-color: #30a8f9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5L4 8L9 2' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
} */

.css-x {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px; /* мобильный */
  height: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Две полоски */
.css-x::before,
.css-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 38px;
  background: #ffffff; /* ЦВЕТ ЗДЕСЬ */
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.css-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Ховер-эффект */
.css-x:hover::before,
.css-x:hover::after {
  background: #30a8f9 !important;
}

.css-x:focus::before,
.css-x:focus::after {
  background: #30a8f9 !important;
}

/* Десктоп */
@media (min-width: 768px) {
  .css-x {
    width: 30px;
    height: 48px;
  }
  .css-x::before,
  .css-x::after {
    height: 38px;
  }
}

.header {
  transition: background-color 0.4s ease;
}

/* Полностью чёрный фон после 200px */
.header.scrolled {
  background-color: #101010 !important; /* убираем /70 */
  z-index: 9999;
}

.team-bg {
  background-image: url("../img/bg-fon.png");
  background-size: cover;
  background-color: rgb(16 16 16 / var(--tw-bg-opacity, 1));
  background-blend-mode: exclusion;
}
.mobile-overlay {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    88deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 100%,
    transparent 70%
  );
}

.home-description {
  object-position: 75%;
}

.select-btn.selected {
  border-color: rgb(48 168 249 / var(--tw-border-opacity, 1));
}

.select-btn.selected a span {
  color: #30a8f9 !important;
}

.select-btn.selected a svg path {
  stroke: #30a8f9 !important;
}

/*----------------------------------EDU (шаблон «EDU Главная»)---------------------------------*/
body.edu {
  font-family: "Inter", sans-serif;
}

/* Анимация появления: [data-reveal] (класс .js-reveal ставится на <html> скриптом в header-edu.php) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal="fade"] {
  transform: none;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Заголовок по словам: data-reveal="words" */
.js-reveal [data-reveal="words"] {
  opacity: 1;
  transform: none;
}
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="words"].is-visible .reveal-word {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .reveal-word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Текст из редактора (биография, вступление страницы) */
.edu-prose > * + * {
  margin-top: 1em;
}
.edu-prose h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 1.5em;
}
.edu-prose h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 1.25em;
}
.edu-prose ul {
  list-style: disc;
  padding-left: 1.5em;
}
.edu-prose ol {
  list-style: decimal;
  padding-left: 1.5em;
}
.edu-prose strong {
  font-weight: 600;
}
.edu-prose a {
  color: #2563eb !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.edu-prose img {
  border-radius: 10px;
  height: auto;
}

/* Пагинация списков */
.edu-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 14px;
  color: #0a0a0a !important;
  transition: background-color 0.2s ease;
}
.edu-pagination a.page-numbers:hover {
  background: #e9ebef;
}
.edu-pagination .page-numbers.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
}
.edu-pagination .page-numbers.dots {
  border: 0;
}

/* Слайдер (главная, программы): прокрутка без видимой полосы */
.edu-slider-track {
  scrollbar-width: none;
}
.edu-slider-track::-webkit-scrollbar {
  display: none;
}

/* Кнопка «Наверх» (footer.php): закреплена справа снизу, кольцо прогресса прокрутки */
.edu-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45), 0 4px 10px -4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}
.edu-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.edu-to-top:hover {
  background: #1d4ed8;
}
.edu-to-top:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 3px;
}
.edu-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.edu-to-top__track,
.edu-to-top__progress {
  fill: none;
  stroke-width: 3;
}
.edu-to-top__track {
  stroke: rgba(255, 255, 255, 0.25);
}
.edu-to-top__progress {
  stroke: #fff;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.edu-to-top__icon {
  position: relative;
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}
.edu-to-top:hover .edu-to-top__icon {
  transform: translateY(-3px);
}
@media (max-width: 767px) {
  .edu-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .edu-to-top,
  .edu-to-top__icon,
  .edu-to-top__progress {
    transition: none;
  }
}
