/* ============================================
   Vatan Philadelphia — стили
   Эстетика: сюзане, бухарская вышивка, тёплые тона
   ============================================ */

:root {
  /* Палитра — тёплая, традиционная */
  --ink: #1a1410;              /* тёмный фон / текст */
  --cream: #f5ede1;            /* основной фон */
  --cream-warm: #efe3d0;       /* вторичный фон */
  --terracotta: #b8502e;       /* терракотовый — акцент */
  --terracotta-dark: #8f3e22;
  --saffron: #d98c2b;          /* шафран */
  --indigo: #2b3763;           /* индиго — как на сюзане */
  --indigo-deep: #1a2244;
  --sage: #6b7a4a;             /* тёмно-зелёный */
  --gold: #c89a4a;

  --text: #2b221c;
  --text-muted: #6b5d51;
  --border: rgba(26, 20, 16, 0.12);
  --border-strong: rgba(26, 20, 16, 0.25);

  /* Типографика */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  /* Лёгкая текстура бумаги через noise */
  background-image:
    radial-gradient(ellipse at top left, rgba(217, 140, 43, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(43, 55, 99, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Орнамент сюзане сверху страницы */
.suzani-border {
  height: 24px;
  color: var(--terracotta);
  background: var(--indigo-deep);
  position: relative;
  z-index: 50;
}
.suzani-border svg { height: 100%; width: 100%; display: block; }

/* ============ HEADER ============ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(245, 237, 225, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  color: var(--terracotta);
  display: flex;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--cream-warm);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.lang-btn {
  background: none;
  border: none;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: var(--ink);
  color: var(--cream);
}

/* КНОПКИ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 2px 0 0 var(--terracotta-dark);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 0 var(--terracotta-dark), 0 6px 12px rgba(143, 62, 34, 0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--terracotta);
  opacity: 0.25;
}
.hero-ornament {
  position: absolute;
  height: 400px;
  width: 200px;
  top: 10%;
}
.hero-ornament-left { left: -40px; }
.hero-ornament-right { right: -40px; color: var(--indigo); }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  background: var(--cream-warm);
  border: 1px solid var(--terracotta);
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-title-accent {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

.hero-lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.55;
}

/* Поиск */
.hero-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  background: var(--cream);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 0 0 rgba(26, 20, 16, 0.06), 0 12px 40px rgba(26, 20, 16, 0.08);
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: left;
}
.search-field {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cream-warm);
}
.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.search-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.btn-search {
  padding: 0 32px;
  font-size: 15px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat span {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

/* ============ SECTION HEAD ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============ TRADITIONS ============ */
.traditions {
  padding: 100px 0;
  background: var(--cream-warm);
  position: relative;
}
.traditions::before,
.traditions::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-image:
    radial-gradient(circle at 20px 6px, var(--terracotta) 1.5px, transparent 2px),
    radial-gradient(circle at 40px 6px, var(--indigo) 1.5px, transparent 2px);
  background-size: 40px 12px;
  opacity: 0.35;
}
.traditions::before { top: 0; }
.traditions::after { bottom: 0; }

.tradition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tradition-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tradition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26, 20, 16, 0.2);
}
.tradition-card-big {
  background: var(--indigo-deep);
  color: var(--cream);
  border-color: var(--indigo-deep);
  transform: translateY(-8px);
}
.tradition-card-big:hover {
  transform: translateY(-12px);
}
.tradition-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.9;
}
.tradition-card-big .tradition-num {
  color: var(--saffron);
}
.tradition-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tradition-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px !important;
}
.tradition-card-big .tradition-sub { color: var(--saffron); }
.tradition-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.tradition-card-big p { color: rgba(245, 237, 225, 0.75); }

/* ============ VENDORS ============ */
.vendors {
  padding: 100px 0;
}
.vendor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--ink);
}
.filter-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

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

