*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: #353535;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

h1, h2, h3 {
  font-weight: 700;
}

@keyframes loader-bounce {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-20px);
    opacity: 1;
  }
}
@keyframes loader-fadeout {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@keyframes menu-item-appear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heart-fill {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes underline-grow {
  from {
    width: 0;
  }
  to {
    width: 40px;
  }
}
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  animation: loader-fadeout 0.5s 3s forwards;
}
.loader__circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(#FF79DA, #9356DC);
  animation: loader-bounce 0.6s infinite alternate;
}
.loader__circle:nth-child(2) {
  animation-delay: 0.2s;
}
.loader__circle:nth-child(3) {
  animation-delay: 0.4s;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(175deg, #FF79DA, #9356DC);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.btn--primary:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  filter: brightness(1.08);
}

.card__heart,
.menu__heart {
  position: relative;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}
.card__heart i,
.menu__heart i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}
.card__heart .fa-regular,
.menu__heart .fa-regular {
  color: #353535;
  opacity: 1;
}
.card__heart .fa-solid,
.menu__heart .fa-solid {
  background: linear-gradient(to bottom, #FF79DA, #9356DC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
.card__heart:hover .fa-regular,
.menu__heart:hover .fa-regular {
  opacity: 0;
}
.card__heart:hover .fa-solid,
.menu__heart:hover .fa-solid {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: heart-fill 0.5s ease forwards;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px;
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
}
.header__logo {
  height: 36px;
}
.header__back {
  position: absolute;
  left: 24px;
  font-size: 1.2rem;
  color: #353535;
  transition: transform 0.3s ease;
}
.header__back:hover {
  transform: translateX(-3px);
}
.header--restaurant {
  box-shadow: none;
}

.footer {
  background: #353535;
  padding: 28px 24px;
}
.footer__logo {
  font-family: "Shrikhand", cursive;
  font-size: 1.2rem;
  color: #FFFFFF;
  font-weight: 400;
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links li a {
  color: #FFFFFF;
  font-size: 0.95rem;
}
.footer__links li a i {
  width: 20px;
  margin-right: 8px;
  font-size: 0.85rem;
}
.footer__links li a:hover {
  text-decoration: underline;
}
@media (min-width: 1024px) {
  .footer__container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  .footer__logo {
    margin-bottom: 0;
    margin-left: auto;
    font-size: 1.4rem;
  }
  .footer__links {
    flex-direction: row;
    gap: 20px;
  }
}

.location {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  background: #EAEAEA;
  font-weight: 500;
  font-size: 1rem;
}
.location i {
  font-size: 1rem;
  color: #353535;
}

.hero {
  text-align: center;
  padding: 40px 24px 56px;
  background: #F5F5F5;
}
.hero h1 {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 28px;
  color: #555;
}
@media (min-width: 1024px) {
  .hero {
    padding: 40px 24px 48px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

.steps {
  padding: 48px 24px;
}
.steps h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
@media (min-width: 1024px) {
  .steps h2 {
    max-width: 1100px;
    margin: 0 auto 28px;
  }
}
.steps__container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: step;
}
@media (min-width: 1024px) {
  .steps__container {
    flex-direction: row;
    justify-content: center;
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
  }
}
.steps__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 32px;
  background: #F5F5F5;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: background 0.3s ease;
}
.steps__card:hover {
  background: rgb(241.5, 233.875, 250.625);
}
.steps__card:hover i {
  color: #9356DC;
}
@media (min-width: 1024px) {
  .steps__card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }
}
.steps__card i {
  font-size: 1.2rem;
  color: #7e7e7e;
  transition: color 0.3s ease;
}
.steps__number {
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  background: #9356DC;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .steps__number {
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
  }
}
.steps__text {
  font-weight: 500;
  font-size: 1rem;
}

.restaurants {
  padding: 48px 24px;
  background: #F5F5F5;
}
.restaurants h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
@media (min-width: 1024px) {
  .restaurants h2 {
    max-width: 1100px;
    margin: 0 auto 28px;
  }
}
.restaurants__container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .restaurants__container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .restaurants__container {
    max-width: 1100px;
    margin: 0 auto;
  }
}

.card {
  display: block;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
@media (min-width: 768px) {
  .card {
    width: calc(50% - 12px);
  }
}
.card__image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #99E2D0;
  color: rgb(38.7404580153, 136.2595419847, 112.213740458);
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
}
.card__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.card__text h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.card__text p {
  font-size: 0.95rem;
  font-weight: 300;
  color: #555;
}

.restaurant-hero {
  height: 280px;
  overflow: hidden;
}
.restaurant-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .restaurant-hero {
    height: 400px;
  }
}

.menu {
  background: #F5F5F5;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  padding: 32px 16px 40px;
}
@media (min-width: 768px) {
  .menu {
    padding: 40px 40px 50px;
  }
}
@media (min-width: 1024px) {
  .menu {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -50px;
    padding: 48px 60px 60px;
  }
}
.menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.menu__header h1 {
  font-family: "Shrikhand", cursive;
  font-size: 1.7rem;
  font-weight: 400;
}
@media (min-width: 1024px) {
  .menu__header h1 {
    font-size: 2rem;
  }
}
.menu__heart {
  margin-left: 20px;
}
.menu__section {
  margin-bottom: 32px;
}
.menu__section h2 {
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}
.menu__section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 40px;
  background: #99E2D0;
  animation: underline-grow 0.6s ease forwards;
}
.menu__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu__item {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  opacity: 0;
  animation: menu-item-appear 0.5s ease forwards;
}
.menu__item:nth-child(1) {
  animation-delay: 0.1s;
}
.menu__item:nth-child(2) {
  animation-delay: 0.2s;
}
.menu__item:nth-child(3) {
  animation-delay: 0.3s;
}
.menu__item:nth-child(4) {
  animation-delay: 0.4s;
}
.menu__item:nth-child(5) {
  animation-delay: 0.5s;
}
.menu__item:nth-child(6) {
  animation-delay: 0.6s;
}
.menu__item:nth-child(7) {
  animation-delay: 0.7s;
}
.menu__item:nth-child(8) {
  animation-delay: 0.8s;
}
.menu__item:nth-child(9) {
  animation-delay: 0.9s;
}
.menu__item:nth-child(10) {
  animation-delay: 1s;
}
.menu__item:nth-child(11) {
  animation-delay: 1.1s;
}
.menu__item:nth-child(12) {
  animation-delay: 1.2s;
}
.menu__item:hover {
  transform: scale(1.02);
}
.menu__item:hover .menu__item-check {
  width: 60px;
}
.menu__item:hover .menu__item-price {
  transform: translateX(-4px);
}
.menu__item-content {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
  overflow: hidden;
}
.menu__item-content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu__item-content p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu__item-price {
  display: flex;
  align-items: flex-end;
  padding: 14px 16px 14px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.menu__item-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  background: #99E2D0;
  overflow: hidden;
  transition: width 0.4s ease;
  flex-shrink: 0;
}
.menu__item-check i {
  color: #FFFFFF;
  font-size: 1.2rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease 0.1s;
}
.menu__item:hover .menu__item-check i {
  transform: rotate(360deg);
}
.menu__order {
  text-align: center;
  margin-top: 40px;
}
