/*
 * Petmetka red editorial system.
 *
 * This file is deliberately loaded after page-specific styles. It is a visual
 * skin over the accepted product DOM: routes, block order, data and actions
 * remain owned by the templates and views.
 */

@font-face {
  font-family: "Manrope";
  src: url("petmetka-red/fonts/manrope-cyrillic-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("petmetka-red/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

:root {
  /* Brand and semantic colour system. */
  --pm-ink: #211a1b;
  --pm-ink-deep: #180f11;
  --pm-wine: #4a151d;
  --pm-wine-hover: #601b28;
  --pm-red-deep: #7a2030;
  --pm-red-primary: #98263a;
  --pm-red-signal: #b83448;
  --pm-red-muted: #a85668;
  --pm-terracotta: #8f4939;
  --pm-blush: #f1ddda;
  --pm-paper: #f6efe5;
  --pm-ivory: #fbf7f0;
  --pm-surface: #fffdf9;
  --pm-surface-muted: #faf4ec;
  --pm-line: #e7dace;
  --pm-line-strong: #cfbbb2;
  --pm-gold: #a9833f;
  --pm-gold-deep: #75531d;
  --pm-champagne: #f2e3c1;
  --pm-found: #326449;
  --pm-found-soft: #e4efe8;
  --pm-sighted: #7a5824;
  --pm-sighted-soft: #f4e7d2;
  --pm-warning: #7a5824;
  --pm-error: #a12636;
  --pm-focus: #98263a;
  --pm-focus-ring: #98263a;
  --pm-text-muted: #67585b;
  --pm-disabled-bg: #eee6df;
  --pm-disabled-text: #7a6c6e;
  --pm-listing-detail-max-width: 980px;

  /* A deliberately small depth scale. */
  --pm-shadow-xs: 0 1px 2px rgba(58, 12, 21, .07), 0 3px 9px rgba(58, 12, 21, .035);
  --pm-shadow-sm: 0 1px 2px rgba(58, 12, 21, .055), 0 10px 26px rgba(58, 12, 21, .07);
  --pm-shadow-md: 0 2px 5px rgba(58, 12, 21, .075), 0 18px 42px rgba(58, 12, 21, .105);
  --pm-shadow-lg: 0 4px 12px rgba(33, 12, 17, .12), 0 28px 70px rgba(33, 12, 17, .17);
  --pm-shadow-cta: 0 2px 4px rgba(74, 21, 29, .16), 0 12px 26px rgba(74, 21, 29, .2);
  --pm-shadow: var(--pm-shadow-sm);
  --pm-shadow-hover: var(--pm-shadow-md);

  /* Radius, spacing and motion primitives. */
  --pm-r-xs: 10px;
  --pm-r-sm: 12px;
  --pm-r-md: 16px;
  --pm-r-lg: 20px;
  --pm-r-xl: 26px;
  --pm-ease: cubic-bezier(.22, 1, .36, 1);
  --pm-instant: 90ms var(--pm-ease);
  --pm-fast: 160ms var(--pm-ease);
  --pm-medium: 200ms var(--pm-ease);
  --pm-slow: 220ms var(--pm-ease);

  /* Compatibility aliases for the accepted component layer. */
  --green-950: var(--pm-ink-deep);
  --green-900: var(--pm-wine);
  --green-800: var(--pm-red-deep);
  --green-700: var(--pm-red-primary);
  --green-600: var(--pm-red-primary);
  --green-500: var(--pm-red-muted);
  --green-400: var(--pm-red-signal);
  --green-200: var(--pm-blush);
  --green-100: #f7e9e7;
  --green-50: #fbf1ef;
  --cream-50: var(--pm-paper);
  --ink-900: var(--pm-ink-deep);
  --ink-700: #4d3b3e;
  --ink-600: #665155;
  --ink-500: #766368;
  --ink-400: #927e82;
  --ink-300: #a89598;
  --surface: var(--pm-surface);
  --surface-2: var(--pm-surface-muted);
  --surface-3: #efe3dc;
  --stroke: var(--pm-line);
  --shadow-1: var(--pm-shadow-sm);
  --shadow-2: var(--pm-shadow-md);
  --radius-xl: var(--pm-r-xl);
  --radius-lg: var(--pm-r-lg);
  --radius-md: var(--pm-r-md);
  --radius-sm: var(--pm-r-sm);
  --ease-soft: var(--pm-ease);
}

html {
  color-scheme: light;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.pm-red {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--pm-ink);
  background: var(--pm-paper) !important;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 440;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--pm-surface);
  background: var(--pm-red-deep);
}

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

.pm-red img { max-width: 100%; }

.pm-red a { text-underline-offset: .2em; }

.pm-red h1,
.pm-red h2,
.pm-red h3,
.pm-red h4,
.pm-red .brand,
.pm-red .brand-text {
  color: var(--pm-ink-deep);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 720;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.pm-red h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.06;
}

.pm-red h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.12;
}

.pm-red h3 { line-height: 1.2; }

.pm-red p { color: var(--pm-text-muted); }

.pm-red .container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.pm-red main {
  flex: 1;
  padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 8vw, 112px);
}

.pm-red .section { margin-top: clamp(48px, 6.5vw, 88px); }

.pm-red .card {
  color: var(--pm-ink);
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .hover-lift,
.pm-red .card,
.pm-red .btn,
.pm-red button,
.pm-red a { -webkit-tap-highlight-color: transparent; }

.pm-red :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--pm-focus-ring) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 1px var(--pm-surface) !important;
}

.pm-red .pm-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--pm-surface);
  background: var(--pm-ink-deep);
  border: 1px solid var(--pm-surface);
  border-radius: var(--pm-r-sm);
  transform: translateY(-160%);
  transition: transform var(--pm-fast);
}

.pm-red .pm-skip-link:focus { transform: translateY(0); }

/* Header: light, stable and deliberately quieter than page content. */
.pm-red .page > header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--pm-ink);
  background: var(--pm-ivory) !important;
  border: 0;
  border-bottom: 1px solid var(--pm-line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color var(--pm-fast), box-shadow var(--pm-fast);
}

.pm-red .page > header.is-scrolled {
  background: var(--pm-surface) !important;
  box-shadow: var(--pm-shadow-xs);
}

.pm-red .pm-nav {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(340px, 1.35fr) max-content;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px 0;
}

.pm-red .brand.brand--logo {
  justify-self: start;
  gap: 10px !important;
  color: var(--pm-wine);
  min-height: 44px;
}

.pm-red .brand.brand--logo .brand-logo {
  width: 34px !important;
  height: 34px !important;
  color: var(--pm-surface);
  background: var(--pm-wine) !important;
  border: 1px solid var(--pm-wine);
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(74, 21, 29, .13);
}

.pm-red .pm-brand-mark path:first-child { fill: currentColor; }
.pm-red .pm-brand-mark .pm-brand-cut { fill: var(--pm-red-signal); }

.pm-red .brand.brand--logo .brand-text {
  color: var(--pm-wine);
  font-size: 21px !important;
  font-weight: 780;
  letter-spacing: -.055em;
}

.pm-red .pm-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.pm-red .pm-primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 2px;
  color: #5d474b;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .015em;
  text-decoration: none;
}

.pm-red .pm-primary-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--pm-gold);
  transition: right var(--pm-medium);
}

.pm-red .pm-primary-nav a:hover::after,
.pm-red .pm-primary-nav a:focus-visible::after { right: 0; }

.pm-red .pm-header-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.pm-red .btn,
.pm-red .nav-links .btn {
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 740;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--pm-shadow-xs);
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}

.pm-red .btn-primary,
.pm-red .nav-links .btn-primary {
  color: var(--pm-surface) !important;
  background: linear-gradient(180deg, #a32a3e 0%, var(--pm-red-primary) 100%) !important;
  border-color: var(--pm-red-primary);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), var(--pm-shadow-cta);
}

.pm-red .btn-primary:hover,
.pm-red .nav-links .btn-primary:hover {
  color: var(--pm-surface) !important;
  background: linear-gradient(180deg, var(--pm-red-deep), var(--pm-wine-hover)) !important;
  border-color: var(--pm-wine-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 3px 7px rgba(74, 21, 29, .18), 0 16px 30px rgba(74, 21, 29, .22);
}

.pm-red .btn-primary:active,
.pm-red .nav-links .btn-primary:active {
  transform: scale(.988);
  box-shadow: inset 0 1px 2px rgba(27, 8, 12, .2), 0 4px 10px rgba(74, 21, 29, .15);
}

.pm-red .btn-ghost,
.pm-red .nav-links .btn-ghost {
  color: var(--pm-wine);
  background: rgba(255, 253, 249, .82) !important;
  border-color: var(--pm-line-strong);
  box-shadow: var(--pm-shadow-xs);
}

.pm-red .btn-ghost:hover,
.pm-red .nav-links .btn-ghost:hover {
  color: var(--pm-wine);
  background: var(--pm-champagne) !important;
  border-color: rgba(169, 131, 63, .58);
  transform: translateY(-1px);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .btn-ghost:active,
.pm-red .nav-links .btn-ghost:active { transform: scale(.988); box-shadow: var(--pm-shadow-xs); }

.pm-red .btn:disabled,
.pm-red .tile-action:disabled {
  color: var(--pm-disabled-text) !important;
  background: var(--pm-disabled-bg) !important;
  border-color: #dfd4ce !important;
  box-shadow: none !important;
  opacity: 1;
  transform: none;
}

.pm-red .pm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--pm-wine);
  background: transparent;
  border: 1px solid var(--pm-line-strong);
  border-radius: 13px;
  font-size: 23px;
  box-shadow: var(--pm-shadow-xs);
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), transform var(--pm-instant);
}

.pm-red .pm-menu-toggle:hover { color: var(--pm-surface); background: var(--pm-wine); border-color: var(--pm-wine); }
.pm-red .pm-menu-toggle:active { transform: scale(.97); }

.pm-red .pm-mobile-menu {
  border-top: 1px solid var(--pm-line);
  background: var(--pm-surface);
  box-shadow: var(--pm-shadow-md);
}

.pm-red .pm-mobile-menu[hidden] { display: none; }

.pm-red .pm-mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 18px 22px;
}

.pm-red .pm-mobile-menu-grid a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 56px;
  padding: 8px 14px;
  border-left: 1px solid var(--pm-line);
  color: var(--pm-ink-deep);
  font-size: 14px;
  font-weight: 650;
  transition: color var(--pm-fast), background-color var(--pm-fast);
}

.pm-red .pm-mobile-menu-grid a:hover,
.pm-red .pm-mobile-menu-grid a:focus-visible { color: var(--pm-wine); background: var(--pm-ivory); }

.pm-red .pm-mobile-menu-grid a:first-child { border-left: 0; }
.pm-red .pm-mobile-menu-grid span { color: var(--pm-red-primary); font-size: 10px; letter-spacing: .12em; }

