/*Подключаем шрифты*/


@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

















/*Нормализуем стили*/

/**
  Нормализация блочной модели
 */
*,
::before,
::after {
  box-sizing: border-box;
}

/**
  Убираем внутренние отступы слева тегам списков,
  у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
  padding-left: 0;
}

/**
  Убираем внешние отступы body и двум другим тегам,
  у которых есть атрибут class
 */
body,
:where(blockquote, figure, fieldset):where([class]) {
  margin: 0;
}

/**
  Убираем внешние отступы вертикали нужным тегам,
  у которых есть атрибут class
 */
:where(h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  dl):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  padding: 0;
  border: none;
}

/**
  Убираем стандартный маркер маркированному списку,
  у которого есть атрибут class
 */
:where(ul[class]) {
  list-style: none;
}

:where(address[class]) {
  font-style: normal;
}

/**
  Обнуляем вертикальные внешние отступы параграфа,
  объявляем локальную переменную для внешнего отступа вниз,
  чтобы избежать взаимодействие с более сложным селектором
 */
p {
  --paragraphMarginBottom: 24px;

  margin-block: 0;
}

/**
  Внешний отступ вниз для параграфа без атрибута class,
  который расположен не последним среди своих соседних элементов
 */
p:where(:not([class]):not(:last-child)) {
  margin-bottom: var(--paragraphMarginBottom);
}


/**
  Упрощаем работу с изображениями и видео
 */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/**
  Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
  font: inherit;
}

html {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  height: 100%;
  /**
    Убираем скачок интерфейса по горизонтали
    при появлении / исчезновении скроллбара
   */

  /*scrollbar-gutter stable создает отступ справа, пока отключаю*/
  /* scrollbar-gutter: stable; */
  /**
    Плавный скролл
   */
  scroll-behavior: smooth;
}

body {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  min-height: 100%;
  /**
    Унифицированный интерлиньяж
   */
  line-height: 1.5;
}

/**
  Нормализация высоты элемента ссылки при его инспектировании в DevTools
 */
a:where([class]) {
  display: inline-flex;
}

/**
  Курсор-рука при наведении на элемент
 */
button,
label {
  cursor: pointer;
}

/**
  Убирает серую подсветку при тапе на мобильных устройствах (iOS/Android)
 */
button {
  -webkit-tap-highlight-color: transparent;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут fill со значением 'none' или начинается с 'url')
 */
:where([fill]:not([fill="none"],
    [fill^="url"])) {
  fill: currentColor;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут stroke со значением 'none')
 */
:where([stroke]:not([stroke="none"],
    [stroke^="url"])) {
  stroke: currentColor;
}

/**
  Чиним баг задержки смены цвета при взаимодействии с svg-элементами
 */
svg * {
  transition-property: fill, stroke;
}

/**
  Приведение рамок таблиц в классический 'collapse' вид
 */
:where(table) {
  border-collapse: collapse;
  border-color: currentColor;
}

/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
 */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


:root {
  --background-white: #fff;
  --main-background: #774CD5;
  --yellow-block: #FFDE5A;
  --yellow-btn: #FFCC00;
  --dark-primary: #222222;

  --button-hover: #FFAA00;
  --alternate-button-hover:#6735d5;

  --grey-block: #F1F0EF;

  --border-radius-outer: 36px;
  --border-radius-inner: 6px;

  --font-family-base: 'Onest', sans-serif;

  --border-default: 1px solid #BAB9B9;
  --input-height: 56px;

  --container-width: 1270px;
  --container-padding-x: 15px;

  --transition-duration: 0.2s;
}

body {
  font-family: var(--font-family-base);
  background: var(--background-white);
  color: var(--dark-primary);
  line-height: 1.4;
  font-size: 16px;
}

a {
  color: var(--dark-primary);
  text-decoration: none;
}

.container {
  max-width: calc(var(--container-width) + var(--container-padding-x)*2);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
}

/*Временно добавим цвет и высоту*/
body {
  /* background: --main-background; */
  /* min-height: 900vh; */
}


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



.header {
  display: flex;
  background: rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);


  justify-content: center;
  min-height: 92px;

  position: sticky;
  z-index: 10;
  top: 0;
}

