/* ============ Archive List — kraft paper editorial ============ */
:root {
  --paper: #f4ecdc;
  --paper-2: #efe4cf;
  --paper-3: #e9dcc2;
  --card: #f7f1e3;
  --ink: #211c13;
  --muted: #6f6450;
  --line: #d5c6a8;
  --line-soft: #e2d6bc;
  --red: #b0512e;
  --teal: #2f6157;
  --gold: #a97e22;
  --green: #2f6b45;
  /* leather: editorial/material accent (actions stay terracotta) */
  --brown: #7a4a28;
  --brown-deep: #453021;
  --on-brown: #efe3cd;
  --on-brown-muted: #d3bd9c;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(60, 45, 20, .08), 0 8px 28px rgba(60, 45, 20, .10);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(255,255,255,.5), transparent 60%),
    repeating-linear-gradient(2deg, transparent 0 3px, rgba(120,95,55,.016) 3px 4px),
    repeating-linear-gradient(88deg, transparent 0 5px, rgba(120,95,55,.014) 5px 6px),
    var(--paper);
  font-size: 15px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.kicker {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 14px;
}
.display, h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.sub { color: var(--muted); max-width: 380px; }

/* ---- generated artwork: white-bg pencil art melts into the kraft paper ---- */
img.art {
  mix-blend-mode: multiply;
  object-fit: contain;
  border: 0; background: none;
}
/* intrinsic ratios: no layout shift while artwork loads */
.ph-tower { aspect-ratio: 600 / 804; }
.ph-street { aspect-ratio: 1200 / 509; }
.ph-city { aspect-ratio: 900 / 502; }
.ph-signpost { aspect-ratio: 400 / 299; }
.note-img { aspect-ratio: 470 / 700; }
.stamp-hero, .stamp-letter { aspect-ratio: 1 / 1; }
.rc-img { aspect-ratio: 820 / 1222; }

/* ---- splash: печать на бумаге, пока сайт грузится ---- */
.splash {
  position: fixed; inset: 0; z-index: 4000;
  background:
    repeating-linear-gradient(2deg, transparent 0 3px, rgba(120,95,55,.016) 3px 4px),
    var(--paper);
  display: grid; place-items: center;
  transition: opacity .4s ease;
}
.splash.splash-out { opacity: 0; pointer-events: none; }
.splash-inner { display: grid; place-items: center; gap: 16px; }
.splash-inner img {
  width: clamp(110px, 14vw, 150px); height: auto;
  mix-blend-mode: multiply;
  animation: splash-stamp .5s var(--ease-expo) both;
}
.splash-inner p {
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  letter-spacing: .04em; color: var(--ink);
  animation: fade-in .45s ease .3s both;
}
@keyframes splash-stamp {
  from { opacity: 0; transform: scale(1.45); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- placeholders for future artwork ---- */
.ph {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(120,95,55,.04) 8px 16px);
  display: grid; place-items: center;
  color: var(--muted);
}
.ph span {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; line-height: 1.7; opacity: .75; padding: 4px;
}

/* ============ header ============ */
.site-head {
  position: sticky; top: 0; z-index: 1200;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 48px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.logo { font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; mix-blend-mode: multiply; }
.head-search {
  flex: 0 1 360px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; background: var(--card);
}
.head-search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.head-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font: inherit; font-size: 13px; color: var(--ink);
}
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.head-nav a { font-size: 13.5px; font-weight: 500; opacity: .85; }
.head-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.myroute {
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1.4px solid var(--ink); border-radius: 10px;
  padding: 8px 14px; cursor: pointer;
}
.myroute svg { width: 15px; height: 15px; }
.myroute:hover { background: var(--ink); color: var(--paper); }

/* ============ hero ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 560px);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: center;
  padding: clamp(20px, 2vw, 32px) 48px 20px; max-width: 1840px; margin: 0 auto;
}
.hero h1 { font-size: clamp(44px, 5.2vw, 84px); line-height: 1.02; margin-bottom: 24px; text-wrap: balance; }
.hero .sub { font-size: clamp(15px, 1.1vw, 18px); border-top: 1.5px solid var(--ink); padding-top: 16px; max-width: 380px; }
.hero-art { position: relative; width: 100%; min-height: clamp(280px, 22vw, 430px); }
.ph-tower {
  position: absolute; left: 4%; bottom: 6%;
  width: clamp(210px, 18.5vw, 350px); height: auto;
}
/* generated paper notes (rotation + tape baked into the artwork) */
.note-img { position: absolute; right: 0; top: 0; width: clamp(180px, 14.5vw, 270px); height: auto; }
.note-img.note-sm { position: static; width: clamp(190px, 15vw, 270px); flex: none; }
.pc-small { font-size: 9px; letter-spacing: .18em; color: var(--muted); line-height: 2; }

.stamp { color: var(--red); opacity: .85; }
.stamp-hero {
  position: absolute; z-index: 2;
  right: clamp(140px, 11.5vw, 215px); top: clamp(-10px, -0.6vw, -4px);
  width: clamp(120px, 9.6vw, 175px); height: auto; transform: rotate(-10deg);
}
.stamp-ring { stroke-width: 2; }
.stamp-ring.thin { stroke-width: 1; }
.stamp-text { font-size: 10.5px; letter-spacing: .35em; fill: currentColor; stroke: none; font-weight: 600; }
.stamp-center { font-family: var(--serif); font-size: 20px; fill: currentColor; stroke: none; }
.stamp-center.small { font-size: 10px; letter-spacing: .3em; }

/* ============ route cards ============ */
.routes-band { max-width: 1840px; margin: 0 auto; padding: 24px 48px 64px; }
.route-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 400px)); justify-content: center; gap: clamp(22px, 6vw, 120px); }
.route-card {
  --accent: var(--red);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  position: relative;
  display: flex; flex-direction: column;
}
.route-card::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--line-soft); border-radius: 9px; pointer-events: none;
}
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-no { font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.rc-no b { display: block; font-family: var(--serif); font-size: 24px; color: var(--accent); letter-spacing: 0; margin-top: 2px; }
.rc-stamp { width: 52px; color: var(--muted); opacity: .8; transform: rotate(8deg); }
.route-card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.12; margin: 6px 0 10px; }
.rc-meta { display: flex; gap: 14px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px 0; font-size: 11.5px; color: var(--muted); }
.rc-meta span { display: flex; gap: 6px; align-items: center; }
.rc-meta svg { width: 13px; height: 13px; }

