/* ==========================================================================
   Ильхам Ахмедов — организация торжеств. Стили (mobile-first)
   ========================================================================== */

:root {
  --cream: #f8f3ec;
  --cream-2: #f1e8dc;
  --cream-3: #e8dccb;
  --paper: #fffdf9;
  --ink: #241c1a;
  --ink-2: #4b3f3b;
  --muted: #837570;
  --line: rgba(60, 35, 30, 0.12);
  --bordo: #8b2635;
  --bordo-dark: #6f1d2a;
  --bordo-soft: rgba(139, 38, 53, 0.08);
  --terracotta: #c2553d;
  --gold: #b8935a;
  --whatsapp: #2e9e5b;
  --telegram: #2a8fd4;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(80, 45, 30, 0.06), 0 1px 2px rgba(80, 45, 30, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(80, 45, 30, 0.22), 0 2px 6px rgba(80, 45, 30, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(80, 45, 30, 0.3), 0 8px 20px -8px rgba(80, 45, 30, 0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--mobile-bar-h, 0px) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--bordo); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Типографика-помощники
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bordo);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.75); }

.section { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 50%, var(--cream) 100%); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__title {
  font-size: clamp(30px, 4.6vw, 44px);
  color: var(--ink);
}
.section__lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
}
@media (min-width: 768px) {
  .section { padding: 104px 0; }
  .section__head { margin-bottom: 56px; }
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__icon { flex: none; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--bordo);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(139, 38, 53, 0.6);
}
.btn--primary:hover { background: var(--bordo-dark); box-shadow: 0 14px 30px -10px rgba(139, 38, 53, 0.7); }

.btn--outline {
  border-color: rgba(139, 38, 53, 0.35);
  color: var(--bordo);
  background: transparent;
}
.btn--outline:hover { background: var(--bordo-soft); border-color: var(--bordo); }

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #26884d; }
.btn--telegram { background: var(--telegram); color: #fff; }
.btn--telegram:hover { background: #217ab8; }

.btn.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  overflow: visible;
  background: rgba(248, 243, 236, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(80, 45, 30, 0.35);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bordo);
  color: var(--cream);
  box-shadow: 0 8px 18px -8px rgba(139, 38, 53, 0.7);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.brand__tagline {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) { .brand__tagline { display: none; } }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--bordo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-active { color: var(--bordo); }
.nav__mobile-contacts { display: none; }

.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px;
  height: 1.6px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav {
    /* backdrop-filter шапки делает её containing block для fixed-потомков,
       поэтому высоту задаём явно, а не через bottom: 0 */
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 20px calc(32px + var(--mobile-bar-h, 0px));
    background: var(--cream);
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link {
    font-family: var(--font-serif);
    font-size: 26px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__mobile-contacts {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 28px;
  }
}
@media (min-width: 1024px) {
  .burger { display: none; }
  .header__phone { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 32px 0 calc(28px + var(--mobile-bar-h, 0px));
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.hero__blob--1 {
  width: 520px; height: 520px;
  right: -180px; top: -140px;
  background: radial-gradient(circle, rgba(194, 85, 61, 0.35), rgba(194, 85, 61, 0) 70%);
}
.hero__blob--2 {
  width: 480px; height: 480px;
  left: -220px; bottom: -200px;
  background: radial-gradient(circle, rgba(184, 147, 90, 0.3), rgba(184, 147, 90, 0) 70%);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(38px, 7.5vw, 68px);
  line-height: 1.05;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--bordo);
}
.hero__lead {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__facts {
  display: grid;
  gap: 14px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
}
.hero__facts span { font-size: 13px; color: var(--muted); }

.hero__visual {
  position: relative;
  display: none;
}
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 200px 200px 24px 24px;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(160deg, #f6ebdf 0%, #ead7c3 45%, #d9b9a5 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__frame::before {
  content: '';
  position: absolute; inset: 14px;
  border-radius: 190px 190px 16px 16px;
  border: 1px solid rgba(139, 38, 53, 0.25);
}
.hero__frame-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  color: var(--bordo);
  padding: 32px;
}
.hero__ornament { width: 58%; }
.hero__frame-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  text-align: center;
  color: var(--ink-2);
  line-height: 1.3;
}
.hero__card {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: float 7s ease-in-out infinite;
}
.hero__card-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bordo); font-weight: 600;
}
.hero__card-value { font-family: var(--font-serif); font-size: 17px; }
.hero__card--1 { left: -6%; top: 22%; animation-delay: 0s; }
.hero__card--2 { right: -8%; top: 46%; animation-delay: -2.5s; }
.hero__card--3 { left: 4%; bottom: 8%; animation-delay: -4.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 560px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero__visual { display: block; }
  .hero__lead { margin-top: 22px; font-size: 17px; }
  .hero__facts { margin-top: 40px; padding-top: 28px; }
}

/* --------------------------------------------------------------------------
   Бегущая строка «Нам доверяют»
   -------------------------------------------------------------------------- */
.trust {
  padding: 8px 0 32px;
}
.trust__head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 22px;
}
.trust__title {
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.8);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.marquee__item:hover { background: #fff; border-color: rgba(139, 38, 53, 0.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.marquee__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bordo);
  box-shadow: 0 0 0 4px var(--bordo-soft);
  flex: none;
}
.marquee__metro { font-family: var(--font-sans); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 20px; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__item { white-space: normal; text-align: left; max-width: 100%; }
  .marquee__item--clone { display: none; }
}

