/* Статические страницы /goroda/ — вид сайта (scripts/seo/build-seo.mjs).
 * Размеры и цвета — с живого сайта: шапка (src/mobile-web/MobileWebApp),
 * город (home/NewCityScreenPhone, desktop/CityHomeWide, screens/home/newCity),
 * место (overrides/EventScreenIndex, event/InlineArticle). Телефон — до 767 px,
 * шире — раскладка широкого экрана (layout/widths.ts). Шрифт — те же файлы
 * Montserrat, что у сайта (@font-face — в <head> страницы). */

:root {
  --bg: #fbf7f0;
  --card: #fff;
  --ink: #131c3a;
  --navy: #1c274c;
  --muted: #7c7969;
  --faint: #a6a296;
  --gold: #b8870b;
  --gold-soft: rgba(184, 135, 11, 0.12);
  --chip: #f1e9fc;
  --line: rgba(28, 39, 76, 0.08);
  --border: #f0ede6;
  --photo: #e7e1d6;
  --shadow: 0 8px 14px rgba(46, 19, 56, 0.1);
  --shadow-card: 0 12px 17px rgba(28, 39, 76, 0.1);
  --tab: rgba(28, 39, 76, 0.62);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 22px;
  height: 22px;
  flex: none;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- шапка ---------- */

.ah {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(16, 27, 63, 0.05);
}

.ah-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.ah-logo img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: contain;
}

.ah-logo span {
  display: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}

.ah-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  margin-left: 6px;
}

.ah-tabs::-webkit-scrollbar {
  display: none;
}

.ah-tab {
  flex: none;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tab);
  white-space: nowrap;
}

.ah-tab.on {
  background: var(--navy);
  color: #fff;
}

.ah-wide {
  display: none !important;
}

.ah-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.ah-round svg {
  width: 18px;
  height: 18px;
}

.ah-login {
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
}

/* строка поиска в шапке (широкий экран, страницы города и места) — как
   .web-mobile-header__search сайта */
.ah-search {
  flex: 1 1 420px;
  max-width: 420px;
  min-width: 160px;
  height: 42px;
  margin-left: 8px;
  margin-right: auto;
  padding: 0 14px;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  background: var(--cream, #f6f3ec);
  box-shadow: inset 0 0 0 1px rgba(28, 39, 76, 0.1);
  color: rgba(28, 39, 76, 0.5);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}

.ah-search svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: rgba(28, 39, 76, 0.6);
}

.ah-search span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* навигация «Главная › город › место» — только широкий экран */
.crumbs {
  display: none;
}

/* ---------- общее ---------- */

.pg {
  position: relative;
}

.glass {
  position: absolute;
  top: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 32, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.glass--back {
  left: 12px;
}

.glass--search {
  right: 12px;
}

.glass svg {
  width: 20px;
  height: 20px;
}

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding: 22px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
}

.sheet--flat {
  margin-top: 0;
  border-radius: 0;
}

.sec {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sec-t {
  font-weight: 800;
  font-size: 21px;
  line-height: 26px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.sec-all {
  font-weight: 600;
  font-size: 13px;
  color: var(--tab);
}

.chip {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  line-height: 17px;
}

.btn-more {
  align-self: center;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- интересные локации (ИЛ): блок города, страница, «рядом» ---------- */

/* свёрнутый блок внизу страницы города — как il/CityIlsBlock сайта */
.ilc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.ilc-av {
  display: flex;
  flex: none;
}

.ilc-av img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--card);
  object-fit: cover;
}

.ilc-av img + img {
  margin-left: -12px;
}

.ilc-b {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ilc-b b {
  font-size: 16px;
  line-height: 21px;
}

.ilc-b span {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ilc svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
}

/* страница «Интересные места <города>» */
.pg-ils .btn-gold {
  align-self: flex-start;
  min-height: 44px;
  font-size: 15px;
}

.il-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.il-topics a {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  background: var(--card);
}

.il-topics b {
  opacity: 0.6;
}

.il-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.il {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--card);
  scroll-margin-top: 80px;
}

.il:target {
  box-shadow: 0 0 0 2px var(--gold);
}

.il-img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--photo);
}

