:root{
  --white: #F6F6F6;
  --black: #1A1A1A;
  --purple-light: #B5BDEB;
  --purple-dark: #9FA6E6;
  --purple-accent: #8188EC;
  --bg-dark: #00031C;

  --container-max: 1440px;
  --pad-desktop: 80px;
  --pad-mobile: 20px;

  --header-h-desktop: 92px;
  --header-h-mobile: 72px;

  --font-ui: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: "Marcellus", serif;
  --font-script: "Meie Script", cursive;

  --ff-heading: "Marcellus", serif;
  --ff-script: "Meie Script", cursive;
  --ff-body: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --h1-d-size: 82px;
  --h1-d-lh: 0.94;

  --h2-d-size: 56px;
  --h2-d-lh: 1;

  --h3-d-size: 40px;
  --h3-d-lh: 0.8;

  --h3-script-d-size: 62px;
  --h3-script-d-lh: 0.8;

  --h4-script-d-size: 34px;
  --h4-script-d-lh: 0.84;

  --btn-d-size: 24px;
  --btn-d-lh: 1.25;

  --sub-d-size: 20px;
  --sub-d-lh: 1.25;

  --ital-d-size: 28px;
  --ital-d-lh: 1.25;
  --ital-d-ls: -0.05em;
  --ital-fs: italic;
  --text-d-size: 18px;
  --text-d-lh: 1.25;
  --text-d-ls: -0.05em;

  --small-d-size: 16px;
  --small-d-lh: 1.25;

  --h1-m-size: 40px;
  --h1-m-lh: 0.94;

  --h2-m-size: 40px;
  --h2-m-lh: 0.8;

  --h3-m-size: 28px;
  --h3-m-lh: 1;

  --h3-script-m-size: 36px;
  --h3-script-m-lh: 1;

  --btn-m-size: 20px;
  --btn-m-lh: 1.25;

  --ital-m-size: 20px;
  --ital-m-lh: 1.25;
  --ital-m-ls: -0.05em;

  --text-m-size: 16px;
  --text-m-lh: 1.16;
  --text-m-ls: -0.02em;

  --small-m-size: 12px;
  --small-m-lh: 1.25;
  
  --cut-a: 24px;
  --cut-b: 18px;
  --stroke:2px
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--white);
  font-family: var(--font-ui);
  color: var(--black);
}

b, strong {
  font-weight: 500 !important;
}

.page{ padding: 0; }

/* ---------- HEADER ---------- */
.header{
  background: var(--bg-dark);
}

.header__container{
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-h-desktop);
  padding: 0 var(--pad-desktop);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: 100px;
  height: 100px;
}

.header__logo-img{
  display: block;
  width: 100px;
  height: auto;
}

.header__nav{
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__link{
  position: relative;
  font-family: "Raleway", var(--font-ui);
  font-size: var(--sub-d-size);
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  padding-bottom: 6px;
  white-space: nowrap;
}

.nav__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--purple-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
}

.nav__link:hover{ opacity: 1; }
.nav__link:hover::after{ transform: scaleX(1); opacity: 1; }

/* ---------- SVG BUTTON ---------- */
.btn-svg{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 345px;
  height: 62px;

  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  user-select: none;

  transition: transform .12s ease, opacity .12s ease;
}

.reserve__btn{
  width: 302px;
  height: 62px;
}

.btn-svg__shape{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.btn-svg__text{
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  pointer-events: none;
}

.btn-svg:hover{ transform: translateY(-1px); }
.btn-svg:hover .btn-svg__shape path{ stroke: var(--purple-accent); }
.btn-svg:active{ transform: translateY(0); opacity: 0.9; }

.header__action{
  display: flex;
  align-items: center;
}

/* Burger hidden on desktop */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

/* ---------- MOBILE OVERLAY MENU ---------- */
.overlay{
  position: fixed;
  inset: 0;
  background: #00031C ;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .35s ease;
  pointer-events: none;
}

.overlay.is-open{
  transform: translateX(0);
  pointer-events: auto;
}

.overlay__panel{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.overlay.is-open .overlay__panel{
  transform: translateX(0);
}

.overlay__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 981px){
  .burger{
    display: none;
  }
}

.overlay__logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.overlay__logo-img{
  display: block;
  width: 80px;
  height: auto;
}

.overlay__close{
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}
.overlay__close:hover{ opacity: 1; }

.overlay__nav{
  width: 203px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.overlay__link{
  position: relative;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
  padding-bottom: 6px;
}

.overlay__link:hover{ opacity: 1; }

.overlay__link.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  opacity: 0.9;
}

.overlay__actions{
  margin-top: auto;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
}

/* mobile button text */
.btn-svg--mobile{
  width: 335px; 
  max-width: 100%;
}
.btn-svg__text--mobile{
  font-size: 20px;
}

/* ---------- HERO (edge-to-edge, img width:100% height:auto) ---------- */
.hero{
  position: relative;
  width: 100%;
}

.hero__media{
  position: relative;
  width: 100%;
}

.hero__img{
  display: block;
  width: 100%;
  height: 735px;
  height: auto;
}

/* По умолчанию desktop */
.hero__img--mob{ display: none; }
.hero__img--desk{ display: block; }

/* На мобиле показываем hero.jpg */
@media (max-width: 900px){
  .hero__img--desk{ display: none; }
  .hero__img--mob{ display: block; }
}


.hero__shadow{
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  pointer-events: none;
}

/* content overlay */
.hero__content{
  position: absolute;
  inset: 0;
  z-index: 2;

  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--pad-desktop) 60px;

  display: flex;
  flex-direction: column;
  text-align: center
}

.hero__video{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  text-decoration: none;
  color: var(--white);
  opacity: 0.9;
}
.hero__video:hover{ opacity: 1; }

.hero__video-text{
  font-family: var(--font-ui);
  font-size: var(--small-d-size);
  line-height: 1.25;
}

.hero__block{
  margin: auto 0;
  max-width: none;
}

.hero__top{
  display: grid;
  grid-template-columns: max-content 360px;
  column-gap: 18px;
  align-items: start;

  width: fit-content;
  margin: 0 auto;
}


.hero__title{
  margin: 0;
  min-width: 0;
  color: var(--purple-light);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 82px;
  line-height: 0.94;
}

.hero__effortless{
  color: var(--purple-light);
  font-family: var(--font-script);
}

.hero__title-main{ display: block; }
.hero__title-script{
  font-family: var(--font-script);
  font-weight: 400;
}

.hero__aside{
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: 16px;
  margin-top: 18px;
}

.hero__divider{
  width: 2px;
  height: 120px;
  background: rgba(159, 166, 230, 1);
}

.hero__aside-text{
  margin: 0;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: var(--btn-d-size);
  line-height: 1.25;
  opacity: 0.9;
  width: fit-content;
}
.hero__aside-text strong{ font-weight: 600; opacity: 1; }