/* Home hero: a compact editorial triptych. */
.pm-red .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .82fr) minmax(220px, .7fr);
  grid-template-areas: "copy media scenarios";
  gap: 0;
  min-height: 470px;
  padding: 0;
  overflow: hidden;
  color: var(--pm-surface);
  background: var(--pm-wine) !important;
  border: 1px solid rgba(242, 227, 193, .16);
  border-radius: var(--pm-r-xl);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), var(--pm-shadow-md);
}

.pm-red .hero::after { display: none; }
.pm-red .hero-head { padding-right: 0; }
.pm-red .hero-scenario::after { display: none !important; }

.pm-red .pm-hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-width: 0;
  padding: clamp(34px, 4vw, 58px);
  border-right: 1px solid rgba(255, 253, 252, .18);
}

.pm-red .pm-kicker,
.pm-red .home-steps-eyebrow,
.pm-red .city-help-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 0 7px;
  color: var(--pm-red-primary);
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pm-red .hero .pm-kicker { color: #f3c5c0; }

.pm-red .hero-head { display: grid; gap: 7px; }
.pm-red .hero-sub-desktop { display: block; }
.pm-red .hero-sub-mobile { display: none; }

.pm-red .hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--pm-surface);
  font-size: clamp(2.25rem, 3.7vw, 3.65rem);
  line-height: .99;
  letter-spacing: -.055em;
}

.pm-red .hero-sub {
  max-width: 560px;
  margin-top: 20px;
  color: #e9d9d6;
  font-size: 15px;
  line-height: 1.55;
}

.pm-red .pm-hero-city-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  color: var(--pm-surface);
  border-bottom: 1px solid rgba(255, 253, 252, .58);
  font-size: 13px;
  font-weight: 670;
  text-decoration: none;
  transition: color var(--pm-fast), border-color var(--pm-fast);
}

.pm-red .pm-hero-city-link:hover { color: #ffd7d3; border-color: var(--pm-red-signal); }

.pm-red .pm-hero-media {
  grid-area: media;
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #3c2528;
}

.pm-red .pm-hero-media picture,
.pm-red .pm-hero-media img { width: 100%; height: 100%; }

.pm-red .pm-hero-media img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 51% 50%;
  filter: saturate(.88) contrast(1.04);
  transition: transform var(--pm-slow), filter var(--pm-medium);
}

.pm-red .hero:hover .pm-hero-media img { transform: scale(1.012); filter: saturate(1) contrast(1.05); }

.pm-red .pm-hero-media-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  color: var(--pm-surface);
  background: rgba(27, 17, 19, .86);
  border-top: 1px solid rgba(255, 253, 252, .22);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pm-red .pm-hero-media-note strong { font-weight: 700; }

.pm-red .hero-scenarios {
  grid-area: scenarios;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  background: var(--pm-surface);
}

.pm-red .hero-scenario {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 5px 10px;
  min-width: 0;
  padding: 22px 18px;
  color: var(--pm-ink);
  background: var(--pm-surface) !important;
  border: 0;
  border-bottom: 1px solid var(--pm-line);
  border-radius: 0;
  text-decoration: none;
  transform: none;
  transition: color var(--pm-fast), background-color var(--pm-fast), box-shadow var(--pm-fast);
}

.pm-red .hero-scenario:last-child { border-bottom: 0; }

.pm-red .hero-scenario:hover,
.pm-red .hero-scenario:focus-visible {
  color: var(--pm-surface);
  background: var(--pm-red-primary) !important;
  border-color: rgba(255, 253, 252, .22);
  box-shadow: inset 4px 0 var(--pm-gold);
  transform: none;
}

.pm-red .scenario-number {
  grid-row: 1 / 3;
  align-self: start;
  color: var(--pm-red-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
}

.pm-red .scenario-label {
  color: inherit;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.22;
}

.pm-red .scenario-sub {
  color: #7b686c;
  font-size: 11px;
  line-height: 1.4;
}

.pm-red .hero-scenario:hover :is(.scenario-number, .scenario-sub),
.pm-red .hero-scenario:focus-visible :is(.scenario-number, .scenario-sub) { color: #f4dad7; }

.pm-red .hero-scenario > .ph {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  color: var(--pm-red-primary);
  font-size: 19px;
  transition: transform var(--pm-fast), color var(--pm-fast);
}

.pm-red .hero-scenario:hover > .ph,
.pm-red .hero-scenario:focus-visible > .ph { color: var(--pm-surface); transform: translateX(4px); }

/* Signals / statistics. */
.pm-red .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 18px 0 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .hero-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-height: 80px;
  padding: 18px 22px;
  background: rgba(255, 253, 252, .52);
  border: 0;
  border-right: 1px solid var(--pm-line);
}

.pm-red .hero-metric:last-child { border-right: 0; }

.pm-red .hero-metric:nth-child(2) { color: var(--pm-surface); background: var(--pm-red-deep); }
.pm-red .hero-metric:nth-child(2) .hero-metric-label { color: #ead6d3; }

.pm-red .hero-metric-value {
  color: inherit;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.05em;
}

.pm-red .hero-metric-label {
  color: #6d585c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Stories: image-led editorial strip. */
.pm-red .success-stories { margin-top: clamp(46px, 6vw, 78px); }

.pm-red .success-stories-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 30px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pm-line-strong);
}

.pm-red .success-stories-head h2 { margin: 0; }
.pm-red .success-stories-sub { max-width: 450px; justify-self: end; color: #715d61; font-size: 13px; }

.pm-red .success-stories-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.pm-red .success-story-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--pm-ink);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-top: 3px solid var(--pm-found);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
  text-decoration: none;
  transform: none;
  transition: border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}

.pm-red .success-story-card:hover,
.pm-red .success-story-card:focus-visible {
  border-color: var(--pm-line-strong);
  border-top-color: var(--pm-found);
  box-shadow: var(--pm-shadow-md);
  transform: translateY(-1px);
}

.pm-red .success-story-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--pm-r-lg) - 1px) calc(var(--pm-r-lg) - 1px) 0 0;
}

.pm-red .success-story-media img {
  transition: filter var(--pm-medium);
}

.pm-red .success-story-card:hover .success-story-media img { filter: saturate(1.06); }

.pm-red .success-story-media--empty {
  display: grid;
  place-items: center;
}

.pm-red .success-story-media-placeholder {
  color: var(--pm-red-muted);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 250;
  opacity: .58;
}

.pm-red .success-story-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: var(--pm-surface);
  background: var(--pm-found);
  border: 0;
  border-radius: var(--pm-r-xs);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pm-red .success-story-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 96px;
  padding: 16px 17px 18px;
  border-top: 0;
}

.pm-red .success-story-title {
  display: -webkit-box;
  min-height: 2.65em;
  overflow: hidden;
  color: var(--pm-ink-deep);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-red .success-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #766368;
  font-size: 11px;
}

.pm-red .success-story-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-red .success-story-meta time { flex: 0 0 auto; }

/* Map: dark instrument frame with Petmetka markers. */
.pm-red #map-section > .card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .32fr) minmax(0, 1fr);
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  color: var(--pm-surface);
  background: var(--pm-ink-deep) !important;
  border: 1px solid var(--pm-ink-deep);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-md);
}

.pm-red .map-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 253, 252, .16);
}

.pm-red .map-section-head h2 { margin: 0 0 10px; color: var(--pm-surface); font-size: clamp(1.4rem, 2.3vw, 2rem); }
.pm-red .map-section-sub { color: #cbb8b5; font-size: 13px; line-height: 1.55; }

.pm-red .map-active-badge {
  padding: 7px 9px;
  color: var(--pm-surface);
  background: transparent;
  border: 1px solid var(--pm-red-muted);
  border-radius: var(--pm-r-xs);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: normal;
}

.pm-red .pm-map-canvas,
.pm-red #city-activity-ymap {
  width: 100%;
  height: 480px;
  min-height: 480px;
  overflow: hidden;
  background: #ded4cf;
}

.pm-red .map-empty-hint {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 36px;
  color: #d5c4c1;
  background: #2d2022;
}

.pm-red [data-map-provider="yandex"] { position: relative; }

.pm-red .pm-map-unavailable {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 28px;
  color: var(--pm-wine);
  background: var(--pm-blush);
  text-align: center;
}

.pm-red .pm-map-unavailable .ph { font-size: 30px; }

.pm-red .pm-ymap-balloon {
  display: grid;
  gap: 7px;
  min-width: 180px;
  color: var(--pm-ink);
  font: 13px/1.4 "Manrope", sans-serif;
}

.pm-red .pm-ymap-balloon strong { color: var(--pm-wine); font-size: 15px; }
.pm-red .pm-ymap-balloon a { color: var(--pm-red-primary); font-weight: 700; text-decoration: underline; }

/* City command strip. */
.pm-red .city-search-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr);
  align-items: end;
  gap: 30px;
  padding: 24px 26px;
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .city-selected-bar,
.pm-red .city-geo-banner { grid-column: 1 / -1; }

.pm-red .city-selected-bar,
.pm-red .city-geo-banner {
  color: var(--pm-ink);
  background: #faf4f1;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-md);
}

.pm-red .city-selected-bar a { color: var(--pm-red-primary); }
.pm-red .city-selected-bar__change { color: var(--pm-wine); border-radius: var(--pm-r-xs); }

.pm-red .city-section-label {
  align-self: center;
  color: var(--pm-wine);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pm-red :where(
  .city-search-card,
  .form-card,
  .wizard-card,
  .listing-detail,
  .legal-page,
  .checkout-shell,
  .pm-checkout,
  .order-grid,
  .list-stack,
  .payment-status-private,
  .service-artifact-access,
  .resume-state-card
) input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):not([type="file"]),
.pm-red :where(
  .city-search-card,
  .form-card,
  .wizard-card,
  .listing-detail,
  .legal-page,
  .checkout-shell,
  .pm-checkout,
  .order-grid,
  .list-stack,
  .payment-status-private,
  .service-artifact-access,
  .resume-state-card
) :is(select, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  color: var(--pm-ink-deep);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-strong);
  border-radius: 13px;
  font-family: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(58, 12, 21, .025);
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), box-shadow var(--pm-fast);
}

.pm-red :where(
  .city-search-card,
  .form-card,
  .wizard-card,
  .listing-detail,
  .legal-page,
  .checkout-shell,
  .pm-checkout,
  .order-grid,
  .list-stack,
  .payment-status-private,
  .service-artifact-access,
  .resume-state-card
) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  background: #fff;
  border-color: var(--pm-red-primary);
  box-shadow: 0 0 0 4px rgba(152, 38, 58, .13) !important;
}

.pm-red :where(.form-card, .wizard-card, .listing-detail, .order-grid, .list-stack) input[type="file"] {
  min-height: 52px;
  padding: 9px 12px;
  color: var(--pm-text-muted);
  background: var(--pm-surface);
  border: 1px dashed var(--pm-line-strong);
  border-radius: 13px;
}

.pm-red :where(.city-search-card, .form-card, .wizard-card, .listing-detail, .pm-checkout, .checkout-shell) :where(input, textarea)::placeholder { color: var(--pm-text-muted); opacity: 1; }