.rc-img {
  display: block; width: 100%; height: auto;
  border-radius: 8px; margin: 12px 0 2px;
  border: 1px solid var(--line-soft);
}
.rc-tags { display: flex; margin-top: 14px; border-top: 1px solid var(--line-soft); }
.rc-tags div { flex: 1; padding: 8px 6px 0; }
.rc-tags div + div { border-left: 1px solid var(--line-soft); padding-left: 12px; }
.rc-tags p:first-child { font-size: 9px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.rc-tags p:last-child { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 14.5px; font-weight: 600;
  border-radius: 10px; padding: 13px 22px; cursor: pointer;
  transition: filter .15s ease, background .15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn.solid { border: 0; color: #fdf8ec; }
.btn.solid.red { background: var(--red); }
.btn.solid:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1.4px solid var(--ink); color: var(--ink); width: 100%; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.rc-start { margin-top: auto; width: 100%; background: var(--accent); border: 0; color: #fdf8ec; padding: 11px 18px; }
.rc-tags { margin-bottom: 14px; }
.route-card .serif-btn, .rc-start { font-family: var(--serif); font-size: 16px; font-weight: 600; }

/* ============ map band ============ */
.map-band { max-width: 1840px; margin: 0 auto; padding: 36px 48px 56px; }
.map-canvas {
  position: relative; height: 560px;
  border: 1px solid var(--line); border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg stroke='%23c9b992' stroke-width='.6' opacity='.45'%3E%3Cpath d='M-10 60C80 80 160 30 260 70s120 15 170 40M-10 170c100-25 200 30 300 8s90-28 140-12M-10 290c80 40 190-15 270 20s110 8 160 16M-10 380c110-20 220 25 300 0M60-10C45 90 95 170 70 270s15 90 8 160M180-10c25 100-20 190 12 280s-8 90 0 160M300-10c-20 90 25 180 0 270s20 90 12 160M390-10c10 80-15 160 0 240'/%3E%3C/g%3E%3Cg fill='%23c9b992' opacity='.35'%3E%3Ccircle cx='60' cy='60' r='1.5'/%3E%3Ccircle cx='300' cy='120' r='1.5'/%3E%3Ccircle cx='180' cy='300' r='1.5'/%3E%3Ccircle cx='360' cy='330' r='1.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(120deg, var(--paper-2), var(--paper-3));
  overflow: hidden;
}
#previewMap { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.map-canvas > :not(#previewMap) { z-index: 2; }
.map-intro {
  position: absolute; left: 36px; top: 40px; max-width: 240px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; box-shadow: var(--shadow);
}
.map-intro h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 12px; border-bottom: 1.5px solid var(--ink); display: inline-block; padding-bottom: 8px; }
.map-intro p { color: var(--muted); font-size: 14px; }
.map-dot { position: absolute; font-size: 10.5px; letter-spacing: .2em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.map-dot i { width: 13px; height: 13px; border-radius: 50%; display: block; box-shadow: 0 0 0 4px rgba(60,45,20,.08); }
.dot-koenji { left: 30%; top: 26%; } .dot-koenji i { background: var(--gold); }
.dot-shimo { left: 24%; top: 62%; } .dot-shimo i { background: var(--teal); }
.dot-hara { left: 47%; top: 52%; } .dot-hara i { background: var(--red); }
.dot-tokyo { left: 66%; top: 34%; font-size: 13px; letter-spacing: .35em; color: var(--muted); }
.compass { position: absolute; left: 40px; bottom: 40px; width: 76px; color: var(--muted); }
.compass text { font-size: 10px; fill: currentColor; stroke: none; letter-spacing: .1em; }
.compass .cn { fill: var(--ink); stroke: none; }
.map-open-live { position: absolute; left: 36px; top: 176px; z-index: 2; }
.map-cartouche {
  position: absolute; right: 32px; bottom: 32px;
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px;
  padding: 18px 28px; text-align: center; background: color-mix(in srgb, var(--paper) 75%, transparent);
}
.mc-small { font-size: 10px; letter-spacing: .4em; color: var(--muted); }
.mc-big { font-family: var(--serif); font-size: 34px; letter-spacing: .28em; margin: 2px 0; }
.mc-coords { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.mc-tag { font-size: 9.5px; letter-spacing: .3em; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }

/* ============ finder ============ */
.finder { max-width: 1840px; margin: 0 auto; padding: 40px 48px 60px; }
.finder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
.finder-head h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; }
.finder-art { display: flex; gap: clamp(22px, 2.5vw, 44px); align-items: center; flex: none; }
/* улочка «втекает» в заголовок: левый край растворяется в бумаге */
.ph-street {
  width: clamp(560px, 54vw, 1150px); height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}

.finder-body { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.filters {
  position: sticky; top: 84px;
  max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow);
}
.filters h3 { font-family: var(--serif); font-size: 17px; letter-spacing: .04em; margin-bottom: 18px; }
.f-group { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.f-title { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.f-title em { font-style: normal; background: var(--paper-3); border-radius: 4px; padding: 2px 6px; margin-left: 6px; letter-spacing: .05em; }

.hood-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.hood-row input { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }
.hood-row .cnt { margin-left: auto; color: var(--muted); font-size: 12px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font: inherit; font-size: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--ink); padding: 6px 11px;
}
.tag:hover { border-color: var(--ink); }
.tag.on { background: var(--teal); border-color: var(--teal); color: #f4f0e4; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.toggle input { display: none; }
.toggle i {
  flex: none; width: 40px; height: 22px; border-radius: 20px;
  background: var(--line); position: relative; transition: background .2s;
}
.toggle i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fbf7ec; transition: left .2s;
}
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { left: 21px; }

#clearFilters { margin-top: 16px; font-size: 13px; padding: 10px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.results-bar p { font-size: 13px; color: var(--muted); }
.results-bar b { color: var(--ink); }
.sort-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 7px 12px; margin-left: 8px; font-size: 12.5px; color: var(--ink); }
.sort-pill svg { width: 13px; height: 13px; }

/* ровная сетка: строгий порядок слева-направо, ничего не перетасовывается при догрузке */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.shop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(60,45,20,.06);
  transition: box-shadow .18s ease, transform .18s ease;
}
.shop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
/* real photos sit a touch closer to the kraft palette; фикс-пропорция = место резервируется до загрузки */
.shop-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--paper-2); filter: saturate(.94);
}
.guide-card .g-photo, .featured { filter: saturate(.94); }
.sc-body { padding: 12px 14px 14px; }
.sc-body h4 { font-family: var(--serif); font-size: 17.5px; font-weight: 600; line-height: 1.2; }
.sc-hood { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); margin: 4px 0 10px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; }
.badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 6px; padding: 4px 8px;
}
.badge.open { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge.closed { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.badge.na { background: var(--paper-3); color: var(--muted); }
.sc-ig { width: 17px; height: 17px; color: var(--muted); }

/* ---- finder teaser / catalog extras ---- */
.finder-more { text-align: center; padding: 26px 0 6px; }
.teaser-note { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; min-height: 1em; }
.teaser-sub { font-size: 12px; color: var(--muted); margin-top: 12px; }
.btn.big { font-family: var(--serif); font-size: 19px; padding: 16px 38px; }
#loadMore { width: auto; padding: 13px 30px; }
#loadMore[hidden] { display: none; }
.sort-select {
  font: inherit; font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line); background: var(--card);
  border-radius: 8px; padding: 7px 10px; margin-left: 8px; cursor: pointer;
}
.catalog-page { padding-top: 48px; }
.catalog-page .finder-head { margin-bottom: 34px; }
.site-foot.slim { display: block; text-align: center; padding: 26px 48px; }
.site-foot.slim a { text-decoration: underline; text-underline-offset: 4px; color: var(--on-brown); }

/* ============ modal ============ */
/* above Leaflet panes/controls (they go up to z-index ~1000) */
.modal-wrap { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; }
.modal-wrap[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(30, 24, 12, .45); }
.shop-modal {
  position: relative; width: min(470px, 94vw); max-height: 90vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 80px rgba(30,24,12,.4);
}
/* photo box with stamp + washi */
.sm-photobox { position: relative; padding: 14px 14px 0; }
.sm-close {
  position: absolute; top: 26px; right: 26px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(247,241,227,.94); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(30,24,12,.25);
}
.sm-close svg { width: 16px; height: 16px; }
.sm-photo { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; display: block; }
.sm-nophoto { display: grid; place-items: center; background: var(--paper-2); color: var(--muted); }
.sm-nophoto svg { width: 40px; height: 40px; }
.sm-photo { cursor: zoom-in; }
.sm-thumbs img { cursor: zoom-in; }
/* thumbnails strip */
.sm-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 14px 0; }
.sm-thumbs img {
  width: 100%; height: 76px; object-fit: cover; border-radius: 8px;
  cursor: pointer; transition: opacity .15s;
}
.sm-thumbs img:hover { opacity: .82; }
/* body */
.sm-body { padding: 16px 20px 22px; }
.sm-titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sm-body h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; letter-spacing: .01em; }
.sm-titlerow .badge { flex: none; font-size: 11.5px; padding: 6px 12px; border-radius: 999px; }
.sm-titlerow .badge.open { background: var(--teal); color: #f0ece0; }
.sm-hood { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); margin: 6px 0 14px; }
/* address + map sketch */
.sm-addr {
  display: flex; gap: 10px; align-items: stretch;
  background: var(--paper-2); border-radius: 10px; overflow: hidden; margin-bottom: 12px;
}
.sm-addr-txt { display: flex; gap: 9px; font-size: 13px; color: var(--ink); padding: 14px; flex: 1; align-items: flex-start; }
.sm-addr-txt svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--muted); }
.sm-map { width: 132px; flex: none; background: var(--paper-3); }
.sm-map-st path { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; opacity: .55; }
.sm-map-pin { fill: #a33d2a; stroke: none; }
/* week hours table */
.sm-week { border-top: 1px solid var(--line-soft); margin-bottom: 14px; }
.sm-day {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; padding: 7px 8px;
  border-bottom: 1px dashed var(--line-soft);
}
.sm-day span:first-child { letter-spacing: .14em; color: var(--brown); font-weight: 600; font-size: 11px; }
.sm-day.today { background: var(--paper-3); border-radius: 6px; border-bottom-style: solid; }
.sm-day.today span { color: var(--ink); font-weight: 600; }
.sm-day.closed span:last-child { color: var(--red); }
.sm-nohours { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 4px 2px 14px; }
.sm-nohours svg { width: 15px; height: 15px; flex: none; }
/* tags + actions */
.sm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sm-tags span { font-size: 12px; letter-spacing: .04em; border: 1px solid var(--ink); border-radius: 8px; padding: 5px 12px; color: var(--ink); }
.sm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-actions .btn { padding: 12px 8px; font-size: 13.5px; }
.sm-actions .btn.line { border: 1.4px solid var(--ink); background: transparent; color: var(--ink); }
.sm-actions .btn.line:hover { background: var(--ink); color: var(--paper); }
.sm-actions .btn.line.web { grid-column: 1 / -1; }
.sm-actions .btn.wide {
  grid-column: 1 / -1; background: var(--teal); border: 0; color: #f0ece0;
  display: flex; justify-content: space-between; padding: 14px 18px;
  font-family: var(--serif); font-size: 17px;
}
.sm-actions .btn.wide svg { width: 18px; height: 18px; }

/* ============ newsletter ============ */
.letter-band {
  max-width: 1840px; margin: 0 auto 44px; padding: 40px 48px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 44px;
}
.ph-city { width: clamp(320px, 30vw, 560px); height: auto; flex: none; }
.letter-copy h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.letter-form { margin-left: auto; flex: none; width: 320px; }
.letter-form input {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 12px 14px; margin-bottom: 10px; outline: none;
}
.letter-form input:focus { border-color: var(--ink); }
.letter-form .btn { width: 100%; }
.letter-form .pc-small { margin-top: 8px; text-align: center; }
.stamp-letter { width: 110px; height: auto; flex: none; transform: rotate(6deg); }

/* ============ guides ============ */
.guides { max-width: 1840px; margin: 0 auto; padding: 20px 48px 44px; }
.guides-head h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 10px; }
.guides-head { margin-bottom: 36px; }
.guides-body { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }

.featured {
  position: relative; border-radius: 14px; overflow: hidden;
  min-height: 420px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(15deg, rgba(20,14,5,.82) 15%, rgba(20,14,5,.25) 55%, rgba(20,14,5,.05)); }
.featured .chip { position: absolute; top: 18px; left: 18px; z-index: 2; }
.chip {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  background: var(--card); border: 1px solid var(--brown); border-radius: 6px; padding: 5px 10px;
  color: var(--brown);
}
.feat-overlay { position: relative; z-index: 2; color: #f6efdd; padding: 28px; max-width: 520px; }
.feat-overlay h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.12; margin-bottom: 12px; }
.feat-overlay p { font-size: 14px; opacity: .9; margin-bottom: 16px; }
.feat-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.feat-meta span { display: flex; align-items: center; gap: 7px; opacity: .85; }
.feat-meta svg { width: 14px; height: 14px; }
.readmore { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.guides .readmore { color: var(--brown); }
.feat-overlay .readmore { color: inherit; }
.readmore svg { width: 15px; height: 15px; transition: transform .15s; }
.readmore:hover svg { transform: translateX(4px); }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(60,45,20,.06);
}
.guide-card .g-photo { position: relative; height: 190px; background-size: cover; background-position: center; }
.guide-card .g-photo::after {
  content: attr(data-tag);
}
.guide-card { position: relative; }
.guide-card::before {
  content: attr(data-tag);
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  background: var(--card); border: 1px solid var(--brown); border-radius: 6px; padding: 5px 10px;
  color: var(--brown);
}
.guide-card h4 { font-family: var(--serif); font-size: 21px; line-height: 1.18; padding: 16px 18px 8px; }
.guide-card p { font-size: 13px; color: var(--muted); padding: 0 18px 14px; }
.guide-card .feat-meta { padding: 0 18px 18px; color: var(--muted); }
.guide-card .readmore { color: var(--brown); }

.guides-rail { display: flex; flex-direction: column; gap: 22px; }
.rail-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 22px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(0deg, transparent 0 4px, rgba(120,95,55,.012) 4px 5px);
}
.rail-card h4 { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin-bottom: 6px; }
.rail-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }


.phrase { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-soft); position: relative; }
.phrase.last { border-bottom: 0; }
.phrase .ja { font-size: 14px; font-weight: 600; }
.phrase .ro { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.phrase .en { font-size: 12px; color: var(--muted); text-align: right; flex: none; max-width: 110px; }
.ph-neko { width: 88px; height: 88px; position: absolute; right: -6px; bottom: 2px; }
.phrase.last .en { margin-right: 92px; }

.flea { display: grid; grid-template-columns: 64px 1fr 50px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.flea.last { border-bottom: 0; }
.fl-when { font-size: 10px; letter-spacing: .12em; color: var(--brown); font-weight: 600; }
.fl-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.fl-where { font-size: 11.5px; color: var(--muted); }
.ph-flower { width: 48px; height: 48px; border-radius: 50%; }
.ph-flower span { font-size: 7px; }
.rail-card .readmore { margin-top: 14px; font-size: 12.5px; }

/* ============ footer: the leather back cover ============ */
.site-foot {
  background: var(--brown-deep);
  color: var(--on-brown);
  border-top: 1px solid #35241a;
  padding: 48px max(48px, calc((100vw - 1840px) / 2 + 48px)) 60px;
  display: grid; grid-template-columns: 300px 1fr 240px; gap: 44px;
}
.site-foot .f-title { color: var(--on-brown-muted); }
.foot-brand p { font-size: 13px; color: var(--on-brown-muted); margin-top: 14px; max-width: 240px; }
/* paper-sticker seal on the leather back cover */
.foot-logo {
  width: 104px; height: 104px;
  transform: rotate(-4deg);
}
.foot-logo img { width: 100%; height: 100%; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.foot-cols { display: flex; gap: 60px; }
.foot-cols a { display: block; font-size: 13px; color: var(--on-brown-muted); padding: 4px 0; }
.foot-cols a:hover { color: var(--on-brown); }
.socials { display: flex; gap: 12px; margin-bottom: 18px; }
.socials a { width: 36px; height: 36px; border: 1px solid #6b4d33; border-radius: 50%; display: grid; place-items: center; color: var(--on-brown); }
.socials a:hover { background: var(--on-brown); color: var(--brown-deep); border-color: var(--on-brown); }
.socials svg { width: 16px; height: 16px; }
.copy { font-size: 12px; color: var(--on-brown-muted); }
.copy a { color: var(--on-brown); }
.heart { color: #d97b52; }

/* ---- live map page ---- */
.mappage { max-width: 1840px; margin: 0 auto; padding: 44px 48px 60px; }
.mappage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 22px; flex-wrap: wrap; }
.mappage-head h1 { font-size: clamp(32px, 4vw, 52px); }
.map-controls { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-bottom: 6px; }
.map-count { font-size: 13px; color: var(--muted); }
.map-count b { color: var(--ink); }
.map-frame {
  position: relative; border: 1px solid var(--ink); border-radius: 14px;
  outline: 1px solid var(--ink); outline-offset: 4px;
  overflow: hidden; box-shadow: var(--shadow);
}
#liveMap { height: max(74vh, calc(100vh - 250px)); background: var(--paper-2); }
/* barely-there warmth: keep streets/labels fully readable */
.kraft-tiles { filter: sepia(.07) saturate(.95); }
.map-compass { position: absolute; right: 18px; top: 16px; width: 64px; z-index: 500; pointer-events: none; opacity: .85; }
.map-cartouche-live {
  position: absolute; right: 18px; bottom: 30px; z-index: 500; pointer-events: none;
  padding: 10px 18px; outline-offset: 2px;
}
.map-cartouche-live .mc-big { font-size: 22px; }
.map-legend {
  position: absolute; left: 18px; bottom: 30px; z-index: 500;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; box-shadow: var(--shadow);
}
.map-legend p { font-size: 12px; display: flex; align-items: center; gap: 8px; padding: 2.5px 0; color: var(--ink); }
.map-legend .f-title { margin-bottom: 6px; }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--paper); box-shadow: 0 0 0 1px rgba(60,45,20,.15); }
.lg-open { background: #2f6b45; } .lg-closed { background: #b0512e; } .lg-na { background: #8a7f6a; }
.lg-route i { width: 22px; border-top: 2.5px dashed var(--teal); display: inline-block; }
.map-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.map-stop {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--a); color: #fdf8ec; font: 600 11px/1 var(--sans);
  border: 2px solid #f4ecdc; box-shadow: 0 1px 4px rgba(30,24,12,.35);
}
.map-tip {
  background: var(--card) !important; color: var(--ink) !important;
  border: 1px solid var(--line) !important; border-radius: 8px !important;
  box-shadow: var(--shadow) !important; font-family: var(--sans); font-size: 12px;
}
.map-tip::before { display: none; }
.leaflet-control-zoom a {
  background: var(--card) !important; color: var(--ink) !important;
  border-color: var(--line) !important;
}
.leaflet-control-attribution { background: color-mix(in srgb, var(--paper) 80%, transparent) !important; font-size: 9.5px !important; }
@media (max-width: 820px) {
  .mappage { padding: 28px 20px 40px; }
  .map-legend { position: static; margin-top: 12px; box-shadow: none; }
  .map-frame { overflow: visible; }
  .map-cartouche-live { display: none; }
}

/* ---- lightbox: полноэкранный просмотр фото ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 3300;
  background: rgba(24, 18, 10, .88);
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }
.lb-frame {
  max-width: 92vw; max-height: 88vh; margin: 0;
  background: var(--paper); padding: 12px 12px 8px;
  border-radius: 6px; box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  animation: modal-in .25s var(--ease-quint);
}
.lb-img {
  display: block; max-width: calc(92vw - 24px); max-height: calc(88vh - 60px);
  border-radius: 3px;
}
.lb-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: 15px; color: var(--ink); padding: 8px 4px 2px;
}
.lb-cap span:last-child { font-family: var(--sans); font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }
.lb-close {
  position: absolute; top: 22px; right: 26px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.lb-close svg { width: 17px; height: 17px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  transition: transform .15s var(--ease-quint);
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-nav svg { width: 20px; height: 20px; }
@media (max-width: 820px) {
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* кнопка подбора сверху сайдбара карты */
.match-top { width: 100%; margin-bottom: 18px; }

/* ============ events page: flea markets & news ============ */
.events-page { max-width: 1840px; margin: 0 auto; padding: clamp(32px, 3.5vw, 56px) 48px 60px; }
.ev-head { display: flex; justify-content: space-between; align-items: center; gap: clamp(24px, 4vw, 70px); margin-bottom: 30px; }
.ev-head h1 { font-size: clamp(38px, 4.6vw, 72px); line-height: 1.04; text-wrap: balance; }
.ev-sub { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.ev-hero-art { width: clamp(300px, 34vw, 640px); height: auto; flex: none; }

/* билет «в эти выходные» */
.weekend-ticket {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 60px);
  padding: clamp(22px, 2.6vw, 40px) clamp(24px, 3vw, 56px);
  margin-bottom: clamp(32px, 3.5vw, 56px);
}
.weekend-ticket::before, .weekend-ticket::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.weekend-ticket::before { left: -14px; border-left-color: transparent; }
.weekend-ticket::after { right: -14px; border-right-color: transparent; }
.wk-chip { position: absolute; top: -12px; left: 32px; background: var(--brown); color: var(--on-brown); border-color: var(--brown); }
.wk-main { flex: 1; min-width: 0; }
.wk-main h2 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 42px); line-height: 1.1; }
.wk-date { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 26px); color: #a33d2a; margin: 6px 0 12px; }
.wk-meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 2px 0; }
.wk-meta svg { width: 15px; height: 15px; flex: none; }
.wk-more { font-size: 12.5px; color: var(--brown); font-weight: 600; margin-top: 8px; }
.wk-actions { display: flex; gap: 12px; margin-top: 16px; }
.wk-stamp { width: clamp(130px, 13vw, 210px); flex: none; transform: rotate(-8deg); }

/* календарь-лента */
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 46%); gap: clamp(28px, 3vw, 56px); align-items: start; }
.ev-col-title { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; margin-bottom: 20px; }
.cal-month { display: grid; grid-template-columns: 58px 1fr; gap: 12px; margin-bottom: 8px; }
.cal-mon { font-family: var(--serif); font-size: 24px; color: var(--brown); padding-top: 12px; }
.cal-list { border-left: 2px dotted var(--line); padding: 8px 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.ev-ticket {
  display: flex; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60, 45, 20, .08);
}
.evt-body { flex: 1; min-width: 0; padding: 14px 16px; }
.evt-toprow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.evt-toprow h3 { font-family: var(--serif); font-size: 17.5px; line-height: 1.2; }
.evt-days { flex: none; max-width: 46%; text-align: right; font-size: 12px; font-weight: 600; color: #a33d2a; letter-spacing: .03em; line-height: 1.5; }
.evt-jp { font-size: 11px; color: var(--muted); margin: 2px 0 8px; }
.evt-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 1.5px 0; flex-wrap: wrap; }
.evt-meta svg { width: 13px; height: 13px; flex: none; }
.evt-badges { color: var(--brown); }
.evt-focus { font-size: 12px; color: var(--ink); margin-top: 7px; }
.evt-actions { display: flex; align-items: center; gap: 14px; margin-top: 9px; }
.evt-pick { font-size: 11px; color: var(--gold); font-weight: 600; }
.evt-link {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--brown);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.evt-stub {
  flex: none; width: 30px; border-left: 2px dashed var(--line);
  display: grid; place-items: center;
}
.evt-stub span { writing-mode: vertical-rl; font-size: 9px; letter-spacing: .3em; color: var(--muted); opacity: .7; }