/* .header::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  background: var(--main-background);
  z-index: -1;
} */

.header-container {
  width: 1270px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 42px;
  font-weight: 600;
  padding: 0px 15px 0 0;

}

@media (width<1300px) {
  .header-container {
    padding: 0px 15px 0 15px;
  }
}

.header-menu-list {
  display: flex;
  column-gap: 22px;

}



.header-menu-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: medium;

}


.header-action {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 14px;
}

.header-action--mobile {
  display: none;
}

.header__burger-menu {
  display: none;
}

.header__phone--mobile {
  display: none;
}

.header-bill {
  border: 1px solid var(--dark-primary);
  padding: 2px 8px;
  border-radius: 4px;
}

.header-bill:hover{
  background: #FFCC00;
}

.header-logo {
  /* justify-self: flex-start; */
  margin-right: auto;
}

.header-burger-button {
  display: none;
}

button:disabled{
  background: #cfcfcf;
}



/*Стили для верхнего хэдера актионЫ topline*/
.topline {
  /* Topline Block */
  --topline-bg-color: #333;

  /* Logo */
  --topline-logo-width: 126px;
  --topline-logo-height: 24px;
  --topline-logo-width-mobile: 126px;
  --topline-logo-height-mobile: 24px;

  background-color: var(--topline-bg-color);

  position: sticky;
}

.topline__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  padding: 6px 15px;
}

.topline__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topline__logo-img {
  width: var(--topline-logo-width);
  height: var(--topline-logo-height);
  object-fit: contain;
}

@media (max-width: 576px) {
  .topline__logo-img {
    width: var(--topline-logo-width-mobile);
    height: var(--topline-logo-height-mobile);
  }
}

/*<--Стили для верхнего хэдера topline*/


/*Hero block*/

.hero {
  background: var(--main-background);
}

.hero-container {
  display: flex;
  justify-content: space-between;
  padding: 0px 10px 0px 50px;

}



.hero-row {
  display: flex;

}

.hero-button {
  margin-top: 50px;
  background: #FFCC00;
  color: #222222;
  width: 369px;
  height: 56px;
  text-align: center;
  display: block;
  padding: 16px;
  border-radius: 6px;
  font-weight: 500;
}

.hero-button:hover{
  background: var(--button-hover);
}



.hero-left-content {
  width: 703px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.hero-image-wrapper {
  min-width: 47%;
  width: 47%;
}


.hero-image-wrapper img {
  width: 100%;
}

.hero-image-wrapper--mobile {
  display: none;
}





/*Form*/
.hero-right-form {
  max-width: 470px;
  padding: 36px 46px;
  background-color: var(--bg-color);
  border-radius: 36px;
  background: #F1F0EF;
}

.main__form--title {
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #0f0f0e;

}

.main__form--text {
  font-weight: normal;
  font-size: 16px;
  line-height: 140%;
  margin-top: 13px;
}

.main__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
}

.main__banner-link img {
  border-radius: 20px;
}

.main__callback--input {
  border: 1px solid rgba(34, 34, 34, 0.5);
  border-radius: 10px;
  padding: 16px 24px;
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
}

.main__callback--input::placeholder {
  color: #a7a9ac;
}


.form_button {
  background: var(--yellow-btn);
  font-size: 18px;
  color: var(--dark-primary);
  padding: 18px;
  border: none;
  border-radius: 6px;
  font-weight: 500;

}

.form__checkbox_note {
  font-size: 11px;
  color: #616161;

}

.form__checkbox_note a {
  color: var(--main-background);
}

.checkbox__custom {
  position: absolute;
  left: 0;
  top: 25%;
  width: 14px;
  height: 14px;
  border: 1px solid var(--main-background);
  transform: translateY(-50%);
  border-radius: 4px;
}

.checkbox__custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--main-background);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__button input:checked+.checkbox__custom::after {
  display: block;
}

.checkbox__button {
  /* display: flex; */
  align-items: center;
  position: relative;
  cursor: pointer;
  padding-left: 22px;
}