.il-b {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.il-b h3 {
  margin: 0;
  font-size: 17px;
  line-height: 22px;
  color: var(--ink);
}

.il-b p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.il-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
}

.il-map svg {
  width: 16px;
  height: 16px;
}

.il-credit {
  font-size: 11px;
  color: var(--faint);
}

/* «Интересное рядом» на странице места */
.ncards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.ncard {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.ncard img,
.ncard-img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: var(--photo);
}

.ncard b {
  padding: 10px 10px 2px;
  font-size: 14px;
  line-height: 18px;
}

.ncard span {
  padding: 0 10px 10px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .il-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- строки мест (CityIntroCard / CityPlaces) ---------- */

.intro,
.rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background: var(--card);
  min-width: 0;
}

.row--shadow {
  box-shadow: var(--shadow);
}

.row-img {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--photo);
}

.row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.row-t {
  font-weight: 800;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.2px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-x {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- аккордеон (CityAccordion) ---------- */

.acc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-i {
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
}

.acc-i summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 21px;
  color: var(--ink);
  cursor: pointer;
}

.acc-i summary::-webkit-details-marker {
  display: none;
}

.acc-i summary svg {
  width: 20px;
  height: 20px;
  color: var(--faint);
  transition: transform 0.2s;
}

.acc-i[open] summary svg {
  transform: rotate(180deg);
}

.acc-a {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 22px;
  color: var(--muted);
}

.acc-a p + p {
  margin-top: 10px;
}

/* ---------- «Рекомендуемые» (Recommend) ---------- */

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rec {
  position: relative;
  flex: none;
  width: 284px;
  height: 194px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--photo);
  scroll-snap-align: start;
  box-shadow: 0 2px 6px rgba(46, 19, 56, 0.12);
}

.rec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.rec-txt {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
}

.rec-txt b {
  font-weight: 700;
  font-size: 17px;
  line-height: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-txt span {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- город: обложка (CityHero) ---------- */

.hero {
  position: relative;
  height: 320px;
  background: var(--photo);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.phero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 20, 0.4) 0%, rgba(10, 8, 20, 0) 30%, rgba(10, 8, 20, 0.25) 55%, rgba(10, 8, 20, 0.8) 100%);
}

