:root {
  --bg: #f6f8fc;
  --text: #0f172a;
  --muted: #475569;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --line: rgba(226, 232, 240, 1);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --success: #0f766e;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: clip;
}

/* Keep body copy readable, avoid overly bold paragraphs */
main {
  font-size: 1.06rem;
}

main p,
main li {
  font-weight: 400;
  line-height: 1.62;
}

main strong {
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.2px;
}

.logo span,
.logo-text span {
  color: var(--primary);
}

.logo-img {
  height: 78px;
  width: auto;
  display: block;
}

.logo-text {
  display: none;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.lang-link {
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(199, 210, 254, 0.9);
  background: rgba(255, 255, 255, 0.65);
  padding: 8px 12px;
  border-radius: 999px;
  color: #1e3a8a;
}

.lang-link:hover {
  border-color: rgba(165, 180, 252, 1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  width: 46px;
  height: 46px;
}

.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(219, 234, 254, 0.55) 0%, transparent 70%);
  padding: 0 0 56px;
}

.hero-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 40px;
}

.hero-banner__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: min(70vw, 560px);
  max-height: 680px;
  background: #0f172a;
}

.hero-banner__slides {
  position: relative;
  width: 100%;
  height: min(70vw, 560px);
  max-height: 680px;
}

.hero-banner__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* По-светъл слой само върху снимката; надписът остава отгоре */
.hero-banner__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.26) 45%,
    rgba(15, 23, 42, 0.3) 100%
  );
  pointer-events: none;
}

.hero-banner__slide img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner__caption {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: min(92%, 42rem);
  margin: 0;
  padding: 12px 20px;
  max-width: 42rem;
  text-align: center;
  background: transparent;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  font-size: clamp(17px, 3.2vw, 26px);
  line-height: 1.3;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-banner__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-banner__nav:hover {
  background: rgba(37, 99, 235, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-banner__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-banner__nav--prev {
  left: min(4%, 20px);
}

.hero-banner__nav--next {
  right: min(4%, 20px);
}

.hero-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.hero-banner__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-banner__dot[aria-selected="true"] {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.15);
}

.hero-banner__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner__slide {
    transition: none;
  }
}

.hero .container.hero-grid {
  padding-top: 38px;
}

.hero-grid {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: rgba(29, 78, 216, 1);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(31px, 5vw, 48px);
  line-height: 1.1;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
}

h3 {
  margin-top: 0;
}

.lead {
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 11px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: #c7d2fe;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.7);
}

.hero-card,
.card,
.step,
.contact-form {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: var(--radius);
}

.hero-card {
  padding: 22px;
}

.hero-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.section {
  padding: 78px 0;
}

.section-intro {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 24px;
}

.muted {
  background: var(--bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

/* Better readability in ESPD explanation block at 100% zoom */
#what-is-espd p,
#what-is-espd li {
  font-weight: 450;
  line-height: 1.62;
  letter-spacing: 0.005em;
}

#what-is-espd .section-intro {
  font-size: 1.03rem;
  line-height: 1.68;
}

.card {
  padding: 20px;
}

.card:hover,
.step:hover {
  border-color: rgba(165, 180, 252, 1);
  transform: translateY(-1px);
}

.card,
.step {
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  will-change: transform;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-marker {
  position: relative;
  display: grid;
  place-items: start center;
}

.timeline-item:after {
  content: "";
  position: absolute;
  left: 27px;
  top: 38px;
  bottom: -20px;
  border-left: 2px solid rgba(59, 130, 246, 0.35);
}

.timeline-item:last-child:after {
  display: none;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(37, 99, 235, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1d4ed8;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12);
}

.timeline-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0 0;
}

.timeline-content p {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  opacity: 0.9;
}

.muted .timeline-content p {
  color: var(--text);
}

/* Status-tracker look on desktop */
@media (min-width: 860px) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    padding-top: 10px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: calc(100% / 12);
    right: calc(100% / 12);
    top: 28px;
    height: 3px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.32);
  }

  .timeline-item {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 0 6px;
  }

  .timeline-marker {
    width: 100%;
  }

  .timeline-marker:after {
    display: none;
  }

  .timeline-item:after {
    display: none;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
  }

  .timeline-content {
    padding: 0;
    max-width: 220px;
  }

  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
  }
}

.step {
  padding: 18px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.cta {
  background: #0f172a;
  color: #fff;
}

.cta p {
  color: #cbd5e1;
}

.cta-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-list {
  padding-left: 18px;
  color: #374151;
}

.contact-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.recaptcha-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 8px 0 2px;
}

.g-recaptcha {
  transform: scale(0.985);
  transform-origin: 0 0;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkbox input {
  width: auto;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--success);
}

.form-error {
  color: #b91c1c;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-site-nav {
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #0b3aa5;
}

.policy {
  padding: 6px 0;
}

.policy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.policy h2 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.policy h3 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.policy p {
  margin: 10px 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.policy ul {
  margin: 8px 0 12px;
  padding-left: 18px;
}

.policy li {
  margin: 6px 0;
  color: var(--muted);
}

.policy .small-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cta-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .logo-img {
    height: 62px;
  }

  .nav-wrap {
    min-height: 84px;
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 4%;
    top: 62px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    width: 200px;
  }

  .main-nav.open {
    display: flex;
    z-index: 30;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 0 0 44px;
  }

  .hero .container.hero-grid {
    padding-top: 28px;
  }

  .hero-banner {
    margin-bottom: 28px;
  }

  .hero-banner__viewport,
  .hero-banner__slides {
    min-height: 260px;
    height: 58vw;
    max-height: 420px;
  }

  .hero-banner__caption {
    padding: 10px 16px;
    width: min(94%, 100%);
    font-size: clamp(14px, 4vw, 18px);
  }

  .hero-banner__nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  main {
    font-size: 1rem;
  }
}

/* Cookie consent (GDPR / analytics opt-in) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.97);
  color: #e2e8f0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.35);
}

.cookie-consent-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.cookie-consent-text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.footer-links .js-cookie-settings {
  color: inherit;
  opacity: 0.92;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-consent-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
