/* ============================================
   Toloca — Premium Tourism Landing
   ============================================ */

/* --- Boot: скрываем сырую HTML-заготовку до готовности --- */
html.page-boot body {
  visibility: hidden;
}

html.page-boot body::before {
  content: '';
  visibility: visible;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #fafbfc;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22, 163, 74, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(37, 99, 235, 0.06), transparent);
}

html.page-boot body::after {
  content: '';
  visibility: visible;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100001;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.2);
  border-top-color: #16a34a;
  animation: mvBootSpin 0.75s linear infinite;
}

@keyframes mvBootSpin {
  to { transform: rotate(360deg); }
}

html.page-ready body {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  html.page-boot body::after {
    animation: none;
    border-top-color: rgba(22, 163, 74, 0.2);
  }
}

/* --- CSS Variables --- */
:root {
  --color-white: #ffffff;
  --color-bg: #fafbfc;
  --color-surface: #f3f4f6;
  --color-surface-2: #e5e7eb;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-green: #16a34a;
  --color-green-dark: #15803d;
  --color-green-light: #dcfce7;
  --color-teal: #0d9488;
  --color-teal-light: #ccfbf1;
  --color-blue: #2563eb;
  --color-blue-light: #dbeafe;

  --gradient-brand: linear-gradient(125deg, #22c55e 0%, #14b8a6 38%, #3b82f6 72%, #6366f1 100%);
  --gradient-logo: linear-gradient(120deg, #34d399 0%, #2dd4bf 28%, #38bdf8 58%, #818cf8 100%);
  --gradient-hero: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(13, 148, 136, 0.06) 50%, rgba(37, 99, 235, 0.05) 100%);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-brand: 'Nunito', 'Manrope', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow-green: 0 8px 32px rgba(22, 163, 74, 0.2);
  --shadow-glow-blue: 0 8px 32px rgba(37, 99, 235, 0.15);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Soft cross-document fade (Chromium / Safari 18+) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
  animation-timing-function: ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body.photo-lightbox-open {
  overflow: hidden;
}

/* --- Skip link (доступность) --- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-green);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transform: translateY(-150%);
  transition: transform var(--transition-base);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* --- Видимый фокус для клавиатуры --- */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
  border-radius: 4px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--light {
  background: linear-gradient(135deg, #fff 0%, #bbf7d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-green);
  background: var(--color-green-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag--light {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0.72;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.35)); }
  50% { filter: drop-shadow(0 0 9px rgba(99, 102, 241, 0.3)); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fade-up {
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-up--delay-1 { animation-delay: 0.04s; }
.fade-up--delay-2 { animation-delay: 0.08s; }
.fade-up--delay-3 { animation-delay: 0.12s; }
.fade-up--delay-4 { animation-delay: 0.16s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn--primary:hover {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.3);
}

.btn--primary:hover::before {
  transform: translateX(100%);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--danger {
  background: #dc2626;
  color: #fff;
  border: 1.5px solid #dc2626;
}

.btn--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn--outline.btn--danger {
  background: transparent;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn--outline.btn--danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-green);
  box-shadow: var(--shadow-lg);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  display: block;
  width: 40px;
  height: 40px;
  animation: logoGlow 3s ease-in-out infinite;
}

.logo__lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.logo__text {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo__tagline {
  font-family: var(--font-brand);
  font-size: 9px;
  font-weight: 600;
  /* line-height 1 + отрицательный отступ — слоган прижат к слову, без «воздуха» глифов */
  line-height: 1;
  margin-top: -1px;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* На мобильной шапке слоган влезает, только если нет кнопки «Админ»:
   без неё переключатель языка уходит вправо к бургеру и освобождает место. */
@media (min-width: 375px) and (max-width: 900px) {
  body:not(.has-admin-link) .logo__tagline {
    display: block;
    font-size: 8.5px;
    /* Страховка: если слоган окажется шире расчётного, он обрежется, а не выдавит бургер */
    max-width: calc(100vw - 230px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(229, 231, 235, 0.6);
  box-shadow: var(--shadow-sm);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__footer {
  display: none;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-green);
  background: var(--color-green-light);
}

.nav__link--active {
  color: var(--color-green-dark);
  font-weight: 600;
  background: var(--color-green-light);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-green);
}

.header__login {
  margin-left: 0;
  /* Фикс. ширина под «Личный кабинет» — текст меняется, шапка не прыгает */
  min-width: 9.75rem;
  max-width: 9.75rem;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.header__admin {
  min-width: 4.25rem;
  justify-content: center;
  text-align: center;
}

/* Не opacity: иначе кнопка держит ширину текста и gap, отжимая переключатель языка влево */
.header__admin.is-off {
  display: none;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.lang-switcher__btn {
  min-width: 36px;
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
  color: var(--color-green);
  background: rgba(255, 255, 255, 0.7);
}

.lang-switcher__btn--active {
  color: var(--color-green-dark);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition-base), opacity 0.1s ease;
}

.burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: pulse 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(22, 163, 74, 0.12);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.1);
  bottom: -10%;
  left: -5%;
  animation-delay: 2s;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(13, 148, 136, 0.1);
  top: 40%;
  left: 30%;
  animation-delay: 4s;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green-dark);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22, 163, 74, 0.15);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
}

.hero__stat {
  text-align: center;
  position: relative;
  padding: 8px 12px;
}

.hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

.hero__stat-divider {
  display: none;
}

/* Hero map stage (from moldova-hero) */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-stage__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero-stage__blob--1 {
  width: 300px;
  height: 300px;
  top: -4%;
  right: 6%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.22), transparent 68%);
  animation: heroDrift1 22s ease-in-out infinite;
}

.hero-stage__blob--2 {
  width: 260px;
  height: 260px;
  bottom: 2%;
  left: -2%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2), transparent 68%);
  animation: heroDrift2 27s ease-in-out infinite;
}

.hero-stage__blob--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: -4%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  animation: heroDrift3 19s ease-in-out infinite;
}

.hero-stage__halo {
  position: absolute;
  width: 70%;
  height: 78%;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.16), transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-map-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  animation: fadeUp 1s 0.35s both, heroMapFloat 9s ease-in-out 1.4s infinite;
}

.hero-map-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.hero-country {
  fill: url(#heroMapFill);
  stroke: url(#heroMapStroke);
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: url(#heroCountryShadow);
  animation: heroCountryIn 1.1s 0.4s both;
}

.hero-country-sheen {
  fill: url(#heroSheen);
  opacity: 0.6;
  pointer-events: none;
}

.hero-route {
  fill: none;
  stroke: url(#heroRouteGrad);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0;
  animation: heroRouteIn 0.9s var(--rd, 0s) forwards, heroRouteFlow 3.4s var(--rd, 0s) linear infinite;
}

.hero-city {
  cursor: pointer;
  outline: none;
  animation: heroCityIn 0.7s var(--d, 1s) both;
}

.hero-city .hero-ping {
  fill: none;
  stroke: var(--color-green);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: heroPing 3.6s ease-out infinite;
  animation-delay: calc(var(--d) + 0.4s);
}

.hero-city .hero-glow {
  fill: url(#heroGlowGrad);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.35;
  animation: heroGlowPulse 4s ease-in-out infinite;
  animation-delay: var(--d);
}

.hero-city .hero-dot {
  fill: url(#heroDotGrad);
  stroke: #fff;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.4));
}

.hero-city.capital .hero-dot {
  fill: url(#heroDotGradCap);
}

.hero-city.capital .hero-label {
  font-weight: 700;
  fill: var(--color-text);
}

.hero-label {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 600;
  fill: #334155;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
  transition: fill 0.25s ease;
  animation: heroLabelIn 0.8s var(--d, 1s) both;
}

.hero-card {
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.hero-card-bg {
  fill: rgba(255, 255, 255, 0.88);
  stroke: rgba(22, 163, 74, 0.15);
  stroke-width: 1;
  filter: url(#heroCardShadow);
}

.hero-card-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: var(--color-text);
}

.hero-card-desc {
  font-family: var(--font-primary);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--color-text-secondary);
}

.hero-city:hover .hero-dot,
.hero-city:focus-visible .hero-dot {
  transform: scale(1.7);
}

.hero-city:hover .hero-glow,
.hero-city:focus-visible .hero-glow {
  opacity: 0.85;
  animation: none;
}

.hero-city:hover .hero-label,
.hero-city:focus-visible .hero-label {
  fill: var(--color-green-dark);
}

.hero-city:hover .hero-card,
.hero-city:focus-visible .hero-card {
  opacity: 1;
  transform: translateY(-3px);
}

.hero-city:focus-visible .hero-dot {
  stroke: var(--color-green-dark);
}

@keyframes heroMapFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes heroCountryIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroCityIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroLabelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroRouteIn {
  from { opacity: 0; stroke-dashoffset: 40; }
  to { opacity: 0.7; stroke-dashoffset: 0; }
}

@keyframes heroRouteFlow {
  to { stroke-dashoffset: -48; }
}

@keyframes heroPing {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes heroDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-26px, 22px); }
}

@keyframes heroDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -18px); }
}

@keyframes heroDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, -22px); }
}

