/* ==========================================================================
   Темел — тема „Aura“
   Цветовете --primary / --accent / --dark идват от Настройки → Външен вид.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #0e6b8a;
  --accent: #d9443a;
  --dark: #0b2a36;

  --primary-600: color-mix(in srgb, var(--primary) 82%, #000);
  --primary-50: color-mix(in srgb, var(--primary) 7%, #fff);
  --primary-100: color-mix(in srgb, var(--primary) 13%, #fff);
  --primary-200: color-mix(in srgb, var(--primary) 26%, #fff);

  --bg: #ffffff;
  --soft: #f3f7f9;
  --text: #17262e;
  --muted: #5a6b74;
  --line: #e1e9ee;
  --white: #ffffff;
  --ok: #138a5b;
  --warn: #b7791f;
  --err: #c0392b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 54, .06), 0 2px 8px rgba(11, 42, 54, .05);
  --shadow: 0 2px 4px rgba(11, 42, 54, .04), 0 12px 32px -8px rgba(11, 42, 54, .14);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 54, .28);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
html.hc {
  --text: #000; --muted: #1f2a30; --line: #6b7c85; --soft: #eef2f4;
  --primary: #004a63; --primary-600: #00374a;
}
html.hc a:not(.btn) { text-decoration: underline; }

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.7 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; color: var(--dark); font-weight: 750; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, #fff); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-200); }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-sm { width: 1.05em; height: 1.05em; }
.ic-xs { width: .85em; height: .85em; display: inline-block; vertical-align: -1px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(780px + var(--gutter) * 2); }
.wrap-normal { max-width: calc(980px + var(--gutter) * 2); }
.wrap-wide { max-width: calc(1360px + var(--gutter) * 2); }

/* ---------- Бутони ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btns-center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .97rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); background: transparent; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); color: var(--primary-600); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--primary-50); color: var(--dark); transform: translateY(-1px); }
.btn-link { padding: 0; min-height: 0; border: 0; color: var(--primary); }
.btn-link:hover .ic { transform: translateX(3px); }
.btn-link .ic { transition: transform .2s var(--ease); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: transparent; color: var(--dark); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }

/* ---------- Горна лента ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .82); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.tb-contacts { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tb-contacts > * { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.tb-contacts a:hover { color: #fff; }
.tb-contacts .ic { opacity: .7; }
.a11y { display: flex; gap: 4px; }
.a11y button {
  min-width: 32px; height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18);
  background: transparent; color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; display: inline-grid; place-items: center;
}
.a11y button:hover, .a11y button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); }

/* ---------- Хедър ---------- */
/* blur-ът е на псевдоелемент: backdrop-filter върху самия хедър би затворил fixed мобилното меню в него */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(11, 42, 54, .25); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--dark); min-width: 0; margin-right: auto; }
.brand-logo { width: auto; max-width: 120px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; line-height: 1.2; letter-spacing: -.01em; }
.brand-tag { font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.burger { display: none; }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 10px; border: 0; background: none;
  font-weight: 600; font-size: .95rem; color: var(--dark); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--primary); background: var(--primary-50); }