.hero__subtitle{
  margin: 26px auto 0;
  padding-top: 100px;
  text-align: center;
  max-width: 720px;
  color: rgba(246, 246, 246, 0.85);
  font-family: var(--font-ui);
  font-size: var(--sub-d-size);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.hero__aside-mob{ display: none; }

.hero__actions{
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.hero__btn{
  width: 420px;
  height: 62px;
}

.about{
  background: var(--white);
  color: var(--black);
}

.about__wrap{
  max-width: 1440px;
  margin: 0;
  padding: 0 5%;
  padding-right:0 !important;
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 564px);
  column-gap: clamp(40px, 4vw, 140px);
  align-items: start;
}

.about__text{
  padding-right: 100px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about__title{
  font-family: var(--font-heading);
  font-size: 72px;
  line-height: 62%;
  color: var(--purple-light);
  margin: 60px 0 24px;
  white-space: nowrap;
}

.about__dash{
  color: var(--purple-dark);
}

.about__lead{
  font-size: var(--ital-d-size);
  font-style: italic;
  margin: 30px 0 32px 0;
  line-height: 125%;
  padding-right: 125px;
  letter-spacing: -0.05em;
}

.about__body p{
  font-size: 18px;
  line-height: 125%;
  color: #1A1A1A;
  font-weight: 300;
  margin: 0 0 12px;
}

.about__btn{
  margin-top: 40px;
  width: 381px;
  height: 62px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.about__btn svg{
  position: absolute;
  inset: 0;
  padding-left: 20px;
}

.about__btn svg path{
  fill: var(--purple-dark);
  transition: fill .25s ease;
}

.about__btn:hover svg path{
  fill: var(--purple-light);
}


.about__btn span{
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--btn-d-size);
  color: var(--white);
  padding-bottom: 10px;
}

.about__media{
  position: relative;
  width: 564px;
  height: 705px;
}

.about__img{
  position: absolute;
}

.about__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__img--couple{
  right: 0;
  top: 0;
  width: 564px ;
  height: 705px;
  filter: grayscale(1);
}

.about__img--portrait{
  left: 0;
  top: 190px;
  width: 238px;
  height: 367px;
  transform: translateX(-50%);
}

.benefits{
  background: var(--white);
  color: var(--black);
  padding: 80px 0 60px;
}

.benefits__container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

/* SVG вырубаем, чтобы не мешал */
.benefits__frame-svg{
  display: none !important;
}

.benefits__frame{
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 195px;
  margin: 0 auto;
  overflow: hidden;

  clip-path: polygon(
    var(--cut-a) 0,
    100% 0,
    100% calc(100% - var(--cut-b)),
    calc(100% - var(--cut-a)) 100%,
    0 100%,
    0 var(--cut-b)
  );
}

/* outer stroke */
.benefits__frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
  pointer-events: none;
  z-index: 0;

  clip-path: polygon(
    var(--cut-a) 0,
    100% 0,
    100% calc(100% - var(--cut-b)),
    calc(100% - var(--cut-a)) 100%,
    0 100%,
    0 var(--cut-b)
  );
}

/* inner fill */
.benefits__frame::after{
  content: "";
  position: absolute;
  inset: var(--stroke);
  background: var(--white);
  pointer-events: none;
  z-index: 1;

  clip-path: polygon(
    var(--cut-a) 0,
    100% 0,
    100% calc(100% - var(--cut-b)),
    calc(100% - var(--cut-a)) 100%,
    0 100%,
    0 var(--cut-b)
  );
}

.benefits__grid{
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.benefit{
  height: 100%;
  display: grid;
  place-items: center;
  row-gap: 18px;
  padding: 18px 24px;
  text-align: center;
}

.benefit__icon svg{
  width: 44px;
  height: 44px;
  display: block;
}

.benefit__text{
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-d-size);
  line-height: var(--text-d-lh);
  letter-spacing: var(--text-d-ls);
  color: var(--black);
}

.benefits__dividers{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.benefits__divider{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #B8BDEB;
  opacity: 0.9;
}

.benefits__divider--1{
  left: calc(100% / 3);
}

.benefits__divider--2{
  left: calc(100% / 3 * 2);
}

.benefits__caption{
  margin: 60px auto 0;
  max-width: 1280px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 34px;
  line-height: var(--h3-d-lh);
  color: var(--purple-light);
  text-align: center;
  white-space: nowrap;
}

.benefits__script{
  font-family: var(--font-script);
  font-size: var(--h3-script-d-size);
  line-height: var(--h3-script-d-lh);
  color: var(--purple-light);
}


.login-page{
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
}

.login-page .login{
  max-height: 100%;
  display: grid;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-page .login__form{
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
}

.login-page .login__back{
  text-decoration: none;
  color: var(--black);
  font-size: var(--btn-d-size);
  margin-bottom: 60px;
}

.login-page .login__content{
  margin-top: 100px;
}

.login-page .login__title{
  font-family: var(--font-heading);
  font-size: var(--h2-d-size);
  line-height: var(--h2-d-lh);
  font-size: 40px;
  margin: 0 0 8px;
  font-weight: 400;
}

.login-page .login__subtitle{
  margin: 0 0 32px;
  padding-top: 20px;
  font-size: var(--btn-d-size);
  font-family: var(--font-ui);
  font-weight: 500;
}

.login-page .login__fields{
  display: flex;
  flex-direction: column;
}

.login-page .login__label{
 text-align: left;
 font-size: var(--text-d-size);
 display: flex;
 flex-direction: column;
 gap: 6px;
 position: relative;
 font-family: var(--font-ui);
 font-weight: 400;
}

.login-page .login__input{
  height: 42px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--black);
  outline: none;
}

.login-page .login__input:focus{
  border-color: rgba(159, 166, 230, 0.9);
}

.login-page .login__password-tools{
  position: absolute;
  right: 0;
  top: 0;
  font-size: 12px;
}

.login-page .login__hide{
  border: 0;
  position: relative;
  top: -1;
  background: none;
  cursor: pointer;
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 0;
}

.login-page .login__lost{
  font-size: var(--text-d-size);
  text-align: right;
  color: var(--black);
  text-decoration: underline;
  opacity: 0.85;
}

.login-page .login__lost:hover{
  opacity: 1;
}

.login-page .login__btn{
  margin-top: 10px;
  width: 263px;
  height: 62px;
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.login-page .login__btn span{
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.25;
  color: var(--white);
  font-weight: 400;
}

.login-page .login__btn-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.login-page .login__btn-svg path{
  fill: var(--purple-dark);
  transition: fill 0.25s ease;
}

.login-page .login__btn:hover .login__btn-svg path{
  fill: var(--purple-light);
}

.login-page .login__btn-svg--mob{
  display: none;
}

.login-page .login__note{
  margin-top: 120px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(26, 26, 26, 0.55);
  font-family: var(--font-ui);
  font-weight: 400;
}

.login-page .login__visual{
  position: relative;
  overflow: hidden;
}


.login-page .login__visual > img{
  width: 100%;
  object-fit: cover;
}

.login__logo img {
  width: 100%;
  min-height: 0;
  object-fit: contain;
}


.login-page .login__overlay{
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.login-page .login__visual-text{
  position: absolute;
  inset: 0;
  font-size: var(--h2-d-size);
  line-height: var(--h2-d-lh);
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--purple-light);
  pointer-events: none;
}


.login-page .login__visual-title{
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 0.95;
  margin: 0;
  font-weight: 400;
}

.login-page .login__visual-title span{
  font-family: var(--font-script);
  font-weight: 400;
}

.login-page .login__logo{
  position: absolute;
  top: 10px;
  right: 40px;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--purple-light);
  font-weight: 400;
}

.login-page .login__password-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--black);
  margin-bottom: 6px;
}

.login__toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}


.login-page .login__toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(26,26,26,.55);
}

.login-page .login__toggle-icon{
  width: 18px;
  height: 18px;
  display: block;
}

.login-page .login__toggle span{
  position: relative;
  top: -1px;
}

.course{
  background: url(../img/course-bg.jpg) no-repeat center/cover;
  color: var(--white);
  padding: 80px 0 90px;
}

.course__container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.course__panel{
  background: var(--white);
  padding: 44px 48px 52px;
  max-width: 1180px;
  margin: 0 auto;
}

.course__title{
  margin: 0 0 36px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--h2-d-size);
  line-height: var(--h2-d-lh);
  letter-spacing: -0.05em;
  color: var(--purple-light);
}

.course__title--panel{
  text-align: center;
  margin: 0 0 40px;
  color: var(--purple-light);
}

.course__title-script{
  font-family: var(--font-script);
  font-weight: 400;
}

.course__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.course-card-wrap{
  position: relative;
}

.course-card-wrap--featured{
  position: relative;
}

.course-card{
  position: relative;
  color: var(--black);
}

.course-card__content{
  position: relative;
  z-index: 2;
  padding: 30px 10px 24px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  height: 100%;
}

.course-card__name{
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--h4-script-d-size);
  line-height: var(--h4-script-d-lh);
  color: var(--black);
  text-align: center;
  white-space: nowrap;
}

.course-card__name--script{
  font-family: var(--font-script);
}

.course-card__desc{
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-d-size);
  line-height: var(--text-d-lh);
  letter-spacing: var(--text-d-ls);
  color: rgba(26, 26, 26, 0.85);
}

.course-card__list{
  list-style: none;
  margin: 0 0 14px;
  padding-left: 18px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-d-size);
  line-height: var(--text-d-lh);
  letter-spacing: var(--text-d-ls);
  color: rgba(26, 26, 26, 0.88);
}

.course-card__list li{
  margin: 0 0 10px;
  position: relative;
  padding-left: 32px;
}

