@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@500;600;700&display=swap');

/* ── Design system: TV signage 43" / 1920×1080 / 3–5 м ──
   Референсы: charcoal + white + amber (smokehouse),
   зонирование, крупный sans-serif, фото как герой */

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

:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --text: #ffffff;
  --muted: #8a8a8a;
  --accent: #f0a030;
  --accent-soft: rgba(240, 160, 48, 0.12);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --fs-brand: 7.2vmin;
  --fs-cat: 3.6vmin;
  --fs-col-title: 3.8vmin;
  --fs-dish: 2.7vmin;
  --fs-price: 3.1vmin;
  --fs-tile-label: 2.8vmin;
  --fs-dish-mini: 2.15vmin;
  --fs-price-mini: 2.5vmin;
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

/* ── Screen shell ── */

.screen {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  padding: 2.2vh 2.4vw;
  background: var(--bg);
}

.screen-head {
  display: flex;
  align-items: center;
  gap: 2vw;
  flex-shrink: 0;
  padding-bottom: 1.2vh;
  margin-bottom: 1.2vh;
}

.screen-head__brand {
  font-family: var(--font-display);
  font-size: var(--fs-brand);
  letter-spacing: 0.06em;
  line-height: 0.9;
  white-space: nowrap;
}

.screen-head__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.screen-head__cat {
  font-family: var(--font-display);
  font-size: var(--fs-cat);
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
}

.screen-body {
  flex: 1;
  min-height: 0;
}

/* ── Dish row ── */

.dishes {
  display: flex;
  flex-direction: column;
  gap: 0.55vh;
}

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1.2vw;
  line-height: 1.2;
}

.dish__name {
  font-size: var(--fs-dish);
  font-weight: 500;
}

.dish__note {
  display: inline-block;
  margin-left: 0.45em;
  font-size: 0.82em;
  color: var(--muted);
  font-weight: 500;
}

.dish__price {
  font-size: var(--fs-price);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ── TV1: column zones ── */

.screen-body--drinks .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr auto;
  gap: 2vw;
  height: 100%;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  padding-top: 0.5vh;
}

.col--wide {
  grid-column: 1 / -1;
  padding-top: 1.5vh;
  border-top: 1px solid #1a1a1a;
}

.col--wide .dishes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4vw;
  row-gap: 0.55vh;
}

.col__title {
  font-family: var(--font-display);
  font-size: var(--fs-col-title);
  letter-spacing: 0.1em;
  color: var(--accent);
  line-height: 1;
}

/* ── TV3: bento — 6 колонок, вся ширина ── */

.screen.screen--hot {
  padding: 0;
}

.screen--hot {
  padding: 0;
}

.screen--hot .screen-head {
  padding: 0.28vh 0.45vw 0.15vh;
  margin-bottom: 0;
  flex-shrink: 0;
}

.screen--hot .screen-head__brand {
  font-size: 3.8vmin;
}

.screen--hot .screen-head__cat {
  font-size: 2vmin;
}

.screen--hot .screen-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.bento { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: var(--bg);
}

.bento > .tile {
  min-height: 0;
  overflow: hidden;
}

.bento__b1 { grid-column: 1; grid-row: 1; }
.bento__b2 { grid-column: 4; grid-row: 2; }

/* Сверху — бургеры и говядина с фри; слева снизу — свинина с фри; справа снизу — рёбра */
.bento__f1 { grid-column: 2; grid-row: 1; }
.bento__f2 { grid-column: 3; grid-row: 1; }
.bento__br { grid-column: 2; grid-row: 2; }
.bento__pastr { grid-column: 3; grid-row: 2; }

/* Справа — рёбра и колбаски */
.bento__ribs { grid-column: 4; grid-row: 1; }
.bento__saus { grid-column: 1; grid-row: 2; }

.screen--hot .tile {
  background: var(--bg);
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.tile--photo .tile__photo {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.tile--photo .tile__photo--cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.bento__f1 .tile__photo--cover img {
  object-position: 22% center;
}

.bento__f2 .tile__photo--cover img {
  object-position: 78% center;
}

.bento__b1 .tile__photo--cover img,
.bento__ribs .tile__photo--cover img {
  object-position: center 42%;
}

.bento__br .tile__photo--cover img,
.bento__ribs .tile__photo--cover img {
  transform: scaleX(-1);
}

.bento__saus .tile__photo--cover img {
  transform: scaleY(-1);
}

.bento__b2.tile--photo .tile__photo--cover {
  transform: rotate(180deg);
  transform-origin: center center;
}

.tile.bento__pastr.tile--photo .tile__photo--cover {
  transform: none;
}

.tile.bento__pastr.tile--photo .tile__photo--cover img {
  object-position: center 37%;
  transform: translateY(-1.5%);
}

.tile--photo .dishes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0.75vh 0.55vw 0.55vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 32%,
    rgba(0, 0, 0, 0.97) 100%
  );
}

