:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172440;
  background: #f5f7fb;
  --surface: #fff;
  --text: #172440;
  --muted: #53617a;
  --accent: #263f89;
  --border: #dce3ee;
  --radius: 19px;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #4775db; outline-offset: 4px; }

.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-row, .top-nav, .brand, .top-nav a { display: flex; align-items: center; }
.top-row { min-height: 74px; justify-content: space-between; gap: 18px; }
.brand { gap: 11px; color: var(--text); font-size: .98rem; font-weight: 760; line-height: 1.2; text-decoration: none; }
.brand-icon, .feature-icon, .status-icon { flex: none; display: grid; place-items: center; }
.brand-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: white; }
.top-nav { gap: 23px; white-space: nowrap; }
.top-nav a { min-height: 42px; gap: 7px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.top-nav svg { width: 18px; height: 18px; }
.top-nav a:hover, .footer-row a:hover { text-decoration: underline; }
.top-nav .country { padding: 0 13px; background: #f5f7fc; border: 1px solid var(--border); border-radius: 10px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .6rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }

.intro { padding: 57px 0 37px; text-align: center; }
.country-label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid #dbe4f5; border-radius: 20px; background: #edf2fc; color: #324575; font-size: .88rem; font-weight: 730; }
.intro h1 { max-width: 900px; margin: 13px auto 11px; font-size: clamp(2.03rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.047em; text-wrap: balance; }
.intro p { max-width: 630px; margin: auto; color: var(--muted); font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.73fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.primary { display: grid; gap: 18px; min-width: 0; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 16px #192f5908; }
.status { padding: 26px; border-color: var(--state-border); background: var(--state-bg); }
.open { --state-text: #155941; --state-bg: #eaf8f0; --state-border: #bfdfd0; --state-icon: #197b57; }
.closed { --state-text: #782d37; --state-bg: #fceef1; --state-border: #f2cbd3; --state-icon: #ad4656; }
.noon { --state-text: #754611; --state-bg: #fff5e4; --state-border: #edd7b5; --state-icon: #98601f; }
.status-main { display: flex; align-items: flex-start; gap: 17px; color: var(--state-text); }
.status-icon { width: 48px; height: 48px; background: var(--state-icon); color: white; border-radius: 14px; }
.status-icon svg { width: 26px; height: 26px; }
.date-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; font-size: .92rem; }
.date-line > span { font-weight: 760; }
.date-line time::before { display: inline-block; margin-right: 9px; content: "·"; }
.status h2 { margin: 5px 0 7px; font-size: clamp(1.55rem, 3vw, 2.08rem); line-height: 1.16; letter-spacing: -.036em; text-wrap: balance; }
.status p { line-height: 1.55; }
.exceptions-link { color: inherit; font-weight: 690; }
.status .holiday-name { margin-bottom: 4px; font-weight: 750; }
.status .forecast { font-size: .875rem; margin-top: 7px; }
.hours { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--state-border); padding-top: 13px; margin-top: 15px; color: var(--state-text); font-size: .9rem; }
.hours svg { width: 17px; height: 17px; margin-top: 3px; flex: none; }
.today-link { display: inline-block; margin-top: 8px; margin-left: 25px; font-size: .9rem; font-weight: 690; }

.date-card, .upcoming, .calendar { padding: 24px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: #edf2fc; color: var(--accent); }
.feature-icon svg { width: 21px; height: 21px; }
.section-heading h2, .rules h2, .calendar h2 { font-size: 1.2rem; font-weight: 760; line-height: 1.25; letter-spacing: -.023em; }
form { margin-top: 17px; }
form label { display: block; margin-bottom: 5px; font-size: .88rem; font-weight: 690; }
.form-row { display: flex; gap: 9px; }
input, button { min-height: 44px; border-radius: 9px; }
input { width: 100%; min-width: 0; padding: 8px 11px; color: var(--text); border: 1px solid #bcc8da; background: #fbfcff; }
button { flex: none; padding: 8px 17px; border: 1px solid transparent; background: var(--accent); color: white; font-weight: 740; cursor: pointer; }
button:hover { background: #1c2e6c; }
.error { margin-top: 9px; color: #841e36; }
.ad-slot { display: grid; gap: 5px; width: min(100%, 336px); margin-inline: auto; color: var(--muted); text-align: center; font-size: .82rem; }
.ad-frame { display: grid; place-items: center; aspect-ratio: 6 / 5; border-radius: 12px; }
.ad-slot img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.ad-placeholder { border: 1px dashed #acb9cf; background: #edf1f9; font-size: .9rem; font-weight: 650; }

.holidays { list-style: none; padding: 0; margin: 10px 0 0; }
.holidays li + li { border-top: 1px solid #e6eaf2; }
.holiday-row { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 9px 0; color: var(--text); text-decoration: none; }
.holiday-row:hover strong { color: var(--accent); text-decoration: underline; }
.day-block { display: grid; flex: none; place-content: center; gap: 3px; width: 48px; min-height: 49px; border: 1px solid #e0e7f4; border-radius: 10px; background: #f2f5fc; color: #334878; text-align: center; line-height: 1; }
.day-block span:first-child { font-size: 1.13rem; font-weight: 770; }
.day-block span:last-child { font-size: .8rem; }
.holiday-detail { display: grid; gap: 5px; min-width: 0; justify-items: start; }
.holiday-detail strong { font-size: .94rem; line-height: 1.25; }
.badge { padding: 3px 8px; border-radius: 20px; background: var(--state-bg); color: var(--state-text); font-size: .8rem; font-weight: 690; }
.all-holidays { display: block; margin-top: 10px; padding: 10px; border: 1px solid #dce4f4; border-radius: 9px; background: #f3f6fc; text-align: center; font-size: .91rem; font-weight: 730; text-decoration: none; }
.all-holidays:hover { background: #e8eefb; text-decoration: underline; }
.calendar { max-width: 790px; margin-inline: auto; }
.calendar-heading, .year-links { display: flex; align-items: center; gap: 10px; }
.calendar-heading { justify-content: space-between; }
.year-links a { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #f3f6fc; }

.rules { display: flex; align-items: flex-start; gap: 14px; margin-block: 23px 45px; padding: 22px 24px; scroll-margin-top: 16px; }
.rules h2 { margin: 3px 0 8px; }
.rules h3 { margin: 13px 0 3px; font-size: .91rem; }
.rules p, .rules ul { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.rules p + p { margin-top: 7px; }
.rules ul { margin: 0; padding-left: 20px; }
footer { border-top: 1px solid var(--border); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-height: 70px; padding-block: 14px; }
.footer-row a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.footer-row .footer-brand { color: var(--text); font-weight: 750; margin-right: auto; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .top-row { min-height: 64px; }
  .top-nav .nav-calendar { display: none; }
  .intro { padding: 38px 0 29px; }
  .intro p { font-size: 1rem; }
  .dashboard { grid-template-columns: 1fr; gap: 17px; }
  .primary { gap: 17px; }
  .ad-slot { width: min(100%, 300px); }
  .status, .date-card, .upcoming, .calendar, .rules { padding: 19px; }
  .rules { margin-block: 17px 32px; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 26px); }
  .top-row { gap: 8px; }
  .brand, .top-nav a { font-size: .85rem; }
  .top-nav .country { padding-inline: 7px; }
  .brand-icon, .feature-icon, .status-icon { width: 35px; height: 35px; border-radius: 9px; }
  .brand-icon svg, .status-icon svg { width: 20px; height: 20px; }
  .status-main { gap: 10px; }
  .status, .date-card, .upcoming, .calendar, .rules { padding: 15px; }
  .form-row { flex-wrap: wrap; }
  .form-row button { width: 100%; }
}