.pm-red #city-suggestions .suggestions-list,
.pm-red .city-picker-suggestions .suggestions-list {
  overflow: auto;
  color: var(--pm-ink);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-strong);
  border-radius: var(--pm-r-md);
  box-shadow: var(--pm-shadow-md);
}

.pm-red #city-suggestions { position: relative; width: 100%; }
.pm-red #city-suggestions .suggestions-list {
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 250px;
  padding: 5px;
}

.pm-red .city-picker-suggestions {
  position: relative;
  z-index: 40;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pm-red .city-picker-suggestions .suggestions-list {
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  z-index: 41;
  max-height: 260px;
  padding: 5px;
}

.pm-red .city-picker-suggestions .suggestion-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--pm-ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
}

.pm-red .city-picker-suggestions .suggestion-item:hover,
.pm-red .city-picker-suggestions .suggestion-item:focus {
  color: var(--pm-surface);
  background: var(--pm-red-primary);
}

.pm-red .city-geo-banner,
.pm-red .city-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.pm-red .city-geo-banner__actions { display: flex; gap: 8px; }
.pm-red .city-selected-bar__change { margin-left: auto; }

.pm-red #city-suggestions .suggestion-item { color: var(--pm-ink); border-radius: 0; }
.pm-red #city-suggestions .suggestion-item:hover { color: var(--pm-surface); background: var(--pm-red-primary); }

/* Section headings read as editorial folios. */
.pm-red .page-header {
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pm-line-strong);
}

.pm-red .page-header h1,
.pm-red .page-header h2 { margin-bottom: 5px; }
.pm-red .page-meta { color: #79666a; font-size: 13px; }
.pm-red .page-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--pm-wine);
  font-weight: 750;
}

/* Listing cards: compact premium surfaces with stable photo geometry. */
.pm-red .listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
}

.pm-red .listing-grid > .listing-cell {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--pm-ink);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
  transition: border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}

.pm-red .listing-grid > .listing-cell::before {
  content: none;
}

.pm-red .listing-grid > .listing-cell.hover-lift:hover {
  border-color: rgba(152, 38, 58, .34);
  box-shadow: var(--pm-shadow-md);
  transform: translateY(-1px);
}

.pm-red .listing-grid > .listing-cell:focus-within { border-color: var(--pm-red-primary); }

.pm-red .listing-grid .listing-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: var(--pm-surface);
  border: 0;
  border-radius: calc(var(--pm-r-lg) - 1px) calc(var(--pm-r-lg) - 1px) 0 0;
  box-shadow: none;
  text-decoration: none;
}

.pm-red .listing-media {
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--pm-r-lg) - 1px) calc(var(--pm-r-lg) - 1px) 0 0;
}

.pm-red .listing-media img {
  transition: filter var(--pm-medium);
}

.pm-red .listing-card:hover .listing-media img { filter: saturate(1.06); }

.pm-red .listing-media--empty {
  display: grid;
  place-items: center;
  background: #e5ebe6 !important;
}

.pm-red .listing-media--empty::before {
  content: "M";
  color: #66776d;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 250;
  letter-spacing: -.08em;
  opacity: .62;
}

.pm-red .listing-tile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  padding: 13px 14px 10px;
}

.pm-red .listing-tile-type {
  grid-column: 1;
  align-self: center;
  padding: 0;
  color: var(--pm-red-primary);
  background: transparent !important;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pm-red .listing-tile-type::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: currentColor;
  border-radius: 50%;
  vertical-align: 1px;
}

.pm-red .listing-tile-type--lost { color: var(--pm-red-primary); }
.pm-red .listing-tile-type--found { color: var(--pm-found); }
.pm-red .listing-tile-type--sighted,
.pm-red .listing-tile-type--seen { color: var(--pm-sighted); }

.pm-red .listing-tile-title {
  grid-column: 1 / -1;
  min-height: 2.6em;
  color: var(--pm-ink-deep);
  font-size: 14px;
  font-weight: 690;
  line-height: 1.3;
  letter-spacing: -.012em;
}

.pm-red .listing-tile-meta {
  grid-column: 1 / -1;
  color: #766368;
  font-size: 11px;
  line-height: 1.4;
}

.pm-red .listing-actions {
  display: flex;
  gap: 5px;
  min-height: 52px;
  padding: 5px 8px 7px;
  background: var(--pm-surface);
  border: 0;
  border-top: 1px solid var(--pm-line);
}

.pm-red .tile-action,
.pm-red .share-trigger {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  color: #735f63;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 11px;
  font-family: inherit;
}

.pm-red .tile-action:hover,
.pm-red .tile-action:focus-visible,
.pm-red .tile-action[aria-expanded="true"],
.pm-red .share-trigger:hover,
.pm-red .share-trigger:focus-visible {
  color: var(--pm-surface);
  background: var(--pm-red-primary);
  border-color: var(--pm-red-primary);
}

.pm-red .tile-action-icon { font-size: 15px; }
.pm-red .tile-action-label { font-size: 10px; }

.pm-red .share-popover {
  color: var(--pm-ink);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-strong);
  border-radius: var(--pm-r-sm);
  box-shadow: var(--pm-shadow);
}

.pm-red .share-popover-item { border-radius: var(--pm-r-xs); }
.pm-red .share-popover-item:hover { color: var(--pm-surface); background: var(--pm-red-primary); }

.pm-red .home-recent-more {
  margin-top: 22px !important;
  padding-top: 14px;
  border-top: 1px solid var(--pm-line);
}

.pm-red .home-recent-more-label { color: var(--pm-wine) !important; font-size: 12px !important; }
.pm-red .home-recent-pages { min-width: 0; max-width: 100%; box-sizing: border-box; }
.pm-red .home-recent-pages a,
.pm-red .recent-pagination a,
.pm-red .recent-page-current {
  min-width: 44px;
  height: 44px;
  color: var(--pm-wine) !important;
  background: transparent !important;
  border: 1px solid var(--pm-line-strong) !important;
  border-radius: 12px !important;
  box-shadow: var(--pm-shadow-xs) !important;
}

.pm-red .home-recent-pages a:hover,
.pm-red .recent-pagination a:hover { color: var(--pm-surface) !important; background: var(--pm-red-primary) !important; }
.pm-red .recent-page-current { color: var(--pm-surface) !important; background: var(--pm-wine) !important; }

/* Steps: one numbered editorial sequence. */
.pm-red .home-steps {
  position: relative;
  margin: clamp(56px, 7vw, 94px) 0;
  padding: clamp(24px, 3vw, 34px);
  overflow: visible;
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .home-steps-head {
  max-width: 660px;
  margin: 0 0 28px;
}

.pm-red .home-steps-title { margin: 0 0 8px; color: var(--pm-ink-deep); font-size: clamp(1.65rem, 3vw, 2.6rem); }
.pm-red .home-steps-subtitle { color: #6d585c; }

.pm-red .home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: pm-step;
  border: 0;
}

.pm-red .home-step-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 9px 13px;
  min-height: 178px;
  padding: 22px 20px;
  color: var(--pm-ink);
  background: var(--pm-ivory) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-md);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  counter-increment: pm-step;
  transform: none;
}

.pm-red .home-step-card:not(:first-child) { padding-left: 20px; }

.pm-red .home-step-card::before {
  content: "0" counter(pm-step);
  position: absolute;
  top: 15px;
  right: 16px;
  padding: 4px 7px;
  color: var(--pm-gold-deep);
  background: var(--pm-champagne);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
}

.pm-red .home-step-icon {
  grid-row: 1 / 3;
  align-self: start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--pm-surface);
  background: var(--pm-red-primary);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--pm-shadow-xs);
  font-size: 20px;
}

.pm-red .home-step-title { margin: 0; color: var(--pm-ink-deep); font-size: 17px; font-weight: 720; }
.pm-red .home-step-text { margin: 0; color: #665155; font-size: 13px; line-height: 1.5; }

/* Guides: compact index rows, not repeated cards. */
.pm-red .city-help-hub,
.pm-red .city-faq-card,
.pm-red .city-related-guides {
  margin: clamp(48px, 6vw, 78px) 0 24px;
  padding: 28px;
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .city-help-head {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr);
  gap: 26px;
  align-items: end;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pm-line);
}

.pm-red .city-help-eyebrow { grid-row: 1 / 3; align-self: start; }
.pm-red .city-help-title { margin: 0 0 6px; color: var(--pm-ink-deep); font-size: clamp(1.55rem, 2.8vw, 2.5rem); }
.pm-red .city-help-subtitle { color: #715d61; font-size: 13px; }

.pm-red .city-guide-grid,
.pm-red .city-guide-grid--related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  border-top: 0;
}

.pm-red .city-guide-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 92px;
  padding: 15px 16px;
  color: var(--pm-ink);
  background: var(--pm-ivory) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-md);
  box-shadow: inset 0 1px rgba(255,255,255,.85);
  transform: none;
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}

.pm-red .city-guide-card:nth-child(odd) { border-right: 1px solid var(--pm-line); }
.pm-red .city-guide-card:nth-child(even) { padding-left: 16px; }

.pm-red .city-guide-card:hover,
.pm-red .city-guide-card:focus-visible {
  color: var(--pm-wine);
  background: var(--pm-surface) !important;
  border-color: rgba(152, 38, 58, .32);
  box-shadow: var(--pm-shadow-sm);
  transform: translateY(-1px);
}

.pm-red .city-guide-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--pm-red-primary);
  background: transparent;
  border: 1px solid var(--pm-red-muted);
  border-radius: var(--pm-r-xs);
  font-size: 17px;
}

.pm-red .city-guide-card-title { color: inherit; font-size: 14px; font-weight: 710; }
.pm-red .city-guide-card-desc { color: #766368; font-size: 11px; line-height: 1.42; }
.pm-red .city-guide-arrow { color: var(--pm-red-primary); }
.pm-red .home-guides-actions { margin-top: 18px; }

/* Footer: one calm, deep-wine field with generous safe spacing. */
.pm-red footer {
  margin-top: 0;
  padding: 54px 0 max(28px, env(safe-area-inset-bottom));
  color: #d8c4c2;
  background: var(--pm-wine);
  border: 0;
  border-top: 1px solid rgba(224, 197, 140, .48);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.pm-red .pm-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .9fr 1.15fr;
  gap: 38px 34px;
}

.pm-red .pm-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pm-red footer .brand.brand--logo .brand-logo { color: var(--pm-wine); background: var(--pm-surface) !important; border-color: var(--pm-surface); }
.pm-red footer .brand.brand--logo .brand-text { color: var(--pm-surface); }
.pm-red .footer-tagline { max-width: 290px; color: #e1d0cd; font-size: 14px; line-height: 1.65; }

.pm-red .pm-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  color: #d8c4c2;
  font-size: 13px;
}

.pm-red .pm-footer-nav > span {
  margin-bottom: 6px;
  color: #f3c5c0;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pm-red .pm-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f0e3e1;
  text-decoration: none;
  transition: color var(--pm-fast), transform var(--pm-instant);
}
.pm-red .pm-footer-nav a:hover { color: #fff; text-decoration: underline; transform: translateX(1px); }

.pm-red .pm-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding-top: 20px;
  color: #bfa6a5;
  border-top: 1px solid rgba(255, 253, 252, .18);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Catalogue, cities and filter surfaces. */
.pm-red .city-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  overflow: hidden;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .city-filter-group {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-right: 1px solid var(--pm-line);
}

.pm-red .city-filter-group:last-child { border-right: 0; }

.pm-red .city-filter-label {
  min-width: 54px;
  color: #766368;
  font-size: 10px;
  font-weight: 730;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pm-red .city-filter-chip {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--pm-wine);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
}

.pm-red .city-filter-chip:hover {
  color: var(--pm-red-primary);
  background: #fbf1ef;
  border-color: var(--pm-blush);
}

.pm-red .city-filter-chip.is-active {
  color: var(--pm-surface);
  background: var(--pm-wine);
  border-color: var(--pm-wine);
  box-shadow: inset 0 1px rgba(255,255,255,.18), var(--pm-shadow-xs);
}

.pm-red .city-results-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin: -8px 0 18px;
  color: #766368;
  font-size: 13px;
}

.pm-red .city-results-summary strong {
  color: var(--pm-wine);
  font-size: 14px;
}

.pm-red .city-results-empty { grid-column: 1 / -1; }

.pm-red .city-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 8px;
}

