/* ATS Project — общите стилове. Оформлението на страниците е в самите изгледи
   (както в дизайна); тук са шрифтовете, състоянията на контролите и текстът на статиите. */

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/onest-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plexmono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plexmono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plexmono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plexmono-500-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; }

html { scroll-behavior: smooth; }
body { margin: 0; background: #F5F7FA; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #1E2432; text-decoration: none; }
a:hover { color: #365692; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

.site { font-family: 'Onest', system-ui, sans-serif; color: #1E2432; background: #F5F7FA; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

/* Достъпност */
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 10px 16px; background: #365692; color: #FFFFFF; border-radius: 10px; transition: top .15s; }
.skip-link:focus { top: 12px; color: #FFFFFF; }
.sr-only, .opt input { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid #365692; outline-offset: 2px; }
.opt input:focus-visible + span { outline: 2px solid #365692; outline-offset: 2px; }
[aria-invalid="true"] { border-color: #A3361F !important; background: #FBEDEA !important; }

/* Менюто: текущата страница */
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 #365692; }

/* Табове (Стойностни сметки, Графици) */
.tab { background: transparent; color: #1E2432; }
.tab[aria-selected="true"] { background: #365692; color: #FFFFFF; }
.tab:not([aria-selected="true"]):hover { background: #EBF0F7; }

/* Превключвателят „без / с натрупване“ */
.seg button { background: transparent; color: #1E2432; }
.seg button[aria-pressed="true"] { background: #365692; color: #FFFFFF; }

/* Филтри (Обекти, Бюлетин) */
.chip { border: 1px solid #D7DDE7; background: #FFFFFF; color: #1E2432; }
.chip[aria-pressed="true"] { border-color: #365692; background: #365692; color: #FFFFFF; }

/* Избор на услуга във формата */
.opt span { border: 1px solid #C9D2E0; background: #F5F7FA; color: #1E2432; }
.opt input:checked + span { border-color: #365692; background: #365692; color: #FFFFFF; }

/* Галерията на обект */
.thumb { border: 2px solid transparent; opacity: .7; transition: opacity .15s; }
.thumb:hover, .thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"] { border-color: #365692; }

/* Често питани въпроси */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary svg { transform: rotate(45deg); }

/* Капчата: показва се след първото „Изпрати“ (без JavaScript — винаги, виж <noscript> в шаблона) */
.captcha:not([data-open]) { display: none !important; }
[data-captcha-img] svg { display: block; max-width: 100%; height: auto; }
button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Текстът на статиите от стария сайт */
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose p.lead { margin: 0 0 28px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: #1E2432; }
.prose h2 { margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid #C9D2E0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: #1E2432; scroll-margin-top: 24px; }
.prose h2 span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #586278; letter-spacing: 0; margin-bottom: 8px; }
.prose h3 { margin: 32px 0 12px; font-size: 19px; font-weight: 500; line-height: 1.35; color: #1E2432; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: #365692; }
.prose strong { font-weight: 600; color: #1E2432; }
.prose a { color: #365692; text-decoration: underline; text-underline-offset: 3px; }
article h2[id] { scroll-margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