/* доска новостей */
.pinboard {
  background: #e3d4b7;
  border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(18px, 2vw, 30px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  align-items: start;
}
.clip {
  position: relative; background: #f6efe0;
  border: 1px solid rgba(60, 45, 20, .18);
  box-shadow: 0 3px 12px rgba(60, 45, 20, .18);
  padding: 34px 16px 16px; transform: rotate(var(--tilt, 0deg));
  transition: transform .3s var(--ease-quint);
}
.clip:hover { transform: rotate(0deg); }
.clip-big { grid-column: 1 / -1; }
.clip-tape {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 72px; height: 20px; background: rgba(196, 172, 122, .5);
  border-left: 1px dashed rgba(255,255,255,.65); border-right: 1px dashed rgba(255,255,255,.65);
}
.clip-head { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.clip-date {
  width: 44px; height: 44px; border: 1.5px solid var(--brown); border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  font-size: 8px; letter-spacing: .08em; color: var(--brown); line-height: 1.1;
  transform: rotate(-8deg); background: transparent;
}
.clip-date b { font-size: 13px; }
.clip-date i { font-style: normal; opacity: .8; }
.clip-tag {
  font-size: 9px; letter-spacing: .18em; font-weight: 600; color: var(--brown);
  border: 1px solid var(--brown); border-radius: 4px; padding: 3px 8px;
}
.clip h3 { font-family: var(--serif); font-size: 17px; line-height: 1.22; margin: 22px 0 8px; }
.clip-big h3 { font-size: 21px; }
.clip-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 20px; border: 1px solid rgba(60,45,20,.2); }
.clip-photo + h3 { margin-top: 12px; }
.clip-text { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.clip-phrases p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.clip-phrases p:last-child { border-bottom: 0; }
.clip-phrases b { font-weight: 600; display: block; }
.cp-jp em { font-style: normal; font-size: 10.5px; color: var(--brown); display: block; margin-top: 1px; }
.clip-phrases > p > span:last-child { color: var(--muted); text-align: right; flex: none; }
.evt-src { margin-left: auto; color: var(--muted); }

/* конверт-подписка (airmail) */
.airmail {
  margin-top: clamp(36px, 4vw, 64px);
  background: var(--card); border-radius: 10px;
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 44px) clamp(24px, 3.5vw, 64px);
  display: flex; align-items: center; gap: clamp(24px, 3.5vw, 64px);
  position: relative; overflow: hidden;
}
.airmail::before, .airmail::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(-45deg,
    #b0512e 0 14px, transparent 14px 28px, #3d5a80 28px 42px, transparent 42px 56px);
}
.airmail::before { top: 0; }
.airmail::after { bottom: 0; }
.airmail-stamp { width: clamp(110px, 10vw, 170px); flex: none; transform: rotate(-7deg); }
.airmail-copy { flex: 1; }
.airmail-copy h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); margin-bottom: 8px; }
.airmail-copy > p { font-size: 13.5px; color: var(--muted); max-width: 560px; }
.airmail-form { margin-top: 18px; width: auto; }
.airmail-row { display: flex; gap: 12px; max-width: 520px; }
.airmail-row input {
  flex: 1; font: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 12px 14px; outline: none;
}
.airmail-row input:focus { border-color: var(--ink); }

@media (max-width: 1080px) {
  .ev-body { grid-template-columns: 1fr; }
  .ev-head { flex-direction: column; align-items: flex-start; }
  .ev-hero-art { width: min(100%, 560px); }
  .weekend-ticket { flex-direction: column; align-items: flex-start; }
  .wk-stamp { position: absolute; right: 8px; top: 8px; width: 110px; }
  .airmail { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .events-page { padding-left: 20px; padding-right: 20px; }
  .pinboard { grid-template-columns: 1fr; }
}

/* ============ guide article page ============ */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--brown); z-index: 1300;
}
.guide-page { max-width: 1840px; margin: 0 auto; padding: 0 48px 60px; }
.gp-hero {
  position: relative; border-radius: 14px; overflow: hidden;
  min-height: clamp(320px, 42vh, 480px);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  margin-top: 24px; box-shadow: var(--shadow);
  filter: saturate(.94);
}
.gp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(12deg, rgba(20,14,5,.82) 12%, rgba(20,14,5,.28) 55%, rgba(20,14,5,.04)); }
.gp-hero-overlay { position: relative; z-index: 1; color: #f6efdd; padding: clamp(24px, 3vw, 44px); max-width: 780px; }
.gp-hero-overlay .chip { margin-bottom: 14px; display: inline-block; }
.gp-hero-overlay h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; text-wrap: balance; }
.gp-lead { font-size: clamp(14px, 1.1vw, 17px); opacity: .92; margin-top: 12px; max-width: 62ch; }
.gp-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: .8; margin-top: 14px; }
.gp-meta svg { width: 14px; height: 14px; }

.gp-body {
  display: grid; grid-template-columns: 240px minmax(0, 72ch); gap: clamp(32px, 5vw, 90px);
  justify-content: center; padding-top: clamp(32px, 4vw, 56px);
}
.gp-toc { position: sticky; top: 96px; align-self: start; }
.gp-toc nav a {
  display: block; font-size: 13px; color: var(--muted);
  padding: 6px 0 6px 14px; border-left: 2px solid var(--line-soft);
}
.gp-toc nav a.on { color: var(--brown); border-left-color: var(--brown); font-weight: 600; }
.gp-toc nav a:hover { color: var(--ink); }
.gp-back { display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 600; color: var(--brown); }

.gp-article { font-size: 16px; line-height: 1.75; }
.gp-article p { margin-bottom: 18px; text-wrap: pretty; }
.gp-article h2 {
  font-family: var(--serif); font-size: clamp(22px, 2vw, 30px);
  margin: 38px 0 14px; line-height: 1.2; scroll-margin-top: 90px;
}
.gp-article b { font-weight: 600; }

.g-tip {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper-2); border-radius: 10px;
  padding: 14px 18px; margin: 20px 0;
}
.g-tip span {
  flex: none; font-size: 9.5px; letter-spacing: .2em; font-weight: 600;
  color: var(--brown); border: 1px solid var(--brown); border-radius: 4px;
  padding: 3px 8px; margin-top: 3px;
}
.g-tip p { margin: 0; font-size: 14px; }