.pm-red .city-pagination a,
.pm-red .city-page-current,
.pm-red .city-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 11px;
  color: var(--pm-wine);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-strong);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pm-red .city-pagination a:hover,
.pm-red .city-pagination a:focus-visible {
  color: var(--pm-surface);
  background: var(--pm-red-primary);
  border-color: var(--pm-red-primary);
}

.pm-red .city-page-current {
  color: var(--pm-surface);
  background: var(--pm-wine);
  border-color: var(--pm-wine);
}

.pm-red .city-page-ellipsis {
  min-width: 24px;
  padding-inline: 4px;
  background: transparent;
  border-color: transparent;
}

.pm-red .city-page-arrow { min-width: 118px !important; }

.pm-red .city-page-status {
  margin: 0 0 24px;
  color: #766368;
  font-size: 12px;
  text-align: center;
}

.pm-red .city-map-panel {
  margin: 0 0 30px;
  overflow: hidden;
  background: var(--pm-ink-deep) !important;
  border: 1px solid var(--pm-ink-deep);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-md);
}

.pm-red .city-map-panel-media {
  padding: 0;
  background: #ded4cf;
  border-bottom: 1px solid rgba(255, 253, 252, .16);
}

.pm-red .city-map-panel-caption {
  margin: 0;
  padding: 13px 18px;
  color: var(--pm-surface);
  background: var(--pm-wine);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pm-red .city-map-panel-media #city-map {
  height: 390px;
  background: #ded4cf;
  border: 0;
  border-radius: 0;
}

.pm-red .city-map-panel .city-map-info-card,
.pm-red .city-map-info-card {
  margin: 0;
  padding: 22px 24px;
  color: var(--pm-surface);
  background: var(--pm-ink-deep) !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pm-red .city-map-info-title { color: var(--pm-surface); font-size: 18px; }
.pm-red .city-map-info-text { color: #ccb9b7; font-size: 13px; }
.pm-red .city-map-info-pill {
  color: #f2d9d6;
  background: transparent;
  border: 1px solid var(--pm-red-muted);
  border-radius: var(--pm-r-xs);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pm-red .pinned-listings,
.pm-red .featured-full-body { color: var(--pm-ink); }

.pm-red .pinned-listings-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pm-line-strong);
  color: var(--pm-wine);
}

.pm-red .pinned-card,
.pm-red .mini-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .pinned-badge,
.pm-red .featured-full-badge,
.pm-red .featured-full-ribbon {
  color: var(--pm-red-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.pm-red .listing-grid > .listing-cell--featured-full {
  margin: 8px 0 16px;
  overflow: hidden;
  background: #faefec !important;
  border: 1px solid rgba(169, 131, 63, .46);
  border-top: 4px solid var(--pm-gold);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-md);
}

.pm-red .listing-grid .listing-card--featured-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.pm-red .featured-full-media {
  position: relative;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 284px;
  aspect-ratio: auto;
  background: transparent !important;
  border-radius: 0;
}

.pm-red .featured-full-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
}

.pm-red .featured-full-media-empty { background: #e5ebe6; }
.pm-red .featured-full-media-empty::before { content: "M"; color: #66776d; font-family: inherit; font-weight: 250; }
.pm-red .featured-full-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 46px);
  border-left: 1px solid var(--pm-red-muted);
}

.pm-red .featured-full-ribbon {
  padding-bottom: 9px;
  border-bottom: 2px solid var(--pm-red-primary);
}

.pm-red .featured-full-badge {
  padding: 5px 8px;
  color: var(--pm-red-deep);
  background: var(--pm-blush);
  border: 1px solid var(--pm-red-muted);
  border-radius: 999px;
}

.pm-red .featured-full-badge--found { color: var(--pm-found); border-color: var(--pm-found); }
.pm-red .featured-full-badge--sighted,
.pm-red .featured-full-badge--seen { color: var(--pm-sighted); border-color: var(--pm-sighted); }

.pm-red .featured-full-title { color: var(--pm-ink-deep); font-size: clamp(22px, 2.5vw, 31px); }
.pm-red .featured-full-meta { color: #695357; }
.pm-red .featured-full-desc { color: #463538; }
.pm-red .featured-full-note { color: #766368; }
.pm-red .featured-full-open {
  color: var(--pm-surface);
  background: var(--pm-red-primary);
  border-radius: var(--pm-r-sm);
  box-shadow: var(--pm-shadow-cta);
}
.pm-red .listing-cell--featured-full:hover .featured-full-open { background: var(--pm-wine); }

.pm-red .cities-summary,
.pm-red .cities-alpha,
.pm-red .cities-letter {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .cities-summary {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--pm-line);
}

.pm-red .cities-summary > div {
  display: grid;
  gap: 3px;
  padding: 17px 18px;
  border-right: 1px solid var(--pm-line);
}

.pm-red .cities-summary > div:last-child { border-right: 0; }
.pm-red .cities-summary strong { color: var(--pm-red-primary); font-size: 24px; letter-spacing: -.05em; }

.pm-red .cities-alpha {
  display: flex !important;
  gap: 5px !important;
  padding: 12px !important;
  border: 1px solid var(--pm-line);
}

.pm-red .cities-alpha .btn { min-width: 44px !important; padding: 8px !important; }

.pm-red .cities-letter {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 14px;
  padding: 22px !important;
  border: 1px solid var(--pm-line) !important;
}

.pm-red .cities-letter h2 {
  margin: 0 !important;
  color: var(--pm-red-primary);
  font-size: 30px !important;
  line-height: 1;
}

.pm-red .cities-letter ul { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pm-red .cities-letter a { color: var(--pm-ink); }
.pm-red .cities-letter a:hover { color: var(--pm-red-primary); text-decoration: underline !important; }
.pm-red .badge { color: var(--pm-red-primary); background: var(--pm-blush); border-radius: var(--pm-r-xs); }

/* Listing detail: editorial dossier with a wide cinematic gallery. */
.pm-red .listing-detail {
  width: min(var(--pm-listing-detail-max-width), 100%);
  margin-inline: auto;
  padding: clamp(20px, 3.4vw, 40px);
  gap: 22px;
  color: var(--pm-ink);
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-md);
}

.pm-red .listing-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pm-line-strong);
}

.pm-red .listing-detail-header h1 {
  max-width: 760px;
  color: var(--pm-ink-deep);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
}

.pm-red .listing-meta-line { justify-content: flex-end; color: #79666a; font-size: 12px; }
.pm-red .listing-detail .listing-tile-type { font-size: 10px; }

.pm-red .status-badge {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pm-red .status-badge--resolved { color: var(--pm-found); background: var(--pm-found-soft); }
.pm-red .status-badge--searching { color: var(--pm-red-primary); background: #fae9e7; }
.pm-red .status-badge--archived { color: #4f5f56; background: #e5ebe6; }
.pm-red .listing-detail .city-link { color: var(--pm-wine); border-bottom: 1px solid var(--pm-red-muted); }

.pm-red .media-gallery {
  width: 100%;
  max-width: 720px;
  gap: 10px;
  margin: 0 auto;
}

.pm-red .media-hero {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .media-track:focus-visible {
  outline: 3px solid var(--pm-red-primary);
  outline-offset: -4px;
}

.pm-red .media-slide { background: transparent; }
.pm-red .media-slide img {
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
}

.pm-red .media-gallery--empty .media-hero--empty {
  display: grid;
  place-items: center;
  background: #e5ebe6;
}

.pm-red .detail-media-placeholder {
  color: #66776d;
  font-size: clamp(36px, 8vw, 68px);
  font-weight: 780;
  line-height: 1;
}

.pm-red .media-count,
.pm-red .media-expand {
  color: var(--pm-surface);
  background: rgba(27, 17, 19, .88);
  border: 1px solid rgba(255, 253, 252, .28);
  border-radius: 12px;
  backdrop-filter: none;
  box-shadow: none;
}

.pm-red .media-expand { width: 44px; height: 44px; }
.pm-red .media-dots { display: flex; }
.pm-red .media-dot { height: 3px; border-radius: 0; background: var(--pm-line); }
.pm-red .media-dot.is-active { width: 26px; background: var(--pm-red-primary); }

.pm-red .media-thumbs { gap: 8px; padding: 0 0 2px; }
.pm-red .media-thumb {
  flex-basis: 84px;
  height: 84px;
  background: #e5ebe6;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: none;
}
.pm-red .media-thumb.is-active { border-color: var(--pm-red-primary); box-shadow: inset 0 -3px var(--pm-red-primary); }

.pm-red .listing-description {
  padding: 20px 22px;
  color: #463538;
  background: var(--pm-surface-muted);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-md);
  font-size: 16px;
  line-height: 1.7;
}

.pm-red .listing-address,
.pm-red .listing-contacts {
  padding: 14px 0;
  color: var(--pm-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--pm-line);
  border-radius: 0;
}

.pm-red .listing-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pm-red .contact-reveal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--pm-surface);
  background: var(--pm-red-primary);
  border: 1px solid var(--pm-red-primary);
  border-radius: 14px;
  font: inherit;
  font-weight: 680;
  box-shadow: var(--pm-shadow-cta);
  transition: background-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}
.pm-red .contact-reveal-btn:hover { background: var(--pm-wine); box-shadow: var(--pm-shadow-md); transform: translateY(-1px); }
.pm-red .contact-reveal-btn:active { transform: scale(.988); }
.pm-red .contact-reveal-btn:disabled { cursor: progress; opacity: .84; }
.pm-red .listing-contacts.is-loading .contact-reveal-btn::after {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 253, 249, .45);
  border-top-color: var(--pm-surface);
  border-radius: 50%;
  content: "";
  animation: pm-contact-spin .72s linear infinite;
}
.pm-red .contact-revealed {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: var(--pm-ink);
}
.pm-red .contact-revealed[hidden],
.pm-red .contact-error[hidden] { display: none; }
.pm-red .listing-contacts.is-revealed .contact-revealed {
  animation: pm-contact-enter 180ms cubic-bezier(.22, 1, .36, 1) both;
}
.pm-red .contact-revealed-name { color: var(--pm-wine); }
.pm-red .contact-revealed-phone {
  color: var(--pm-red-primary);
  font-weight: 720;
  overflow-wrap: break-word;
  text-underline-offset: 3px;
}
.pm-red .contact-error {
  color: var(--pm-error-text, #8f1d2d);
  font-size: 14px;
}

@keyframes pm-contact-enter {
  from { opacity: .72; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pm-contact-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pm-red .listing-contacts.is-revealed .contact-revealed,
  .pm-red .listing-contacts.is-loading .contact-reveal-btn::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}

.pm-red .listing-minimap-wrap { padding-top: 18px; border-top: 1px solid var(--pm-line); }
.pm-red .listing-minimap-head strong { color: var(--pm-wine); }
.pm-red #listing-map,
.pm-red .listing-map {
  height: 340px !important;
  background: #ded4cf !important;
  border: 1px solid var(--pm-line-strong) !important;
  border-radius: var(--pm-r-lg) !important;
}

.pm-red .social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--pm-ink-deep);
  border-bottom: 1px solid var(--pm-line);
  border-radius: 0;
}

.pm-red .social-actions-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pm-red .social-share-wrap { display: inline-flex; min-width: 0; }

.pm-red .social-row .social-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--pm-wine);
  background: transparent;
  border: 1px solid var(--pm-line);
  border-radius: 12px;
  box-shadow: var(--pm-shadow-xs);
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
  line-height: 1;
}

.pm-red .social-row .social-action .ph { flex: 0 0 auto; font-size: 19px; }
.pm-red .social-row .social-count { position: static; min-width: 1ch; font-variant-numeric: tabular-nums; }
.pm-red .social-action-label { font-size: 12px; font-weight: 650; white-space: nowrap; }
.pm-red .social-row .social-action:hover,
.pm-red .social-row .social-action:focus-visible { color: var(--pm-surface); background: var(--pm-red-primary); border-color: var(--pm-red-primary); }
.pm-red .social-row .social-action:focus-visible { outline: 3px solid var(--pm-focus-ring); outline-offset: 2px; }
.pm-red .social-row .social-action:active { transform: translateY(1px); }
.pm-red .social-row .social-action:disabled { cursor: not-allowed; opacity: .5; }

.pm-red .social-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 44px;
  margin-left: auto;
  padding: 0 8px;
  color: #766368;
  font-variant-numeric: tabular-nums;
}