.course-card__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em; /* выравниваем по тексту */
  width: 24px;
  height: 24px;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 0 12.044 6.61342 14.7153 9.28471C17.3866 11.956 24 12 24 12C24 12 17.3866 12.044 14.7153 14.7153C12.044 17.3866 12 24 12 24C12 24 11.956 17.3866 9.28471 14.7153C6.61342 12.044 0 12 0 12C0 12 6.61342 11.956 9.28471 9.28471C11.956 6.61342 12 0 12 0Z' fill='%23B8BDEB'/%3E%3C/svg%3E")
  no-repeat center / contain;
}

.course-card__list li:last-child{ margin-bottom: 0; }

.course-card__note{
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--small-d-size);
  line-height: var(--small-d-lh);
  letter-spacing: -0.02em;
  color: rgba(26, 26, 26, 0.65);
}

.course-card__bottom{
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.course-card__price{
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: var(--purple-accent);
}

.course-card--featured{
  position: relative;
}

.course-card--featured::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
  clip-path: polygon(
    24px 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 24px) 100%,
    0 100%,
    0 18px
  );
  z-index: 0;
  pointer-events: none;
}

.course-card--featured::after{
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--white);
  clip-path: polygon(
    24px 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 24px) 100%,
    0 100%,
    0 18px
  );
  z-index: 1;
  pointer-events: none;
}

.course-card__badge{
  position: absolute;
  top: -12px;
  right: -25px;
  height: 27px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.course-card__badge::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 10px) 100%,
    0 100%,
    0 8px
  );
  z-index: 0;
}

.course-card__badge::after{
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--purple-light);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 10px) 100%,
    0 100%,
    0 8px
  );
  z-index: 1;
}

.course-card__badge-text{
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}


.btn-frame{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 295px;
  height: 53px;
  padding: 0 24px;
  text-decoration: none;
  background: transparent;
}

.btn-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
  clip-path: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 18px) 100%,
    0 100%,
    0 14px
  );
  z-index: 0;
}

.btn-frame::after{
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--white);
  clip-path: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 18px) 100%,
    0 100%,
    0 14px
  );
  z-index: 1;
  transition: background .2s ease;
}

.btn-frame-featured::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
  clip-path: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 18px) 100%,
    0 100%,
    0 14px
  );
  z-index: 0;
}
.btn-frame-featured::after{
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--purple-dark);
  clip-path: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 18px) 100%,
    0 100%,
    0 14px
  );
  z-index: 1;
  transition: background .2s ease;
}

.btn-frame-featured:hover::after{
  background: var(--purple-light);
}

.btn-frame__text-most{
  color: var(--white);
}


.btn-frame-featured:hover .btn-frame__text-most{
  color: var(--black);
}


.btn-frame:hover::after{
  background: var(--purple-light);
  
}

.btn-frame__text,
.btn-frame__text-most{
  position: relative;
  z-index: 2;
  font-family: "Marcellus", serif;
  font-size: 22px;
  color: var(--purple-dark);
  line-height: 1;
}

.btn-frame__text{
  color: var(--black);
}

.btn-frame:hover .btn-frame__text{
  color: var(--white);
}

.btn-frame__text-most{
  color: var(--white);
}


@media (max-width: 1200px){
  .benefits__caption {
    font-size: 20px;
  }
  .about__body p{
    padding-right: 80px;
  }
  .btn-frame{
    max-width: 260px;
    height: 50px;
  }

  .btn-frame__text,
  .btn-frame__text-most{
    font-size: 18px;
  }
}

@media (max-width: 980px){

  .hero__top {
    width: 100%;
    display: flex;
    column-gap: 18px;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
  }

  .login-page .login__content{
    text-align: center;
  }
  .course{
    padding: 52px 0 64px;
  }

  .course__container{
    padding: 0 var(--pad-mobile);
  }

  .course__panel{
    background: transparent;
    padding: 0;
    max-width: none;
    margin: 0;
  }

  .course__title{
    margin: 0 0 22px;
    font-size: var(--h2-m-size);
    line-height: var(--h2-m-lh);
    letter-spacing: -0.02em;
  }
  .open-hero__text p {
    margin-bottom: 0;
}
  @media  (max-width: 480px){
        .open-hero__text {
        font-size: 10px!important;
        width: 160px!important;
    }
    .course__title--panel{

      margin: 0 0 22px;
      color: var(--purple-light);
                  text-align: left;
                              margin-left: 15%;
    }

    .course__title-script{
      display: block;
      line-height: 1.5;
      margin-left: 30%;
                  font-family: var(--font-heading);
    }
  }
  .course__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-card{
    position: relative;
    padding: 26px 22px 22px;
  }

  .course-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: var(--purple-dark);
    clip-path: polygon(
      24px 0,
      100% 0,
      100% calc(100% - 18px),
      calc(100% - 24px) 100%,
      0 100%,
      0 18px
    );
    pointer-events: none;
    z-index: 0;
  }

  .course-card::after{
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--white);
    clip-path: polygon(
      24px 0,
      100% 0,
      100% calc(100% - 18px),
      calc(100% - 24px) 100%,
      0 100%,
      0 18px
    );
    pointer-events: none;
    z-index: 1;
  }

  .course-card__content{
    min-height: 0;
    height: auto;
    padding: 0;
  }

  .course-card__name{
    font-size: var(--h3-script-m-size);
    line-height: var(--h3-script-m-lh);
  }

  .course-card__desc{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
    letter-spacing: var(--text-m-ls);
  }

  .course-card__list{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
    letter-spacing: var(--text-m-ls);
  }

  .course-card__note{
    font-size: var(--small-m-size);
    line-height: var(--small-m-lh);
    text-align: center;
  }

  .course-card__price{
    font-size: 40px;
  }

  .btn-frame{
    max-width: 100%;
    height: 46px;
  }

  .btn-frame__text,
  .btn-frame__text-most{
    font-size: var(--btn-d-size);
  }

  .course-card__badge{
    top: -15px;
    right: -15px;
    height: 24px;
    padding: 0 12px;
  }

  .course-card__badge-text{
    font-size: 12px;
  }

  .course-card--featured .course-card__content{
    padding-top: 42px;
  }
}


.guide{
  background: #ffffff;
}

