/* Бүгін мереке. Mobile first. Шрифты: файлы woff2 кладутся в ../fonts/, пока их нет, работают системные. */
@font-face{font-family:Montserrat;font-style:normal;font-weight:500 700;font-display:swap;src:url("../fonts/montserrat-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Montserrat;font-style:normal;font-weight:500 700;font-display:swap;src:url("../fonts/montserrat-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;font-style:normal;font-weight:500 700;font-display:swap;src:url("../fonts/montserrat-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:Inter;font-style:normal;font-weight:400 600;font-display:swap;src:url("../fonts/inter-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Inter;font-style:normal;font-weight:400 600;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 600;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}

:root{
  --bg:#F6F9FB;--surface:#FFFFFF;--text:#10222B;--muted:#4A626D;--nav:#2E4652;
  --primary:#0A6E8F;--link:#0A5F7C;--link-h:#063F53;--gold:#E8B931;--border:#DDE7EC;--soft:#E6F3F7;
  --hero-bg:#0A6E8F;--hero-muted:#CFE9F1;--hero-text2:#E8F5F9;--hero-line:#8FC9DA;
  --red:#B3122E;--hole:var(--hero-bg);
  --c-holiday-bg:#B3122E;--c-holiday-fg:#FFFFFF;
  --c-transfer-bg:#FBE9A8;--c-transfer-bg2:#F3D36B;--c-transfer-fg:#3A2C00;
  --c-weekend-bg:#E9EDF0;--c-weekend-fg:#3F4E57;
  --c-dot:#0A5F7C;--focus:#063F53;
  --notice-bg:#FFF3CC;--notice-fg:#4A3800;
  --font-h:Montserrat,"Trebuchet MS",system-ui,sans-serif;
  --font-b:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0B161B;--surface:#12232B;--text:#E6F0F4;--muted:#A9C0CA;--nav:#C5D6DD;
    --primary:#0A6E8F;--link:#6CC8E6;--link-h:#A8E0F2;--border:#2A404A;--soft:#17323C;
    --hero-bg:#0A4A60;--red:#FF7A8E;
    --c-holiday-bg:#FF7A8E;--c-holiday-fg:#1D0006;
    --c-transfer-bg:#5A4710;--c-transfer-bg2:#6B5614;--c-transfer-fg:#FFE9A0;
    --c-weekend-bg:#26333A;--c-weekend-fg:#C9D6DC;
    --c-dot:#8FD3EA;--focus:#E8B931;
    --notice-bg:#4A3B0A;--notice-fg:#FFE9A0;
  }
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-b);line-height:1.5;overflow-wrap:break-word}
a{color:var(--link)}
a:hover{color:var(--link-h)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
h1,h2,h3,p,ul,dl,figure{margin:0}
ul{padding:0;list-style:none}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip:not(:focus){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{display:inline-block;margin-top:12px}
.muted{color:var(--muted);font-size:14px;margin-top:12px}

.demo-banner{background:var(--gold);color:#1D1600;text-align:center;font-weight:600;font-size:14px;padding:6px 16px}

/* Шапка */
.site-header{background:var(--surface);border-bottom:1px solid var(--border)}
.site-header__in{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;padding-top:12px;padding-bottom:12px}
.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--text);min-height:44px}
.brand__name{font-family:var(--font-h);font-weight:700;font-size:18px}
.nav{display:flex;flex-wrap:wrap;gap:4px;font-size:15px;font-weight:500;order:3;width:100%}
.nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;text-decoration:none;color:var(--nav);border-radius:10px}
.nav a.is-active{color:var(--link);background:var(--soft)}
.langs{display:flex;gap:4px;font-size:14px;font-weight:600}
.langs a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;text-decoration:none;color:var(--nav);border-radius:10px}
.langs a.is-active{color:#fff;background:var(--primary)}
@media (min-width:900px){.nav{order:0;width:auto}}

/* Герой */
.hero{background:var(--hero-bg);color:#fff;overflow:hidden}
.hero__orn{line-height:0}
.orn{display:block}
.hero__in{display:grid;gap:32px;padding-top:32px;padding-bottom:48px}
@media (min-width:860px){.hero__in{grid-template-columns:minmax(0,1fr) 360px;align-items:start;padding-top:40px;padding-bottom:64px}}
.hero__main{display:flex;flex-direction:column;gap:20px;min-width:0}
.hero__date{font-size:16px;color:var(--hero-muted)}
.hero__title{font-family:var(--font-h);font-weight:700;font-size:clamp(28px,7.5vw,52px);line-height:1.1;overflow-wrap:break-word;hyphens:manual;text-wrap:balance}
.hero__text{font-size:18px;line-height:1.6;color:var(--hero-text2);max-width:640px}
.hero__src,.hero__muted{font-size:14px;color:var(--hero-muted)}
.hero__link{color:#fff}
.hero__link:hover{color:var(--gold)}
.hero__others-h{font-size:14px;color:var(--hero-muted);margin-bottom:6px}
.hero__others li{padding:4px 0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:6px 12px;border-radius:999px;font-size:14px}
.chip--solid{background:#fff;color:#0A5F7C;font-weight:600}
.chip--line{border:1px solid var(--hero-line);color:#fff;font-weight:500}

.btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 22px;border-radius:12px;font-weight:600;text-decoration:none;text-align:center}
.btn--hero-line{border:1px solid var(--hero-line);color:#fff;font-weight:500}
.btn--hero-line:hover{color:#fff;background:rgba(255,255,255,.12)}
.btn--primary{background:var(--primary);color:#fff}
.btn--primary:hover{color:#fff;background:#085A75}
.btn--outline{border:1px solid var(--primary);color:var(--link)}

/* Отрывной листок + счётчик: одна белая карточка */
.tear{background:var(--surface);color:var(--text);border-radius:20px;overflow:hidden;min-width:0}
.tear__bar{height:22px;background:var(--primary);display:flex;justify-content:space-around;align-items:center}
.tear__hole{width:10px;height:10px;border-radius:50%;background:var(--hole)}
.tear__body{padding:20px 16px 24px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.tear__month{font-family:var(--font-h);font-weight:500;font-size:clamp(16px,4.6vw,22px);text-transform:uppercase;letter-spacing:.06em}
.tear__day{font-family:var(--font-h);font-weight:700;font-size:clamp(88px,26vw,132px);line-height:1.1;color:var(--text)}
.tear__day.is-off{color:var(--red)}
.tear__week{font-size:17px;font-weight:500;color:var(--muted)}
.tear__cut{border-top:2px dashed var(--border);margin:0 16px}
.tear__count{padding:20px 24px 24px;display:flex;flex-direction:column;gap:8px}
.tear__label{font-size:15px;font-weight:500;color:var(--muted)}
.tear__num{font-family:var(--font-h);font-size:clamp(48px,14vw,64px);font-weight:700;color:var(--primary);line-height:1}
.tear__unit{font-size:22px;font-weight:500;color:var(--muted)}
.tear__what{font-size:17px;font-weight:600}
.tear__sub{font-size:14px;color:var(--muted)}
@media (prefers-color-scheme:dark){.tear__num{color:var(--link)}}
@media (prefers-reduced-motion:no-preference){
  .tear__sheet{transform-origin:50% 0;animation:tear-off .4s ease-out both}
}
@keyframes tear-off{from{transform:translateY(-18px) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}

/* Секции */
.section{padding-top:32px;padding-bottom:16px}
.h2{font-family:var(--font-h);font-size:clamp(22px,5.5vw,28px);font-weight:700;margin:32px 0 20px}
.section .h2{margin-top:16px}
.h3{font-size:20px;font-weight:600}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.card__date{font-family:var(--font-h);font-size:26px;font-weight:700;color:var(--link)}
.card__name{font-size:17px;font-weight:600;line-height:1.35}
.card__kind{font-size:14px;color:var(--muted)}
.panels{display:grid;gap:24px}
@media (min-width:760px){.panels{grid-template-columns:1fr 1fr}}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.panel--soft{background:var(--soft);border-color:transparent}
.panel__text{font-size:15px;color:var(--muted);line-height:1.5}
.panel__link{font-weight:600;display:inline-flex;align-items:center;min-height:44px}

.notice{background:var(--notice-bg);color:var(--notice-fg);border-radius:10px;padding:10px 14px;font-size:14px;font-weight:500}

/* Внутренние страницы */
.page{padding-top:28px;padding-bottom:48px}
.page__title{font-family:var(--font-h);font-size:clamp(24px,6.5vw,40px);line-height:1.15;font-weight:700;overflow-wrap:anywhere;margin-bottom:16px}
.page__sub{color:var(--muted);margin-bottom:12px}
.page__tag{display:inline-block;font-family:var(--font-b);font-size:.45em;font-weight:500;color:var(--muted);white-space:nowrap}
.page__lead{font-size:18px;line-height:1.6;margin-bottom:20px;max-width:720px}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:12px}
.facts{display:grid;gap:0;border-top:1px solid var(--border);margin-bottom:24px;max-width:720px}
.facts>div{display:flex;flex-wrap:wrap;gap:4px 16px;padding:12px 0;border-bottom:1px solid var(--border)}
.facts dt{flex:0 0 150px;color:var(--muted);font-size:14px}
.facts dd{margin:0;flex:1 1 200px;font-weight:600;min-width:0}
.hlist li{padding:8px 0;border-bottom:1px solid var(--border)}
.hlist__d{font-weight:600;margin-right:6px}
.yearnav{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:32px}
.yearnav a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* Календарь года */
.legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 8px;font-size:14px}
.legend li{display:flex;align-items:center;gap:8px}
.sw{width:18px;height:18px;border-radius:4px;display:inline-block;flex:none;position:relative;border:2px solid transparent}
.months{display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));margin-top:16px}
.month{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px}
.month__h{font-size:17px;font-weight:600;margin-bottom:10px}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.cal__h{font-size:12px;color:var(--muted);padding:2px 0}
.cal__d,.cal__day{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-radius:8px;font-size:14px;border:2px solid transparent}
.cal__day{appearance:none;margin:0;padding:0;min-width:0;font:inherit;font-size:14px;color:var(--text);background:none;cursor:pointer;position:relative}
.cal__day:hover{border-color:var(--border)}
.cal__day:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.cal__day[aria-expanded="true"]{border-color:var(--focus)}
.cal__day.is-holiday,.sw--holiday{background:var(--c-holiday-bg);color:var(--c-holiday-fg);font-weight:700}
.cal__day.is-transfer,.sw--transfer{background:var(--c-transfer-bg);color:var(--c-transfer-fg);font-weight:600;
  background-image:repeating-linear-gradient(135deg,var(--c-transfer-bg) 0 5px,var(--c-transfer-bg2) 5px 10px)}
.cal__day.is-weekend,.sw--weekend{background:var(--c-weekend-bg);color:var(--c-weekend-fg)}
.sw--work{background:var(--surface);border-color:var(--border)}
.cal__day.is-today,.sw--today{border-color:var(--text)}
.sw--today{background:transparent}
.cal__day.has-dot::after,.sw--event::after{content:"";position:absolute;left:50%;bottom:3px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--c-dot)}
.sw--event{background:var(--surface);border-color:var(--border)}
.sw--event::after{bottom:2px}
.mlist{margin-top:12px;font-size:14px}
.mlist li{padding:4px 0;border-top:1px solid var(--border)}

/* Подсказка по дню */
.pop{position:fixed;left:var(--pop-x,8px);top:var(--pop-y,8px);z-index:50;width:max-content;max-width:min(320px,calc(100vw - 16px));
  background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:12px 14px;
  box-shadow:0 8px 24px rgba(0,0,0,.22);text-align:left;font-size:14px;line-height:1.45}
.pop[hidden]{display:none}
.pop__close{position:absolute;top:2px;right:2px;width:36px;height:36px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}
.pop__close:focus-visible{outline:3px solid var(--focus)}
.pop__body{padding-right:28px}
.pop .tip__date{font-weight:700}
.pop .tip__status{margin-top:4px;font-weight:600}
.pop .tip__status--holiday{color:var(--red)}
.pop .tip__reason{margin-top:2px;color:var(--muted)}
.pop .tip__list{margin-top:8px}
.pop .tip__list li{padding:3px 0}
.pop .tip__list small{display:block;color:var(--muted);font-size:13px}
.pop .tip__none{margin-top:8px;color:var(--muted)}
@media (max-width:599px){
  .pop.pop--sheet{left:0;right:0;top:auto;bottom:0;width:auto;max-width:none;max-height:70vh;overflow:auto;
    border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));font-size:16px}
  .pop.pop--sheet .pop__close{width:44px;height:44px;top:4px;right:4px}
}
/* Таблица */
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border)}
.tbl th,.tbl td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:right}
.tbl th:first-child{text-align:left}
.tbl thead th{font-size:13px;color:var(--muted);font-weight:600}
.tbl tfoot th,.tbl tfoot td{font-weight:700;background:var(--soft)}
.tbl-wrap .tbl{min-width:560px}
.tbl-wrap--narrow .tbl{min-width:0}
.tbl-wrap--narrow{max-width:520px}
/* Первая колонка закреплена при горизонтальной прокрутке */
.tbl--sticky th:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--border)}
.tbl--sticky tfoot th:first-child{background:var(--soft)}
.tbl-wrap:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
/* Вкладки режима недели */
.tabs{display:flex;flex-wrap:wrap;gap:4px;margin:16px 0;font-weight:600}
.tabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;text-decoration:none;color:var(--nav);border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.tabs a.is-active{color:var(--link);background:var(--soft);border-color:var(--link)}
/* Как считается */
.howto{margin:0 0 20px}
.howto__list{margin-top:8px;padding-left:20px;list-style:disc}
.howto__list li{margin-top:6px}

