/* БНПК — общи стилове. Съдържанието на страниците използва вградени стилове от дизайна. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #F5F4EF;
  color: #0F1419;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: #007A55; }
a:hover { color: #005C40; }
:focus-visible { outline: 3px solid #007A55; outline-offset: 2px; }

.skip-link { position: absolute; left: -10000px; top: 8px; z-index: 200; background: #FFFFFF; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-green { background: #007A55; color: #FFFFFF; }
.btn-green:hover { background: #005C40; color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header { font-size: 16px; line-height: 1.5; }
.topbar { background: #0F1419; color: #C9CDD2; font-size: 14px; }
.topbar-inner { max-width: 1232px; margin: 0 auto; padding: 0 24px; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; }
.topbar a { color: #FFFFFF; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar a:hover { color: #5BD6A0; }
.topbar .sep { color: #5A6068; }
.mainbar { background: #FFFFFF; border-bottom: 1px solid #E4E2DA; }
.mainbar-inner { max-width: 1232px; margin: 0 auto; padding: 0 24px; min-height: 162px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.logo { display: flex; padding: 10px 0; }
.logo img { width: 142px; height: 142px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: #4A5058; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #0F1419; }
.site-nav a.active { color: #0F1419; border-bottom-color: #007A55; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: #0F1419; color: #FFFFFF; border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.menu-toggle .i-close { display: none; }

@media (max-width: 959px) {
  .topbar-inner { padding: 0 16px; gap: 0 10px; font-size: 14px; }
  .mainbar-inner { min-height: 100px; padding: 0 16px; }
  .logo img { width: 83px; height: 83px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid #E4E2DA; padding: 8px 0 16px; }
  .site-header.open .site-nav { display: flex; }
  .site-header.open .menu-toggle .i-open { display: none; }
  .site-header.open .menu-toggle .i-close { display: inline; }
  .site-nav a { min-height: 52px; padding: 0 12px; font-size: 18px; color: #0F1419; border-bottom: 0; border-radius: 8px; }
  .site-nav a.active { background: #EAF5EF; color: #005C40; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0F1419; color: #C9CDD2; font-size: 15px; line-height: 1.6; }
.flag { display: flex; height: 6px; }
.flag span { flex: 1; }
.flag span:nth-child(1) { background: #FFFFFF; }
.flag span:nth-child(2) { background: #00966E; }
.flag span:nth-child(3) { background: #D62612; }
.footer-inner { max-width: 1232px; margin: 0 auto; padding: 64px 24px 40px; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.footer-about { flex: 2 1 320px; display: flex; flex-direction: column; gap: 16px; }
.footer-about p { margin: 0; max-width: 380px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; background: #FFFFFF; border-radius: 50%; display: block; }
.footer-brand span { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 22px; color: #FFFFFF; }
.footer-col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; }
.footer-h { color: #FFFFFF; font-weight: 600; margin-bottom: 8px; }
.footer-col a { color: #C9CDD2; text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #FFFFFF; }
.footer-col .footer-phone { color: #FFFFFF; font-weight: 600; padding-top: 8px; }
.footer-col .footer-mail { color: #5BD6A0; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #262C33; }
.footer-bottom-inner { max-width: 1232px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: #9AA0A6; }
.footer-bottom a { color: #9AA0A6; }

/* ---------- Cookie notice ---------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: #FFFFFF; color: #0F1419; border: 1px solid #E4E2DA; border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 15px; line-height: 1.5; box-shadow: 0 8px 32px rgba(15, 20, 25, 0.16); }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1 1 320px; }
.cookie-notice a { font-weight: 600; }

/* ---------- Lightbox ---------- */
.zoomable { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 25, 0.9); display: flex; align-items: center; justify-content: center; padding: 64px 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; color: #0F1419; border: 0; border-radius: 50%; cursor: pointer; }

/* ---------- Регистри ---------- */
.reg-tab { min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; border: 1.5px solid #C9CCC6; background: #FFFFFF; color: #0F1419; }
.reg-tab[aria-selected="true"] { border-color: #0F1419; background: #0F1419; color: #FFFFFF; }
.reg-panel[hidden] { display: none; }
.reg-table td, .reg-table th { text-align: left; }
.reg-table tbody tr { border-top: 1px solid #ECEAE3; }

/* ---------- Малки екрани ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .news-card, .invite-card { padding: 28px 22px !important; }
  .invite-agenda { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid #2B323A; padding-top: 20px; }
  .cta-box { padding: 56px 24px !important; }
  .form-card { padding: 28px 20px !important; }
}

/* Скрито за екранни четци */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
