/* ─────────────────────────────────────────────
   MindMarketing — Shared Stylesheet
   ───────────────────────────────────────────── */

/* 1. DESIGN TOKENS */
:root {
  --accent:       #d94f2a;
  --accent-bg:    #f7e9e5;
  --dark:         #141414;
  --light:        #f9f8f6;
  --white:        #ffffff;
  --border:       #e8e6e1;
  --muted:        #5a5a5a;
  --faint:        #9a9a9a;
  --radius:       14px;
  --radius-sm:    8px;
  --max-w:        1200px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.13);
  --nav-h:        68px;
  --transition:   0.2s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
img, table, video, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 3. LAYOUT */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }
.section    { padding: 88px 0; }
.section--white { background: var(--white); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--mid   { background: #f2f0ec; }

/* 4. TYPOGRAPHY */
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.025em;
}
.section-lead {
  font-size: 17px; color: var(--muted); line-height: 1.75;
  max-width: 520px; margin-top: 14px;
}

/* 5. NAV */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(249,248,246,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--dark);
  letter-spacing: -0.3px; text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; color: white; font-weight: 800; font-size: 16px;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important; color: white !important;
  padding: 9px 20px !important; border-radius: var(--radius-sm) !important;
  font-weight: 600 !important; transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85 !important; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--dark); align-items: center;
}
.nav-drawer {
  display: none; background: white;
  border-top: 1px solid var(--border);
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  box-shadow: var(--shadow-md);
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 14px 24px;
  font-size: 16px; font-weight: 500; color: var(--dark);
  border-bottom: 1px solid #f0ede8;
}
.nav-drawer .nav-drawer-cta {
  display: block; margin: 12px 16px 16px;
  background: var(--accent); color: white !important;
  padding: 14px 20px; border-radius: 10px;
  font-weight: 700; text-align: center; border: none;
}

/* 6. FOOTER */
.site-footer { background: var(--dark); color: white; padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px; margin-bottom: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: white; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 6px; }
.footer-col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.62); font-size: 14px;
  margin-bottom: 9px; transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; font-size: 12px; color: rgba(255,255,255,0.28);
}

/* 7. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
  white-space: normal; word-break: break-word;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(217,79,42,0.32); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--light); color: var(--dark); border: 1px solid var(--border); }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 16px; padding: 16px 36px; }

/* 8. CARDS */
.card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