/* --- Cities --- */
.cities {
  padding: 80px 0 40px;
}

.city-filters {
  position: relative;
}

.city-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.city-filters__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
}

.city-chip:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Active city chip styles */
.city-filters__list .city-chip--active {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
  box-shadow: var(--shadow-glow-green);
}

/* --- Catalog / Place Cards --- */
.catalog {
  padding: 80px 0 100px;
}

.catalog .city-filters {
  margin-bottom: 48px;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.place-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.place-card[data-slug] {
  cursor: pointer;
}

.place-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.place-card__image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

a.place-card__image-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.place-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.place-card:hover .place-card__image {
  transform: scale(1.08);
}

.place-photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(22, 163, 74, 0.16), transparent 68%),
    linear-gradient(165deg, #ecfdf5 0%, #f3f4f6 52%, #e8eaee 100%);
  color: #15803d;
  font-family: var(--font-display);
}

.place-photo-ph__icon {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.place-photo-ph__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.place-photo-ph--hero {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.place-photo-ph--hero .place-photo-ph__icon {
  width: 56px;
  height: 56px;
}

.place-photo-ph--hero .place-photo-ph__label {
  font-size: 14px;
}

.place-photo-ph--thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  gap: 0;
}

.place-photo-ph--thumb .place-photo-ph__label {
  display: none;
}

.place-photo-ph--thumb .place-photo-ph__icon {
  width: 22px;
  height: 22px;
}

.place-photo-ph--admin {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.place-photo-ph--admin .place-photo-ph__label {
  font-size: 10px;
}

.place-photo-ph--dest {
  aspect-ratio: 3 / 2;
}

.place-card__image-wrap:has(.place-photo-ph) .place-card__overlay {
  display: none;
}

.place-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.place-card:hover .place-card__overlay {
  opacity: 1;
}

.place-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background: var(--color-green);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.place-card__badge--teal {
  background: var(--color-teal);
}

.place-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.place-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.place-card__city {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.place-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.place-card__rating small {
  font-weight: 400;
  color: var(--color-text-muted);
}

.place-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.place-card__link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.place-card__title .place-card__link:hover {
  color: var(--color-green);
}

.place-card__link--desc {
  color: var(--color-text-secondary);
}

.place-card__link--desc:hover {
  color: var(--color-green-dark);
}

.place-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-preline {
  white-space: pre-line;
}

.place-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.place-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
  padding: 10px 20px;
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  margin-top: auto;
}

.place-card__btn:hover {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-green);
}

.place-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.place-card--owned .place-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.status-badge--contacted {
  background: #dbeafe;
  color: #1d4ed8;
}

.place-source-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.legal-footer-note {
  margin: 0;
  padding: 16px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.place-claim-note {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.place-claim-note a {
  color: var(--color-green);
  font-weight: 500;
}

.place-claim-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.45;
}

.place-claim-status--pending {
  background: #fef9c3;
  color: #854d0e;
}

.place-claim-status--ok {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.place-claim-status--warn {
  background: #fee2e2;
  color: #991b1b;
}

.place-claim-status__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.place-claim-dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: min(520px, calc(100vw - 32px));
  width: 100%;
  max-height: min(90vh, calc(100dvh - 32px));
  margin: auto;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: fixed;
  inset: 0;
  height: fit-content;
}

.place-claim-dialog::backdrop {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
}

.place-claim-dialog__form {
  padding: 24px;
  max-height: min(90vh, calc(100dvh - 32px));
  overflow-y: auto;
}

.place-claim-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.place-claim-dialog__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.place-claim-dialog__desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.account-claims-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.account-claims-block__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.account-claims-list {
  display: grid;
  gap: 12px;
}

/* --- Categories --- */
.categories {
  padding: 80px 0 100px;
  background: var(--color-white);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
  opacity: 0.06;
}

.category-card__icon {
  font-size: 36px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.category-card:hover .category-card__icon {
  transform: scale(1.15);
}

.category-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.category-card__count {
  font-size: 13px;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* --- Stats --- */
.stats {
  padding: 80px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 28px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stat-card:hover::after {
  width: 100%;
}

.stat-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-green-light);
  color: var(--color-green);
  transition: all var(--transition-base);
}

.stat-card:hover .stat-card__icon {
  background: var(--color-green);
  color: var(--color-white);
  transform: scale(1.05);
}

.stat-card__content {
  min-width: 0;
}

.stat-card__value {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1.1;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.stat-card__suffix {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* --- Reviews --- */
.reviews {
  padding: 80px 0 100px;
  background: var(--color-bg);
}

.reviews-carousel {
  position: relative;
}

.reviews-carousel__scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -4px;
  padding: 8px 4px 20px;
}

.reviews-carousel__scroller::-webkit-scrollbar {
  display: none;
}

.reviews-carousel__scroller:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.reviews-carousel__track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.reviews-carousel__track .review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  min-height: 100%;
}

.reviews-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.reviews-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reviews-carousel__btn:hover:not(:disabled) {
  border-color: var(--color-green);
  color: var(--color-green);
  box-shadow: var(--shadow-sm);
}

.reviews-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reviews-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 12px;
}

.reviews-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reviews-carousel__dot--active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--color-green);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: all var(--transition-base);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.review-card--featured {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.04) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-color: rgba(22, 163, 74, 0.15);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.review-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.review-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.review-card__place {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-green);
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- CTA --- */
.cta {
  padding: 40px 0 100px;
}

.cta__card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 60px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  border-radius: var(--radius-2xl);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
}

.cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta__visual svg {
  width: 100%;
  max-width: 260px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.18));
}

.compass__spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.2s ease-in-out infinite;
}

