:root {
  --bg: #FFFBF5;
  --surface: #FFFFFF;
  --surface-soft: #F6EFE4;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --coral: #FF542E;
  --coral-hover: #E03A17;
  --teal: #0D7377;
  --teal-bright: #14B8A6;
  --amber: #F59E0B;
  --dark-card: #0F172A;
  --radius: 20px;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 820px; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.brand-link img { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #FF6D42 0%, var(--coral) 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(255, 84, 46, 0.28);
}
.btn-primary:hover { background: var(--coral-hover); }
.btn-dark { background: var(--ink); color: #FFFBF5; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #CBD5E1; background: #F8FAFC; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 11px; }

/* Blur-in & Motion (21st.dev style) */
@keyframes blurFadeIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.reveal { animation: blurFadeIn 0.65s var(--ease-out) both; }
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 64px;
  background: radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.12) 0%, transparent 48%),
              radial-gradient(circle at 12% 72%, rgba(255, 84, 46, 0.10) 0%, transparent 45%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 115, 119, 0.10);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.07;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--coral); }
.hero-lead {
  margin: 0 0 26px;
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.metric-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}
.metric-chip b { display: block; font-size: 16px; color: var(--ink); }
.metric-chip span { color: var(--muted); font-size: 12.5px; }

/* 3D Interactive Phone Showcase */
.phone-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}
.phone-showcase::before {
  content: "";
  position: absolute;
  inset: 6% 12% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24) 0%, rgba(255, 84, 46, 0.14) 52%, transparent 75%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: 292px;
  aspect-ratio: 390 / 844;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(145deg, #1E293B, #0F172A);
  box-shadow: -18px 30px 64px rgba(15, 23, 42, 0.34), 6px 2px 0 #334155, inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  transform: perspective(1150px) rotateY(-13deg) rotateX(4deg);
  transition: transform 0.45s var(--ease-out);
}
.phone-frame:hover { transform: perspective(1150px) rotateY(0deg) rotateX(0deg) translateY(-4px); }
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0F172A;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-controls {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.phone-toggle {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.phone-toggle.active { background: var(--ink); color: #FFFBF5; }

/* Секции и карточки */
.section { padding: 56px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--dark-card); color: #FFFBF5; }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 660px; font-size: 16.5px; }
.section-dark .section-head p { color: #CBD5E1; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.spotlight-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 84, 46, 0.45);
  box-shadow: var(--shadow-lg);
}

/* Интерактивное демо адреса */
.geo-demo-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.geo-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.geo-input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  font-size: 15px;
  background: #FFFBF5;
}
.geo-input:focus { outline: none; border-color: var(--coral); background: #FFFFFF; }
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.preset-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.preset-btn:hover { border-color: var(--coral); color: var(--coral); }
.geo-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.spot-mini {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.spot-mini-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
}
.spot-mini-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.spot-mini-sub { font-size: 13px; color: var(--muted); }
.pro-upsell-bar {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #0F172A, #0D7377);
  color: #FFFBF5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Bento 6 виджетов & Free vs Pro */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.widget-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px;
  color: #FFFBF5;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #F1F5F9;
  color: var(--ink);
}
.pill-ok { background: rgba(16, 185, 129, 0.16); color: #047857; }
.pill-warn { background: #FEF3C7; color: #92400E; }
.pill-pro { background: rgba(255, 84, 46, 0.16); color: #C2410C; }
.pill-popular { background: #FF542E; color: #FFFFFF; margin-bottom: 10px; }
.pill-tag { background: #F1F5F9; color: #334155; margin-bottom: 10px; }
.section-dark .pill-pro { background: rgba(255, 84, 46, 0.24); color: #FFB499; }
.section-dark .pill-ok { background: rgba(16, 185, 129, 0.22); color: #6EE7B7; }

.value-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 4px;
}

.widget-preview {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
}
.wp-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #5EEAD4;
  margin-bottom: 6px;
}
.wp-main { font-size: 15.5px; font-weight: 800; color: #FFFFFF; margin-bottom: 4px; }
.wp-sub { font-size: 12.5px; color: #CBD5E1; }
.wp-list { display: flex; flex-direction: column; gap: 4px; color: #E2E8F0; font-size: 12.5px; }
.wp-list div { display: flex; justify-content: space-between; gap: 8px; }
.wp-list b { color: #FFB499; }

/* Таблица сравнения Free vs Pro */
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.compare-table th, .compare-table td { padding: 14px 16px; font-size: 14.5px; }
.compare-table th { background: #F8FAFC; color: var(--ink); font-weight: 800; }
.compare-table .compare-pro-col {
  background: rgba(255, 84, 46, 0.06);
  color: var(--ink);
  font-weight: 700;
}
.pricing-note {
  text-align: center;
  margin-top: 18px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
}

/* Блог и FAQ-аккордеон */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card-img { width: 100%; height: 136px; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 700; color: var(--coral); line-height: 1; }
.faq-item[open] summary::after { content: "-"; }
.faq-body { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Переключатель тарифов (21st.dev 27096 style) */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.pricing-seg {
  display: inline-flex;
  background: #EAE2D6;
  padding: 5px;
  border-radius: 999px;
  gap: 4px;
  flex-wrap: wrap;
}
.pricing-seg button {
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}
.pricing-seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.plan-card.highlighted {
  border-color: var(--coral);
  box-shadow: 0 22px 54px rgba(255, 84, 46, 0.16);
}
.plan-price { font-size: 38px; font-weight: 900; margin: 12px 0 4px; letter-spacing: -0.02em; }
.plan-old { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.plan-period { color: #334155; font-size: 13.5px; font-weight: 600; }
.plan-list { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.plan-list li::before { content: "• "; color: var(--coral); font-weight: 900; }

/* Города и статьи */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.city-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.city-card img { width: 100%; height: 146px; object-fit: cover; display: block; }
.city-card-body { padding: 16px; }
.city-card-body h3 { margin: 0 0 6px; font-size: 18px; }
.city-card-body p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Формы, кабинеты, таблицы, админка */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  font-size: 15px;
  background: #FFFFFF;
}
.alert {
  padding: 13px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.alert.error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.alert.success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.alert.info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.kpi-num { font-size: 28px; font-weight: 900; color: var(--ink); }
.kpi-lbl { font-size: 13px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.list-stack { display: flex; flex-direction: column; gap: 12px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { padding: 8px 10px; border-radius: 10px; border: 1px solid #CBD5E1; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.code-box { background: #0F172A; color: #E2E8F0; padding: 12px 14px; border-radius: 12px; font-size: 13px; overflow-x: auto; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; }

/* Футер */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 44px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-grid h4 { color: #FFFBF5; margin: 0 0 12px; font-size: 15px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 13.5px;
  color: #CBD5E1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero-grid, .bento-grid, .pricing-grid, .admin-grid, .footer-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cities-grid { grid-template-columns: 1fr; }
  .eyebrow { width: 100%; justify-content: center; text-align: center; font-size: 12.5px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .phone-showcase { gap: 18px; }
  .phone-frame { width: 256px; transform: none; }
  .brand-link img { height: 28px; }
  .header-inner { gap: 8px; min-height: 60px; }
  .header-cta { gap: 6px; }
  .header-cta .btn-sm { padding: 7px 10px; font-size: 12.5px; }
  .compare-table { table-layout: fixed; width: 100%; }
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 12.5px; overflow-wrap: anywhere; }
  .compare-table th:first-child, .compare-table td:first-child { width: 34%; }
  .compare-table th:nth-child(2), .compare-table td:nth-child(2) { width: 31%; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3) { width: 35%; }
}