/* Подвал */
.site-footer{border-top:1px solid var(--border);margin-top:40px}
.site-footer__in{display:flex;flex-wrap:wrap;gap:12px 16px;justify-content:space-between;padding-top:24px;padding-bottom:28px;font-size:14px;color:var(--muted)}

.hero__kicker{font-family:var(--font-h);font-weight:700;font-size:clamp(22px,4vw,30px);line-height:1.2}
.peers{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.peer{border:1px solid var(--hero-line,rgba(255,255,255,.35));border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px}
.peer__title{font-family:var(--font-h);font-weight:700;font-size:clamp(20px,3vw,26px);line-height:1.2;overflow-wrap:break-word;text-wrap:balance}
.peer__text{font-size:16px;line-height:1.55}
.peer__foot{font-size:15px;margin-top:auto}

/* Хлебные крошки, соседние дни */
.crumbs-bar{padding-top:14px}
ol.crumbs{display:flex;flex-wrap:wrap;gap:2px 0;padding:0;margin:0;list-style:none;font-size:14px;color:var(--muted)}
ol.crumbs li+li::before{content:"/";margin:0 8px;color:var(--muted)}
ol.crumbs a{display:inline-flex;align-items:center;min-height:24px}
.daynav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding-top:20px}
.daynav a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.month__h a{color:inherit;text-decoration:none}
.month__h a:hover{text-decoration:underline}
.months--one{grid-template-columns:minmax(0,360px)}
.monthnav{display:flex;flex-wrap:wrap;gap:8px}
.monthnav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-decoration:none;font-weight:500}
.monthnav a.is-active{background:var(--soft);border-color:var(--link);color:var(--link)}
.tbl--left th,.tbl--left td{text-align:left}