.compass__spark--2 { animation-delay: 1s; }
.compass__spark--3 { animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .cta__visual svg { animation: none; }
  .compass__spark { animation: none; }
  .compass__ring animateTransform { display: none; }
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__tagline {
  font-size: 14px;
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
}

/* ============================================
   Responsive
   ============================================ */

/* Laptop */
@media (max-width: 1100px) {
  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Слоган в шапке съедает место у навигации на узких экранах */
  .logo__tagline {
    display: none;
  }
}

/* Tablet */
@media (max-width: 900px) {
  /* Порядок в одну колонку: плашка → заголовок → карта → описание → кнопки → цифры.
     display: contents поднимает детей .hero__content в сетку, иначе карту (она сосед
     контента, а не его ребёнок) нельзя вставить между заголовком и описанием.
     Поэтому gap: 0 — вертикальные отступы задают margin-bottom самих блоков. */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  .hero__content {
    display: contents;
  }

  .hero__badge {
    order: 1;
    /* Как грид-элемент плашка растянулась бы на всю колонку */
    justify-self: center;
  }

  .hero__title {
    order: 2;
    margin-bottom: 24px;
  }

  .hero__visual {
    order: 3;
    margin-bottom: 32px;
  }

  .hero__subtitle {
    order: 4;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    order: 5;
    justify-content: center;
  }

  .hero__stats {
    order: 6;
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-map-wrap {
    width: min(90vw, 520px);
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    padding: calc(var(--header-height) + 12px) 18px 20px;
    transform: translateX(105%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -24px 0 60px rgba(17, 24, 39, 0.16);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav__link:hover {
    color: var(--color-text);
    background: var(--color-surface);
  }

  .nav__link--active {
    color: var(--color-green-dark);
    background: var(--color-green-light);
    box-shadow: inset 3px 0 0 var(--color-green);
  }

  .nav__link--active::after {
    display: none;
  }

  .nav__footer {
    display: block;
    margin-top: auto;
    padding-top: 20px;
  }

  /* Переключатель языка живёт в шапке — в шторке он не нужен */
  .nav__footer .lang-switcher {
    display: none;
  }

  .nav__contacts {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__contacts-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .nav__contacts-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
  }

  .nav__contacts-link:hover {
    color: var(--color-green);
  }

  .nav__contacts-link svg {
    flex-shrink: 0;
    color: var(--color-green);
  }

  /* Backdrop за шторкой */
  body.no-scroll::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    z-index: 998;
    animation: fadeIn 0.3s ease both;
  }

  .header__login {
    display: none;
  }

  .header__tools {
    margin-left: auto;
    gap: 8px;
  }

  .logo {
    gap: 6px;
  }

  .logo__text {
    margin-left: -1px;
  }

  /* Переключатель языка остаётся в шапке и на мобильной версии */
  .header__tools > .lang-switcher {
    display: inline-flex;
  }

  .header__tools .lang-switcher__btn {
    min-width: 32px;
    padding: 6px 8px;
  }

  .burger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-carousel__track .review-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .review-card--featured {
    transform: none;
  }

  .review-card--featured:hover {
    transform: translateY(-4px);
  }

  .cta__card {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }

  .cta__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .cta__visual {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__stats {
    max-width: 100%;
    padding: 24px 16px;
  }

  .hero__stat strong {
    font-size: 26px;
  }

  .hero__stat span {
    font-size: 13px;
  }

  .hero__stat:not(:last-child)::after {
    height: 40px;
  }

  .hero-map-wrap {
    width: min(94vw, 460px);
  }

  .hero-label {
    font-size: 13px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .city-filters__list {
    gap: 8px;
  }

  .city-chip {
    padding: 8px 16px;
    font-size: 13px;
  }

  .places-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .place-card__image-wrap {
    height: 200px;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 24px 16px;
  }

  .category-card__icon {
    font-size: 28px;
  }

  .category-card__name {
    font-size: 13px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px;
    gap: 16px;
  }

  .stat-card__icon {
    width: 44px;
    height: 44px;
  }

  .stat-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .stat-card__number {
    font-size: 28px;
  }

  .stat-card__suffix {
    font-size: 22px;
  }

  .stat-card__label {
    font-size: 12px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .cities,
  .catalog,
  .categories,
  .stats,
  .reviews {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .cities {
    padding-top: 24px;
  }

  .hero__inner {
    padding-bottom: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  @view-transition {
    navigation: none;
  }

  .hero-route {
    opacity: 0.7;
  }
}

/* ============================================
   Place detail page
   ============================================ */
.place-page {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-green);
}

.breadcrumbs--light {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs--light a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs--light a:hover {
  color: #fff;
}

.breadcrumbs__sep {
  color: var(--color-border);
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: 600;
}

.place-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-bottom: 48px;
}

.place-gallery__main {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.place-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.place-gallery__thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.place-gallery__thumbs img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.place-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.place-summary__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.place-summary__badges .place-card__badge {
  position: static;
}

.place-summary__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.place-summary__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.place-summary__rating,
.place-summary__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.place-summary__rating strong {
  color: var(--color-text);
  font-weight: 700;
}

.place-summary__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.place-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.place-claim-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.place-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 64px;
}

.place-content {
  min-width: 0;
}

.place-section {
  margin-bottom: 40px;
  min-width: 0;
  max-width: 100%;
}

.place-section__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.place-section__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  white-space: pre-line;
}

.place-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.place-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text);
}

.place-highlights svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-green);
}

.place-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.place-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.place-reviews {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.review-filters {
  margin-bottom: 20px;
}

.review-empty {
  color: var(--color-text-muted);
  font-size: 15px;
  padding: 8px 0;
}

.review-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.review-like:hover {
  border-color: var(--color-green);
  color: var(--color-green-dark);
}

.review-like--active {
  border-color: var(--color-green);
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.review-like--active svg path {
  fill: var(--color-green);
  stroke: var(--color-green);
}

.review-card__meta {
  flex: 1;
  min-width: 0;
}

.place-sidebar {
  position: relative;
}

.place-info {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.place-info__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.place-info__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.place-info__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.place-info__label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.place-info__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.place-info__value--empty {
  color: var(--color-text-muted);
  font-weight: 400;
}

.place-info__value a {
  color: var(--color-green);
  text-decoration: none;
}

.place-info__value a:hover {
  text-decoration: underline;
}

.btn--block {
  width: 100%;
}

.place-nearby__title {
  text-align: left;
  margin-bottom: 28px;
}

.place-back {
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .place-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .place-body {
    grid-template-columns: 1fr;
    gap: 0;
    min-width: 0;
  }

  /* Порядок в одну колонку: описание → информация о месте → карта → отзывы.
     Сайдбар — сосед .place-content, поэтому без display: contents он остаётся
     в самом низу, после отзывов. gap: 0 — отступы дают margin-bottom секций. */
  .place-content {
    display: contents;
  }

  .place-content > .place-section:first-child {
    order: 1;
  }

  .place-sidebar {
    order: 2;
    margin-bottom: 40px;
  }

  #place-map-section {
    order: 3;
  }

  .place-content > .place-section:last-child {
    order: 4;
  }

  .place-info {
    position: static;
  }
}

@media (max-width: 640px) {
  .reviews-carousel__track .review-card {
    flex: 0 0 88%;
  }

  .place-page {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 56px;
  }

  .breadcrumbs {
    margin-bottom: 20px;
  }

  .place-hero {
    margin-bottom: 36px;
  }

  .place-gallery__thumbs {
    gap: 8px;
  }

  .place-map iframe {
    height: 280px;
  }

  /* .place-content на мобилке — display: contents, своего бокса у него нет,
     поэтому широкую полосу фото обрезаем на самих секциях */
  .place-content > .place-section {
    overflow-x: clip;
  }

  .place-reviews .review-card,
  .review-form {
    padding: 20px 16px;
  }

  .place-summary__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .place-summary__actions .btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .place-summary__actions #place-route-btn {
    min-width: 0;
  }

  .place-summary__actions #place-route-btn[hidden] + #fav-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ============================================
   CATALOG PAGE
   ============================================ */
.catalog-page {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
}

.catalog-head {
  margin-bottom: 28px;
}

.catalog-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.catalog-head__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 640px;
}

.catalog-filters {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 40px;
}

.catalog-search {
  position: relative;
  margin-bottom: 22px;
}

.catalog-more-filters {
  display: none;
  margin-bottom: 4px;
}

.catalog-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  min-height: 44px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.catalog-filter-toggle:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.catalog-filter-toggle--open,
.catalog-filter-toggle--active {
  border-color: var(--color-green);
  color: var(--color-green-dark);
  background: var(--color-green-light);
}

.catalog-filter-toggle--active::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--color-white);
  background: var(--color-green);
  border-radius: var(--radius-full);
}

.catalog-filter-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.catalog-filter-panel:not([hidden]) .filter-group--category {
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .catalog-filter-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

.catalog-filter-panel[hidden] {
  display: none;
}

.catalog-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.catalog-search__input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.catalog-search__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.catalog-search__clear:hover {
  color: var(--color-text);
  background: rgba(17, 24, 39, 0.06);
}

.catalog-search__clear[hidden] {
  display: none;
}

.catalog-search__input::-webkit-search-cancel-button,
.catalog-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.catalog-search__input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.filter-group__hint {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.filter-chip--active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-green);
}

.filter-chip--active:hover {
  color: var(--color-white);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

.catalog-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalog-sort__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.catalog-sort__select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 8px 32px 8px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.catalog-sort__select:hover,
.catalog-sort__select:focus {
  outline: none;
  border-color: var(--color-green);
}

.catalog-count {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.catalog-count strong {
  color: var(--color-text);
  font-weight: 700;
}

.catalog-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalog-reset:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.catalog-empty {
  text-align: center;
  padding: 60px 20px;
}

.catalog-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.catalog-empty__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.catalog-empty__desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ============================================
   ADD-PLACE CTA (промо-блок на главной)
   ============================================ */
.addcta {
  padding: 20px 0 60px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.addcta__card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

.addcta__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0 14px;
  color: var(--color-text);
}

.addcta__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
}

.addcta__visual {
  display: flex;
  justify-content: center;
}

.addcta__visual svg {
  width: 100%;
  max-width: 200px;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 860px) {
  .addcta__card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    text-align: center;
  }
  .addcta__desc { margin-left: auto; margin-right: auto; }
  .addcta__visual { order: -1; }
  .addcta__visual svg { max-width: 140px; }
}

/* ============================================
   ADD-PLACE PAGE (форма добавления места)
   ============================================ */
.addplace-page {
  padding: calc(var(--header-height) + 40px) 0 80px;
}

.container--narrow {
  max-width: 720px;
}

.addplace-head {
  text-align: center;
  margin-bottom: 32px;
}

.addplace-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
}

.addplace-subtitle {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.addplace-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.addplace-field label,
.addplace-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.addplace-field__hint {
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.category-picker__chip--muted {
  opacity: 0.45;
  cursor: not-allowed;
}

.category-picker__chip--muted:hover {
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.addplace-field--invalid .category-picker .filter-chip:not(.filter-chip--active) {
  border-color: #fecaca;
}

.addplace-field__error {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
}

.addplace-field--invalid input,
.addplace-field--invalid select,
.addplace-field--invalid textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.addplace-field input,
.addplace-field select,
.addplace-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.addplace-field textarea {
  resize: vertical;
  min-height: 110px;
}

.addplace-field input:focus,
.addplace-field select:focus,
.addplace-field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.addplace-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.addplace-row--address {
  grid-template-columns: 1fr minmax(100px, 140px);
  align-items: end;
}

.geocode-picks {
  margin-top: 14px;
}

.geocode-picks__label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.geocode-picks__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geocode-pick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.geocode-pick:hover {
  border-color: var(--color-green);
}

.geocode-pick--active {
  border-color: var(--color-green);
  background: rgba(22, 163, 74, 0.06);
}

.geocode-pick__text {
  font-size: 0.875rem;
  line-height: 1.4;
}

.addplace-auth {
  text-align: center;
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
}

.addplace-auth p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

@media (max-width: 560px) {
  .addplace-row { grid-template-columns: 1fr; }
  .addplace-form { padding: 24px; }
}

/* ============================================
   ADD-PLACE — улучшенный layout
   ============================================ */
.addplace-page {
  padding: calc(var(--header-height) + 24px) 0 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22, 163, 74, 0.07), transparent),
    var(--color-bg);
}

.addplace-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.addplace-hero .section-tag {
  margin-bottom: 12px;
}

.addplace-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.addplace-aside {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.addplace-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.addplace-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.addplace-step:last-child {
  border-bottom: none;
}

.addplace-step--active {
  background: var(--color-green-light);
}

.addplace-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-green-dark);
  background: var(--color-white);
  border: 2px solid var(--color-green);
  border-radius: 50%;
}

