/* ============================================================
   NASHE MESTO V2 — редизайн для /ru/, /ru/menu/, /ru/halal-food-foshan/,
   /ru/location/, /ru/about/. Не влияет на style.css и остальные страницы.
   Белый фон, editorial-ритм, фото — главный источник цвета.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink:        #1C1712;   /* графитовый, почти чёрный — текст */
  --ink-70:     rgba(28,23,18,.70);
  --paper:      #FFFFFF;
  --paper-2:    #FAF9F6;   /* едва тёплый нейтральный для чередования секций */
  --wine:       #7A1F2B;
  --wine-dark:  #591520;
  --wood:       #8A5A34;   /* тёплое дерево — акцент бордеров/фона мангал-блока */
  --wood-dark:  #5C3B22;
  --gold:       #9C7A2E;   /* сдержанное золото — иконки, тонкие акценты */
  --price:      #7A4A12;   /* WCAG AA-совместимый тёплый оттенок для цены */
  --olive:      #4F5D3A;
  --line:       #EBE7DF;

  --max-width: 1160px;
  --text-width: 640px;

  --font-display: "Playfair Display", Georgia, "Noto Serif SC", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v2 {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
:lang(zh) { line-height: 1.85; }

.v2 a { color: var(--wine); text-decoration: none; }
.v2 a:hover { color: var(--wine-dark); }
.v2 img, .v2 video { max-width: 100%; display: block; }

.v2-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.v2-narrow { max-width: var(--text-width); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.v2-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.v2-header-row {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
}
.v2-logo { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 0; }
.v2-logo img { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.v2-logo span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
/* brand wordmark text hidden below 400px — icon alone is enough to identify the brand at the narrowest widths */
@media (max-width: 399px) { .v2-logo span { display: none; } }

nav.v2-nav { display: none; gap: 22px; font-size: 15px; font-weight: 500; }
nav.v2-nav a { color: var(--ink-70); }
nav.v2-nav a:hover { color: var(--wine); }

.v2-lang { font-size: 13px; color: var(--ink-70); display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.v2-lang a, .v2-lang span { padding: 2px 3px; }
.v2-lang .current { font-weight: 700; color: var(--ink); }

/* ---------- mobile navigation: burger menu, pure CSS (checkbox hack), no JS ---------- */
.v2-nav-cb { position: absolute; opacity: 0; pointer-events: none; }
.v2-burger {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  gap: 5px; width: 34px; height: 34px; padding: 4px; cursor: pointer; flex-shrink: 0;
}
.v2-burger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.v2-nav-cb:checked ~ .v2-header-row .v2-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v2-nav-cb:checked ~ .v2-header-row .v2-burger span:nth-child(2) { opacity: 0; }
.v2-nav-cb:checked ~ .v2-header-row .v2-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

.v2-mobile-nav {
  display: none; flex-direction: column;
  border-top: 1px solid var(--line); background: var(--paper);
  max-width: var(--max-width); margin: 0 auto;
}
.v2-mobile-nav a {
  display: block; padding: 15px 20px; font-size: 16px; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.v2-mobile-nav a:last-child { border-bottom: none; }
.v2-nav-cb:checked ~ .v2-mobile-nav { display: flex; }

@media (min-width: 760px) {
  .v2-header-row { padding: 10px 20px; }
  .v2-logo span { display: inline; }
  nav.v2-nav { display: flex; }
  .v2-burger { display: none; }
  .v2-mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.v2-hero { position: relative; }
.v2-hero-media {
  position: relative; width: 100%;
  aspect-ratio: 16/10; overflow: hidden; background: var(--ink);
}
.v2-hero-media img, .v2-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.v2-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.v2-hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 20px 34px; color: #fff; text-align: center;
}
.v2-hero-copy .brand { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,7vw,52px); margin: 0 0 4px; letter-spacing: .01em; }
.v2-hero-copy .tag { font-size: clamp(15px,3vw,19px); margin: 0 0 18px; opacity: .95; }
.v2-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.v2-btn {
  display: inline-block; padding: 13px 22px; border-radius: 3px;
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.v2-btn.primary { background: var(--wine); color: #fff; }
.v2-btn.primary:hover { background: var(--wine-dark); }
.v2-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(2px); }
.v2-btn.ghost:hover { background: rgba(255,255,255,.22); }
.v2-btn.outline { background: transparent; color: var(--wine); border: 1px solid var(--wine); }
.v2-btn.outline:hover { background: rgba(122,31,43,.06); }

/* ---------- section rhythm ---------- */
section.v2-section { padding: 52px 0; }
section.v2-section.alt { background: var(--paper-2); }
.v2-eyebrow { display: none; } /* intentionally unused — no ALL-CAPS meta labels */
.v2-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,4vw,36px); margin: 0 0 6px; text-align: center; }
.v2-sub { text-align: center; color: var(--ink-70); font-size: 16px; margin: 0 auto 30px; max-width: 520px; }

/* ---------- dish editorial grid ---------- */
.v2-dish-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 700px) {
  .v2-dish-grid { grid-template-columns: repeat(6, 1fr); }
  .v2-dish-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .v2-dish-card:nth-child(2) { grid-column: span 3; }
  .v2-dish-card:nth-child(3) { grid-column: span 3; }
  .v2-dish-card:nth-child(4) { grid-column: span 2; }
  .v2-dish-card:nth-child(5) { grid-column: span 2; }
  .v2-dish-card:nth-child(6) { grid-column: span 2; }
}
.v2-dish-card { position: relative; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.v2-dish-card img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; }
.v2-dish-card:nth-child(1) img { aspect-ratio: 4/10.4; }
.v2-dish-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  color: #fff;
}
.v2-dish-info h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 2px; font-weight: 700; }
.v2-dish-info .v2-price { font-weight: 700; font-size: 15px; color: #F2D98A; }
.v2-dish-info p { font-size: 12.5px; margin: 2px 0 0; opacity: .9; }

/* mobile: horizontal swipe carousel for dish cards */
@media (max-width: 699px) {
  .v2-dish-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px;
  }
  .v2-dish-card { flex: 0 0 80%; scroll-snap-align: start; }
  .v2-dish-card img { aspect-ratio: 4/5 !important; }
}
.v2-cta-center { text-align: center; margin-top: 28px; }