/* --------------------------------------------------------------------------
   Карта и список площадок
   -------------------------------------------------------------------------- */
.venues { padding-top: 40px; }
.venues__layout {
  display: grid;
  gap: 20px;
}
.venues__map-wrap { order: 2; }
.venues__list-wrap { order: 1; min-width: 0; }

.venues__list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.venues__count { font-family: var(--font-serif); font-size: 18px; white-space: nowrap; }
.venues__hint { font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 479px) { .venues__hint { display: none; } }
.venues__error {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bordo-soft);
  color: var(--bordo);
  font-size: 14px;
}
.map__canvas { z-index: 0; }
.map__placeholder { z-index: 1; }

.venues__list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 14px 4px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-3) transparent;
}
.venues__list::-webkit-scrollbar { height: 6px; }
.venues__list::-webkit-scrollbar-thumb { background: var(--cream-3); border-radius: 3px; }

.vcard {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
  cursor: pointer;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vcard.is-active { border-color: var(--bordo); box-shadow: 0 0 0 3px var(--bordo-soft), var(--shadow-md); }
.vcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  overflow: hidden;
}
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--bordo);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.vcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard__title { font-size: 19px; }
.vcard__short { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.vcard__meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: auto; padding-top: 10px;
  font-size: 13px; color: var(--muted);
}
.vcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vcard__meta svg { width: 14px; height: 14px; color: var(--bordo); }
.vcard__price { color: var(--ink); font-weight: 600; }