.addplace-step--active .addplace-step__num {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

.addplace-step__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.addplace-tips {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.addplace-tips__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.addplace-tips ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addplace-tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.addplace-tips li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  border-radius: 50%;
}

.addplace-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.addplace-card__section {
  padding: 32px 32px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.addplace-card__section:last-of-type {
  border-bottom: none;
}

.addplace-card__heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.addplace-card__heading-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  border-radius: 50%;
}

.addplace-preview {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px dashed var(--color-border);
  background: var(--color-surface);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.addplace-preview__empty {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
}

.addplace-charcount {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 4px;
}

.addplace-charcount--ok {
  color: var(--color-green);
}

.addplace-short-preview {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.addplace-short-preview__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.addplace-short-preview__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.addplace-card__footer {
  padding: 28px 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.addplace-form__error {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
}

.addplace-auth {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 48px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.addplace-checking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.addplace-checking__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-green);
  border-radius: 50%;
  animation: addplace-spin 0.8s linear infinite;
}

@keyframes addplace-spin {
  to { transform: rotate(360deg); }
}

.addplace-guest-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 32px;
}

.addplace-guest {
  text-align: center;
  background: var(--color-white);
  border: 1px solid rgba(22, 163, 74, 0.15);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.addplace-guest::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22, 163, 74, 0.08), transparent 70%);
  pointer-events: none;
}

.addplace-guest > * {
  position: relative;
  z-index: 1;
}

.addplace-guest__visual {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.addplace-guest__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(22, 163, 74, 0.2);
  border-radius: 50%;
  animation: successRingPulse 2.5s ease-in-out infinite;
}

.addplace-guest__icon {
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  border-radius: 50%;
}

.addplace-guest__tag {
  margin-bottom: 12px;
}

.addplace-guest__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--color-text);
}

.addplace-guest__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}

.addplace-guest__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addplace-guest__perks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.addplace-guest__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-green);
  font-weight: 700;
}

.addplace-guest__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.addplace-success {
  text-align: center;
  background: var(--color-white);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 56px 48px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.addplace-success::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22, 163, 74, 0.08), transparent 70%);
  pointer-events: none;
}

.addplace-success > * {
  position: relative;
  z-index: 1;
}

.addplace-stage {
  display: grid;
  align-items: start;
}

.addplace-stage:has(> .addplace-success-wrap:not([hidden])) {
  align-items: center;
  min-height: min(48vh, 420px);
}

.addplace-stage:has(> .addplace-guest-wrap:not([hidden])) {
  align-items: center;
  min-height: min(52vh, 480px);
}

.addplace-stage:has(> .addplace-checking:not([hidden])) {
  align-items: center;
  min-height: min(40vh, 360px);
}

.addplace-stage > .addplace-workspace,
.addplace-stage > .addplace-success-wrap,
.addplace-stage > .addplace-guest-wrap,
.addplace-stage > .addplace-checking {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.addplace-stage > [hidden] {
  display: none !important;
}

.addplace-success-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.addplace-success-wrap--exit {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.addplace-workspace {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.addplace-workspace--exit {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.addplace-success__visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.addplace-success__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-green-light);
  animation: successRingPulse 2.4s ease-in-out infinite;
}

.addplace-success__icon {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-green);
  animation: successPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.addplace-success__tag {
  margin-bottom: 14px;
}

.addplace-success__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--color-text);
}

.addplace-success__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto 32px;
}

.addplace-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.06); }
  to { transform: scale(1); opacity: 1; }
}

@keyframes successRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  .addplace-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .addplace-aside {
    position: static;
    order: -1;
    gap: 16px;
  }
  .addplace-hero {
    margin-bottom: 28px;
  }
  .addplace-steps {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .addplace-steps::-webkit-scrollbar {
    display: none;
  }
  .addplace-step {
    flex: 1;
    min-width: 118px;
    flex-direction: column;
    text-align: center;
    padding: 16px 14px;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    gap: 10px;
  }
  .addplace-step:last-child { border-right: none; }
  .addplace-step__label {
    font-size: 13px;
    line-height: 1.3;
  }
  .addplace-tips {
    padding: 20px;
  }
  .addplace-card__section {
    padding: 24px 20px;
    gap: 24px;
  }
  .addplace-card__footer {
    padding: 20px;
    gap: 14px;
  }
  .addplace-success-wrap {
    padding: 4px 0 20px;
  }
}

@media (max-width: 600px) {
  .addplace-page {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 56px;
  }
  .addplace-hero {
    margin-bottom: 24px;
    text-align: left;
  }
  .addplace-subtitle {
    font-size: 15px;
  }
  .addplace-row {
    gap: 20px;
  }
  .addplace-card {
    border-radius: var(--radius-xl);
  }
  .addplace-card__section {
    padding: 20px 16px;
    gap: 22px;
  }
  .addplace-card__footer {
    padding: 18px 16px;
  }
  .addplace-card__heading {
    font-size: 16px;
  }
  .addplace-step {
    min-width: 100px;
    padding: 14px 10px;
  }
  .addplace-step__num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .addplace-success {
    padding: 36px 20px;
    border-radius: var(--radius-xl);
  }
  .addplace-success__visual {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
  }
  .addplace-success__title {
    font-size: 22px;
  }
  .addplace-success__desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .addplace-success__actions {
    flex-direction: column;
    width: 100%;
  }
  .addplace-success__actions .btn {
    width: 100%;
  }
  .addplace-auth {
    padding: 32px 20px;
  }
  .addplace-guest {
    padding: 36px 24px;
  }
  .addplace-guest__actions {
    flex-direction: column;
    width: 100%;
  }
  .addplace-guest__actions .btn {
    width: 100%;
  }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-page {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
}

.admin-head {
  margin-bottom: 28px;
}

.admin-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}

.admin-head__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 560px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.admin-stat--warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), var(--color-white));
}

.admin-stat--warn .admin-stat__num {
  color: #d97706;
}

.admin-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
  margin-bottom: 6px;
}

.admin-stat__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.admin-tabs {
  margin-bottom: 24px;
}

.admin-tab-count,
.filter-chip-count {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  line-height: 1;
}

