@import url('bespoke-serif.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: BespokeSerif-Medium;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  /* applies to all anchor jumps */
}

a,
a:visited {
  color: inherit;
}

body {
  background-image: url('../images/bg-all-light.png');
  background-size: auto 20%;
}

body.blurred>*:not(.nav):not(.sidebar) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s;
}

@media (max-width: 837px) {
  body {
    background-size: auto 10%;
  }
}

.nav {
  background: linear-gradient(to top, #606f68, #809eb9);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hamburguer {
  font-size: 1.3em;
  color: white;
  align-self: center;
  justify-self: center;
  padding-left: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburguer:hover {
  color: #403766;
  transition: all 0.2s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #403766;
  color: #fff;
  transition: left 0.3s;
  z-index: 998;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  padding-top: 6em;
  gap: 1.6em;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  align-items: center;
}

.sidebar a {
  text-decoration: none;
  padding-bottom: 0.2em;
  font-size: 1.2em;
  transition: color 0.2s;
  width: 88%;
  text-align: center;
  border-bottom: solid 1px white;
}

.sidebar a:hover {
  color: grey;
  transition: color 0.2s;
}

.sidebar.active {
  left: 0;
}

@media (max-width: 851px) {
  html {
    scroll-padding-top: 170px;
  }

  .sidebar {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 150px;
    background: #403766;
    color: #fff;
    transition: top 0.3s;
    z-index: 998;
    padding: 0 1em;
    padding-top: 60px;
    display: flex;
    flex-direction: row;
    padding-top: 6em;
    gap: 2em;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    align-items: center;
    justify-content: center;
  }

  .sidebar.active {
    top: 0;
  }
}

@media (max-width: 432px) {
  html {
    scroll-padding-top: 180px;
  }

  .sidebar {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 230px;
    background: #403766;
    color: #fff;
    transition: top 0.3s;
    z-index: 998;
    padding: 0 1em;
    padding-top: 60px;
    display: flex;
    flex-direction: row;
    padding-top: 7em;
    gap: 2em;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    align-items: center;
    justify-content: center;
  }

  .sidebar a {
    border: none;
  }

  .sidebar.active {
    top: 0;
  }
}

.name {
  font-family: BespokeSerif-Bold;
  padding: 1em;
  color: white;
}

.icon {
  align-self: center;
  margin-left: auto;
  margin-right: 1em;
}

.icon-img {
  width: 50px;
  height: 50px;
  border-radius: 25%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.elem {
  opacity: 0;
  transition: all 1.2s ease-out;
}

.elem.show {
  opacity: 1;
}

.hidden {
  opacity: 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 150ch;
}

.center {
  justify-content: center;
}

.title {
  font-family: BespokeSerif-Bold;
  padding-top: 1em;
  padding-bottom: 0.4em;
  color: #403766;
  text-align: center;
}

.title-first {
  margin-top: 90px;
}

.title-plans {
  color: white;
  padding: 0.8em 0.4em;
}

.text {
  /* font-family: BespokeSerif-Regular; */
  color: #403766;
  line-height: 1.5em;
  text-align: justify;
  align-self: center;
  padding: 0 1em;
  width: 56ch;
  font-size: 1.1em;
}

.text-inside {
  padding: 0.2em 0;
}

.small {
  align-self: flex-start;
}

.down {
  width: 115ch;
}

.lecture {
  text-align: center;
  width: 85ch;
}

.text-to-contact {
  text-decoration: underline;
}

@media (max-width: 1165px) {
  .down {
    width: 56ch;
  }
}

@media (max-width: 837px) {
  .lecture {
    text-align: justify;
    width: 56ch;
  }
}

.myself {
  width: 250px;
  height: 250px;
  border-radius: 10%;
}

.plans-bg {
  background: linear-gradient(to top, #606f68, #809eb9);
  margin-top: 2em;
  width: 100%;
}

.plans {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  /* align-items: center; */
  padding: 0 35px;
  max-width: 150ch;
  width: 100%;
  position: relative;
}

.plans i {
  height: 50px;
  width: 50px;
  background: rgb(219, 219, 219);
  text-align: center;
  border-radius: 50%;
  position: absolute;
  top: 47%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 997;
  transition: all 0.3s ease-in-out;
}

.plans i:first-child {
  left: 0.5em;
}

.plans i:last-child {
  right: 0.5em;
}

.plans i:hover {
  scale: 1.1;
  transition: all 0.3s ease-in-out;
}

.plans .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.dragging {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
  user-select: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

@media (max-width: 886px) {
  .plans .carousel {
    grid-auto-columns: calc((100% / 2) - 8px);
  }
}

@media (max-width: 629px) {
  .plans .carousel {
    grid-auto-columns: 100%;
  }
}

.discount {
  display: flex;
  margin: 0.3em;
  width: 100%;
  justify-content: center;
  background-color: #00e676;
}

.discount-yellow {
  background-color: #ffdc44;
}

.discount-text {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  color: white;
  padding: 0.1em;
}

.discount-text-yellow {
  color: #403766;
}

.text-hidden {
  visibility: hidden;
}

.discount-publish {
  padding: 0.1em;
  font-size: 1.25em;
  background-color: #d9772b;
}

/* .plan-title {
  font-family: BespokeSerif-Bold;
  color: #403766;
  text-align: center;
  padding-top: 0.4em;
} */

.plan-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 1em;
  margin-right: 4em;
  margin-bottom: 0.3em;
  z-index: 1;
}

.plan-label {
  padding: 6px 14px;
  border-radius: 25px 0px 0px 25px;
  font-weight: bold;
  font-size: 2em;
  color: white;
  width: 130px;
}

.light-yellow-label {
  background: linear-gradient(135deg, #d4a017, #8b6f00);
  border: 2px ridge rgba(255, 230, 180, 0.8);
}

.yellow-label {
  background: linear-gradient(135deg, #d97706, #92400e);
  border: 2px ridge rgba(255, 230, 180, 0.8);
}

.green-label {
  background: linear-gradient(135deg, #047857, #065f46);
  border: 2px ridge rgba(180, 255, 210, 0.6);
}

.light-green-label {
  background: linear-gradient(135deg, #0f766e, #0fbf96);
  border: 2px ridge rgba(160, 230, 220, 0.6);
}

.light-light-green-label {
  background: linear-gradient(to left, #c6efd9, #0f766e);
  border: 2px ridge rgba(135, 180, 140, 0.6);
}

.plan-number {
  color: #25203c;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  position: absolute;
  right: -45px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 3px solid #25203c;
}

.light-yellow-number {
  background: linear-gradient(135deg, #ffe066, #ffd700);
  border: 2px solid rgba(255, 245, 180, 0.95);
}

.yellow-number {
  background: linear-gradient(135deg, #ffd166, #ffb300);
  border: 2px solid rgba(255, 245, 180, 0.95);
}

.green-number {
  background: linear-gradient(135deg, #1de9b6, #00e676);
  border: 2px solid rgba(180, 255, 210, 0.85);
}

.light-green-number {
  background: linear-gradient(135deg, #5fffd7, #1de9b6);
  border: 2px solid rgba(160, 255, 220, 0.85);
}

.light-light-green-number {
  background: linear-gradient(to left, #e0ffe6, #5fffd7);
  border: 2px solid rgba(180, 255, 200, 0.85);
}

.carousel .card {
  /* font-family: BespokeSerif-Regular; */
  scroll-snap-align: start;
  list-style: none;
  border-radius: 50px;
  display: flex;
  padding-bottom: 15px;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  color: #403766;
}

.light-yellow {
  background: #fff7e6;
}

.yellow {
  background: #fff1d6;
}

.green {
  background: #c6efd9;
}

.light-green {
  background: #dff7ec;
}

.light-light-green {
  background: #f3fdf8;
}

.card-recommended {
  border: 7px solid #d9772b;
}

.card-green {
  border: 7px solid #00e676;
}

.card-yellow {
  border: 7px solid #ffdc44;
}

.price-line {
  border-bottom: 2px solid #403766;
}

.price {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 5em;
  color: #403766;
}

.hour-box {
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}

.hour {
  /* font-family: BespokeSerif-Regular; */
  font-size: 1.5em;
  color: #403766;
}

.topics {
  list-style: none;
  padding-left: 0;
}

.topic {
  color: #403766;
  padding-top: 0.4em;
  position: relative;
  padding-left: 2em;
  list-style: none;
}

.topic::before {
  content: "⭐";
  position: absolute;
  left: 0;
  font-size: 0.8em;
}

.offer {
  font-family: BespokeSerif-Bold;
  color: #d9772b;
}

.plans-down {
  /* font-family: BespokeSerif-Regular; */
  color: rgb(219, 219, 219);
  font-size: 1.1em;
  padding: 1em;
  max-width: 150ch;
}

.contacts {
  background-color: #403766;
  padding-bottom: 1rem;
}

.title-contacts {
  font-family: BespokeSerif-Bold;
  padding-top: 1em;
  padding-bottom: 0.4em;
  padding-left: 1em;
  color: white;
  text-align: left;
}

.footer {
  padding-left: 1em;
  padding-bottom: 0.2em;
  font-size: 1.1em;
  color: white;
  display: flex;
  gap: 1.6em;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  max-width: 150ch;
  margin-left: auto;
  margin-right: auto;
}

.text-footer {
  /* font-family: BespokeSerif-Regular; */
  padding-left: 2em;
  text-decoration: none;
}

.footer i {
  position: absolute;
  top: 23%;
}