/* Плейсхолдер фото — градиент с инициалом */
.ph {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, 0.35), transparent 55%);
}
.ph::after {
  content: '';
  position: absolute;
  width: 140%; height: 60%;
  left: -20%; bottom: -35%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  transform: rotate(-8deg);
}
.ph span { position: relative; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); }
.ph--0 { background: linear-gradient(135deg, #8b2635, #c2553d); }
.ph--1 { background: linear-gradient(135deg, #7a3b52, #b8935a); }
.ph--2 { background: linear-gradient(135deg, #5e2a3a, #a9513f); }
.ph--3 { background: linear-gradient(135deg, #9a4a3a, #d19a6a); }
.ph--4 { background: linear-gradient(135deg, #6d3a47, #c98765); }

.map {
  position: relative;
  width: 100%;
  min-height: 220px;
  height: 48vw;
  max-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  isolation: isolate;
}
.map > .ymaps3x0--map, .map [class*="ymaps3x0--map"] { border-radius: inherit; }
.map__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--bordo);
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(180deg, #f5ecdf, #ecdfcd);
  padding: 24px;
  transition: opacity 0.4s;
}
.map__placeholder.is-hidden { opacity: 0; pointer-events: none; }
.map__moscow {
  position: absolute;
  width: min(120%, 620px);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--bordo);
  opacity: 0.9;
}
.map__placeholder-text {
  position: relative;
  padding: 22px 26px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
  max-width: 340px;
  color: var(--ink);
}
.map__placeholder-text p { font-family: var(--font-serif); font-size: 18px; line-height: 1.3; }
.map__placeholder-text small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.map__placeholder-pin {
  display: block;
  width: 14px; height: 14px; margin: 0 auto 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--bordo);
  box-shadow: 0 0 0 5px var(--bordo-soft);
}
.map__placeholder--error .map__placeholder-text p { color: var(--ink-2); }

/* Маркер Яндекс.Карты */
.ymarker {
  position: relative;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 8px 12px rgba(80, 30, 30, 0.35));
  transition: transform 0.25s var(--ease);
}
.ymarker:hover, .ymarker.is-active { transform: translate(-50%, -100%) scale(1.08); z-index: 10; }
.ymarker__label {
  margin-bottom: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid rgba(139, 38, 53, 0.25);
  box-shadow: var(--shadow-sm);
}
.ymarker.is-active .ymarker__label { background: var(--bordo); color: #fff; border-color: var(--bordo); }
.ymarker__pin {
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, var(--terracotta), var(--bordo));
  border: 2px solid #fff;
  display: grid; place-items: center;
}
.ymarker__pin::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
}

@media (min-width: 1024px) {
  .venues { padding-top: 56px; }
  .venues__layout {
    grid-template-columns: 400px 1fr;
    gap: 28px;
    align-items: stretch;
  }
  .venues__map-wrap { order: 2; }
  .venues__list-wrap { order: 1; display: flex; flex-direction: column; }
  .venues__list {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
    max-height: 600px;
    padding: 4px 10px 4px 4px;
    margin: 0 -4px;
  }
  .vcard { flex: none; flex-direction: row; }
  .vcard__media { flex: 0 0 132px; width: 132px; aspect-ratio: auto; min-height: 120px; }
  .ph { font-size: 32px; }
  .vcard__badge { top: 10px; left: 10px; padding: 4px 8px; font-size: 10px; }
  .vcard__body { padding: 14px 16px; }
  .vcard__title { font-size: 17px; }
  .vcard__short { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .map { height: 100%; min-height: 600px; max-height: none; }
}

/* --------------------------------------------------------------------------
   Форматы
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: 16px;
}
.fcard {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.fcard::before {
  content: '';
  position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--bordo), var(--terracotta), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fcard:hover::before { transform: scaleX(1); }
.fcard__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--bordo-soft);
  color: var(--bordo);
  margin-bottom: 20px;
}
.fcard__icon svg { width: 34px; height: 34px; }
.fcard__title { font-size: 22px; margin-bottom: 10px; }
.fcard__text { color: var(--ink-2); font-size: 15px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* --------------------------------------------------------------------------
   Почему обращаются
   -------------------------------------------------------------------------- */
.why__layout { display: grid; gap: 40px; }
.why__intro .btn { margin-top: 28px; }
.why__list { display: flex; flex-direction: column; }
.why__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  line-height: 1.2;
}
.why__title { font-size: 21px; margin-bottom: 6px; }
.why__item p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 1024px) {
  .why__layout { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
  .why__intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .why__item { grid-template-columns: 64px 1fr; padding: 28px 0; }
}

/* --------------------------------------------------------------------------
   Как проходит работа
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bordo);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(139, 38, 53, 0.7);
}
.step__title { font-size: 21px; margin-bottom: 10px; }
.step__text { color: var(--ink-2); font-size: 15px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .step::after {
    content: '';
    position: absolute;
    top: 50px; right: -22px;
    width: 22px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }
  .step:last-child::after { display: none; }
}

/* --------------------------------------------------------------------------
   Контакты
   -------------------------------------------------------------------------- */
.contacts { padding-bottom: 56px; }
.contacts__card {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 40px 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(194, 85, 61, 0.55), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(184, 147, 90, 0.35), transparent 60%),
    linear-gradient(150deg, #7a1f2e 0%, #8b2635 50%, #5e1a25 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contacts__title { color: #fff; }
.contacts__lead { margin-top: 16px; color: rgba(255, 255, 255, 0.82); font-size: 17px; max-width: 520px; }
.contacts__phone {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s;
}
.contacts__phone:hover { border-color: #fff; }
.contacts__hours { margin-top: 12px; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.contacts__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contacts__buttons .btn { border-color: transparent; }
.contacts__aside { display: none; color: rgba(255, 255, 255, 0.9); }
.contacts__ornament { width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 900px) {
  .contacts__card { grid-template-columns: 1.3fr 0.7fr; padding: 64px; align-items: center; }
  .contacts__aside { display: block; }
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */
.footer {
  padding: 32px 0 calc(24px + var(--mobile-bar-h, 0px));
  border-top: 1px solid var(--line);
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 14px;
}
.footer__inner { display: grid; gap: 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__name { font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.footer__tagline { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a:hover, .footer__social a:hover, .footer__contacts a:hover { color: var(--bordo); }
.footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer__contacts > a { font-weight: 600; color: var(--ink); }
.footer__social { display: flex; gap: 16px; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: start; }
  .footer__contacts { align-items: flex-end; text-align: right; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Мобильная нижняя панель
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 243, 236, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.35s var(--ease);
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px;
  border-radius: 14px;
  font-weight: 600; font-size: 15px;
  color: #fff;
}
.mobile-bar__btn--call { background: var(--bordo); }
.mobile-bar__btn--wa { background: var(--whatsapp); }
.mobile-bar__btn.is-hidden { display: none; }
.mobile-bar.is-single { grid-template-columns: 1fr; }
body { --mobile-bar-h: 72px; }
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  body { --mobile-bar-h: 0px; }
}

/* --------------------------------------------------------------------------
   Панель площадки (drawer / bottom sheet)
   -------------------------------------------------------------------------- */
.panel-overlay {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(36, 28, 26, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s;
}
.panel-overlay[hidden] { display: none; }
.panel-overlay.is-visible { opacity: 1; }

.panel {
  position: fixed;
  z-index: 160;
  left: 0; right: 0; bottom: 0;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s;
}
.panel.is-open { transform: translateY(0); visibility: visible; }
.panel__grip {
  width: 44px; height: 4px;
  border-radius: 2px;
  background: var(--cream-3);
  margin: 10px auto 0;
  flex: none;
}
.panel__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: background-color 0.2s, transform 0.2s;
}
.panel__close:hover { background: #fff; transform: rotate(90deg); }
.panel__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
}
.gallery {
  position: relative;
  margin: 0 16px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
}
.gallery__viewport { position: absolute; inset: 0; }
.gallery__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery__slide.is-current { opacity: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { font-size: 64px; }
.gallery__nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background-color 0.2s, opacity 0.2s;
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 6px;
}
.gallery__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.2s, transform 0.2s;
}
.gallery__dot.is-current { background: #fff; transform: scale(1.25); }
.gallery.is-single .gallery__nav, .gallery.is-single .gallery__dots { display: none; }

.panel__body { padding: 22px 20px 24px; }
.panel__short { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bordo); font-weight: 600; }
.panel__title { font-size: 26px; margin-top: 8px; }
.panel__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.panel__fact {
  padding: 12px 12px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.panel__fact dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel__fact dd { margin-top: 4px; font-family: var(--font-serif); font-size: 16px; line-height: 1.25; }
.panel__fact dd small { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 11px; color: var(--muted); }
.panel__address {
  margin-top: 18px;
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}
.panel__address::before {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  margin-top: 6px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--bordo);
}
.panel__desc { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.panel__group { margin-top: 22px; }
.panel__group[hidden] { display: none; }
.panel__subtitle { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--bordo-soft);
  color: var(--bordo);
  font-weight: 500;
}
.tags--soft .tag { background: var(--cream-2); color: var(--ink-2); }

.panel__actions {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.panel__actions .btn { padding-left: 14px; padding-right: 14px; font-size: 14px; }

@media (min-width: 768px) {
  .panel {
    top: 0; bottom: 0; left: auto; right: 0;
    width: min(480px, 92vw);
    max-height: none;
    border-radius: 24px 0 0 24px;
    transform: translateX(100%);
  }
  .panel.is-open { transform: translateX(0); }
  .panel__grip { display: none; }
  .panel__scroll { padding-top: 16px; }
  .gallery { margin: 0 20px; }
  .panel__body { padding: 26px 24px 28px; }
  .panel__title { font-size: 30px; }
  .panel__actions { padding: 16px 20px; }
}

/* --------------------------------------------------------------------------
   Scroll-reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal--delay { transition-delay: 0.15s; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .why__list .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .why__list .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards-grid .reveal:nth-child(4), .steps .reveal:nth-child(4), .why__list .reveal:nth-child(4) { transition-delay: 0.24s; }
.cards-grid .reveal:nth-child(5), .why__list .reveal:nth-child(5) { transition-delay: 0.32s; }
.cards-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.no-js .reveal, .reduced-motion .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Скрытые элементы контактов, если в config пусто */
[data-wa-link].is-hidden, [data-tg-link].is-hidden { display: none !important; }