.g-stat {
  border: 1px solid var(--brown); border-radius: 10px;
  padding: 16px 18px; margin: 22px 0;
}
.g-stat-mark {
  display: inline-block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--on-brown); background: var(--brown);
  border-radius: 4px; padding: 3px 9px; margin-bottom: 8px;
}
.g-stat p { margin: 0; font-size: 14.5px; }
.g-stat-cols { display: flex; align-items: center; gap: 18px; text-align: center; }
.gs-col { flex: 1; }
.gs-hood { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); font-weight: 600; }
.gs-n { font-family: var(--serif); font-size: 44px; line-height: 1.1; }
.gs-cap { font-size: 11px; color: var(--muted); }
.gs-tags { font-size: 12px; color: var(--ink); margin-top: 6px; }
.gs-vs { font-family: var(--serif); font-style: italic; color: var(--muted); }

.g-picks { display: grid; gap: 10px; margin: 20px 0; }
.g-pick {
  display: flex; align-items: center; gap: 14px; text-align: left;
  font: inherit; cursor: pointer; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; transition: transform .15s var(--ease-quint), box-shadow .15s ease;
}
.g-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-pick img { width: 76px; height: 58px; object-fit: cover; border-radius: 6px; filter: saturate(.94); }
.g-pick-txt { flex: 1; min-width: 0; }
.g-pick-txt b { display: block; font-family: var(--serif); font-size: 16px; }
.g-pick-txt em { display: block; font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 2px 0 5px; }
.g-pick-star { color: var(--gold); font-size: 18px; }

.g-phrases { border-top: 1px solid var(--line-soft); margin: 20px 0; }
.g-phrases p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; margin: 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.g-phrases .cp-jp em { font-size: 11px; }
.g-phrases > p > span:last-child { color: var(--muted); flex: none; }

.g-divider { text-align: center; margin: 34px 0; }
.g-divider img { width: 64px; opacity: .55; transform: rotate(-6deg); }

.g-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: fit-content; padding: 14px 26px; margin: 28px 0 10px;
  font-family: var(--serif); font-size: 17px;
}
.g-cta svg { position: absolute; right: 18px; top: 20px; }
.g-cta { position: relative; padding-right: 56px; }
.g-cta-sub { font-family: var(--sans); font-size: 11px; font-weight: 400; opacity: .85; }

.gp-next { max-width: 72ch; margin: 40px auto 0; }
.gp-next-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; transition: transform .15s var(--ease-quint), box-shadow .15s ease;
}
.gp-next-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gp-next-card b { display: block; font-family: var(--serif); font-size: 19px; }
.gp-next-card em { font-style: normal; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.gp-next-card svg { width: 20px; height: 20px; flex: none; }

@media (max-width: 1080px) {
  .gp-body { grid-template-columns: minmax(0, 72ch); }
  .gp-toc { display: none; }
}
@media (max-width: 640px) {
  .guide-page { padding: 0 20px 40px; }
  .gp-article { font-size: 15px; }
  .g-stat-cols { flex-direction: column; gap: 10px; }
}

/* ============ shop explorer: split list + map ============ */
.explorer-page { max-width: none; padding: 24px clamp(16px, 1.6vw, 32px) 40px; }
.exp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.exp-head h1 { font-size: clamp(28px, 2.6vw, 40px); }
.exp-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.exp-sub b { color: var(--ink); font-size: 15px; }
.exp-head-actions { display: flex; align-items: center; gap: 12px; }

.explorer {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) clamp(400px, 40vw, 720px);
  gap: clamp(16px, 1.4vw, 26px);
  align-items: start;
}
.exp-list { min-width: 0; }
.exp-list .shop-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }

.exp-map {
  position: sticky; top: 76px;
  height: calc(100vh - 96px);
  border: 1px solid var(--ink); border-radius: 12px;
  outline: 1px solid var(--ink); outline-offset: 3px;
  overflow: hidden; box-shadow: var(--shadow);
}
.exp-map #liveMap { width: 100%; height: 100%; background: var(--paper-2); }

.area-toggle {
  position: absolute; top: 12px; right: 12px; z-index: 500;
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow);
}
.area-toggle input { display: none; }
.area-toggle i {
  flex: none; width: 32px; height: 18px; border-radius: 18px;
  background: var(--line); position: relative; transition: background .2s;
}
.area-toggle i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fbf7ec; transition: left .2s;
}
.area-toggle input:checked + i { background: var(--teal); }
.area-toggle input:checked + i::after { left: 16px; }

.exp-legend { left: 12px; bottom: 20px; padding: 8px 12px; }
.exp-legend p { font-size: 11px; padding: 1.5px 0; }

.exp-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.exp-empty img { width: 130px; margin: 0 auto 14px; }
.exp-empty p b { color: var(--ink); font-family: var(--serif); font-size: 18px; }

.card-flash { animation: card-flash 1.2s var(--ease-quint); }
@keyframes card-flash {
  0%, 55% { box-shadow: 0 0 0 3px var(--brown), var(--shadow); }
  100% { box-shadow: 0 1px 2px rgba(60, 45, 20, .06); }
}

.fab {
  display: none;
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 1250;
  align-items: center; gap: 9px;
  font: 600 14px var(--sans); color: var(--paper);
  background: var(--ink); border: 0; border-radius: 999px;
  padding: 13px 24px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(30, 24, 12, .4);
}
.fab svg { width: 16px; height: 16px; }

@media (max-width: 1300px) {
  .explorer { grid-template-columns: 230px minmax(0, 1fr) clamp(340px, 34vw, 480px); }
}
@media (max-width: 1080px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer .filters { position: static; max-height: none; }
  .exp-map { display: none; }
  .fab { display: flex; }
  /* режим карты на мобильном */
  body.map-view .exp-map {
    display: block; position: fixed; inset: 0; top: 0;
    height: 100vh; z-index: 1240; border-radius: 0; outline: none;
  }
  body.map-view .exp-list, body.map-view .explorer .filters, body.map-view .exp-head { visibility: hidden; }
  body.map-view { overflow: hidden; }
}

/* ---- my route panel ---- */
.route-modal h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.route-list { list-style: none; margin: 6px 0 4px; }
.route-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; border-bottom: 1px dashed var(--line-soft);
}
.rl-no {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 11.5px; font-weight: 600; display: grid; place-items: center;
}
.rl-txt { flex: 1; min-width: 0; }
.rl-txt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-txt em { font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rl-rm {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.rl-rm svg { width: 12px; height: 12px; }
.rl-rm:hover { border-color: var(--red); color: var(--red); }
.route-modal .sm-actions { margin-top: 18px; }
#routeGo.disabled { opacity: .45; pointer-events: none; }
.map-stop.my-stop { background: var(--ink); width: 24px; height: 24px; }

/* map page layout with catalog-style sidebar */
.mappage-body { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.mappage-body .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.mappage-body .plan-card .btn { font-size: 13px; padding: 11px; }
@media (max-width: 1080px) {
  .mappage-body { grid-template-columns: 1fr; }
  /* на улице карта нужна сразу: фильтры уезжают под неё */
  .mappage-body .filters { position: static; max-height: none; order: 2; }
  .mappage-body > div { order: 1; }
}

/* locate control + "you are here" */
.locate-btn.on { background: var(--teal) !important; color: #f0ece0 !important; }
.locate-btn svg { display: block; margin: 7px auto; }
.me-dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(30, 24, 12, .4);
  position: relative;
}
.me-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--teal);
  animation: me-pulse 2s ease-out infinite;
}
@keyframes me-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---- match wizard ---- */
.match-cta { margin-top: 20px; }
.match-modal .sm-body { padding-top: 24px; }
.match-modal h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.match-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; max-width: 340px; }
.match-modal .f-title { margin-top: 16px; }
.f-hint { font-style: normal; text-transform: none; letter-spacing: .04em; color: var(--muted); opacity: .75; font-weight: 400; margin-left: 4px; }
.match-modal .tag-row { margin-bottom: 4px; }
.match-actions { margin-top: 22px; }
.btn.ghost.inline { width: auto; padding: 12px 20px; }
.match-note { color: var(--muted); font-weight: 400; }
.match-clear {
  font: inherit; font-size: 12px; color: var(--red); font-weight: 600;
  background: none; border: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; padding: 0 0 0 4px;
}
.teaser-match { color: var(--red); font-weight: 600; }
.teaser-match:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  font-size: 13.5px; border-radius: 10px; padding: 12px 20px;
  z-index: 3100; box-shadow: var(--shadow);
  animation: toast-in .25s var(--ease-quint);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ motion ============ */