/* Блоки отдыха */
.blocks{display:grid;gap:16px;margin-top:16px}
.block{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px 20px}
.block__h{font-family:var(--font-h);font-size:clamp(18px,4.5vw,22px);font-weight:700;margin:0 0 10px}
.block__n{font-weight:500;color:var(--muted)}
.daystrip{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.dchip{padding:4px 10px;border-radius:8px;font-size:14px;border:2px solid transparent}
.dchip--holiday{background:var(--c-holiday-bg);color:var(--c-holiday-fg);font-weight:700}
.dchip--transfer{background:var(--c-transfer-bg);color:var(--c-transfer-fg);font-weight:600;border-color:var(--c-transfer-bg2)}
.dchip--weekend{background:var(--c-weekend-bg);color:var(--c-weekend-fg)}
.block__facts>div{display:flex;flex-wrap:wrap;gap:2px 16px;padding:8px 0;border-top:1px solid var(--border)}
.block__facts dt{flex:0 0 110px;color:var(--muted);font-size:14px}
.block__facts dd{margin:0;flex:1 1 220px;min-width:0}
.block__tr{display:block}

/* Статья о празднике */
.art{max-width:760px;margin-top:8px}
.art p{margin-top:10px;line-height:1.6}
.art__sec .h2{margin-top:28px}
.art__src{font-size:13px;color:var(--muted)}
.art__list{padding-left:22px}
.faq{border-bottom:1px solid var(--border);padding:8px 0}
.faq summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}

/* Подвал */
.footer__nav{min-width:0}
.footer__h{font-weight:600;color:var(--text);margin-bottom:6px}
.footer__nav ul{display:flex;flex-wrap:wrap;gap:0 14px}
.footer__nav li a{display:inline-flex;align-items:center;min-height:32px}
.footer__months{max-width:520px}
.footer__note{flex:1 1 100%}

.ym-px{position:absolute;left:-9999px}