/* ---------- mangal block ---------- */
.v2-mangal {
  background: var(--wood-dark);
  color: #fff;
  padding: 54px 0;
}
.v2-mangal .v2-h2, .v2-mangal .v2-sub { color: #fff; }
.v2-mangal .v2-sub { color: rgba(255,255,255,.8); }
.v2-mangal-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 700px) { .v2-mangal-grid { grid-template-columns: 1fr 1fr; } }
.v2-mangal-card { border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); }
.v2-mangal-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; }
.v2-mangal-card .body { padding: 14px 16px; }
.v2-mangal-card h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.v2-mangal-card .v2-price { color: #F2D98A; font-weight: 700; }
.v2-mangal-card p { font-size: 13.5px; color: rgba(255,255,255,.82); margin: 4px 0 0; }

/* ---------- promo block (gift) ---------- */
.v2-promo {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-radius: 6px; overflow: hidden; border: 1px solid var(--line);
}
@media (min-width: 700px) { .v2-promo { grid-template-columns: 1fr 1fr; } }
.v2-promo-media { aspect-ratio: 4/3; background: var(--paper-2); }
.v2-promo-media img { width: 100%; height: 100%; object-fit: cover; }
.v2-promo-body { padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; background: var(--paper-2); }
.v2-promo-body .kicker { font-family: var(--font-display); font-style: italic; color: var(--wine); font-size: 15px; margin: 0 0 6px; }
.v2-promo-body h2 { font-family: var(--font-display); font-size: clamp(22px,3.4vw,28px); margin: 0 0 10px; }
.v2-promo-body p { font-size: 15.5px; color: var(--ink-70); margin: 0 0 8px; }
.v2-promo-body ul { margin: 6px 0 16px; padding-left: 20px; font-size: 15px; }

/* ---------- founders / about ---------- */
.v2-founders {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
@media (min-width: 760px) { .v2-founders { grid-template-columns: 0.85fr 1.15fr; } }
.v2-founders-media { border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.v2-founders-media img { width: 100%; height: auto; }
.v2-founders-media .v2-caption { padding: 10px 4px 0; font-size: 13px; color: var(--ink-70); text-align: center; }
.v2-founders-text h2 { font-family: var(--font-display); font-size: clamp(24px,3.6vw,32px); margin: 0 0 14px; line-height: 1.25; }
.v2-founders-text p { font-size: 16px; color: var(--ink-70); margin: 0 0 14px; max-width: 60ch; }
.v2-founders-text .v2-closing { font-family: var(--font-display); font-style: italic; color: var(--wine); font-size: 18px; }

/* ---------- atmosphere gallery ---------- */
.v2-atmosphere-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 700px) { .v2-atmosphere-grid { grid-template-columns: repeat(4, 1fr); } }
.v2-atmosphere-grid img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 3/4; border-radius: 4px; }
.v2-atmosphere-grid .wide { grid-column: span 2; }
.v2-atmosphere-grid .wide img { aspect-ratio: 16/10; }

/* ---------- halal teaser (compact, homepage) ---------- */
.v2-teaser {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.v2-teaser-text h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; }
.v2-teaser-text p { color: var(--ink-70); margin: 0; font-size: 15px; }

/* ---------- delivery ---------- */
.v2-delivery {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--paper-2); border-radius: 6px; padding: 26px 28px;
}
.v2-delivery h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; }
.v2-delivery p { margin: 0; color: var(--ink-70); font-size: 15px; }

