:root{color-scheme:light;--blue:#092777;--green:#00794c;--red:#dd141b;--ink:#15243d;--line:#dce4ee}
*{box-sizing:border-box}body{margin:0;background:transparent;font-family:Arial,Helvetica,sans-serif;color:var(--ink)}
.calendar{width:100%;max-width:1200px;margin:auto;background:white;overflow:hidden;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 35px #12284a0c}
.hero{position:relative;aspect-ratio:1536/350;overflow:hidden;background:#e6edf5}.hero-picture{display:block;width:100%;height:auto}.seal{position:absolute;left:.7%;top:2.7%;width:14.5%;height:auto;border-radius:50%;background:white}
.today{padding:26px 34px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.date-area{display:flex;align-items:center;gap:25px}.number{font-weight:800;font-size:clamp(72px,10vw,118px);line-height:.9;color:var(--blue);letter-spacing:-5px}.weekday{font-size:clamp(21px,3vw,31px);font-weight:700;margin-bottom:8px;color:var(--blue)}.month{font-size:clamp(20px,2.8vw,28px);font-weight:500}.year{color:#6c7687;margin-left:8px}.holiday{margin-top:10px;font-size:16px;line-height:1.35;max-width:540px}.holiday:empty{display:none}.calendar.red .number,.calendar.red .weekday,.calendar.red .holiday{color:var(--red)}
.motto{font-size:19px;line-height:1.4;font-weight:700;color:var(--green);max-width:245px;text-align:right}.motto strong{display:block;color:var(--blue);font-size:15px;margin-top:6px}
.footer{padding:15px 34px;border-top:1px solid var(--line);font-size:13px;color:#52617a;display:flex;justify-content:space-between;align-items:center;gap:15px}.footer a{color:var(--blue);font-weight:700;text-decoration:none}.tricolor{width:44px;height:5px;border-radius:3px;background:linear-gradient(to right,#008653 0 50%,#ed151c 50%);display:inline-block;margin-right:10px;vertical-align:middle}
.demo{max-width:1200px;margin:0 auto 16px;padding:18px 22px;background:#f1f5fa;border:1px solid var(--line);border-radius:14px}.demo-title{font-size:18px;font-weight:bold;color:var(--blue);margin:0 0 12px}.demo-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.demo button,.demo select,.demo input{font:inherit;padding:10px 12px;border:1px solid #b8c8dc;border-radius:8px;background:white;color:var(--blue)}.demo button{cursor:pointer}.demo .primary{background:var(--blue);color:white;border-color:var(--blue)}.demo-note{font-size:13px;color:#52617a;margin:12px 0 0}.demo-page{padding:20px;background:#f7f9fc}.error{padding:20px;color:#96222a}.noscript{padding:18px;color:#52617a}
@media(max-width:600px){.calendar{border-radius:12px}.today{padding:22px 20px;gap:18px;align-items:flex-start;flex-direction:column}.date-area{gap:20px}.number{letter-spacing:-3px}.motto{max-width:none;text-align:left;font-size:15px}.motto strong{display:inline;margin-left:6px;font-size:13px}.footer{padding:13px 20px;font-size:12px}.footer span:last-child{display:none}.demo-page{padding:12px}.demo{padding:15px}}
@media(prefers-reduced-motion:no-preference){.hero-picture{animation:appear .3s ease-out}@keyframes appear{from{opacity:.6}to{opacity:1}}}
.calendar.compact{max-width:280px;border-radius:12px;box-shadow:0 4px 16px #12284a0c}
.compact .hero{aspect-ratio:1536/350}
.compact .today{display:block;padding:15px 18px 13px}
.compact .date-area{gap:12px;align-items:center}
.compact .number{font-size:64px;line-height:.96;letter-spacing:-3px;flex-shrink:0}
.compact .date-detail{min-width:0}
.compact .month{font-size:20px;font-weight:800;line-height:1.15;color:var(--blue)}
.compact .weekday{font-size:14px;font-weight:600;margin:6px 0 2px;color:#59667b}
.compact .year{font-size:13px;margin:0;color:#758094}
.compact .holiday{font-size:12px;margin-top:10px;line-height:1.3}
.compact .footer{padding:9px 18px;font-size:11px;color:var(--blue)}
.compact .footer span:last-child{display:inline}
.compact .tricolor{width:25px;height:4px;margin-right:7px}
.compact.red .weekday,.compact.red .number,.compact.red .holiday{color:var(--red)}

/* Телефон: малка картичка, без долния пояс. */
@media(max-width:230px){
.calendar.compact{border-radius:10px}
.compact .today{padding:10px}
.compact .date-area{gap:8px}
.compact .number{font-size:44px;letter-spacing:-2px}
.compact .month{font-size:14px;line-height:1.2;white-space:nowrap}
.compact .weekday{font-size:11px;margin:4px 0 2px}
.compact .year{font-size:10px}
.compact .holiday{font-size:10px;margin-top:7px}
.compact .footer{display:none}
}

.compact{position:relative}
.compact .clock-row{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 14px 11px;padding:6px 0;border-top:1px solid var(--line);color:var(--blue);font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:1px;white-space:nowrap}
.compact .clock-row svg{width:16px;height:16px;flex-shrink:0}
.calendar-toggle{position:absolute;inset:0;z-index:3;width:100%;height:100%;border:0;background:transparent;cursor:pointer;border-radius:inherit;padding:0}
.calendar-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:-4px}
.calendar.compact.expanded{max-width:640px}
.compact.expanded .today{padding:16px}
.compact.expanded .date-area{gap:16px;justify-content:center}
.compact.expanded .number{font-size:90px;letter-spacing:-3px}
.compact.expanded .month{font-size:24px;white-space:nowrap}
.compact.expanded .weekday{font-size:16px;margin:6px 0 2px}
.compact.expanded .year{font-size:13px}
.compact.expanded .holiday{font-size:13px}
.compact.expanded .clock-row{font-size:22px}
@media(max-width:230px){.compact .clock-row{font-size:14px;margin:0 10px 7px;padding:5px 0}.compact .clock-row svg{width:13px;height:13px}}
