/* ============ Fonts (self-hosted, Latin + Cyrillic subsets) ============ */
@font-face { font-family: "Oi"; src: url("../assets/fonts/oi-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Oi"; src: url("../assets/fonts/oi-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Yeseva One"; src: url("../assets/fonts/yeseva-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Yeseva One"; src: url("../assets/fonts/yeseva-one-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; src: url("../assets/fonts/roboto-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* ============ Tokens ============ */
:root {
  --cream: #ECD9C3;
  --red: #B84141;
  --ink: #2F1717;
  --gold: #EDC16E;
  --pink: #F3BEAE;
  --teal: #22646D;
  --night: #1F1F1F;
  --cocoa: #392222;
  --white: #FFFDF4;

  --display: "Yeseva One", "Georgia", serif;
  --fat: "Oi", "Yeseva One", "Georgia", serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 5vw;
  --radius: 48px;
  --border: 8px;

  --fs-h1: clamp(1.9rem, 3.9vw, 3.5rem);
  --fs-h2: clamp(1.9rem, 3.35vw, 3rem);
  --fs-h3: clamp(1.9rem, 2.8vw, 2.5rem);
  --fs-massive: clamp(2.5rem, 5.4vw, 4.9rem);
  --fs-btn: clamp(1.42rem, 2.22vw, 2rem);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; background: var(--ink); color: var(--cream); border-radius: 12px; }
.skip-link:focus { top: 12px; }

.h1, .h2, .h3, .btn, .nav__logo, .dish__name, .nav__link, .price, .review__who, .avatar, .footer__title { font-family: var(--display); }
.massive, .marquee__item, .hero__title, .hero__sticker span { font-family: var(--fat); }

.container { padding-inline: var(--gutter); }
.section { padding-block: 48px; }
.eyebrow { font-size: 20px; line-height: 1.5; color: var(--red); }
.h1 { font-size: var(--fs-h1); line-height: 1.2; font-weight: 400; color: var(--red); }
.h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 400; color: var(--red); }
.h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 400; color: var(--ink); }
.massive { font-size: var(--fs-massive); line-height: 1.2; font-weight: 400; color: var(--red); text-align: center; }
.divider { height: 4px; background: var(--ink); }

.card { border: var(--border) solid var(--ink); border-radius: var(--radius); }
.card--gold { background: var(--gold); }
.card--pink { background: var(--pink); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px;
  min-width: 278px;
  font-size: var(--fs-btn); line-height: 1.5; font-weight: 400;
  color: var(--cream); text-decoration: none;
  background: var(--red);
  border: 3px solid var(--cream);
  border-radius: 75%;
  box-shadow: 0 0 0 4px var(--red);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.btn:hover { transform: rotate(-3deg) scale(1.06); }
.btn:active { transform: scale(.96); }
.btn--dark { background: var(--cocoa); box-shadow: 0 0 0 4px var(--cocoa); }
.btn--small { min-width: 0; font-size: 20px; padding: 16px 32px; }

/* ============ Nav ============ */
.nav { position: relative; z-index: 20; }
.nav__drip {
  position: absolute; top: 0; left: 0; z-index: -1;
  width: 100%; height: 10.5vw; min-height: 44px;
  pointer-events: none;
}
.nav__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 72px; padding-inline: var(--gutter);
}
.nav__logo {
  font-size: clamp(1.25rem, 2.6vw, 2.4rem); line-height: 1.2; font-weight: 400;
  color: var(--red); text-transform: uppercase; text-decoration: none; letter-spacing: -.01em;
  justify-self: start;
}
.nav__menu { display: flex; align-items: center; }
.nav__link {
  padding: 8px 16px; font-weight: 400; font-size: 16px;
  color: #222; text-decoration: none; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px;
  background: var(--red); border-radius: 3px; transform: scaleX(0); transition: transform .25s;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }
.nav__backdrop { display: none; }

/* ============ Hero ============ */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 40px;
  overflow-x: clip;
}
.hero__side { width: 19vw; max-width: 300px; flex: none; }
.hero__side--left { transform: translateX(-30%) rotate(-8deg); }
.hero__side--right { transform: translateX(30%) rotate(8deg); }
.hero__center { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.hero__title-wrap { position: relative; padding: 0 40px; }
.hero__title {
  display: flex; flex-direction: column; align-items: center;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.1vw, 4.9rem); line-height: 1.22; gap: .04em; letter-spacing: -.01em;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--teal), 8px 8px 0 var(--ink), 11px 11px 0 var(--gold), 13px 13px 0 var(--ink);
}
.hero__title span:nth-child(2) { transform: translateX(-4%); }
.hero__eyes {
  position: absolute; right: -20%; top: -6%; width: 22%;
  animation: peek 4s ease-in-out infinite;
}
.hero__sticker {
  position: absolute; left: -16%; bottom: -10%; width: 19%; aspect-ratio: 1;
  display: grid; place-items: center;
  background: url("../assets/img/badge-gold.svg") center / contain no-repeat;
  animation: wobble 3s ease-in-out infinite;
}
.hero__sticker span {
  font-weight: 400; color: var(--red);
  font-size: clamp(.8rem, 1.5vw, 1.4rem); transform: rotate(-12deg);
}
@keyframes peek { 0%, 70%, 100% { transform: translate(0, 0); } 80% { transform: translate(6px, -4px) rotate(4deg); } 90% { transform: translate(-4px, 2px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.05); } }

/* ============ Marquee ============ */
.marquee { overflow: hidden; padding-block: 32px; }
.marquee__track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee__track--slow { animation-duration: 45s; }
.marquee--reviews:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.15; font-weight: 400; white-space: nowrap;
  padding-right: 16px;
}
.is-gold { color: var(--gold); }
.is-teal { color: var(--teal); }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ============ Why ============ */
.why__header { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; }
.why__header > * { grid-column: 2; }
.why__grid {
  display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px;
  margin-top: 24px; min-height: 462px;
}
.why-card { display: flex; flex-direction: column; justify-content: center; padding: 24px 32px; position: relative; }
.why-card__body { display: flex; flex-direction: column; gap: 32px; }
.why-card__body .h3 { margin-top: 16px; }
.why-card__body p { margin-top: -16px; }
.why-card--pop { padding-top: 0; }
.why-card__eyes--pop { width: 82%; margin: -60px auto 0; }
.why-card__eyes--small { width: 55%; margin-bottom: 8px; }
.why-card--wide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; }
.why-card__eyes--wide { width: 100%; }
.more-link {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content;
  text-decoration: none; font-size: 16px;
}
.more-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.more-link:hover svg { transform: translateX(5px); }
.why-card__eyes { transition: transform .3s; }
.why-card:hover .why-card__eyes { transform: translateY(-6px) rotate(-3deg); }