/* ---------- contacts ---------- */
.v2-contacts-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 760px) { .v2-contacts-grid { grid-template-columns: 1.1fr .9fr; } }
.v2-contacts-media { border-radius: 4px; overflow: hidden; }
.v2-contacts-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; }
.v2-contact-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 22px;
}
.v2-contact-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.v2-contact-row:last-child { border-bottom: none; }
.v2-contact-row .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); font-weight: 700; min-width: 92px; }
.v2-contact-row .value { font-size: 15.5px; }
.v2-contact-row .value a { font-weight: 600; }
.v2-qr-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.v2-qr-box { text-align: center; font-size: 12px; color: var(--ink-70); }
.v2-qr-box .ph { width: 96px; height: 96px; border: 1px dashed var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ink-70); padding: 6px; background: #fff; }
.v2-qr-box img { width: 96px; height: 96px; border-radius: 4px; border: 1px solid var(--line); object-fit: contain; background: #fff; }

/* ---------- footer ---------- */
footer.v2-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 36px 0 26px; font-size: 14px; }
.v2-footer-row { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.v2-footer-brand { display: flex; align-items: center; gap: 10px; }
.v2-footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.v2-footer-brand span { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 16px; }
footer.v2-footer a { color: rgba(255,255,255,.75); }
footer.v2-footer a:hover { color: #fff; }
.v2-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.v2-footer-bottom { max-width: var(--max-width); margin: 22px auto 0; padding: 16px 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- menu page ---------- */
.v2-cat-nav {
  position: sticky; top: 61px; z-index: 15; background: rgba(255,255,255,.95); backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.v2-cat-nav-row { display: inline-flex; gap: 6px; padding: 10px 20px; }
.v2-cat-nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-70); border: 1px solid var(--line); white-space: nowrap;
}
.v2-cat-nav a:hover { color: var(--wine); border-color: var(--wine); }

.v2-menu-cat { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 112px; }
.v2-menu-cat .v2-h2 { text-align: left; margin-bottom: 20px; }
.v2-menu-list { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 760px) { .v2-menu-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.v2-menu-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.v2-menu-row-main { flex: 1; min-width: 0; }
.v2-menu-row-name { font-weight: 600; font-size: 15.5px; }
.v2-menu-row-desc { display: block; font-size: 13.5px; color: var(--ink-70); margin-top: 2px; }
.v2-menu-row-weight { display: block; font-size: 12px; color: var(--ink-70); margin-top: 2px; }
.v2-menu-row-halal { display: inline-block; margin-top: 3px; font-size: 11.5px; color: var(--olive); }
.v2-menu-row-halal.exception { color: var(--wine); }
.v2-menu-row-price { white-space: nowrap; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }

.v2-bread-feature {
  display: grid;
  grid-template-columns: 1fr;
}
.v2-bread-feature picture, .v2-bread-feature img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 700px) {
  .v2-bread-feature { grid-template-columns: 1fr 1.4fr; }
  .v2-bread-feature picture, .v2-bread-feature img { height: 100%; aspect-ratio: auto; }
}

/* ---------- halal page v2 ---------- */
.v2-halal-hero { padding: 44px 0 10px; text-align: center; }
.v2-halal-hero h1 { font-family: var(--font-display); font-size: clamp(28px,4.5vw,38px); margin: 0 0 10px; }
.v2-halal-hero p { max-width: 560px; margin: 0 auto; color: var(--ink-70); font-size: 16px; }
.v2-halal-note {
  max-width: var(--text-width); margin: 40px auto 0; padding: 20px 22px;
  background: var(--paper-2); border-radius: 6px; border: 1px solid var(--line);
}
.v2-halal-note h3 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.v2-halal-note p { font-size: 14.5px; color: var(--ink-70); margin: 0; }

/* ---------- generic prose (long text blocks only) ---------- */
.v2-prose { max-width: 70ch; margin: 0 auto; padding: 0 20px; }
.v2-prose p { color: var(--ink-70); font-size: 16px; }

/* ============================================================
   COMPAT LAYER — v1 body classes (.hero, .block, .btn, .cta-row,
   .breadcrumbs, .card, .two-col, .media-slot) restyled with V2
   tokens, so secondary pages (delivery, business-lunch, events,
   banquets, faq, cuisine pages) render in the V2 visual language
   without rewriting their existing translated body markup.
   Pages using this layer must NOT also load style.css.
   ============================================================ */
.v2 .breadcrumbs {
  font-size: 13px; color: var(--ink-70);
  max-width: var(--max-width); margin: 14px auto 0; padding: 0 20px;
}
.v2 .breadcrumbs a { color: var(--ink-70); }
.v2 .breadcrumbs a:hover { color: var(--wine); }

.v2 section.hero { padding: 40px 20px 8px; max-width: var(--text-width); margin: 0 auto; }
.v2 section.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px,4.5vw,34px); line-height: 1.2; margin: 0 0 10px; color: var(--ink);
}
.v2 section.hero p { color: var(--ink-70); font-size: 16px; margin: 0 0 6px; }