.filter-chip-count {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.filter-chip-count::before {
  content: '·';
  margin: 0 5px;
  font-weight: 400;
  opacity: 0.55;
}

.filter-chip--active .filter-chip-count {
  color: inherit;
  opacity: 0.85;
}

.filter-chip--active .filter-chip-count::before {
  opacity: 0.65;
}

.admin-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.admin-panel {
  display: none;
}

.admin-panel--active {
  display: block;
  animation: fadeUp 0.35s ease both;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-places-filters {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.admin-places-search {
  max-width: 420px;
}

.admin-places-toolbar {
  margin-top: 4px;
}

.admin-item__meta--muted {
  color: var(--color-text-muted);
  font-style: italic;
}

.admin-queue {
  display: grid;
  gap: 16px;
}

.admin-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.admin-item:hover {
  box-shadow: var(--shadow-md);
}

.admin-item--pending {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.admin-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
}

.admin-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.admin-item__meta {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.admin-item__meta a {
  color: var(--color-green);
  font-weight: 600;
}

.admin-item__rating {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 10px;
}

.admin-item__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.admin-item__place {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-item__thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.admin-item__thumb--click {
  cursor: zoom-in;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-item__thumb--click:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.admin-item__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.admin-item__photo {
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: zoom-in;
  background: var(--color-surface);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-item__photo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.admin-mod-photo {
  margin-bottom: 16px;
}

.admin-mod-photo__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

.admin-mod-photo__btn {
  display: block;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  max-width: 100%;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.admin-mod-photo__btn:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}

.admin-mod-photo__btn img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-forbidden {
  text-align: center;
  padding: 80px 24px;
  max-width: 420px;
  margin: 0 auto;
}

.admin-forbidden__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.admin-forbidden h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
}

.admin-add-wrap {
  max-width: 640px;
}

.admin-add-head {
  margin-bottom: 24px;
}

.admin-add-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-add-head p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.admin-add-form {
  margin-top: 0;
}

.admin-add-success {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.admin-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
  color: var(--color-text);
}

.admin-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.admin-item__meta--warn {
  color: #b45309;
}

.admin-review-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-md, 10px);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.92rem;
  line-height: 1.4;
  display: grid;
  gap: 4px;
}

.admin-review-note strong {
  font-weight: 650;
}

.admin-review-note--deleted {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.admin-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: min(640px, calc(100vw - 32px));
  width: 100%;
  max-height: min(90vh, calc(100dvh - 32px));
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  position: fixed;
  inset: 0;
  height: fit-content;
}

dialog.admin-modal:not([open]) {
  display: none !important;
  pointer-events: none !important;
}

.admin-modal--wide .admin-modal__form {
  max-height: min(90vh, calc(100dvh - 32px));
  overflow-y: auto;
}

.admin-modal--wide {
  max-width: min(960px, calc(100vw - 32px));
}

.admin-modal--confirm {
  max-width: min(480px, calc(100vw - 32px));
}

.admin-modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.admin-modals {
  display: contents;
}

.admin-modal__form {
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-form-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.admin-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.admin-form-section__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}

.admin-form-section--actions {
  padding-top: 8px;
}

.account-place-dialog {
  border: none;
  border-radius: var(--radius-2xl);
  padding: 0;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.account-place-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.account-place-dialog__form {
  padding: 24px 28px 28px;
  max-height: min(90vh, calc(100dvh - 32px));
  overflow-y: auto;
}

.account-place-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-place-dialog__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.account-place-dialog__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0 4px;
}

.account-place-dialog__status {
  display: inline-block;
  margin-bottom: 16px;
}

.account-place-dialog__section {
  margin-top: 8px;
}

.account-place-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.account-place-dialog__success {
  margin: 12px 0 0;
  color: var(--color-green-dark);
  font-size: 14px;
}

.settings-field__textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-modal__head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-modal__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.admin-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-translate-block {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.admin-translate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-translate-label {
  font-weight: 600;
  font-size: 14px;
}

.admin-coords-block {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.admin-coords-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-coords-label {
  font-weight: 600;
  font-size: 14px;
}

.admin-coords-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.admin-map-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-muted, #f1f5f9);
  min-height: 260px;
}

.admin-map-preview--picker {
  cursor: crosshair;
}

.admin-map-preview__canvas {
  display: block;
  width: 100%;
  height: 280px;
  z-index: 0;
}

.admin-map-preview__frame {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

.admin-map-preview__frame[hidden] {
  display: none;
}

.admin-map-preview__empty {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.admin-map-preview__empty[hidden] {
  display: none;
}

.admin-map-preview .leaflet-container {
  font: inherit;
  background: #e2e8f0;
}

/* Модерация места */
.admin-mod {
  padding: 28px;
}

.admin-mod__head {
  margin-bottom: 20px;
}

.admin-mod__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
}

.admin-mod-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.admin-mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  align-items: center;
}

.admin-mod-meta__item {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 4px 10px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.admin-mod-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 16px;
  max-height: 200px;
  overflow-y: auto;
}

.admin-mod-owner {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.admin-mod-note {
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.admin-mod-note__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  margin-bottom: 6px;
}

.admin-mod-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #7f1d1d;
}

.admin-mod-map-label {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text-secondary);
}

.admin-mod-map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-muted, #f1f5f9);
  min-height: 280px;
}

.admin-mod-map__frame {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}

.admin-mod-map__frame[hidden] {
  display: none;
}

.admin-mod-address {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.admin-mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.admin-place-summary {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.admin-place-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.admin-mod-meta__link {
  color: var(--color-green);
  text-decoration: none;
}

.admin-mod-meta__link:hover {
  text-decoration: underline;
}

.admin-place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 16px 0 0;
  border-top: 1px solid var(--color-border);
}

.admin-item__place--click {
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.admin-item__place--click:hover {
  background: rgba(22, 163, 74, 0.04);
}

.admin-item__place--click:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.admin-confirm {
  padding: 32px 28px;
  text-align: center;
}

.admin-confirm__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.admin-confirm__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.admin-confirm__desc {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.admin-confirm__actions {
  justify-content: center;
}

.admin-confirm .addplace-field {
  text-align: left;
  margin-bottom: 16px;
}

.status-badge--unpublished {
  background: #64748b;
}

.place-card__status-note {
  margin: 0 0 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
}

.place-card__status-note strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b91c1c;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .admin-mod-split {
    grid-template-columns: 1fr;
  }
  .admin-mod-map__frame,
  .admin-mod-map {
    min-height: 220px;
    height: 220px;
  }
  .admin-mod-actions {
    flex-direction: column;
  }
  .admin-mod-actions .btn {
    width: 100%;
  }
}

.place-loading,
.mv-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 56px 24px;
  color: var(--color-text-muted, #64748b);
  font-size: 15px;
  min-height: 220px;
}

.mv-loader[hidden] {
  display: none !important;
}

.mv-loader--inline {
  min-height: 0;
  padding: 8px 16px 20px;
}

.mv-loader--error .mv-loader__status {
  color: #b91c1c;
}

.mv-loader__visual {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.mv-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.15);
  border-top-color: #16a34a;
  animation: mvLoaderSpin 0.9s linear infinite;
}

.mv-loader__pin {
  width: 40px;
  height: 40px;
  animation: mvLoaderBob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(22, 163, 74, 0.25));
}

.mv-loader__status {
  margin: 0;
  max-width: 28ch;
  line-height: 1.45;
  font-weight: 500;
  color: var(--color-text-secondary, #475569);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mv-loader__status--tick {
  animation: mvLoaderStatusIn 0.35s ease both;
}

.mv-loader__dots {
  display: flex;
  gap: 6px;
}

.mv-loader__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  opacity: 0.35;
  animation: mvLoaderDot 1.2s ease-in-out infinite;
}

.mv-loader__dots span:nth-child(2) { animation-delay: 0.15s; }
.mv-loader__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes mvLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes mvLoaderBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes mvLoaderStatusIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mvLoaderDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.9); }
  40% { opacity: 1; transform: scale(1.15); }
}

.mv-grid-loading[hidden] {
  display: none !important;
}

.place-card--skeleton {
  pointer-events: none;
}

.place-card--skeleton .place-card__image-wrap {
  aspect-ratio: 3 / 2;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 40%, #eef2f7 55%);
  background-size: 200% 100%;
  animation: mvSkeleton 1.2s ease-in-out infinite;
  border-radius: inherit;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 40%, #eef2f7 55%);
  background-size: 200% 100%;
  animation: mvSkeleton 1.2s ease-in-out infinite;
}

.skeleton-line--sm { width: 42%; height: 10px; }
.skeleton-line--title { width: 78%; height: 16px; margin-top: 4px; }
.skeleton-line--short { width: 58%; }
.skeleton-line--btn { width: 36%; height: 34px; margin-top: 14px; border-radius: 12px; }