/* signature entrance: the hero collage is laid out on the desk */
.hero .kicker, .hero h1, .hero .sub { animation: rise-in .6s var(--ease-quint) backwards; }
.hero h1 { animation-delay: .06s; }
.hero .sub { animation-delay: .16s; }
.hero-art .ph-tower { animation: rise-in .7s var(--ease-quint) .1s backwards; }
.hero-art .note-img { animation: postcard-drop .55s var(--ease-quint) .3s backwards; }
.hero-art .stamp-hero { animation: stamp-press .3s var(--ease-expo) .62s backwards; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes postcard-drop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stamp-press {
  0% { opacity: 0; transform: rotate(-10deg) scale(1.6); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}

/* earned scroll reveal: only the route tickets */
.will-reveal { opacity: 0; transform: translateY(20px); }
.revealed {
  opacity: 1; transform: translateY(0);
  transition: opacity .55s var(--ease-quint), transform .55s var(--ease-quint);
  transition-delay: var(--d, 0ms);
}


/* feedback */
.btn { transition: transform .12s var(--ease-quint), filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.97); }
.tag { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.shop-card img { transition: transform .45s var(--ease-quint); }
.shop-card:hover img { transform: scale(1.04); }
.sm-thumbs img { transition: transform .3s var(--ease-quint), opacity .15s ease; }
.sm-thumbs img:hover { transform: translateY(-2px); }
.myroute.pulse { animation: route-pulse .3s var(--ease-quint); }
@keyframes route-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* modal entrance (exit is instant by design) */
.modal-back { animation: fade-in .2s ease-out; }
.shop-modal { animation: modal-in .28s var(--ease-quint); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* catalog cards reshuffle with a capped stagger */
.shop-card { animation: card-in .3s var(--ease-quint) backwards; animation-delay: calc(min(var(--i, 0), 11) * 22ms); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- мобильные фильтры: длинные списки сворачиваются в прокрутку ---- */
@media (max-width: 820px) {
  #hoodFilters { max-height: 168px; overflow-y: auto; padding-right: 6px; }
  .tag-row { max-height: 128px; overflow-y: auto; }
  .weekend-ticket::before, .weekend-ticket::after { display: none; }
  .wk-stamp { position: static; width: 120px; align-self: flex-end; margin-top: -30px; }
  .site-foot { padding-bottom: max(56px, calc(40px + env(safe-area-inset-bottom))); }
  .evt-toprow { flex-direction: column; gap: 2px; }
  .evt-days { max-width: none; text-align: left; }
}

/* ---- тач-устройства: увеличенные цели нажатия ---- */
@media (pointer: coarse) {
  .tag { padding: 9px 14px; font-size: 13px; }
  .evt-link { padding: 8px 4px; display: inline-block; }
  .match-clear { padding: 8px 6px; }
  .hood-row { padding: 9px 0; }
  .rl-rm { width: 36px; height: 36px; }
  .sm-thumbs img { height: 88px; }
  .head-nav a { padding: 9px 4px; }
  .lb-nav { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .route-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .guides-body { grid-template-columns: 1fr; }
  .finder-body { grid-template-columns: 1fr; }
  .filters { position: static; }
  .site-foot { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .site-head { padding: 10px 12px; gap: 6px 8px; flex-wrap: wrap; }
  .logo { font-size: 19.5px; gap: 8px; }
  .logo-mark { width: 38px; height: 38px; }
  .head-search { order: 3; flex: 1 1 100%; padding: 8px 12px; }
  /* мобильное меню одной строкой: Shop Explorer + Markets + компактная корзина */
  .head-nav { gap: 0 12px; flex-wrap: nowrap; margin-left: 0; flex: 1; justify-content: flex-end; }
  .head-nav a { font-size: 13.5px; padding: 5px 0; white-space: nowrap; }
  .head-nav a:nth-of-type(n+3) { display: none; }
  .myroute { font-size: 0; gap: 5px; padding: 8px 11px; }
  .myroute svg { width: 16px; height: 16px; }
  .myroute #routeCount { font-size: 13.5px; }
  .hero, .finder-head, .letter-band { flex-direction: column; }
  .finder-art { flex-wrap: wrap; }
  /* улочка: в самом файле пустая левая треть — на мобиле кропаем её */
  img.ph-street {
    width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: 94% 50%;
    -webkit-mask-image: none; mask-image: none;
  }
  /* плашки на карте — компактные */
  .map-intro { left: 14px; top: 14px; max-width: 190px; padding: 12px 14px; }
  .map-intro h2 { font-size: 19px; margin-bottom: 7px; padding-bottom: 5px; }
  .map-intro p { font-size: 12px; }
  .map-open-live { left: 14px; top: 126px; font-size: 13px; padding: 10px 16px; }
  .map-cartouche { padding: 9px 13px; }
  .mc-big { font-size: 20px; }
  .mc-small { font-size: 8.5px; }
  .mc-coords { font-size: 8.5px; }
  .mc-tag { font-size: 8px; margin-top: 7px; padding-top: 6px; }
  .compass { width: 54px; left: 16px; bottom: 16px; }
  .hero { grid-template-columns: 1fr; padding: 44px 20px 20px; }
  /* коллаж в пропорциях десктопа: башня слева-снизу, записка справа-сверху, печать внахлёст на её угол */
  .hero-art { width: 100%; min-height: 0; height: min(84vw, 400px); margin-top: 4px; }
  .ph-tower { width: min(60vw, 285px); left: 0; bottom: 0; }
  .note-img { width: min(45vw, 215px); }
  .note-img.note-sm { width: min(48vw, 200px); }
  .stamp-hero { width: min(29vw, 138px); right: min(30vw, 142px); top: -8px; }
  .routes-band, .map-band, .finder, .guides, .letter-band, .site-foot { padding-left: 20px; padding-right: 20px; }
  .guide-grid { grid-template-columns: 1fr; }
  .letter-form { margin-left: 0; width: 100%; }
  .map-canvas { height: 560px; }
  .map-cartouche { right: 12px; bottom: 12px; }
  .shop-grid { columns: 2 160px; }
}

/* телефоны: шапка обязана остаться одной строкой */
@media (max-width: 430px) {
  .site-head { gap: 5px; padding: 10px 10px; }
  .logo { font-size: 16.5px; gap: 5px; }
  .logo-mark { width: 32px; height: 32px; }
  .head-nav { gap: 0 8px; }
  .head-nav a { font-size: 12px; }
  .myroute { padding: 7px 8px; gap: 4px; }
  .myroute #routeCount { font-size: 12.5px; }
}

/* city select in explorer sidebar */
.city-select { width: 100%; }

/* ---- legal page (terms / privacy / cookies) ---- */
.legal-page { max-width: 780px; margin: 0 auto; padding: 54px 24px 80px; }
.legal-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.legal-page h1 { font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 3.1rem); margin: 10px 0 16px; text-wrap: balance; }
.legal-lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft, #4a4234); max-width: 64ch; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 10px; }
.legal-toc a { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 14px; }
.legal-toc a:hover { background: var(--ink); color: var(--paper); }
.legal-updated { font-size: 13px; color: #7a6f5c; margin-bottom: 34px; }
.legal-page section { border-top: 2px solid var(--ink); padding-top: 30px; margin-top: 38px; }
.legal-page h2 { font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 18px; }
.legal-page h3 { font-size: 16px; margin: 24px 0 8px; }
.legal-page p { font-size: 15px; line-height: 1.7; max-width: 70ch; margin-bottom: 12px; }
.legal-page code { background: rgba(33, 28, 19, .07); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.legal-tldr { background: rgba(122, 74, 40, .08); border: 1px solid rgba(122, 74, 40, .25); border-radius: 10px; padding: 14px 18px; }
.legal-table-wrap { overflow-x: auto; margin: 14px 0 18px; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 14px; }
.legal-table th, .legal-table td { border: 1px solid rgba(33, 28, 19, .25); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table th { background: rgba(33, 28, 19, .06); font-weight: 600; }
.legal-stamp { text-align: center; margin-top: 54px; }
.legal-stamp img { width: 110px; opacity: .9; }
.legal-stamp p { font-family: "Playfair Display", serif; font-style: italic; font-size: 16px; color: #6d6250; margin-top: 8px; }

/* ---- SEO shop pages (shop/<slug>.html): бумажная карточка в языке модалки ---- */
.shop-page { max-width: 1480px; margin: 0 auto; padding: 26px 32px 84px; }
.sp-crumbs { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); margin-bottom: 26px; }
.sp-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 470px); gap: 48px; align-items: start; }
/* фото как отпечатки на бумаге */
.sp-print { background: #fff; padding: 10px 10px 16px; border-radius: 4px; box-shadow: 0 16px 44px rgba(30, 24, 12, .22); transform: rotate(-.7deg); }
.sp-print img { display: block; width: 100%; border-radius: 2px; cursor: zoom-in; }
.sp-gallery img { cursor: zoom-in; }
.sp-gallery { display: flex; gap: 14px; margin-top: 20px; }
.sp-gallery img { width: calc(33.33% - 10px); aspect-ratio: 1; object-fit: cover; background: #fff; padding: 6px; border-radius: 3px; box-shadow: 0 8px 22px rgba(30, 24, 12, .18); }
.sp-gallery img:nth-child(odd) { transform: rotate(.8deg); }
.sp-gallery img:nth-child(even) { transform: rotate(-.6deg); }
/* информационная карточка — как shop-modal */
.sp-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 24px 24px; }
.sp-tape { position: absolute; top: -13px; left: 50%; width: 112px; height: 27px; background: rgba(199, 164, 98, .42); transform: translateX(-50%) rotate(-2.2deg); border-left: 1px dashed rgba(120, 95, 45, .35); border-right: 1px dashed rgba(120, 95, 45, .35); }
.sp-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sp-card h1 { font-family: var(--serif); font-size: clamp(26px, 3vw, 33px); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; }
.sp-titlerow .badge { flex: none; font-size: 11.5px; padding: 6px 12px; border-radius: 999px; margin-top: 6px; }
.sp-where { font-size: 13.5px; color: var(--muted); margin: 8px 0 14px; }
.sp-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--brown); margin: 18px 0 8px; }
.sp-address { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
.sp-address svg { flex: none; margin-top: 2px; color: var(--brown); }
.sp-card .sm-actions { margin-top: 4px; }
.sp-explore { display: block; margin-top: 16px; font-weight: 600; font-size: 13.5px; border-top: 1px dashed var(--line-soft); padding-top: 14px; }
.sp-explore:hover { color: var(--brown); }
.sp-stamp { position: absolute; right: 14px; bottom: 56px; width: 62px; opacity: .45; transform: rotate(9deg); pointer-events: none; }
/* соседи — бумажные мини-карточки */
.sp-nearby { margin-top: 60px; border-top: 2px solid var(--ink); padding-top: 26px; }
.sp-nearby h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
.sp-near-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.sp-near { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 12px; transition: transform .25s var(--ease-quint), box-shadow .25s var(--ease-quint); }
.sp-near:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sp-near img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.sp-near span { display: block; font-weight: 600; font-size: 14px; }
.sp-near em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .sp-grid { grid-template-columns: 1fr; gap: 30px; }
  .sp-card { margin-top: 6px; }
}

/* ---- Pokémon card shops: переключатель раздела, японские имена, бейдж типа ---- */
.kind-switch { display: inline-flex; gap: 6px; margin-bottom: 12px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.kind-switch a { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; color: var(--ink); }
.kind-switch a.on { background: var(--ink); color: var(--paper); }
.kind-switch a:not(.on):hover { background: rgba(33, 28, 19, .08); }
.sc-jp { font-size: 12px; color: var(--muted); margin: -2px 0 3px; letter-spacing: .02em; }
.sm-jp { font-size: 13.5px; color: var(--muted); margin: 2px 0 4px; }
.sm-about { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 4px 0 14px; }
.sp-jp { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.sp-addr-jp { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.sp-about { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.badge.pk { background: rgba(47, 97, 87, .12); color: #2f6157; text-transform: capitalize; }
@media (max-width: 820px) { .kind-switch a { padding: 6px 11px; font-size: 12px; } }

/* ---- directory pages (directory.html, pokemon.html): все магазины ссылками ---- */
.dir-page { max-width: 1100px; margin: 0 auto; padding: 44px 24px 90px; }
.dir-page h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.dir-lead { font-size: 16.5px; line-height: 1.65; max-width: 70ch; margin: 14px 0 18px; color: var(--ink-soft, #4a4234); }
.dir-cta { margin-bottom: 28px; }
.dir-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 6px 0 22px; font-size: 14px; color: var(--muted); }
.dir-stats b { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-right: 6px; }
.dir-page h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 34px 0 12px; }
.dir-page > p, .dir-page .dir-faq p { font-size: 15px; line-height: 1.7; max-width: 72ch; margin-bottom: 12px; }
.dir-faq { border-top: 1px solid var(--line-soft); padding: 10px 0; max-width: 72ch; }
.dir-faq summary { font-weight: 600; cursor: pointer; font-size: 15px; padding: 4px 0; }
.dir-faq p { margin: 8px 0 4px; color: var(--ink-soft, #4a4234); }
.dir-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.dir-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; background: var(--card); }
.dir-toc a span { color: var(--muted); margin-left: 4px; }
.dir-toc a:hover { border-color: var(--ink); }
.dir-city { border-top: 2px solid var(--ink); padding-top: 20px; margin-top: 34px; }
.dir-city h2 { margin-top: 0; }
.dir-city h2 small, .dir-city h3 small { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: .04em; }
.dir-city h3 { font-size: 15px; letter-spacing: .02em; margin: 18px 0 8px; color: var(--brown); }
.dir-list { columns: 3 260px; column-gap: 28px; list-style: none; padding: 0; margin: 0 0 6px; }
.dir-list li { break-inside: avoid; font-size: 14px; line-height: 1.45; padding: 3px 0; }
.dir-list a { font-weight: 600; }
.dir-list a:hover { text-decoration: underline; }
.dir-jp { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.dir-list em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; text-transform: capitalize; }
