:root {
  --ink: #20211d;
  --muted: #727469;
  --paper: #f6f3eb;
  --card: #fffdf8;
  --red: #d9482f;
  --red-dark: #ad2e20;
  --green: #263f34;
  --line: #ded9cd;
  --radius: 24px;
  --shadow: 0 14px 36px rgba(45, 39, 27, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input { font: inherit; }
.layout__bg, .layout { background: transparent; min-width: 0; }
.layout { width: min(1440px, 100%); margin: 0 auto; }
.company, .company__content, .home, .home__content { width: 100%; max-width: none; }
.company__left { width: 100%; max-width: none; }
.company__right { display: none; }

.header {
  position: relative;
  z-index: 20;
  padding: 16px clamp(20px, 4vw, 64px) 10px;
  background: rgba(255,253,248,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header__bar {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
}
.header__logo { display: flex; align-items: center; }
.header__img { display: block; width: 150px; max-height: 70px; object-fit: contain; }
.hnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}
.hnav__items { display: flex; gap: 28px; align-items: center; }
.hnav__item { display: grid; gap: 2px; }
.hnav__inf, .hnav__name { cursor: pointer; }
.hnav__inf { color: var(--ink); font-weight: 700; }
.hnav__item--login .hnav__name {
  padding: 10px 18px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}
.header__search input, .search__input {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  outline: 0;
}

.cnav {
  position: sticky;
  top: 0;
  z-index: 18;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(246,243,235,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.cnav__overflow { overflow: hidden; }
.cnav__scrollable {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cnav__scrollable::-webkit-scrollbar { display: none; }
.cnav__item {
  flex: 0 0 auto;
  padding: 10px 17px;
  color: #54564e;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.cnav__item:hover, .cnav__item--active {
  color: #fff;
  background: var(--red);
}
.cnav__item--more, .cnav__cursor { display: none; }

.menu { width: 100%; max-width: none; padding: 26px clamp(20px, 4vw, 64px) 70px; }
.sect { margin: 0 0 58px; scroll-margin-top: 90px; }
.sect__title {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.sect__dishes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.ddish {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(45,39,27,.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ddish:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ddish__dummy { display: none; }
.ddish__photos {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ebe6db;
}
.ddish__photos img, .ddish__photo, .lazyload {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.ddish:hover .ddish__photos img { transform: scale(1.035); }
.ddish__meta { position: absolute; top: 13px; left: 13px; z-index: 2; }
.ddish__badge {
  display: inline-block;
  padding: 6px 10px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.ddish__content { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 12px; }
.ddish__price { order: 3; margin-top: auto; padding-top: 16px; }
.ddish__sum { color: var(--red-dark); font-size: 20px; font-weight: 800; }
.ddish__name { margin-bottom: 9px; font-size: 19px; font-weight: 800; line-height: 1.2; }
.ddish__size { color: var(--muted); font-size: 12px; font-weight: 600; }
.ddish__ingredients { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ddish__cart {
  margin: 0 14px 14px;
  padding: 12px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease;
}
.ddish__cart:hover { background: var(--red); }

.footer {
  color: #eef2ec;
  background: var(--green);
  border-radius: 34px 34px 0 0;
}
.footer__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  padding: 52px clamp(20px, 5vw, 72px);
}
.footer__company-name::before {
  content: "EZA PIZZA";
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}
.footer__details, .footer__core, .footer__application-descr { color: #bfcac3; font-size: 13px; }
.footer__core { margin-top: 18px; }
.footer a { color: inherit; }
.footer__social-networks, .footer__navs, .footer__applications { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer__social {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.footer__social--instagram::before { content: "IG"; display: grid; height: 100%; place-items: center; font-weight: 800; }
.footer__nav { cursor: pointer; padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.footer__application img { display: block; height: 42px; }

.mobile-menu-toggle { display: none; }

@media (max-width: 1100px) {
  .sect__dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header__bar { grid-template-columns: 140px 1fr auto; gap: 16px; }
  .header__img { width: 130px; }
  .hnav__items { gap: 14px; }
}

@media (max-width: 820px) {
  .header { padding: 12px 20px; }
  .header__bar { grid-template-columns: 120px 1fr; min-height: 62px; }
  .header__img { width: 110px; max-height: 54px; }
  .header__search, .header__cart { display: none; }
  .hnav { justify-content: flex-end; font-size: 12px; }
  .hnav__item:not(.hnav__item--login) { display: none; }
  .sect__dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer__content { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cnav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 40;
    width: min(86vw, 360px);
    padding: 84px 20px 24px;
    background: var(--card);
    box-shadow: -20px 0 50px rgba(30,31,27,.18);
    transform: translateX(105%);
    transition: transform .25s ease;
  }
  .mobile-menu-open .cnav { transform: translateX(0); }
  .mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(20,24,21,.45);
  }
  .cnav__scrollable { display: grid; gap: 6px; overflow: visible; }
  .cnav__item { width: 100%; padding: 12px 16px; }
  .mobile-menu-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: grid;
    width: 58px;
    height: 58px;
    padding: 17px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 10px 28px rgba(173,46,32,.35);
    place-content: center;
    gap: 5px;
  }
  .mobile-menu-toggle span { display: block; width: 23px; height: 2px; background: #fff; transition: .2s ease; }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu { padding: 24px 12px 44px; }
  .sect { margin-bottom: 40px; }
  .sect__title { margin-left: 4px; font-size: 34px; }
  .sect__dishes { grid-template-columns: 1fr; gap: 13px; }
  .ddish { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-radius: 18px; }
  .ddish__photos { grid-row: span 2; height: 100%; min-height: 170px; aspect-ratio: auto; }
  .ddish__content { padding: 14px 14px 5px; }
  .ddish__name { font-size: 17px; }
  .ddish__ingredients { font-size: 12px; }
  .ddish__sum { font-size: 17px; }
  .ddish__cart { margin: 6px 10px 10px; padding: 10px; font-size: 13px; }
  .footer { border-radius: 24px 24px 0 0; }
  .footer__content { gap: 24px; padding: 36px 20px; }
}

@media (max-width: 390px) {
  .hnav__item--login { display: none; }
  .header__bar { display: flex; justify-content: center; }
  .ddish { grid-template-columns: 108px minmax(0, 1fr); }
  .ddish__ingredients { display: none; }
}
