/* Базовые стили */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #faf7f3;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
}

/* Кнопки */

.btn {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background-color: #c87a3c;
  color: #fff;
  box-shadow: 0 10px 25px rgba(200, 122, 60, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(200, 122, 60, 0.45);
}

.btn--outline {
  background-color: transparent;
  border: 1px solid #c87a3c;
  color: #c87a3c;
}

.btn--outline:hover {
  background-color: #c87a3c;
  color: #fff;
}

/* ШАПКА */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 18px;
}

/* Навигация */

.nav {
  display: flex;
  gap: 20px;
}

.nav__link {
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #444;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #c87a3c;
  transition: width 0.2s ease;
}

.nav__link:hover::after {
  width: 100%;
}

/* Бургер */

.burger {
  display: none;
  width: 32px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: #333;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
  padding: 60px 0 70px;
  background: radial-gradient(circle at top left, #fce3c4 0, #faf7f3 45%, #f6eee4 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero__title {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 16px;
}

.hero__subtitle {
  margin-bottom: 24px;
  max-width: 440px;
  line-height: 1.5;
}

.hero__image {
  height: 260px;
  border-radius: 24px;
  background-image:
    linear-gradient(to bottom right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1512568400610-62da28bc8a13?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

/* Общие секции */

.section {
  padding: 60px 0;
}

.section--gray {
  background-color: #f1ece6;
}

.section__title {
  margin: 0 0 32px;
  font-size: 26px;
  text-align: center;
}

/* О нас */

.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.about__card {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.about__card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Карточки меню */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.card__desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: #555;
}

.card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__price {
  font-weight: 700;
}

/* Акции */

.specials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.specials__item {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

/* Отзывы */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.review__text {
  margin-top: 0;
  margin-bottom: 12px;
}

.review__author {
  margin: 0;
  font-weight: 600;
}

/* Контакты */

.contacts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.fake-map {
  background: repeating-linear-gradient(
    -45deg,
    #f1ece6,
    #f1ece6 10px,
    #e3d9cf 10px,
    #e3d9cf 20px
  );
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Футер */

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 0;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__link {
  text-decoration: none;
  color: #c87a3c;
}

/* Модальное окно */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal--hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__content {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  padding: 24px 24px 20px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.modal__close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 6px;
}

.modal__subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 14px;
}

.modal__field {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.modal__field input,
.modal__field textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d3ccc4;
  font-family: inherit;
  font-size: 14px;
}

.modal__note {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

/* Адаптив */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .about,
  .cards,
  .specials,
  .reviews,
  .contacts {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  /* показываем бургер и прячем обычное меню */
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 60px 0 auto 0;
    background-color: #faf7f3;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 40px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .reviews {
    grid-template-columns: 1fr;
  }

  .specials {
    grid-template-columns: 1fr;
  }

  .contacts {
    grid-template-columns: 1fr;
  }
}