@keyframes mvSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.footer:empty,
.footer:not(.footer--ready) {
  min-height: 280px;
  background: var(--color-text, #111827);
}

.footer.footer--ready:empty {
  min-height: 0;
}

.place-not-found {
  text-align: center;
  padding: 64px 24px;
}

.place-not-found h1 {
  margin-bottom: 20px;
}

.place-section__address {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat { padding: 16px 12px; }
  .admin-stat__num { font-size: 26px; }
  .admin-item__place { grid-template-columns: 1fr; }
  .admin-item__thumb,
  .place-photo-ph--admin { width: 100%; height: 160px; }
}

/* ============================================
   AUTH PAGE (вход / регистрация)
   ============================================ */
.header--solid {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header--about {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header--about.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header--about .nav__link {
  color: rgba(255, 255, 255, 0.92);
}

.header--about .nav__link:hover,
.header--about .nav__link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header--about .lang-switcher {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header--about .lang-switcher__btn {
  color: rgba(255, 255, 255, 0.92);
  border-color: transparent;
}

.header--about .lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header--about .lang-switcher__btn--active {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: none;
}

.header--about .header__login,
.header--about .header__admin {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.header--about .header__admin:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.header--about .burger span {
  background: #fff;
}

/* Слоган серый по умолчанию — на тёмном фото шапки его не видно */
.header--about .logo__tagline {
  color: rgba(255, 255, 255, 0.92);
}

.header--about.header--scrolled .nav__link {
  color: var(--color-text);
}

.header--about.header--scrolled .nav__link:hover,
.header--about.header--scrolled .nav__link--active {
  color: var(--color-green-dark);
  background: var(--color-green-light);
}

.header--about.header--scrolled .lang-switcher {
  background: var(--color-surface);
  border-color: var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header--about.header--scrolled .lang-switcher__btn {
  color: var(--color-text-secondary);
  border-color: transparent;
}

.header--about.header--scrolled .lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
  color: var(--color-green);
  background: rgba(255, 255, 255, 0.7);
}

.header--about.header--scrolled .lang-switcher__btn--active {
  background: var(--color-green-light);
  color: var(--color-green-dark);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.header--about.header--scrolled .header__login,
.header--about.header--scrolled .header__admin {
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.header--about.header--scrolled .header__admin:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.header--about.header--scrolled .burger span {
  background: var(--color-text);
}

.header--about.header--scrolled .logo__tagline {
  color: var(--color-text-secondary);
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 32px) 20px 48px;
  background-image:
    linear-gradient(135deg, rgba(6, 78, 59, 0.78) 0%, rgba(20, 83, 45, 0.55) 45%, rgba(0, 0, 0, 0.45) 100%),
    url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1920&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.auth-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  padding: 40px 32px;
  text-align: center;
}

.auth-card__badge {
  display: inline-flex;
  margin-bottom: 16px;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.auth-card__subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field[hidden] {
  display: none;
}

/* Индикатор сложности пароля */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -6px;
}

.pw-strength[hidden] {
  display: none;
}

.pw-strength__bar {
  flex: 1;
  height: 6px;
  background: var(--color-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.pw-strength__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.pw-strength__label {
  font-size: 12px;
  font-weight: 600;
  min-width: 92px;
  text-align: right;
  color: var(--color-text-secondary);
}

.pw-strength--weak .pw-strength__bar span { background: #ef4444; }
.pw-strength--medium .pw-strength__bar span { background: #f59e0b; }
.pw-strength--good .pw-strength__bar span { background: #84cc16; }
.pw-strength--strong .pw-strength__bar span { background: #16a34a; }
.pw-strength--weak .pw-strength__label { color: #ef4444; }
.pw-strength--medium .pw-strength__label { color: #d97706; }
.pw-strength--good .pw-strength__label { color: #4d7c0f; }
.pw-strength--strong .pw-strength__label { color: var(--color-green-dark); }

.auth-field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-field__pw {
  position: relative;
}

.auth-field__pw input {
  padding-right: 44px;
}

.auth-field__pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted, #94a3b8);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-field__pw-icon {
  display: block;
  pointer-events: none;
}

.auth-field__pw-slash {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.auth-field__pw-toggle--visible .auth-field__pw-slash {
  opacity: 1;
}

.auth-field__pw-toggle:hover {
  color: var(--color-text-secondary);
}

.auth-field__pw-toggle:focus-visible {
  outline: none;
  color: var(--color-green);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.auth-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
}

.auth-hint {
  margin: -8px 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  text-align: left;
}

.auth-field--code input {
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.35em;
  padding-right: 14px;
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.auth-forgot,
.auth-resend {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
  background: none;
  border: none;
  cursor: pointer;
}

.auth-forgot:hover,
.auth-resend:hover {
  text-decoration: underline;
}

.auth-resend:disabled {
  color: var(--color-text-muted);
  cursor: default;
  text-decoration: none;
}

.auth-form .btn--block {
  margin-top: 4px;
}

.auth-toggle {
  margin-top: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green);
  background: none;
  border: none;
  cursor: pointer;
}

.auth-toggle:hover {
  text-decoration: underline;
}

.auth-avatar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-avatar[hidden] {
  display: none !important;
}

.auth-avatar__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.auth-avatar__preview {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-green-light);
  background: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-avatar__preview img {
  width: 48px;
  height: 48px;
  display: block;
}

.auth-avatar__scroll {
  max-height: min(42vh, 280px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.auth-avatar__loading {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.auth-avatar__cat {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 6px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.auth-avatar__row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 6px 0 10px;
}

.auth-avatar__btn {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.auth-avatar__btn img {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
}

.auth-avatar__btn:hover {
  background: var(--color-green-light);
  transform: scale(1.06);
}

.auth-avatar__btn--active {
  border-color: var(--color-green);
  background: var(--color-green-light);
}

@media (max-width: 520px) {
  .auth-avatar__row {
    grid-template-columns: repeat(6, 1fr);
  }

  .auth-avatar__scroll {
    max-height: min(38vh, 240px);
  }
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */
.account-page {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.account-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-green-light);
  flex-shrink: 0;
  overflow: hidden;
}

.account-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-hero__avatar--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-light);
}

.account-hero__avatar--emoji img {
  width: 64px;
  height: 64px;
  display: block;
}

.account-hero__avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-green-dark);
  background: var(--color-green-light);
}

.account-hero__info {
  flex: 1;
  min-width: 200px;
}

.account-hero__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
}

.account-hero__email {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.account-hero__member {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

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

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.account-stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  text-align: center;
}

.account-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
  margin-bottom: 6px;
}

.account-stat__label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.account-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.account-tab::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-green);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.account-tab:hover {
  color: var(--color-text);
}

.account-tab--active {
  color: var(--color-green);
}

.account-tab--active::after {
  transform: scaleX(1);
}

.account-panel {
  display: none;
}

.account-panel--active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

.account-reviews {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.account-review {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.account-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.account-review__place {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}

.account-review__stars {
  display: inline-flex;
  gap: 2px;
}

.account-review__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.settings-form__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.settings-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  align-items: start;
}

.settings-form__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.settings-form__col--password {
  padding-left: 32px;
  border-left: 1px solid var(--color-border);
}

.settings-form__subtitle {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.settings-form > .btn {
  align-self: flex-start;
}

@media (max-width: 800px) {
  .settings-form__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .settings-form__col--password {
    padding-left: 0;
    padding-top: 8px;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
}

.settings-field__hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.settings-field__hint--block {
  margin: -8px 0 0;
}

.settings-status {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

.settings-status--ok {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.settings-status--err {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.settings-field__input[readonly] {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: default;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.settings-field__input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.settings-field__input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.settings-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-green);
}

/* Мои места: шапка вкладки и статусы */
.account-places-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: static;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.2;
}

.place-card__image-wrap > .status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.status-badge--pending { background: #f59e0b; }
.status-badge--approved { background: var(--color-green); }
.status-badge--rejected { background: #ef4444; }
.status-badge--deleted { background: #64748b; }
.status-badge--unpublished { background: #94a3b8; }

/* Пустые состояния и подсказки кабинета */
.account-empty-msg {
  padding: 32px;
  text-align: center;
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
}

.account-empty-msg .btn {
  margin-top: 16px;
}

/* ============================================
   ФОРМА ОТЗЫВА (страница места)
   ============================================ */
.review-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 28px;
}

.review-form__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.review-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  margin-bottom: 16px;
}

.rating-input input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rating-input label {
  font-size: 28px;
  line-height: 1;
  color: var(--color-surface-2);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.rating-input label::before { content: '★'; }

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #fbbf24;
}

.review-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
  margin-bottom: 16px;
}

.review-form textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.review-form__note {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.review-form__note a {
  color: var(--color-green);
  font-weight: 600;
}

.review-form__success {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green-dark);
}

.review-form__error {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
}

.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.review-item:last-child { border-bottom: none; }

.review-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.review-item__author {
  font-weight: 700;
  color: var(--color-text);
}

.review-item__stars { color: #fbbf24; letter-spacing: 1px; }

.review-item__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .catalog-page,
  .account-page {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 56px;
  }

  .catalog-filters {
    padding: 18px;
  }

  .catalog-more-filters {
    display: block;
    margin-top: 4px;
    margin-bottom: 8px;
  }

  .filter-group--city .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .filter-group--city .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-group--city .filter-chip {
    flex-shrink: 0;
  }

  .catalog-filter-panel:not([hidden]) {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
  }

  .catalog-toolbar {
    margin-top: 14px;
    align-items: flex-start;
  }

  .catalog-toolbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-sort__label {
    display: none;
  }

  .catalog-sort__select {
    flex: 1;
    min-width: 0;
    max-width: 220px;
  }

  .filter-group--category:last-child {
    margin-bottom: 0;
  }

  .account-hero {
    padding: 22px;
    text-align: center;
    justify-content: center;
  }

  .account-hero__info {
    text-align: center;
  }

  .account-hero__actions {
    width: 100%;
  }

  .account-stats {
    gap: 10px;
  }

  .account-stat {
    padding: 16px 10px;
  }

  .account-stat__num {
    font-size: 26px;
  }

  .account-tab {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* ============================================
   ABOUT PAGE (о проекте / SEO landing)
   ============================================ */
.about-page {
  overflow-x: clip;
}

.about-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 56px) 0 120px;
  color: var(--color-white);
  text-align: center;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 12, 0.35) 0%, rgba(8, 20, 12, 0.55) 45%, rgba(8, 20, 12, 0.88) 100%);
}

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

.about-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.about-hero__content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-hero__content--in {
  opacity: 1;
  transform: translateY(0);
}

.about-hero .breadcrumbs--light {
  justify-content: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.about-hero .section-tag--light {
  margin-bottom: 20px;
}

.about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
  max-width: 720px;
}

.about-hero__subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.75;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 56ch;
  text-wrap: pretty;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.about-stats {
  margin-top: -72px;
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px 20px;
  text-align: center;
}

.about-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--color-green-dark);
  margin-bottom: 8px;
  line-height: 1;
}

.about-stat__label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  text-wrap: balance;
}

.about-section {
  padding: 72px 0;
}

.about-section--muted {
  background: var(--color-surface);
}

.about-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.about-section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 12px;
  text-wrap: balance;
}

.about-section__desc,
.about-section__lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-top: 16px;
  text-wrap: pretty;
}

.about-split__text .about-section__title {
  text-align: left;
}

.about-split__text .about-section__desc {
  text-align: left;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-split__visual img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.about-benefit {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 0;
}

.about-benefit__icon svg {
  display: block;
}

.about-benefit__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.about-benefit__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  flex: 1;
  text-wrap: pretty;
}

.about-audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.about-audience__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--color-green-light) 0%, var(--color-white) 100%);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.about-audience__card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-green-dark);
  text-wrap: balance;
}

.about-audience__card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  flex: 1;
  text-wrap: pretty;
}

.about-destinations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  min-height: 200px;
}

.about-dest {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}

.about-dest:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-dest img,
.about-dest .place-photo-ph--dest {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--color-surface-2);
  height: auto;
  min-height: 140px;
}

.about-dest__body {
  padding: 18px 18px 20px;
}

.about-dest__body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.about-dest__body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.about-dest__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green-dark);
}

.about-destinations__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.about-faq-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.about-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  margin-bottom: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) var(--faq-delay, 0s),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) var(--faq-delay, 0s),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.about-faq__item--visible {
  opacity: 1;
  transform: translateY(0);
}