.pm-red #comments.comments-cta,
.pm-red .listing-detail #comments.comments-cta {
  padding: 24px 0 0;
  color: var(--pm-ink) !important;
  background: transparent !important;
  border: 0;
  border-top: 1px solid var(--pm-line-strong);
  border-radius: 0;
  box-shadow: none;
}
.pm-red #comments.comments-cta * { color: inherit; }
.pm-red #comments.comments-cta .comments-title { color: var(--pm-ink-deep); }
.pm-red #comments.comments-cta .comment-item { background: #faf4f1; border: 0; border-left: 2px solid var(--pm-blush); border-radius: 0; }
.pm-red #comments.comments-cta .avatar { color: var(--pm-surface); background: var(--pm-red-muted); }

body.pm-red #comments.comments-cta,
body.pm-red .listing-detail #comments.comments-cta {
  padding: 24px 0 0 !important;
  color: var(--pm-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--pm-line-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.pm-red #comments.comments-cta .comments-title,
body.pm-red #comments.comments-cta .comment-meta strong,
body.pm-red #comments.comments-cta a,
body.pm-red #comments.comments-cta a:visited { color: var(--pm-wine) !important; }

body.pm-red #comments.comments-cta .comment-item {
  background: var(--pm-surface-muted) !important;
  border: 1px solid var(--pm-line) !important;
  border-radius: var(--pm-r-md) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.8) !important;
}

body.pm-red #comments.comments-cta .comment-form textarea {
  color: var(--pm-ink) !important;
  background: var(--pm-surface) !important;
  border-color: var(--pm-line-strong) !important;
}

body.pm-red #comments.comments-cta .btn-primary {
  color: var(--pm-surface) !important;
  background: var(--pm-red-primary) !important;
  border-color: var(--pm-red-primary) !important;
}

.pm-red .other-listings {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--pm-ink-deep);
}
.pm-red .other-listings-title { color: var(--pm-ink-deep); }
.pm-red .other-listings-row { gap: 10px; }
.pm-red .other-listing-card {
  overflow: hidden;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}
.pm-red .other-listing-media { border-radius: calc(var(--pm-r-lg) - 1px) calc(var(--pm-r-lg) - 1px) 0 0; }
.pm-red .other-listing-media--empty::before { content: "M"; color: #66776d; font-family: inherit; }

/* Desktop detail tail: keep navigation and recommendations on the same
   canonical outer rail as the 980px listing card.  Comments and the VK CTA
   already share the card's inner grid rail. */
@media (min-width: 821px) {
  .pm-red .listing-detail ~ nav.seo-cross-links,
  .pm-red .listing-detail ~ .other-listings {
    width: min(var(--pm-listing-detail-max-width), 100%);
    margin-inline: auto;
  }

  .pm-red .listing-detail ~ nav.seo-cross-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .pm-red .listing-detail ~ nav.seo-cross-links .btn {
    max-width: 100%;
    overflow-wrap: break-word;
    text-align: center;
  }
}

/* Shared listing-card media primitive.
   Geometry and fill mechanics intentionally match the effective Petsfound
   card implementation; Petmetka keeps its own card chrome and placeholders. */
.pm-red .listing-media,
.pm-red .success-story-media,
.pm-red .other-listing-media {
  width: 100%;
  overflow: hidden;
  background: transparent !important;
}

.pm-red .listing-media,
.pm-red .other-listing-media { aspect-ratio: 1 / 1; }

.pm-red .success-story-media { aspect-ratio: 4 / 3; }

.pm-red .listing-media > img,
.pm-red .success-story-media > img,
.pm-red .other-listing-media > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
}

.pm-red .listing-media--empty,
.pm-red .success-story-media--empty,
.pm-red .other-listing-media--empty {
  background: #e5ebe6 !important;
}

.pm-red .lightbox { background: rgba(27, 17, 19, .97); }
.pm-red .lightbox-close,
.pm-red .lightbox-nav {
  color: var(--pm-surface);
  background: var(--pm-wine);
  border: 1px solid rgba(255, 253, 252, .35);
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}

/* Forms and creation preview. */
.pm-red .form-card,
.pm-red .wizard-card {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 42px);
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-top: 5px solid var(--pm-wine);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-md);
}

.pm-red .form-card { max-width: 620px; }

.pm-red .wizard-stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  margin-bottom: 34px;
}

.pm-red .wizard-step-dot { color: #766368; font-size: 11px; }
.pm-red .wizard-step-dot > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--pm-wine);
  background: transparent;
  border: 1px solid var(--pm-line-strong);
  border-radius: 12px;
}
.pm-red .wizard-step-dot.is-active > span,
.pm-red .wizard-step-dot.is-done > span { color: var(--pm-surface); background: var(--pm-red-primary); border-color: var(--pm-red-primary); }
.pm-red .wizard-step-line { height: 1px; background: var(--pm-line); }

.pm-red .wizard-title { color: var(--pm-ink-deep); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pm-red .wizard-sub { color: #715d61; }
.pm-red .wizard-group { padding-top: 19px; border-top: 1px solid var(--pm-line); }
.pm-red .wizard-label,
.pm-red .field-label { color: var(--pm-wine); font-size: 12px; font-weight: 720; letter-spacing: .03em; }

.pm-red .tile-grid { gap: 8px; }
.pm-red .tile {
  min-height: 78px;
  padding: 15px;
  color: var(--pm-ink);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-strong);
  border-radius: var(--pm-r-md);
  box-shadow: var(--pm-shadow-xs);
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}
.pm-red .tile:hover { color: var(--pm-red-primary); background: var(--pm-ivory); border-color: var(--pm-red-muted); box-shadow: var(--pm-shadow-sm); transform: translateY(-1px); }
.pm-red .tile.is-selected {
  color: var(--pm-surface);
  background: var(--pm-wine);
  border-color: var(--pm-wine);
  box-shadow: inset 4px 0 var(--pm-gold), var(--pm-shadow-sm);
}
.pm-red .tile.is-selected::after { color: var(--pm-surface); background: var(--pm-red-primary); border-radius: var(--pm-r-xs); }
.pm-red .tile-icon,
.pm-red .tile-badge { color: var(--pm-red-primary); background: transparent; border: 0; border-radius: 0; }
.pm-red .tile.is-selected :is(.tile-icon, .tile-badge, .tile-label, .tile-desc) { color: var(--pm-surface); }

.pm-red .dropzone {
  background: var(--pm-surface-muted);
  border: 1px dashed var(--pm-red-muted);
  border-radius: var(--pm-r-md);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.pm-red .dropzone:hover { background: #fbefed; border-color: var(--pm-red-primary); }
.pm-red .dropzone-title { color: var(--pm-wine); }

.pm-red .create-map-wrap,
.pm-red #create-map { border-radius: var(--pm-r-md); }
.pm-red #create-map { background: #ded4cf; border-color: var(--pm-line-strong); }
.pm-red .create-map-pin {
  background: var(--pm-red-primary) !important;
  border-color: var(--pm-surface) !important;
  border-radius: var(--pm-r-xs) !important;
  box-shadow: 0 4px 12px rgba(74, 21, 29, .25) !important;
  transform: rotate(45deg);
}

.pm-red #address-suggestions .suggestions-list {
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-strong);
  border-radius: var(--pm-r-md);
  box-shadow: var(--pm-shadow-md);
}
.pm-red #address-suggestions .suggestion-item { color: var(--pm-ink); border-radius: 0; }
.pm-red #address-suggestions .suggestion-item:hover { color: var(--pm-surface); background: var(--pm-red-primary); }

.pm-red .wizard-summary {
  background: #faf4f1;
  border: 1px solid var(--pm-line);
  border-left: 4px solid var(--pm-gold);
  border-radius: var(--pm-r-md);
}
.pm-red .wizard-summary-title { color: var(--pm-wine); }
.pm-red .wizard-nav { padding-top: 18px; border-top: 1px solid var(--pm-line); }

.pm-red .info-card,
.pm-red .creation-preview-notice {
  color: var(--pm-wine);
  background: #f8e8e5 !important;
  border: 1px solid var(--pm-blush);
  border-left: 4px solid var(--pm-gold);
  border-radius: var(--pm-r-md);
}
.pm-red .field-error { color: var(--pm-error); }

/* Articles, legal and SEO pages. */
.pm-red .article-page,
.pm-red .legal-page {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px);
  color: var(--pm-ink);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-sm);
}

