/* PlateMate — главная: автоматы, карта, меню вендинга. Общие стили — в brand.css. */
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.mt { margin-top: 64px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--green); font-weight: 700; cursor: pointer; margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: var(--white); padding: 40px 0 36px; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.kicker { color: var(--green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
html[lang="th"] .kicker { text-transform: none; letter-spacing: 0; font-size: 15px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .98; }
.hero h1 span { display: block; }
.hero__accent { color: var(--orange); }
html[lang="th"] .hero h1 { line-height: 1.2; letter-spacing: 0; }
.lead { font-size: clamp(16px, 1.7vw, 19px); color: #c9c9c9; margin-top: 18px; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 34px; font-weight: 800; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; }
.stats li:first-child b { color: var(--green); }
.stats span { font-size: 14px; color: var(--gray-60); margin-top: 6px; }
/* реальное фото автомата */
.hero__art img {
  display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%;
  border-radius: 20px; border: 1px solid #222;
}
@media (min-width: 820px) {
  .hero { padding: 64px 0 56px; }
  .hero__in { grid-template-columns: 1.25fr .75fr; gap: 48px; }
  .hero__art img { aspect-ratio: 5 / 6; max-height: 520px; object-position: 50% 78%; }
}

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section--petal { background: var(--petal); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark .muted { color: var(--gray-60); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__head .muted { margin-top: 8px; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

.seg { display: inline-flex; background: var(--white); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--graphite); }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* ---------- finder ---------- */
.finder { display: grid; gap: 16px; }
.finder__map { border-radius: var(--radius); overflow: hidden; background: #e8e2da; }
#map { height: 46vh; min-height: 300px; }
.finder__list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) {
  .finder { grid-template-columns: 400px 1fr; align-items: start; }
  .finder__list { order: -1; }
  .finder__map { position: sticky; top: 84px; }
  #map { height: calc(100vh - 124px); max-height: 680px; }
  .mlist { max-height: calc(100vh - 214px); overflow-y: auto; padding-right: 4px; }
}

.geo-msg { font-size: 14px; padding: 10px 14px; border-radius: 12px; background: var(--white); }
.geo-msg--ok { background: var(--green-tint); color: var(--green-ink); font-weight: 600; }
.geo-msg--warn { background: #fff1e0; color: #8a4500; }
.geo-msg a { font-weight: 700; color: inherit; }

.mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mcard { background: var(--white); border: 2px solid transparent; border-radius: var(--radius); transition: border-color .15s ease; }
.mcard:hover { border-color: #e9d6c6; }
.mcard.is-selected { border-color: var(--black); }
.mcard__main { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 14px; cursor: pointer; }
.mcard__dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(140, 174, 19, .2); }
.mcard.is-soon .mcard__dot { background: var(--gray-60); box-shadow: 0 0 0 4px #eee; }
.mcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mcard__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mcard__top strong { font-size: 16px; font-weight: 700; }
.mcard__dist { flex: none; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.mcard__addr { color: var(--graphite); font-size: 14px; }
.mcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mcard__more { padding: 0 14px 14px 38px; display: flex; flex-direction: column; gap: 8px; }
.mcard__where { font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.mcard__where .ic { color: var(--green); width: 18px; height: 18px; margin-top: 1px; }
.mcard__hint { font-size: 13px; color: var(--graphite); }
.mcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* способы оплаты на карточке автомата */
.paym { display: flex; flex-wrap: wrap; gap: 6px; }
.paym > span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px 3px 6px; border-radius: 999px; background: #f4ece5; color: var(--black); }
.paym .ic { width: 16px; height: 16px; color: var(--green-ink); }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f4ece5; color: var(--graphite); white-space: nowrap; }
.badge--live { background: var(--green-tint); color: var(--green-ink); }
.badge--soon { background: #efefef; color: var(--graphite); }
.badge--public { background: #e2f3ea; color: #1f5c3c; }
.badge--residents, .badge--staff, .badge--members { background: #e4eff5; color: #1d4a61; cursor: help; }
.empty { color: var(--graphite); padding: 24px 0; }
.section--dark .empty { color: var(--gray-60); }

/* map pins */
.pin {
  position: relative; display: block; width: 30px; height: 30px; margin: 2px 0 0;
  background: var(--black); border: 3px solid var(--white); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--green); }
.pin--soon { background: var(--gray-60); }
.pin--soon::after { background: var(--white); }
.pin--sel { background: var(--orange); transform: rotate(-45deg) scale(1.25); }
.pin--sel::after { background: var(--black); }
.pop { display: flex; flex-direction: column; gap: 4px; font-family: var(--font); min-width: 200px; }
.pop strong { font-size: 15px; }
.pop > span { color: var(--graphite); font-size: 13px; }
.pop .paym { margin-top: 6px; }
.pop__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pop__actions .btn { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 14px 16px; }
.leaflet-container a.btn--dark { color: var(--white); }

/* ---------- menu (карточки в стиле этикетки упаковки) ---------- */
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-60); font-weight: 600; }
.sort select { font: inherit; color: var(--white); background: var(--card-dark); border: 1px solid var(--line-dark); border-radius: 10px; padding: 8px 10px; min-height: 40px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 10px; padding: 2px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 10px; padding: 2px 0 12px; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line-dark); background: transparent; color: var(--white); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip .ic { color: var(--green); width: 18px; height: 18px; }
.chip small { color: var(--gray-60); font-weight: 600; }
.chip:hover { border-color: #555; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--black); }
.chip[aria-pressed="true"] .ic, .chip[aria-pressed="true"] small { color: var(--black); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.dish { background: var(--card-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dish__img { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 45%, #2a2a2a 0, #141414 62%); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; }
.dish__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); }
.dish__ph .ic { width: 84px; height: 84px; padding: 18px; border: 1.5px solid currentColor; border-radius: 50%; }
.dish__ph .ic svg { stroke-width: 1.3; }
.dish__price { position: absolute; right: 12px; bottom: 12px; background: var(--orange); color: var(--black); font-weight: 800; font-size: 18px; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.dish__w { position: absolute; left: 12px; bottom: 14px; font-size: 13px; font-weight: 700; color: var(--white); background: rgba(0,0,0,.6); border: 1px solid #3a3a3a; padding: 3px 10px; border-radius: 999px; }
.dish__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dish h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15; }
html[lang="th"] .dish h3 { text-transform: none; }
.dish__desc { font-size: 14px; color: #b5b5b5; }
.dish__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px 3px 6px; border-radius: 999px; border: 1px solid #3a3a3a; color: #e5e5e5; }
.tag .ic { width: 15px; height: 15px; color: var(--green); }
.tag--bestseller { border-color: var(--orange); }
.tag--bestseller .ic { color: var(--orange); }
.dish__macros { display: flex; align-items: baseline; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--gray-60); }
.dish__macros > span { flex: none; padding: 0 9px; border-left: 1px solid #3a3a3a; text-align: center; line-height: 1.2; }
.dish__macros > span:first-child { padding-left: 0; border-left: 0; text-align: left; }
.dish__macros b { display: block; color: var(--white); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__macros .dish__kcal b { font-size: 22px; display: inline; margin-right: 3px; }
.fine { font-size: 13px; color: var(--gray-60); margin-top: 20px; }

/* ---------- how / why ---------- */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps__top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 6px; }
.steps__top b { font-size: 48px; font-weight: 800; line-height: .8; }
.steps__top .ic { color: var(--orange); }
.steps__top .ic svg { stroke-width: 1.5; }
.steps h3 { text-transform: uppercase; font-size: 16px; letter-spacing: .01em; }
html[lang="th"] .steps h3 { text-transform: none; }
.steps p { color: #bdbdbd; font-size: 15px; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pay span { font-size: 12px; font-weight: 700; border: 1px solid #3a3a3a; border-radius: 6px; padding: 3px 8px; }
.pay__note { font-size: 12px; color: var(--gray-60); }
.why-wrap { display: grid; gap: 14px; margin-top: 26px; }
/* фирменная графика: как боковое панно автомата */
.why-art {
  position: relative; overflow: hidden; min-height: 340px; padding: 28px 24px 70px;
  border-radius: var(--radius); color: var(--white);
  background: radial-gradient(120% 90% at 85% 75%, #1d1d1d 0, #000 60%);
}
.why-art__title { position: relative; z-index: 2; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: -.02em; }
.why-art__title span { display: block; color: var(--orange); }
.why-art__icons { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.why-art__icons li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.why-art__icons .ic { width: 40px; height: 40px; padding: 8px; border: 1.5px solid var(--white); border-radius: 50%; }
.why-art__meerkat { position: absolute; right: 6%; bottom: 40px; height: 52%; max-height: 240px; width: auto; }
.why-art__band {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 24px;
  background: var(--sky); color: var(--black); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
@media (min-width: 900px) {
  .why-wrap { grid-template-columns: .8fr 1.2fr; align-items: stretch; }
  .why-art { min-height: 100%; }
}
.why { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-content: start; }
.why > div { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px; }
.why h3 { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; margin-top: 2px; }
html[lang="th"] .why h3 { text-transform: none; }
.why p { color: var(--graphite); font-size: 14px; margin-top: 4px; }

/* ---------- b2b ---------- */
.b2b { background: var(--green); color: var(--black); padding: 60px 0; }
.b2b__in { display: grid; gap: 28px; align-items: center; }
.b2b .lead { color: #1a1a1a; }
.b2b__types { margin-top: 16px; font-weight: 700; }
.b2b__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.b2b__note { font-size: 14px; color: #1f2a00; max-width: 34ch; }
@media (min-width: 820px) { .b2b { padding: 84px 0; } .b2b__in { grid-template-columns: 1.4fr 1fr; } }