.about-faq__item[open] {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.1);
}

.about-faq__item summary {
  padding: 20px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
  text-wrap: pretty;
}

.about-faq__item summary:hover {
  background: var(--color-green-light);
}

.about-faq__item[open] summary {
  color: var(--color-green-dark);
  background: rgba(22, 163, 74, 0.06);
}

.about-faq__item summary::-webkit-details-marker { display: none; }

.about-faq__item summary::after {
  content: '';
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 2.5V11.5M2.5 7H11.5' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.about-faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--color-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 2.5V11.5M2.5 7H11.5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.about-faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-faq__item[open] .about-faq__body {
  grid-template-rows: 1fr;
}

.about-faq__body-inner {
  overflow: hidden;
}

.about-faq__body-inner p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.about-final {
  padding: 0 0 88px;
}

.about-final__card {
  text-align: center;
  padding: 56px 40px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about-final__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-final__title,
.about-final__desc,
.about-final__actions {
  position: relative;
  z-index: 1;
}

.about-final__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.about-final__desc {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 28px;
}

.about-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 1024px) {
  .about-stats__grid,
  .about-benefits,
  .about-audience,
  .about-destinations {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-split__visual { order: -1; }
}

@media (max-width: 640px) {
  .about-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) 0 100px;
  }

  .about-hero__title {
    max-width: none;
  }

  .about-stats {
    margin-top: -48px;
    padding-bottom: 48px;
  }

  .about-stat {
    min-height: 100px;
    padding: 22px 16px;
  }

  .about-stat__label {
    max-width: none;
  }

  .about-faq__item summary {
    padding: 16px 18px;
    font-size: 15px;
  }

  .about-stats__grid,
  .about-benefits,
  .about-audience,
  .about-destinations {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 52px 0;
  }

  .about-hero__actions,
  .about-final__actions {
    flex-direction: column;
  }

  .about-hero__actions .btn,
  .about-final__actions .btn {
    width: 100%;
  }

  .about-final__card {
    padding: 40px 24px;
  }
}

/* --- Photo upload & gallery --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-upload {
  display: inline-flex;
  cursor: pointer;
}

.photo-upload__btn {
  pointer-events: none;
}

.photo-upload__meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.photo-upload--tile {
  display: inline-flex;
}

.photo-upload__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: 28px;
  font-weight: 300;
  color: var(--color-text-muted);
  background: var(--color-bg);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.photo-upload:hover .photo-upload__tile,
.photo-upload:focus-within .photo-upload__tile {
  border-color: var(--color-green);
  color: var(--color-green);
  background: var(--color-green-light);
}

.photo-upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.photo-upload-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.photo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-form__photos {
  margin: 16px 0;
}

.review-form__hint {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 4px 0 0;
}

.review-card__photos {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.review-card__photos::-webkit-scrollbar {
  display: none;
}

.review-card__photo {
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  width: 72px;
  height: 72px;
  background: var(--color-surface);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.review-card__photo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.review-card--highlight {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35);
  border-radius: var(--radius-lg);
}

.review-card__text--expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.photo-gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.photo-gallery-carousel__scroller {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0 4px;
}

.photo-gallery-carousel__scroller::-webkit-scrollbar {
  display: none;
}

.photo-gallery-carousel__scroller:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.photo-gallery__strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
}

.photo-gallery-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.photo-gallery-carousel__controls[hidden] {
  display: none;
}

.photo-gallery-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-gallery-carousel__btn:hover:not(:disabled) {
  border-color: var(--color-green);
  color: var(--color-green);
  box-shadow: var(--shadow-sm);
}

.photo-gallery-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.visitor-photos {
  margin: 4px 0 20px;
  min-width: 0;
  max-width: 100%;
}

#place-photo-gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.visitor-photos__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.photo-gallery__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
}

.photo-gallery__item {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--color-surface);
  scroll-snap-align: start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.photo-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

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

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.photo-lightbox.is-open {
  display: flex;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.photo-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 92vh;
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: photoLightboxIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes photoLightboxIn {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.photo-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.photo-lightbox__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.photo-lightbox__media {
  position: relative;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 55vh;
  touch-action: pan-y;
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.photo-lightbox__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.photo-lightbox__nav--prev { left: 12px; }
.photo-lightbox__nav--next { right: 12px; }

.photo-lightbox__counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
}

.photo-lightbox__img {
  max-width: 100%;
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.photo-lightbox__info {
  padding: 20px 20px 28px;
  border-top: 1px solid var(--color-border);
}

.photo-lightbox__author {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.photo-lightbox__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-lightbox__text--full {
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (min-width: 640px) {
  .photo-lightbox {
    align-items: center;
    padding: 24px;
  }

  .photo-lightbox__panel {
    border-radius: var(--radius-xl);
    max-height: 88vh;
  }
}

/* ===== Map explorer (catalog → map) ===== */
.map-body {
  overflow: hidden;
}

.map-page {
  padding: 0;
  padding-top: var(--header-height);
  background: var(--color-bg);
}

.map-explorer {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  height: calc(100dvh - var(--header-height));
  min-height: 480px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--color-border);
}

/* Компактный прозрачный хедер карты — только мобилка */
@media (max-width: 900px) {
  .map-body {
    --header-height: 60px;
  }

  .header--map {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .header--map.header--scrolled {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header--map .logo__lockup,
  .header--map .logo__text,
  .header--map .logo__tagline {
    display: none !important;
  }

  .header--map .logo {
    gap: 0;
  }

  .header--map .logo__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.16);
  }

  .header--map .lang-switcher {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(229, 231, 235, 0.9);
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.1);
  }

  .header--map .burger {
    width: 44px;
    height: 44px;
    padding: 14px 11px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.1);
  }

  .header--map .burger span {
    width: 22px;
  }

  .map-page {
    padding-top: 0;
  }
}

/* Handle only visible on mobile sheet */
.map-sheet__grab {
  display: none;
}

.map-sheet__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0 4px;
  border: 0;
  background: transparent;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.map-sheet__handle:active {
  cursor: grabbing;
}

.map-sheet__handle-bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #c4c9d4;
}

.map-sidebar__head {
  flex-shrink: 0;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--color-border);
}

.map-sidebar__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.map-sidebar__back:hover {
  color: var(--color-green);
}

.map-sidebar__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 4px;
}

.map-sidebar__subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.map-search-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.map-search-row .map-search {
  flex: 1;
  min-width: 0;
}

.map-fav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.map-fav-btn:hover {
  color: #e11d48;
}

.map-fav-btn[aria-pressed="true"] {
  color: #e11d48;
}

.map-fav-btn__icon--fill {
  display: none;
}

.map-fav-btn[aria-pressed="true"] .map-fav-btn__icon--outline {
  display: none;
}

.map-fav-btn[aria-pressed="true"] .map-fav-btn__icon--fill {
  display: block;
}

.map-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text-muted);
  transition: border-color var(--transition-fast);
}

.map-search:focus-within {
  border-color: var(--color-green);
  color: var(--color-green);
}

.map-search__input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  min-width: 0;
  -webkit-user-select: text;
  user-select: text;
}

/* iOS: font < 16px на focus зумит всю страницу */
@media (max-width: 900px) {
  .map-search__input {
    font-size: 16px;
  }
}

.map-count {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.map-count strong {
  color: var(--color-text);
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
}

.map-sidebar__list {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  padding: 8px 2px 28px 8px;
  display: block;
  min-height: 0;
  background: #fff;
  scrollbar-width: auto;
  scrollbar-color: #64748b #e2e8f0;
}

.map-sidebar__list::-webkit-scrollbar {
  width: 12px;
}

.map-sidebar__list::-webkit-scrollbar-track {
  background: #e2e8f0;
}

.map-sidebar__list::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 6px;
  border: 2px solid #e2e8f0;
  min-height: 48px;
}

.map-sidebar__list::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.map-sidebar__list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.map-sidebar__empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--color-text-secondary);
}

.map-sidebar__empty h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-text);
}

.map-sidebar__empty p {
  margin: 0;
  font-size: 13px;
}

.map-list-item {
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0 6px 6px 0;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  overflow: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.map-list-item:hover {
  background: var(--color-surface);
}

.map-list-item--active {
  background: var(--color-green-light);
  border-color: rgba(22, 163, 74, 0.35);
}

.map-list-item--no-coords {
  opacity: 0.85;
}

.map-list-item__head {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.map-list-item__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--color-surface);
}

.map-list-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.map-list-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-list-item__meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.map-list-item__hint {
  font-size: 11px;
  color: var(--color-text-muted);
}

.map-list-item__chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.map-list-item--active .map-list-item__chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.map-list-item__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px 76px;
  animation: mapDetailsIn 0.2s ease;
}

