/* ==========================================================================
   dpo.bg — редизайн
   „Джи Ди Пи" ООД — Длъжностно лице по защита на данните (DPO as a Service)
   ========================================================================== */

:root {
  /* Цветова палитра — доверие, професионализъм, съответствие */
  --color-navy-950: #0a1930;
  --color-navy-900: #0f2547;
  --color-navy-800: #163564;
  --color-navy-700: #1f4785;
  --color-blue-600: #2f6fed;
  --color-blue-500: #4a84f2;
  --color-blue-100: #e8f0fe;
  --color-teal-500: #0ea5a0;

  --color-ink: #131c2e;
  --color-body: #47536b;
  --color-muted: #6b7690;
  --color-line: #e3e8f0;
  --color-line-soft: #eef1f7;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fc;
  --color-bg-navy: var(--color-navy-900);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 37, 71, 0.06), 0 1px 1px rgba(15, 37, 71, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 37, 71, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 37, 71, 0.14);

  --container: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--color-navy-950);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--color-body); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-blue-600);
  border-radius: 2px;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-body);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.28);
}
.btn-primary:hover { background: #2a5fd1; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: #fff;
  color: var(--color-navy-900);
  border-color: var(--color-line);
}
.btn-outline:hover { border-color: var(--color-blue-600); color: var(--color-blue-600); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy-950);
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--color-body);
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-navy-950); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--color-blue-600);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy-950);
}
.header-phone svg { color: var(--color-blue-600); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-navy-950);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top right, #10306040 0%, transparent 55%), var(--color-bg);
  padding: 76px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-muted);
}
.hero-trust-item svg { color: var(--color-teal-500); flex-shrink: 0; }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-navy-900), var(--color-navy-950));
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-art-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero-art-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.hero-stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 40px 0;
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo-strip-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.logo-pill {
  padding: 8px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-navy-800);
}

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

/* Prevent CSS Grid/Flexbox "blowout": 1fr/flex tracks default to a minimum
   of their content's min-content size unless min-width:0 is set explicitly. */
.hero-inner, .grid-2, .grid-3, .grid-4, .footer-grid, .stats-band,
.hero-stat-grid, .contact-layout, .form-grid, .process-item,
.header-inner, .header-cta, .cta-band, .logo-strip-inner {
  min-width: 0;
}
.hero-inner > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .footer-grid > *,
.stats-band > *, .hero-stat-grid > *, .contact-layout > *, .form-grid > *,
.process-item > *, .header-cta > * {
  min-width: 0;
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-tile {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-blue-100);
  color: var(--color-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--color-body); }
.card li { margin-bottom: 6px; }

/* ---------- Process ---------- */
.process-list { counter-reset: step; display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.process-item:last-child { border-bottom: none; }
.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy-900);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-band .num { font-size: 2.3rem; font-weight: 800; display: block; }
.stats-band .label { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-navy-800));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; }

/* ---------- Testimonial ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.quote-card p.quote-text {
  font-size: 1.2rem;
  color: var(--color-navy-950);
  font-weight: 500;
  line-height: 1.55;
}
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-blue-100); color: var(--color-blue-600);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-avatar {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-navy-800));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.team-role { color: var(--color-blue-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }

/* ---------- Values ---------- */
.value-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--color-line-soft); }
.value-row:last-child { border-bottom: none; }
.value-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--color-blue-100); color: var(--color-blue-600);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--color-navy-950), var(--color-navy-800));
  color: #fff;
  padding: 64px 0 70px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 620px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px; font-weight: 600;
}
.breadcrumb a:hover { color: #fff; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--color-navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-row .lbl { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-row .val { font-weight: 700; font-size: 1.02rem; }
.contact-row a.val:hover { color: var(--color-blue-500); }

.form-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
/* Label + field conventions follow the standard form pattern (uppercase,
   letter-spaced micro-labels; bordered fields; accent-colored focus ring)
   used across all our sites — see traditionaltrade.bg's contact form. */
.form-field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.form-field .req { color: var(--color-blue-600); text-transform: none; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background: var(--color-bg-alt);
  color: var(--color-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue-600);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--color-body);
  margin: 6px 0 24px;
}
.form-check input { margin-top: 4px; }
.form-check a { color: var(--color-blue-600); font-weight: 600; }
.form-note { font-size: 0.84rem; color: var(--color-muted); margin-top: 14px; text-align: center; }

/* Honeypot — hidden from real visitors, catches basic bots (name kept
   generic on purpose; never display:none, which some bots skip filling). */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Cloudflare Turnstile mount point */
.cf-turnstile { margin: 4px 0 2px; }

/* Success / error banner shown above the form after submit */
.form-status {
  display: none;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status[data-kind="ok"] {
  background: #ecfdf5;
  border-color: var(--color-teal-500);
  color: #065f46;
}
.form-status[data-kind="error"] {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

/* ---------- FAQ (accordion, no-js fallback via <details>) ---------- */
.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  margin-bottom: 12px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-navy-950);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-blue-600);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Map placeholder ---------- */
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  margin-top: 24px;
}
.map-frame iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.center-col { display: flex; flex-direction: column; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    gap: 20px;
  }
  .main-nav.is-open .nav-links { flex-direction: column; gap: 16px; }
  .main-nav.is-open .header-cta { flex-direction: column; align-items: stretch; }
  .main-nav.is-open .header-phone { justify-content: center; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats-band, .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .stats-band { text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
}
