/* ============ Токены ============ */
:root {
  /* «Отметка» v4: тёплая бумага, красная булавка, чернила */
  --blue: oklch(56% 0.19 29);        /* акцент: красный маркер (имя переменной осталось от старой темы) */
  --blue-600: oklch(49% 0.18 29);
  --blue-50: oklch(95.5% 0.022 40);
  --blue-100: oklch(89% 0.05 35);
  --ink: oklch(23% 0.012 50);
  --text: oklch(30% 0.012 50);
  --text-2: oklch(46% 0.014 55);
  --muted: oklch(58% 0.014 60);
  --line: oklch(89% 0.014 75);
  --line-2: oklch(84% 0.016 75);
  --bg: oklch(96.6% 0.013 82);        /* бумага */
  --paper-2: oklch(93.8% 0.02 82);
  --card: oklch(99.2% 0.005 85);
  --star: oklch(79% 0.16 75);
  --note: oklch(91% 0.13 98);         /* жёлтый стикер */
  --green: oklch(55% 0.13 150);
  --green-50: oklch(95% 0.035 150);
  --red: oklch(56% 0.19 29);
  --red-50: oklch(95.5% 0.022 40);
  --navy: oklch(23% 0.012 50);
  --map-bg: oklch(94.5% 0.018 85);
  --map-street: oklch(88.5% 0.02 80);
  --map-road: oklch(99% 0.006 85);
  --map-water: oklch(86% 0.045 230);
  --map-water-edge: oklch(80% 0.05 230);
  --map-park: oklch(89% 0.05 140);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 22px rgba(60, 40, 20, .07);
  --shadow-lg: 0 14px 40px rgba(60, 40, 20, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.c-green { color: var(--green); }
.c-red { color: var(--red); }

.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico--sm { width: 16px; height: 16px; }
.ico--xs { width: 12px; height: 12px; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .15s var(--ease), border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(196, 50, 36, .28); }
.btn--primary:hover { background: var(--blue-600); }
.btn--outline { border: 1.5px solid var(--line); color: var(--blue); background: var(--card); }
.btn--outline:hover { border-color: var(--blue); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: inline-grid; place-items: center; color: var(--ink);
  transition: background .2s;
}
.icon-btn:hover { background: var(--blue-50); }
.icon-btn--ghost { width: 28px; height: 28px; color: var(--muted); }
.icon-btn .dot { position: absolute; top: 9px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }

/* ============ Шапка ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; height: 72px; gap: 40px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--blue);
  display: grid; place-items: center; color: #fff;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo--light { color: #fff; }
.logo__mark--light { background: var(--card); color: var(--navy); }

.nav { display: flex; gap: 32px; }
.nav__link { position: relative; font-weight: 600; font-size: 14px; color: var(--text); padding: 24px 0; transition: color .2s; }
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); border-radius: 2px; }

.city-select { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; font-size: 14px; }
.city-select .ico--sm { color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-2) 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; }
.hero__content { position: relative; z-index: 2; padding: 56px 0 44px; }
.hero__title {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
}
.hero__subtitle { margin-top: 20px; max-width: 460px; color: var(--text-2); font-size: 16px; }

.search {
  margin-top: 32px; display: flex; align-items: center;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 6px; max-width: 580px;
}
.search__field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: var(--muted); min-width: 0; }
.search__field input { flex: 1; min-width: 0; border: 0; outline: 0; height: 44px; font: inherit; font-size: 14px; color: var(--text); background: transparent; }
.search__field input::placeholder { color: var(--muted); }
.search__city { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 32px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 600; min-width: 170px; }
.search__city span { flex: 1; text-align: left; }
.search__city .ico--sm { color: var(--muted); }
.search__submit {
  width: 52px; height: 44px; border-radius: 11px; background: var(--blue); color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .15s var(--ease);
}
.search__submit:hover { background: var(--blue-600); }
.search__submit:active { transform: scale(.95); }

.popular { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.popular__label { font-size: 13px; color: var(--text-2); margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px;
  background: var(--card); border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .06); transition: color .2s, box-shadow .2s;
}
.chip:hover { color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue-100); }

.hero__visual { position: relative; margin-right: calc((100vw - min(100vw, 1240px)) / -2 - 24px); }
.hero__blob-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image {
  position: absolute; inset: 0 0 0 18px; overflow: hidden;
  border-radius: 48% 0 0 30% / 40% 0 0 55%;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38, 30, 24, .25), transparent 40%);
}
.hero__note {
  position: absolute; top: 34px; right: 4%; z-index: 3;
  font-family: 'Caveat', cursive; font-size: 26px; line-height: 1; color: #fff;
  text-align: center; transform: rotate(-8deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero__note-arrow { display: block; width: 70px; height: 36px; margin: 4px 0 0 -30px; }
.rating-badge {
  position: absolute; top: 44%; right: 12%; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.rating-badge__star { width: 24px; height: 24px; color: var(--star); }
.rating-badge strong { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.rating-badge span { font-size: 11px; line-height: 1.2; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============ Категории ============ */
.categories { background: var(--card); border-bottom: 1px solid var(--line); }
.categories__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding-top: 20px; padding-bottom: 20px; }
.category { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 2px; }
.category__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 8px;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.category__icon svg { width: 26px; height: 26px; }
.category:hover .category__icon { transform: translateY(-3px); }
.category.is-active .category__icon { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(196, 50, 36, .3); }
.category__name { font-weight: 600; font-size: 14px; color: var(--ink); }
.category.is-active .category__name { color: var(--blue); }
.category__count { font-size: 12px; color: var(--muted); }
.category.is-active .category__count { color: var(--blue); }

/* ============ Раскладка ============ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-top: 28px; padding-bottom: 40px; }
.layout__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.layout__side { display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section__title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 600; }
.link-more .ico { transition: transform .2s var(--ease); }
.link-more:hover .ico { transform: translateX(3px); }
.link-more.small { font-size: 11px; }

/* Рейтинг/звёзды */
.star { width: 14px; height: 14px; color: var(--star); }
.rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rating b { color: var(--ink); }
.rating--sm { font-size: 11px; gap: 4px; }
.rating--sm .star { width: 12px; height: 12px; }
.stars {
  --size: 16px;
  display: inline-block; width: calc(var(--size) * 5); height: var(--size);
  background:
    linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--line-2) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.49l-5.87 3.09 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.49l-5.87 3.09 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.stars--lg { --size: 22px; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.badge--dark { background: rgba(38, 30, 24, .78); color: #fff; backdrop-filter: blur(6px); text-transform: none; font-size: 11px; }
.badge--green { background: var(--green-50); color: var(--green); }

.fav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: color .2s, transform .2s var(--ease); flex-shrink: 0; }
.fav svg { width: 18px; height: 18px; }
.fav:hover { color: var(--red); }
.fav:active { transform: scale(.85); }
.fav.is-active { color: var(--red); }
.fav.is-active svg path { fill: currentColor; }
.fav--lg { width: 40px; height: 40px; border: 1.5px solid var(--line); }
.fav--lg svg { width: 20px; height: 20px; }

/* ============ Карточки мест ============ */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.place-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.place-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.place-card:hover .place-card__media img { transform: scale(1.05); }
.place-card__media .badge { position: absolute; top: 10px; right: 10px; }
.place-card__body { padding: 12px 14px 14px; }
.place-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.place-card__name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-card .rating { margin-top: 4px; }
.place-card .rating .muted { font-size: 12px; margin-left: 4px; }
.place-card__meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.place-card__foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; font-weight: 600; }

/* ============ Заведение ============ */
.venue { padding: 20px; }
.venue__top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; }
.venue__main-photo { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.venue__main-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.venue__counter { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(38, 30, 24, .7); color: #fff; font-size: 11px; font-weight: 600; }
.venue__thumbs { margin-top: 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { outline-color: var(--blue); }
.thumb--more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(38, 30, 24, .45); color: #fff; font-size: 24px; }

.venue__info { display: flex; flex-direction: column; padding-top: 4px; }
.venue__head { display: flex; justify-content: space-between; align-items: flex-start; }
.venue__name { margin-top: 8px; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.venue__rating { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.venue__rating > b { font-size: 20px; color: var(--ink); }
.venue__rating .muted { font-size: 13px; }
.venue__facts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.venue__facts li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.venue__facts .ico { width: 18px; height: 18px; color: var(--muted); }
.venue__facts .sep { color: var(--muted); }
.venue__buttons { display: flex; gap: 12px; margin-top: auto; padding-top: 20px; }
.venue__buttons .btn { flex: 1; max-width: 170px; }
.mentions { display: flex; flex-direction: column; gap: 10px; }
.mentions li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.mentions .muted { font-size: 11px; }
.mentions__ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.mentions--good .mentions__ico { background: var(--green-50); color: var(--green); }
.mentions--bad .mentions__ico { background: var(--red-50); color: var(--red); font-weight: 700; }

/* ============ Отзывы ============ */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filters__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 16px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.pill .ico { color: var(--ink); }
.pill:hover { border-color: var(--blue-100); }
.pill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(196, 50, 36, .28); }
.pill.is-active .ico { color: #fff; }
.sort { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

.reviews { display: flex; flex-direction: column; gap: 14px; }
.review { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 20px; animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.review__head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.review__author { font-weight: 700; font-size: 14px; color: var(--ink); }
.review__title { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.review__text { margin-top: 6px; font-size: 13px; color: var(--text-2); max-width: 560px; }
.review__photos { display: flex; gap: 8px; margin-top: 14px; }
.review__photos img { width: 118px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transition: transform .25s var(--ease); cursor: zoom-in; }
.review__photos img:hover { transform: scale(1.04); }
.review__actions { display: flex; gap: 20px; margin-top: 14px; }
.action { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); transition: color .2s; }
.action:hover, .action.is-active { color: var(--blue); }
.action span { color: var(--muted); }

.reviews__empty { text-align: center; padding: 24px; }

/* ============ Сайдбар ============ */
.map { position: relative; height: 150px; overflow: hidden; }
.map__svg { width: 100%; height: 100%; display: block; }
.map__pin {
  position: absolute; width: 18px; height: 22px; transform: translate(-50%, -100%);
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M9 0a9 9 0 019 9c0 6-9 13-9 13S0 15 0 9a9 9 0 019-9zm0 5a4 4 0 100 8 4 4 0 000-8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M9 0a9 9 0 019 9c0 6-9 13-9 13S0 15 0 9a9 9 0 019-9zm0 5a4 4 0 100 8 4 4 0 000-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.map__near {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 8px; background: var(--card); box-shadow: var(--shadow);
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.map__near .ico { color: var(--blue); }
.map__locate {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(196, 50, 36, .4);
}

.side-card { padding: 16px; }
.side-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.side-card__head h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--ink); }

.discuss { display: flex; flex-direction: column; gap: 16px; }
.discuss li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.discuss img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.discuss b { font-size: 12px; color: var(--ink); }
.discuss p { font-size: 11px; color: var(--text-2); margin: 4px 0; }

.top { counter-reset: top; display: flex; flex-direction: column; gap: 12px; }
.top li { counter-increment: top; display: grid; grid-template-columns: 14px 44px 1fr; gap: 10px; align-items: center; }
.top li::before { content: counter(top) "."; font-size: 11px; font-weight: 700; color: var(--ink); }
.top img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.top b { font-size: 12px; color: var(--ink); }
.top .small { font-size: 10px; }

.cta-card { background: var(--blue-50); border-radius: var(--radius); padding: 20px; }
.cta-card__row { display: flex; gap: 14px; margin-bottom: 16px; }
.cta-card__icon { width: 34px; height: 34px; color: var(--blue); flex-shrink: 0; transform: rotate(0deg); }
.cta-card h3 { font-size: 16px; font-weight: 800; color: var(--ink); }
.cta-card p { margin-top: 6px; font-size: 12px; color: var(--text-2); }


/* ============ Подвал ============ */
.footer { background: var(--navy); color: #c7cfe6; }
.footer__inner { display: flex; align-items: center; gap: 40px; min-height: 100px; padding-top: 24px; padding-bottom: 24px; }
.footer__brand { display: flex; align-items: center; gap: 24px; }
.footer__tagline { font-size: 11px; line-height: 1.4; }
.footer__nav { display: flex; gap: 28px; margin: 0 auto; font-size: 13px; }
.footer__nav a { transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.socials { display: flex; gap: 16px; }
.socials a { color: #fff; opacity: .9; transition: opacity .2s; }
.socials a:hover { opacity: 1; }
.socials svg { width: 20px; height: 20px; }
.footer__copy { font-size: 11px; opacity: .7; }

/* ============ Адаптив ============ */
@media (max-width: 1100px) {
  .places { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav, .city-select, .header__actions .btn { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 300px; margin: 0 -24px; }
  .hero__image { border-radius: 40% 40% 0 0 / 20% 20% 0 0; inset: 16px 0 0; }
  .hero__blob-bg { display: none; }
  .hero__content { padding-bottom: 32px; }
  .categories__list { grid-template-columns: repeat(8, 88px); overflow-x: auto; scrollbar-width: none; }
  .layout { grid-template-columns: 1fr; }
  .layout__side { display: grid; grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__nav { margin: 0; flex-wrap: wrap; gap: 16px 24px; }
  .footer__right { align-items: flex-start; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .hero__visual { margin: 0 -16px; }
  .venue__top { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; }
  .review__head { grid-template-columns: auto 1fr auto; }
  .review__date { grid-column: 2; grid-row: 2; }
  .layout__side { grid-template-columns: 1fr; }
  .search { flex-wrap: wrap; }
  .search__field { flex-basis: 100%; }
  .search__city { flex: 1; border-left: 0; border-top: 1px solid var(--line); height: 44px; }
}

@media (max-width: 480px) {
  .places { grid-template-columns: 1fr; }
  .review__photos img { width: calc((100% - 16px) / 3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Доводка */
.side-card__head h3 { font-size: 14px; }
.side-card__head .link-more { white-space: nowrap; flex-shrink: 0; }
.chip { padding: 0 14px; }
.popular { gap: 8px; }
.hero__image img { object-position: center 60%; }

/* ============ Динамические данные ============ */
.places.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
.places__more { display: flex; justify-content: center; margin-top: 16px; }
.places__more .btn[hidden] { display: none; }
.empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); }
.place-card { cursor: pointer; outline: none; }
.place-card.is-selected { box-shadow: 0 0 0 2px var(--blue), var(--shadow-lg); }
.place-card:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.place-card__media .badge { left: 10px; right: auto; }
.place-card__foot { gap: 8px; }
.place-card__addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.place-card__foot .muted { white-space: nowrap; }
.place-card .rating { min-height: 20px; }
.badge--open { background: rgba(34, 164, 93, .92); color: #fff; text-transform: none; font-size: 11px; }
.badge--closed { background: rgba(38, 30, 24, .75); color: #fff; text-transform: none; font-size: 11px; }
.badge--blue { background: var(--blue-50); color: var(--blue); }

.venue__facts li { align-items: flex-start; }
.venue__facts a { color: var(--blue); }
.venue__facts a:hover { text-decoration: underline; }
.venue__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.venue__source { margin-top: 14px; font-size: 11px; }

.reviews__empty-card { display: flex; align-items: center; gap: 18px; padding: 24px; }
.reviews__empty-card h4 { font-size: 16px; color: var(--ink); }
.reviews__empty-card p { font-size: 13px; margin-top: 4px; }
.reviews__empty-card .btn { margin-left: auto; }
.reviews__empty-icon { width: 36px; height: 36px; color: var(--blue); flex-shrink: 0; }

.map { height: 220px; }
.map__near, .map__locate { z-index: 500; }

.discuss li, .top li { cursor: pointer; }
.discuss li:hover b, .top li:hover b { color: var(--blue); }
.side-card[hidden] { display: none; }

@media (max-width: 720px) {
  .reviews__empty-card { flex-direction: column; align-items: flex-start; }
  .reviews__empty-card .btn { margin-left: 0; }
}
.place-card .rating > .muted:first-child { margin-left: 0; }

/* ============ Окно отзыва ============ */
body.is-locked { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(38, 30, 24, .45); backdrop-filter: blur(3px); animation: fade .2s ease-out; }
.modal__dialog {
  position: relative; width: 100%; max-width: 580px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--card); border-radius: 20px; box-shadow: 0 30px 80px rgba(38, 30, 24, .3);
  padding: 28px; animation: pop .28s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--bg); color: var(--ink); }
.modal__title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 20px; }

.field { margin-bottom: 18px; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field__label .muted { font-weight: 500; }
.req { color: var(--red); font-style: normal; }
.field__error { color: var(--red); font-size: 12px; margin-top: 6px; min-height: 0; }
.field__error:empty { display: none; }
.field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; }
.field__meta .field__error { margin-top: 0; }
.field__meta .muted { margin-left: auto; }
.field.has-error .input { border-color: var(--red); background: #fffafa; }
.field.has-error .star-input { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.input {
  width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 14px; color: var(--text); background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.input--area { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.5; }

.venue-pick { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); }
.venue-pick[hidden] { display: none; }
.venue-pick__img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.venue-pick__info { display: flex; flex-direction: column; min-width: 0; }
.venue-pick__name { color: var(--ink); font-size: 14px; }
.venue-pick__addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn { margin-left: auto; color: var(--blue); font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 8px; }
.link-btn:hover { background: var(--blue-50); }
.venue-search { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--blue); border-radius: 12px; box-shadow: 0 0 0 4px var(--blue-50); color: var(--muted); }
.venue-search[hidden] { display: none; }
.venue-search input { flex: 1; border: 0; outline: 0; height: 44px; font: inherit; font-size: 14px; background: transparent; color: var(--text); }
.venue-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.venue-suggest:empty { display: none; }
.venue-suggest li { display: flex; flex-direction: column; padding: 10px 14px; cursor: pointer; }
.venue-suggest li b { color: var(--ink); font-size: 13px; }
.venue-suggest li span { font-size: 12px; color: var(--muted); }
.venue-suggest li:hover, .venue-suggest li.is-active { background: var(--blue-50); }
.venue-suggest .venue-suggest__empty { cursor: default; color: var(--muted); font-size: 13px; }
.venue-suggest .venue-suggest__empty:hover { background: none; }

.rate-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rate-hint { font-size: 13px; color: var(--muted); font-weight: 600; }
.rate-hint.is-set { color: var(--ink); }
.star-input { display: inline-flex; gap: 2px; }
.star-input button { width: 26px; height: 26px; color: var(--line-2); transition: color .12s, transform .15s var(--ease); border-radius: 6px; }
.star-input button svg { width: 100%; height: 100%; }
.star-input button.is-on { color: var(--star); }
.star-input button:hover { transform: scale(1.15); }
.star-input button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.star-input--lg button { width: 38px; height: 38px; }

.form-error { padding: 10px 14px; border-radius: 10px; background: var(--red-50); color: var(--red); font-size: 13px; margin-bottom: 14px; }
.review-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.review-done { text-align: center; padding: 20px 8px 8px; }
.review-done[hidden] { display: none; }
.review-done__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; animation: pop .35s var(--ease); }
.review-done__icon svg { width: 32px; height: 32px; }
.review-done .modal__title { margin-bottom: 8px; }
.review-done p { margin-bottom: 20px; }

/* Сортировка отзывов */
.sort { position: relative; padding: 0; }
.sort select { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13px; color: var(--text); height: 100%; padding: 0 38px 0 16px; cursor: pointer; outline: none; }
.sort .ico { position: absolute; right: 14px; pointer-events: none; }
.review.is-new { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.discuss p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 560px) {
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: 20px 20px 0 0; max-height: 92vh; padding: 22px 16px; }
  .review-form__footer { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}
.venue__buttons { flex-wrap: wrap; }
.venue__buttons .btn { padding: 0 16px; }

/* ============ Карта на весь экран ============ */
.map { cursor: pointer; }
.map__expand {
  position: absolute; top: 18px; right: 12px; z-index: 500; width: 32px; height: 32px; border-radius: 8px;
  background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
  transition: color .2s, transform .2s var(--ease);
}
.map__expand:hover { color: var(--blue); transform: scale(1.06); }

.fullmap { position: fixed; inset: 0; z-index: 900; display: flex; background: var(--line-2); animation: fade .2s ease-out; }
.fullmap[hidden] { display: none; }
.fullmap__map { flex: 1; min-width: 0; height: 100%; }
.fullmap__panel {
  width: 380px; flex-shrink: 0; height: 100%; display: flex; flex-direction: column;
  background: var(--card); box-shadow: -8px 0 30px rgba(60, 40, 20, .08); padding: 20px 20px 0;
  animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
.fullmap__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fullmap__title { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.fullmap__close { position: static; }

.fullmap__search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.fullmap__search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.fullmap__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: transparent; color: var(--text); }

.fullmap__cats-head, .fullmap__list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.fullmap__cats-head .field__label, .fullmap__list-head .field__label { margin: 0; display: flex; align-items: center; gap: 6px; }
.fullmap__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cat-toggle {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; text-align: left;
  transition: border-color .2s, background .2s, opacity .2s;
}
.cat-toggle__dot { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; background: var(--c); color: #fff; transition: background .2s, box-shadow .2s; }
.cat-toggle__dot svg { width: 12px; height: 12px; }
.cat-toggle__count { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 600; }
.cat-toggle.is-on { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 7%, #fff); }
.cat-toggle:not(.is-on) { color: var(--muted); }
.cat-toggle:not(.is-on) .cat-toggle__dot { background: var(--card); box-shadow: inset 0 0 0 1.5px #cfd5e0; }
.cat-toggle:not(.is-on) .cat-toggle__dot svg { display: none; }
.cat-toggle:hover { border-color: var(--c); }

.fullmap__inview { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.fullmap__inview input { accent-color: var(--blue); }
.fullmap__list { flex: 1; overflow-y: auto; margin: 0 -20px; padding: 0 12px 20px; overscroll-behavior: contain; }
.fullmap__list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.fullmap__list li:hover, .fullmap__list li.is-active { background: var(--bg); }
.fullmap__list .dot-c { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fullmap__list b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fullmap__list .muted { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fullmap__list .li-rating { font-size: 12px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 3px; }
.fullmap__list .li-rating .star { width: 12px; height: 12px; }
.fullmap__list .fullmap__empty { display: block; text-align: center; padding: 24px 8px; color: var(--muted); font-size: 13px; cursor: default; }
.fullmap__list .fullmap__empty:hover { background: none; }

.fullmap__panel-toggle { display: none; }

/* Попап на карте */
.map-pop__img { width: 100%; height: 110px; object-fit: cover; }
.map-pop__body { padding: 12px 14px 14px; }
.map-pop__name { font-size: 15px; font-weight: 800; color: var(--ink); }
.map-pop__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.map-pop__row { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 8px; color: var(--text); }
.map-pop__row .star { width: 13px; height: 13px; }
.map-pop .btn { width: 100%; height: 36px; margin-top: 12px; font-size: 13px; color: #fff; }

@media (max-width: 760px) {
  .fullmap { flex-direction: column; }
  .fullmap__panel {
    position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 62vh; z-index: 1000;
    border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(60, 40, 20, .18);
    transform: translateY(calc(100% - 148px)); transition: transform .35s var(--ease); animation: none;
  }
  .fullmap.is-panel-open .fullmap__panel { transform: none; }
  .fullmap__panel-toggle {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; top: 16px; left: 16px; z-index: 1001;
    height: 38px; padding: 0 14px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; font-weight: 700;
  }
}

/* =====================================================================
   Разделы: Рейтинги, Подборки, Блог
   ===================================================================== */
.page { min-height: 60vh; padding-bottom: 56px; }
.page-body { padding-top: 24px; }

/* ---------- Шапка раздела ---------- */
.page-hero { background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 50, 36, .14), transparent 65%); pointer-events: none;
}
.page-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 36px; position: relative; z-index: 1; }
.page-hero__text { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--card); color: var(--blue); font-size: 12px; font-weight: 700; box-shadow: 0 1px 2px rgba(60, 40, 20, .06); }
.page-hero__title { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.page-hero__lead { margin-top: 12px; font-size: 16px; color: var(--text-2); }
.hero-stats { display: flex; gap: 12px; flex-shrink: 0; }
.hero-stat { min-width: 120px; padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hero-stat b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.hero-stat span { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Табы, тулбар ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 38px; padding: 0 16px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tab .ico { color: var(--blue); }
.tab:hover { border-color: var(--blue-100); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(196, 50, 36, .25); }
.tab.is-active .ico { color: #fff; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 20px; }
.toolbar__count { margin-left: auto; }
.select { position: relative; display: inline-flex; align-items: center; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.select select { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); height: 100%; padding: 0 36px 0 14px; cursor: pointer; outline: none; }
.select:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.select .ico { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--green); }
.check:has(input:checked) { border-color: var(--green); background: var(--green-50); color: var(--green); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.page-grid__main { min-width: 0; }
.page-grid__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }

/* ---------- Рейтинги ---------- */
.podium { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.podium:empty { display: none; }
.podium[data-count="1"] { grid-template-columns: minmax(0, 520px); }
.podium[data-count="2"] { grid-template-columns: 1fr 1fr; }
.podium__card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); --medal: #f5b800; }
.podium__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.podium__card--silver { --medal: #9aa6b8; }
.podium__card--bronze { --medal: #c9844a; }
.podium__card--gold { box-shadow: 0 0 0 2px rgba(245, 184, 0, .45), var(--shadow); }
.podium__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.podium__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.podium__card:hover .podium__media img { transform: scale(1.05); }
.podium__pos { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--medal); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.podium__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.podium__cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.podium__name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.podium__rating { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.podium__rating > b { font-size: 22px; color: var(--ink); }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-list.is-loading { opacity: .5; }
.rank-row {
  display: grid; grid-template-columns: 36px 64px minmax(0, 1fr) auto 128px; align-items: center; gap: 16px;
  padding: 12px 18px 12px 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rank-row:hover { transform: translateX(3px); box-shadow: var(--shadow-lg); }
.rank-row__pos { font-size: 18px; font-weight: 800; color: var(--muted); text-align: center; }
.rank-row__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.rank-row__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rank-row__info b { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row__info .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row__status { font-size: 12px; font-weight: 700; }
.rank-row__rating { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rank-row__rating > b { font-size: 20px; color: var(--ink); line-height: 1; }
.rank-row__rating .stars { --size: 13px; }

.empty-state { padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state__icon { width: 48px; height: 48px; color: var(--blue); padding: 10px; border-radius: 16px; background: var(--blue-50); box-sizing: content-box; }
.empty-state h3 { font-size: 18px; color: var(--ink); font-weight: 800; }
.empty-state p { max-width: 440px; font-size: 14px; }
.empty-state .btn { margin-top: 8px; }

.info-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.info-card h3 .ico { color: var(--blue); }
.info-card p { font-size: 13px; color: var(--text-2); }
.formula { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink); font-weight: 600; }
.formula span { display: block; margin-top: 6px; font-family: 'Golos Text', sans-serif; font-weight: 500; color: var(--muted); font-size: 11px; }
.side-card__foot { margin-top: 12px; }

.top--plain li { grid-template-columns: 1fr; }
.top--plain li::before { display: none; }
.top--plain a { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.top--plain a > div { display: flex; flex-direction: column; min-width: 0; }
.top--plain .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top--plain a:hover b { color: var(--blue); }

.places--3 { grid-template-columns: repeat(3, 1fr); }
.map-card { overflow: hidden; }
.map-card__map { height: 300px; background: var(--line-2); }

/* 404 */
.not-found { text-align: center; padding: 80px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.not-found__code { font-size: 120px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--blue), #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { font-size: 28px; color: var(--ink); font-weight: 800; }
.not-found p { max-width: 420px; }
.not-found__actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Мобильное меню ---------- */
.burger span { transition: transform .25s var(--ease), opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; top: 72px; left: 0; right: 0; z-index: 49; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(60, 40, 20, .12); padding: 12px 16px 20px; animation: dropIn .25s var(--ease); }
.mobile-nav[hidden] { display: none; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav__links { display: flex; flex-direction: column; margin-bottom: 14px; }
.mobile-nav__links a { display: flex; align-items: center; gap: 12px; padding: 14px 8px; font-size: 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav__links a .ico { color: var(--muted); }
.mobile-nav__links a.is-active { color: var(--blue); }
.mobile-nav__links a.is-active .ico { color: var(--blue); }

/* ---------- Адаптив разделов ---------- */
@media (max-width: 1100px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .places--3 { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr 1fr; }
  .podium > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .page-hero__inner { flex-direction: column; align-items: flex-start; }
  .page-grid { grid-template-columns: 1fr; }
  .page-grid__side { position: static; }
  .rank-row { grid-template-columns: 28px 56px minmax(0, 1fr) auto; }
  .rank-row__status { display: none; }
  .rank-row__img { width: 56px; height: 56px; }
}
@media (max-width: 640px) {
  .hero-stats { width: 100%; }
  .hero-stat { flex: 1; min-width: 0; padding: 12px; }
  .hero-stat b { font-size: 20px; }
  .places--3 { grid-template-columns: 1fr; }
  .podium, .podium[data-count="2"] { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 24px 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 10px 8px; }
  .rank-row__img { width: 48px; height: 48px; }
  .toolbar__count { width: 100%; margin-left: 0; }
  .not-found__code { font-size: 88px; }
}
.rt-first { margin-top: 28px; }
.rt-first[hidden], .side-card[hidden] { display: none; }
.footer__nav a, .footer__tagline { white-space: nowrap; }
.footer__right { max-width: 300px; text-align: right; }
.footer__nav { flex-wrap: wrap; justify-content: center; }
@media (max-width: 960px) { .footer__right { text-align: left; } }

/* =====================================================================
   Аккаунт: меню, вход, кабинет, профиль
   ===================================================================== */
.avatar { flex-shrink: 0; }
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.avatar--md { width: 40px; height: 40px; font-size: 16px; }
.avatar--lg { width: 64px; height: 64px; font-size: 26px; }
.avatar--xl { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 0 0 5px #fff, var(--shadow-lg); }

/* ---------- Меню пользователя в шапке ---------- */
.user-menu { position: relative; }
.login-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink); transition: background .2s; }
.login-btn:hover { background: var(--blue-50); }
.user-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; border-radius: 999px; transition: background .2s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--blue-50); }
.user-btn .ico { color: var(--muted); transition: transform .2s var(--ease); }
.user-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 260px; padding: 8px;
  background: var(--card); border-radius: 16px; box-shadow: 0 20px 50px rgba(60, 40, 20, .18); border: 1px solid var(--line);
  animation: dropIn .2s var(--ease); transform-origin: top right;
}
.user-drop[hidden] { display: none; }
.user-drop__head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.user-drop__head > div { display: flex; flex-direction: column; min-width: 0; }
.user-drop__head b { color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-drop__head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-drop a, .user-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; transition: background .15s; }
.user-drop a:hover, .user-drop button:hover { background: var(--bg); }
.user-drop .ico { color: var(--muted); }
.user-drop button[data-logout] { color: var(--red); }
.user-drop button[data-logout] .ico { color: var(--red); }
.user-drop__count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.mobile-nav__account { margin-bottom: 12px; }
.mobile-nav__me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); }
.mobile-nav__me > span:not(.avatar) { display: flex; flex-direction: column; }   /* подпись, а не сам кружок аватарки */
.mobile-nav__me b { color: var(--ink); }

/* ---------- Окно входа ---------- */
.modal__dialog--sm { max-width: 420px; }
.auth__brand { display: flex; justify-content: center; margin: 4px 0 14px; }
.auth__brand .logo__mark { width: 48px; height: 48px; border-radius: 14px; }
.auth__brand .logo__mark svg { width: 26px; height: 26px; }
.auth__title { text-align: center; margin-bottom: 8px; }
.auth__reason { text-align: center; font-size: 14px; margin-bottom: 12px; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 12px 0 20px; border-radius: 12px; background: var(--bg); }
.auth__tab { height: 38px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.auth__tab.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 40, 20, .12); }
.auth__form .field[hidden], .auth [data-only][hidden] { display: none; }
.auth__legal { margin-top: 12px; text-align: center; line-height: 1.5; }
.auth__perks { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.auth__perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.auth__perks .ico { color: var(--blue); }

.password { position: relative; }
.password .input { padding-right: 44px; }
.password__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.password__toggle:hover, .password__toggle.is-on { color: var(--blue); background: var(--blue-50); }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-meter[hidden] { display: none; }
.pw-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.pw-meter i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w, 0) * 25%); background: var(--pc, var(--red)); border-radius: 4px; transition: width .3s var(--ease), background .3s; }
.pw-meter[data-score="1"] i::after { --w: 1; --pc: var(--red); }
.pw-meter[data-score="2"] i::after { --w: 2; --pc: #f59e0b; }
.pw-meter[data-score="3"] i::after { --w: 3; --pc: #10b981; }
.pw-meter[data-score="4"] i::after { --w: 4; --pc: var(--green); }
.pw-meter span { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 110px; text-align: right; }

/* ---------- Форма отзыва: автор и режим правки ---------- */
.author-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--text-2); }
.author-line b { color: var(--ink); }
.edit-note { margin: -12px 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 13px; font-weight: 600; }
.edit-note[hidden] { display: none; }
#venueChange[hidden] { display: none; }

/* ---------- Отзывы: автор, свои действия ---------- */
a.review__author:hover { color: var(--blue); }
.review__mine { margin-left: 8px; vertical-align: 2px; text-transform: none; font-size: 10px; }
.action--static { cursor: default; }
.action--static:hover { color: var(--muted); }
.action--danger:hover { color: var(--red); }
.action.is-armed, .btn.is-armed { color: var(--red); font-weight: 700; }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #d62f3a; }
.btn--danger.is-armed { background: #b91c28; color: #fff; }

/* ---------- Уведомления ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(38, 30, 24, .3); pointer-events: auto; animation: toastIn .3s var(--ease); transition: opacity .3s, transform .3s var(--ease); }
.toast a { color: #8fb0ff; font-weight: 700; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Гость на /account ---------- */
.acc-guest { padding: 56px 16px; display: flex; justify-content: center; }
.acc-guest[hidden] { display: none; }
.acc-guest__card { max-width: 560px; width: 100%; padding: 40px; text-align: center; }
.acc-guest__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.acc-guest__icon svg { width: 30px; height: 30px; }
.acc-guest h1 { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.acc-guest p { margin-top: 8px; }
.acc-guest__actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.acc-guest__perks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.acc-guest__perks li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.acc-guest__perks .ico { color: var(--blue); margin-bottom: 4px; }
.acc-guest__perks b { color: var(--ink); }
.acc-guest__perks span { color: var(--muted); font-size: 12px; }

/* ---------- Шапка кабинета / профиля ---------- */
.acc-hero { background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.acc-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 36px; padding-bottom: 32px; }
.acc-hero__user { display: flex; align-items: center; gap: 24px; min-width: 0; position: relative; }
.acc-hero__info { min-width: 0; }
.acc-hero__name { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.acc-hero__meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
.acc-hero__public { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.acc-hero__edit { margin-left: 8px; align-self: flex-start; }

.level-card { flex-shrink: 0; width: 340px; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.level-card:empty { display: none; }
.level-card__top { display: flex; align-items: center; gap: 12px; }
.level-card__top > div { display: flex; flex-direction: column; }
.level-card__top b { font-size: 17px; color: var(--ink); }
.level-card__badge { width: 42px; height: 42px; border-radius: 12px; background: var(--lc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 6px 14px color-mix(in srgb, var(--lc) 40%, transparent); }
.level-card__points { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--ink); }
.level-card__points small { font-size: 11px; color: var(--muted); font-weight: 600; }
.level-card__bar { height: 8px; margin: 14px 0 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.level-card__bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--lc), color-mix(in srgb, var(--lc) 60%, #fff)); transition: width .8s var(--ease); }
.level-card__how { margin-top: 6px; font-size: 11px; line-height: 1.4; }

.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.acc-stat { padding: 16px 18px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.acc-stat b { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.acc-stat span { font-size: 12px; color: var(--muted); margin-top: 2px; }

.acc-tabs { margin-bottom: 20px; }
.tab__count { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.tab__count:empty { display: none; }
.tab.is-active .tab__count { background: rgba(255, 255, 255, .25); color: #fff; }
.acc-panel[hidden] { display: none; }
.acc-sub { margin-top: 32px; }
.toolbar__right { margin-left: auto; }

/* ---------- Достижения ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ach { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 1.5px solid transparent; transition: transform .25s var(--ease); }
.ach:hover { transform: translateY(-2px); }
.ach__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: var(--muted); margin-bottom: 4px; }
.ach__title { font-size: 14px; color: var(--muted); }
.ach__desc { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ach__bar { height: 4px; border-radius: 4px; background: var(--bg); overflow: hidden; margin-top: auto; }
.ach__bar i { display: block; height: 100%; background: var(--muted); border-radius: 4px; }
.ach__progress { font-size: 11px; color: var(--muted); font-weight: 700; }
.ach.is-unlocked { border-color: #fde7a6; background: linear-gradient(180deg, #fffaf0, #fff); }
.ach.is-unlocked .ach__icon { background: linear-gradient(135deg, #ffcb3d, #f59e0b); color: #fff; box-shadow: 0 6px 14px rgba(245, 158, 11, .35); }
.ach.is-unlocked .ach__title { color: var(--ink); }
.ach__done { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 11px; font-weight: 800; color: #b7791f; }
.ach-list { display: flex; flex-direction: column; gap: 12px; }
.ach-row { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.ach-row > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: linear-gradient(135deg, #ffcb3d, #f59e0b); color: #fff; box-sizing: border-box; }
.ach-row > div { display: flex; flex-direction: column; }
.ach-row b { font-size: 13px; color: var(--ink); }

.map-legend { display: flex; gap: 16px; padding: 10px 14px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.top--plain .rating { margin: 1px 0; }
.top--plain .stars { --size: 12px; }

/* ---------- Мои отзывы ---------- */
.my-reviews { display: flex; flex-direction: column; gap: 14px; }
.my-review { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px; }
.my-review__venue { display: flex; flex-direction: column; gap: 10px; }
.my-review__venue img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.my-review__venue > span { display: flex; flex-direction: column; gap: 2px; }
.my-review__venue b { color: var(--ink); font-size: 15px; }
.my-review__venue:hover b { color: var(--blue); }
.my-review__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.my-review__rating { display: flex; align-items: center; gap: 10px; }
.my-review__body h4 { font-size: 16px; color: var(--ink); font-weight: 800; }
.my-review__body p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.my-review__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.my-review__foot .muted { display: inline-flex; align-items: center; gap: 6px; }
.my-review__actions { display: flex; gap: 16px; }
.places--4 { grid-template-columns: repeat(4, 1fr); }
.place-card.is-removing { opacity: 0; transform: scale(.95); transition: opacity .25s, transform .25s var(--ease); }

/* ---------- Настройки ---------- */
.settings { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.settings__col { display: flex; flex-direction: column; gap: 20px; }
.settings__card { padding: 24px; }
.settings__card h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.settings__card > .muted { margin: 4px 0 18px; }
.settings__card--danger { border: 1.5px solid var(--red-50); }
.settings__card--danger h3 { color: var(--red); }
.settings__avatar { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); transition: transform .15s var(--ease), box-shadow .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.readonly { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--bg); color: var(--text-2); font-size: 14px; }
.select--block { display: flex; width: 100%; height: 44px; border-radius: 12px; border-width: 1.5px; }
.select--block select { width: 100%; font-size: 14px; font-weight: 500; }

@media (max-width: 1100px) {
  .places--4 { grid-template-columns: repeat(3, 1fr); }
  .level-card { width: 300px; }
}
@media (max-width: 960px) {
  .acc-hero__inner { flex-direction: column; align-items: stretch; }
  .level-card { width: auto; }
  .settings { grid-template-columns: 1fr; }
  .places--4 { grid-template-columns: repeat(2, 1fr); }
  .login-btn span { display: none; }
}
@media (max-width: 640px) {
  .acc-hero__user { flex-direction: column; align-items: flex-start; gap: 16px; }
  .avatar--xl { width: 76px; height: 76px; font-size: 32px; }
  .acc-guest__card { padding: 28px 20px; }
  .acc-guest__perks { grid-template-columns: 1fr; }
  .my-review { grid-template-columns: 1fr; }
  .my-review__venue { flex-direction: row; align-items: center; }
  .my-review__venue img { width: 64px; height: 64px; aspect-ratio: 1; }
  .places--4 { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: 1fr 1fr; }
  .ach-grid { grid-template-columns: 1fr 1fr; }
}
.field__meta .muted { white-space: nowrap; }

/* ============ Подсказки поиска ============ */
/* hero обрезает картинку по горизонтали, но выпадающему списку можно выходить вниз */
.hero { overflow: visible; overflow-x: clip; }
.search { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  max-height: min(480px, 70vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; background: var(--card); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(60, 40, 20, .18); animation: dropIn .18s var(--ease);
}
.suggest[hidden] { display: none; }
.suggest__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.suggest__clear { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--blue); }
.suggest__note { margin: 4px 4px 2px; padding: 8px 10px; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 12px; font-weight: 600; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.suggest__item.is-active { background: var(--bg); }
.suggest__item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.suggest__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.suggest__text b { font-size: 14px; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__text > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest mark { background: none; color: var(--blue); font-weight: 800; }
.suggest__text > span mark { font-weight: 700; }
.suggest__rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink); flex-shrink: 0; }
.suggest__rating .star { width: 13px; height: 13px; }
.suggest__status { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.suggest__ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.suggest__item--query { font-size: 14px; color: var(--text); }
.suggest__item--query .ico { color: var(--muted); }
.suggest__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 10px; }
.suggest__chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.suggest__chip:hover, .suggest__chip.is-active { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.suggest__all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; color: var(--blue); font-size: 14px; font-weight: 700; }
.suggest__all .ico { color: var(--blue); }
.suggest__count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.suggest__empty { padding: 20px 14px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 720px) {
  .suggest { max-height: 60vh; }
}


/* ============ Карты (MapLibre) ============ */
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--shadow) !important; }
.map-tip .maplibregl-popup-content { padding: 6px 10px; border-radius: 8px; font: 700 12px 'Golos Text', sans-serif; color: var(--ink); box-shadow: 0 4px 14px rgba(60, 40, 20, .18); }
.map-tip.maplibregl-popup { pointer-events: none; }
.map-pop-wrap .maplibregl-popup-content { width: 260px; padding: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); font-family: 'Golos Text', sans-serif; }
.map-pop-wrap .maplibregl-popup-close-button { top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: #fff; background: rgba(38, 30, 24, .45); }
.map-pop-wrap .maplibregl-popup-close-button:hover { background: rgba(38, 30, 24, .7); }
.map__canvas { position: absolute !important; inset: 0; z-index: 0; background: var(--line-2); }

/* =====================================================================
   v4 «Бумага и булавки»: заведения + товары
   ===================================================================== */
body { font-family: 'Golos Text', system-ui, -apple-system, sans-serif; }
/* лёгкое «волокно» бумаги — только фон, без картинок */
body {
  background-color: var(--bg);
  background-image: radial-gradient(oklch(88% 0.02 80 / .35) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero__title, .page-hero__title, .section__title, .venue__name, .front__title, .product__name, .hero-stat b, .podium__name {
  font-family: var(--display); font-weight: 600; letter-spacing: -.005em; text-transform: none;
}
.section__title { font-size: 26px; line-height: 1.1; }
.hero-stat b { font-size: 30px; }

/* ---------- Шапка ---------- */
.header { border-bottom: 1px solid var(--line-2); }
.header__inner { height: 76px; gap: 36px; }
.logo { gap: 10px; }
.logo__mark { width: 30px; height: 38px; background: none; border-radius: 0; color: var(--blue); }
.logo__mark svg { width: 26px; height: 34px; }
.logo__mark--light { background: none; color: var(--blue); --logo-dot: var(--navy); }
.logo__words { display: flex; flex-direction: column; line-height: 1; }
.logo__text { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .005em; color: var(--ink); }
.logo__tag { margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.logo--light .logo__text { color: var(--card); }
.nav { gap: 30px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink); padding: 27px 0; }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after { height: 3px; bottom: 14px; border-radius: 0; background: var(--blue); }
.btn { border-radius: 10px; }
.btn--primary { box-shadow: 0 2px 0 var(--blue-600); }
.btn--primary:hover { box-shadow: 0 2px 0 oklch(42% 0.16 29); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn--outline:hover { border-color: var(--ink); }
.btn--write { height: 44px; padding: 0 20px; font-size: 14px; }

@media (max-width: 1180px) {
  .logo__tag { display: none; }
  .header__inner { gap: 24px; }
}
@media (max-width: 1060px) { .city-select { display: none; } }

/* ---------- Раздел с поиском (Заведения, Товары) ---------- */
.hero--section { background: transparent; border-bottom: 1px solid var(--line-2); }
.hero--section .hero__inner { grid-template-columns: 1fr; min-height: 0; }
.hero--section .hero__content { padding: 40px 0 32px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.hero--section .hero__title { margin-top: 8px; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.hero--section .hero__subtitle { margin-top: 12px; max-width: 560px; }
.hero--section .search { margin-top: 24px; max-width: 720px; }
.search { border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--line); border-radius: 12px; background: var(--card); }
.chip { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); box-shadow: none; }
.categories { background: transparent; border-bottom: 1px solid var(--line-2); }
.category__icon { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.category.is-active .category__icon { background: var(--ink); border-color: var(--ink); color: var(--card); box-shadow: none; }
.category.is-active .category__name, .category.is-active .category__count { color: var(--ink); }
.category.is-active .category__name { text-decoration: underline 3px var(--blue); text-underline-offset: 5px; }

/* карточки чуть «бумажнее»: тонкая рамка вместо мягкой тени */
.card, .place-card, .podium__card, .hero-stat { box-shadow: 0 1px 0 var(--line-2); border: 1px solid var(--line); }
.place-card:hover, .podium__card:hover { box-shadow: 0 10px 28px rgba(60, 40, 20, .12); }
.page-hero { background: transparent; border-bottom: 1px solid var(--line-2); }
.page-hero::after { display: none; }
.eyebrow { background: transparent; box-shadow: none; padding: 0; font-weight: 600; }
.tab .ico { color: var(--ink); }
.tab:hover { border-color: var(--ink); }
.tab.is-active, .pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--card); box-shadow: none; }
.pill:hover { border-color: var(--ink); }
.cta-card { background: var(--card); border: 1px solid var(--line); }
.footer { background: var(--navy); color: oklch(80% 0.012 70); }

/* ---------- Главная: первый экран ---------- */
.front { border-bottom: 1px solid var(--line-2); overflow: hidden; }
.front__inner { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.front__title {
  font-size: clamp(52px, 6.6vw, 92px); line-height: .98; color: var(--ink); letter-spacing: -.01em;
  animation: rise .7s var(--ease) both;
}
.front__lead { margin-top: 22px; max-width: 420px; font-size: 18px; line-height: 1.45; color: var(--text-2); animation: rise .7s .08s var(--ease) both; }
.front__search { position: relative; margin-top: 30px; max-width: 540px; animation: rise .7s .16s var(--ease) both; }
.front__search .search__field input { height: 50px; font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.front__map { position: relative; aspect-ratio: 640 / 470; min-height: 360px; }
.city-map {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--map-bg);
  -webkit-mask: radial-gradient(130% 110% at 50% 45%, #000 62%, transparent 100%);
          mask: radial-gradient(130% 110% at 50% 45%, #000 62%, transparent 100%);
}
.city-map__label { font: 500 italic 13px 'Golos Text', sans-serif; fill: var(--muted); letter-spacing: .02em; }
.city-map__city { font: 700 15px var(--display); fill: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.city-map__river { font: 500 italic 20px 'Golos Text', sans-serif; fill: oklch(55% 0.06 230); }

.polaroids { position: absolute; inset: 0; }
.polaroid {
  position: absolute; width: 38%; max-width: 230px; padding: 10px 10px 12px; background: var(--card);
  box-shadow: 0 1px 1px rgba(60, 40, 20, .1), 0 12px 26px rgba(60, 40, 20, .18);
  transform: rotate(var(--rot)); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: drop .8s var(--delay) var(--ease) both;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 3; box-shadow: 0 1px 1px rgba(60, 40, 20, .1), 0 20px 40px rgba(60, 40, 20, .24); }
.polaroid--1 { --rot: -4deg; --delay: .25s; left: 6%; top: 11%; }
.polaroid--2 { --rot: 3deg; --delay: .4s; left: 42%; top: 3%; }
.polaroid--3 { --rot: -2deg; --delay: .55s; left: 55%; top: 46%; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--rot) * 2)); } to { opacity: 1; transform: rotate(var(--rot)); } }
.polaroid__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__pin { position: absolute; top: -14px; left: 50%; width: 22px; height: 30px; transform: translateX(-50%); color: var(--blue); filter: drop-shadow(0 3px 2px rgba(60, 40, 20, .3)); }
.polaroid__pin svg { width: 100%; height: 100%; }
.polaroid__caption { display: flex; flex-direction: column; margin-top: 9px; line-height: 1.2; }
.polaroid__caption b { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.polaroid__caption span { margin-top: 3px; font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid .rate-badge { position: absolute; right: -10px; bottom: 44px; }

.stamp-note {
  position: absolute; right: 2%; top: 8%; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 12px 12px; background: var(--note); transform: rotate(5deg);
  box-shadow: 0 8px 18px rgba(60, 40, 20, .16);
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 24px; line-height: .95; color: var(--ink);
  animation: rise .7s .7s var(--ease) both;
}
.stamp-note .ico { width: 30px; height: 30px; color: var(--blue); }
.stamp-note u { text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Оценка-плашка ---------- */
.rate-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px;
  background: var(--ink); color: var(--card); border-radius: 8px;
  font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1;
}
.rate-badge svg { width: 13px; height: 13px; color: var(--star); }
.rate-badge--none { background: var(--card); color: var(--text-2); border: 1px dashed var(--line-2); font: 600 11px 'Golos Text', sans-serif; }

/* ---------- Сейчас выбирают ---------- */
.picks { padding-top: 48px; }
.picks__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.picks__head .section__title { font-size: clamp(30px, 3.4vw, 40px); }
.picks__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-filter {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.pick-filter:hover { border-color: var(--ink); }
.pick-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--card); }
.picks__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; transition: opacity .2s; }
.picks__grid.is-loading { opacity: .5; }
.picks__more { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

.pick-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: fadeIn .4s var(--ease) both;
}
.pick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(60, 40, 20, .13); }
.pick-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pick-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pick-card:hover .pick-card__media img { transform: scale(1.04); }
.pick-card__media .rate-badge { position: absolute; left: 10px; bottom: 10px; }
.pick-card__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.pick-card__name { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.15; color: var(--ink); }
.pick-card__meta { font-size: 12px; font-weight: 500; color: var(--blue); }
.pick-card__tagline { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pick-card__tags span { padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; color: var(--text-2); }

/* ---------- Свежие отзывы ---------- */
.home-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 56px; padding-bottom: 64px; }
.home-bottom__side { display: flex; flex-direction: column; gap: 16px; }
.fresh { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.fresh__item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); transition: background .2s; }
.fresh__item:hover { background: color-mix(in oklab, var(--card) 60%, transparent); }
.fresh__item img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.fresh__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fresh__top { display: flex; align-items: center; gap: 8px; }
.fresh__top b { font-size: 15px; color: var(--ink); }
.fresh__kind { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.fresh__quote { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fresh .empty { background: transparent; }
.rule-card { padding: 20px; }
.rule-card h3 { font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.rule-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--text-2); padding: 7px 0; }
.rule-card .ico { color: var(--blue); margin-top: 1px; }

/* ---------- Каталог товаров ---------- */
.demo-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 18px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 13px; color: var(--text-2); max-width: 780px; }
.demo-note .ico { color: var(--muted); margin-top: 1px; }
.tab__count { font-size: 11px; font-weight: 600; opacity: .6; }
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.more-wrap .btn[hidden] { display: none; }
.empty-block { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-2); }
.empty-block b { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); }
.empty-block a { color: var(--blue); }

/* ---------- Страница товара ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ico { transform: rotate(-90deg); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; margin-bottom: 36px; min-height: 360px; }
.product__skeleton { grid-column: 1 / -1; border-radius: 14px; background: var(--paper-2); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .5; } }
.product__photo { position: relative; padding: 14px 14px 44px; background: var(--card); box-shadow: 0 1px 1px rgba(60, 40, 20, .1), 0 16px 34px rgba(60, 40, 20, .16); transform: rotate(-1.5deg); }
.product__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.product__photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); box-shadow: inset -3px -3px 0 oklch(45% 0.16 29), 0 3px 4px rgba(60, 40, 20, .3); transform: translateX(-50%); }
.product__info { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.product__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge--demo { background: transparent; color: var(--text-2); border: 1px dashed var(--line-2); }
.product__name { font-size: clamp(38px, 4.4vw, 58px); line-height: 1; color: var(--ink); }
.product__brand { font-size: 15px; font-weight: 600; color: var(--text-2); margin-top: -6px; }
.product__rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product__score { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--ink); }
.product__tagline { font-size: 17px; line-height: 1.5; color: var(--text); max-width: 520px; }
.product__buttons { display: flex; gap: 12px; margin-top: 8px; }
.product__buttons .btn { height: 48px; padding: 0 24px; font-size: 15px; }
.side-link { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
.side-link img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.side-link b { font-size: 13px; color: var(--ink); }
.side-link .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#similar { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Рейтинги: заведения / товары ---------- */
.kind-switch { display: inline-flex; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.kind-switch__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 9px; font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--text-2); transition: background .2s, color .2s; }
.kind-switch__btn.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 40, 20, .14); }
.kind-switch__btn.is-active .ico { color: var(--blue); }
[hidden] { display: none !important; }

/* ---------- Адаптив v4 ---------- */
@media (max-width: 960px) {
  .front__inner { grid-template-columns: 1fr; padding-top: 32px; gap: 20px; }
  .front__map { min-height: 0; max-width: 640px; }
  .home-bottom { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product__photo { max-width: 460px; }
}
@media (max-width: 720px) {
  .front__title { font-size: clamp(44px, 13vw, 64px); }
  .front__lead { font-size: 16px; }
  .front__map { margin: 0 -8px; }
  .polaroid { width: 44%; padding: 6px 6px 8px; }
  .polaroid__caption span { font-size: 14px; }
  .polaroid .rate-badge { height: 24px; font-size: 13px; bottom: 36px; }
  .stamp-note { font-size: 18px; padding: 8px 12px 8px 8px; top: auto; bottom: 4%; right: auto; left: 4%; }
  .stamp-note .ico { width: 22px; height: 22px; }
  .picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pick-card__name { font-size: 16px; }
  .pick-card__tags { display: none; }
  .picks__more { flex-direction: column; }
  .kind-switch { display: flex; }
  .kind-switch__btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .pick-card__tagline { display: none; }
  .pick-card__body { padding: 10px 10px 12px; }
  .pick-card__media .rate-badge { left: 6px; bottom: 6px; }
}

/* доводка первого экрана */
.front__title { font-size: clamp(48px, 5.3vw, 80px); }
.city-select { white-space: nowrap; }
@media (max-width: 1280px) { .city-select { display: none; } }
.polaroid--1 { left: 3%; top: 9%; }
.polaroid--2 { left: 35%; top: 42%; --rot: 2.5deg; }
.polaroid--3 { left: 61%; top: 5%; --rot: -3deg; }
.stamp-note { right: auto; top: auto; left: 4%; bottom: 9%; transform: rotate(-4deg); }
.logo__tag { white-space: nowrap; }
.polaroid .rate-badge { right: auto; left: -10px; }
.product { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; min-height: 0; }
.product__photo img { aspect-ratio: 4 / 3.4; }
.front__map { aspect-ratio: auto; }
@media (max-width: 720px) {
  .front__map { height: 330px; }
  .polaroid { width: 46%; }
  .polaroid--1 { left: 2%; top: 7%; }
  .polaroid--2 { left: 30%; top: 44%; }
  .polaroid--3 { left: 53%; top: 3%; }
  .stamp-note { bottom: 5%; left: 2%; }
}
@media (min-width: 721px) { .front__map { aspect-ratio: 640 / 470; } }
@media (max-width: 720px) {
  .polaroid .rate-badge { left: auto; right: 12px; top: 12px; bottom: auto; }
  .polaroid--2 { left: 10%; top: 45%; }
  .stamp-note { left: auto; right: 3%; bottom: 7%; }
  .city-map__city { display: none; }
}

/* ============ Рваная бумага: края карточек вырезаются маской ============ */
:root {
  --torn-t: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2772%27 height=%278%27 viewBox=%270 0 72 8%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0.0 3 L2.5 4.3 L4.4 1.3 L7.9 3.2 L9.6 3.5 L12.7 2.2 L15.3 3.0 L17.0 0.7 L20.0 0.7 L21.6 1.4 L24.4 3.7 L26.1 2.5 L27.9 1.9 L30.7 3.2 L34.6 2.6 L36.5 1.8 L38.7 4.2 L42.1 3.8 L46.4 1.6 L49.6 3.2 L52.3 2.9 L56.8 4.6 L58.4 3.9 L62.5 1.8 L64.8 5.1 L66.8 1.0 L68.6 2.4 L72.0 3 L72 8 L0 8Z%27/%3E%3C/svg%3E");
  --torn-b: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2772%27 height=%278%27 viewBox=%270 0 72 8%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0.0 5 L2.5 3.7 L4.4 6.7 L7.9 4.8 L9.6 4.5 L12.7 5.8 L15.3 5.0 L17.0 7.3 L20.0 7.3 L21.6 6.6 L24.4 4.3 L26.1 5.5 L27.9 6.1 L30.7 4.8 L34.6 5.4 L36.5 6.2 L38.7 3.8 L42.1 4.2 L46.4 6.4 L49.6 4.8 L52.3 5.1 L56.8 3.4000000000000004 L58.4 4.1 L62.5 6.2 L64.8 2.9000000000000004 L66.8 7.0 L68.6 5.6 L72.0 5 L72 0 L0 0Z%27/%3E%3C/svg%3E");
  --torn-l: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%2772%27 viewBox=%270 0 8 72%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M3 0.0 L4.3 2.5 L1.3 4.4 L3.2 7.9 L3.5 9.6 L2.2 12.7 L3.0 15.3 L0.7 17.0 L0.7 20.0 L1.4 21.6 L3.7 24.4 L2.5 26.1 L1.9 27.9 L3.2 30.7 L2.6 34.6 L1.8 36.5 L4.2 38.7 L3.8 42.1 L1.6 46.4 L3.2 49.6 L2.9 52.3 L4.6 56.8 L3.9 58.4 L1.8 62.5 L5.1 64.8 L1.0 66.8 L2.4 68.6 L3 72.0 L8 72 L8 0Z%27/%3E%3C/svg%3E");
  --torn-r: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%2772%27 viewBox=%270 0 8 72%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M5 0.0 L3.7 2.5 L6.7 4.4 L4.8 7.9 L4.5 9.6 L5.8 12.7 L5.0 15.3 L7.3 17.0 L7.3 20.0 L6.6 21.6 L4.3 24.4 L5.5 26.1 L6.1 27.9 L4.8 30.7 L5.4 34.6 L6.2 36.5 L3.8 38.7 L4.2 42.1 L6.4 46.4 L4.8 49.6 L5.1 52.3 L3.4000000000000004 56.8 L4.1 58.4 L6.2 62.5 L2.9000000000000004 64.8 L7.0 66.8 L5.6 68.6 L5 72.0 L0 72 L0 0Z%27/%3E%3C/svg%3E");
}/* карточки «Сейчас выбирают» и каталога */
.pick-card {
  position: relative; isolation: isolate; padding: 10px 10px 6px;
  background: none; border: 0; border-radius: 0; overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(60, 40, 20, .16)) drop-shadow(0 6px 10px rgba(60, 40, 20, .1));
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.pick-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--card);
  -webkit-mask:
    var(--torn-t) top left / 72px 8px repeat-x, var(--torn-b) bottom left / 72px 8px repeat-x,
    var(--torn-l) top left / 8px 72px repeat-y, var(--torn-r) top right / 8px 72px repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
          mask:
    var(--torn-t) top left / 72px 8px repeat-x, var(--torn-b) bottom left / 72px 8px repeat-x,
    var(--torn-l) top left / 8px 72px repeat-y, var(--torn-r) top right / 8px 72px repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
}
.pick-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: none; filter: drop-shadow(0 1px 1px rgba(60, 40, 20, .18)) drop-shadow(0 14px 18px rgba(60, 40, 20, .16)); }
.pick-card__media { aspect-ratio: 16 / 10; }
.pick-card__media .rate-badge { left: 8px; top: 8px; bottom: auto; }
.pick-card__body { padding: 12px 6px 10px; }

/* оценка — красная плашка, как на макете */
.rate-badge { background: var(--blue); color: var(--card); border-radius: 4px; }
.rate-badge svg { color: var(--card); }
.rate-badge--none { background: var(--card); color: var(--text-2); }

/* полароиды на карте и фото товара — тоже рваная бумага */
.polaroid { background: none; box-shadow: none; isolation: isolate; filter: drop-shadow(0 1px 1px rgba(60, 40, 20, .18)) drop-shadow(0 10px 14px rgba(60, 40, 20, .16)); }
.polaroid:hover { box-shadow: none; }
.product__photo { background: none; box-shadow: none; isolation: isolate; filter: drop-shadow(0 1px 1px rgba(60, 40, 20, .18)) drop-shadow(0 14px 20px rgba(60, 40, 20, .15)); }
.polaroid::before, .product__photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--card);
  -webkit-mask:
    var(--torn-t) top left / 72px 8px repeat-x, var(--torn-b) bottom left / 72px 8px repeat-x,
    var(--torn-l) top left / 8px 72px repeat-y, var(--torn-r) top right / 8px 72px repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
          mask:
    var(--torn-t) top left / 72px 8px repeat-x, var(--torn-b) bottom left / 72px 8px repeat-x,
    var(--torn-l) top left / 8px 72px repeat-y, var(--torn-r) top right / 8px 72px repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
}
/* булавка товара поверх бумаги */
.product__photo::before { z-index: 2; }

/* заголовок главной: ровно три строки при любой ширине — размер от ширины колонки, а не окна */
.front__text { container-type: inline-size; min-width: 0; }
.front__title { font-weight: 700; font-size: min(13.6cqi, 92px); line-height: .94; letter-spacing: -.012em; }
.front__title span { display: block; white-space: nowrap; }
@media (max-width: 720px) { .front__title { font-size: min(13.4cqi, 72px); } }

/* ---------- Выбор города ---------- */
.hero__kicker { cursor: pointer; }
.hero__kicker:hover .js-city { text-decoration: underline; text-underline-offset: 3px; }
.city-pop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: start center; padding: 10vh 16px 16px; }
.city-pop__backdrop { position: absolute; inset: 0; background: rgba(38, 30, 24, .45); animation: fadeIn .2s both; }
.city-pop__box {
  position: relative; width: min(460px, 100%); max-height: 76vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px 18px 8px;
  animation: rise .3s var(--ease) both;
}
.city-pop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.city-pop__head h3 { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink); }
.city-pop__search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); }
.city-pop__search:focus-within { border-color: var(--ink); }
.city-pop__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; color: var(--text); }
.city-pop__geo { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 14px; font-weight: 600; color: var(--blue); align-self: flex-start; }
.city-pop__geo:disabled { color: var(--muted); }
.city-pop__hint { margin: 6px 0 2px; }
.city-pop__list { overflow-y: auto; margin: 0 -8px; padding-bottom: 8px; }
.city-pop__item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; text-align: left; }
.city-pop__item > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.city-pop__item b { font-size: 15px; color: var(--ink); }
.city-pop__item:hover { background: var(--paper-2); }
.city-pop__item.is-current b { color: var(--blue); }
.city-pop__count { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.city-pop__empty { padding: 14px 8px; font-size: 13px; color: var(--text-2); }
.venue__warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 13px; color: var(--text-2); }
.venue__warn .ico { color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* =====================================================================
   Товары от пользователей, жалобы, панель модерации
   ===================================================================== */
.status-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--paper-2); color: var(--text-2); white-space: nowrap; }
.status-pill.is-pending { background: oklch(94% 0.06 85); color: oklch(45% 0.1 70); }
.status-pill.is-ok { background: var(--green-50); color: var(--green); }
.status-pill.is-bad { background: var(--red-50); color: var(--red); }
.link-btn { color: var(--blue); font-weight: 600; font-size: inherit; }
.link-btn:hover { text-decoration: underline; }
.action--quiet { opacity: .75; }
.action--quiet:hover { opacity: 1; }
.action:disabled { cursor: default; opacity: .6; }
.venue-suggest__add a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--blue); border-top: 1px solid var(--line); }
.venue-suggest__add a:hover { background: var(--paper-2); }

/* ---------- Добавить товар ---------- */
.pn__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.pn__title { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--ink); }
.pn__lead { margin: 12px 0 24px; max-width: 560px; color: var(--text-2); font-size: 16px; }
.pn__form { max-width: 620px; }
.pn__login, .pn__done { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 620px; }
.pn__done { flex-direction: row; gap: 16px; }
.pn__done > .ico { width: 40px; height: 40px; color: var(--green); flex-shrink: 0; }
.pn__done h2 { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--ink); }
.pn__done-buttons { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pn__photo { margin-bottom: 20px; }
.pn__drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; text-align: center;
  border: 2px dashed var(--line-2); border-radius: 14px; background: var(--card); transition: border-color .2s, background .2s; }
.pn__drop .ico { width: 34px; height: 34px; color: var(--blue); }
.pn__drop b { font-size: 16px; color: var(--ink); }
.pn__drop:hover, .pn__drop.is-over { border-color: var(--blue); background: var(--red-50); }
.pn__preview { display: flex; align-items: flex-end; gap: 14px; }
.pn__preview img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.pn__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn__similar { margin: -8px 0 18px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; }
.pn__similar ul { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pn__similar a { display: flex; gap: 10px; align-items: center; }
.pn__similar img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.pn__similar a > span { display: flex; flex-direction: column; }
.pn__submit { height: 48px; padding: 0 26px; font-size: 15px; }
.pn__side { position: sticky; top: 96px; }
.input.input { width: 100%; }

/* ---------- Кабинет: мои товары, скрытые отзывы ---------- */
.my-products { display: flex; flex-direction: column; gap: 10px; }
.my-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.my-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.my-product > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.my-product b { color: var(--ink); }
.my-product__reason { font-size: 12px; color: var(--red); }
.acc-hidden { margin-top: 24px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; }
.acc-hidden h3 { font-size: 15px; color: var(--ink); }
.acc-hidden ul { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.acc-hidden li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }

/* ---------- Жалоба ---------- */
.report__box { gap: 0; }
.report__lead { margin: -4px 0 12px; }
.report__reasons { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.report__reason { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.report__reason:hover { background: var(--paper-2); }
.report__reason input { accent-color: var(--blue); }
.report textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14px; resize: vertical; margin-bottom: 12px; background: var(--card); color: var(--text); }
.report__error { color: var(--red); font-size: 13px; margin-bottom: 10px; }
.report .city-pop__box { padding-bottom: 18px; }

/* ---------- Панель модерации ---------- */
.adm-tabs { margin-bottom: 20px; }
.adm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: var(--card); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.tab.is-active .adm-badge { background: var(--card); color: var(--ink); }
.adm-h { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); margin: 8px 0 12px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.adm-tile b { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--ink); }
.adm-tile span { font-size: 12px; color: var(--text-2); }
.adm-tile.is-hot { border-color: var(--blue); }
.adm-tile.is-hot b { color: var(--blue); }
.adm-tile:not(:disabled):hover { border-color: var(--ink); }
.adm-tile:disabled { cursor: default; }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-cols h3 { font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.adm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.adm-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-cards { display: flex; flex-direction: column; gap: 12px; }
.adm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.adm-meta .link-more { margin-left: auto; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.adm-actions .select { height: 36px; }
.adm-danger { color: var(--red); }
.adm-danger:hover { border-color: var(--red); }
.adm-warn { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 13px; color: var(--text-2); }
.adm-warn .ico { color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.adm-product { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px; }
.adm-product__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.adm-product .field { margin-bottom: 10px; }
.adm-reject { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-chips .chip { height: 28px; font-size: 12px; }
.adm-complaint, .adm-rev, .adm-user, .adm-venue { padding: 16px; }
.adm-review p { margin-top: 4px; font-size: 14px; color: var(--text); white-space: pre-line; }
.adm-complaints { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.adm-complaints li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.adm-search .adm-filter { margin: 0; }
.adm-search__field { flex: 1; min-width: 240px; height: 42px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; }
.adm-search__field input { height: 40px; }
.adm-table { display: flex; flex-direction: column; gap: 10px; }
.adm-user__main { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.adm-reason { flex: 1; min-width: 220px; height: 36px; }
.adm-venue__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }
.adm-venue .field { margin-bottom: 10px; }
.adm-words { width: 100%; min-height: 60vh; font: 13px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; padding: 14px; }
.adm-log { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.adm-log li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-log li > :last-child { grid-column: 2; }
.adm-log li:last-child { border-bottom: 0; }

@media (max-width: 960px) {
  .pn__grid { grid-template-columns: 1fr; }
  .pn__side { position: static; }
  .adm-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pn__row { grid-template-columns: 1fr; }
  .pn__preview { flex-direction: column; align-items: flex-start; }
  .adm-product { grid-template-columns: 1fr; }
  .adm-product__photo img { max-width: 260px; }
  .adm-user__main { grid-template-columns: auto 1fr; }
  .adm-user__main > .select, .adm-user__main > .status-pill { grid-column: 2; justify-self: start; }
  .adm-log li { grid-template-columns: 1fr; }
  .adm-log li > :last-child { grid-column: 1; }
  .my-product { grid-template-columns: 52px 1fr; }
  .my-product img { width: 52px; height: 52px; }
  .my-product .status-pill { grid-column: 2; justify-self: start; }
}

/* ---------- Доводка вёрстки ---------- */
label.field { display: block; }                 /* label — строчный элемент, без этого отступы полей не работают */
.pn__form .field { margin-bottom: 18px; }
.pn__row .field { margin-bottom: 18px; }
.pn__submit { margin-top: 6px; }
.empty-block .btn--primary { color: var(--card); margin-top: 10px; }
.empty-block .btn--primary:hover { color: var(--card); }
.venue__buttons { flex-wrap: wrap; }
.venue__buttons .btn { flex: 0 0 auto; max-width: none; }
.adm-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
/* полароиды: раскладка без наездов подписей */
@media (min-width: 721px) {
  .polaroid { width: 36%; }
  .polaroid--1 { left: 3%; top: 7%; }
  .polaroid--2 { left: 31%; top: 46%; }
  .polaroid--3 { left: 62%; top: 4%; }
  .stamp-note { left: 3%; bottom: 7%; }
}
/* оценка на полароиде — в углу фото, чтобы не закрывать подпись */
.polaroid .rate-badge { left: auto; right: 14px; top: 14px; bottom: auto; }
@media (max-width: 720px) { .footer__inner { padding-top: 32px; } }
/* подвал всегда внизу экрана: на коротких страницах main растягивается на свободное место */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .footer { flex-shrink: 0; }
.pn__done h2 { margin-bottom: 6px; }
/* 404 в стиле бумаги: без градиента, ноль — булавка */
.not-found { padding-top: 12vh; }
.not-found__code {
  display: inline-flex; align-items: center; gap: .04em;
  font-family: var(--display); font-weight: 700; font-size: clamp(96px, 14vw, 160px); line-height: 1;
  color: var(--ink); background: none; -webkit-text-fill-color: currentColor;
}
.not-found__pin { width: .62em; height: .82em; color: var(--blue); }
.not-found h1 { font-family: var(--display); font-weight: 500; font-size: 32px; }

/* ---------- Меню «⋮» у отзыва ---------- */
.review__more { position: relative; }
.review__more-btn { width: 34px; height: 34px; margin: -6px -8px -6px 0; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.review__more-btn:hover, .review__more-btn[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); }
.review__menu {
  position: absolute; top: calc(100% + 4px); right: -8px; z-index: 20; min-width: 210px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  animation: rise .18s var(--ease) both;
}
.review__menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 14px; text-align: left; color: var(--ink); }
.review__menu button:hover, .review__menu button:focus-visible { background: var(--paper-2); outline: none; }
.review__menu button .ico { color: var(--muted); }
.review__menu button.is-danger, .review__menu button.is-danger .ico { color: var(--red); }
.review__menu button:disabled { color: var(--muted); cursor: default; }
.review__menu button:disabled:hover { background: none; }
@media (max-width: 720px) { .review__more { grid-column: 3; grid-row: 1; } }

/* =====================================================================
   Адаптив под телефоны
   ===================================================================== */
.mobile-nav__city { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 8px; margin: -6px 0 12px; border-bottom: 1px solid var(--line); text-align: left; }
.mobile-nav__city > span { flex: 1; display: flex; flex-direction: column; }
.mobile-nav__city b { font-size: 15px; color: var(--ink); }
.mobile-nav__city .ico { color: var(--muted); }
.mobile-nav__admin { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 8px; border-radius: 12px; border: 1px dashed var(--line-2); font-weight: 600; color: var(--ink); }
.mobile-nav { max-height: calc(100dvh - 72px); overflow-y: auto; }

@media (max-width: 720px) {
  /* ряды «чипов» и фильтров — прокрутка вбок вместо переноса в три строки */
  .popular, .filters__tabs, .adm-filter {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px;
  }
  .popular::-webkit-scrollbar, .filters__tabs::-webkit-scrollbar, .adm-filter::-webkit-scrollbar { display: none; }
  .popular .chip, .popular__label, .filters__tabs .pill, .adm-filter .pill { flex-shrink: 0; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .sort { align-self: flex-start; }

  /* карточка заведения: фото слева, текст справа — список не на десять экранов */
  .places, .places--3, .places--4 { grid-template-columns: 1fr; gap: 10px; }
  .place-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .place-card__media { aspect-ratio: auto; height: 100%; min-height: 116px; }
  .place-card__media .badge { top: 6px; left: 6px; height: 20px; padding: 0 7px; font-size: 10px; }
  .place-card__body { padding: 10px 12px; }
  .place-card__name { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .place-card__meta { margin-top: 4px; }
  .place-card__foot { margin-top: 8px; }
  .place-card:hover { transform: none; }

  /* отзыв: дата «26 сентября» дублирует «4 дня назад» */
  .review { padding: 16px; }
  .review__date { display: none; }

  /* главная: полароиды без наездов */
  .front__map { height: 400px; }
  .polaroid { width: 46%; }
  .polaroid--1 { left: 2%; top: 4%; }
  .polaroid--3 { left: 52%; top: 2%; }
  .polaroid--2 { left: 8%; top: 51%; }
  .stamp-note { left: auto; right: 3%; bottom: 8%; }

  /* поиск по товарам: кнопка рядом с полем, а не под ним */
  #prSearch { flex-wrap: nowrap; }
  #prSearch .search__field { flex-basis: auto; }

  /* рейтинги */
  .hero-stats { width: 100%; }
  .hero-stat { flex: 1; min-width: 0; padding: 12px; }
  .hero-stat b { font-size: 24px; }
  .podium__media { aspect-ratio: 16 / 9; }
  .rt-first .section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .toolbar .select { flex: 1 1 auto; }

  /* кабинет: 5 плиток статистики — в три колонки, без одинокой последней */
  .acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .acc-stats > * { padding: 12px; }

  /* каталог: кнопка «Добавить товар» в одну строку с сортировкой */
  #prAdd { margin-left: auto; }
  .toolbar__count { order: 3; width: 100%; margin-left: 0; }
}
@media (max-width: 380px) {
  .place-card { grid-template-columns: 96px minmax(0, 1fr); }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ячейка сетки не должна раздуваться от длинного ряда чипов с прокруткой */
.hero__inner, .hero--section .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__content, .page-grid__main, .layout__main { min-width: 0; }
@media (max-width: 720px) { .toolbar .select { flex: 1 1 140px; } }
@media (max-width: 960px) {
  .layout, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .layout__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .layout__side { grid-template-columns: minmax(0, 1fr); } }
.filters__tabs, .popular, .adm-filter, .tabs { min-width: 0; }
@media (max-width: 720px) { .filters { flex-wrap: nowrap; } }
@media (max-width: 720px) { .toolbar .select { min-width: 0; } .toolbar .select select { width: 100%; min-width: 0; text-overflow: ellipsis; } }

/* ---------- Главная на телефоне: карта — маленькой карточкой в правом углу рядом с заголовком ---------- */
@media (max-width: 720px) {
  .front__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) 108px; column-gap: 12px; row-gap: 0;
    grid-template-areas: "title map" "lead lead" "search search"; align-items: center; padding-top: 24px; padding-bottom: 32px;
  }
  .front__text { display: contents; }                 /* заголовок, описание и поиск — отдельными ячейками сетки */
  .front__title { grid-area: title; font-size: calc((100vw - 152px) / 6.9); }
  .front__lead { grid-area: lead; margin-top: 16px; font-size: 16px; }
  .front__search { grid-area: search; margin-top: 18px; max-width: none; }

  .front__map { grid-area: map; align-self: center; width: 108px; height: 132px; min-height: 0; margin: 0; aspect-ratio: auto; }
  .city-map { border-radius: 14px; -webkit-mask: none; mask: none; }
  .city-map__label, .city-map__city, .stamp-note, .polaroid__caption, .polaroid .rate-badge { display: none; }

  /* веер из трёх полароидов */
  .polaroid { width: 60px; max-width: none; padding: 4px 4px 9px; }
  .polaroid__photo { aspect-ratio: 1; }
  .polaroid__pin { width: 12px; height: 16px; top: -8px; }
  .polaroid--1 { --rot: -9deg; left: 4px; top: 12px; }
  .polaroid--2 { --rot: 7deg; left: 42px; top: 30px; }
  .polaroid--3 { --rot: -3deg; left: 18px; top: 58px; }
  .polaroid:hover { transform: rotate(var(--rot)); }
}
/* подсказки поиска на главной не должны обрезаться краем первого экрана */
.front { overflow: visible; overflow-x: clip; position: relative; z-index: 3; }
.front__search { z-index: 10; }
.front__search .suggest { max-height: min(60vh, 460px); overflow-y: auto; }

/* =====================================================================
   Главная: витрина из фото-карточек (вместо нарисованной карты)
   ===================================================================== */
.front__map.snaps { position: relative; aspect-ratio: 600 / 520; min-height: 0; height: auto; width: 100%; }
.snaps__lines { position: absolute; inset: -6% -8%; width: 116%; height: 112%; pointer-events: none; }
.snaps__lines path { fill: none; stroke: var(--line-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.snap {
  position: absolute; display: flex; flex-direction: column; padding: 10px;
  background: var(--card); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 18px 40px rgba(60, 40, 20, .14);
  transform: rotate(var(--rot, 0deg)); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: snapIn .8s var(--delay, 0s) var(--ease) both;
}
.snap img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 11px; background: var(--paper-2); }
.snap:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 26px 50px rgba(60, 40, 20, .2); z-index: 4; }
@keyframes snapIn { from { opacity: 0; transform: translateY(18px) rotate(calc(var(--rot, 0deg) * 2)); } to { opacity: 1; transform: rotate(var(--rot, 0deg)); } }

.snap--big { --rot: -2.5deg; --delay: .15s; left: 4%; top: 15%; width: 40%; height: 60%; padding-bottom: 54px; z-index: 2; }
.snap--coffee { --rot: 3.5deg; --delay: .3s; left: 50%; top: 8%; width: 32%; height: 40%; padding-bottom: 44px; z-index: 1; }
.snap--bar { --rot: -1.5deg; --delay: .45s; left: 41%; top: 47%; width: 34%; height: 38%; padding-bottom: 34px; z-index: 3; }

.snap__caption { position: absolute; left: 16px; bottom: 12px; font-weight: 700; font-size: 15px; color: var(--ink); }
.snap__pin { position: absolute; right: -16px; top: -22px; width: 46px; height: 56px; color: var(--blue); filter: drop-shadow(0 6px 8px rgba(196, 50, 36, .35)); }

.snaps__sticker {
  position: absolute; left: 2%; top: 69%; z-index: 5; padding: 12px 18px; border-radius: 12px;
  background: var(--note); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.15;
  transform: rotate(-6deg); box-shadow: 0 10px 20px rgba(60, 40, 20, .14);
  animation: rise .7s .7s var(--ease) both;
}
.snaps__pill {
  position: absolute; left: 27%; top: 86%; z-index: 5; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(38, 30, 24, .25); animation: rise .7s .85s var(--ease) both;
}
.snaps__stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }

/* ноутбуки поуже: плашки чуть меньше */
@media (max-width: 1180px) {
  .snaps__sticker { font-size: 14px; padding: 10px 14px; }
  .snaps__pill { font-size: 12px; padding: 8px 16px; left: 22%; }
}

/* телефон: компактная витрина в правом углу рядом с заголовком */
@media (max-width: 720px) {
  .front__map.snaps { width: 118px; height: 138px; aspect-ratio: auto; }
  .snaps__lines, .snaps__sticker, .snaps__pill, .snap__caption { display: none; }
  .snap { padding: 5px; border-radius: 12px; box-shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 8px 18px rgba(60, 40, 20, .16); }
  .snap img { border-radius: 8px; }
  .snap--big { left: 0; top: 16px; width: 70px; height: 92px; padding-bottom: 5px; }
  .snap--coffee { left: 52px; top: 0; width: 64px; height: 62px; padding-bottom: 5px; }
  .snap--bar { left: 46px; top: 66px; width: 70px; height: 66px; padding-bottom: 5px; }
  .snap__pin { width: 22px; height: 27px; right: -8px; top: -11px; }
  .snap:hover { transform: rotate(var(--rot, 0deg)); }
}
@media (max-width: 720px) {
  .front__inner { grid-template-columns: minmax(0, 1fr) 118px; }
  .front__title { font-size: calc((100vw - 164px) / 6.9); }
}
/* телефон: витрины с карточками нет — заголовок на всю ширину */
@media (max-width: 720px) {
  .front__map.snaps { display: none; }
  .front__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead" "search"; }
  .front__title { font-size: min(calc((100vw - 32px) * .134), 72px); }
}

/* ---------- Колокольчик уведомлений ---------- */
.user-menu { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; }
.bell__btn { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.bell__btn:hover, .bell__btn[aria-expanded="true"] { background: var(--paper-2); }
.bell__count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--blue); color: var(--card); font-size: 10px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.bell__drop {
  position: absolute; top: calc(100% + 8px); right: -8px; z-index: 60; width: min(380px, calc(100vw - 24px));
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: rise .18s var(--ease) both;
}
.bell__drop--static { position: static; width: auto; box-shadow: none; animation: none; }
.bell__head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.bell__list { max-height: min(70vh, 460px); overflow-y: auto; }
.bell__item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .2s; }
.bell__list li:last-child .bell__item { border-bottom: 0; }
a.bell__item:hover { background: var(--paper-2); }
.bell__item .ico { color: var(--muted); margin-top: 1px; }
.bell__item--product_approved .ico { color: var(--green); }
.bell__item--product_rejected .ico, .bell__item--broadcast .ico { color: var(--blue); }
.bell__item.is-unread { background: color-mix(in oklab, var(--red-50) 70%, var(--card)); }
.bell__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bell__text b { font-size: 14px; color: var(--ink); line-height: 1.3; }
.bell__body { font-size: 13px; color: var(--text-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bell__empty { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; text-align: center; color: var(--ink); }

/* ---------- Рассылка в панели ---------- */
.adm-bc { align-items: start; margin-bottom: 8px; }
.adm-bc__form .field { margin-bottom: 14px; }
.adm-bc__text { min-height: 110px; padding: 12px 14px; resize: vertical; font: inherit; }

@media (max-width: 720px) {
  .user-menu { gap: 2px; }
  .bell__drop { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* ---------- Карточка пользователя в панели ---------- */
.adm-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.adm-profile { padding: 18px; margin-bottom: 18px; }
.adm-profile__head { display: flex; gap: 14px; align-items: center; }
.adm-profile__head h2 { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--ink); line-height: 1.1; }
.adm-profile__head p { margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-profile__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adm-profile__stats span { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--paper-2); font-size: 12px; color: var(--text-2); min-width: 110px; }
.adm-profile__stats b { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); line-height: 1.1; }
.adm-card-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.adm-card-sec { margin-bottom: 20px; }
.adm-card-sec h3 { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.adm-card-sec .adm-rev { margin-bottom: 10px; }
.adm-card-grid aside .adm-card-sec { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.adm-list--col li { align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.adm-list--col li:last-child { border-bottom: 0; }
.adm-list li a { color: var(--ink); font-weight: 600; }
.adm-note { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.adm-note textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.adm-notes li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.adm-notes p { color: var(--ink); }
.adm-user__name { font-size: 15px; color: var(--ink); }
.adm-reasons { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.adm-reasons li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 960px) { .adm-card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Капча «Я не робот» ---------- */
.rf-captcha { margin: 4px 0 14px; }
.rf-captcha[hidden] { display: none; }
.captcha__box {
  width: 100%; max-width: 340px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); text-align: left; transition: border-color .2s;
}
.captcha__box:not(:disabled):hover { border-color: var(--ink); }
.captcha__box:disabled { cursor: default; }
.captcha__check {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; color: var(--card); transition: background .2s, border-color .2s;
}
.captcha__box.is-solving .captcha__check { border-color: var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.captcha__box.is-done .captcha__check { background: var(--green); border-color: var(--green); }
.captcha__box.is-done .captcha__check .ico { width: 16px; height: 16px; }
.captcha__label { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); }
.captcha__box.is-error .captcha__label { color: var(--red); font-size: 13px; }
.captcha__brand { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.field.has-error .captcha__box { border-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
/* картинка с символами (для подозрительных) */
.captcha-img { margin-top: 10px; max-width: 340px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.captcha-img[hidden] { display: none; }
.captcha-img__hint { color: var(--text-2); margin-bottom: 8px; }
.captcha-img__row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.captcha-img__pic { width: 200px; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #faf8f4; user-select: none; -webkit-user-drag: none; }
.captcha-img__refresh { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.captcha-img__refresh:hover { background: var(--paper-2); color: var(--ink); }
.captcha-img__answer { width: 100%; height: 42px; font-size: 16px; letter-spacing: .08em; }
.field.has-error .captcha-img__answer { border-color: var(--red); }

/* ---------- Обновление заведений ---------- */
.adm-import { padding: 18px; margin-bottom: 18px; }
.adm-import__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.adm-import__head h3 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--ink); }
.adm-import__head p { margin-top: 4px; max-width: 720px; }
.adm-import__step { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: oklch(94% 0.06 85); color: var(--ink); font-weight: 600; font-size: 14px; }
.adm-import__step .ico { animation: spin 2s linear infinite; }
.adm-import__log { margin: 8px 0; }
.adm-import__log summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.adm-import__log pre { margin-top: 8px; max-height: 260px; overflow: auto; padding: 12px; border-radius: 8px; background: var(--ink); color: oklch(90% 0.01 80); font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
/* страница товара на телефоне: одна колонка (правило выше для компьютера перебивало мобильное) */
@media (max-width: 960px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product__photo { max-width: 420px; align-self: start; }
}
.product__photo { align-self: start; }

/* ---------- Карточка заведения: закрыть, фото от посетителей ---------- */
.venue__head-actions { display: inline-flex; align-items: center; gap: 6px; }
.venue__close { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: border-color .2s, color .2s; }
.venue__close:hover { border-color: var(--ink); color: var(--ink); }
.venue__pending { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.venue-block[hidden] { display: none; }
.venue-block { display: flex; flex-direction: column; gap: 24px; }
.adm-photo__venue { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 2px 0 4px; }
.adm-photo__venue a { color: var(--ink); }
.adm-photo__caption { margin: 8px 0; font-size: 14px; }
.bell__item--photo_approved .ico { color: var(--green); }

/* кнопки карточки заведения — ровная сетка 2×2 одинаковой ширины */
.venue__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.venue__buttons .btn { width: 100%; max-width: none; padding: 0 12px; }
.venue__buttons .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* нет телефона → последняя кнопка во всю ширину */
.lbl-short { display: none; }
@media (max-width: 720px) {
  .venue__buttons { max-width: none; }
  .venue__buttons .btn { height: 46px; font-size: 14px; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
}