.guide__container{
  margin: 0 80px;
  padding: 50px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.guide__content{
  max-width: 720px;
}

.guide__title-wrap{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.guide__title{
  margin: 0;
  font-size: var(--h2-d-size);
  max-width: 100%;
  font-weight: 400;
  color: var(--purple-light);
  font-family: var(--font-heading);
}

.guide__stars{
  position: static;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  margin-top: 6px;
}

.guide__text{
  margin-top: 24px;
  margin-bottom: 80px;
  font-size: var(--h3-d-size);
  line-height: 150%;
  color: #1E1E1E;
  max-width: 720px;
}

.guide__accent{
  font-family: var(--font-script);
  color: var(--purple-light);
  font-size: var(--h3-script-d-size);
}

/* ---------- FORM ---------- */
.guide__form{
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide__input{
  height: 52px;
  padding: 0 18px;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.guide__input::placeholder{
  color: #9A9A9A;
}

.guide__input:focus{
  border-color: #B8BDEB;
}

.guide__button{
  position: relative;
  width: 100%;
  height: 62px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.guide__button::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #9FA6E6;
  clip-path: polygon(
    7.01% 2.42%,
    99.58% 2.42%,
    99.58% 70.18%,
    96.32% 83.75%,
    92.99% 97.58%,
    0.42% 97.58%,
    0.42% 29.81%,
    3.68% 16.25%,
    7.01% 2.42%
  );
  z-index: 0;
}

/* fill (#B8BDEB) */
.guide__button::after{
  content: "";
  position: absolute;
  inset: 3px;
  background: #B8BDEB;
  clip-path: polygon(
    7.01% 2.42%,
    99.58% 2.42%,
    99.58% 70.18%,
    96.32% 83.75%,
    92.99% 97.58%,
    0.42% 97.58%,
    0.42% 29.81%,
    3.68% 16.25%,
    7.01% 2.42%
  );
  z-index: 1;
  transition: background 0.25s ease;
}

.guide__button-text{
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

/* hover */
.guide__button:hover::after{
  background: #C3C8F0;
}

/* ---------- POLICY ---------- */
.policy{
  gap: 8px;
  font-size: 12px;
  color: #6A6A6A;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.policy__checkbox{
  width: 16px;
  height: 16px;
  margin-top: 2px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #0F0F0F;
  border-radius: 4px;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform .15s ease;
}

.policy__checkbox::before{
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s ease;
}
.policy__checkbox:checked {
  background: #0F0F0F;
}

.policy__checkbox:checked::before{
  transform: rotate(-45deg) scale(1);
}

.policy:hover .policy__checkbox{
  transform: translateY(-1px);
}

.policy{
  gap: 8px;
  font-size: 12px;
  color: #6A6A6A;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.policy__checkbox2{
  width: 16px;
  height: 16px;
  margin-top: 2px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #0F0F0F;
  border-radius: 4px;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform .15s ease;
}

.policy__checkbox2::before{
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #0F0F0F;
  border-bottom: 2px solid #0F0F0F;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s ease;
}

.policy__checkbox2:checked::before{
  transform: rotate(-45deg) scale(1);
}

.policy__checkbox2:checked {
  background: #0F0F0F;
}


.guide__checkbox2:focus-visible{
  outline: 2px solid rgba(159,166,230,.6);
  outline-offset: 3px;
}

.policy-text{
  font-family: var(--ff-body);
  font-size: 11px;
  line-height: 1.35;
  color: #6E6E6E;
  text-align: left;
}

.reviews{
  background: var(--purple-light);
}

.reviews__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;

}

.reviews__top{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews__title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--h2-d-size);
  line-height: var(--h2-d-lh);
  font-weight: 400;
  color: var(--white);
  text-align: center;
}

.reviews__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.reviews__nav--prev{ left: 0; }
.reviews__nav--next{ right: 0; }

.reviews__viewport{
  margin-top: 48px;
  overflow: hidden;
}

.reviews__track{
  display: flex;
  gap: 0;
  transform: translateX(0);
  transition: transform .45s ease;
  will-change: transform;
}

.reviews__page{
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.review-card{
  position: relative;
  padding: 32px 28px 56px;
  background: #F6F6F6;
  height: 310px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(
    6% 0%,
    100% 0%,
    100% 90%,
    94% 100%,
    0% 100%,
    0% 10%
  );
  border: 2px solid #9FA6E6;
}

.review-card__name{
  height: 30px;
  font-family: var(--font-script);
  font-size: var(--h4-script-d-size);
  line-height: var(--h4-script-d-lh);
  overflow: hidden;
  font-weight: 400;
  margin: 0 0 16px;
}

.review-card__text{
  margin: 0;
  flex: 1;
  font-size: var(--text-d-size);
  line-height: 125%;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__more{
  margin-top: 20px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--purple-light);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
}


.review-card__star{
  position: absolute;
  right: 20px;
  bottom: 50px;
  transform: scale(2);
  transform-origin: center;
}

.review-card.is-open{
  height: auto;
  min-height: 260px;
}

.review-card.is-open .review-card__text{
  display: block;
  overflow: visible;
}

.review-card.is-open .review-card__more{
  display: none;
}

.reviews__dots{
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.reviews__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--purple-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.reviews__dot--active{
  background: #818BEC;
}

.faq{
  padding: 0;
}

.faq__container{
  margin: 0 ;
  padding: 0 ;
  padding-right: 80px;
}

.faq__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.faq__media{
  height: 100%;
  height: 100%;
}

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

.faq__title{
  padding-top: 50px;
  margin: 0 0 32px;
  font-family: var(--font-heading);
  font-size: var(--h2-d-size);
  color: var(--purple-light);
}

.faq-item{
  border-bottom: 1px solid #E2E2E2;
}

.faq-item__btn{
  width: 100%;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  gap: 16px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item__num{
  color: var(--purple-dark);
  font-size: var(--btn-d-size);
  font-family: var(--font-heading);
}

.faq-item__q{
  font-size: var(--btn-d-size);
  color: var(--black);
  font-family: var(--font-ui);
  font-weight: 500;
}

.faq-item__icon{
  position: relative;
  width: 30px;
  height: 30px;
}

.icon-open{
  display: none;
}

.faq-item.is-open .icon-closed{
  display: none;
}

.faq-item.is-open .icon-open{
  display: block;
}

.faq-item__panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__panel{
  max-height: 300px;
}

.faq-item__panel p{
  margin: 0 0 24px 56px;
  font-size: var(--text-d-size);
  color: var(--bg-dark);
  line-height: 1.5;
  font-family: var(--font-ui);
  font-weight: 300;
  letter-spacing: var(--text-d-ls)
}

.footer{
  background: #00031C;
  color: var(--white);
}

.footer__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.footer__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  column-gap: 48px;
  row-gap: 0;
  align-items: stretch;
  grid-template-areas:
  "head-brand head-contact head-terms"
  "body-brand body-contact body-terms"
  "foot-left  copyright    foot-right";
}

.footer__foot-left{
  grid-area: foot-left;
}

.footer__foot-right{
  grid-area: foot-right;
}

.footer__head--brand{ grid-area: head-brand; }
.footer__head--contact{ grid-area: head-contact; }
.footer__head--terms{ grid-area: head-terms; }

.footer__body--brand{ grid-area: body-brand; }
.footer__body--contact{ grid-area: body-contact; }
.footer__body--terms{ grid-area: body-terms; }

.footer__head{
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 45px;
}

.footer__brand{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  margin-left: -20px;
  transform: translate(0, 25px);v
}

.footer__logo-img{
  width: 113px;
  height: auto;
  display: block;
}

.footer__brand-text{
  font-family: var(--font-heading);
  font-size: var(--btn-d-size);
  line-height: 1.2;
}

.footer__heading{
  margin: 0;
  font-weight: 400;
}

.footer__heading--script{
  font-family: var(--font-script);
  color: var(--purple-dark);
  font-size: var(--h3-d-size);
  line-height: var(--h3-script-d-lh);
  white-space: nowrap;
  margin-left: -20px;
}

.footer__body{
  padding-bottom: 22px;
}

.footer__nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__terms{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link{
  color: var(--white);
  text-decoration: none;
  font-size: var(--sub-d-size);
  opacity: 0.9;
}

.footer__link:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer__mail{
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-size: var(--sub-d-size);
  opacity: 0.9;
}

.footer__mail:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer__copyright{
  grid-area: copyright;
  margin: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  align-self: end;
  padding-top: 8px;
  padding-bottom: 8px;
}


.course-header{
  background: #04071B;
  font-family: "Raleway", sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.course-header__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.course-header__logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  
}

.course-header__logo-img{
  display: block;
  height: 80px;
  width: auto;
}

.course-header__nav{
  display: flex;
  align-items: center;
  gap: 36px;
}

.course-header__link{
  font-family: "Work Sans", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  color: #F6F6F6;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}

.course-header__link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #F6F6F6;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.course-header__link:hover::after{
  transform: scaleX(1);
}

.course-header__burger{
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.course-header__burger-line{
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #F6F6F6;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.course-header__burger-line:nth-child(1){ top: 14px; }
.course-header__burger-line:nth-child(2){ top: 21px; }
.course-header__burger-line:nth-child(3){ top: 28px; }

.course-header__menu{
  position: fixed;
  inset: 0;
  background: #04071B;
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 1001;
  padding: 18px 20px 32px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}


.course-header__menu-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-header__menu-logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.course-header__menu-logo-img{
  height: 70px;
  width: auto;
  display: block;
}

.course-header__close{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.course-header__close-line{
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: #F6F6F6;
  border-radius: 2px;
}

.course-header__close-line:nth-child(1){
  transform: translateY(-50%) rotate(45deg);
}

.course-header__close-line:nth-child(2){
  transform: translateY(-50%) rotate(-45deg);
}

.course-header__menu-nav{
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.course-header__menu-link{
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  color: #F6F6F6;
  text-decoration: none;
  position: relative;
  padding-bottom: 8px;
}

.course-header__menu-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #F6F6F6;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.course-header__menu-link:hover::after{
  transform: scaleX(1);
}

.course-header.is-open .course-header__menu{
  transform: translateX(0);
  pointer-events: auto;
}

.course-header.is-open .course-header__burger-line:nth-child(1){
  top: 21px;
  transform: rotate(45deg);
}

.course-header.is-open .course-header__burger-line:nth-child(2){
  opacity: 0;
}

.course-header.is-open .course-header__burger-line:nth-child(3){
  top: 21px;
  transform: rotate(-45deg);
}

.contact{
  background: #F6F6F6;
  padding: 90px 24px;
}

.contact__container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr .95fr;
  gap: 80px;
  align-items: start;
}

.contact__title{
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--h2-d-size);
  line-height: var(--h2-d-lh);
  color: #B8BDEB ;
  margin: 0 0 28px 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.contact__star{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact__star svg{
  display: block;
  width: 56px;
  height: auto;
}

.contact__text{
  font-family: var(--ff-heading);
  color: var(--black);
  font-size: var(--h3-d-size);
  line-height: 150%;
}

.contact__text p{
  margin: 0;
  font-size: 32px;
  line-height: var(--h3-d-lh);
  letter-spacing: 0.02em;
  padding-bottom: 20px;
}

.contact__text br{
  content: "";
  display: block;
  margin-bottom: 12px;
}


.contact__accent{
  color: var(--purple-light);
}

.contact__form{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__field{
  display: block;
}

.contact__input,
.contact__textarea{
  width: 100%;
  border: 1px solid #D7D7D7;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: #0B0E1F;
  outline: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder{
  color: #8B8B8B;
}

.contact__input:focus,
.contact__textarea:focus{
  border-color: #9FA6E6;
  box-shadow: 0 0 0 3px rgba(159,166,230,.25);
}

.contact__textarea{
  min-height: 150px;
  resize: vertical;
}

.contact__btn{
  position: relative;
  width: 320px;
  height: 62px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  align-self: flex-end;
}

.contact__btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #9FA6E6;
  clip-path: polygon(
    7.01% 2.42%,
    99.58% 2.42%,
    99.58% 70.18%,
    96.32% 83.75%,
    92.99% 97.58%,
    0.42% 97.58%,
    0.42% 29.81%,
    3.68% 16.25%,
    7.01% 2.42%
  );
  z-index: 0;
}

.contact__btn::after{
  content: "";
  position: absolute;
  inset: 3px;
  background: #B8BDEB;
  clip-path: polygon(
    7.01% 2.42%,
    99.58% 2.42%,
    99.58% 70.18%,
    96.32% 83.75%,
    92.99% 97.58%,
    0.42% 97.58%,
    0.42% 29.81%,
    3.68% 16.25%,
    7.01% 2.42%
  );
  z-index: 1;
  transition: background .25s ease;
}

.contact__btn-text{
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-family: "Marcellus", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.contact__btn:hover::after{
  background: #C3C8F0;
}

.account{
  background: #F6F6F6;
  padding: 80px 24px;
  font-family: "Work Sans", sans-serif;
}

.account__container{
  max-width: 1200px;
  margin: 0 200px;
}

.account__body{
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  column-gap: 72px;
  align-items: start;
}

.account__body::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 260px;
  width: 1px;
  background: rgba(159,166,230,.6);
}

.account__left{
  padding-right: 36px;
}

.account__right{
  min-width: 0;
  padding-left: 36px;
}

.account__top{
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.account__tab{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  text-align: left;
  font-family: "Marcellus", serif;
  font-size: 18px;
  line-height: 1.2;
  color: #9FA6E6;
  transition: color .2s ease, transform .2s ease;
}

.account__tab:hover:not(.is-active){
  transform: translateX(2px);
}

.account__tab.is-active{
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.account__tab::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--purple-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.account__tab:hover:not(.is-active)::after{
  transform: scaleX(1);
}

.account__tab:focus-visible::after{
  transform: scaleX(1);
}

.account__tab:focus-visible{
  outline: 2px solid rgba(159,166,230,.5);
  outline-offset: 6px;
  border-radius: 6px;
}

.account__divider{
  display: none;
  height: 1px;
  background: rgba(159,166,230,.6);
  margin: 18px 0 26px;
}

.account__panel{
  display: none;
}

.account__panel.is-active{
  display: block;
}

.account__form{
  max-width: 680px;
  text-align: center ;
}

.account__field{
  display: block;
  margin-bottom: 18px;
}

.account__label{
  display: block;
  font-size: 12px;
  color: #2D2D2D;
  margin-bottom: 8px;
  text-align: left !important;
}


.account__input{
  width: 100%;
  height: 44px;
  border: 1px solid #D7D7D7;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: #0B0E1F;
}

.account__input:focus{
  border-color: #9FA6E6;
  box-shadow: 0 0 0 3px rgba(159,166,230,.22);
}

.account__btn{
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 62px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin-top: 10px;
}

.account__btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
  clip-path: polygon(
    7.01% 2.42%,
    99.58% 2.42%,
    99.58% 70.18%,
    96.32% 83.75%,
    92.99% 97.58%,
    0.42% 97.58%,
    0.42% 29.81%,
    3.68% 16.25%,
    7.01% 2.42%
  );
  z-index: 0;
}

.account__btn::after{
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--purple-light);
  clip-path: polygon(
    7.01% 2.42%,
    99.58% 2.42%,
    99.58% 70.18%,
    96.32% 83.75%,
    92.99% 97.58%,
    0.42% 97.58%,
    0.42% 29.81%,
    3.68% 16.25%,
    7.01% 2.42%
  );
  z-index: 1;
  transition: background .25s ease, transform .15s ease, filter .15s ease;
}

.account__btn-text{
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: var(--ff-heading);
  font-size: var(--btn-d-size);
  line-height: var(--btn-d-lh);
  font-weight: 400;
}

.account__btn:hover::after{
  background: #C3C8F0;
}

.account__btn:active::after{
  transform: translateY(1px);
}

.account__btn:focus-visible{
  outline: 2px solid rgba(159,166,230,.55);
  outline-offset: 6px;
  border-radius: 10px;
}

.account__hint{
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #737373;
  max-width: 420px;
  white-space: normal;
}

.courses-pages{
  background: var(--white);
  padding: 54px 0 70px;
}

.courses-pages__container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.courses-pages__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
  align-items: start;
}

.courses-pages__card{
  position: relative;
  display: block;
  width: 535px;
  height: 627px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  background: #111;
}

.courses-pages__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.courses-pages__shadow{
  position: absolute;
  inset: 0;
  background: #1A1A1A99;
  pointer-events: none;
}

.courses-pages__content{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  padding: 18px;
}

.courses-pages__title{
  margin: 0;
  color: var(--white);
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: 72px;
  line-height: 0.9;
}

.courses-pages__btn{
  width: 307px;
  height: 73px;
}

.courses-pages__card:hover .courses-pages__btn{
  transform: translateY(-6px);
}

.courses-pages__card:active .courses-pages__btn{
  transform: translateY(-2px);
}

.open-hero{
  position: relative;
  height: 400px;
  overflow: hidden;
}

.open-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
}

.open-hero__shadow{
  position: absolute;
  inset: 0;
  background: #1A1A1A99;
  z-index: 1;
  pointer-events: none;
}

.open-hero__container{
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 80px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.open-hero__content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.open-hero__top{
  display: flex;
  grid-template-columns: auto 2px auto;
  align-items: center;
  column-gap: 42px;
  text-align: left;
}

.open-hero__title{
  margin: 0;
  font-family: var(--ff-script);
  font-size: var(--h1-d-size);
  line-height: var(--h1-d-lh);
  color: var(--purple-light);
  font-weight: 400;
  white-space: nowrap;
}

.open-hero__divider{
  width: 2px;
  height: 72px;
  background: var(--purple-light);
}

.open-hero__text{
  margin: 0;
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  max-width: 260px;
}

.open-hero__btn{
  width: 328px;
  height: 59px;
}

.open-hero__btn:hover .btn-svg__shape path{
  stroke: var(--purple-light);
}

.open-cards{
  padding: 80px 0;
  background: var(--white);
}

.open-cards__container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.open-cards__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.open-card{
  text-decoration: none;
  color: var(--black);
  border: 2px solid var(--purple-dark);
  width: 394px;
  height: 451px;
  transition: border-color .2s ease;
  position: relative;
  overflow: hidden;
  display: block;
}

.open-card:hover{
  border-color: var(--purple-light);
}

.open-card__head{
  background: var(--white);
  padding: 26px 28px;
  height: 179px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  z-index: 2;
  position: relative;
}


.open-card__title-wrap{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.open-card__title{
  font-family: var(--ff-heading);
  font-size: var(--h3-d-size);
  line-height: var(--h3-d-lh);
  color: var(--black);
}

.open-card__underline{
  width: 0;
  height: 1px;
  background: var(--purple-light);
  margin-top: 6px;
  transition: width .25s ease;
}

.open-card:hover .open-card__underline{
  width: 100%;
}

.open-card__arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

.open-card:hover .open-card__arrow{
  transform: translateX(6px);
}

.open-card__img{
  width: 100%;
  height: 279px;
  object-fit: cover;
  display: block;
}

.open-card__shadow{
  position: absolute;
  inset: 0;
  background: #1A1A1A99;
  z-index: 1;
  pointer-events: none;
}

.material{
  max-width: 100%;
  width: 100%;
  padding: 50px 80px;
  background: var(--white);
}

.material__tabs{
  display: flex;
  gap: 18px;
  align-items: flex-end;
}

.material__tab{
  border: 0;
  cursor: pointer;
  padding: 22px 46px;
  border-radius: 18px 18px 0 0;
  background: var(--purple-light);
  color: var(--white);
  font-family: var(--ff-heading);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0.95;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.material__tab:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.material__tab.is-active{
  background: var(--purple-dark);
  opacity: 1;
}

.material__panel{
  margin-top: -2px;
  width: 100%;
  background: var(--purple-dark);
  border-radius: 0 18px 18px 18px;
  padding: 40px 60px;
}

.lesson-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-card{
  background: #F6F6F6;
  height: 150px;
  width: 100%;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lesson-card__title{
  font-family: var(--ff-heading);
  font-size: var(--h3-d-size);
  line-height: 125%;
  font-weight: 400;
  color: var(--black);
}

.lesson-card__status{
  width: 210px;
  height: 60px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E6E8FF;
}

.status__svg{
  width: 45px;
  height: 45px;
}

.lesson-card__status--done{
  background: #BFE2C9;
}

.file-card{
  background: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  height: 150px;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  text-decoration: none;
}

.file-list{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-card__left{
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-card__badge{
  width: 106px;
  height: 60px;

  font-family: var(--ff-heading);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--purple-light);
  border-radius: 6px;

  font-size: 30px;
  font-weight: 500;
  color: var(--black);
}

.file-card__title{
  font-size: 40px;
  font-weight: 400;
  line-height: 125%;
  color: var(--black);
  font-family: var(--ff-heading);
}

.file-card__action{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 30px;
  color: var(--purple-light);
  white-space: nowrap;
}

.file-card:hover{
  box-shadow: 0 6px 18px rgba(26,26,26,.12);
  transform: translateY(-1px);
}

.file-card:hover .file-card__action svg path{
  stroke: var(--purple-dark);
}

.material__empty{
  background: #F6F6F6;
  border-radius: 10px;
  padding: 18px 16px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: rgba(26,26,26,.75);
}

.lesson-player{
  background: var(--white);
  padding: 42px 0 70px;
}

.lesson-player__container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.lesson-player__top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
  margin-top: 45px;
}

.lesson-player__nav{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(159, 166, 230, 0.9);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.2;
}

.lesson-player__nav--next{
  text-align: right;
}

.lesson-player__nav-sub{
  display: inline-block;
  color: var(--purple-dark);
  font-size: 14px;
}

.lesson-player__nav:hover{
  color: var(--purple-dark);
}

.lesson-player__title{
  margin: 0 0 18px;
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: 28px;
  color: var(--black);
}

.player{
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--black);
  background: var(--white);
}

.player__bg{
  position: absolute;
  inset: 0;
  background: url('../img/player-bg.jpg') center / cover no-repeat;
  filter: blur(10px);
  transform: scale(1.15);
  z-index: 0;
}

.player::after{
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s ease;
  box-shadow: inset 0 -80px 90px rgba(26,26,26,0.35);
  z-index: 1;
  pointer-events: none;
}

.player:hover::after{
  opacity: 1;
}

.player__iframe-wrap{
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.player__iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player.is-playing .player__iframe-wrap{
  opacity: 1;
  pointer-events: auto;
}

.player__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;

  opacity: 0;
  pointer-events: none;
}

.player.is-playing .player__video{
  opacity: 1;
  pointer-events: auto;
}

.player__label{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: 64px;
  color: rgba(26, 26, 26, 0.25);
  letter-spacing: -0.02em;
  z-index: 2;
  pointer-events: none;
}

.player__replay{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: opacity .18s ease, transform .18s ease;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.player__replay svg{
  width: 54px;
  height: 54px;
  display: block;
}

.player:not(.is-playing) .player__replay{
  opacity: 1;
}

.player.is-playing .player__replay{
  opacity: 0;
  pointer-events: none;
}

.player:hover{
  transform: translateY(-1px);
}

.player:hover .player__replay{
  transform: translate(-50%, -50%) scale(1);
}

.lesson-player__bottom{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 50px;
  position: relative;
}

.lesson-player__complete{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.lesson-player__checkbox{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid var(--purple-dark);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lesson-player__checkbox::after{
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease;
}

.lesson-player__checkbox:checked{
  background: var(--purple-dark);
}

.lesson-player__checkbox:checked::after{
  transform: rotate(-45deg) scale(1);
}

.lesson-player__complete-text{
  font-family: var(--ff-body);
  font-size: 16px;
  color: rgba(159, 166, 230, 0.95);
}

.lesson-player__btn{
  position: relative;
  display: block;
  width: 409px;
  height: 94px;
  margin: 0 auto;
  transition: transform .18s ease;
  text-decoration: none;
}

.lesson-player__btn .btn-svg__shape{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lesson-player__btn .btn-svg__shape path{
  stroke: var(--purple-dark);
  transition: stroke .18s ease;
}

.player_btn-text{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-family: var(--ff-heading);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.lesson-player__btn:hover{
  transform: translateY(-2px);
}

.lesson-player__btn:hover .btn-svg__shape path{
  stroke: var(--purple-light);
}


.success{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  background: var(--white);
}

.success__content{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.success__title{
  font-family: var(--ff-heading);
  font-size: var(--h2-d-size);
  font-weight: 400;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0px;
}

.success__title svg{
  flex-shrink: 0;
}

.success__text{
  font-family: var(--ff-body);
  font-size: var(--btn-d-size);
  line-height: 125%;
  color: var(--black);
  margin: 0;
  padding-bottom: 80px;
}

.success__btn{
  position: relative;
  width: 409px;
  height: 94px;
  margin: 0 auto;
  
  text-decoration: none;
}

.btn-svg__success{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.btn-svg__success path{
  fill: var(--purple-dark);
  stroke: var(--purple-dark);
  transition: fill .18s ease;
}

.success__btn:hover .btn-svg__success path{
  fill: var(--purple-light);
  stroke: var(--purple-dark);
}

.success__btn:hover{
  transform: translateY(-2px);
}

.success__btn:hover .btn-svg__text{
  color: var(--white);
}

.error404{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 24px;
}

.error404__content{
  text-align: center;
  max-width: 420px;
}

.error404__title{
  margin: 0 0 12px;
  font-family: var(--ff-heading);
  font-size: var(--h1-d-size);
  font-weight: 400;
  color: var(--black);
}

.error404__text{
  margin: 0;
  font-family: var(--ff-heading);
  font-size: 30px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.65);
}

.error404__icon{
  transition: transform .2s ease;
}

.error404__icon:hover{
  transform: translateY(-4px);
}

@media (max-width: 1440px){
  .about__img--couple{
    width: 564px ;
    height: 705px;
  }
}  

@media (max-width: 1439px){
  .open-card{
    width: 100%;
    height: 100%;
  }

  .courses-pages__card{
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 1200px){

  .reviews__container{
    padding: 100px 20px;
  }
  .about__text{
    padding-right: 0px;
    padding-left: 20px;
  }
  .about__title{
    line-height: 1;
  }
  .about__lead{
    padding-right: 80px;
  }
  .about__wrap{
    overflow: hidden;
  }
  .about__img--couple{
    height: 150%;
  }

  .open-card__title{
    font-size: 30px;
  }
}

@media (max-width: 1150px){

  .header__container{
    padding: 0;
  }

  
  .btn-svg{
    min-width: 240px;
    max-width: 292px;
    height: 62px;
  }


  .hero__aside{
    width: 250px;

  }

  .course__panel{
    padding: 33px 0px 42px;
  }

  .footer__grid{
    column-gap: 38px;
  }

}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .header__container{
    height: var(--header-h-mobile);
    padding: 0 var(--pad-mobile);
  }

  .header__nav{ display: none; }
  .header__action{ display: none; }

  .burger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero__content{
    padding: 24px var(--pad-mobile) 34px;
  }

  .hero__title{
    font-size: 40px;
    line-height: 0.94;
    text-align: center;
  }

  .hero__line{
    display: block;
    white-space: nowrap;
  }
  .hero__line--2 br{
    display: none;
  }

  .hero__block{
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .hero__aside{
  /*  display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    margin-top: 10px;
    align-items: center;*/
  }

  .hero__aside-mob{
   /* display: block;
    color: var(--white);
    font-family: var(--font-ui);
    font-size: var(--text-m-size);
    opacity: 0.9;
    width: 100%;
    text-align: center;
    line-height: 1.05;
    letter-spacing: -0.02em;*/
  }

  .hero__subtitle{
    padding-top: 50px;
    font-size: 16px;
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  .hero__actions{
    justify-content: center;
  }

  .hero__btn{
    width: 335px;
    max-width: 100%;
  }

  .btn-svg__text{
    font-size: 20px;
  }

  .btn-svg{
    width: 272px;
    height: 53px;
  }

  .reserve__btn{
    width: 260px;
    height: 53px;
  }

  .hero__video-icon{
    position: relative;
    top: -12px;
  }

  .hero__video-text{
    font-size: var(--small-m-size);
    position: relative;
    top: -12px;
  }

  .hero__video-icon svg{
    width: 52px;
    height: 52px;
  }
  
  .about__wrap{
    padding: 54px 0px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
    "title"
    "lead"
    "media"
    "text"
    "btn";
    padding: 54px 20px;
  }

  .about__media{
    width: 100%;
    height: 407px;
    margin: 40px 0;
  }

  .about__body{
    grid-area: text;
    padding-right: 20px;
    padding-left: 20px;
  }

  .about__img--couple{
    width: 326px;
    height: 407px;
    right: 0;
    top: 0;
  }

  .about__img--portrait{
    width: 196px;
    height: 303px;
    left: 0;
    top: 64px;
    transform: none;
  }

  .about__title{
    font-size: 40px;
    grid-area: title;
    margin-top: 40px;
    padding-left: 20px;
  }

  .about__lead{
    font-size: 20px;
    grid-area: lead;
    padding-right: 20px;
    padding-left: 20px;
  }

  .about__text{
    padding-right: 20px;
    padding-left: 20px;
    display: contents;
  }

  .about__body p{
    font-size: 16px;
    padding-right: 0px;
    line-height: 145%;
    letter-spacing: -0.02em;
  }

  .about__btn{
    width: 335px;
    grid-area: btn;
    justify-self: center;
  }


  

  .benefits{
    padding: 40px 0 40px;
  }

  .benefits__container{
    padding: 0 var(--pad-mobile);
  }

  .benefits__frame{
    max-width: 335px;
    height: 699px;

    clip-path: polygon(
      var(--cut-a) 0,
      100% 0,
      100% calc(100% - var(--cut-b)),
      calc(100% - var(--cut-a)) 100%,
      0 100%,
      0 var(--cut-b)
    );
  }

  .benefits__frame::before{
    clip-path: polygon(
      var(--cut-a) 0,
      100% 0,
      100% calc(100% - var(--cut-b)),
      calc(100% - var(--cut-a)) 100%,
      0 100%,
      0 var(--cut-b)
    );
  }

  .benefits__frame::after{
    clip-path: polygon(
      var(--cut-a) 0,
      100% 0,
      100% calc(100% - var(--cut-b)),
      calc(100% - var(--cut-a)) 100%,
      0 100%,
      0 var(--cut-b)
    );
  }

  .benefits__grid{
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .benefit{
    padding: 28px 24px;
    row-gap: 18px;
  }

  .benefits__divider{
    width: auto;
    height: 1px;
    left: 0;
    right: 0;
    background: #9FA6E6;
    opacity: 0.9;
    top: auto;
    bottom: auto;
  }

  .benefits__divider--1{
    top: calc(100% / 3);
  }

  .benefits__divider--2{
    top: calc(100% / 3 * 2);
  }

  .benefits__caption{
    max-width: 335px;
    font-size: 28px;
    line-height: 1;
    margin-top: 20px;
    white-space: normal;
  }

  .login-page .login{
    grid-template-columns: 1fr;
  }

  .login-page .login__visual{
    display: none;
  }

  .login-page .login__form{
    padding: 32px 20px;
  }

  .login-page .login__back{
    margin-bottom: 32px;
  }

  .login-page .login__btn{
    width: 260px;
    height: 53px;
  }

  .login-page .login__btn-svg--desk{
    display: none;
  }

  .login-page .login__btn-svg--mob{
    display: block;
  }

  .login-page .login__note{
    margin-top: 0;
  }

  .guide__container{
    flex-direction: column;
    margin: 0 20px;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
  }

  .guide__content{
    max-width: 100%;
  }

  .guide__title{
    font-size: var(--h2-m-size);
  }
  .guide__title-wrap{
    gap:  10px;
    
  }
  ;
  .guide__stars{
    width: 54px;
    height: 54px;
  }

  .guide__form{
    width: 100%;
    max-width: 520px;
  }

  .reviews__container{
    padding: 54px 20px;
  }

  .reviews__page{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  

  .faq__grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq__container{
    padding: 0;
  }

  .faq__media{
    width: 100%;
    height: clamp(360px, 90vw, 680px);
    overflow: hidden;
  }

  .faq__img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 40%;
  }

  .faq__content{
    padding: 50px 20px;
  }

  .faq__title{
    padding-top: 0;
  }

  .footer__grid{
    grid-template-columns: 1fr;
    row-gap: 18px;
    grid-template-areas:
    "head-brand"
    "body-brand"
    "head-contact"
    "body-contact"
    "head-terms"
    "body-terms"
    "copyright";
  }

  .footer__head{
    min-height: 0;
    padding-bottom: 45px;
  }

  .footer__body{
    padding-bottom: 0;
  }

  .footer__copyright{
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 18px;
  }


  .course-header__container{
    padding: 18px 20px;
  }

  .course-header__nav{
    display: none;
  }

  .course-header__burger{
    display: inline-flex;
  }

  .course-header__logo-img{
    height: 60px;
  }

  .course-header__menu-nav{
    gap: 70px;
  }

  .courses-pages__card{
    width: 100%;
    height: auto;
  }

  .contact{
    padding: 56px 20px;
  }

  .contact__container{
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact__title{
    font-size: var(--h2-m-size);
    gap: 14px;
    color: var(--purple-light);
    line-height: var(--h2-d-lh);
    justify-content: flex-start;
  }

  .contact__star svg{
    width: 48px;
  }

  .contact__text{
    font-size: 20px;
  }

  .contact__btn{
    width: 100%;
    align-self: stretch;
  }

  .contact__btn-text{
    font-size: 20px;
  }

  .account{
    padding: 56px 20px;
  }

  .account__body{
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .account__body::before{
    display: none;
  }

  .account__left{
    padding-right: 0;
  }

  .account__right{
    padding-left: 0;
    padding-right: 20px;
  }

  .account__top{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    overflow: hidden;
    padding: 0 0 6px;
  }

  .account__tab{
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    position: relative;
    padding-bottom: 6px;
  }

  .account__divider{
    display: block;
    margin: 14px 0 18px;
  }

  .account__btn{
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .account__btn-text{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
  }

  .account__container{
    margin: 0 20px;
  }

  .courses-pages{
    padding: 32px 0 54px;
  }

  .courses-pages__container{
    padding: 0 var(--pad-mobile);
  }

  .courses-pages__grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .courses-pages__title{
    font-size: 62px;
  }

  .courses-pages__btn{
    width: 272px;
    height: 53px;
  }

  .open-hero{
    height: 320px;
  }

  .open-hero__container{
    padding: 0;
  }

  .open-hero{
    height: 280px;
  }

  .open-hero__container{
    padding: 0;
  }

  .open-hero__title{
    font-size: 28px;
    line-height: 0.94;
            width: 40%;
        text-align: right;
        white-space: normal;
  }

  .open-hero__text{
    font-size: 14px;
    width: 260px;
  }

  .open-hero__top {
    column-gap: 22px;
        justify-content: center;
  }

  .open-hero__btn{
    margin: 0 auto;
  }

  .open-cards{
    padding: 56px 0;
  }

  .open-cards__container{
    padding: 0 var(--pad-mobile);
  }

  .open-cards__grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .file-card{
    padding: 16px;
  }

  .file-card__title{
    font-size: var(--text-m-size);
    height: 16px;
    line-height: 16px;
  }

  .file-card__action{
    font-size: 14px;
  }

  .material{
    padding: 32px 20px;
  }

  .material__tabs{
    gap: 10px;
  }

  .material__tab{
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 14px;
    border-radius: 12px 12px 0 0;
    font-size: 16px;
  }

  .material__panel{
    border-radius: 0 0 12px 12px;
    padding: 10px 25px;
  }

  .lesson-card{
    height: 85px;
    width: 100%;
  }

  .file-card{
    height: 85px;
    width: 100%;
    padding-left: 3px !important;
    gap: 5px;
  }

  .file-card__badge{
    height: 30px;
    width: 50px;

  }

  .lesson-player{
    padding: 26px 0 54px;
  }

  .status__svg{
    width: 20px;
    height: 20px;
  }

  .lesson-card__status{
    width: 80px;
    height: 35px
  }

  .lesson-player__container{
    padding: 0 var(--pad-mobile);
  }

  .lesson-player__top{
    gap: 12px;
  }

  .lesson-player__nav{
    font-size: 13px;
  }

  .lesson-player__nav-sub{
    font-size: 12px;
  }

  .lesson-player__title{
    font-size: 22px;
  }

  .player{
    height: 260px;
  }

  .player__label{
    font-size: 44px;
  }

  .lesson-player__btn{
    width: 335px;
    height: 74px;
  }

  .player_btn-text{
    font-size: 20px;
  }

  .success__btn{
    width: 335px;
    height: 74px;
  }

  .btn-svg__text{
    font-size: 20px;
  }

  .open-card{
    width: 100%;
    height: 459px;
  }

  /* MOBILE TEXT FIX!!!!!!!!! */
  /* ---------- HEADER / NAV ---------- */
  .nav__link{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
  }
  
  .overlay__link{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
    letter-spacing: 0;
  }
  
  /* ---------- HERO ---------- */
  .hero__aside-text{
    font-size: var(--btn-m-size);
    line-height: var(--sub-d-lh);
  }

  .hero__subtitle{
    font-size: var(--text-m-size);

  }
  
  /* ---------- BENEFITS ---------- */
  .benefit__text{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
    letter-spacing: var(--text-m-ls);
  }
  
  .benefits__script{
    font-size: var(--h3-script-m-size);
    line-height: var(--h3-script-m-lh);
  }
  
  /* ---------- LOGIN (только текст, НЕ кнопки) ---------- */
  .login-page .login__back{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
  }
  
  .login-page .login__title{
    font-size: var(--h2-m-size);
    line-height: var(--h2-m-lh);
  }
  
  .login-page .login__subtitle{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
  }
  
  .login-page .login__label{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
    letter-spacing: var(--text-m-ls);
  }
  
  .login-page .login__input{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
  }
  
  .login-page .login__lost{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
    letter-spacing: var(--text-m-ls);
  }
  
  .login-page .login__note{
    font-size: var(--small-m-size);
    line-height: var(--small-m-lh);
  }
  
  .login-page .login__password-head{
    font-size: var(--small-m-size);
    line-height: var(--small-m-lh);
  }
  /* ---------- GUIDE ---------- */
  .guide__text{
    font-size: var(--h3-m-size);
    line-height: var(--h3-m-lh);
    margin-bottom: 10px;
  }
  
  .guide__accent{
    font-size: var(--h3-script-m-size);
    line-height: var(--h3-script-m-lh);
  }
  
  .policy-text{
    font-size: var(--small-m-size);
    line-height: 1.35;
  }
  
  /* ---------- REVIEWS ---------- */
  .reviews__title{
    font-size: var(--h2-m-size);
    line-height: var(--h2-m-lh);
  }
  
  .review-card__name{
    font-size: 32px; /* СДЕЛАЛ ЧТО БЫ 2 ИМЕНИ ВЛЕЗАЛО!!!!*/
    line-height: var(--h3-script-m-lh);
  }
  
  .review-card__text{
    font-size: var(--text-m-size);
    line-height: 125%;
    letter-spacing: -0.02em;
    letter-spacing: var(--text-m-ls);
  }
  
  /* ---------- FAQ ---------- */
  .faq__title{
    font-size: var(--h2-m-size);
    line-height: var(--h2-m-lh);
  }
  
  .faq-item__num{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
  }
  
  .faq-item__q{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
  }
  
  .faq-item__panel p{
    font-size: var(--text-m-size);
    line-height: 1.5;
    letter-spacing: var(--text-m-ls);
  }
  
  /* ---------- FOOTER ---------- */
  .footer__brand-text{
    font-size: var(--btn-m-size);
    line-height: var(--btn-m-lh);
  }
  
  .footer__heading--script{
    font-size: var(--h3-script-m-size);
    line-height: var(--h3-script-m-lh);
  }
  
  /* ---------- COURSE HEADER ---------- */
  .course-header__link{
    font-size: var(--small-m-size);
    line-height: 1.2;
  }
  
  .course-header__menu-link{
    font-size: var(--btn-m-size);
    line-height: 1.2;
  }
  
  /* ---------- CONTACT ---------- */
  .contact__text p{
    font-size: var(--h3-m-size);
    line-height: var(--h3-m-lh);
    letter-spacing: 0.02em;
  }
  
  /* ---------- OPEN CARDS ---------- */
  .open-card__title{
    font-size: var(--h3-m-size);
    line-height: var(--h3-m-lh);
  }
  
  /* ---------- MATERIAL / LESSONS ---------- */
  .lesson-card__title{
    font-size: 16px;
    line-height: 1.2;
  }
  
  .file-card__badge{
    font-size: 20px;
    line-height: var(--small-m-lh);
  }
  
  @media (max-width: 400px){
    .file-card__badge{
      font-size: var(--small-m-size);
      line-height: var(--small-m-lh);
    }
  }
  
  .file-card{
    padding-left: 0;
  }

  .file-card__left{
    gap: 10px;
  }

  .file-card__action{
    line-height: 1.2;
  }
  
  .material__empty{
    font-size: var(--small-m-size);
    line-height: 1.35;
  }
  
  .lesson-player__nav{
    line-height: 1.2;
  }
  
  .lesson-player__complete-text{
    font-size: var(--text-m-size);
    line-height: var(--text-m-lh);
  }


  .btn-frame__text,
  .btn-frame__text-most{
    font-size: var(--btn-m-size);
  }

  .footer__link{
    font-size: var(--text-m-size);
  }

  .footer__mail{
    font-size: var(--text-m-size);
  }    
  /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ 

  
  @media (max-width: 980px) and (min-width: 801px){
    .about__media {
      height: 635px;
    }
    .about__img--portrait{
      top: 15px;
      width: 381px;
      height: 538px;
    }
    .about__img--couple{
      width: 614px;
      height: 567px;
    }
  }

  @media (max-width: 800px) and (min-width: 601px){
    .about__media{
      height: 500px;
    }
    .about__img--portrait{
      top: 50px;
      width: 268px;
      height: 394px;
    }
    .about__img--couple{
      width: 545px;
      height: 535px;

    }
  }
  
  @media (max-width: 600px) and (min-width: 520px){
    .about__media{
      height: 435px;
    }
    .about__img--couple{
      width: 390px;
      height: 435px;
    }
    .about__img--portrait{
      height: 345px;
      width: 235px;
    }
  }
}

.content {
  min-height: 50vh;
  display: block;
}


@media (max-width: 1300px) {
  .about__title{
    font-size: 48px;
  }

  .login-page .login__note {
    margin-top: 0; 
  }
}


@media (max-width: 600px) {

  .lesson-player__top {
    gap: 12px;
    margin-top: 100px;
  }

  .open-hero {
    height: 180px;
    margin-bottom: -80px;
  }
  .open-hero__content {
    gap: 14px;
  }

  .hero__aside {
    align-items: center;
  }

  .hero__line {
    display: block;
    white-space: normal;
  }

  .hero__aside-text {
    font-size: 16px;
    line-height: var(--sub-d-lh);
  }

  .hero__top {
    width: 100%;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
  }

  .hero__aside {
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero__divider {
    width: 100%;
    height: 2px;
    background: rgba(159, 166, 230, 1);
  }
}


span.footer__brand-text {
    margin-top: 10px;
}