.nav-item.is-active > .nav-link { color: var(--primary); }
.nav-item.is-active > .nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary);
}
.nav-chev { transition: transform .25s var(--ease); opacity: .6; }
.nav-item.is-open .nav-chev { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 270px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
  .nav-item.has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; }
  .nav-item.has-sub:hover .nav-chev { transform: rotate(180deg); }
}
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a {
  display: block; padding: 9px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .93rem; line-height: 1.4;
}
.sub a:hover { background: var(--primary-50); color: var(--primary); }
.sub a[aria-current="page"] { background: var(--primary-100); color: var(--primary-600); font-weight: 600; }
.sub .sub-parent { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
.sub .sub-parent a { font-weight: 700; color: var(--primary); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-head, .nav-cta-mobile { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11, 42, 54, .45); z-index: 49; backdrop-filter: blur(2px); }

.search-pop { border-top: 1px solid var(--line); background: #fff; }
.search-pop-inner { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.search-pop-inner > .ic { color: var(--muted); }
.search-pop input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 1.1rem; padding: 10px 0; background: transparent; }

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .burger { display: inline-grid; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(380px, 88vw); background: #fff;
    padding: 18px 18px 28px; overflow-y: auto; transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .nav-title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1.02rem; }
  .nav-item.is-active > .nav-link::after { display: none; }
  .nav-item.is-active > .nav-link { background: var(--primary-50); }
  .sub { position: static; min-width: 0; padding: 0 0 6px 10px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-item.is-open > .sub { display: block; }
  .sub a { padding: 10px 14px; border-left: 2px solid var(--line); border-radius: 0 10px 10px 0; }
  .nav-cta-mobile { display: inline-flex; margin-top: auto; }
  .tb-hide-md { display: none !important; }
}
@media (max-width: 640px) {
  .tb-hide-sm { display: none !important; }
  .brand { gap: 10px; }
  .brand-tag { display: none; }
  .brand-logo { max-height: 46px; }
  .brand-name { font-size: .86rem; line-height: 1.25; }
  .header-actions { gap: 0; }
  .topbar-inner { min-height: 38px; }
}

/* ---------- Секции ---------- */
.blk { position: relative; }
.sp-normal { padding: clamp(56px, 8vw, 96px) 0; }
.sp-compact { padding: clamp(32px, 4vw, 48px) 0; }
.sp-large { padding: clamp(72px, 11vw, 136px) 0; }
.sp-none { padding: 0; }
.bg-default + .bg-default.sp-normal { padding-top: 0; }
.page-head + .blk.sp-normal, .subnav + .blk.sp-normal, .draft-bar + .blk.sp-normal { padding-top: clamp(36px, 5vw, 56px); }
.bg-soft { background: var(--soft); }
.bg-brand { background: var(--primary); color: #fff; }
.bg-dark { background: var(--dark); color: rgba(255, 255, 255, .86); }
.bg-brand h2, .bg-brand h3, .bg-dark h2, .bg-dark h3, .bg-brand .sec-title, .bg-dark .sec-title { color: #fff; }
.bg-brand .eyebrow, .bg-dark .eyebrow { color: rgba(255, 255, 255, .75); }
.bg-brand .sec-intro, .bg-dark .sec-intro { color: rgba(255, 255, 255, .78); }
.bg-brand a:not(.btn), .bg-dark a:not(.btn) { color: #fff; }

.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.is-center, .text-center .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.sec-title { font-size: clamp(1.7rem, 3.2vw, 2.45rem); margin-bottom: .45em; }
.sec-intro { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- Текст (prose) ---------- */
.prose { font-size: 1.04rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.06rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--primary); }
.prose ul.check-list { list-style: none; padding-left: 0; }
.prose ul.check-list li { position: relative; padding-left: 30px; }
.prose ul.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6b8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--primary); background: var(--primary-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.08rem; color: var(--dark);
}
.prose .lead, .prose p.lead { font-size: 1.2rem; color: var(--dark); line-height: 1.6; }
.prose .note { padding: 14px 18px; background: var(--soft); border-radius: var(--radius-sm); font-size: .96rem; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 650; color: var(--dark); }
.prose strong { color: var(--dark); font-weight: 650; }
.bg-brand .prose strong, .bg-dark .prose strong { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.h-tall { min-height: min(88vh, 780px); padding: 120px 0 150px; }
.h-medium { min-height: min(64vh, 560px); padding: 96px 0 120px; }
.h-compact { min-height: 340px; padding: 72px 0 80px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.ov-brand::before {
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--primary-600) 72%, transparent) 46%, color-mix(in srgb, var(--primary) 18%, transparent) 100%),
    linear-gradient(0deg, rgba(11, 42, 54, .5), transparent 40%);
}
.ov-dark::before { background: linear-gradient(90deg, rgba(5, 15, 20, .82), rgba(5, 15, 20, .35)); }
.ov-light::before { background: linear-gradient(90deg, rgba(5, 15, 20, .55), rgba(5, 15, 20, .1)); }
.no-image.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--primary) 70%, #fff 0%), transparent 60%), linear-gradient(135deg, var(--dark), var(--primary-600)); }
.hero-inner { position: relative; }
.hero-content { max-width: 680px; }
.al-center .hero-content { margin: 0 auto; text-align: center; }
.al-center .hero-btns { justify-content: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
  font-size: .86rem; font-weight: 600; letter-spacing: .02em;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin-bottom: 22px; text-wrap: balance; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: rgba(255, 255, 255, .88); max-width: 580px; margin: 0; }
.al-center .hero-text { margin: 0 auto; }
.hero-btns { margin-top: 34px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.hero .btn-primary { background: #fff; color: var(--dark); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.hero .btn-primary:hover { background: var(--primary-50); color: var(--dark); }

/* ---------- Акценти ---------- */
.hl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hl-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s;
}
a.hl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.hl-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--primary-50); color: var(--primary); flex: none; }
.hl-icon .ic { width: 24px; height: 24px; }
.hl-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hl-title { font-family: var(--font-head); font-size: 1.06rem; color: var(--dark); font-weight: 750; }
.hl-text { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.is-overlap { padding-top: 0 !important; margin-top: -84px; z-index: 2; }
.is-overlap .hl-card { box-shadow: var(--shadow-lg); }

/* ---------- Снимка + текст ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.no-image { grid-template-columns: 1fr; max-width: 820px; }
.split.img-right .split-media { order: 2; }
.split.img-left .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); }
.split-media::after {
  content: ""; position: absolute; z-index: -1; width: 46%; height: 52%; border-radius: var(--radius);
  background: radial-gradient(circle at 1px 1px, var(--primary-200) 1.4px, transparent 0) 0 0 / 16px 16px;
  right: -22px; bottom: -22px;
}
.split.img-left .split-media::after { right: auto; left: -22px; }
.split-body .sec-title { margin-bottom: .6em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  .split-media::after { display: none; }
}

/* ---------- Карти ---------- */
.feat-grid { display: grid; gap: 20px; }
.feat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feat-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.bg-soft .feat-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.feat-card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); color: var(--text); }
.feat-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--primary-50); color: var(--primary); transition: background .25s, color .25s; }
.feat-icon .ic { width: 26px; height: 26px; }
.feat-card.is-link:hover .feat-icon { background: var(--primary); color: #fff; }
.feat-img { display: block; margin: -28px -28px 0; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.feat-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.feat-card.is-link:hover .feat-img img { transform: scale(1.04); }
.feat-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feat-title { font-family: var(--font-head); font-size: 1.14rem; font-weight: 750; color: var(--dark); line-height: 1.3; }
.feat-text { color: var(--muted); font-size: .97rem; line-height: 1.6; }
.feat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--primary); font-weight: 600; font-size: .93rem; }
.feat-more .ic { transition: transform .25s var(--ease); }
.feat-card.is-link:hover .feat-more .ic { transform: translateX(4px); }

