/* Токените съвпадат с началната страница (web/src/styles.css).
   Синьо = навигация, червено = официални празници, зелено = почивни дни, кехлибар = предстоящо. */
:root {
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --ink: #182522;
  --ink-2: #69746C;
  --ink-3: #3A4741;
  --line: #E5E1D8;
  --red: #B52532;
  --red-fill: #B52532;
  --red-soft: #FDEDEA;
  --blue: #087A58;
  --blue-soft: #E6F4EE;
  --green: #0A7A57;
  --green-soft: #E6F4EE;
  --gold: #9A5B00;
  --gold-soft: #FFF6DE;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid #00966E; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin: 10px 0 20px; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.num, .tbl td, .stat-n, .answer-day, .ev-date { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
.top { background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--red-fill); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-3); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a.nav-today { background: var(--ink); color: #fff; font-weight: 600; margin-left: 6px; }
.nav a.nav-today:hover { background: var(--blue); }

.crumbs { font-size: 13.5px; color: var(--ink-2); margin: 20px 0 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 4px; opacity: .5; }

main { padding-bottom: 48px; }
.page { padding-top: 6px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 760px; margin: -6px 0 22px; }
.note { font-size: 14px; color: var(--ink-2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 18px; box-shadow: var(--shadow); }
.card-warn { border-color: #ecd3a6; background: #fffaf0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2 > .card { margin: 0; }
.grid-2 + * { margin-top: 18px; }
.prose p { margin: 0 0 12px; max-width: 760px; font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }

/* Отговорът: лист от откъсващ се календар */
.answer { display: flex; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow); }
.answer-date {
  flex: none; width: 128px; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  display: grid; background: #fff;
}
.answer-month { order: -1; background: var(--ink); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding: 7px 0; }
.answer-day { font-size: 58px; font-weight: 800; line-height: 1; padding: 12px 0 4px; }
.answer-wd { font-size: 13px; color: var(--ink-2); padding-bottom: 10px; }
.answer-lead { font-size: 21px; margin: 0 0 10px; }
.answer-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: #F1F5F9; color: var(--ink-3); }
.pill-off { background: var(--green-soft); color: var(--green); }
.pill-work { background: #F1F5F9; color: var(--ink-3); }
.pill-kind { background: var(--blue-soft); color: var(--blue); }
.wishes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wishes li { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--paper); }
.wishes p { margin: 0; font-size: 16.5px; max-width: 640px; }
.copy { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.copy:hover { border-color: #CBD5E1; color: var(--ink); }
.copy.done { background: var(--green-soft); color: var(--green); border-color: transparent; }
.moon-ico { display: inline-block; width: 18px; color: var(--ink-3); }

/* Инструмент „какъв ден е бил“ */
.tool-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tool-input { height: 48px; width: 100%; max-width: 280px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 17px; color: var(--ink); background: #fff; }
.tool-input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.tool-out { margin-top: 18px; }
.tool-big { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.tool-big strong { color: var(--blue); }
.tool-facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; color: var(--ink-3); }
.countdown { font-weight: 700; color: var(--gold); font-size: 14px; }

.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { background: var(--gold-soft); color: #92400E; font-weight: 700; padding: 6px 14px; border-radius: 99px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .is-current td { background: var(--blue-soft); font-weight: 700; }
.tbl-big td { font-size: 16px; }
.tbl tr.transfer td { background: var(--blue-soft); }
.tbl tr.decision td { background: var(--green-soft); }

.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li + li { border-top: 1px solid var(--line); }
.ev-list a { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; text-decoration: none; color: var(--ink); }
.ev-list a:hover .ev-name { color: var(--blue); }
.ev-date { flex: none; width: 104px; font-weight: 700; color: var(--gold); font-size: 14.5px; }
.ev-name { flex: 1; font-weight: 600; }
.ev-wd { color: var(--ink-2); font-size: 13.5px; }
.ev-list li.is-off .ev-name { color: var(--red); }
.ev-sub { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }

.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-n { display: block; font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.03em; }
.stat-l { color: var(--ink-2); font-size: 14px; }

.lw-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lw { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lw-days { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--green); color: #fff; font-weight: 800; font-size: 20px; }
.lw-text { font-size: 14px; color: var(--ink-2); }
.lw-text strong { color: var(--ink); font-size: 15px; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: #CBD5E1; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Календар */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--ink-2); }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); break-inside: avoid; }
.month h2 { font-size: 17px; margin: 0 0 10px; color: var(--ink); }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.c { display: inline-grid; place-items: center; min-width: 28px; height: 30px; border-radius: 7px; font-size: 14px; font-weight: 600; position: relative; }
.c-h { font-size: 11.5px; color: var(--ink-2); font-weight: 700; height: 22px; }
.c-we { color: var(--red); opacity: .8; }
.c-off { background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .25); }
.c-ev::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.c-off.c-ev::after { background: var(--red); }
.legend .c { min-width: 26px; height: 26px; }
.mev { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 13px; }
.mev li { display: flex; gap: 8px; padding: 1px 0; }
.mev span { flex: none; width: 20px; font-weight: 700; color: var(--red); text-align: right; }
.mev a { color: var(--ink); text-decoration: none; }
.mev a:hover { color: var(--blue); }

/* Начало */
.hero { padding: 42px 0 18px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.hero-kicker { margin: 0; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.hero-title { font-size: clamp(36px, 6vw, 60px); margin: 6px 0 12px; }
.hero-sub { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 520px; }
.today { grid-column: 2; grid-row: 1 / span 3; margin: 0; border-top: 6px solid var(--red); }
.today h2 { color: var(--red); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.today-date { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.today-names { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.today-names li { background: var(--red-soft); color: #8e2420; padding: 4px 11px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.tile:hover { color: var(--ink); border-color: #CBD5E1; }
.tile-k { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.tile-v { font-size: 25px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.tile-v-sm { font-size: 17px; }
.tile-s { font-size: 13.5px; color: var(--ink-2); }
.tile-main { background: var(--red); border-color: var(--red); }
.tile-main .tile-k, .tile-main .tile-s, .tile-main .tile-v { color: #fff; }
.tile-main:hover { color: #fff; }

/* Страници за дни */
.muted { color: var(--ink-2); font-weight: 500; }
.tbl-wrap { overflow-x: auto; }
.tbl-wrap .tbl { min-width: 560px; }
.stats-in { margin: 0 0 10px; }
.stats-in .stat { box-shadow: none; background: var(--paper); }
.stat-n-sm { font-size: 24px; padding: 7px 0 4px; }
.daynav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.daynav a { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 700; text-decoration: none; color: var(--ink); }
.daynav a:hover { border-color: #CBD5E1; color: var(--blue); }
.ev-list li.is-empty .ev-date { color: var(--ink-2); font-weight: 600; }
.tiles-3 { grid-template-columns: repeat(4, 1fr); }

.foot { border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink-2); }
.foot-in { padding: 40px 24px 28px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 10px; }
.foot-cols a { display: block; color: var(--ink-3); text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: var(--blue); }
.weekstrip { display: flex; gap: 4px; margin: 14px 0; }
.weekstrip i { width: 16px; height: 8px; border-radius: 2px; background: #CBD5E1; }
.weekstrip i:nth-child(n+6) { background: var(--red-fill); }
.foot p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .grid-2, .hero, .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .top-in { flex-wrap: wrap; padding: 8px 0; }
  .nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; flex: none; }
  .nav a.nav-today { order: -1; margin-left: 0; }
  .today { grid-column: auto; grid-row: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .months { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top-in { gap: 6px; }
  .wrap { padding: 0 16px; }
  .answer { flex-direction: column; align-items: stretch; text-align: left; }
  .answer-date { width: 100%; grid-template-columns: auto; }
  .stats, .months { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .ev-date { width: 92px; }
  .ev-wd { display: none; }
}

@media print {
  .top, .foot, .crumbs, .btn, .lead { display: none; }
  body { background: #fff; font-size: 11px; }
  .months { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .month { box-shadow: none; padding: 8px; }
  .mev { display: none; }
  .c { height: 20px; min-width: 18px; font-size: 10px; }
  .c-off { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  h1 { font-size: 22px; margin: 0 0 8px; }
}

/* Българските мотиви */
.tricolor { height: 4px; background: linear-gradient(90deg, #fff 0 33.3%, #00966E 33.3% 66.6%, #D62612 66.6%); }
.shevitsa { height: 14px; margin-top: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M7 1l6 6-6 6-6-6z' fill='%23D62612'/%3E%3Cpath d='M7 4.5l2.5 2.5L7 9.5 4.5 7z' fill='%23fff'/%3E%3Cpath d='M7 6l1 1-1 1-1-1z' fill='%2300966E'/%3E%3Cpath d='M21 4l3 3-3 3-3-3z' fill='%2300966E'/%3E%3Crect x='15' y='6.5' width='2' height='1' fill='%23D62612'/%3E%3Crect x='25' y='6.5' width='2' height='1' fill='%23D62612'/%3E%3C/svg%3E") repeat-x center; }
.answer-month { background: var(--red-fill); }
.card, .stat, .answer, .month { border-radius: 16px; }
.weekstrip i { background: #00966E; }

/* Снимка в горната част на страницата */
.hero-photo { position: relative; margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: #E5E1D8; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(23, 34, 29, .72); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
@media (max-width: 560px) { .hero-photo img { aspect-ratio: 4 / 3; } }
/* Имени дни по име */
.names a { color: inherit; text-decoration: none; }
.names a:hover { text-decoration: underline; }
.names.big li { font-size: 22px; padding: 8px 18px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; text-decoration: none; color: var(--ink); }
.letters a:hover { border-color: var(--green); color: var(--green); }
.nt-date { color: var(--ink-2); font-weight: 600; margin: 0 0 8px; }
.nt-label { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.nt-none { font-size: 22px; font-weight: 700; margin: 0; }
.nt-next p { margin: 14px 0 0; font-size: 17px; }
/* ===== Дизайн 2: заглавия със Sofia Sans Condensed, хлебни трохи, снимка в началото ===== */
h1, h2, h3, .kicker, .stat-n, .answer-day, .tool-big { font-family: "Sofia Sans Condensed", "Sofia Sans", sans-serif; }
h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -.01em; color: #087A58; margin: 18px 0 20px; }
h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: 0; }
h3 { font-weight: 700; font-size: 19px; }
.kicker { margin: 22px 0 -8px; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-fill); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }

.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red-fill); border-radius: 0; }

/* Хлебни трохи */
.crumbs { margin: 0; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding-top: 10px; padding-bottom: 10px; margin: 0 auto; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.crumbs a:hover { background: var(--paper); color: var(--green); }
.crumbs .sep { color: #B7BFB8; flex: none; }
.crumbs [aria-current="page"] { font-weight: 700; color: var(--ink); padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs a span { font-weight: 600; }

/* Голяма снимка със заглавието */
.page-hero { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw) 24px; min-height: clamp(300px, 42vw, 440px); display: flex; align-items: flex-end; overflow: hidden; background: #E5E1D8; }
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(250, 247, 241, .96) 0%, rgba(250, 247, 241, .86) 38%, rgba(250, 247, 241, .15) 75%); }
.page-hero-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 36px; }
.page-hero h1 { max-width: 15em; margin: 10px 0 8px; }
.page-hero .kicker { margin: 0; }
.page-hero-place { display: inline-block; margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-3); background: rgba(255, 255, 255, .8); padding: 3px 10px; border-radius: 99px; }
@media (max-width: 760px) { .page-hero::before { background: linear-gradient(0deg, rgba(250, 247, 241, .97) 0%, rgba(250, 247, 241, .85) 45%, rgba(250, 247, 241, .1) 100%); } .page-hero-in { padding: 20px 16px 22px; } }

/* Отговорът */
.answer { border-radius: 18px; padding: 20px 22px; }
.answer-date { border-radius: 12px; }
.answer-day { font-weight: 900; }
.answer-lead { font-size: 20px; }
.card { border-radius: 16px; }
.card h2 { color: var(--ink); }

/* Категории над долното меню */
.cats { margin-top: 36px; }
.cats-t { font-family: "Sofia Sans Condensed", sans-serif; font-weight: 800; font-size: 22px; margin: 0 0 12px; }
.cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cats a { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.cats a:hover { border-color: var(--c); transform: translateY(-1px); color: var(--ink); }
.cats i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); transform: rotate(45deg); flex: none; }
@media (max-width: 760px) { .cats ul { grid-template-columns: 1fr 1fr; } }
html, body { overflow-x: clip; }
.page-hero img { object-position: center 62%; }
/* Страници за дни: небето и месечен календар */
.sky .card { display: flex; flex-direction: column; }
.sun-arc { width: 100%; height: auto; max-height: 150px; }
.sky-row { display: flex; justify-content: space-between; gap: 8px; text-align: center; margin-top: 6px; }
.sky-row span { font-size: 13px; color: var(--ink-2); }
.sky-row b { display: block; font-family: "Sofia Sans Condensed", sans-serif; font-size: 26px; font-weight: 800; color: var(--ink); }
.moon-svg { width: 130px; height: 130px; margin: 0 auto 6px; display: block; }
.sky-moon { text-align: center; margin: 0 0 8px; font-size: 16px; }
.mm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 520px; }
.mm-h { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.mm-h.we { color: var(--red-fill); }
.mm-d { position: relative; display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
a.mm-d:hover { border-color: var(--green); color: var(--green); }
.mm-d.we { color: var(--red-fill); background: #FCFAF6; }
.mm-d.off { background: var(--red-fill); color: #fff; border-color: var(--red-fill); }
.mm-d.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.mm-d.nd::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #F2B632; }
/* Година като хапчета */
.year-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.year-pills a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 800; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.year-pills a:hover { border-color: var(--green); }
.year-pills a[aria-current="page"] { background: #087A58; border-color: #087A58; color: #fff; }

/* Празници: следващ, филтри, хронология */
.hl-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: #087A58; color: #fff; border: 0; }
.hl-next a { color: #fff; text-decoration: none; font-family: "Sofia Sans Condensed", sans-serif; font-size: 26px; }
.hl-next-k { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F2B632; }
.hl-tools { position: sticky; top: 56px; z-index: 5; background: rgba(250, 247, 241, .96); backdrop-filter: blur(8px); padding: 10px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.hl-filter, .hl-months { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hl-filter button { flex: none; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.hl-filter button span { color: var(--ink-2); font-weight: 600; margin-left: 4px; }
.hl-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hl-filter button[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }
.hl-months { margin-top: 8px; }
.hl-months a { flex: none; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; text-transform: capitalize; }
.hl-months a:hover { background: #fff; color: var(--green); }
.hl-month { scroll-margin-top: 150px; margin: 22px 0 6px; }
.hl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl-item a { display: flex; align-items: center; gap: 12px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.hl-item a:hover { border-color: #087A58; transform: translateY(-1px); }
.hl-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.hl-date { flex: none; width: 52px; text-align: center; border-radius: 10px; border: 1px solid var(--line); padding: 4px 0; }
.hl-date b { display: block; font-family: "Sofia Sans Condensed", sans-serif; font-size: 24px; line-height: 1; }
.hl-date i { font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--ink-2); }
.hl-item.is-off .hl-date { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.hl-item.is-off .hl-date i { color: rgba(255, 255, 255, .85); }
.hl-body { flex: 1; min-width: 0; }
.hl-name { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.hl-meta { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 760px) { .hl-list { grid-template-columns: 1fr; } .hl-item img { display: none; } }
/* Имени дни по име */
.name-search { background: #087A58; border: 0; color: #fff; }
.name-search .tool-label { color: #F2B632; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.tool-input.big { max-width: none; height: 58px; font-size: 20px; border: 0; }
.name-search .note { color: rgba(255, 255, 255, .75); margin: 10px 0 0; }
.nt-card { display: block; text-decoration: none; color: var(--ink); margin: 0; }
.nt-card .kicker { margin: 0; display: block; }
.nt-card b { font-family: "Sofia Sans Condensed", sans-serif; font-size: 24px; }
.nt-card:hover { border-color: #087A58; }
.nt-links { margin-bottom: 26px; }
.pop-names { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pop-names a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.pop-names a:hover { border-color: #C2185B; transform: translateY(-1px); }
.pop-names b { display: block; font-family: "Sofia Sans Condensed", sans-serif; font-size: 28px; font-weight: 800; line-height: 1.1; }
.pop-names span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .pop-names { grid-template-columns: 1fr 1fr; } }
/* ===== Дизайн 3: 1440 px, меню вдясно с подменюта, ново лого, бутони, категории със снимки ===== */
.wrap { max-width: 1440px; padding-left: 32px; padding-right: 32px; }
.page-hero-in { max-width: 1440px; padding-left: 32px; padding-right: 32px; }
@media (max-width: 760px) { .wrap, .page-hero-in { padding-left: 16px; padding-right: 16px; } }

.top { background: #fff; backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
.top-in { min-height: 78px; gap: 20px; flex-wrap: nowrap; }
.logo { gap: 10px; }
.logo .mark { width: 44px; height: 44px; flex: none; }
.logo-t { display: flex; flex-direction: column; line-height: 1; }
.logo-t b { font-family: "Sofia Sans Condensed", sans-serif; font-size: 29px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.logo-t em { font-style: normal; color: #B52532; }
.logo-t small { margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #087A58; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.nav > ul > li > a:hover { color: #087A58; background: var(--paper); }
.nav > ul > li > a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 #B52532; border-radius: 0; background: none; }
.nav .dn { opacity: .55; transition: transform .15s; }
.nav .sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(23, 34, 29, .3); z-index: 40; }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav li.has-sub:hover .sub, .nav li.has-sub:focus-within .sub { display: block; }
.nav li.has-sub:hover .dn { transform: rotate(180deg); }
.nav .sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .sub a:hover { background: var(--paper); color: #087A58; }

.top-act { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.icon-btn:hover { border-color: #087A58; color: #087A58; }
.year-dd { position: relative; }
.year-dd summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.year-dd summary::-webkit-details-marker, .mnav summary::-webkit-details-marker { display: none; }
.year-dd ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(23, 34, 29, .3); min-width: 180px; z-index: 40; }
.year-dd a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.year-dd a:hover { background: var(--paper); }
.btn-today { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 99px; background: #B52532; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px -8px rgba(200, 30, 15, .7); transition: transform .15s, box-shadow .15s, background .15s; }
.btn-today:hover { background: #96202A; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(200, 30, 15, .8); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); max-height: 78vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(23, 34, 29, .35); padding: 10px; z-index: 50; }
.mnav-panel ul { list-style: none; margin: 0; padding: 0; }
.mnav-panel > ul > li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.mnav-panel > ul > li:last-child { border: 0; }
.mnav-panel a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.mnav-panel a b { font-family: "Sofia Sans Condensed", sans-serif; font-size: 19px; }
.mnav-panel li ul a { font-size: 15px; color: var(--ink-3); padding: 7px 10px 7px 18px; }
@media (max-width: 1180px) { .nav { display: none; } .mnav { display: block; } .top-act { margin-left: auto; } }
@media (max-width: 560px) { .logo-t small, .year-dd, .icon-btn { display: none; } .logo-t b { font-size: 25px; } .logo .mark { width: 38px; height: 38px; } .btn-today { padding: 0 14px; } .top-in { min-height: 64px; } }

/* Бутони */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 99px; background: #B52532; color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 8px 20px -10px rgba(200, 30, 15, .75); transition: transform .15s, box-shadow .15s, background .15s; }
.btn::after { content: "→"; font-weight: 700; transition: transform .15s; }
.btn:hover { background: #96202A; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(200, 30, 15, .85); }
.btn:hover::after { transform: translateX(3px); }
.btn-ghost { background: #fff; color: #087A58; border: 1.5px solid #087A58; box-shadow: none; }
.btn-ghost:hover { background: #087A58; color: #fff; box-shadow: 0 10px 22px -12px rgba(10, 106, 78, .7); }
button.btn::after { content: none; }

/* Категории със снимки */
.cats ul { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cats a { position: relative; display: block; padding: 0; overflow: hidden; border: 0; border-radius: 16px; aspect-ratio: 4 / 3; background: #E5E1D8; }
.cats a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cats a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 34, 29, .78), rgba(23, 34, 29, 0) 58%); }
.cats a span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-family: "Sofia Sans Condensed", sans-serif; font-size: 22px; font-weight: 800; }
.cats a:hover img { transform: scale(1.05); }
.cats a:hover { transform: none; }
.cats i { display: none; }
.foot-copy { color: var(--ink-2); font-size: 13px; padding-bottom: 24px; }
.foot .logo-t small { color: #087A58; }
/* Голямо долно меню */
.cats { margin-bottom: 48px; }
.foot2 { position: relative; isolation: isolate; overflow: hidden; background: #123F35; color: #fff; }
.foot2-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.foot2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 61, 46, .85), rgba(11, 61, 46, .93) 55%, #0C2C25); }
.foot2-tri { height: 6px; background: linear-gradient(90deg, #fff 0 33.3%, #00966E 33.3% 66.6%, #D62612 66.6%); }
.foot2 a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.foot2 a:hover { color: #fff; }
.foot2-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 48px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.foot2-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #F2B632; }
.foot2-h { margin: 8px 0 0; font-family: "Sofia Sans Condensed", sans-serif; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; }
.foot2-h span { color: #E5626C; }
.foot2-s { margin: 12px 0 0; color: rgba(255, 255, 255, .75); }
.foot2-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.foot2 .btn { color: #fff; }
.btn-light { background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }
.btn-light:hover { background: #fff; color: #123F35 !important; }
.foot2-facts { list-style: none; margin: 40px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; }
.foot2-facts li { background: rgba(11, 61, 46, .75); padding: 20px; }
.foot2-facts p { margin: 0; display: flex; align-items: center; gap: 8px; font-family: "Sofia Sans Condensed", sans-serif; font-size: 21px; font-weight: 800; }
.foot2-facts i { width: 10px; height: 10px; background: #B52532; transform: rotate(45deg); flex: none; }
.foot2-facts span { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.foot2-main { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; padding-bottom: 48px; }
.foot2-brand p { margin: 20px 0 0; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .75); }
.logo-w .logo-t b { color: #fff; }
.logo-w .logo-t em { color: #E5626C; }
.logo-w .logo-t small { color: #F2B632; }
.foot2-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.foot2-cols p { margin: 0; font-family: "Sofia Sans Condensed", sans-serif; font-size: 19px; font-weight: 800; }
.foot2-cols p::after { content: ""; display: block; width: 32px; height: 2px; background: #B52532; margin-top: 8px; }
.foot2-cols ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.foot2-bar { border-top: 1px solid rgba(255, 255, 255, .15); background: rgba(8, 40, 30, .8); }
.foot2-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.foot2-bar p { margin: 0; }
.foot2-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot2 .maker { color: #E5434F; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.foot2 .maker:hover { color: #fff; }
@media (max-width: 1100px) { .foot2-main { grid-template-columns: 1fr; } .foot2-cols { grid-template-columns: repeat(3, 1fr); } .foot2-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot2-cols, .foot2-facts { grid-template-columns: 1fr 1fr; } }
/* Уточнена палитра и „Обновено на“ */
:root { --sand: #F1EEE6; --forest: #123F35; }
.updated { margin: 28px 0 0; font-size: 13.5px; color: var(--ink-2); }
.updated a { color: #087A58; }
/* Категории v3: снимка горе, надпис и пояснение отдолу на бял фон */
.cats ul { grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cats a { display: flex; flex-direction: column; height: 100%; aspect-ratio: auto; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line, #E5E1D8); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.cats a::after { content: none; }
.cats a:hover { border-color: #087A58; transform: translateY(-2px); }
.cats-ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #E5E1D8; }
.cats-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cats a:hover .cats-ph img { transform: scale(1.05); }
.cats a .cats-tx { position: static; display: block; flex: 1; padding: 10px 12px 12px; color: var(--ink); font: inherit; }
.cats-tx b { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-family: "Sofia Sans Condensed", sans-serif; font-size: 18px; font-weight: 800; line-height: 1.1; }
.cats-tx b svg { flex: none; color: #B52532; transition: transform .15s; }
.cats a:hover .cats-tx b { color: #087A58; }
.cats a:hover .cats-tx b svg { transform: translateX(2px); }
.cats-tx small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: #69746C; }
@media (max-width: 1100px) { .cats ul { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cats ul { grid-template-columns: 1fr 1fr; } }

/* Надписът над H1 е с нормален регистър, не с главни букви */
.kicker, .hero-kicker { text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 700; }
.cats a .cats-ph { position: relative; inset: auto; display: block; color: inherit; font: inherit; }
.page-hero { min-height: clamp(280px, 30vw, 400px); }
.page-hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -.01em; }

/* Значими дати (/lichnosti/, /istoriya/, /sabitiya/, /znachimi-dati/) */
.ms { padding-top: 24px; }
.ms-hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; background: radial-gradient(ellipse at 0% 0%, rgba(8, 122, 88, .55), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(181, 37, 50, .35), transparent 55%), #0B2A23; }
.ms-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #fff 0 33.3%, #00966E 33.3% 66.6%, #D62612 66.6%); }
.ms-cat { margin: 0; }
.ms-cat a, .ms-hero .ms-cat { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.ms-hero .ms-cat:has(a) { background: none; border: 0; padding: 0; }
.ms-hero h1 { margin: 18px 0 0; max-width: 22em; font-family: "Sofia Sans Condensed", sans-serif; font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1; color: #fff; }
.ms-answer { margin: 14px 0 0; font-family: "Sofia Sans Condensed", sans-serif; font-size: clamp(48px, 8vw, 104px); font-weight: 800; line-height: .9; color: #F2B632; }
.ms-lead { margin: 16px 0 0; max-width: 40em; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.ms-wd { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, .65); }
.ms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 28px 0 0; max-width: 820px; }
.ms-stats div { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.ms-stats dt { font-size: 13px; color: rgba(255, 255, 255, .6); }
.ms-stats dd { margin: 4px 0 0; font-family: "Sofia Sans Condensed", sans-serif; font-size: 32px; font-weight: 800; line-height: 1; color: #fff; }
.ms-stats p { margin: 4px 0 0; font-size: 13.5px; color: #F2B632; font-weight: 700; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.ms-grid > div > .card, .ms-grid aside > * { margin-bottom: 18px; }
.ms-story p { font-size: 18px; line-height: 1.7; }
.ms-facts dl { margin: 0; }
.ms-facts dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #E5E1D8); }
.ms-facts dl div:first-child { border-top: 0; }
.ms-facts dt { font-size: 14px; color: #69746C; }
.ms-facts dd { margin: 0; font-weight: 700; }
.ms-day { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #F2B632; color: #182522; text-decoration: none; transition: transform .15s; }
.ms-day:hover { transform: translateY(-2px); color: #182522; }
.ms-day span { grid-row: span 2; font-family: "Sofia Sans Condensed", sans-serif; font-size: 52px; font-weight: 800; line-height: 1; text-align: center; }
.ms-day b { font-family: "Sofia Sans Condensed", sans-serif; font-size: 21px; line-height: 1.1; }
.ms-day small { font-size: 13.5px; }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-list li { border-top: 1px solid var(--line, #E5E1D8); }
.ms-list li:first-child { border-top: 0; }
.ms-list a { display: flex; flex-direction: column; padding: 10px 0; font-weight: 700; color: #182522; text-decoration: none; }
.ms-list a:hover { color: #087A58; }
.ms-list small { font-weight: 500; color: #69746C; }
.ms-src ul { margin: 0; padding-left: 18px; font-size: 14px; }
.ms-src li { margin: 4px 0; }
.ms-related { margin-top: 40px; }
.ms-related h2 { font-family: "Sofia Sans Condensed", sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0 0 16px; }
.ms-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ms-related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line, #E5E1D8); color: #182522; text-decoration: none; transition: border-color .15s, transform .15s; }
.ms-related a:hover { border-color: #182522; transform: translateY(-2px); }
.ms-related small { font-family: "Sofia Sans Condensed", sans-serif; font-size: 20px; font-weight: 800; color: #B52532; }
.ms-related b { font-size: 16px; line-height: 1.3; }
@media (max-width: 900px) { .ms-grid { grid-template-columns: 1fr; } .ms-facts dl div { grid-template-columns: 105px 1fr; } }

/* Редове в .ev-list без връзка (помени, пости): същата решетка като редовете с връзка */
.ev-list li:not(:has(> a)) { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; }
.ev-list li:not(:has(> a)) .ev-name { font-weight: 700; }
.ev-list li:not(:has(> a)) .ev-sub { display: block; font-weight: 500; }
.customs h3 { margin: 18px 0 6px; font-family: "Sofia Sans Condensed", sans-serif; font-size: 21px; }
.customs ul { margin: 0; padding-left: 20px; }
.customs li { margin: 4px 0; }

/* ===== Вътрешни страници в стила на началната (28.10) ===== */
/* Горна лента и меню */
.topbar { background: #123F35; color: rgba(255, 255, 255, .8); font-size: 13px; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar-in span { font-weight: 700; color: #fff; }
.topbar a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .topbar-hi { margin-left: auto; color: #F2B632; font-weight: 700; }
@media (max-width: 760px) { .topbar { display: none; } }
.nav > ul > li > a { font-family: "Sofia Sans Condensed", sans-serif; font-size: 18px; font-weight: 700; }

/* Тъмен hero със снимка */
.page-hero { min-height: clamp(380px, 40vw, 540px); background: #0B2A23; margin-bottom: 0; align-items: flex-end; }
.page-hero::before { background: linear-gradient(100deg, rgba(11, 42, 35, .96) 0%, rgba(11, 42, 35, .82) 38%, rgba(11, 42, 35, .35) 72%, rgba(11, 42, 35, .15) 100%), linear-gradient(0deg, rgba(11, 42, 35, .85) 0%, rgba(11, 42, 35, 0) 45%); }
.page-hero img { animation: kb-in 24s ease-in-out infinite alternate; }
@keyframes kb-in { from { transform: scale(1.03); } to { transform: scale(1.1); } }
.page-hero-in { padding-top: 40px; padding-bottom: 120px; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 78px); line-height: .95; max-width: 14em; text-wrap: balance; }
.page-hero .kicker { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #F2B632; font-size: 15px; }
.page-hero-place { position: absolute; right: max(24px, calc(50% - 688px)); top: 22px; margin: 0; background: rgba(0, 0, 0, .3); color: #fff; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.page-hero + .answer, .page-hero + .lead + .answer { position: relative; z-index: 2; margin-top: -88px; border: 0; box-shadow: 0 30px 60px -30px rgba(11, 42, 35, .55); }
.page-hero + .lead { position: relative; z-index: 2; margin-top: -96px; margin-bottom: 26px; color: rgba(255, 255, 255, .85); max-width: 46em; }
.page-hero + .lead + .answer { margin-top: 0; }
.page-hero + section.card, .page-hero + .stats, .page-hero + p:not(.lead) { position: relative; z-index: 2; margin-top: -88px; }
@media (max-width: 760px) {
  .page-hero::before { background: linear-gradient(0deg, rgba(11, 42, 35, .97) 0%, rgba(11, 42, 35, .75) 55%, rgba(11, 42, 35, .35) 100%); }
  .page-hero-in { padding-bottom: 104px; }
  .page-hero-place { display: none; }
}

/* Карти: заглавията със шрифта на заглавията */
.card > h2 { font-family: "Sofia Sans Condensed", sans-serif; font-size: 27px; font-weight: 800; }
.card { border-radius: 22px; }

/* Фото лента с покана преди долното меню */
.promo { position: relative; isolation: isolate; overflow: hidden; margin: 56px 0 0; min-height: 340px; display: flex; align-items: center; background: #0B2A23; color: #fff; }
.promo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 42, 35, .95) 0%, rgba(11, 42, 35, .75) 45%, rgba(11, 42, 35, .2) 100%); }
.promo-in { padding-top: 56px; padding-bottom: 56px; }
.promo-h { margin: 0; font-family: "Sofia Sans Condensed", sans-serif; font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: .98; max-width: 12em; }
.promo-t { margin: 14px 0 24px; max-width: 32em; font-size: 18px; color: rgba(255, 255, 255, .82); }
.promo .btn { background: #F2B632; color: #182522; display: inline-flex; align-items: center; gap: 8px; }
.promo .btn:hover { background: #fff; color: #182522; }
.promo + .cats { margin-top: 0; padding-top: 40px; }
/* Снимка зад тъмния блок на значимите дати */
.ms-hero { isolation: isolate; }
.ms-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ms-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 42, 35, .97) 0%, rgba(11, 42, 35, .86) 45%, rgba(11, 42, 35, .45) 100%); }
.promo > .wrap { width: 100%; }
/* Малки снимки в списъците с празници */
.ev-list a:has(.ev-thumb) { align-items: center; }
.ev-thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.ev-thumb { flex: none; }
@media (max-width: 560px) { .ev-thumb { width: 48px; height: 36px; } }

/* Търсене на име: поле, бутон и резултати под него */
.name-row { display: flex; gap: 8px; }
.name-row .tool-input { flex: 1; min-width: 0; }
.name-go { flex: none; padding: 0 22px; border: 0; border-radius: 14px; background: #F2B632; color: #182522; font: 800 17px "Sofia Sans", sans-serif; cursor: pointer; }
.name-go:hover { background: #fff; }
.name-results { list-style: none; margin: 10px 0 0; padding: 6px; background: #fff; border-radius: 16px; }
.name-results a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: #182522; text-decoration: none; font-size: 17px; }
.name-results a:hover, .name-results li:first-child a { background: #FFF6DE; }
.name-results b { font-family: "Sofia Sans Condensed", sans-serif; font-size: 21px; }
.name-results span { color: #B52532; font-weight: 800; }
.name-none { padding: 12px 14px; color: #3A4741; font-size: 15px; line-height: 1.5; }

/* Телефон: 5 px отстъп отляво и отдясно, търсенето е иконка в хедъра */
@media (max-width: 760px) {
  .wrap, .page-hero-in, .top-in, .crumbs ol { padding-left: 5px !important; padding-right: 5px !important; }
  .top .icon-btn { display: grid !important; }
}

/* „На този ден“ на страниците на дните */
.otd-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.otd-col h3 { margin: 0 0 10px; font-family: "Sofia Sans Condensed", sans-serif; font-size: 21px; font-weight: 800; }
.otd-col ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #E5E1D8; }
.otd-col li { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 8px 0 8px 16px; font-size: 15.5px; line-height: 1.45; }
.otd-col li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #087A58; }
.otd-y { font-family: "Sofia Sans Condensed", sans-serif; font-size: 19px; font-weight: 800; color: #087A58; line-height: 1.2; }
.otd-born .otd-y { color: #9A5B00; } .otd-born li::before { border-color: #F2B632; }
.otd-died .otd-y { color: #69746C; } .otd-died li::before { border-color: #A9B2AC; }
@media (max-width: 900px) { .otd-grid { grid-template-columns: 1fr; gap: 18px; } }
