/* Праздники Эстонии (/prazdniki/) */
#tema-portal .th-main{padding-bottom:64px}
#tema-portal .th-main *{box-sizing:border-box}
#tema-portal .th-main a{text-decoration:none!important}
#tema-portal .th-main [hidden]{display:none!important}
#tema-portal .th-h2{margin:44px 0 16px!important;font-size:30px!important;line-height:1.1!important;letter-spacing:-.03em!important;color:#252821!important}
#tema-portal .th-h2 span,#tema-portal .th-hero h1 span{color:#e87b17!important}

/* Hero: title + next holiday plaque */
#tema-portal .th-hero{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:48px;align-items:center;margin-top:20px}
#tema-portal .th-hero h1{margin:0 0 14px!important;font-size:50px!important;line-height:1.04!important;letter-spacing:-.04em!important;color:#252821!important}
#tema-portal .th-hero-text>p{margin:0 0 18px!important;max-width:34em;font-size:18px!important;line-height:1.45!important;color:#3c3e37!important}
#tema-portal .th-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:#55574f}
#tema-portal .th-legend span:before{content:"";display:inline-block;width:13px;height:13px;margin-right:7px;border-radius:4px;vertical-align:-2px}
#tema-portal .th-legend .k-off:before{background:#e87b17}
#tema-portal .th-legend .k-short:before{background:#f4dfc7}
#tema-portal .th-legend .k-day:before{background:#fff;box-shadow:inset 0 0 0 2px #e87b17}
#tema-portal .th-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;padding:24px 24px 18px;border-radius:18px;background:#252821;color:#fff}
#tema-portal .th-eb{display:block;margin-bottom:8px;color:#ff9a3d;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#tema-portal .th-next h2{margin:0!important;font-size:32px!important;line-height:1.08!important;letter-spacing:-.03em!important;color:#fff!important}
#tema-portal .th-next p{margin:8px 0 0!important;font-size:14px!important;line-height:1.4!important;color:#c9cdbf!important}
#tema-portal .th-cd{min-width:96px;padding:12px 14px;border-radius:16px;background:#e87b17;text-align:center}
#tema-portal .th-cd b{display:block;font-size:46px;line-height:1;font-weight:800;letter-spacing:-.03em}
#tema-portal .th-cd span{display:block;margin-top:2px;font-size:14px;font-weight:700}
#tema-portal .th-next .th-off{grid-column:1/-1;margin:6px 0 0!important;padding-top:12px;border-top:1px solid rgba(255,255,255,.14)}
#tema-portal .th-next .th-off b{color:#fff}

/* Upcoming list */
#tema-portal .th-tag{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
#tema-portal .k-off .th-tag{background:#e87b17;color:#fff}
#tema-portal .k-short .th-tag{background:#f4dfc7;color:#8a4a0c}
#tema-portal .k-day .th-tag{background:#e9e6dd;color:#55574f}
#tema-portal .th-list{border-bottom:1px solid #e4e1d8}
#tema-portal .th-row{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px 4px;border-top:1px solid #e4e1d8}
#tema-portal .th-d b{display:block;font-size:28px;line-height:1;letter-spacing:-.03em;color:#252821}
#tema-portal .th-d span{display:block;margin-top:4px;font-size:12px;color:#8a8c83}
#tema-portal .th-n b{display:block;font-size:17px;color:#252821}
#tema-portal .th-n small{display:block;margin-top:2px;font-size:13px;color:#8a8c83}
#tema-portal .th-n em{display:block;margin-top:4px;font-style:normal;font-size:13px;color:#55574f}

/* Calendar */
#tema-portal .th-cal-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
#tema-portal .th-tabs{display:flex;gap:6px;margin-bottom:16px;padding:4px;border-radius:12px;background:#eee9df}
#tema-portal .th-tabs button{padding:8px 16px;border:0;border-radius:9px;background:transparent;color:#55574f;font:700 15px Arial,Helvetica,sans-serif;cursor:pointer}
#tema-portal .th-tabs button[aria-selected=true]{background:#252821;color:#fff}
#tema-portal .th-year-title{margin:0 0 4px!important;font-size:20px!important;color:#252821!important}
.th-js #tema-portal .th-year-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#tema-portal .th-year-sum{margin:0 0 16px!important;font-size:14px!important;color:#6b6d65!important}
#tema-portal .th-year+.th-year{margin-top:30px}
#tema-portal .th-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#tema-portal .th-mo{padding:16px;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(37,40,33,.05)}
#tema-portal .th-mo h4{margin:0 0 10px!important;font-size:16px!important;color:#252821!important}
#tema-portal .th-g{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center;font-size:13px;color:#3c3e37}
#tema-portal .th-g i{padding-bottom:3px;font-style:normal;font-size:10px;color:#a3a59b}
#tema-portal .th-g span{padding:5px 0;border-radius:7px;font-variant-numeric:tabular-nums}
#tema-portal .th-g .we{color:#b0563a}
#tema-portal .th-g .k-off{background:#e87b17;color:#fff;font-weight:700}
#tema-portal .th-g .k-short{background:#f4dfc7;font-weight:700}
#tema-portal .th-g .k-day{box-shadow:inset 0 0 0 2px #e87b17;font-weight:700}
#tema-portal .th-g .today{outline:2px solid #252821;outline-offset:-2px}
#tema-portal .th-mo ul{list-style:none;margin:10px 0 0!important;padding:10px 0 0!important;border-top:1px solid #f1eee7}
#tema-portal .th-mo li{margin:0!important;padding:2px 0!important;font-size:12px!important;line-height:1.35!important;color:#3c3e37}
#tema-portal .th-mo li b{display:inline-block;min-width:20px;color:#e87b17}
#tema-portal .th-mo li.k-short b{color:#b9772f}
#tema-portal .th-mo li.k-day b{color:#8a8c83}

/* FAQ */
#tema-portal .th-faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#tema-portal .th-faq>div{padding:18px 20px;border-radius:14px;background:#eee9df}
#tema-portal .th-faq h3{margin:0 0 8px!important;font-size:17px!important;line-height:1.3!important;color:#252821!important}
#tema-portal .th-faq p{margin:0!important;font-size:15px!important;line-height:1.5!important;color:#3c3e37!important}
#tema-portal .th-src{margin:24px 0 0!important;font-size:13px!important;line-height:1.5!important;color:#6b6d65!important}
#tema-portal .th-src a{color:#c25f08!important}

@media(max-width:1000px){#tema-portal .th-hero{grid-template-columns:1fr;gap:24px}#tema-portal .th-months{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#tema-portal .th-months{grid-template-columns:repeat(2,minmax(0,1fr))}#tema-portal .th-faq{grid-template-columns:1fr}}
@media(max-width:520px){
  #tema-portal .th-hero h1{font-size:34px!important}
  #tema-portal .th-hero-text>p{font-size:16px!important}
  #tema-portal .th-next{padding:20px 18px 16px}
  #tema-portal .th-next h2{font-size:26px!important}
  #tema-portal .th-cd{min-width:78px;padding:10px}
  #tema-portal .th-cd b{font-size:36px}
  #tema-portal .th-row{grid-template-columns:64px minmax(0,1fr);gap:4px 12px}
  #tema-portal .th-row .th-tag{grid-column:2;justify-self:start}
  #tema-portal .th-h2{font-size:26px!important}
  #tema-portal .th-months{grid-template-columns:1fr}
}
