/* =========================================================
   ROOT VARIABLES
   Централизирани цветове, размери и ритъм
========================================================= */
:root {
  --blue: #13437d;
  --red: #be211f;
  --bg: #f5f7fb;
  --text: #1f2430;
  --muted: rgba(31, 36, 48, 0.68);
  --border: rgba(0, 0, 0, 0.08);

  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-nav: 0 10px 24px rgba(15, 23, 42, 0.06);

  --radius-sm: 10px;
  --radius-lg: 14px;

  --max: 1200px;

  --pad-x: 20px;
  --pad-y: 18px;
}

/* =========================================================
   RESET / BASE
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================================================
   COMMON LAYOUT HELPERS
========================================================= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* =========================================================
   GENERIC LINKS (извън менюто)
========================================================= */
a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--red);
}

/* =========================================================
   BUTTONS (изрично – не за навигация)
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;
  border: 0;

  background: var(--blue);
  color: #fff;

  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;

  box-shadow: 0 4px 12px rgba(19, 67, 125, 0.22);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(190, 33, 31, 0.24);
}

/* =========================================================
   MAIN NAV
   Единствения sticky елемент + blur
========================================================= */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: rgba(245, 247, 251, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-nav);
}

/* вътрешна подредба */
.main-nav-inner {
  width: 100%;
  margin: 0;

  padding: 12px 80px; /* контрол на отстоянията от екрана */

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   BRAND / LOGO (НЕ Е БУТОН, НЯМА HOVER)
========================================================= */
.nav-brand {
  display: flex;
  align-items: center;
  margin-left: 80px;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* твърд reset – нищо от менюто да не влияе */
.main-nav .nav-brand,
.main-nav .nav-brand:hover {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   NAV LINKS (ЕДИНСТВЕНИТЕ "БУТОНИ")
========================================================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 80px;
}

/* базово състояние */
.main-nav .nav-links a {
  position: relative;
  padding: 8px 12px;

  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;

  border-radius: var(--radius-sm);
  overflow: hidden;

  transition: color 0.2s ease;
}

/* анимиран син слой */
.main-nav .nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;

  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;

  transition: transform 0.25s ease;
  z-index: -1;
}

/* hover ефект – САМО за менюто */
.main-nav .nav-links a:hover {
  color: #fff;
}

.main-nav .nav-links a:hover::before {
  transform: scaleY(1);
}

/* =========================================================
   HERO PLACEHOLDER (временно, без карусели)
========================================================= */
.hero {
  height: 36vh;
  min-height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(19, 67, 125, 0.14), transparent 60%),
    linear-gradient(135deg, #e9eef8, #dde6f4);
}

.hero-inner {
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.hero-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-text strong {
  color: var(--blue);
  font-weight: 800;
}

/* =========================================================
   CONTENT
========================================================= */
main {
  padding: 42px 0 54px;
}

p {
  margin: 0 0 1.1rem;
  color: rgba(31, 36, 48, 0.92);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
}

.footer-inner {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--muted);

  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .hero-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 16px;
  }

  .main-nav-inner {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
    margin-right: 0;
  }

  .hero-text {
    white-space: normal;
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