.style-minimal .feat-card { padding: 4px 0; border: 0; background: none; box-shadow: none; }
.style-minimal .feat-card.is-link:hover { transform: none; box-shadow: none; }

.feat-grid.style-list { gap: 12px; }
.style-list .feat-card { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
.style-list .feat-icon { width: 46px; height: 46px; border-radius: 13px; }
.style-list .feat-icon .ic { width: 22px; height: 22px; }
.style-list .feat-title { font-size: 1.02rem; }
.style-list .feat-text { font-size: .9rem; }
.style-list .feat-body { gap: 2px; }
.feat-chev { color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.style-list .feat-card.is-link:hover .feat-chev { transform: translateX(3px); color: var(--primary); }
.bg-brand .feat-card, .bg-dark .feat-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.bg-brand .feat-title, .bg-dark .feat-title { color: #fff; }
.bg-brand .feat-text, .bg-dark .feat-text { color: rgba(255, 255, 255, .75); }
.bg-brand .feat-icon, .bg-dark .feat-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.bg-brand .feat-more, .bg-dark .feat-more { color: #fff; }

@media (max-width: 1000px) {
  .feat-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feat-grid.cols-2, .feat-grid.cols-3, .feat-grid.cols-4 { grid-template-columns: 1fr; }
  .feat-card { padding: 22px; }
  .feat-img { margin: -22px -22px 0; }
}

/* ---------- Екип ---------- */
.team-grid { display: grid; gap: 24px; margin: 0 auto; }
.team-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.team-grid.cols-4 { grid-template-columns: repeat(4, 1fr); max-width: 1120px; }
.blk-team .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.person { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bg-soft .person { border-color: transparent; box-shadow: var(--shadow-sm); }
.person-photo { position: relative; aspect-ratio: 9 / 10; background: linear-gradient(160deg, var(--primary-50), var(--primary-100)); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.person-photo.is-empty { display: grid; place-items: center; }
.person-initials { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; color: var(--primary); opacity: .55; }
.person-body { padding: 18px 20px 22px; }
.person-name { font-size: 1.1rem; margin: 0 0 4px; }
.person-role { margin: 0; color: var(--primary); font-weight: 600; font-size: .93rem; }
.person-spec { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.person-contacts { margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.person-contacts a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); }
.person-contacts a:hover { color: var(--primary); }
.person-contacts .ic { color: var(--primary); }
@media (max-width: 1000px) { .team-grid.cols-4, .team-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid.cols-4, .team-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 12px; } .person-body { padding: 14px; } .person-name { font-size: .98rem; } }

/* ---------- Галерия ---------- */
.gal-grid { display: grid; gap: 12px; }
.gal-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gal-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gal-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gal-item { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--soft); }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gal-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 42, 54, .55), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-item:hover::after { opacity: 1; }
.gal-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: .88rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.gal-item:hover .gal-cap { opacity: 1; transform: none; }
@media (max-width: 860px) { .gal-grid.cols-4, .gal-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gal-grid.cols-3, .gal-grid.cols-4, .gal-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 18, 24, .94); padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-figure figcaption { color: rgba(255, 255, 255, .85); font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 24px; color: rgba(255, 255, 255, .7); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- Документи / процедури ---------- */
.docs-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.search-field {
  flex: 1; min-width: 240px; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px;
  border-radius: 999px; background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.search-field .ic { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; }
.docs-count { color: var(--muted); font-size: .92rem; }
.docs { display: flex; flex-direction: column; gap: 14px; }
.doc-item {
  position: relative; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: box-shadow .25s, border-color .25s;
}
.doc-item:hover { box-shadow: var(--shadow); border-color: var(--primary-200); }
.bg-soft .doc-item { border-color: transparent; box-shadow: var(--shadow-sm); }
.doc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.doc-num { font-family: var(--font-head); font-weight: 800; font-size: .86rem; color: var(--primary); background: var(--primary-50); padding: 3px 10px; border-radius: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-open { background: #e3f6ec; color: var(--ok); }
.st-closed { background: #eef1f3; color: #5d6b73; }
.st-cancelled { background: #fbe9e7; color: var(--err); }
.st-done { background: var(--primary-50); color: var(--primary); }
.doc-title { font-family: var(--font); font-size: 1.04rem; font-weight: 650; line-height: 1.5; color: var(--dark); margin: 0 0 6px; letter-spacing: 0; }
.doc-details { color: var(--muted); font-size: .94rem; margin: 0 0 6px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 12px 0 0; font-size: .88rem; }
.doc-meta div { display: flex; gap: 6px; }
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; font-weight: 600; color: var(--text); }
.doc-files { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.doc-files summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; font-size: .92rem; color: var(--primary);
  padding: 4px 0; user-select: none;
}
.doc-files summary::-webkit-details-marker { display: none; }
.doc-files .chev { transition: transform .25s var(--ease); }
.doc-files[open] .chev { transform: rotate(180deg); }
.docs-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); }

.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-link {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 14px 8px 10px; border-radius: 12px;
  background: var(--soft); color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.35;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.file-link:hover { background: #fff; border-color: var(--primary-200); color: var(--primary); }
.file-link > .ic { color: var(--primary); width: 20px; height: 20px; }
.file-link.kind-pdf > .ic { color: #c62828; }
.file-link.kind-doc > .ic { color: #1e5bb8; }
.file-link.kind-xls > .ic { color: #1b7f46; }
.file-link.kind-zip > .ic { color: #8a5a00; }
.fl-label { min-width: 0; overflow-wrap: anywhere; }
.fl-meta { flex: none; font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.file-link.is-missing { opacity: .55; }
.file-list.is-large { flex-direction: column; gap: 10px; }
.file-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-list.is-large .file-link { flex: 1; padding: 16px 20px; font-size: 1rem; background: #fff; border-color: var(--line); border-radius: var(--radius-sm); }
.file-list.is-large .file-link:hover { box-shadow: var(--shadow); }
.file-list.is-large .fl-label { flex: 1; font-weight: 600; }
.file-note { color: var(--muted); font-size: .88rem; }

/* ---------- Акордеон ---------- */
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc-item { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.bg-soft .acc-item { border-color: transparent; box-shadow: var(--shadow-sm); }
.acc-item[open] { border-color: var(--primary-200); box-shadow: var(--shadow); }
.acc-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--dark); line-height: 1.4;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-ic { color: var(--primary); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--primary-50); box-sizing: content-box; transition: transform .3s var(--ease); }
.acc-item[open] .acc-ic { transform: rotate(45deg); }
.acc-body { padding: 0 22px 20px; font-size: 1rem; }

/* ---------- Призив ---------- */
.cta-box {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 8px); color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--primary) 70%, #fff 20%), transparent 70%), linear-gradient(120deg, var(--dark), var(--primary-600));
}
.cta-box.has-image { background: var(--dark); }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-box.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--dark) 92%, transparent), color-mix(in srgb, var(--primary-600) 70%, transparent)); }
.cta-body { max-width: 640px; }
.cta-title { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .4em; }
.cta-text { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.06rem; }
.cta-btns { margin-top: 0; }
.cta-box .btn-primary { background: #fff; color: var(--dark); }
.cta-box .btn-primary:hover { background: var(--primary-50); }
.cta-box .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-box .btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Контакти ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.contact-grid.no-form { grid-template-columns: 1fr; max-width: 640px; }
.contact-info { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--dark); color: rgba(255, 255, 255, .85); display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -110px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 55%, transparent); filter: blur(10px); opacity: .55; }
.ci-row { display: flex; gap: 14px; position: relative; z-index: 1; }
.ci-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; flex: none; }
.ci-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ci-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); font-weight: 600; }
.ci-value { color: #fff; font-weight: 500; }
.ci-value a, .ci-list a { color: #fff; text-decoration: none; }
.ci-value a:hover, .ci-list a:hover { text-decoration: underline; }
.ci-split { display: flex; justify-content: space-between; gap: 12px; }
.ci-split > :last-child { text-align: right; white-space: nowrap; }
.ci-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .94rem; }
.ci-list .ci-split > :first-child { color: rgba(255, 255, 255, .7); }

.contact-form-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cf-title { font-size: 1.35rem; margin-bottom: 18px; }
.cf { display: flex; flex-direction: column; gap: 14px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--dark); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--soft); font-weight: 400;
  transition: border-color .2s, background .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-100); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.cf-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-status { font-size: .92rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; }
.alert-success { background: #e3f6ec; color: #0d6b45; }
.alert-error { background: #fbe9e7; color: #9e2a1f; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

.map-box { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); min-height: 380px; display: grid; }
.map-box iframe { width: 100%; height: 440px; border: 0; display: block; }
.map-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 40px 20px;
  background: radial-gradient(circle at 1px 1px, var(--primary-200) 1.2px, transparent 0) 0 0 / 22px 22px; color: var(--muted); }
.map-consent > .ic { width: 40px; height: 40px; color: var(--primary); margin-bottom: 6px; }
.map-consent p { margin: 0; max-width: 420px; }
.map-consent .btns { margin-top: 16px; }

/* ---------- Новини ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-50); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-media.is-empty { display: grid; place-items: center; color: var(--primary-200); }
.news-media.is-empty .ic { width: 56px; height: 56px; }
.news-body { padding: 20px 22px 24px; }
.news-date { font-size: .84rem; color: var(--muted); font-weight: 600; }
.news-title { font-size: 1.12rem; margin: 6px 0 8px; line-height: 1.35; }
.news-title a { color: var(--dark); text-decoration: none; }
.news-title a:hover { color: var(--primary); }
.news-excerpt { color: var(--muted); font-size: .95rem; margin: 0; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.pager a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.post-cover { margin-top: -20px; margin-bottom: 8px; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Съобщение ---------- */
.notice { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid; }
.notice-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.notice-title { font-size: 1.1rem; margin-bottom: .3em; }
.notice-info { background: var(--primary-50); border-color: var(--primary-200); }
.notice-info .notice-ic { background: var(--primary); color: #fff; }
.notice-warning { background: #fff8e6; border-color: #f3dca0; }
.notice-warning .notice-ic { background: var(--warn); color: #fff; }
.notice-success { background: #e9f7ef; border-color: #b9e3cb; }
.notice-success .notice-ic { background: var(--ok); color: #fff; }

/* ---------- Заглавие на вътрешна страница ---------- */
.page-head {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(900px 340px at 92% -40%, var(--primary-100), transparent 70%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--primary) 14%, transparent) 1.2px, transparent 0) 0 0 / 22px 22px,
    var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, var(--soft), transparent); pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .87rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; }
.crumbs a:hover { color: var(--primary); }
.crumbs .ic-xs { opacity: .5; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }
.page-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.03em; font-weight: 800; margin: 0; max-width: 900px; text-wrap: balance; }
.page-lead { font-size: 1.12rem; color: var(--muted); margin: 14px 0 0; max-width: 760px; }
.page-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin: 12px 0 0; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.subnav-list a:hover { background: var(--primary-50); color: var(--primary); }
.subnav-list a[aria-current="page"] { background: var(--primary); color: #fff; }
.draft-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: #fff3cd; color: #7a5800; font-size: .9rem; font-weight: 600; }

/* ---------- Търсене / 404 ---------- */
.search-big { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); margin: 0 auto 28px; max-width: 640px; }
.search-big:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.search-big > .ic { color: var(--muted); }
.search-big input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 1.05rem; padding: 8px 0; }
.search-summary { color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.search-results li { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.search-results a { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.search-results p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.nf-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin: 0 0 8px; letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .sec-intro { margin-bottom: 28px; }

/* ---------- Футър ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); font-size: .95rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr .9fr 1.25fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.f-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; margin-bottom: 16px; }
.f-logo-img { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 6px; }
.f-logo-img img { height: 56px; width: auto; }
.f-name { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; line-height: 1.3; max-width: 240px; }
.f-about { margin: 0; line-height: 1.65; max-width: 360px; }
.f-title { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 18px; font-weight: 700; font-family: var(--font); }
.f-contacts, .f-links, .f-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.f-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.f-contacts .ic { margin-top: 4px; color: color-mix(in srgb, var(--primary) 50%, #fff); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .14); padding-bottom: 10px; }
.f-hours strong { color: #fff; font-weight: 600; white-space: nowrap; }
.f-social { display: flex; gap: 8px; margin-top: 18px; }
.f-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.fb-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.credit a { color: #fff; font-weight: 600; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; } }

/* ---------- Появяване при скрол ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .subnav, .btns, .map-box, .contact-form-card, .lightbox { display: none !important; }
  .page-head { background: none; padding: 0 0 12px; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
