/* THE BACKYARD CHALONG — main site styles. Brand: cream paper, orange / blue / green, Anton + Yellowtail + Archivo */
:root {
  --cream: #EFE6D2;
  --cream-2: #F6F0E2;
  --orange: #E8622A;
  --orange-ink: #A93F16; /* darker orange for small text on cream (AA) */
  --orange-btn: #C94C1B; /* orange for buttons / blocks with white text (AA 4.6:1) */
  --blue: #2F3A57;
  --green: #2F5A3C;
  --ink: #2F3A57;
  --muted: #5B6276;
  --line: rgba(47, 58, 87, .18);
  --wa: #1F7A4D;
  --display: "Anton", "Noto Sans Thai", Impact, "Arial Narrow", sans-serif;
  --hand: "Yellowtail", "Brush Script MT", cursive;
  --body: "Archivo", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  --gutter: 16px;
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden }
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
h1, h2, h3, h4 { margin: 0; font-weight: 400 }
p { margin: 0 }
.small { font-size: 14px; color: var(--muted) }
.center { text-align: center }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--cream); padding: 8px 12px; border-radius: 8px; z-index: 50 }
.skip:focus { left: 8px }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 18px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap; transition: transform .15s ease, background .15s ease }
.btn:hover { transform: translateY(-1px) }
.btn.big { font-size: 21px; padding: 15px 24px }
.btn-book { background: var(--orange-btn); color: #fff; border-color: var(--orange-btn) }
.btn-book:hover { background: #B4431A; border-color: #B4431A }
.btn-wa { background: transparent; color: var(--blue); border-color: var(--blue) }
.btn-wa::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7.5-.1 1.5-.6 1.8-1.2.2-.6.2-1.1.1-1.2 0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7.5-.1 1.5-.6 1.8-1.2.2-.6.2-1.1.1-1.2 0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E") center / contain no-repeat }
.btn-wa:hover { background: var(--blue); color: var(--cream) }
.more { font-weight: 700; color: var(--orange-ink); text-decoration: none; border-bottom: 2px solid currentColor }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(239, 230, 210, .96); backdrop-filter: blur(6px); border-bottom: 2px solid var(--blue) }
.top-in { max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand langs book" "nav nav nav"; align-items: center; gap: 6px 10px }
.brand { grid-area: brand; display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: .02em; color: var(--blue) }
.brand img { width: 40px }
.brand span { white-space: nowrap }
.nav { grid-area: nav; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px }
.nav::-webkit-scrollbar { display: none }
.nav a { flex: none; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; color: var(--blue) }
.nav a:hover { background: rgba(47, 58, 87, .08) }
.langs { grid-area: langs; justify-self: end; display: flex; gap: 3px }
/* Переключатель языка — ссылки на /, /ru/, /th/ (были кнопками: у каждого
   языка теперь свой адрес). Выглядит так же, поэтому правила общие. */
.lang { font: inherit; font-size: 12px; font-weight: 700; color: var(--blue); background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 6px; cursor: pointer; min-width: 34px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none }
.lang[aria-pressed="true"], .lang[aria-current] { background: var(--blue); color: var(--cream); border-color: var(--blue) }
.top .btn-book { grid-area: book; font-size: 15px; padding: 10px 12px }
@media (max-width: 400px) { .brand span { display: none } }
@media (min-width: 960px) {
  .top-in { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav langs book"; padding: 10px 24px }
  .nav { margin: 0; padding: 0; justify-content: center }
  .nav a { font-size: 15px }
  .top .btn-book { font-size: 17px; padding: 12px 18px }
}

/* hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter) 30px; display: grid; gap: 22px; align-items: center }
.hero-txt { display: grid; gap: 12px; justify-items: center; text-align: center }
.hero h1 { width: min(340px, 82vw) }
.hand { font-family: var(--hand); color: var(--orange-ink); font-size: 34px; line-height: 1; transform: rotate(-3deg) }
.lead { font-size: 18px; max-width: 34ch }
.hours { display: grid; gap: 2px; font-weight: 500 }
.hours strong { text-wrap: balance; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .02em; color: var(--green) }
.hours span { font-size: 15px; color: var(--muted) }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px }
.hero-pic { margin: 0 8px 8px 0; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--blue); box-shadow: 8px 8px 0 var(--orange) }
.hero-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
@media (min-width: 960px) {
  .hero { grid-template-columns: 5fr 6fr; padding: 48px 24px 56px; gap: 48px }
  .hero-txt { justify-items: start; text-align: left }
  .hero h1 { width: 400px }
  .ctas { justify-content: flex-start }
  .hand { font-size: 42px }
}

/* fence divider (brand element) */
.fence { height: 22px; max-width: 1200px; margin: 0 auto; opacity: .9; background:
  linear-gradient(var(--blue), var(--blue)) 0 5px / 100% 4px no-repeat,
  linear-gradient(var(--blue), var(--blue)) 0 14px / 100% 4px no-repeat,
  repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 34px) }

/* sections */
.sec { padding: 40px var(--gutter) 48px }
.sec > * { max-width: 1200px; margin-left: auto; margin-right: auto }
.sec-head { text-align: center; margin-bottom: 24px; display: grid; gap: 10px; justify-items: center }
.delivery { margin-top: 18px }
.sec h2 { font-family: var(--display); font-size: clamp(40px, 10vw, 72px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--blue) }
.sub-h { font-family: var(--display); font-size: 30px; text-transform: uppercase; text-align: center; margin-top: 40px; margin-bottom: 6px }
.sub-p { text-align: center; max-width: 60ch; color: var(--muted) }
.band-green { background: var(--green); color: var(--cream) }
.band-green h2, .band-green .sub-h { color: var(--cream) }
.band-green .hand { color: #F3A57F }
.band-green .sub-p { color: #D9D2BF }
.band-blue { background: var(--blue); color: var(--cream) }
.band-blue h2 { color: var(--cream) }
.band-blue .hand { color: #F3A57F }

/* zones */
.zones { display: grid; gap: 16px }
@media (min-width: 640px) { .zones { grid-template-columns: 1fr 1fr } }
@media (min-width: 1000px) { .zones { grid-template-columns: repeat(3, 1fr) } }
.zone { background: var(--cream-2); border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column }
.zone > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--blue) }
.zt { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start }
.zone h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1.05 }
.zone p { font-size: 16px }
.zone > img.pos-mid { object-position: 50% 55% }
/* two photos in one card (kids playground): the same 4:3 frame as the other cards, split 2:1 */
.zpair { aspect-ratio: 4 / 3; display: grid; grid-template-columns: 2fr 1fr; gap: 2px; background: var(--blue); border-bottom: 2px solid var(--blue) }
.zpair img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 60% }
.zpair img.pos-costumes { object-position: 62% 60% }
/* zones without a professional photo: brand line icon on a blue panel, same 4:3 as photos */
.zicon { aspect-ratio: 4 / 3; background: var(--blue); border-bottom: 2px solid var(--blue); display: grid; place-items: center }
.zicon img { width: 46%; max-width: 180px; height: auto; aspect-ratio: 1 }
.zone .more { justify-self: start }
.zone-wide { background: transparent }
.zicon-soon { background: var(--green); border-bottom-style: dashed }
.tag { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--blue); color: var(--cream); padding: 4px 10px; border-radius: 999px }
.sched { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px }
.sched li { display: flex; justify-content: space-between; gap: 10px; border-top: 1.5px dashed var(--line); padding-top: 6px; font-size: 15px }
.sched b { color: var(--green) }
.sched span { font-variant-numeric: tabular-nums; white-space: nowrap }