.vendor-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.vendor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(26, 20, 16, 0.25);
  border-color: var(--terracotta);
}
.vendor-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--indigo-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vendor-image svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.vendor-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.vendor-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vendor-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.vendor-area {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vendor-area::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
}
.vendor-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.vendor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}
.vendor-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.vendor-rating::before {
  content: '★';
  color: var(--saffron);
  font-size: 16px;
}
.vendor-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-style: italic;
}
.vendor-langs {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.vendor-lang-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--cream-warm);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============ PLANNER ============ */
.planner {
  padding: 100px 0;
  background: var(--indigo-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.planner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(217, 140, 43, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184, 80, 46, 0.12) 0%, transparent 40%);
  pointer-events: none;
}
.planner-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  position: relative;
}
.planner-text .section-kicker { color: var(--saffron); }
.planner-text .section-title { color: var(--cream); }
.planner-text .section-lead { color: rgba(245, 237, 225, 0.75); }
.planner-text .section-head { text-align: left; margin-bottom: 32px; }

.planner-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(245, 237, 225, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--saffron));
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 999px;
}
#progress-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.planner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.save-indicator {
  font-size: 12px;
  color: rgba(245, 237, 225, 0.55);
  letter-spacing: 0.02em;
}
.save-indicator.flash {
  color: var(--saffron);
  transition: color 0.4s;
}
.link-btn {
  background: none;
  border: none;
  color: rgba(245, 237, 225, 0.7);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 237, 225, 0.3);
  transition: color 0.2s;
}
.link-btn:hover {
  color: var(--terracotta);
}

.planner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 8px;
}
.planner-list::-webkit-scrollbar { width: 6px; }
.planner-list::-webkit-scrollbar-track { background: transparent; }
.planner-list::-webkit-scrollbar-thumb { background: rgba(245, 237, 225, 0.2); border-radius: 4px; }

.planner-stage {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 0 4px;
  border-bottom: 1px solid rgba(245, 237, 225, 0.15);
  margin-top: 8px;
}
.planner-stage:first-child { margin-top: 0; }

.planner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(245, 237, 225, 0.06);
  border: 1px solid rgba(245, 237, 225, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.planner-item:hover {
  background: rgba(245, 237, 225, 0.1);
  border-color: rgba(245, 237, 225, 0.2);
}
.planner-item input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--terracotta);
  flex-shrink: 0;
}
.planner-item label {
  flex: 1;
  cursor: pointer;
  font-size: 15px;
}
.planner-item.checked label {
  text-decoration: line-through;
  opacity: 0.5;
}

/* ============ COMMUNITY ============ */
.community {
  padding: 100px 0;
}
.community-card {
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--cream) 100%);
  border: 1px solid var(--terracotta);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.community-ornament {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 240px;
  height: 240px;
  color: var(--terracotta);
  opacity: 0.12;
}
.community-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
.community-card p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}
.community-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 237, 225, 0.1);
}
.footer-brand .logo-text strong { color: var(--cream); }
.footer-brand p {
  color: rgba(245, 237, 225, 0.6);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--saffron);
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(245, 237, 225, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(245, 237, 225, 0.5);
}

/* ============ КОНТАКТЫ В КАРТОЧКАХ ============ */
.vendor-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}
.vendor-btn {
  border: 1px solid var(--border-strong);
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.vendor-btn-primary {
  flex: 1;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.vendor-btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.vendor-btn-wa { background: #25D366; color: white; border-color: #25D366; }
.vendor-btn-wa:hover { background: #1da851; border-color: #1da851; }
.vendor-btn-call { background: var(--cream-warm); }
.vendor-btn-call:hover { background: var(--saffron); color: var(--cream); border-color: var(--saffron); }

.vendor-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

/* ============ БУРГЕР И МОБИЛЬНОЕ МЕНЮ ============ */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: all 0.25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0; right: 0; bottom: 0;
  background: var(--cream);
  flex-direction: column;
  padding: 32px 24px;
  z-index: 39;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--terracotta); }

/* ============ КАРТА ============ */
.map-section {
  padding: 100px 0;
  background: var(--cream-warm);
}
.map-container {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px -16px rgba(26, 20, 16, 0.15);
}
.map-svg {
  width: 100%;
  height: 500px;
  position: relative;
}
.map-marker {
  transition: transform 0.2s;
}
.map-marker:hover {
  transform: scale(1.2);
}
.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(245, 237, 225, 0.95);
  backdrop-filter: blur(6px);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 12px;
  font-weight: 500;
}
.map-legend > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ============ МОДАЛКИ ============ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.65);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fade-in 0.2s ease;
}
.modal.open { display: flex; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--cream);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: modal-up 0.3s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
@keyframes modal-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(245, 237, 225, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--terracotta); color: var(--cream); }