.tile--photo .dish {
  display: block;
}

.tile--photo .dish__name {
  display: block;
  font-size: 2.75vmin;
  line-height: 1.12;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
}

.tile--photo .dish__note {
  display: block;
  margin-top: 0.1em;
  font-size: 2.2vmin;
  color: #c8c8c8;
  text-shadow: 0 1px 3px #000;
}

.tile--photo .dish__price {
  display: block;
  margin-top: 0.12em;
  font-size: 3.2vmin;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 1px 4px #000;
}

.tile--fit .tile__photo {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35vh 0.3vw 0;
  background: #080808;
}

.tile--fit .tile__photo--fit img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tile--fit .dishes {
  position: static;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.45vh 0.45vw 0.4vh;
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tile--fit .dish {
  display: block;
}

.tile--fit .dish__name {
  display: block;
  font-size: 1.55vmin;
  line-height: 1.12;
  font-weight: 600;
}

.tile--fit .dish__note {
  display: block;
  margin-top: 0.08em;
  font-size: 1.35vmin;
  color: var(--muted);
}

.tile--fit .dish__price {
  display: block;
  margin-top: 0.12em;
  font-size: 1.85vmin;
  font-weight: 700;
  color: var(--accent);
}

.tile--side .dish {
  display: block;
}

.tile--side .dish__name {
  display: block;
  font-size: 2vmin;
  line-height: 1.1;
  font-weight: 600;
}

.tile--side .dish__note {
  display: block;
  margin-left: 0;
  margin-top: 0.12em;
  font-size: 1.65vmin;
}

.tile--side .dish__price {
  display: block;
  margin-top: 0.18em;
  font-size: 2.4vmin;
  font-weight: 700;
}

.tile--side .dishes {
  padding: 0.65vh 0.5vw 0.5vh;
  gap: 0.25vh;
}

/* ── Photo tile ── */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  overflow: hidden;
}

.tile__photo {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.tile__photo img {
  display: block;
  height: 100%;
}

.tile__photo--crop-full img {
  width: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Общее фото — два бургера; left/right — по одному */
.tile__photo--crop-left img {
  width: 205%;
  max-width: none;
  object-fit: cover;
  object-position: 8% 55%;
}

.tile__photo--crop-right img {
  width: 205%;
  max-width: none;
  object-fit: cover;
  object-position: 92% 55%;
  margin-left: -105%;
}

.tile__photo--crop-center img {
  width: 205%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
  margin-left: -52.5%;
}

.tile__photo--empty {
  background: #111;
}

.tile__photo--empty::before {
  content: attr(data-label);
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6vmin;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tile .dishes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  gap: 0.25vh;
  padding: 0.85vh 0.55vw 0.55vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 18%,
    rgba(0, 0, 0, 0.97) 100%
  );
}

.tile .dish__note {
  font-size: 1.75vmin;
  color: var(--muted);
}

.tile .dish__name {
  font-size: 2.15vmin;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
}

.tile .dish__price {
  font-size: 2.5vmin;
  font-weight: 700;
  text-shadow: 0 1px 4px #000;
}

.tile--burgers .dishes,
.tile--pelmeni .dishes {
  padding: 1.4vh 0.7vw 0.9vh;
}

.tile--mini .dish__name {
  font-size: 2.15vmin;
  line-height: 1.1;
}

.tile--mini .dish__price {
  font-size: 2.5vmin;
}

.tile--mini .dishes {
  padding: 0.75vh 0.5vw 0.55vh;
}

/* ── Home ── */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 6vh;
  padding: 4vh 4vw;
  background: var(--bg);
}

.home__brand {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vmin, 8rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-align: center;
}

.home__tag {
  font-size: 2.2vmin;
  color: var(--muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 1.5vh;
}

.home__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  width: 100%;
  max-width: 1500px;
}

.home__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1vh;
  min-height: 30vh;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: background 0.2s;
}

.home__link:hover:not(.home__link--off) {
  background: #161616;
}

.home__link--off {
  opacity: 0.3;
  pointer-events: none;
}

.home__num {
  font-family: var(--font-display);
  font-size: 6vmin;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.home__name {
  font-size: 2.8vmin;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.home__soon {
  font-size: 1.8vmin;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Fullscreen hint ── */

.fs-hint {
  position: fixed;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  padding: 1vh 2.5vw;
  background: rgba(0, 0, 0, 0.85);
  color: var(--muted);
  font-size: 1.8vmin;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.4s;
}

.fs-hint--hidden {
  opacity: 0;
}