.checkbox__button input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.hero-title {
  font-size: 50px;
  line-height: 120%;
  color: white;
}

.hero-text {
  font-size: 22px;
  color: white;
  line-height: 140%;

}

.hero-link {
  margin-top: 16px;
  color: white;
  text-align: center;
  display: block;
  width: 369px;
  text-decoration: underline;
  font-weight: 300;
}




/*End hero*/

.header__start-color {
  height: 92px;
  margin-top: -92px;
  background: var(--main-background);
}



.actual__wrapper {
  margin-top: 50px;
  border: var(--border-default);
  border-radius: 36px;
  padding: 50px;

}


.h2 {
  line-height: 130%;
  font-size: 36px;
  font-weight: 600;
}

.text-area {
  margin-top: 40px;
  font-size: 16px;
  line-height: 140%;
}

.ul-lightning {
  margin-top: 36px;
  list-style: none;
  padding: 0;
}

.ul-lightning li {

  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  line-height: 140%;

}

li::before {
  content: '';
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: url('../img/icons/lightning.png') no-repeat center / contain;
  margin-top: 2px;
}

.actual__image-wrapper {
  width: 44%;
  margin-top: 40px;
}

.actual__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.col-2 {
  display: flex;
  justify-content: space-between;
}

.actual__text {
  width: 50%;
}

.actual__button--mobile {
  display: none;
}

.h3 {
  font-size: 22px;
  font-weight: 600;
}


.prov {
  /* overflow: visible; */
  height: 150px;
  display: flex;
  padding: 51px;
  background: var(--yellow-block);
  margin: 50px -51px -51px -51px;
  border-radius: 36px;
  justify-content: space-between;
  align-items: center;

}


.prov__img-wrapper {
  width: 200px;
  height: 160px;
  overflow: visible;
  position: relative;
  align-self: flex-end;
  flex-shrink: 0;
  margin-bottom: -51px;
}

.prov__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  /* overflow: visible; */

}

.prov__text {
  font-size: 22px;
  line-height: 130%;
  font-weight: 600;
  width: 45%;
}

.prov__button {
  width: 30%;
  display: flex;
  /* text-align: center; */
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: white;
  font-weight: 200;
  background: var(--main-background);
  border-radius: 6px;
  height: 56px;
}




@media (max-width:770px) {
  .checkbox__custom {
    border: 1px solid #333;
    width: 12px;
    height: 12px;
  }

  .checkbox__custom::after {
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
  }

  .checkbox__button {
    line-height: 120%;
    font-size: 12px;
    padding-left: 16px;
  }
}


.price__wrapper {
  margin-top: 50px;
  background: var(--grey-block);
  border-radius: 36px;
  padding: 48px;
}

.price__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

}



.price__plans {
  margin-top: 50px;
  display: flex;
  gap: 30px;
}


.price__tumbler {
  display: flex;
  border-radius: 19px;
  background: 255, 255, 255, 0.1;
  overflow: hidden;
  border: var(--border-default);
  min-width: 345px;
  height: 38px;
  cursor: pointer;

}

.tumbler-btn {

  flex: 1;
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: #BAB9B9;
  border-radius: 19px;
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;


}

.tumbler-btn--active {
  background: #fff;
  border: var(--border-default);
  color: var(--main-background);
}

.price__plans[data-plan="half-year"] {
  display: flex;
}

.price__plans[data-plan="year"] {
  display: none;
}


.plan {
  border: var(--border-default);
  /* width: 370px; */
  width: 33%;

  background: white;
  padding: 30px;
  border-radius: 18px;
}

.plan__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.plan__old-price {
  font-size: 22px;
  color: #777777;
  text-decoration: line-through;
  text-align: center;
  margin-top: 29px;
}

.plan__actual-price {
  margin-top: 0px;
  font-size: 40px;
  color: var(--main-background);
  text-align: center;

}


.plan__img-wrapper {
  margin-top: 27px;

}

.plan__img-wrapper img {
  min-width: 100%;

}

.plan__button {
  margin-top: 20px;
  background: #FFCC00;
  color: #222222;
  /* width: 308px; */
  width: 100%;
  min-height: 56px;
  text-align: center;
  display: block;
  padding: 17px;
  border-radius: 6px;
  font-weight: 500;
}

