:root {
  --bg: #ffca1a;
  --text: #234794;
  --text-strong: #ea1a1e;
  --text-dark: #000;
  --container: 1120px;
  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.8rem);
  --space-m: clamp(1.25rem, 0.95rem + 1vw, 2rem);
  --space-l: clamp(2rem, 1.6rem + 1.5vw, 3.4rem);
  --space-xl: clamp(3.2rem, 2.2rem + 3vw, 6rem);
  --font-body: "Georgia", "Times New Roman", serif;
  --font-title: "Arial Narrow", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

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

a,
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(35, 71, 148, 0.28);
  outline-offset: 3px;
}

.back-link {
  position: fixed !important;
  top: 0.1rem !important;
  left: 0.6rem !important;
  z-index: 999;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem);
  line-height: 0.8;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateX(-2px);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.menu-page {
  padding: var(--space-xl) 0;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.75rem);
}

.brand-logo {
  width: min(220px, 42vw);
  margin-bottom: clamp(0.9rem, 0.6rem + 1vw, 1.6rem);
}

.brand {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 1.2rem + 4vw, 4.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-strong);
}

.menu-section {
  position: relative;
}

.menu-section + .menu-section {
  margin-top: var(--space-xl);
}

.section-heading {
  padding-bottom: var(--space-m);
  margin-bottom: var(--space-l);
  border-bottom: 2px solid var(--text-strong);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 1.25rem + 1.8vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}

.menu-list {
  display: grid;
  gap: clamp(1.4rem, 1rem + 1vw, 2.3rem);
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
}

.menu-copy {
  min-width: 0;
}

.menu-copy h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 1rem + 1vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text-strong);
}

.menu-copy p {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 0.84rem + 0.7vw, 1.55rem);
  line-height: 1.6;
  color: var(--text-dark);
}

.price {
  justify-self: end;
  padding-top: 0.1rem;
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 0.95rem + 1vw, 2rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.menu-note {
  margin: var(--space-l) 0 0;
  font-size: clamp(1rem, 0.84rem + 0.7vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-dark);
}

.menu-note--center {
  text-align: center;
}

.note {
  font-weight: 400;
  font-size: 0.75em;
}

.social-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
  text-decoration: none;
  color: var(--text-strong);
  transition: transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
}

.social-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .menu-page {
    padding: 2rem 0 3rem;
  }

  .hero {
    margin-bottom: 2.5rem;
  }

  .section-heading {
    margin-bottom: 1.75rem;
  }

  .menu-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: start;
  }

  .menu-copy p {
    max-width: 100%;
  }

  .social-links {
    gap: 1rem;
  }
}

@media (min-width: 1440px) {
  .menu-list {
    gap: 2.5rem;
  }

  .menu-copy p {
    max-width: 54ch;
  }
}