.v2 section.block {
  padding: 28px 20px; border-top: 1px solid var(--line);
  max-width: var(--text-width); margin: 0 auto;
}
.v2 section.block h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.v2 section.block h3 { font-size: 16px; margin: 14px 0 6px; font-weight: 700; }
.v2 section.block p { margin: 0 0 10px; color: var(--ink-70); }
.v2 section.block ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-70); }
.v2 section.block li { margin-bottom: 5px; }

.v2 .two-col { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: var(--text-width); margin: 0 auto; padding: 0 20px; }
@media (min-width: 620px) { .v2 .two-col { grid-template-columns: 1fr 1fr; } }
.v2 .card { border: 1px solid var(--line); border-radius: 4px; padding: 16px; background: var(--paper-2); }

.v2 .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px auto; max-width: var(--text-width); padding: 0 20px; }
.v2 .btn { display: inline-block; padding: 12px 20px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--wine); line-height: 1.3; }
.v2 .btn.primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.v2 .btn.primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.v2 .btn.secondary { background: transparent; color: var(--wine); }
.v2 .btn.secondary:hover { background: rgba(122,31,43,.06); }

.v2 .media-slot { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; min-height: 150px; overflow: hidden; }
.v2 .media-slot.has-photo { min-height: 0; }
.v2 .media-slot img, .v2 .media-slot picture { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