.plan__button:hover{
  background: var(--button-hover);
}

.plan__card-link {
  display: block;
  margin-top: 28px;
  font-size: 16px;
  line-height: 140%;
  text-decoration: underline;
  text-align: center;

}

.callback {
  /* margin-top: 50px; */
  background: var(--main-background);

}

.callback__inner {
  padding: 50px;
}


.callback__title {
  font-weight: 400;
  font-size: 22px;
  line-height: 140%;
  color: #ffffff;
  max-width: 1000px;
  /* padding-bottom: 51px; */
}

.callback__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 33px;
}

.callback__button {
  border: none;

  background: #FFCC00;
  color: #222222;
  /* width: 308px; */
  height: 56px;
  text-align: center;

  padding: 17px;
  border-radius: 6px;
  font-weight: 500;
}

.callback__upper {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 28px;
  justify-content: space-between;
}

.callback__lower {
  display: flex;
  justify-content: space-between;
}


.callback__checkbox {

  font-size: 11px;
  font-weight: 400;
  line-height: 120%;
}

.callback__input {
  border: var(--border-default);
  height: 56px;
  border-radius: 6px;
  padding: 16px 24px;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
}

.callback__input::placeholder {
  color: #a7a9ac;
}



@media (max-width:770px) {

  .feedback {
    padding-bottom: 32px;
  }

  .callback__title {
    font-size: 22px;
    line-height: 120%;
    padding-bottom: 16px;
  }

  .callback__upper {
    grid-template-columns: repeat(1, minmax(100px, 1fr));
    gap: 12px;
  }

  .callback__lower {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .callback {
    padding: 24px 0px;
  }
}


.callback__checkbox_custom {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid #ffffff;

  transform: translateY(-50%);
}


.white-text {
  color: white;
}

.callback__checkbox_custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__button input:checked+.callback__checkbox_custom::after {
  display: block;
}



.benefits {
  margin-top: 50px;
  border: var(--border-default);
  border-radius: 36px;
  padding: 50px;

}

.video_text {
  margin-top: 50px;
  display: flex;
  gap: 32px;
}

.video_text__text {
  flex: 1;
  /* min-width: 300px; */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}


/*Видео блок*/
.video-block {
  /* width: 772px; */
  width: 66%;
  aspect-ratio: 772 / 503;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}

/* Медиа */
@media (max-width: 768px) {
  .video-block {
    width: 378px;
    aspect-ratio: 378 / 246;
  }
}

/* Ещё мобильнее — по ширине экрана */
@media (max-width: 420px) {
  .video-block {
    width: 100%;
  }
}

/* Превью */
.video-block__preview {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-block__preview.hidden{
  opacity: 0;
  pointer-events: none;
}

.video-block__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Кнопка по центру */
.video-block__play { 
  position: absolute;
  inset: 0;
  /*Временно display none*/
  /* display: none; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
}

.video-block__play-icon {
  width: 72px;
  height: 72px;
  transition: transform 0.2s ease;
}

.video-block__play:hover .video-block__play-icon {
  transform: scale(1.1);
}

.video-block__play-text {
  color: white;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* iframe обёртка */
.video-block__iframe-wrap {
  width: 100%;
  height: 100%;
}

.video-block__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


.title-with-icon {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 22px;
  line-height: 140%;
  font-weight: 600;

}

.title-with-icon_image {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.video_text_p {
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  padding-left: 50px;

}


/* ===== Родительский блок с анимацией высоты ===== */
.grey_info_expand {
  margin-top: 50px;
  background: var(--grey-block, #f5f5f5);
  padding: 40px;
  border-radius: 18px;
  overflow: hidden;
  /* Высота будет анимироваться через JS */
  /* max-height: 500px; */
  transition: max-height 0.4s ease;
  will-change: max-height;
}

.grey_info_expand.is-expanded {
  max-height: 2000px;
}


/* ===== Категории ===== */
.categories {
  position: relative;
}

.categories__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.categories__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

.categories__arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  transform: rotate(45deg);
}

.categories.is-expanded .categories__arrow {
  transform: rotate(0deg);
}

/* ===== Сетка ===== */
.categories__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* Важно: позиция relative для корректного позиционирования скрытых карточек */
  position: relative;
}

@media (width<768px){
  .categories__grid{
    grid-template-columns: 1fr;
  }
}

/* ===== Карточка ===== */
.category-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--grey-block, #fff);
  border-radius: 12px;
  border: var(--border-default, 1px solid #eee);
  min-height: 117px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card--last {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--grey-block, #fff);
  border-radius: 12px;
  border: var(--border-default, 1px solid #eee);
  min-height: 117px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.category-card__name {
  max-width: 70%;
  font-size: 16px;
}

/* ===== СТОПКА ===== */
.category-stack {
  position: relative;
  z-index: 1;
  /* Поверх псевдоэлементов */
}

/* Слои стопки */
.category-stack::before,
.category-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-stack::before {
  transform: translate(4px, 6px);
  z-index: -1;
  background: #e8e8e8;
}

.category-stack::after {
  transform: translate(8px, 12px);
  z-index: -2;
  background: #ddd;
}


/* Стопка — при раскрытии убираем из потока, чтобы не занимала место */
.categories.is-expanded .category-stack {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Скрытые карточки — базовое состояние (свёрнуто) */
.categories__hidden-card {

  position: absolute;

  /* left: 0; */
  /* top: 0; */
  /* width: calc(25% - 12px);  */
  width: 0;
  height: 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  /* transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s; */
  z-index: 0;
}

/* При раскрытии — возвращаем в поток */
.categories.is-expanded .categories__hidden-card {
  position: relative;
  width: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}


.category-card--stack-top .category-card__name{
  width: 100%;
  max-width: 100%;
}






.expand_div {
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.7s ease;
  will-change: max-height;
}


.expand_div--expanded {
  max-height: 1500px;
}





.expand_div__title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /*Временно решаю*/
  padding-bottom: 40px;
}

.expand_div__toggle {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
}

.expand_div__content {
  margin-top: 20px;


}

.expand_div.expand_div--expanded .categories__arrow {
  transform: rotate(0deg);
}

.categories__arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}


.grid_6-4 {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 0 20px;
}
@media (width < 600px){
  .grid_6-4{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.grid_7-3 {
  display: grid;
  grid-template-columns: 7fr 3fr;
}

.grid_100 {
  display: grid;
  grid-template-columns: 10fr;
}


.expand__p_regular {
  margin-top: 10px;
  font-size: 16px;
  line-height: 140%;
}


.expand__ul_decor {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.expand__ul_decor li {

  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  line-height: 140%;
  line-height: 130%;
  margin-bottom: 19px;


}

.expand__ul_decor li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url('../img/icons/academy.svg') no-repeat center / contain;
  margin-top: 2px;
}

.relative_block {
  position: relative;
}

.more_button {

  position: absolute;
  bottom: 0;
  border: none;
  padding: 10px;
  border-radius: 20px;
  width: 100%;
  margin-left: -40px;
  margin-right: -40px;



  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(5px) saturate(180%);
}

.expand_div--expanded+.more_button {
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.7s ease;
}

.self-end {
  justify-self: end;
}






.callback_bottom-right-form {
  max-width: 470px;
  padding: 36px 46px;
  /* background-color: var(--bg-color); */
  border-radius: 36px;
  /* background: #F1F0EF; */
}


.callback_bottom-title {

  margin-top: 40px;
  font-size: 39px;
  line-height: 120%;
  color: white;
  font-weight: 600;

}


.callback_bottom {
  margin-top: 40px;
}

.callback_bottom-container {
  display: flex;
  justify-content: space-between;
}




/*Footer*/
.footer {
  background: #333333;
  height: 247px;
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 40px;
  padding-top: 60px;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.footer__logo-wrapper {
  width: 100%;
}

.footer_logo {
  min-width: 150px;
}

.legal {
  /* margin-top: 10px; */
  display: flex;
  gap: 20px;
}

.footer__company {
  margin-top: 10px;
  color: white;
  font-size: 14px;
  line-height: 140%;
  font-weight: 200;

}

.legal_link {
  font-weight: 200;
  color: white;
  text-decoration: underline;
  font-size: 14px;
  line-height: 140%;
}


.footer__social {
  display: flex;
}

.footer__social-imgwrapper {
  width: 100%;
  height: 100%;
}

.footer__social-img {
  width: 40px;
  height: 40px;
}

.footer__social {
  display: flex;
  gap: 10px;
}


.callback_bottom__form-note{
  color: white;
  font-weight: 300;
}

.callback_bottom__checkbox__custom{
  border: 1px solid #fff;
}

.callback_bottom__checkbox__custom::after{
  color: white;
  border: 1px solid #fff;
  border-width: 0 2px 2px 0;
}

.callback__bottom_checkbox-label a {
  color: #000;
}


/*================ < 1200 ===============================================*/
@media (width<1200px) {
  .hero-image-wrapper {
    display: none;
  }

  .hero-container {
    gap: 7%;
  }

}


/*================ < 950 ===============================================*/
@media (width<950px) {

  .price__plans {
    flex-wrap: wrap;
  }


  .plan {
    width: 100%;
  }

  .video_text {
    flex-wrap: wrap;
  }

  .video-block {
    width: 100%;
  }
}



/*================ < 830 ===============================================*/
@media (width<830px) {
  .hero-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    /* padding: 0 15px; */
    padding: 0px 15px 0px 15px;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* gap: 15px; */
  }

  .hero-left-content {
    width: 100%;
    gap: 20px;
  }

  .hero-button {
    width: 100%;
  }

  .hero-link {
    width: 100%;
  }

  .hero-right-form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .prov {
    overflow: hidden;
    display: none;
  }

  .header {
    position: static;
    background: none;
    background-color: var(--main-background);
  }

  .header-menu {
    display: none;
  }

  .header-action {
    display: none;
  }

  .header-action--mobile {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header__phone--mobile {
    display: block;
    font-weight: 500;
    font-size: 14px;
  }

  .header__burger-menu {
    display: block;
    background: none;
    border: none;

  }




  /*callback_bottom*/
  .callback_bottom-container {
    flex-wrap: wrap;
  }

  .callback_bottom-right-form {
    width: 100%;
    max-width: 100%;
  }

}


/*================ < 700 ===============================================*/
@media (width<700px) {
  .hero-image-wrapper--mobile {
    /* display: none; */
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  .hero-image-wrapper--mobile img {
    margin: 0 auto;
  }


  .actual__image-wrapper {
    display: none;
  }

  .actual__text {
    width: 100%;
  }

  .price__plans {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 16px;
    gap: 16px;
  }

  .plan {
    flex: 0 0 95%;
    scroll-snap-align: center;
  }

  .price__title {
    justify-content: center;
    flex-direction: column;
    gap: 30px;
  }

  .price__tumbler {
    width: 100%;
    max-width: 342px;
  }

  .h2{
    font-size: 24px;
    text-align: center;
  }



}


/*================ < 550 мобилка ===============================================*/
@media(width<550px) {
  .actual__wrapper {
    border: none;
  }

  .benefits {
    border: none;
  }

  .callback_bottom-right-form {
    padding: 0;
  }

  .actual__wrapper {
    padding: 15px;
  }

  .price__wrapper {
    padding: 48px 0px;
    margin-top: 20px;

  }



  .benefits {
    padding: 0px;
  }

  .hero-image-wrapper--mobile {
    margin: 20px auto 0;
  }

  /* .hero-image-wrapper--mobile img{
    max-width: 75%;
  } */

  .hero-right-form {
    max-width: none;
    width: auto;
    margin: 0 -15px -30px -15px;
  }

  .hero-button {
    margin-top: 10px;
  }


  .main__form-checkbox-label {
    padding-left: 40px;
  }

  .checkbox__custom {
    width: 30px;
    height: 30px;
    border: 1px solid var(--main-background);
    top: 50%;
    background-repeat: 4px;
  }

  .checkbox__custom::after {
    left: 7px;
    top: 0px;
    width: 15px;
    height: 20px;
  }

  .callback__inner {
    padding: 15px;
  }

  .actual__flexwrap {
    flex-wrap: wrap;
  }

  .actual__image-wrapper {
    display: block;
    width: 100%;
  }

  .actual__button--mobile {
    font-size: 18px;
    margin-top: 15px;
    background: #FFCC00;
    color: #222222;
    /* width: 369px; */
    width: 100%;
    height: 56px;
    text-align: center;
    display: block;
    padding: 16px;
    border-radius: 6px;
    font-weight: 500;
  }



  /*Шрифты*/
  .hero-title {
    font-size: 32px;
  }

  .main__form--title {
    text-align: center;
  }

  .main__form--text {
    text-align: center;
  }

  .hero-text {
    font-size: 16px;
    font-weight: 300;
  }

  .h2 {
    font-size: 24px;
    text-align: center;
  }

  .callback__title {
    text-align: center;
    font-size: 16px;
  }

  .callback_bottom-title {

    margin-top: 40px;
    font-size: 24px;
    line-height: 130%;
    color: white;
    font-weight: 600;
    text-align: center;

  }

  .callback_bottom__form-note {
    color: white;
    font-weight: 300;

  }

  .callback__bottom_checkbox-label {
    margin-bottom: 30px;
  }

  .callback__bottom_checkbox-label a {
    color: black;
  }

  .callback_bottom__checkbox__custom {
    border: 1px solid white;
  }

  .callback_bottom__checkbox__custom::after {
    color: white;
    border: 1px solid white;
    border-width: 0 2px 2px 0;
  }



  .footer__wrapper {
    padding: 0;
    padding-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .legal {
    flex-wrap: wrap;
    gap: 0;
  }

  .footer_left {
    gap: 15px;
  }

  .text-area{
    margin-top: 20px;
  }

  .ul-lightning li{
    margin-bottom: 12px;
  }

  .nopadding-side-mob{
    padding-left: 0;
    padding-right: 0;
  }

  .price__wrapper{
    border-radius: 0;
  }

  .price__plans{
    margin-top: 30px;
  }

  .plan__button{
    font-size: 18px;
  }

}




/*Стили для callback message*/

.callback__message {
  display: none;
  margin-top: 14px;
  margin-bottom: 14px;
}

.callback__message--visible {
  display: block;
}

.callback__message--title {
  font-size: 24px;
  width: 70%;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  /* 31.2px */
}

.callback__success--footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  align-items: center;
  padding-right: 64px;
}

.callback__button--success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  /* background-color: var(--callback-button-bg-color); */
}

@media (max-width:1024px) {
  .callback__success--footer {
    padding-right: 0px;
  }
}

@media (max-width: 576px) {
  .callback__button--success {
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
  }

  .callback__message--title {
    width: 100%;
  }

  .callback__success--footer {
    display: block;
    padding-right: 0px;
  }
}

.callback__message--success{
  font-size: 20px;
  color: #004216;
}

.callback__message--error {
  font-size: 20px;
  color: #dc291e;
}

.footer__callback__upper-left--hidden {
  display: none;
}


.callback__form--hidden {
  display: none;
}
/*Стили для callback message*/


.hero-right-form-success{
  display: none;
}

.hero-right-form-hidden{
  display: none;
}

.hero-right-form-success--visible{
  display: block;
}


/*Временная модалка*/
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

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

.success-modal__content {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  line-height: 1.4;
  color: #333;
}

@media (max-width: 768px) {
  .success-modal__content {
    margin: 20px;
    padding: 25px;
    font-size: 15px;
  }
}




/*Новый раскрывающийся блок*/
.newexp {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.newexp__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.newexp__header:hover {
  background: #f8f9fa;
}

.newexp__toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.newexp__content {
  max-height: 0;
  overflow: hidden;
  background: #f8f9fa;
  transform: translateY(-8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newexp__content.active {
  max-height: 1200px; 
  transform: translateY(0);
  padding: 0 24px 24px;
}



.newexp__content.active .categories__arrow {
  transform: rotate(180deg); 
}



.header-ico img{
  width: 26px;
}




/*Callback внутри секций*/
.main_info__callback{
  background: #E1C3FF;
  color: #222;
  min-height: 227px;
  display: flex;
  /* padding: 51px; */
  margin: 50px -51px -51px -51px;
  border-radius: 36px;
  justify-content: space-between;
  align-items: center;
}



.main_info__callback__inner {
  padding: 50px;
}


.main_info__callback__title {
  font-weight: 500;
  font-size: 22px;
  line-height: 140%;
  color: #222;
  max-width: 1000px;
  /* padding-bottom: 51px; */
}

.main_info__callback__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.main_info__callback__button {
  border: none;

  background: var(--main-background);
  color: #fff;
  /* width: 308px; */
  height: 56px;
  text-align: center;
  font-size: 18px;

  padding: 17px;
  border-radius: 6px;
  font-weight: 400;
}

.main_info__callback__button:hover{
  background: var(--alternate-button-hover);
}

.main_info__callback__upper {
  display: grid;
  /* grid-template-columns: repeat(4, minmax(100px, 1fr)); */
  grid-template-columns: repeat(3, 1fr) 370px;
  gap: 12px;
  justify-content: space-between;
}



@media(width<1270px){
  .main_info__callback__upper{
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }
}

.main_info__callback__lower {
  display: flex;
  justify-content: space-between;
}


.main_info__callback__checkbox {

  font-size: 11px;
  font-weight: 400;
  line-height: 120%;
}

.main_info__callback__input {
  border: var(--border-default);
  height: 56px;
  border-radius: 6px;
  padding: 16px 24px;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
}

.main_info__callback__input::placeholder {
  color: #a7a9ac;
}



@media (max-width:770px) {

  .feedback {
    padding-bottom: 32px;
  }

  .main_info__callback__title {
    font-size: 22px;
    line-height: 120%;
    padding-bottom: 16px;
    font-weight: 400;
  }

  .main_info__callback__upper {
    grid-template-columns: repeat(1, minmax(100px, 1fr));
    gap: 12px;
  }

  .main_info__callback__lower {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .main_info__callback {
    padding: 24px 0px;
  }
}


.main_info__callback__checkbox_custom {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid #222;

  transform: translateY(-50%);
}


.white-text {
  color: #222;
}

.main_info__callback__checkbox_custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #222;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__button input:checked+.main_info__callback__checkbox_custom::after {
  display: block;
}

.main_info__callback__message {
  display: none;
  margin-top: 14px;
  margin-bottom: 14px;
}

.main_info__callback__message--visible {
  display: block;
}

.main_info__callback__message--title {
  font-size: 24px;
  width: 70%;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  /* 31.2px */
}

.main_info__callback__success--footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  align-items: center;
  padding-right: 64px;
}

.main_info__callback__button--success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  /* background-color: var(--main_info__callback-button-bg-color); */
}


.grey_section{
  background: #EDEDED;
  margin-top: 50px;
}

.grey_section__wrapper{
  padding: 50px;
}

.authors_div{
  padding: 0px 50px 0px 50px;
}

@media (max-width:1024px) {
  .main_info__callback__success--footer {
    padding-right: 0px;
  }
}

@media (max-width: 576px) {
  .main_info__callback__button--success {
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
  }

  .main_info__callback__message--title {
    width: 100%;
  }

  .main_info__callback__success--footer {
    display: block;
    padding-right: 0px;
  }

  .grey_section__wrapper{
    padding: 15px;
  } 
}

.main_info__callback__message--success{
  font-size: 20px;
  color: #004216;
}

.main_info__callback__message--error {
  font-size: 20px;
  color: #dc291e;
}



.main_info_hlist{
  display: flex;
  flex-direction: column;
  gap: 15px;

}

.main_info_hlist__li{
  display: flex;
  gap: 13px;

  
}

.main_info_hlist__img{
  width: 36px;
  height: 36px;
}


.main_info_hlist__text{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.main_info_hlist__header{
  font-size: 16px;
  line-height: 140%;
  font-weight: 700;
}

.main_info_hlist__text{
  font-size: 16px;
  line-height: 140%;
  font-weight: 400;
}