.map-list-item__details[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .map-list-item__details,
  .map-list-item__chevron {
    display: none !important;
  }

  .map-list-item--active {
    background: var(--color-green-light);
    border-color: rgba(22, 163, 74, 0.35);
  }
}

@keyframes mapDetailsIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.map-list-item__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.map-list-item__address {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.map-list-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-list-item__tags .tag {
  font-size: 11px;
  padding: 3px 8px;
}

.map-list-item__open {
  align-self: flex-start;
  margin-top: 2px;
  text-decoration: none;
}

.map-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--color-surface);
}

.map-root {
  width: 100%;
  height: 100%;
  z-index: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.map-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.map-zoom__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  outline: none;
}

.map-zoom__btn + .map-zoom__btn {
  border-top: 1px solid var(--color-border);
}

.map-zoom__btn:focus,
.map-zoom__btn:focus-visible,
.map-zoom__btn:active {
  outline: none;
  color: var(--color-text);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .map-zoom__btn:hover {
    color: var(--color-green-dark);
    background: var(--color-green-light);
  }
}

.map-list-toggle {
  display: none;
  position: absolute;
  left: 14px;
  bottom: 18px;
  z-index: 700;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.map-list-toggle:focus,
.map-list-toggle:focus-visible {
  outline: none;
}

.map-list-toggle__icon--map {
  display: none !important;
}

.map-list-toggle.is-showing-map .map-list-toggle__icon--list {
  display: none !important;
}

.map-list-toggle.is-showing-map .map-list-toggle__icon--map {
  display: block !important;
}

.map-pin-wrap {
  background: none !important;
  border: none !important;
}

.map-pin {
  display: block;
  color: var(--color-green);
  filter: drop-shadow(0 2px 4px rgba(17, 24, 39, 0.25));
  transition: transform 0.15s ease, color 0.15s ease;
}

.map-pin--active {
  color: #15803d;
  transform: scale(1.12);
}

.map-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.14);
  padding: 0;
  overflow: hidden;
}

.map-leaflet-popup .leaflet-popup-content {
  margin: 12px 14px;
  font-family: var(--font-primary);
}

.map-leaflet-popup .leaflet-popup-tip {
  box-shadow: none;
}

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.map-popup__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.map-popup__meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.map-popup__link {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green);
  text-decoration: none;
}

.map-popup__link:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.catalog-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  border: 1.5px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.catalog-map-link:hover {
  background: #bbf7d0;
  border-color: rgba(22, 163, 74, 0.4);
  color: #166534;
}

@media (max-width: 900px) {
  .map-body {
    overflow: hidden;
  }

  .map-explorer {
    grid-template-columns: 1fr;
    height: 100dvh;
    max-width: none;
  }

  .map-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .map-zoom {
    top: auto;
    right: 12px;
    bottom: calc(186px + 88px);
  }

  .map-sidebar {
    --map-sheet-peek: 186px;
    --map-sheet-half: 48dvh;
    --map-sheet-full: calc(100% - var(--header-height) - 8px);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--map-sheet-peek);
    max-height: var(--map-sheet-full);
    z-index: 600;
    border-right: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.14);
    background: rgba(255, 255, 255, 0.97);
    transition: height 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: height;
    overscroll-behavior: contain;
    padding-top: 0;
  }

  .map-sidebar.map-sidebar--dragging {
    transition: none;
  }

  .map-sidebar[data-sheet="peek"] {
    height: var(--map-sheet-peek);
  }

  .map-sidebar[data-sheet="half"] {
    height: var(--map-sheet-half);
  }

  .map-sidebar[data-sheet="full"] {
    height: var(--map-sheet-full);
  }

  .map-sheet__grab {
    display: block;
    flex-shrink: 0;
  }

  .map-sidebar__head {
    padding: 2px 16px 10px;
    border-bottom: 0;
    touch-action: none;
  }

  .map-sidebar__head .map-search,
  .map-sidebar__head .map-search__input,
  .map-sidebar__head .map-fav-btn {
    touch-action: manipulation;
  }

  .map-sidebar__head .map-sidebar__back {
    touch-action: none;
  }

  /* На мобилке слоган скрыт; «К каталогу» + «Карта мест» всегда с поиском */
  .map-sidebar .map-sidebar__subtitle {
    display: none;
  }

  .map-sidebar .map-sidebar__back {
    margin-bottom: 4px;
  }

  .map-sidebar .map-sidebar__title {
    font-size: 1.15rem;
    margin: 0 0 8px;
  }

  .map-count {
    margin-top: 8px;
  }

  .map-sidebar[data-sheet="peek"] .map-sidebar__list,
  .map-sidebar[data-sheet="peek"] .map-sidebar__empty {
    display: none;
  }

  .map-sidebar__list {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .map-list-toggle {
    display: none !important;
  }
}

/* ===== Help page + tickets ===== */
.help-page {
  padding: calc(var(--header-height) + 40px) 0 80px;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(22, 163, 74, 0.06), transparent 55%),
    var(--color-bg);
}

.help-stage {
  display: grid;
  align-items: start;
}

.help-stage > .help-checking,
.help-stage > .help-guest-wrap,
.help-stage > .help-success-wrap,
.help-stage > .help-workspace {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.help-stage > [hidden] {
  display: none !important;
}

.help-stage:has(> .help-checking:not([hidden])),
.help-stage:has(> .help-guest-wrap:not([hidden])),
.help-stage:has(> .help-success-wrap:not([hidden])) {
  align-items: center;
  min-height: min(48vh, 420px);
}

.help-checking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 16px;
  color: var(--color-text-secondary);
}

.help-checking__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.2);
  border-top-color: var(--color-green);
  animation: mvBootSpin 0.75s linear infinite;
}

.help-guest-wrap,
.help-success-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

.help-guest,
.help-success {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
}

.help-guest::before,
.help-success::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22, 163, 74, 0.08), transparent 70%);
  pointer-events: none;
}

.help-guest > *,
.help-success > * {
  position: relative;
  z-index: 1;
}

.help-guest__visual,
.help-success__visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-guest__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.2);
}

.help-guest__icon,
.help-success__visual {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.help-guest .section-tag,
.help-hero .section-tag {
  margin-bottom: 12px;
}

.help-guest__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.help-guest__desc,
.help-success p {
  margin: 0 auto 22px;
  max-width: 36ch;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.help-guest__actions,
.help-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.help-success h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 800;
}

.help-hero {
  margin: 8px 0 28px;
  max-width: 640px;
}

.help-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--color-text);
}

.help-subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.help-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.help-aside {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.help-tips {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.help-tips__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 14px;
}

.help-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.help-links a:hover {
  color: var(--color-green-dark);
}

.help-tips__note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.help-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-card__footer {
  margin-top: 4px;
}

.help-file {
  font-size: 14px;
}

.help-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-photo-preview[hidden] {
  display: none !important;
}

.help-photo-preview img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* Ticket reply fields (account / admin) */
.help-input,
.help-textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
}

.help-input:focus,
.help-textarea:focus {
  outline: none;
  border-color: var(--color-green);
}

.help-textarea {
  resize: vertical;
  min-height: 100px;
}

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

.ticket-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ticket-item:hover,
.ticket-item--active {
  border-color: rgba(22, 163, 74, 0.4);
  background: var(--color-green-light);
}

.ticket-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.ticket-item__subject {
  font-weight: 700;
  font-size: 15px;
}

.ticket-item__meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.ticket-status--open {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.ticket-thread__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ticket-msg {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.ticket-msg--admin {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.25);
}

.ticket-msg__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.ticket-msg__text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}

.ticket-reply {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ticket-reply__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-photo {
  margin-top: 8px;
  max-width: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* Dedicated ticket page */
.ticket-page {
  padding: calc(var(--header-height) + 32px) 0 80px;
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(22, 163, 74, 0.05), transparent 55%),
    var(--color-bg);
}

.ticket-page__inner {
  max-width: 760px;
}

.ticket-page__loading,
.ticket-page__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: min(40vh, 320px);
  text-align: center;
  color: var(--color-text-secondary);
}

.ticket-page__error h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
}

.ticket-page__loading[hidden],
.ticket-page__error[hidden],
.ticket-detail[hidden],
.ticket-detail__composer[hidden],
.ticket-detail__closed[hidden] {
  display: none !important;
}

.ticket-detail {
  margin-top: 8px;
}

.ticket-detail__head {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.ticket-detail__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.ticket-detail__id {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.ticket-detail__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.ticket-detail__meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.ticket-detail__extra {
  margin-top: 12px;
}

.ticket-detail__thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.ticket-detail__composer {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease, padding 0.28s ease, margin 0.28s ease, border-width 0.28s ease;
}

.ticket-detail__composer--collapse {
  max-height: 0 !important;
  opacity: 0;
  transform: translateY(-8px);
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-width: 0;
  pointer-events: none;
}

.ticket-closed-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.ticket-item {
  text-decoration: none;
}

@media (max-width: 768px) {
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-aside {
    position: static;
  }

  .help-guest,
  .help-success {
    padding: 36px 22px;
  }

  .help-card {
    padding: 22px;
  }

  .ticket-detail__head {
    padding: 18px;
  }
}