/* 9. BLOG CARDS */
.blog-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.blog-card-stripe { height: 5px; flex-shrink: 0; }
.blog-card-body {
  padding: 22px 22px 26px;
  display: flex; flex-direction: column; flex: 1;
}
.blog-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.blog-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.72; flex: 1; }
.blog-card-footer {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #f0ede8;
  display: flex; justify-content: space-between; align-items: center;
}
.blog-card-date { font-size: 12px; color: var(--faint); }
.blog-card-cta { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* 10. TAG BADGES */
.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 10px; border-radius: 100px;
}
.tag-ads      { color: #d94f2a; background: #f7e9e5; }
.tag-seo      { color: #2563eb; background: #eff6ff; }
.tag-platform { color: #d97706; background: #fffbeb; }
.tag-analytics{ color: #16a34a; background: #f0fdf4; }

/* 11. BREADCRUMBS */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--faint); padding: 18px 0;
}
.breadcrumbs a { color: var(--faint); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs-sep { color: #ccc; user-select: none; }
.breadcrumbs-current { color: var(--muted); }

/* 12. ARTICLE TYPOGRAPHY */
.prose h2 {
  font-size: clamp(20px, 2.2vw, 24px); font-weight: 700;
  margin: 40px 0 14px; letter-spacing: -0.01em; line-height: 1.3;
}
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.prose p { font-size: 16px; color: #323232; line-height: 1.88; margin-bottom: 20px; }
.prose ul, .prose ol { margin-bottom: 20px; padding-left: 0; list-style: none; }
.prose li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px; color: #323232; line-height: 1.75; margin-bottom: 12px;
}
.prose li::before {
  content: ''; flex-shrink: 0; margin-top: 4px;
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l4 4 6-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.prose blockquote {
  border-left: 4px solid var(--accent); padding: 12px 20px;
  margin: 28px 0; background: var(--accent-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--muted);
}
.prose strong { font-weight: 700; color: var(--dark); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* 13. FORMS */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: var(--font); font-size: 14px;
  background: white; outline: none; color: var(--dark);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success h3 { font-size: 22px; font-weight: 800; margin: 12px 0 8px; }
.form-success p { color: var(--muted); font-size: 15px; }

/* 14. FAQ */
.faq-item {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: border-color var(--transition); margin-bottom: 8px;
}
.faq-item.open { border-color: var(--accent); }
.faq-btn {
  width: 100%; padding: 18px 22px; background: none; border: none;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-family: var(--font); text-align: left; min-height: 60px;
}
.faq-question { font-weight: 600; font-size: 15px; color: var(--dark); line-height: 1.4; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #f0ede8; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition);
  font-size: 20px; font-weight: 700; color: var(--muted); line-height: 1;
}
.faq-item.open .faq-icon { background: var(--accent); color: white; transform: rotate(45deg); }
.faq-body { display: none; padding: 0 22px 18px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-body { display: block; }

/* 15. HERO */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero { background: white; padding: 96px 0 80px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-bg); border: 1px solid rgba(217,79,42,0.2);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
  max-width: 100%;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-eyebrow-text { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 22px;
  overflow-wrap: break-word;
  hyphens: none;
}
/* Захист окремих слів від розриву — додай клас .nowrap до <span> */
.nowrap { white-space: nowrap; }
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px); color: var(--muted);
  line-height: 1.75; max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; padding-top: 40px; margin-top: 40px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.hero-stat-label { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* 16. GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* 17. PROCESS STEPS */
.step-number {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg); display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 800; color: var(--accent);
  margin-bottom: 16px; flex-shrink: 0;
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* 18. SERVICE CARD */
.service-card { padding: 24px 28px; }
.service-price { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.service-name  { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.service-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }
.service-link  { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 14px; border-top: 1px solid #f0ede8; width: 100%; }

/* 19. TRUST BAR */
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-check {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 2px;
  color: white; font-size: 13px; font-weight: 700;
}
.trust-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.trust-desc  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* 20. TABS */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
  background: white; color: var(--muted);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.tab.active { background: var(--accent); color: white; box-shadow: 0 4px 16px rgba(217,79,42,0.28); }

/* 21. CONTACT SECTION */
.contact-info-item { display: flex; gap: 14px; align-items: center; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent);
}
.contact-label { font-size: 11px; color: var(--faint); margin-bottom: 2px; }
.contact-val   { font-weight: 600; font-size: 15px; }

/* 22. MOBILE CTA BAR */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 16px; background: white;
  border-top: 1px solid var(--border); z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}

/* ─────────────────────────────────────────────
   23. RESPONSIVE
   ───────────────────────────────────────────── */

/* Планшет горизонтальний — ≤1200px */
@media (max-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Планшет — ≤1024px */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Планшет вертикальний — ≤900px */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Мобільний — ≤768px */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Layout */
  .container { padding: 0 16px; }
  .section    { padding: 56px 0; }

  /* Nav */
  .nav-links  { display: none; }
  .nav-burger { display: flex; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 56px 0 40px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); }
  .hero-subtitle { font-size: 15px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-stats {
    gap: 0; padding-top: 24px; margin-top: 24px;
    display: grid; grid-template-columns: repeat(3, 1fr);
  }
  .hero-stats > div { padding: 0 12px 0 0; }
  .hero-stats > div + div { padding-left: 12px; border-left: 1px solid var(--border); }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 4px; }

  /* Typography */
  .section-title { font-size: clamp(22px, 6vw, 36px); }
  .section-lead  { font-size: 15px; max-width: 100%; }

  /* Buttons */
  .btn-lg { font-size: 15px; padding: 14px 24px; }

  /* Mobile CTA bar */
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 76px; }

  /* Misc */
  .section--hide-mobile { display: none; }
}

/* Малий мобільний — ≤600px */
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(3) { border-left: none; padding-left: 0; }
}

/* Мобільний малий — ≤480px */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  /* Tabs */
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; font-size: 13px; padding: 8px 14px; }

  /* Cards */
  .service-card { padding: 18px 20px; }

  /* FAQ */
  .faq-btn { padding: 14px 16px; }
  .faq-question { font-size: 14px; }

  /* Nav logo */
  .nav-logo span { display: none; }
}

/* Дуже малий екран — ≤360px */
@media (max-width: 360px) {
  .hero-title { font-size: 24px; }
  .btn { font-size: 14px; padding: 12px 18px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats > div { padding: 0; border-left: none !important; }
}

/* 24. UTILITY */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--muted); }
.text-faint   { color: var(--faint); }
.text-white   { color: white; }
.text-center  { text-align: center; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }  .mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.border { border: 1px solid var(--border); }
.bg-white { background: white; }
.bg-light { background: var(--light); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