/* weekly */
.weekly { display: grid; gap: 16px }
@media (min-width: 860px) { .weekly { grid-template-columns: 2fr 1fr } }
.wcard { background: var(--cream); color: var(--ink); border-radius: var(--radius); overflow: hidden; display: grid }
@media (min-width: 640px) { .wcard.movie { grid-template-columns: 1fr 1fr } }
.wcard img { width: 100%; height: 100%; min-height: 220px; object-fit: cover }
.wt { padding: 20px; display: grid; gap: 10px; align-content: start }
.when { font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink) }
.wcard h3 { font-family: var(--display); font-size: 40px; line-height: 1; text-transform: uppercase }
.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.prices li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; border-top: 1.5px solid var(--line); padding-top: 8px; font-size: 15px }
.prices b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--green) }
.wcard .btn { justify-self: start }
.wcard.pizza { background: var(--orange-btn); color: #fff; align-content: center; text-align: center }
.wcard.pizza .wt { justify-items: center; padding: 32px 20px }
.wcard.pizza .when { color: #fff }
.wcard.pizza h3 { font-size: 64px }
.wcard.pizza .more { color: #fff }
.packs { display: grid; gap: 16px; margin-top: 18px }
@media (min-width: 640px) { .packs { grid-template-columns: 1fr 1fr; max-width: 860px } }
.pack { border: 2px solid var(--cream); border-radius: var(--radius); padding: 18px 20px }
.pack h4 { font-family: var(--display); font-size: 28px; text-transform: uppercase }
.pp { margin: 4px 0 8px; color: #D9D2BF }
.pp b { font-family: var(--display); font-weight: 400; font-size: 26px; color: #F3A57F; letter-spacing: .02em }
.pack ul { margin: 0; padding-left: 20px; display: grid; gap: 2px }
.band-green .center { margin-top: 22px }
.band-green .small { color: #D9D2BF; margin-top: 14px }

/* events */
.events { display: grid; gap: 16px }
@media (min-width: 860px) { .events { grid-template-columns: 3fr 2fr } }
.ev-main, .ev-extras { border: 2px solid var(--blue); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; align-content: start; background: var(--cream-2) }
.events h3 { font-family: var(--display); font-size: 32px; text-transform: uppercase; line-height: 1 }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.facts li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-top: 1.5px solid var(--line); padding-top: 8px }
.facts b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--green); letter-spacing: .02em }
.banquet { background: var(--blue); color: var(--cream); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px }
.bq-t { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 15px }
.bq-p b { font-family: var(--display); font-weight: 400; font-size: 34px; color: #F3A57F; letter-spacing: .02em }
.xlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.xlist li { display: flex; justify-content: space-between; gap: 12px; border-top: 1.5px solid var(--line); padding-top: 8px; font-size: 16px }
.xlist b { text-align: right; color: var(--orange-ink); white-space: nowrap }
.ev-extras .ctas { justify-content: flex-start; margin-top: 6px }

/* menu */
.menu { display: grid; gap: 12px }
.menu-cols { display: grid; gap: 12px }
@media (min-width: 900px) { .menu-cols { display: block; columns: 2; column-gap: 12px } .menu-cols .msec { break-inside: avoid; margin-bottom: 12px } }
.msec { background: var(--cream-2); border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden }
.msec summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t i" "s i"; align-items: center; gap: 0 12px }
.msec summary::-webkit-details-marker { display: none }
.msec summary::after { content: "+"; grid-area: i; font-family: var(--display); font-size: 30px; color: var(--orange-ink); line-height: 1 }
.msec[open] summary::after { content: "–" }
.mt { grid-area: t; font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1.1 }
.ms { grid-area: s; font-size: 14px; color: var(--muted) }
.msec.kids { border-color: var(--orange) }
.mnote { padding: 0 18px 6px; font-size: 14px; color: var(--green); font-weight: 700 }
.dishes { list-style: none; margin: 0; padding: 0 18px 14px; display: grid }
@media (min-width: 900px) { .msec.wide .dishes { grid-template-columns: 1fr 1fr; column-gap: 32px } }
/* one photo per menu section header (for now only BBQ & Grill) */
.mpic { width: calc(100% - 36px); margin: 0 18px 12px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 2px solid var(--blue) }
@media (min-width: 900px) { .mpic { aspect-ratio: 16 / 6; object-position: 50% 45% } }
.dish { border-top: 1.5px solid var(--line); padding: 9px 0 }
.dl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
.dl b { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .02em }
.dl em { font-style: normal; font-weight: 700; white-space: nowrap; color: var(--green); font-variant-numeric: tabular-nums }
.dish p { font-size: 14.5px; color: var(--muted); line-height: 1.35; margin-top: 2px }
.dish .cut { font-size: 13px; color: var(--blue) }
/* Заголовок половины меню: еда и напитки идут двумя группами по 11 разделов,
   подряд их не прочитать. */
.mgroup { font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--orange-ink); margin: 22px 0 10px; text-align: center }
/* Лестница цен: у кранов четыре формата, у чая и лимонадов два. Схлопывать
   её нельзя — маленькая подача намеренно дороже за литр, чтобы башня читалась
   выгодной (docs/plan-pivo-bashni.md). */
.pours { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px }
.pours li { display: flex; align-items: baseline; gap: 5px; font-size: 14px }
.pours span { color: var(--muted) }
.pours b { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums }
#menu .sub-p a { font-weight: 700; color: var(--blue) }

/* contacts */
.contacts { display: grid; gap: 20px }
@media (min-width: 860px) { .contacts { grid-template-columns: 1fr 1fr; align-items: start } }
.clist { margin: 0; display: grid; gap: 0 }
.clist > div { border-top: 1.5px solid rgba(239, 230, 210, .3); padding: 14px 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px }
.clist dt { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: #F3A57F; padding-top: 3px }
.clist dd { margin: 0; font-size: 18px }
.clist a { color: var(--cream); font-weight: 700 }
.cleft { display: grid; gap: 16px; min-width: 0 }
/* click-to-load map: a static brand placeholder first, the Google iframe only after the click */
.cmap { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--cream) }
@media (min-width: 860px) { .cmap { aspect-ratio: 16 / 10 } }
.cmap-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; color: var(--ink); background:
  repeating-linear-gradient(0deg, transparent 0 46px, rgba(47, 58, 87, .10) 46px 48px),
  repeating-linear-gradient(90deg, transparent 0 46px, rgba(47, 58, 87, .10) 46px 48px),
  linear-gradient(115deg, transparent 0 46%, rgba(47, 90, 60, .22) 46% 54%, transparent 54%),
  linear-gradient(20deg, transparent 0 62%, rgba(232, 98, 42, .20) 62% 65%, transparent 65%),
  var(--cream) }
.cmap-pin { fill: var(--orange-btn); filter: drop-shadow(0 3px 0 rgba(47, 58, 87, .35)) }
.cmap-note { font-size: 14px; color: var(--muted) }
.cmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block }
.cbox { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 12px; justify-items: center; text-align: center }
.cbox img { width: 90px }
.cbox .btn { width: 100%; max-width: 320px }

/* footer */
.foot { padding: 36px var(--gutter) 110px; display: grid; gap: 8px; justify-items: center; text-align: center }
.foot img { width: 170px; margin-bottom: 6px }
@media (min-width: 960px) { .foot { padding-bottom: 40px } }

/* floating book button on phones */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15; text-decoration: none; background: var(--orange-btn); color: #fff; font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; padding: 14px 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(47, 58, 87, .35) }
@media (min-width: 960px) { .fab { display: none } }
/* Мясо на вес: справа минимальный заказ в граммах, под ним цена за 100 г. */
.dl em.by-weight { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25 }
.dl em.by-weight small { font-size: 13px; font-weight: 600; color: var(--muted) }

/* Фото банкета в «Private events»: настоящий стол с банкета, без лиц гостей крупно. */
.ev-pic { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; border:2px solid var(--blue); margin:0 0 14px }
/* RC-парк — седьмая карточка: растянута на всю ширину ряда, фото слева, текст справа,
   чтобы не висела одна в последнем ряду. */
@media (min-width: 640px) {
  .zone-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch }
  .zone-wide > img { width: 40%; aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 2px solid var(--blue) }
  .zone-wide .zt { align-content: center; padding: 22px 28px }
}
@media (min-width: 1000px) { .zone-wide > img { width: calc((100% - 32px) / 3) } }
