/* ═══════════════════════════════════════════════════
   NICHE.CSS — Shared styles for all niche landing pages
   Local SEO Guardian · mapaudit.com.ua
═══════════════════════════════════════════════════ */

:root {
  --paper: #FAF8F3; --paper-alt: #F3F0E8;
  --ink: #1A1A1A; --ink-muted: #4A4A4A; --ink-subtle: #6B6B6B;
  --rule-base: #D6D3CD; --red: #C8102E;
  --dark: #0F1923; --dark-alt: #1A2633;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter Tight', -apple-system, sans-serif;
  --s-2: 8px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--paper); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--red); } a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── Typography ── */
.display-xl { font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; }
.display-lg { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.display-md { font-family: var(--font-serif); font-weight: 500; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; }
.kicker { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block; }
.body-lg { font-size: 17px; line-height: 1.75; color: var(--ink-muted); }
.accent { font-family: var(--font-serif); font-style: italic; color: var(--red); }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section-inner { padding-top: 72px; padding-bottom: 72px; }
.section-divider { border: none; border-top: 1px solid var(--rule-base); }
.bg-paper { background: var(--paper); }
.bg-paper-alt { background: var(--paper-alt); }
.bg-dark { background: var(--dark); color: #FAF8F3; }
.text-center { text-align: center; }

/* ── Header ── */
.site-header {
  background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0; position: sticky; top: 0; z-index: 100;
}
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FAF8F3; }
.logo__text { font-family: var(--font-sans); font-weight: 600; font-size: 16px; }
.logo__guardian { font-family: var(--font-serif); font-style: italic; color: var(--red); font-weight: 400; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  padding: 10px 20px; border-radius: 2px; white-space: nowrap;
  transition: opacity 0.2s;
}
.header-cta:hover { opacity: 0.88; color: #fff; }
.back-link { font-size: 13px; color: rgba(250,248,243,0.55); text-decoration: none; }
.back-link:hover { color: #FAF8F3; }
.cta-secondary {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(250,248,243,0.8);
  text-decoration: none; font-family: var(--font-sans); font-weight: 500;
  border-radius: 2px; white-space: nowrap; transition: border-color 0.2s, color 0.2s;
}
.cta-secondary:hover { border-color: #fff; color: #fff; }

/* ── Desktop nav ── */
.header-nav { display: none; gap: 24px; align-items: center; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: rgba(250,248,243,0.7); text-decoration: none; transition: color 0.2s; }
.header-nav a:hover { color: #FAF8F3; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle { background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: rgba(250,248,243,0.7); padding: 0; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.nav-dropdown__toggle:hover { color: #FAF8F3; }
.nav-dropdown__menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--rule-base); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); min-width: 230px; z-index: 200; padding: 8px 0; }
.nav-dropdown__menu a { display: block; padding: 10px 20px; font-size: 14px; color: var(--ink-muted) !important; text-decoration: none; transition: background 0.15s, color 0.15s; }
.nav-dropdown__menu a:hover { background: var(--paper-alt); color: var(--red) !important; }
.nav-dropdown__divider { border: none; border-top: 1px solid var(--rule-base); margin: 4px 0; }

/* ── Hamburger ── */
.menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; cursor: pointer; font-size: 18px; color: #FAF8F3; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* ── Mobile menu ── */
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px 0; z-index: 99; }
.mobile-menu a { display: block; padding: 12px 24px; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: rgba(250,248,243,0.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #FAF8F3; }

/* ── Buttons ── */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  padding: 16px 32px; border-radius: 2px; border: none; cursor: pointer;
  transition: opacity 0.2s; min-height: 52px;
}
.cta:hover { opacity: 0.88; color: #fff; }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #FAF8F3; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 2px; border: 1px solid rgba(250,248,243,0.35);
  transition: border-color 0.2s, color 0.2s; min-height: 52px;
}
.cta-ghost:hover { border-color: #FAF8F3; color: #FAF8F3; }
.cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--red); text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 2px; border: 1.5px solid var(--red);
  transition: background 0.2s, color 0.2s; min-height: 52px;
}
.cta-outline:hover { background: var(--red); color: #fff; }

/* ══════════════════════════════════════
   BLOCK 1 — HERO
══════════════════════════════════════ */
.hero {
  background: var(--dark);
  padding-top: 80px; padding-bottom: 80px;
  min-height: 90vh; display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero__badge {
  display: inline-block; background: rgba(200,16,46,0.15); color: #f08094;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { color: #FAF8F3; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: #f08094; }
.hero__sub { font-size: 18px; line-height: 1.65; color: rgba(250,248,243,0.72); margin-bottom: 12px; }
.hero__proof { font-size: 14px; color: rgba(250,248,243,0.5); margin-bottom: 32px; }
.hero__proof strong { color: rgba(250,248,243,0.85); }
.hero__cta-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__microcopy { font-size: 12px; color: rgba(250,248,243,0.4); margin-top: 16px; }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; }
.phone-frame {
  background: var(--dark-alt); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 28px; padding: 12px; width: 280px; box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.phone-notch {
  width: 80px; height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 4px; margin: 0 auto 12px;
}
.phone-screen { background: #fff; border-radius: 16px; padding: 16px; }
.tg-header { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.tg-avatar { width: 32px; height: 32px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.tg-name { font-size: 13px; font-weight: 600; color: #111; }
.tg-status { font-size: 11px; color: #aaa; }
.tg-bubble {
  background: #f0f4ff; border-radius: 4px 12px 12px 12px;
  padding: 12px 14px; font-size: 12px; line-height: 1.6; color: #222;
}
.tg-title { font-weight: 700; font-size: 11px; letter-spacing: 0.05em; color: #C8102E; margin-bottom: 8px; }
.tg-row { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; border-bottom: 1px solid #eee; }
.tg-row:last-child { border-bottom: none; }
.tg-badge { display: inline-block; background: #C8102E; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; margin-top: 8px; }

/* ══════════════════════════════════════
   BLOCK 2 — PROBLEM
══════════════════════════════════════ */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.pain-card { text-align: center; }
.pain-card__icon { font-size: 40px; margin-bottom: 16px; display: block; }
.pain-card__stat { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.pain-card__title { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.pain-card__text { font-size: 14px; color: var(--ink-subtle); line-height: 1.6; }
.pain-cta { text-align: center; margin-top: 48px; }

/* ══════════════════════════════════════
   BLOCK 3 — FEATURES
══════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  padding: 28px; border: 1px solid var(--rule-base); border-radius: 4px;
  background: var(--paper);
}
.feature-card__icon { font-size: 28px; margin-bottom: 14px; display: block; }
.feature-card__title { font-family: var(--font-serif); font-weight: 500; font-size: 18px; margin-bottom: 10px; }
.feature-card__text { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

/* ══════════════════════════════════════
   BLOCK 4 — HOW IT WORKS
══════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 48px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 28px; left: calc(16.67% + 16px);
  width: calc(66.67% - 32px); height: 1px; background: var(--rule-base); z-index: 0;
}
.step { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--red);
  margin: 0 auto 20px;
}
.step__time { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); display: block; margin-bottom: 8px; }
.step__title { font-family: var(--font-serif); font-weight: 500; font-size: 18px; margin-bottom: 10px; }
.step__text { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

/* ══════════════════════════════════════
   BLOCK 5 — STATS
══════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.stat-block { text-align: center; padding: 32px; border: 1px solid var(--rule-base); border-radius: 4px; }
.stat-block__num { font-family: var(--font-serif); font-size: 48px; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat-block__label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.stat-block__sub { font-size: 13px; color: var(--ink-subtle); }

/* ══════════════════════════════════════
   BLOCK 6 — GUARANTEES
══════════════════════════════════════ */
.guarantee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.guarantee-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--paper); border: 1px solid var(--rule-base); border-radius: 4px; }
.guarantee-item__icon { font-size: 24px; flex-shrink: 0; }
.guarantee-item__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.guarantee-item__text { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }

/* ══════════════════════════════════════
   BLOCK 7 — PRICING
══════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pricing-card {
  padding: 32px 28px; border: 1.5px solid var(--rule-base); border-radius: 4px;
  background: var(--paper); display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.pricing-card--popular { border-color: var(--red); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; padding: 4px 14px; border-radius: 10px; white-space: nowrap;
}
.pricing-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 20px; margin-bottom: 8px; }
.pricing-card__price { margin-bottom: 6px; }
.pricing-card__amount { font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--ink); }
.pricing-card__period { font-size: 14px; color: var(--ink-subtle); margin-left: 4px; }
.pricing-card__desc { font-size: 13px; color: var(--ink-subtle); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-base); }
.pricing-features { list-style: none; margin-bottom: 24px; flex: 1; }
.pricing-features li { font-size: 14px; color: var(--ink-muted); padding: 6px 0; padding-left: 22px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.pricing-features li.disabled { color: var(--ink-subtle); }
.pricing-features li.disabled::before { content: '✗'; color: var(--rule-base); }
.review-boost-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 24px;
  background: var(--paper-alt); border: 1px solid var(--rule-base); border-radius: 4px;
  font-size: 14px;
}
.review-boost-banner__icon { font-size: 20px; }
.review-boost-banner__link { margin-left: auto; color: var(--red); text-decoration: none; font-weight: 500; white-space: nowrap; }
.review-boost-banner__link:hover { color: var(--ink); }

/* ══════════════════════════════════════
   BLOCK 8 — FAQ
══════════════════════════════════════ */
.faq-list { margin-top: 40px; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--rule-base); }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink);
  gap: 16px;
}
.faq-item button:hover { color: var(--red); }
.faq-icon { font-size: 20px; flex-shrink: 0; color: var(--red); }
.faq-answer { padding-bottom: 20px; font-size: 15px; color: var(--ink-muted); line-height: 1.7; }
.faq-footer { margin-top: 32px; font-size: 15px; color: var(--ink-muted); }
.faq-footer a { color: var(--red); }

/* ══════════════════════════════════════
   BLOCK 9 — FINAL CTA (dark)
══════════════════════════════════════ */
.final-cta { background: var(--dark); padding: 80px 0; }
.final-cta h2 { color: #FAF8F3; margin-bottom: 16px; }
.final-cta .sub { font-size: 16px; color: rgba(250,248,243,0.6); margin-bottom: 40px; }
.final-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.audit-form {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 36px 40px; max-width: 560px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: rgba(250,248,243,0.7); margin-bottom: 6px; letter-spacing: 0.04em; }
.form-group input {
  width: 100%; padding: 13px 16px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: #FAF8F3; font-family: var(--font-sans); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.form-group input::placeholder { color: rgba(250,248,243,0.3); }
.form-group input:focus { border-color: var(--red); }
.form-submit {
  width: 100%; padding: 16px; background: var(--red); color: #fff; border: none;
  border-radius: 3px; font-family: var(--font-sans); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s; margin-top: 8px;
}
.form-submit:hover { opacity: 0.88; }
.form-microcopy { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.form-microcopy span { font-size: 12px; color: rgba(250,248,243,0.4); }
.form-microcopy span::before { content: '✓ '; color: rgba(250,248,243,0.3); }

/* ── Footer ── */
.site-footer { background: #000; color: rgba(250,248,243,0.5); padding: 32px 24px; text-align: center; font-size: 13px; }
.site-footer a { color: rgba(250,248,243,0.6); text-decoration: none; }
.site-footer a:hover { color: #FAF8F3; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone-wrap { order: -1; }
  .pain-grid { grid-template-columns: 1fr; gap: 24px; }
  .pain-card { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .pain-card__icon { font-size: 28px; flex-shrink: 0; margin-bottom: 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .final-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .audit-form { padding: 24px 20px; max-width: 100%; }
}
