/* ХинкБери, вариант 4 (основной): раскладка и формы варианта 2, шрифты и блок «О нас» из варианта 1. */

:root {
  --white: #FFFFFF;
  --mint: #E9FFEA;
  --ink: #1D201D;
  --ink-2: rgba(29, 32, 29, .66);
  --green: #678A28;          /* зелёный из логотипа; сейчас на странице не используется, заголовок чёрный */
  --block: #557420;          /* тот же зелёный чуть темнее: фон полос с белым текстом */
  --block-deep: #445D19;
  --green-text: #4F6B1C;     /* зелёный для мелкого текста на белом */
  --line: rgba(29, 32, 29, .12);
  --line-2: rgba(29, 32, 29, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --text: 'Golos Text', system-ui, sans-serif;
  --header: 70px;
  --side: clamp(16px, 3vw, 40px);
  --r: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--white);
  accent-color: var(--block);
}
html.reduce { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--block); color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r);
  font: 500 15px/1 var(--text); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--green { background: var(--block); color: var(--white); }
.btn--green:hover { background: var(--block-deep); }
.btn--white { background: var(--white); color: var(--block); }
.btn--white:hover { background: var(--mint); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

.sq {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--block); color: var(--white); border: 2px solid var(--block); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.sq:hover { background: var(--block-deep); border-color: var(--block-deep); }
.sq .icon { width: 20px; height: 20px; }
.sq--line { background: transparent; color: var(--ink); }
.sq--line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Шапка: тонкая белая строка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--side);
  background: var(--white);
  transition: transform .5s var(--ease), box-shadow .3s var(--ease);
}
html.is-scrolled .site-header { box-shadow: 0 2px 0 var(--ink); }
html.is-menu .site-header { transform: translateY(-100%); box-shadow: none; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.nav a {
  font: 500 13.5px/1 var(--text); letter-spacing: .03em;
  text-decoration: none; padding: 10px 0;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.nav a:hover { color: var(--green-text); text-decoration-line: underline; }
.brand img { height: 46px; width: auto; }
.header-end { display: flex; justify-content: flex-end; }
.header-end .btn { height: 40px; font-size: 14px; padding: 0 16px; }

/* ---------- Главный экран ---------- */
.hero { position: relative; height: 250vh; }
.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(var(--header) + clamp(16px, 4vh, 44px)) var(--side) clamp(16px, 3vh, 28px);
}
.hero h1 {
  font: 300 clamp(44px, calc(6.4vw + 18px), 120px)/1 var(--display);
  text-align: center; letter-spacing: -.01em;
}
.hero h1 span { display: block; }
.hero-burger { position: relative; min-height: 0; margin-top: clamp(4px, 1.5vh, 16px); }
.burger-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-foot { display: flex; align-items: center; justify-content: center; gap: 16px; }
.hero-where {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 15px/1.3 var(--text); color: var(--ink-2);
}
.hero-where .icon { color: var(--green-text); width: 18px; height: 18px; }

/* ---------- Плашки ---------- */
.tiles { background: var(--mint); padding: clamp(56px, 8vw, 112px) var(--side); }
.tiles-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: var(--r); padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: var(--ink);
  transition: transform .45s var(--ease);
}
a.tile:hover { transform: translateY(-4px); }
.tile-label { font: 400 clamp(24px, 2.3vw, 34px)/1.05 var(--display); letter-spacing: .005em; }
.tile--maps { background: var(--white); }
.tile-pin { width: clamp(84px, 9vw, 120px); height: auto; margin: -12px 0 0 -12px; }
.tile--photo { background: var(--ink); color: var(--white); }
.tile--photo::after {
  content: ""; position: absolute; inset: 45% 0 0 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(29, 32, 29, 0), rgba(29, 32, 29, .85));
}
.tile--photo img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
a.tile--photo:hover img { transform: scale(1.04); }
.tile--photo .tile-label { margin-top: auto; }
.tile--hours { background: var(--block); color: var(--white); }
.tile-huge { font: 300 clamp(56px, 6vw, 92px)/.92 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile--soon { background: var(--white); color: var(--green-text); box-shadow: inset 0 0 0 2px var(--green-text); }
.tile-icon .icon { width: clamp(56px, 5vw, 72px); height: auto; aspect-ratio: 1; }

/* ---------- Меню ---------- */
.menu { padding: clamp(72px, 9vw, 128px) 0 clamp(96px, 11vw, 160px); }
.mega { font: 300 clamp(56px, 7.2vw, 104px)/.95 var(--display); letter-spacing: -.01em; }
.menu .mega { padding: 0 var(--side); margin-bottom: clamp(24px, 3vw, 40px); }

.menu-bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--white); box-shadow: 0 2px 0 var(--ink);
}
.menu-bar-inner { display: flex; align-items: center; gap: 12px; padding: 12px var(--side) 12px calc(var(--side) - 20px); }
.chips {
  flex: 1; min-width: 0; display: flex; gap: 4px; padding: 0 20px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
/* Край ленты гаснет только с той стороны, где за ним есть ещё разделы. */
.chips.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.chips.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px); mask-image: linear-gradient(to right, transparent, #000 24px); }
.chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 28px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center;
  height: 44px; padding: 0 16px; border-radius: var(--r);
  font: 500 14.5px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: var(--mint); }