/* ============ Menu ============ */
.menu__box { padding: 24px; }
.menu__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px 16px;
}
.menu__box > .divider { margin-bottom: 32px; }
.divider--row { margin-block: 32px; }
.menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-inline: 48px; }
.dish { position: relative; display: flex; flex-direction: column; align-items: center; padding-right: 80px; }
.dish img { width: 100%; height: 239px; object-fit: contain; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.dish:hover img { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.dish__name { text-wrap: balance; margin-top: 8px; font-size: clamp(1.7rem, 2.2vw, 2rem); line-height: 1.5; font-weight: 400; text-align: center; color: var(--ink); }
.price {
  position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  display: grid; place-items: center;
  background: url("../assets/img/badge-red.svg") center / contain no-repeat;
  font-weight: 400; font-size: 15px; line-height: 1; text-align: center; color: var(--cream);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.price small { display: block; font-size: .7em; margin-top: 2px; font-family: var(--body); }
.dish:hover .price { transform: rotate(25deg) scale(1.15); }
.menu__extra:not([hidden]) { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ============ Reviews ============ */
.reviews__head { display: flex; align-items: center; justify-content: center; }
.reviews__mascot { width: 140px; }
.reviews__mascot--flip { transform: scaleX(-1); }
.reviews__head .h2 { padding-inline: 48px; text-align: center; }
.review {
  flex: none; width: 416px; margin: 0 32px;
  padding: 24px; display: flex; flex-direction: column; gap: 24px;
  background: var(--gold); border: var(--border) solid var(--ink); border-radius: var(--radius);
}
.review__stars { display: flex; gap: 2px; color: var(--ink); }
.review__stars svg { width: 20px; height: 20px; fill: currentColor; }
.review__text { font-size: 18px; line-height: 1.5; min-height: 54px; }
.review__who { display: flex; align-items: center; gap: 16px; font-size: 18px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 400; color: var(--cream); border: 3px solid var(--ink);
}

/* ============ CTA ============ */
.cta__box {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--night); border-radius: var(--radius); padding-block: 96px; overflow: hidden;
}
.cta__burger { width: 24%; max-width: 330px; }
.cta__burger--left { transform: translateX(-22%) rotate(-6deg); }
.cta__burger--right { transform: translateX(22%) rotate(6deg); }
.cta__center { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 492px; }
.cta__center .massive { max-width: 100%; text-wrap: balance; }
.cta__text { color: var(--cream); text-align: center; }
.cta__center .btn { margin-top: 64px; }

/* ============ Footer ============ */
.footer__box { background: var(--pink); border-radius: var(--radius); padding: 48px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer__title { font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.subscribe { justify-self: end; width: 100%; max-width: 440px; }
.subscribe__row { display: flex; gap: 16px; }
.subscribe__input {
  flex: 1; min-width: 0; height: 48px; padding: 8px 12px;
  background: #fff; border: 1px solid #000; border-radius: 16px; color: var(--ink);
}
.subscribe__input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.subscribe__btn {
  height: 48px; padding: 9px 24px; background: transparent; border: 1px solid #000; color: var(--ink);
  cursor: pointer; transition: background .2s, color .2s;
}
.subscribe__btn:hover { background: var(--ink); color: var(--pink); }
.subscribe__note { margin-top: 12px; font-size: 12px; }
.subscribe__msg { margin-top: 6px; font-size: 14px; font-weight: 500; min-height: 21px; }
.subscribe__msg.is-error { color: var(--red); }
.subscribe__msg.is-ok { color: var(--teal); }

.footer__links {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin-block: 80px;
}
.footer__logo { font-weight: 700; font-size: 24px; line-height: 1.5; text-transform: uppercase; }
.footer__col { display: flex; flex-direction: column; gap: 16px; border-radius: 12px; transition: background .4s, box-shadow .4s; }
.footer__col.is-flash { background: var(--gold); box-shadow: 0 0 0 10px var(--gold); }
.footer__head { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.footer__col a { text-decoration: none; width: fit-content; }
.footer__col a:hover, .footer__legal a:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; font-size: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__social { display: flex; gap: 16px; }
.footer__social svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; transition: transform .2s; }
.footer__social .fill { fill: var(--ink); stroke: none; }
.footer__social a:hover svg { transform: translateY(-3px); }

/* ============ Tablet ============ */
@media (max-width: 991px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why-card--wide { grid-column: 1 / -1; }
  .menu__grid { padding-inline: 0; }
  .dish { padding-right: 0; }
  .dish img { height: 190px; }
  .price { width: 60px; height: 60px; font-size: 14px; right: -4px; }
  .footer__links { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .review { width: 360px; }
}

/* ============ Mobile ============ */
@media (max-width: 767px) {
  :root { --radius: 40px; }
  .nav__inner { grid-template-columns: 1fr auto; min-height: 61px; }
  .nav__toggle {
    display: grid; gap: 5px; width: 40px; height: 48px; place-content: center;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 31;
  }
  .nav__toggle span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
    width: min(54vw, 260px);
    flex-direction: column; justify-content: flex-start; gap: 24px; padding-top: 80px;
    background: #fff;
    transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.is-open .nav__menu { transform: none; visibility: visible; }
  .nav__link { font-size: 18px; }
  .nav__backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(47, 23, 23, .35); }
  .nav__backdrop[hidden] { display: none; }

  .hero { padding-top: 40px; }
  .hero__side { display: none; }
  .hero__center { width: 100%; gap: 40px; }
  .hero__title { font-size: 10.6vw; text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--teal), 6px 6px 0 var(--gold), 8px 8px 0 var(--ink); -webkit-text-stroke-width: 1.5px; }
  .hero__eyes { right: 0; top: -18%; width: 16%; }
  .hero__title-wrap { padding: 0 24px; }
  .hero__sticker { left: 0; top: -20%; bottom: auto; width: 18%; }
  .btn { min-width: 0; padding: 14px 28px; }

  .marquee { padding-block: 24px; }
  .why__header { display: block; }
  .eyebrow { font-size: 16px; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 90px; }
  .why-card { padding: 24px; padding-top: 0; }
  .why-card__eyes { width: 80%; margin: -80px auto 8px; }
  .why-card--wide { display: flex; }
  .why-card__eyes--small { width: 60%; margin: -60px auto 8px; }
  .why-card__body { gap: 24px; padding-bottom: 8px; }
  .why-card__body .h3 { margin-top: 0; }
  .why-card__body p { margin-top: -12px; }

  .menu__box { padding: 24px 16px; }
  .menu__top { flex-direction: column; align-items: flex-start; padding: 0 8px 16px; }
  .menu__grid { grid-template-columns: 1fr; gap: 24px; padding-inline: 16px; }
  .dish { padding-right: 0; }
  .dish img { height: 200px; }
  .price { width: 64px; height: 64px; font-size: 15px; }

  .reviews__mascot { width: 72px; }
  .reviews__head .h2 { padding-inline: 12px; }
  .review { width: 290px; margin: 0 12px; }
  .review__text { font-size: 16px; }

  .cta__box { padding: 80px 16px; }
  .cta .massive { font-size: 9vw; }
  .cta__burger { display: none; }
  .cta__center .btn { margin-top: 32px; }

  .footer__box { padding: 32px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .subscribe { justify-self: stretch; }
  .subscribe__row { flex-direction: column; }
  .footer__links { grid-template-columns: 1fr; gap: 32px; margin-block: 48px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .footer__legal { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
