:root {
  --color-primary: #0B76CF;
  --color-primary-dark: #01539C;
  --color-bg: #ffffff;
  --color-bg-soft: #F5FAFF;
  --color-border: #E1E7F0;
  --color-text: #123456;
  --color-muted: #6B7280;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 6px 20px rgba(8, 106, 179, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Общ контейнер */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background-color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.header-logo img {
  height: 40px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-size: 18px;
}

.nav-link {
  text-decoration: none;
  color: #16324F;
  font-weight: 500;
  position: relative;
}

.nav-link--active {
  color: var(--color-primary);
}

.nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.header-phone {
  text-decoration: none;
  color: #0B76CF;
  font-size: 20px;
  font-weight: 600;
}

/* Page base */
.page {
  padding: 32px 0 64px;
}

.page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start; /* важно за sticky */
}

/* Бутон */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--color-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 106, 179, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}


/* HAMBURGER BUTTON */
.header-hamburger {
  display: none; /* по default, ще го покажем само на мобилни */
  width: 32px;
  height: 26px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.header-hamburger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: #16324F;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* MOBILE NAV MENU – по-безопасен вариант */
.mobile-nav {
  display: none;              /* скрито по подразбиране */
  position: absolute;
  top: 100%;                  /* веднага под header-inner */
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 40;
  padding: 12px 16px 16px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-link,
.mobile-nav-phone {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #16324F;
  font-size: 16px;
}

.mobile-nav-link--active {
  color: var(--color-primary);
  font-weight: 600;
}

.mobile-nav-phone {
  margin-top: 6px;
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
}

/* backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav.is-open {
  transform: translateY(0);
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
  margin-top: 40px;
  background-color: #D9ECFF; /* светло син фон, като примера */
  color: #0F172A;
  border-top: 4px solid #0B3A5C; /* тънка тъмносиня лента отгоре */
  font-size: 14px;
}

/* Горна част */
.footer-main {
  padding: 28px 0 18px;
}

.footer-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: flex-start;
}

.footer-col--brand {
  max-width: 320px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0;
  color: #1E293B;
  line-height: 1.5;
}

/* Навигация в средата */
/* Хоризонтална, модерна навигация във footer-а */
.footer-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.35);
}

/* отделните линкове */
.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  text-decoration: none;

  border: 1px solid transparent;
  background: transparent;

  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.12s ease,
              box-shadow 0.18s ease;
}

/* hover ефект */
.footer-link:hover {
  background: linear-gradient(135deg, #0B76CF, #0F9BD8);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 118, 207, 0.45);
}

/* активен линк (ако искаш да го използваш) */
.footer-link--active {
  background: linear-gradient(135deg, #0B76CF, #0F9BD8);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(15, 118, 207, 0.45);
}


/* Адрес и контакти */
.footer-heading {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-text {
  margin: 0 0 8px;
  line-height: 1.5;
}

.footer-link-inline {
  color: #0F172A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.16s ease;
}

.footer-link-inline:hover {
  color: #0B76CF;
}

/* Долна лента */
.footer-bottom {
  border-top: 1px solid #0F172A;
  padding: 10px 0 14px;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  margin: 0;
  white-space: nowrap;
}

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

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

/* модерна underline анимация */
.footer-bottom-link {
  position: relative;
  font-size: 13px;
  color: #0F172A;
  text-decoration: none;
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.1s ease;
}

.footer-bottom-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: linear-gradient(90deg, #0B76CF, #0F9BD8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
  opacity: 0.9;
}

.footer-bottom-link:hover {
  color: #0B76CF;
  transform: translateY(-1px);
}

.footer-bottom-link:hover::after {
  transform: scaleX(1);
}


/* =========================
   RESPONSIVE FOOTER
   ========================= */

@media (max-width: 900px) {
  .footer-main-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 20px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-nav {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-main-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
  flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .footer-main {
    padding: 22px 0 12px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    white-space: normal;
  }

    .footer-link {
    padding: 5px 12px;
    font-size: 13px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }
}


/* --------- RESPONSIVE --------- */
@media (max-width: 768px) {

  .site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding-right: 12px;
    padding-left: 12px;
  }


  .main-nav {
    display: none; /* скриваме десктоп менюто */
  }

  .header-phone {
    display: none; /* телефонът отива долу в mobile менюто */
  }

  .header-hamburger {
    display: block;
  }

  .header-inner {
    padding: 10px 0;
  }
}