.chip.is-on { background: var(--block); color: var(--white); }

.cat { padding-top: clamp(56px, 7vw, 96px); }
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 var(--side); margin-bottom: 22px;
}
.cat-title { font: 400 clamp(38px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.005em; }
.rail-nav { display: flex; gap: 8px; }
.group-title {
  padding: 0 var(--side); margin: 32px 0 14px;
  font: 400 22px/1.15 var(--display); letter-spacing: .01em; color: var(--ink-2);
}

.rail {
  list-style: none; margin: 0; padding: 4px var(--side) 18px;
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.rail:focus-visible { outline-offset: -3px; }
.card { flex: 0 0 clamp(236px, 21vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column; }
.card-photo { aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--mint); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-photo img { transform: scale(1.035); }
.card-photo--none { display: grid; place-content: center; justify-items: center; gap: 12px; }
.card-photo--none img { width: 64px; height: auto; object-fit: contain; }
.card-photo--none span { font: 500 13px/1 var(--text); letter-spacing: .02em; color: var(--green-text); }
.card-body { padding: 14px 2px 0; }
.card-price { font: 400 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.card-price.bump, .board-price.bump { animation: price-in .45s var(--ease); }
@keyframes price-in { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card-name { margin-top: 8px; font: 600 17px/1.3 var(--text); }
.card-star {
  display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 4px;
  background: var(--mint); color: var(--green-text); font: 500 12.5px/1.2 var(--text);
}
.card-desc {
  margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.opt {
  height: 34px; padding: 0 12px; border-radius: 6px;
  border: 2px solid rgba(29, 32, 29, .16); background: var(--white);
  font: 500 13.5px/1 var(--text); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.opt:hover { border-color: var(--block); }
.opt.is-on { background: var(--block); border-color: var(--block); color: var(--white); }

.board {
  list-style: none; margin: 0 var(--side); padding: 12px 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px;
  background: var(--mint); border-radius: var(--r);
}
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 0; }
.board-name { font: 600 16px/1.3 var(--text); }
.board .opts { margin: 0; }
.board-price { min-width: 76px; text-align: right; font: 400 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.cat-note { padding: 0 var(--side); margin-top: 6px; font-size: 14px; color: var(--ink-2); }

.soon {
  margin: 0 var(--side); padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 24px;
  background: var(--block); color: var(--white); border-radius: var(--r);
}
.soon-title { font: 300 clamp(52px, 7vw, 104px)/.95 var(--display); letter-spacing: -.01em; }
.soon p { grid-column: 1; font-size: 17px; color: rgba(255, 255, 255, .88); }
.soon-icon { grid-column: 2; grid-row: 1 / span 2; width: clamp(72px, 9vw, 132px); height: auto; aspect-ratio: 1; color: var(--mint); }

/* ---------- Отзывы ---------- */
.reviews { background: var(--block); color: var(--white); padding: clamp(80px, 10vw, 144px) var(--side); }
.reviews-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.mega--light { font-size: clamp(56px, 7vw, 108px); }
.score-num { margin-top: 18px; font: 300 clamp(104px, 12vw, 176px)/.9 var(--display); letter-spacing: -.01em; }
.score-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 28px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.stars { display: inline-flex; gap: 2px; color: var(--mint); }
.stars .icon { width: 18px; height: 18px; }
.quotes { display: grid; }
.q { margin: 0; padding: 30px 0; }
.q + .q { box-shadow: 0 -2px 0 rgba(255, 255, 255, .22); }
.q blockquote { margin: 0; font: 300 clamp(22px, 2.2vw, 30px)/1.32 var(--display); text-wrap: pretty; }
.q figcaption { margin-top: 14px; font: 500 14.5px/1.3 var(--text); letter-spacing: .01em; color: var(--mint); }

/* ---------- О нас: текст слева, карта справа, как в варианте 1 ---------- */
.about {
  max-width: calc(1360px + 2 * var(--side)); margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--side);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.about .mega { margin-bottom: 24px; }
.lead { max-width: 40ch; margin-bottom: 28px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }
.facts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts .icon { width: 20px; height: 20px; color: var(--green-text); }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.about-map { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--mint); }
.about-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--block); color: var(--white);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 88px var(--side) 120px;
}
.site-footer img { height: 92px; width: auto; }
.slogan { margin-top: 26px; font: 300 clamp(28px, 3vw, 40px)/1.1 var(--display); }
.copy { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .82); }

/* Короткие разделы (одно-два блюда): крупные карточки на всю ширину вместо короткой ленты. */
@media (min-width: 721px) {
  .rail[data-n="1"], .rail[data-n="2"] {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; overflow: visible;
  }
  .rail[data-n="1"] .card, .rail[data-n="2"] .card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: end;
  }
  .rail[data-n="1"] .card-body, .rail[data-n="2"] .card-body { padding: 0 0 6px; }
  .rail[data-n="1"] .card-price, .rail[data-n="2"] .card-price { font-size: clamp(48px, 4.4vw, 64px); }
  .rail[data-n="1"] .card-name, .rail[data-n="2"] .card-name { font-size: 19px; }
  .rail[data-n="1"] .card-desc, .rail[data-n="2"] .card-desc { -webkit-line-clamp: 4; }
}

/* ---------- Планшет ---------- */
@media (max-width: 1024px) {
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: 5 / 4; }
  .reviews-inner, .about { grid-template-columns: 1fr; }
  .about-text { max-width: 620px; }
  .board { grid-template-columns: 1fr; }
}

/* ---------- Телефон ---------- */
@media (max-width: 720px) {
  :root { --header: 60px; }
  .site-header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { height: 36px; }
  .nav { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 14px; }
  .nav a { font-size: 13px; letter-spacing: .01em; padding: 15px 0; }
  .nav a[href="#top"] { display: none; }
  .header-end { grid-column: 3; grid-row: 1; }
  .header-end .route { width: 44px; height: 44px; padding: 0; }
  .route-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-burger { margin-left: calc(-1 * var(--side)); margin-right: calc(-1 * var(--side)); }
  .opt { height: 40px; }

  .hero { height: 225vh; }
  .hero h1 { font-size: clamp(38px, 12.6vw, 60px); line-height: 1.04; }
  .hero-where { font-size: 14px; }

  .tiles-grid { gap: 10px; }
  .tile { aspect-ratio: 1 / 1.08; padding: 14px; }
  .tile-label { font-size: 22px; }
  .tile--photo { padding: 8px; }
  .tile--photo .tile-label { padding: 10px 10px 8px; font-size: 21px; }
  .tile-huge { font-size: 50px; }

  .mega { font-size: clamp(52px, 16vw, 76px); }
  .rail-nav { display: none; }
  .card { flex-basis: 70%; }
  .card-price { font-size: 34px; }
  .board { padding: 6px 18px; }
  .board-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "opts opts"; gap: 8px 12px; }
  .board-name { grid-area: name; }
  .board .opts { grid-area: opts; }
  .board-price { grid-area: price; font-size: 26px; min-width: 0; }
  .soon { grid-template-columns: 1fr; }
  .soon-icon { grid-column: 1; grid-row: auto; width: 64px; order: -1; }
  .score-num { font-size: 112px; }
  .about-cta .btn { flex: 1 1 100%; }
  .site-footer img { height: 72px; }
}

@media (max-width: 380px) {
  .nav { gap: 10px; }
  .nav a { font-size: 12.5px; }
  .brand img { height: 32px; }
}

/* ---------- Без анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; min-height: 100svh; height: auto; }
  .hero-burger { min-height: 50vh; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