.hero-cap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 38px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-cap h1 {
  font-weight: 800;
  font-size: 42px;
  line-height: 44px;
  letter-spacing: -1px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cap p {
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- место: обложка ---------- */

.phero {
  position: relative;
  height: 340px;
  background: var(--photo);
  overflow: hidden;
}

.phero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phero-side {
  display: none;
}

.phero-acts {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.phero-acts .glass {
  position: static;
}

.phero-t {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 40px;
  z-index: 2;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.22;
  letter-spacing: -1px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.phero-credit {
  position: absolute;
  right: 22px;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.psheet {
  position: relative;
  z-index: 2;
  margin-top: -6px;
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pside {
  display: contents;
}

.desc {
  order: 1;
}

.audio {
  order: 2;
}

.art {
  order: 3;
}

.useful {
  order: 4;
}

.mapcard {
  order: 5;
}

.near {
  order: 6;
}

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

.desc {
  padding: 18px;
}

.desc p {
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -0.19px;
  color: var(--navy);
}

/* аудиогид */

.audio {
  padding: 16px 16px 14px;
}

.au-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.au-tile {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f6eedc;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.au-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.au-meta b {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.au-meta span {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--faint);
}

.au-speed {
  flex: none;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.au-play {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(184, 135, 11, 0.3);
}

.au-bar {
  position: relative;
  height: 4px;
  margin: 18px 4px 12px;
  border-radius: 2px;
  background: var(--border);
}

.au-bar i {
  position: absolute;
  left: -4px;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
}

.au-ch {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.au-ch a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 12px;
  font-size: 14.5px;
  letter-spacing: -0.15px;
}

.au-ch li.on a {
  background: var(--gold-soft);
  color: var(--gold);
}

.au-ch .n {
  flex: none;
  width: 18px;
  font-weight: 700;
  color: var(--faint);
}

.au-ch li.on .n {
  color: var(--gold);
}

.au-ch .t {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.au-ch .s {
  flex: none;
  font-size: 13px;
  color: var(--faint);
}

.au-ch li.on .s {
  color: var(--gold);
}

.au-more summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 2px;
  font-weight: 600;
  font-size: 13px;
  color: var(--faint);
  cursor: pointer;
}

.au-more summary::-webkit-details-marker {
  display: none;
}

.au-more summary svg {
  width: 16px;
  height: 16px;
}

.au-more[open] summary {
  display: none;
}

/* статья (event/InlineArticle) */

.art {
  padding: 6px 6px 0;
}

.art-h {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.72px;
  color: var(--navy);
  margin-bottom: 6px;
}

.art-min {
  font-weight: 600;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 18px;
}

.art h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 26px 0 12px;
}

.art h3:first-of-type {
  margin-top: 10px;
}

.art p {
  font-weight: 400;
  font-size: 16.625px;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 16px;
}

.art-photos {
  display: grid;
  gap: 12px;
  margin: 6px 0 20px;
}

.art-photos--pair {
  grid-template-columns: 1fr 1fr;
}

.art-photos img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--photo);
}

.art-photos--pair img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.art-photos figcaption {
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--faint);
}

.paywall {
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paywall h3,
.art .paywall h3 {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

.paywall p,
.art .paywall p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

.paywall ol {
  margin: 6px 0 0;
  padding-left: 22px;
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  color: var(--navy);
}

/* карта */

.mapcard {
  overflow: hidden;
}

.map-pic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 170px;
  background: #eceae3 linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, 0.9) 47%, rgba(255, 255, 255, 0.9) 53%, transparent 53%) 0 0 / 46px 46px;
  color: var(--navy);
}

.map-pin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(28, 39, 76, 0.18);
}

.map-label {
  max-width: 70%;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  text-shadow: 0 0 4px #fff;
}

.map-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.map-row svg:first-child {
  color: var(--gold);
}

.map-row span {
  flex: 1;
}

.map-row svg:last-child {
  color: var(--faint);
}

.map-addr {
  padding: 0 18px 16px;
  margin-top: -6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- все города ---------- */

.idx-h {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.idx-lead {
  margin-top: -14px;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

.cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cityc {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--photo);
}

.cityc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cityc::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

.cityc-txt {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}

.cityc-txt b {
  font-weight: 800;
  font-size: 18px;
}

.cityc-txt span {
  font-size: 12.5px;
  opacity: 0.9;
}

/* ---------- подвал ---------- */

.ft {
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 21px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft a {
  color: var(--navy);
  font-weight: 600;
}

.ft b {
  color: var(--navy);
}

.ft-muted {
  font-size: 12px;
  color: var(--faint);
}

.ft-places {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-places span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.ft-places a {
  font-weight: 500;
}

.ft-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ft-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #0f1014;
  color: #fff !important;
}

.ft-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ft-store small {
  font-size: 10px;
  font-weight: 500;
}

.ft-store b {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.ft [data-cookie-settings] {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
}

/* баннер cookie (как в приложении) */
.s-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 27, 63, 0.18);
  font-size: 13px;
  line-height: 19px;
  color: var(--navy);
}

.s-cookie a {
  color: var(--gold);
  font-weight: 600;
}

.s-cookie div {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.s-cookie button {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border);
}

.s-cookie button[data-v='1'] {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- широкий экран (768 px и шире) ---------- */

@media (min-width: 768px) {
  .ah {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
  }

  .ah-logo span {
    display: inline;
  }

  .ah-tabs {
    margin-left: auto;
    gap: 4px;
  }

  /* при строке поиска вкладки не сжимаются: лишнее место — справа от строки */
  .ah-search + .ah-tabs {
    margin-left: 0;
    flex: none;
  }

  .crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: var(--muted);
  }

  .crumbs-a:hover {
    color: var(--ink);
    text-decoration: underline;
  }

  .crumbs-cur {
    font-weight: 600;
    color: var(--ink);
  }

  .crumbs-sep {
    font-size: 14px;
  }

  /* круглой кнопки поиска в углу обложки на широком экране нет — поиск в шапке */
  .glass--search {
    display: none;
  }

  .ah-tab {
    padding: 9px 16px;
    font-size: 14px;
  }

  .ah-phone {
    display: none !important;
  }

  .ah-wide {
    display: inline-flex !important;
  }

  .ah-round {
    margin-left: 8px;
  }

  .pg {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 24px auto 0;
  }

  .hero {
    height: 360px;
    border-radius: 28px;
  }

  .hero-cap {
    left: 28px;
    right: auto;
    max-width: 640px;
    bottom: 28px;
  }

  .hero-cap h1 {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -1.2px;
  }

  .hero-cap p {
    -webkit-line-clamp: 3;
  }

  .glass {
    top: 16px;
  }

  .glass--back {
    left: 16px;
  }

  .glass--search {
    right: 16px;
  }

  .sheet {
    margin-top: 0;
    padding: 32px 0;
    gap: 32px;
    border-radius: 0;
    background: transparent;
  }

  .intro {
    max-width: 788px;
  }

  .rows--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rail {
    margin: 0;
    padding: 0 0 6px;
  }

  .cities {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .idx-h {
    font-size: 34px;
  }

  /* место: фото крупно слева, два снимка справа, название под фото */
  .phero {
    height: 420px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    overflow: visible;
    background: transparent;
    margin-bottom: 88px;
  }

  .phero::after {
    display: none;
  }

  .phero-img {
    position: static;
    height: 420px;
    border-radius: 24px 0 0 24px;
    grid-column: 1;
  }

  .phero-side {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    height: 420px;
    min-height: 0;
  }

  .phero-side img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    background: var(--photo);
  }

  .phero-side img:first-child {
    border-radius: 0 24px 0 0;
  }

  .phero-side img:last-child {
    border-radius: 0 0 24px 0;
  }

  .phero-side img:only-child {
    border-radius: 0 24px 24px 0;
  }

  .phero:not(:has(.phero-side)) {
    grid-template-columns: 1fr;
  }

  .phero:not(:has(.phero-side)) .phero-img {
    border-radius: 24px;
  }

  .phero-t {
    top: 436px;
    bottom: auto;
    left: 0;
    right: 0;
    font-size: 36px;
    line-height: 44px;
    color: var(--navy);
    -webkit-line-clamp: 2;
  }

  .phero-credit {
    top: 396px;
    bottom: auto;
    right: 14px;
  }

  .phero .glass--back {
    top: 16px;
    left: 16px;
  }

  .phero-acts {
    top: 16px;
    right: calc(33.333% + 12px);
  }

  .psheet {
    margin-top: 0;
    padding: 20px 0 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    column-gap: 32px;
    row-gap: 24px;
    align-items: start;
  }

  .psheet > * {
    grid-column: 1;
  }

  .pside {
    display: flex;
    flex-direction: column;
    gap: 22px;
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: 88px;
  }

  .near {
    grid-column: 1 / -1;
  }

  .near .rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .art {
    padding: 6px 0 0;
    max-width: 720px;
  }

  .ft {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0 48px;
  }
}

@media (min-width: 1180px) {
  .pg,
  .ft {
    width: calc(100% - 64px);
  }
}
