:root {
  --bg: #fff8f1;
  --bg-soft: #f7eadc;
  --card: #fffdf9;
  --text: #3d2419;
  --text-soft: #6e5142;
  --accent: #bd5428;
  --accent-dark: #913a1a;
  --line: #ead6c3;
  --shadow: 0 12px 30px rgba(91, 46, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.logo {
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ШАПКА */

.header {
  width: min(1400px, calc(100% - 32px));
  min-height: 86px;
  margin: 16px auto 0;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.header__button {
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  transition: 0.2s ease;
}

.header__button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ОБЩИЕ БЛОКИ */

.section {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section__eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
}

.menu__link {
  color: var(--accent);
  font-weight: 700;
}

/* ПЕРВЫЙ ЭКРАН */

.hero {
  width: min(1400px, calc(100% - 32px));
  min-height: 590px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #f2e2d3;
  border: 1px solid var(--line);
}

.hero__content {
  padding: 90px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__label {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(46px, 5vw, 78px);
  line-height: 0.96;
  margin-bottom: 24px;
}

.hero__text {
  max-width: 500px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--main {
  background: var(--accent);
  color: white;
}

.button--main:hover {
  background: var(--accent-dark);
}

.button--light {
  background: transparent;
  color: var(--text);
  border-color: #a47c65;
}

.button--light:hover {
  background: white;
}

.button--white {
  background: white;
  color: var(--accent-dark);
}

.hero__image {
  min-height: 590px;
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.15), rgba(0, 0, 0, 0.08)),
    url("images/hero.jpg") center / cover no-repeat;
}

/* О НАС */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
}

.about__text p:last-child {
  max-width: 480px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.about__photo {
  min-height: 320px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(56, 30, 17, 0.1), rgba(56, 30, 17, 0.1)),
    url("images/about.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.about__features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.feature {
  min-height: 205px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.feature__icon {
  display: block;
  font-size: 34px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

/* МЕНЮ */

.menu {
  padding-top: 35px;
}

.menu__tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 0 0 15px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 17px;
}

.tab--active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.menu-card {
  overflow: hidden;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.menu-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 14px;
  border-radius: 11px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #f4e4d4;
}

.menu-card h3 {
  min-height: 48px;
  margin: 0 6px 9px;
  font-size: 20px;
  line-height: 1.15;
}

.menu-card p {
  min-height: 66px;
  margin: 0 6px 15px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.menu-card__bottom {
  margin: 0 6px 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-soft);
  font-size: 13px;
}

.menu-card__bottom strong {
  color: var(--accent);
  font-size: 17px;
}

/* КАРТИНКИ КАРТОЧЕК */

.menu-card__image--caramel {
  background-image: url("images/caramel.jpg");
}

.menu-card__image--orange {
  background-image: url("images/orange.jpg");
}

.menu-card__image--pistachio {
  background-image: url("images/pistachio.jpg");
}

.menu-card__image--cherry {
  background-image: url("images/cherry.jpg");
}

.menu-card__image--coconut {
  background-image: url("images/coconut.jpg");
}

.menu-card__image--honey {
  background-image: url("images/honey.jpg");
}

/* БАННЕР ЗАКАЗА */

.order-banner {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 20px;
  color: white;
  background:
    linear-gradient(110deg, #b34d28, #d78256 60%, #9a4a2e);
}

.order-banner p {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
}

.order-banner span {
  color: rgba(255, 255, 255, 0.85);
}

/* ГАЛЕРЕЯ */

.gallery {
  padding-bottom: 48px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery__item {
  min-height: 230px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item--1 {
  background-image: url("images/gallery-1.jpg");
}

.gallery__item--2 {
  background-image: url("images/gallery-2.jpg");
}

.gallery__item--3 {
  background-image: url("images/gallery-3.jpg");
}

.gallery__item--4 {
  background-image: url("images/gallery-4.jpg");
}

/* ОТЗЫВЫ */

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  padding: 30px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.review h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.review > p {
  color: #d8822d;
  letter-spacing: 2px;
}

.review blockquote {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ПОДВАЛ */

.footer {
  width: min(1400px, calc(100% - 32px));
  margin: 40px auto 20px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
  border-radius: 20px;
  background: #2a1710;
  color: #fff7f0;
}

.footer .logo {
  display: inline-block;
  margin-bottom: 16px;
  color: #fff7f0;
}

.footer p {
  margin-bottom: 10px;
  color: rgba(255, 247, 240, 0.78);
  line-height: 1.5;
}

/* АДАПТАЦИЯ ДЛЯ ПЛАНШЕТА */

@media (max-width: 1100px) {
  .menu__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    gap: 16px;
  }
}

@media (max-width: 850px) {
  .header {
    padding: 14px 18px;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 64px 34px 38px;
  }

  .hero__image {
    min-height: 360px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .gallery__grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

/* АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНА */

@media (max-width: 560px) {
  .header {
    width: calc(100% - 20px);
    min-height: 66px;
    margin-top: 10px;
  }

  .header__button {
    display: none;
  }

  .logo {
    font-size: 24px;
  }

  .section,
  .hero,
  .order-banner,
  .footer {
    width: calc(100% - 20px);
  }

  .hero {
    min-height: auto;
    border-radius: 16px;
  }

  .hero__content {
    padding: 46px 24px 30px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__image {
    min-height: 280px;
  }

  .section {
    padding: 58px 0;
  }

  .section__heading {
    align-items: start;
    flex-direction: column;
  }

  .menu__tabs {
    overflow-x: auto;
    gap: 22px;
  }

  .menu__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .menu-card {
    padding: 7px;
  }

  .menu-card__image {
  aspect-ratio: 1 / 1;
  height: auto;
}
  .menu-card h3 {
    min-height: auto;
    margin: 6px 3px 8px;
    font-size: 17px;
  }

  .menu-card p {
    min-height: 82px;
    margin: 0 3px 10px;
    font-size: 12px;
  }

  .menu-card__bottom {
    margin: 0 3px 5px;
  }

  .order-banner {
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item {
    min-height: 250px;
  }

  .footer {
    padding: 30px 24px;
  }
}
.menu-category {
  margin-top: 58px;
}

.menu-category:first-of-type {
  margin-top: 0;
}

.menu-category__title {
  margin: 0 0 22px;
  font-size: 30px;
  color: var(--text);
}

.menu__grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 850px;
}

.menu-card__image--tea-raspberry,
.menu-card__image--tea-sea,
.menu-card__image--tea-lychee,
.menu-card__image--lemonade-strawberry,
.menu-card__image--lemonade-mango,
.menu-card__image--lemonade-cucumber,
.menu-card__image--food-croissant,
.menu-card__image--food-toast,
.menu-card__image--food-sandwich,
.menu-card__image--food-brioche,
.menu-card__image--food-quiche,
.menu-card__image--food-syrniki,
.menu-card__image--food-waffle,
.menu-card__image--food-brownie,
.menu-card__image--food-cheesecake {
  background-image: linear-gradient(135deg, #e7c49e, #9a5630);
}

@media (max-width: 850px) {
  .menu__grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .menu__grid--three {
    grid-template-columns: 1fr 1fr;
  }

  .menu-category__title {
    font-size: 27px;
  }
}
.menu-card__image--tea-raspberry {
  background-image: url("images/tea-raspberry.jpg");
}

.menu-card__image--tea-sea {
  background-image: url("images/tea-sea.jpg");
}

.menu-card__image--tea-lychee {
  background-image: url("images/tea-lychee.jpg");
}

.menu-card__image--lemonade-strawberry {
  background-image: url("images/lemonade-strawberry.jpg");
}

.menu-card__image--lemonade-mango {
  background-image: url("images/lemonade-mango.jpg");
}

.menu-card__image--lemonade-cucumber {
  background-image: url("images/lemonade-cucumber.jpg");
}

.menu-card__image--food-croissant {
  background-image: url("images/food-croissant.jpg");
}

.menu-card__image--food-toast {
  background-image: url("images/food-toast.jpg");
}

.menu-card__image--food-sandwich {
  background-image: url("images/food-sandwich.jpg");
}

.menu-card__image--food-brioche {
  background-image: url("images/food-brioche.jpg");
}

.menu-card__image--food-quiche {
  background-image: url("images/food-quiche.jpg");
}

.menu-card__image--food-syrniki {
  background-image: url("images/food-syrniki.jpg");
}

.menu-card__image--food-waffle {
  background-image: url("images/food-waffle.jpg");
}

.menu-card__image--food-brownie {
  background-image: url("images/food-brownie.jpg");
}

.menu-card__image--food-cheesecake {
  background-image: url("images/food-cheesecake.jpg");
}
.menu-card__image {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #f4e4d4 !important;
}
/* Окно онлайн-заказа */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(43, 24, 15, 0.6);
}

.modal--open {
  display: flex;
}

.modal__box {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 44px;
  border-radius: 22px;
  background: #fffaf5;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

.modal__box h2 {
  margin-bottom: 12px;
  font-size: 42px;
}

.modal__text {
  margin-bottom: 26px;
  color: var(--text-soft);
  line-height: 1.55;
}

.modal__close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  border-radius: 50%;
  background: #f2e2d3;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.order-form {
  display: grid;
  gap: 16px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
  color: var(--text);
  font: inherit;
}

.order-form textarea {
  min-height: 110px;
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--accent);
}

.order-form__button {
  margin-top: 8px;
}

.order-success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #e7f4df;
  color: #315c23;
  font-weight: 700;
  line-height: 1.45;
}

.order-success--show {
  display: block;
}

@media (max-width: 560px) {
  .modal__box {
    padding: 34px 22px 26px;
  }

  .modal__box h2 {
    font-size: 34px;
  }
}