/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Lora:wght@500;600&family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(353, 93%, 50%);
  --first-color-alt: hsl(353, 93%, 46%);
  --first-color-dark: hsl(353, 50%, 15%);
  --first-color-darken: hsl(180, 100%, 14%);
  --second-color: hsl(18, 88%, 58%);
  --title-color: hsl(353, 48%, 12%);
  --text-color: hsl(19, 16%, 35%);
  --text-color-light: hsl(353, 16%, 48%);
  --border-color: hsl(230, 50%, 90%);
  --white-color: hsl(24, 86%, 90%);
  --body-color: hsl(24, 86%, 88%);
  --container-color: hsl(24, 86%, 92%);
  --card-color: hsl(210, 24%, 8%);
  --shadow-small-img: drop-shadow(0 4px 16px hsla(353, 100%, 8%, .2));
  --shadow-big-img: drop-shadow(0 8px 24px hsla(353, 100%, 8%, .2));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --title-font: "Lora", serif;
  --subtitle-font: "Dancing Script", cursive;
  
  --biggest-font-size: 2.5rem;
  --bigger-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .688rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --bigger-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-regular);
  font-family: var(--second-font);
  line-height: 120%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title {
  text-align: center;
  font-size: var(--bigger-font-size);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.nav {
  height: var(--header-height);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo img {
  width: 36px;
}

.nav__actions {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.nav__actions i {
  font-size: 1rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .4s;
}

.localize {
  margin-top: .25rem;
}

.nav__actions i:hover {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    padding-block: 4.5rem 3.5rem;
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
    transition: top .4s;
  }

  .dropdown__content {
    max-height: 580px;
    overflow-y: scroll;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  font-size: var(--normal-font-size);
  justify-content: center;
  align-items: center;
}

.nav__link, 
.dropdown__button {
  position: relative;
  color: var(--title-color);
  font-family: var(--body-font);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/*=============== DROPDOWN ===============*/
.dropdown__button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown__arrow {
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__content,
.dropdown__group,
.dropdown__list {
  display: grid;
}

.dropdown__container {
  background-color: var(--container-color);
  height: 0;
  overflow: hidden;
  transition: height .4s;
}

.dropdown__content {
  row-gap: 1.75rem;
  text-align: initial;
}

.dropdown__group {
  padding-left: 2.5rem;
  row-gap: .5rem;
}

.dropdown__group:first-child {
  margin-top: 1.25rem;
}

.dropdown__group:last-child {
  margin-bottom: 1.25rem;
}

.dropdown__icon {
  font-size: 1.25rem;
  color: var(--first-color);
  display: grid;
  width: 40px;
  height: 40px;
  background-color: var(--body-color);
  border-radius: 50%;
  place-items: center;
  margin-left: 1rem;
}

.dropdown__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.dropdown__list {
  row-gap: .25rem;
}

.dropdown__link {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: color .3s;
}

.dropdown__link:hover {
  color: var(--title-color);
}

/* Rotate dropdown icon */
.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Add shadow header */
.shadow-header {
  box-shadow: 0 4px 16px hsla(353, 100%, 8%, .1);
}

/* Active link */
.active-link::after {
  width: 60%;
}

/*=============== LOGIN ===============*/
.login {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-fixed);
  background-color: hsla(230, 12%, 96%, .6);
  backdrop-filter: blur(16px);
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  transition: top .4s;
}

.login__form {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border: 2px solid var(--border-color);
  row-gap: 1.25rem;
}

.login__title {
  font-size: var(--h2-font-size);
}

.login__group {
  row-gap: 1.25rem;
}

.login__label {
  display: block;
  text-align: initial;
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: .25rem;
}

.login__input {
  width: 100%;
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  padding: 1rem;
  color: var(--text-color);
}

.login__signup,
.login__forgot {
  display: block;
  font-size: var(--small-font-size);
}

.login__signup {
  margin-bottom: .5rem;
}

.login__signup a {
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.login__forgot {
  color: var(--first-color);
  margin-bottom: 1.25rem;
}

.login__button {
  width: 100%;
  cursor: pointer;
}

.login__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--title-color);
  cursor: pointer;
}

.localize i {
  cursor: pointer;
}

.localize__list {
  position: absolute;
  top: 48px;
  right: -41px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background-color: var(--body-color);
  box-shadow: 0 2px 16px hsla(220, 8%, 8%, .1);
  padding: 1.5rem;
  border-radius: .5rem;
  height: 238px;
  overflow: hidden auto;
  transform: translateY(1.25rem);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s, opacity .4s;
  align-items: center;
}

.localize__list::-webkit-scrollbar {
  width: .5rem;
  border-radius: .5rem;
}

.localize__list::-webkit-scrollbar-thumb {
  background-color: hsl(220, 8%, 86%);
  border-radius: .5rem;
}

.localize:hover .localize__list {
  transform: translateY(0);
  opacity: 1;
  pointer-events: initial;
}

.localize__item {
  width: 78px;
  height: 24px;
  display: flex;
  row-gap: .25rem;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  background-color: var(--container-color);
  border-radius: .5rem;
}

.localize__item a {
  font-size: var(--tiny-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color)
}

/* Show login */
.show-login {
  top: 0;
}

/*=============== HOME ===============*/
.home__container {
  padding-block: 2rem 3rem;
  row-gap: 7rem;
}

.home__data {
  position: relative;
  text-align: center;
}

.home__title {
  font-size: var(--bigger-font-size);
  font-weight: var(--font-medium);
}

.home__description {
  margin-block: 1rem 2rem;
}

.home__sticker-1,
.home__sticker-2 {
  width: 40px;
  position: absolute;
  opacity: .7;
}

.home__sticker-1 {
  right: .75rem;
  bottom: 2rem;
  rotate: 30deg;
}

.home__sticker-2 {
  left: 2.5rem;
  bottom: -4.5rem;
  rotate: 80deg;
}

.home__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.home__circle {
  width: 273px;
  height: 273px;
  background-color: var(--first-color-darken);
  border-radius: 50%;
  box-shadow: inset var(--shadow-circle);
  display: grid;
  place-items: center;
}

.home__chapter {
  width: 25px;
  filter: var(--shadow-small-img);
  position: absolute;
  z-index: 2;

  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.home__board,
.home__course {
  filter: var(--shadow-big-img);
}

.home__course {
  width: 273px;
  z-index: 2;
}

.home__board {
  width: 273px;
  position: absolute;
  bottom: -.5rem;
  right: .01rem;
}

.home__continuous-optimization {
  top: -1rem;
}

.home__vector-calculus {
  right: -.5rem;
  top: 2rem;
}

.home__linear-algebra {
  right: -.5rem;
  bottom: 2rem;
}

.home__analytic-geometry {
  bottom: -1rem;
}

.home__probability-distributions {
  left: -.5rem;
  bottom: 2rem;
}

.home__matrix-decompositions {
  left: -.5rem;
  top: 2rem;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 1.5rem;
  font-weight: var(--font-semi-bold);
  border-radius: .5rem;
  box-shadow: 0 8px 24px hsla(353, 100%, 40%, .4);
  transition: background-color .4s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*=============== ABOUT ===============*/
.about {
  background-color: var(--container-color);
}

.about__container {
  row-gap: 2rem;
  padding-bottom: 2rem;
}

.about__data {
  position: relative;
  text-align: center;
}

.about__data .section__title {
  margin-bottom: 1rem;
}

.about__description {
  margin-bottom: 2rem;
}

.about__sticker {
  width: 40px;
  position: absolute;
  right: 0;
  bottom: 2rem;
  rotate: 80deg;
}

.about__img {
  width: 320px;
  justify-self: center;
  filter: var(--shadow-big-img);
}

/*=============== POPULAR ===============*/
.popular__container {
  grid-template-columns: 100%;
  row-gap: 3rem;
  padding-bottom: 2rem;
}

.popular__data .section__title {
  margin-bottom: 1rem;
}

.popular__description {
  text-align: center;
}

.popular__swiper {
  position: relative;
}

.popular__dish {
  width: 220px;
  filter: var(--shadow-big-img);
  position: absolute;
  inset: 0;
  top: -.85rem;
  margin-inline: auto;
  border-radius: 3rem;
}

.popular__card,
.popular__img {
  width: 200px;
  border-radius: 3rem;
}

.popular__img {
  transform: scale(.8) rotate(-360deg);
  transition: transform .4s;
}

.popular__title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-top: 2rem;
  text-align: center;
  opacity: 0;
  transition: opacity .4s;
}

/* Swiper class */
.testimonial .swiper-pagination-bullets {
  bottom: 4rem;
}

.testimonial .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity .4s;
}

.testimonial .swiper-button-prev {
  left: calc(50% - 3rem);
}

.testimonial .swiper-button-next {
  right: calc(50% - 3rem);
}

.testimonial :is(.swiper-button-prev, .swiper-button-next) {
  top: initial;
  bottom: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1rem;
}


.swiper {
  margin-inline: initial;
  overflow: visible;
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .popular__img {
  transform: scale(1) rotate(0);
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .popular__title {
  opacity: 1;
}

/*=============== RECIPE ===============*/
.recipe {
  background-color: var(--container-color);
}

.recipe__container {
  row-gap: 2rem;
  padding-bottom: 2rem;
}

.recipe__image {
  width: 60px;
  filter: var(--shadow-small-img);
}

.recipe__name {
  font-size: var(--normal-font-size);
  margin-bottom: .25rem;
}

.recipe__description {
  font-size: var(--small-font-size);
}

.recipe__ingredient {
  display: flex;
  align-items: center;
  column-gap: .75rem;
}

.recipe__img {
  width: 320px;
  justify-self: center;
  filter: var(--shadow-big-img);
}

/*=============== PRODUCTS ===============*/
.products {
  display: grid;
  place-items: center;
  margin-inline: 1.5rem;
}

.card__container, .card__article {
  display: grid;
  gap: 2rem;
}
.card__container {
  padding-block: 4.5rem;
}
.card__article {
  --hue-1: 210;
  --hue-2: 238;
  position: relative;
  justify-items: center;
  color: var(--white-color);
  text-align: center;
  padding: 4rem 2rem 3rem;
  border: 4px solid transparent;
  background: linear-gradient(var(--card-color), var(--card-color)) padding-box, linear-gradient(135deg, hsl(var(--hue-1), 85%, 70%) 0%, var(--card-color), var(--card-color), hsl(var(--hue-2), 70%, 55%) 100%) border-box;
  border-radius: 1.25rem;
  overflow: hidden;
}
.card__shape-1 {
  position: relative;
  width: 148px;
  height: 148px;
  background: linear-gradient(140deg, hsl(var(--hue-1), 75%, 25%) 3%, hsl(var(--hue-2), 65%, 45%) 100%);
  border-radius: 2rem;
  z-index: 2;
}
.card__shape-2 {
  width: 116px;
  height: 116px;
  background: linear-gradient(140deg, hsl(var(--hue-1), 70%, 50%) 3%, hsl(var(--hue-2), 95%, 45%) 100%);
  border-radius: 1.5rem;
}
.card__shape-3 {
  width: 76px;
  height: 76px;
  background: linear-gradient(140deg, hsl(var(--hue-1), 85%, 60%) 3%, hsl(var(--hue-2), 85%, 60%) 100%);
  border-radius: 1rem;
  display: grid;
  place-items: center;
}
.card__shape-2, .card__shape-3 {
  position: absolute;
  inset: 0;
  margin: auto;
}
.card__icon {
  font-size: 3rem;
}
.card__data {
  z-index: 3;
}
.card__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--white-color);
}
.card__description {
  margin-bottom: 1.5rem;
}
.card__button {
  display: inline-block;
  background-color: var(--white-color);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: var(--title-color);
  font-weight: 500;
}
.card__orange {
  --hue-1: 300;
  --hue-2: 30;
}
.card__green {
  --hue-1: 180;
  --hue-2: 50;
}
.card__scale-1 {
  width: 148px;
  height: 148px;
  background: linear-gradient(140deg, hsl(var(--hue-1), 70%, 50%) 3%, hsl(var(--hue-2), 95%, 45%) 100%);
  border-radius: 2rem;
  top: 4rem;
}
.card__scale-2 {
  width: 116px;
  height: 116px;
  background: var(--card-color);
  border-radius: 1.5rem;
  top: 5rem;
}
.card__scale-1, .card__scale-2 {
  position: absolute;
  filter: blur(24px);
  transition: transform 0.3s ease-in;
}
.card__article:hover .card__scale-1 {
  transform: scale(6);
}
.card__article:hover .card__scale-2 {
  transform: scale(6);
  transition-delay: 0.1s;
}


/*=============== TESTIMONIAL ===============*/
.testimonial {
  background-color: var(--container-color);
  /* height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.testimonial__swiper {
  padding-bottom: 7rem;
}

.testimonial__card {
  width: 280px;
  background-color: var(--container-color);
  box-shadow: 0 8px 16px hsla(265, 75%, 4%, .1);
  padding: 2rem 1.5rem 3rem;
  border-radius: 1.5rem;
  text-align: center;
}

.testimonial__img {
  width: 100px;
  border-radius: 4rem;
  border: 4px solid var(--first-color);
  margin: 0 auto .5rem;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  margin-bottom: 2rem;
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: .75rem;
}

.testimonial__stars {
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

.testimonial__stars i {
  font-size: 1rem;
  color: var(--second-color);
}

.testimonial__number {
  font-size: var(--h3-font-size);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 4rem 6rem;
}

.footer__container {
  row-gap: 3rem;
}

.footer__logo img {
  width: 24px;
  margin-bottom: 1.25rem;
}

.footer__data {
  grid-template-columns: repeat(2, max-content);
  gap: 3rem 2rem;
}

.footer__title {
  font-size: var(--normal-font-size);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: grid;
  row-gap: .5rem;
}

.footer__link {
  color: var(--text-color);
  transition: color .4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__info {
  font-style: normal;
}

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  font-size: 1.25rem;
  color: var(--first-color);
}

.footer__copy {
  display: block;
  margin-top: 5rem;
  text-align: center;
  font-size: var(--small-font-size);
}


/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(24, 32%, 75%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(24, 32%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(24, 32%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(353, 100%, 8%, .2);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__menu,
  .nav__actions {
    column-gap: .25rem;
  }

  .dropdown__content {
    max-height: 500px;
    overflow-y: scroll;
    text-align: initial;
  }

  .dropdown__group {
    padding-left: 1.5rem;
  }

  .products {
    margin-inline: 1rem;
  }

  .card__article {
    padding: 2rem 1rem;
  }
  .card__scale-1 {
    top: 2rem;
  }
  .card__scale-2 {
    top: 3rem;
  }

  .testimonial__card {
    width: 240px;
    padding-inline: 1rem;
  }

  .footer__logo img {
    width: 48px;
  }

  .footer__data {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {

  .dropdown__content {
    text-align: initial;
  }

  .login__form {
    width: 400px;
    justify-self: center;
  }

  .login__close {
    width: max-content;
    top: 4rem;
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .home__container,
  .about__container,
  .popular__container,
  .recipe__container {
    grid-template-columns: 380px;
    justify-content: center;
  }

  .card__container {
    grid-template-columns: 328px;
  }

  .footer__data {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 640px) {
  .testimonial__swiper {
    max-width: 640px;
  }
}

@media screen and (min-width: 768px) {

  .popular__swiper {
    width: 600px;
    overflow-x: clip;
    justify-self: center;
  }

  .card__container {
    grid-template-columns: repeat(2, 328px);
  }

  .testimonial__swiper {
    max-width: 760px;
    overflow: hidden;
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 4rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .localize__list {
    top: 55px;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
  }

  .dropdown__container {
    height: max-content;
    position: absolute;
    left: 0;
    right: 0;
    top: 6.5rem;
    background-color: var(--body-color);
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
    max-height: 580px;
    overflow-y: scroll;
    text-align: initial;
  }

  .dropdown__content {
    grid-template-columns: repeat(4, max-content);
    max-width: 1120px;
    margin-inline: auto;
  }
  .dropdown__group {
    padding: 4rem 0;
    align-content: baseline;
    row-gap: 1.25rem;
    width: 300px;
    height: 100%;
  }
  .dropdown__group:first-child, .dropdown__group:last-child {
    margin: 0;
  }
  .dropdown__list {
    row-gap: 0.75rem;
  }

  .dropdown__icon {
    width: 60px;
    height: 60px;
    background-color: var(--container-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
  }

  .dropdown__icon i {
    font-size: 2rem;
  }

  .dropdown__title {
    font-size: var(--normal-font-size);
  }
  .dropdown__link {
    font-size: var(--small-font-size);
  }
  .dropdown__link:hover {
    color: var(--first-color);
  }
  .dropdown__item {
    cursor: pointer;
  }
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }

  .dropdown__item:hover > .dropdown__container {
    top: 3.6rem;
    opacity: 1;
    pointer-events: initial;
    position: fixed;
  }

  .home__container {
    grid-template-columns: 515px 555px;
    column-gap: 3rem;
    align-items: start;
    padding-block: 10rem 4rem;
  }

  .home__data {
    text-align: initial;
    margin-top: 2rem;
  }

  .home__description {
    margin-bottom: 3.5rem;
    padding-right: 6rem;
  }

  .home__sticker-1,
  .home__sticker-2 {
    width: 50px;
  }

  .home__sticker-1 {
    right: 3rem;
    top: 1rem;
    bottom: 0;
  }

  .home__sticker-2 {
    left: 16rem;
    bottom: 3rem;
  }

  .home__board,
  .home__course {
    width: 460px;
  }

  .home__circle {
    width: 500px;
    height: 500px;
  }

  .home__board {
    bottom: -1rem;
  }

  .home__chapter {
    width: 25px;
  }

  .home__continuous-optimization {
    top: -2rem;
  }

  .home__vector-calculus {
    right: -1rem;
    top: 3.5rem;
  }

  .home__linear-algebra {
    right: -1rem;
    bottom: 3.5rem;
  }

  .home__analytic-geometry {
    bottom: -2rem;
  }

  .home__probability-distributions {
    left: -1rem;
    bottom: 3.5rem;
  }

  .home__matrix-decompositions {
    left: -1rem;
    top: 3.5rem;
  }

  .about__container {
    grid-template-columns: 450px 440px;
    align-items: center;
    column-gap: 6rem;
  }

  .about__img {
    order: -1;
    width: 450px;
  }

  .about__data {
    text-align: initial;
  }

  .about__data .section__title {
    margin-bottom: 1.5rem;
    text-align: initial;
  }

  .about__description {
    margin-bottom: 3.5rem;
  }

  .about__sticker {
    width: 50px;
    right: 6rem;
    bottom: 4rem;
  }

  .popular__container {
    grid-template-columns: 470px;
    row-gap: 5rem;
    padding-bottom: 3rem;
  }

  .popular__data .section__title {
    margin-bottom: 1.5rem;
  }

  .popular__swiper {
    width: 1000px;
  }

  .popular__card,
  .popular__img {
    width: 350px;
  }

  .popular__dish {
    width: 390px;
    top: -1.5rem;
  }

  .popular__title {
    margin-top: 3rem;
    font-size: var(--h2-font-size);
  }

  .recipe__container {
    grid-template-columns: 360px 550px;
    align-items: center;
    column-gap: 6rem;
    padding-bottom: 3rem;
  }

  .recipe__ingredient {
    column-gap: 1.5rem;
  }

  .recipe__image {
    width: 80px;
  }

  .recipe__name {
    font-size: var(--h3-font-size);
  }

  .recipe__description {
    font-size: var(--normal-font-size);
  }

  .recipe__img {
    width: 550px;
  }

  .card__container {
    grid-template-columns: repeat(3, 345px);
  }
  .card__article {
    padding: 4.5rem 2rem 3.5rem;
  }

  .testimonial {
    padding-bottom: 3.5rem;
  }

  .testimonial__swiper {
    max-width: 760px;
    overflow: hidden;
  }

  .testimonial__card {
    width: 330px;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
  }

  .testimonial__number {
    font-size: var(--normal-font-size);
  }

  .footer {
    padding-block: 6rem 3rem;
  }

  .footer__data {
    grid-template-columns: repeat(4, max-content);
    column-gap: 4.5rem;
  }

  .footer__logo img {
    width: 48px;
  }

  .footer__links {
    row-gap: 1rem;
  }

  .footer__social {
    column-gap: 1.5rem;
  }

  .footer__social-link {
    font-size: 1.5rem;
  }

  .footer__copy {
    margin-top: 7.5rem;
  }

}

@media screen and (min-width: 1220px) {
  .container {
    margin-inline: auto;
  }

  .home__container {
    /*grid-template-columns: 435px 745px;*/
    align-items: center;
    padding-block: 7rem 2rem;
  }

  .home__data {
    text-align: initial;
  }

  .home__description {
    margin-bottom: 4rem;
  }

}