/* Вендорная модалка */
.vm-hero {
  height: 200px;
  position: relative;
}
.vm-hero svg { width: 100%; height: 100%; }
.vm-body { padding: 32px; }
.vm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}
.vm-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.vm-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.vm-area {
  font-size: 14px;
  color: var(--text-muted);
}
.vm-rating-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.vm-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}
.vm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--cream-warm);
  border-radius: 12px;
}
.vm-stat {
  text-align: center;
}
.vm-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.vm-stat span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.vm-langs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.vm-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.vm-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vm-contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.vm-wa { background: #25D366; color: white; }
.vm-call { background: var(--ink); color: var(--cream); }
.vm-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366); color: white; }
.vm-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 14px;
  background: var(--cream-warm);
  border-radius: 8px;
  margin: 0;
  line-height: 1.5;
}

/* Форма заявки */
.modal-card-form { max-width: 600px; }
.form-head { padding: 32px 32px 8px; }
.form-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 8px;
}
.form-head p { color: var(--text-muted); font-size: 14px; }
.application-form {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.application-form label {
  display: block;
}
.application-form label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.application-form textarea { resize: vertical; min-height: 80px; }
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.form-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status-pending { background: var(--cream-warm); color: var(--text); }
.form-status-success { background: rgba(107, 122, 74, 0.15); color: #4a5733; border: 1px solid var(--sage); }
.form-status-error { background: rgba(184, 80, 46, 0.1); color: var(--terracotta-dark); border: 1px solid var(--terracotta); }

/* ============ RESPONSIVE — переопределения ============ */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .btn-cta-header { display: none; }
  .tradition-grid { grid-template-columns: repeat(2, 1fr); }
  .tradition-card-big { transform: none; }
  .tradition-card-big:hover { transform: translateY(-4px); }
  .vendor-grid { grid-template-columns: repeat(2, 1fr); }
  .planner-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .map-svg { height: 380px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 14px 20px; gap: 12px; }
  .hero { padding: 50px 0 60px; }
  .hero-ornament { opacity: 0.12; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .vendor-grid { grid-template-columns: 1fr; }
  .tradition-grid { grid-template-columns: 1fr; }
  .community-card { padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .lang-btn { padding: 5px 8px; font-size: 10px; }
  .map-svg { height: 320px; }
  .map-legend { grid-template-columns: 1fr; font-size: 11px; padding: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .vm-head { flex-direction: column; }
  .vm-rating-block { flex-direction: row; align-items: center; gap: 12px; }
  .vm-body, .form-head, .application-form { padding-left: 20px; padding-right: 20px; }
  .modal { padding: 20px 12px; }
}

/* Анимации на появление */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge, .hero-title, .hero-lead, .hero-search, .hero-stats {
  animation: fade-up 0.7s ease both;
}
.hero-title { animation-delay: 0.08s; }
.hero-lead { animation-delay: 0.16s; }
.hero-search { animation-delay: 0.24s; }
.hero-stats { animation-delay: 0.32s; }

/* ===== LOGO LINK ===== */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  margin-bottom: 12px;
}
.logo-link:hover .logo-text strong { color: var(--saffron); }