.pm-red .article-page > .page-header,
.pm-red .legal-page > .page-header {
  margin-bottom: 30px !important;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--pm-line-strong);
}

.pm-red .article-page > section:not(.guide-cta-card):not(.guide-example-listings):not(.city-faq-card):not(.city-related-guides),
.pm-red .legal-page > section {
  position: relative;
  margin: 28px 0 !important;
  padding-top: 26px;
  border-top: 1px solid var(--pm-line);
}

.pm-red .article-page > section h2,
.pm-red .legal-page h2 { color: var(--pm-wine); }
.pm-red .article-page li::marker,
.pm-red .legal-page li::marker { color: var(--pm-red-primary); }

.pm-red .guide-cta-card {
  padding: 20px 22px;
  background: var(--pm-wine) !important;
  border: 0;
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-md);
}
.pm-red .guide-cta-title { color: var(--pm-surface); }
.pm-red .guide-cta-sub { color: #d8c4c2; }
.pm-red .guide-cta-primary,
.pm-red .guide-cta-secondary {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: none;
}
.pm-red .guide-cta-primary { color: var(--pm-wine); background: var(--pm-surface); }
.pm-red .guide-cta-secondary { color: var(--pm-surface); background: transparent; border: 1px solid var(--pm-red-muted); }

.pm-red .guide-example-listings { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--pm-ink-deep); }
.pm-red .guide-example-heading { color: var(--pm-ink-deep); }
.pm-red .guide-example-grid { gap: 12px; }
.pm-red .guide-example-card {
  overflow: hidden;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}
.pm-red .guide-example-img { aspect-ratio: 4 / 3; background: transparent; border-radius: calc(var(--pm-r-lg) - 1px) calc(var(--pm-r-lg) - 1px) 0 0; }
.pm-red .guide-example-img--empty {
  display: grid;
  place-items: center;
  background: #e5ebe6;
}
.pm-red .guide-example-img--empty::before {
  content: "M";
  color: #66776d;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 250;
  opacity: .62;
}
.pm-red .guide-example-type { color: var(--pm-red-primary); background: transparent; }
.pm-red .guide-example-link { color: var(--pm-red-primary); }

.pm-red .seo-faq,
.pm-red .seo-landings-row,
.pm-red .seo-other-cities,
.pm-red .seo-articles-row,
.pm-red .seo-cross-links {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}
.pm-red .seo-city-link { color: var(--pm-wine); text-decoration: underline; }
.pm-red .seo-city-link { min-width: 44px; padding-inline: 4px; }

