/* „Асарел Транс“ ООД. Един файл, без външни шрифтове. */
:root {
  --brand-900: #101a2b;
  --brand-800: #18263d;
  --brand-600: #1d5fa8;
  --accent: #e0b34c;
  --paper: #f5f6f8;
  --card: #ffffff;
  --ink: #18202b;
  --muted: #5a6577;
  --line: #dde2ea;
  --focus: #f59e0b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
a { color: var(--brand-600); text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Заглавна част */
.top { background: var(--brand-800); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; padding: 10px 0; }
.brand b { display: block; font-size: 1.15rem; letter-spacing: .01em; line-height: 1.2; }
.brand small { display: block; color: #c9d3e3; font-size: .82rem; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: #e8edf5; text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a[aria-current="page"] { background: var(--accent); color: var(--brand-900); font-weight: 600; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; padding: 12px 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }
.menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--focus); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 14px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
}

/* Начало */
.hero { background: linear-gradient(160deg, var(--brand-800), var(--brand-900)); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; margin: 0 0 14px; max-width: 18ch; }
.hero p { color: #d3dbe8; max-width: 58ch; margin: 0 0 26px; font-size: 1.08rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn-main { background: var(--accent); color: var(--brand-900); }
.btn-main:hover { background: #ecc66b; color: var(--brand-900); }
.btn-line { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }

.section { padding: 44px 0; }
.section h2 { font-size: 1.5rem; margin: 0 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--brand-800); }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
a.tile { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: var(--brand-600); transform: translateY(-2px); }
.band { background: #eaeef4; border-block: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

/* Вътрешни страници */
.page-head { background: #eaeef4; border-bottom: 1px solid var(--line); padding: 34px 0 28px; }
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; }
.lead { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { margin-top: 0; }
.notice { border-left: 4px solid var(--brand-600); background: #fff; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 24px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 10px; } }

/* Документи */
.year { margin: 34px 0 12px; font-size: 1.15rem; color: var(--brand-800); display: flex; align-items: center; gap: 12px; }
.year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.groups { display: grid; gap: 10px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.group > summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; display: grid; gap: 2px; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.group[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.g-title { font-weight: 650; line-height: 1.35; }
.g-meta { color: var(--muted); font-size: .86rem; }
.g-note { margin: 0; padding: 0 18px 12px; color: var(--muted); font-size: .95rem; }
.docs { list-style: none; margin: 0; padding: 0 10px 12px; }
.docs li + li { border-top: 1px solid #eceff4; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.docs a:hover { background: #eef2f8; }
.doc-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-size { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.kind { flex: none; min-width: 52px; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; background: #e7ecdf; color: #3d4b41; }
.kind-pdf { background: #fde2e1; color: #9f1f1a; }
.kind-xls, .kind-xlsx, .kind-ods { background: #dcf3e3; color: #14622f; }
.kind-doc, .kind-docx, .kind-odt { background: #dde9fb; color: #1d4a94; }
.kind-zip, .kind-rar { background: #f5ead2; color: #7a5a12; }
.empty { color: var(--muted); }

/* Долна част */
.foot { background: var(--brand-900); color: #d3dbe8; margin-top: 56px; padding: 34px 0 18px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.foot-links { display: grid; gap: 6px; }
.foot-note { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); color: #93a1b8; font-size: .85rem; }

@media print {
  .top, .foot, .btns { display: none; }
  body { background: #fff; }
  .group { break-inside: avoid; }
}