.pm-red .city-faq-panel { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--pm-line-strong); }
.pm-red .city-faq-panel-title,
.pm-red .city-related-guides-title { color: var(--pm-ink-deep); }
.pm-red .city-faq-list { gap: 0; }
.pm-red .city-faq-item {
  background: var(--pm-ivory) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-md);
  box-shadow: none;
}
.pm-red .city-faq-list { gap: 10px; }
.pm-red .city-faq-summary { color: var(--pm-ink-deep); padding: 14px 0; }
.pm-red .city-faq-summary::before {
  color: var(--pm-red-primary);
  background: transparent;
  border: 1px solid var(--pm-red-muted);
  border-radius: 10px;
}
.pm-red .city-faq-item[open] .city-faq-summary::before { background: var(--pm-blush); }
.pm-red .city-faq-answer { padding: 0 0 16px 38px; color: #604c50; }

/* Flash, empty, loading and error states. */
.pm-red .flash,
.pm-red .messages .flash {
  color: var(--pm-wine) !important;
  background: #f8e8e5 !important;
  border: 1px solid var(--pm-red-muted) !important;
  border-left: 4px solid var(--pm-gold) !important;
  border-radius: var(--pm-r-md) !important;
  box-shadow: var(--pm-shadow-xs) !important;
}

.pm-red .error-page {
  width: min(720px, 100%);
  margin-inline: auto !important;
  padding: clamp(36px, 7vw, 72px) clamp(22px, 4vw, 44px) !important;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-xl);
  box-shadow: var(--pm-shadow-md);
  text-align: left !important;
}
.pm-red .error-page::before {
  content: "PETMETKA / SYSTEM";
  display: block;
  margin-bottom: 28px;
  padding-bottom: 8px;
  color: var(--pm-red-primary);
  border-bottom: 1px solid var(--pm-gold);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .16em;
}
.pm-red .error-page p { margin-inline: 0 !important; color: #665155 !important; }
.pm-red .error-page h1 { max-width: 600px; }

.pm-red .muted,
.pm-red .row-meta { color: #766368; }

/* Minimum target geometry without turning editorial links into pills. */
.pm-red .pm-footer-nav a,
.pm-red .seo-city-link,
.pm-red .cities-letter a,
.pm-red .article-page a:not(.btn),
.pm-red .legal-page a:not(.btn),
.pm-red .listing-meta-line .city-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pm-red .article-page summary,
.pm-red .legal-page summary,
.pm-red .seo-faq summary { display: flex; align-items: center; min-height: 44px; }

/* Safe disabled product surfaces keep the same brand system. */
.pm-red .payment-status-private,
.pm-red .service-artifact-access,
.pm-red .resume-state-card,
.pm-red .order-grid .card,
.pm-red .package-card {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}

/* --------------------------------------------------------------------------
   Shared public components. These adapters normalize legacy public templates
   without touching Django admin, Yandex Maps DOM or provider-owned controls.
   -------------------------------------------------------------------------- */
.pm-red :where(.form-grid, .field, .form-row) { min-width: 0; }
.pm-red .form-grid { gap: 18px; }
.pm-red .field { gap: 8px; }
.pm-red :where(.field-label, .form-row > label) {
  color: var(--pm-wine);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.4;
}
.pm-red :where(.field-hint, .helptext, .row-meta, .muted) {
  color: var(--pm-text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.pm-red :where(.field-error, .pm-field-error, .errorlist) {
  color: var(--pm-error);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.pm-red .errorlist { margin: 7px 0 0; padding-left: 20px; }

.pm-red main button:not([class]),
.pm-red main input[type="submit"] {
  min-height: 48px;
  padding: 11px 20px;
  color: var(--pm-surface);
  background: var(--pm-red-primary);
  border: 1px solid var(--pm-red-primary);
  border-radius: 14px;
  box-shadow: var(--pm-shadow-cta);
  font: inherit;
  font-weight: 740;
  cursor: pointer;
  transition: color var(--pm-fast), background-color var(--pm-fast), border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant);
}
.pm-red main button:not([class]):hover,
.pm-red main input[type="submit"]:hover {
  background: var(--pm-wine-hover);
  border-color: var(--pm-wine-hover);
  box-shadow: var(--pm-shadow-md);
  transform: translateY(-1px);
}
.pm-red main button:not([class]):active,
.pm-red main input[type="submit"]:active { transform: scale(.988); box-shadow: var(--pm-shadow-xs); }

.pm-red :where(.form-card, .pm-checkout, .checkout-shell, .order-grid, .list-stack, .legal-page)
  input[type="checkbox"],
.pm-red :where(.form-card, .pm-checkout, .checkout-shell, .order-grid, .list-stack, .legal-page)
  input[type="radio"] {
  accent-color: var(--pm-red-primary);
}

.pm-red .city-picker-field input[type="text"] { padding-right: 52px; }
.pm-red .city-picker-clear {
  right: 2px;
  width: 44px;
  height: 44px;
  color: var(--pm-text-muted);
  border-radius: 12px;
}
.pm-red .city-picker-clear:hover { color: var(--pm-wine); background: var(--pm-ivory); }

.pm-red :where(.list-row, .package-card, .order-grid > .card, .resume-state-card) {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  box-shadow: var(--pm-shadow-sm);
}
.pm-red .list-row { transition: border-color var(--pm-fast), box-shadow var(--pm-fast); }
.pm-red .list-row:focus-within { border-color: rgba(152, 38, 58, .36); box-shadow: var(--pm-shadow-md); }
.pm-red .package-price { color: var(--pm-red-primary); font-weight: 780; }
.pm-red .auth-links { align-items: center; gap: 10px; }
.pm-red .auth-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--pm-wine); font-weight: 700; }

/* Legacy checkout/result templates share the same surface language. */
.pm-red :where(.checkout-shell, .payment-status-private, .service-artifact-access) > .card,
.pm-red :where(.checkout-preview-card, .checkout-step, .checkout-option-card, .pp-upsell-card, .pp-story-card) {
  background: var(--pm-surface) !important;
  border-color: var(--pm-line) !important;
  border-radius: var(--pm-r-lg) !important;
  box-shadow: var(--pm-shadow-sm) !important;
}
.pm-red :where(.checkout-option-card, .pp-upsell-card, .pp-story-card) {
  transition: border-color var(--pm-fast), box-shadow var(--pm-fast), transform var(--pm-instant) !important;
}
.pm-red :where(.checkout-option-card, .pp-upsell-card, .pp-story-card):hover {
  border-color: rgba(152, 38, 58, .34) !important;
  box-shadow: var(--pm-shadow-md) !important;
  transform: translateY(-1px) !important;
}
.pm-red :where(.checkout-option-card--recommended, .pp-upsell-card--reco, .pp-upsell-card--prem) {
  border-color: rgba(169, 131, 63, .58) !important;
  box-shadow: 0 0 0 1px rgba(169, 131, 63, .12), var(--pm-shadow-md) !important;
}
.pm-red :where(.checkout-option-rec-badge, .pp-upsell-badge, .badge) {
  color: var(--pm-gold-deep);
  background: var(--pm-champagne);
  border: 1px solid rgba(169, 131, 63, .34);
  border-radius: 999px;
}
.pm-red :where(.checkout-pay-btn, .pp-upsell-cta, .pp-bottom-cta) {
  min-height: 54px;
  color: var(--pm-surface) !important;
  background: var(--pm-red-primary) !important;
  border: 1px solid var(--pm-red-primary) !important;
  border-radius: 15px !important;
  box-shadow: var(--pm-shadow-cta) !important;
}

/* Legacy order selection uses bespoke markup, but now consumes the same
   burgundy/ivory component states without changing any order calculation. */
.pm-red .ux-info-btn {
  width: 44px;
  height: 44px;
  color: var(--pm-wine);
  background: var(--pm-surface);
  border-color: var(--pm-line-strong);
  box-shadow: var(--pm-shadow-xs);
}
.pm-red .ux-info-btn:hover,
.pm-red .ux-info-btn:focus { color: var(--pm-surface); background: var(--pm-wine); }
.pm-red .ux-info-bubble { color: var(--pm-ink); border-color: var(--pm-line); box-shadow: var(--pm-shadow-md); }
.pm-red :where(.ux-eff-note, .checkout-consent-note, .checkout-consents-text, .checkout-service-email-note) { color: var(--pm-text-muted); }
.pm-red :where(.ux-prepay, .resume-banner, .checkout-consents, .checkout-service-email, .checkout-service-note) {
  color: var(--pm-ink);
  background: var(--pm-surface-muted);
  border-color: var(--pm-line);
  box-shadow: var(--pm-shadow-xs);
}
.pm-red .ux-prepay-icon { animation: none; filter: none; }
.pm-red :where(.ux-prepay-title, .resume-banner-title, .checkout-service-title, .checkout-service-includes-title) { color: var(--pm-ink-deep); }
.pm-red :where(.ux-prepay-text, .resume-banner-sub, .checkout-service-description, .checkout-service-list li) { color: var(--pm-text-muted); }
.pm-red .ux-prepay-progress { color: var(--pm-wine); }
.pm-red .checkout-consent { min-height: 44px; color: var(--pm-ink); }
.pm-red .checkout-consents input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  accent-color: var(--pm-red-primary);
}
.pm-red .checkout-consent--optional { border-top-color: var(--pm-line); }
.pm-red .checkout-consent-text { overflow-wrap: break-word; word-break: normal; }
.pm-red .checkout-consents-text a { color: var(--pm-wine); }
.pm-red .resume-state-card h1,
.pm-red .resume-state-card p { color: var(--pm-ink-deep); }
.pm-red .checkout-service-card {
  background: var(--pm-surface) !important;
  border-color: var(--pm-line) !important;
  box-shadow: var(--pm-shadow-sm) !important;
}
.pm-red .checkout-service-card.checkout-option-card--recommended { border-color: rgba(169, 131, 63, .54) !important; }
.pm-red .checkout-service-card.checkout-option-card--recommended.is-selected { border-color: var(--pm-red-primary) !important; box-shadow: inset 0 0 0 1px var(--pm-red-primary), var(--pm-shadow-md) !important; }
.pm-red .checkout-service-card::after { border-color: var(--pm-line-strong); }
.pm-red .checkout-service-card.is-selected::after { border-color: var(--pm-red-primary); background: var(--pm-red-primary); }
.pm-red .checkout-service-marker { color: var(--pm-gold-deep); background: var(--pm-champagne); }
.pm-red .checkout-service-list li::before { background: var(--pm-gold); box-shadow: 0 0 0 3px rgba(169, 131, 63, .14); }
.pm-red .checkout-service-price { color: var(--pm-wine); }
.pm-red .checkout-service-action { color: var(--pm-surface); background: var(--pm-red-primary); box-shadow: var(--pm-shadow-cta); }
.pm-red .checkout-service-card.is-selected .checkout-service-action { background: var(--pm-wine); box-shadow: var(--pm-shadow-md); }

/* Paid-result/upsell family: retain content and commerce boundaries while
   removing its historic green mini-theme. */
.pm-red :where(.pp-thanks, .pp-hero, .pp-compare, .pp-reach, .pp-upsell-anchor, .pp-upsell-safe, .pp-matrix, .pp-process, .pp-bottom) {
  color: var(--pm-ink);
  background: var(--pm-surface-muted) !important;
  border-color: var(--pm-line) !important;
  box-shadow: var(--pm-shadow-sm) !important;
}
.pm-red .pp-hero { border-radius: var(--pm-r-xl); box-shadow: var(--pm-shadow-md) !important; }
.pm-red :where(.pp-thanks-icon, .pp-process-num, .pp-upsell-badge, .pp-illu-dot, .pp-illu-bubble) {
  color: var(--pm-surface);
  background: var(--pm-red-primary) !important;
  box-shadow: var(--pm-shadow-xs) !important;
}
.pm-red :where(.pp-thanks-text, .pp-thanks-text strong, .pp-hero-title, .pp-upsell-title, .pp-process-step-title, .pp-section-head-title, .pp-story-title, .pp-bottom-title, .pp-vkad-name, .pp-vkad-title, .pp-matrix-table thead th, .pp-matrix-row, .pp-illu-chat-text) { color: var(--pm-ink-deep); }
.pm-red :where(.pp-hero-sub, .pp-upsell-desc, .pp-upsell-includes, .pp-upsell-trust, .pp-process-step-text, .pp-section-head-text, .pp-story-text, .pp-bottom-text, .pp-vkad-sub, .pp-vkad-caption, .pp-trust-text, .pp-matrix-title, .pp-process-title) { color: var(--pm-text-muted); }
.pm-red .pp-upsell-card--reco { border-color: var(--pm-red-primary) !important; }
.pm-red .pp-upsell-card--prem { background: #fff9eb !important; border-color: rgba(169, 131, 63, .62) !important; }
.pm-red .pp-upsell-new,
.pm-red .pp-matrix-h--pro,
.pm-red .pp-matrix-cell--yes,
.pm-red .pp-reach strong { color: var(--pm-red-primary); }
.pm-red .pp-upsell-includes li::before { color: var(--pm-red-primary); }
.pm-red .pp-upsell-card--prem .pp-upsell-includes li::before,
.pm-red .pp-upsell-card--prem .pp-upsell-new,
.pm-red .pp-matrix-h--full { color: var(--pm-gold-deep); }
.pm-red :where(.pp-reach, .pp-upsell-anchor, .pp-upsell-safe) { border-left-color: var(--pm-gold) !important; }
.pm-red .pp-trust-pill { color: var(--pm-wine); background: var(--pm-surface); border-color: var(--pm-line); }
.pm-red .pp-process-time { color: var(--pm-wine); background: var(--pm-blush); }
.pm-red .pp-process-step:not(:last-child)::after { background: var(--pm-line-strong); }
.pm-red .pp-story-illu { background: var(--pm-ivory) !important; }
.pm-red :where(.pp-illu-ring--outer, .pp-illu-ring--inner, .pp-illu-pet, .pp-illu-node, .pp-illu-card) { border-color: rgba(152, 38, 58, .3); }
.pm-red .pp-illu-ring--inner { background: rgba(152, 38, 58, .08); }
.pm-red .pp-illu-card-bar { background: var(--pm-blush); }
.pm-red .pp-illu-line { background: rgba(152, 38, 58, .28); }
.pm-red .pp-illu-pin { filter: none; }
.pm-red .pp-vkad-avatar { background: var(--pm-wine); }
.pm-red .pp-vkad-photo { background: var(--pm-ivory); }

/* Explicit third-party boundary: no selector in this component section starts
   at or descends from a Yandex Maps class. Provider layout remains untouched. */

/* Motion enhancement: visibility and business state never depend on motion. */
.pm-red .fade-up,
.pm-red .city-guide-card,
.pm-red .home-step-card,
.pm-red .guide-example-card,
.pm-red .city-map-panel,
.pm-red .home-steps { animation: none !important; }

.pm-red .pm-reveal-pending,
.pm-red .pm-reveal-visible { opacity: 1; transform: none; }

.pm-red .pm-reveal-enter {
  animation: pm-reveal-enter var(--pm-slow) var(--pm-ease) both;
}

@keyframes pm-reveal-enter {
  from { opacity: .72; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .pm-red .home-step-card:hover .home-step-icon { background: var(--pm-wine); transform: translateY(-2px); }
  .pm-red .home-step-icon { transition: transform var(--pm-fast), background-color var(--pm-fast); }
}

@media (min-width: 721px) and (max-width: 1199px) {
  .pm-red .success-stories-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  .pm-red .pm-nav {
    grid-template-columns: minmax(170px, 1fr) auto auto;
    gap: 12px;
  }

  .pm-red .pm-primary-nav { display: none; }
  .pm-red .pm-menu-toggle { display: inline-flex; }

  .pm-red .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
    grid-template-areas:
      "copy media"
      "scenarios scenarios";
    min-height: 0;
  }

  .pm-red .pm-hero-copy,
  .pm-red .pm-hero-media { min-height: 410px; }

  .pm-red .hero-scenarios {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    border-top: 1px solid var(--pm-line);
  }

  .pm-red .hero-scenario {
    min-height: 128px;
    border-right: 1px solid var(--pm-line);
    border-bottom: 0;
  }
  .pm-red .hero-scenario:last-child { border-right: 0; }

  .pm-red .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-red .listing-grid .listing-card--featured-full { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
  .pm-red .pm-footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .pm-red .pm-footer-nav:nth-of-type(3) { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .pm-red .container { width: min(100% - 36px, 1240px); }
  .pm-red main { padding: 24px 0 62px; }
  .pm-red .section { margin-top: 54px; }

  .pm-red .pm-header-actions .btn-ghost,
  .pm-red .pm-header-actions .nav-logout-form { display: none; }

  .pm-red .pm-mobile-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-red .pm-mobile-menu-grid a:nth-child(3) { border-left: 0; border-top: 1px solid var(--pm-line); }
  .pm-red .pm-mobile-menu-grid a:nth-child(4) { border-top: 1px solid var(--pm-line); }

  .pm-red #map-section > .card { grid-template-columns: 220px minmax(0, 1fr); }
  .pm-red .pm-map-canvas,
  .pm-red #city-activity-ymap { height: 410px; min-height: 410px; }

  .pm-red .success-stories-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pm-red .listing-detail-header { grid-template-columns: 1fr; }
  .pm-red .listing-meta-line { justify-content: flex-start; }

  .pm-red .cities-letter ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pm-red .city-filters { grid-template-columns: 1fr; }
  .pm-red .city-filter-group { border-right: 0; border-bottom: 1px solid var(--pm-line); }
  .pm-red .city-filter-group:last-child { border-bottom: 0; }

  .pm-red .home-step-card { grid-template-columns: 36px minmax(0, 1fr); padding: 18px; }
  .pm-red .home-step-card:not(:first-child) { padding-left: 18px; }
  .pm-red .home-step-icon { width: 34px; height: 34px; font-size: 17px; }

  .pm-red .pm-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-red .pm-footer-brand { grid-column: 1 / -1; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 253, 252, .18); }
  .pm-red .pm-footer-nav:nth-of-type(3) { grid-column: auto; }
}

@media (max-width: 720px) {
  .pm-red body { font-size: 14px; }
  .pm-red h1 { font-size: clamp(1.9rem, 9vw, 2.75rem); }
  .pm-red h2 { font-size: clamp(1.45rem, 7vw, 2rem); }

  .pm-red .pm-nav { min-height: 64px; padding: 8px 0; }
  .pm-red .brand.brand--logo .brand-logo { width: 31px !important; height: 31px !important; }
  .pm-red .brand.brand--logo .brand-text { font-size: 18px !important; }

  .pm-red .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "scenarios";
  }

  .pm-red .pm-hero-copy {
    min-height: 0;
    padding: 28px 24px 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 252, .18);
  }

  .pm-red .hero h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .pm-red .hero-sub { margin-top: 14px; font-size: 14px; }
  .pm-red .hero-sub-desktop { display: none; }
  .pm-red .hero-sub-mobile { display: block; }
  .pm-red .pm-hero-city-link { margin-top: 5px; }
  .pm-red .pm-hero-media { min-height: 0; aspect-ratio: 16 / 10; }

  .pm-red .hero-scenarios {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
  }
  .pm-red .hero-scenario {
    min-height: 82px;
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--pm-line);
  }

  .pm-red .hero-metrics { grid-template-columns: 1fr; }
  .pm-red .hero-metric { min-height: 62px; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--pm-line); }
  .pm-red .hero-metric:last-child { border-bottom: 0; }

  .pm-red .success-stories-head { grid-template-columns: 1fr; gap: 7px; align-items: start; }
  .pm-red .success-stories-sub { justify-self: start; }
  .pm-red .success-stories-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-right: 0;
    overflow: visible;
  }
  .pm-red .success-story-card { width: 100%; }

  .pm-red #map-section > .card { grid-template-columns: 1fr; }
  .pm-red .map-section-head { min-height: 180px; padding: 23px 20px; border-right: 0; border-bottom: 1px solid rgba(255, 253, 252, .16); }
  .pm-red .pm-map-canvas,
  .pm-red #city-activity-ymap { height: 360px; min-height: 360px; }

  .pm-red .city-search-card { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px; }
  .pm-red .city-selected-bar,
  .pm-red .city-geo-banner { grid-column: auto; }

  .pm-red .page-header { align-items: flex-start; }
  .pm-red .page-header-actions { width: 100%; }
  .pm-red .page-header-actions .btn { flex: 1 1 180px; }

  .pm-red .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 9px; }
  .pm-red .listing-tile-body { padding-top: 8px; }
  .pm-red .listing-tile-title { min-height: 2.7em; font-size: 13px; }
  .pm-red .listing-tile-meta { font-size: 10px; }
  .pm-red .tile-action-label { display: none; }
  .pm-red .tile-action { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; }
  .pm-red .listing-actions { justify-content: flex-start; }

  .pm-red .home-steps-grid { grid-template-columns: 1fr; }
  .pm-red .home-step-card,
  .pm-red .home-step-card:not(:first-child) {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
    padding: 19px;
    border: 1px solid var(--pm-line);
  }
  .pm-red .home-step-card::before { top: 14px; right: 14px; }
  .pm-red .home-step-icon { width: 38px; height: 38px; }

  .pm-red .city-help-hub,
  .pm-red .city-faq-card,
  .pm-red .city-related-guides { padding: 20px 18px; border-radius: var(--pm-r-lg); }
  .pm-red .city-help-head { grid-template-columns: 1fr; gap: 7px; }
  .pm-red .city-help-eyebrow { grid-row: auto; }
  .pm-red .city-guide-grid,
  .pm-red .city-guide-grid--related { grid-template-columns: 1fr; }
  .pm-red .city-guide-card,
  .pm-red .city-guide-card:nth-child(even) { padding: 14px; border-right: 1px solid var(--pm-line); }

  .pm-red .city-map-panel-media #city-map { height: 300px; }
  .pm-red .city-map-panel .city-map-info-card { padding: 18px; }

  .pm-red .cities-summary { grid-template-columns: repeat(2, 1fr); }
  .pm-red .cities-summary > div:nth-child(2) { border-right: 0; }
  .pm-red .cities-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--pm-line); }
  .pm-red .cities-letter { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .pm-red .cities-letter ul { grid-template-columns: 1fr !important; }

  .pm-red .listing-detail { padding: 20px 16px; }
  .pm-red .listing-detail-header h1 { font-size: clamp(1.8rem, 8.5vw, 2.65rem); }
  .pm-red .media-gallery { max-width: none; }
  .pm-red .media-hero { aspect-ratio: 4 / 5; }
  .pm-red .media-slide img { object-fit: cover; }
  .pm-red .media-thumbs { display: flex; }
  .pm-red .media-thumb { flex: 0 0 64px; height: 64px; }
  .pm-red .listing-description { padding: 16px 17px; font-size: 14px; }
  .pm-red #listing-map,
  .pm-red .listing-map { height: 280px !important; }

  .pm-red .listing-grid .listing-card--featured-full {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .pm-red .featured-full-media {
    width: 100%;
    max-width: none;
    height: 220px;
    min-height: 220px;
    aspect-ratio: auto;
  }
  .pm-red .featured-full-body {
    padding: 22px 18px 20px;
    border-top: 1px solid var(--pm-red-muted);
    border-left: 0;
  }
  .pm-red .featured-full-open { align-self: stretch; justify-content: center; min-height: 44px; }

  .pm-red .social-row { align-items: stretch; flex-wrap: wrap; gap: 7px 10px; }
  .pm-red .social-actions-primary {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    flex: 1 1 100%;
    gap: 7px;
  }
  .pm-red .social-share-wrap { width: 100%; }
  .pm-red .social-row .social-action { width: 100%; padding-inline: 8px; }
  .pm-red .social-action-label { display: none; }
  .pm-red .social-views { margin-left: auto; }

  .pm-red .wizard-card,
  .pm-red .form-card { padding: 22px 17px; }
  .pm-red .wizard-stepper { gap: 5px; }
  .pm-red .wizard-step-dot em { font-size: 9px; }
  .pm-red .tile-grid--2,
  .pm-red .tile-grid--3 { grid-template-columns: 1fr; }
  .pm-red .tile-grid--compact { grid-template-columns: repeat(3, 1fr); }

  .pm-red .article-page,
  .pm-red .legal-page { padding: 22px 18px; border-radius: var(--pm-r-lg); }
  .pm-red .guide-cta-card { align-items: stretch; padding: 19px 17px; }
  .pm-red .guide-cta-actions { width: 100%; }
  .pm-red .guide-cta-primary,
  .pm-red .guide-cta-secondary { width: 100%; }

  .pm-red .pm-footer-grid { gap: 26px 20px; }
  .pm-red .pm-footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .pm-red .container { width: min(100% - 32px, 1240px); }

  .pm-red .home-recent-pages { width: 100%; }

  .pm-red .pm-nav { grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
  .pm-red .brand.brand--logo { gap: 7px !important; }
  .pm-red .brand.brand--logo .brand-logo { width: 29px !important; height: 29px !important; }
  .pm-red .brand.brand--logo .brand-text { font-size: 16px !important; }
  .pm-red .pm-header-actions .btn { min-height: 44px; padding: 9px 12px; font-size: 12px; }
  .pm-red .cta-full { display: none; }
  .pm-red .cta-short { display: inline; }
  .pm-red .pm-menu-toggle { width: 44px; height: 44px; }
  .pm-red .pm-mobile-menu-grid { grid-template-columns: 1fr; }
  .pm-red .pm-mobile-menu-grid a { border-left: 0; border-top: 1px solid var(--pm-line); }
  .pm-red .pm-mobile-menu-grid a:first-child { border-top: 0; }

  .pm-red .pm-hero-copy { padding: 25px 20px 27px; }
  .pm-red .hero h1 { font-size: clamp(1.85rem, 9.4vw, 2.35rem); }
  .pm-red .pm-hero-media { aspect-ratio: 4 / 3; }
  .pm-red .pm-hero-media-note { font-size: 8px; }
  .pm-red .hero-scenario { grid-template-columns: 28px minmax(0, 1fr) 20px; }

  .pm-red .success-stories-row { margin-right: 0; }
  .pm-red .pm-map-canvas,
  .pm-red #city-activity-ymap { height: 330px; min-height: 330px; }

  .pm-red .page-header { flex-direction: column; }
  .pm-red .page-header-actions .btn { flex-basis: 100%; }

  .pm-red .listing-grid { gap-inline: 8px; }
  .pm-red .listing-tile-type { font-size: 9px; }
  .pm-red .listing-tile-title { font-size: 12.5px; }
  .pm-red .listing-tile-meta { font-size: 9.5px; }

  .pm-red .listing-grid .listing-card--featured-full { padding: 0; }
  .pm-red .featured-full-media { height: 185px; min-height: 185px; }
  .pm-red .featured-full-title { font-size: 19px; }

  .pm-red .cities-alpha { flex-wrap: nowrap !important; overflow-x: auto; }
  .pm-red .cities-alpha .btn { flex: 0 0 44px; }

  .pm-red .pm-footer-grid { grid-template-columns: 1fr; }
  .pm-red .pm-footer-nav:nth-of-type(3) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-red .pm-reveal-pending,
  .pm-red .pm-reveal-visible,
  .pm-red .pm-reveal-enter {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .pm-red .pm-hero-media img,
  .pm-red .listing-media img,
  .pm-red .success-story-media img,
  .pm-red .hero-scenario > .ph,
  .pm-red .pm-primary-nav a::after { transition: none; }

  .pm-red .hero:hover .pm-hero-media img,
  .pm-red .listing-card:hover .listing-media img,
  .pm-red .success-story-card:hover .success-story-media img { transform: none; }
}
/* Compact cookie notice plus an explicit, user-opened analytics settings surface. */
.pm-analytics-consent {
  position: fixed;
  z-index: 900;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
  padding: 18px;
  color: var(--pm-text, #211a1b);
  background: var(--pm-surface, #fffdf9);
  border: 1px solid var(--pm-border, #e7dace);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(58, 12, 21, .08), 0 24px 56px rgba(58, 12, 21, .13);
}
.pm-cookie-notice {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(840px, calc(100% - 32px));
  margin: 8px auto 0;
  padding: 10px 12px;
  color: var(--pm-text, #211a1b);
  background: var(--pm-surface, #fffdf9);
  border: 1px solid var(--pm-border, #e7dace);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(58, 12, 21, .06);
  font-size: .875rem;
  line-height: 1.4;
}
.pm-cookie-notice[hidden],
.pm-analytics-consent[hidden] { display: none; }
.pm-cookie-notice p { margin: 0; color: var(--pm-muted, #76686a); }
.pm-cookie-notice a { color: inherit; text-underline-offset: 2px; }
.pm-cookie-notice .btn { min-height: 42px; padding: 0 18px; white-space: nowrap; }
.pm-cookie-surface-open body { padding-bottom: var(--pm-cookie-clearance, 0); }
.pm-cookie-surface-open button,
.pm-cookie-surface-open a,
.pm-cookie-surface-open input,
.pm-cookie-surface-open select,
.pm-cookie-surface-open textarea { scroll-margin-bottom: var(--pm-cookie-clearance, 0); }
.pm-analytics-consent p { margin: 5px 0 0; color: var(--pm-muted, #76686a); }
.pm-analytics-consent__actions { display: flex; gap: 10px; }
.pm-footer-privacy-settings {
  min-height: 44px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.pm-footer-privacy-settings:hover { text-decoration: underline; }
.pm-footer-privacy-settings:focus-visible { outline: 3px solid var(--pm-focus-ring, #e0c58c); outline-offset: 3px; }
@media (max-width: 600px) {
  .pm-cookie-notice {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: calc(100% - 16px);
    margin-top: 6px;
    padding: 9px 10px;
    font-size: .8125rem;
  }
  .pm-cookie-notice .btn { min-height: 40px; padding-inline: 14px; }
  .pm-analytics-consent { grid-template-columns: 1fr; }
  .pm-analytics-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
/* Bounded, wrapping breadcrumbs: never create mobile horizontal overflow. */
.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  max-width: 100%;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
