/* ============================================================
   Design tokens
   Palette: Queensland dusk over water — light edition
   ============================================================ */
:root {
  --navy-deep:   #F3F8FF;   /* page background — soft QLD sky */
  --navy-panel:  #FFFFFF;   /* card / panel background */
  --navy-line:   #D5E2F1;   /* borders */
  --sand:        #17171D;   /* primary ink */
  --sand-dim:    #625B52;   /* secondary/muted ink */
  --brand-blue:  #0E5AA7;   /* from logo — working/navigation blue */
  --brand-red:   #D74732;   /* from logo — warm community accent */
  --sun:         #4F9DFF;
  --sun-soft:    #DCEEFF;
  --coral:       #C95838;   /* категория: Мероприятия */
  --coral-strong:#9F3727;
  --accent:      #C95838;
  --accent-deep: #9F3727;
  --berry:       #EF476F;
  --sage:        #4E8B77;   /* категория: Клубы по интересам */
  --gold:        #6A7FF5;   /* категория: Школьные занятия */
  --alert:       #C6443B;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(79,157,255,0.18), transparent 24rem),
    radial-gradient(circle at 88% 2%, rgba(103,193,255,0.14), transparent 23rem),
    linear-gradient(180deg, #F8FCFF 0%, var(--navy-deep) 48%, #EAF4FF 100%);
  color: var(--sand);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: 48px;
  overflow-x: hidden;
}

::selection { background: var(--brand-red); color: #fff; }

button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

.mainnav,
.hero,
.tabs,
.searchpanel,
.navpanel,
.archivepanel,
.aboutpanel,
.legalpanel,
.slicemenu,
.browsebar,
.pager,
.featured,
.feed,
.footer {
  max-width: 1160px;
}

.mainnav {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 auto;
  min-height: 58px;
  padding: 7px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248,252,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213,226,241,0.85);
}
.mainnav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.mainnav__brand img {
  display: block;
  width: clamp(118px, 15vw, 164px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.mainnav__links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 2.4vw, 26px);
  flex-wrap: wrap;
  margin-top: 0;
}
.mainnav__links button {
  border: none;
  background: transparent;
  color: var(--sand);
  font-weight: 900;
  font-size: 15px;
  padding: 5px 0;
}
.mainnav__links button:hover { color: var(--brand-red); }
.mainnav__language { display: none; }
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 154px;
  padding: 6px;
  border: 1px solid #d5e2f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28,43,51,0.16);
}
.language-options button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  text-align: left;
  background: transparent;
  color: #18191f;
  font-size: 14px;
}
.language-options button[aria-pressed="true"] { background: var(--brand-blue); color: #fff; }
.language-options button:hover { outline: 1px solid var(--brand-blue); }
.language-caret { font-size: 10px; }
.mainnav .langtoggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(37,99,190,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--brand-blue);
  padding: 4px;
  font-weight: 900;
  font-size: 15px;
}
.mainnav .langtoggle:hover {
  background: rgba(255,255,255,0.96);
  color: var(--brand-blue);
}
.langtoggle__option {
  border-radius: 999px;
  padding: 5px 9px;
  line-height: 1;
}
.langtoggle__option--active {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14,90,167,0.22);
}
.langtoggle__divider {
  color: rgba(14,90,167,0.45);
  font-weight: 800;
}
.mainnav__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(213,226,241,0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--sand);
  font-weight: 900;
  padding: 9px 12px;
  box-shadow: 0 10px 24px rgba(28,43,51,0.08);
}
.mainnav__toggle i,
.mainnav__toggle i::before,
.mainnav__toggle i::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.mainnav__toggle i {
  position: relative;
}
.mainnav__toggle i::before,
.mainnav__toggle i::after {
  content: "";
  position: absolute;
  left: 0;
}
.mainnav__toggle i::before { top: -6px; }
.mainnav__toggle i::after { top: 6px; }
.mainnav__toggle[aria-expanded="true"] {
  background: var(--brand-blue);
  color: #fff;
}

body[data-view="nav"] .hero,
body[data-view="nav"] .tabs,
body[data-view="services"] .hero,
body[data-view="services"] .tabs,
body[data-view="holidays"] .hero,
body[data-view="holidays"] .tabs,
body[data-view="archive"] .hero,
body[data-view="archive"] .tabs,
body[data-view="legal"] .hero,
body[data-view="legal"] .tabs {
  display: none !important;
}
body[data-view="about"] .tabs,
body[data-view="about"] .searchbar {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Beacon — ambient signature backdrop, a sweeping lighthouse glow
   ============================================================ */
.beacon {
  position: fixed;
  top: -30vh;
  left: 50%;
  width: 140vw;
  height: 80vh;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(79,157,255,0.24) 0%, rgba(79,157,255,0.08) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: sweep 14s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { opacity: 0.7; transform: translateX(-54%) scale(1); }
  50% { opacity: 1; transform: translateX(-46%) scale(1.05); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  margin: 14px auto 0;
  padding: clamp(18px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(159,55,39,0.28);
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.42), transparent 15rem),
    radial-gradient(circle at 0% 16%, rgba(255,231,208,0.25), transparent 16rem),
    linear-gradient(118deg, #C95838 0%, #E17A3D 52%, #F2B985 100%);
  box-shadow: 0 24px 70px rgba(159,55,39,0.18);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -95px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.42), rgba(255,255,255,0.05) 62%, transparent 70%);
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero__content {
  min-width: 0;
  max-width: 820px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
}
.hero__eyebrow span {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
}

.hero__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: var(--coral);
  color: var(--navy-deep);
  padding: 5px 9px;
  border-radius: 7px;
}
.hero__marktext {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.3vw, 54px);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: -0.06em;
  max-width: 880px;
  white-space: normal;
  color: #fff;
  text-shadow: 0 12px 32px rgba(9,24,54,0.22);
}

.hero__heading {
  display: block;
}

.hero__logo {
  display: none;
}

.hero__subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  max-width: 760px;
  margin: 0 0 14px;
  white-space: normal;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.hero__stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 750;
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.04em;
}
.hero__statbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 13px 30px rgba(6,43,84,0.24);
  font-size: 12.5px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.hero__statbtn--support {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.38);
  box-shadow: none;
}
.hero__statbtn--support:hover {
  background: rgba(255,255,255,0.32);
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px rgba(28,43,51,0.08);
}
.searchbar__icon { color: var(--sand-dim); flex: none; }
.searchbar input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--sand);
  font-size: 15px;
  width: 100%;
  font-family: var(--font-body);
}
.searchbar input::placeholder { color: var(--sand-dim); }

/* ============================================================
   Hero action links
   ============================================================ */
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero__pillbtn {
  font-size: 13px;
  font-weight: 850;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.42);
  text-decoration: none;
  color: var(--sand);
  background: rgba(255,255,255,0.86);
  white-space: nowrap;
}
.hero__pillbtn--solid {
  background: var(--brand-blue);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  box-shadow: 0 13px 30px rgba(6,43,84,0.28);
}
.hero__pillbtn--telegram {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.52);
  color: var(--brand-blue);
  box-shadow: 0 10px 24px rgba(6,43,84,0.16);
}
.hero__pillbtn--telegram:hover {
  background: #fff;
}
.hero__pillbtn--nav {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.52);
  color: var(--brand-red);
  box-shadow: 0 10px 24px rgba(6,43,84,0.14);
}
.hero__pillbtn--nav:hover {
  background: #fff;
  color: var(--brand-blue);
}
.hero__pillbtn--support {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.34);
  color: #fff;
  box-shadow: none;
  opacity: 0.94;
  font-weight: 700;
  padding-left: 12px;
  padding-right: 12px;
}
.hero__pillbtn--support:hover {
  background: rgba(255,255,255,0.34);
}
.hero__pillbtn--classes {
  background: rgba(220,238,255,0.96);
  border-color: rgba(255,255,255,0.62);
  color: var(--brand-blue);
  box-shadow: 0 10px 24px rgba(6,43,84,0.12);
}
.hero__pillbtn--classes:hover {
  background: var(--brand-blue);
  border-color: rgba(255,255,255,0.38);
  color: #fff;
}
.hero__pillbtn--services {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.52);
  color: var(--brand-blue);
  box-shadow: 0 10px 24px rgba(6,43,84,0.14);
}
.hero__pillbtn--services:hover {
  background: #fff;
  color: var(--brand-red);
}

.hero__visual {
  min-height: clamp(230px, 28vw, 340px);
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.48);
  background: #E17A3D;
  box-shadow: 0 30px 70px rgba(9,24,54,0.2);
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,24,54,0.04) 0%, rgba(9,24,54,0.06) 46%, rgba(9,24,54,0.5) 100%),
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.28), transparent 8rem);
  pointer-events: none;
}
.hero__visual::after {
  display: none;
}
.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}
.hero__badge {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: 72%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 0 1px rgba(0,0,0,0.85);
  box-shadow: none;
}

/* ============================================================
   View tabs — Лента / Поиск
   ============================================================ */
.tabs {
  display: none !important;
  gap: 6px;
  padding: 4px 20px 0;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tabs__btn {
  flex: 1;
  border: 1px solid var(--navy-line);
  background: var(--navy-panel);
  color: var(--sand-dim);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 0;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}
.tabs__btn:hover,
.slicemenu__btn:hover,
.card:hover,
.navcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(28,43,51,0.08);
}
.tabs__btn--active {
  background: var(--sand);
  color: #fff;
  border-color: var(--sand);
}

/* ============================================================
   Search panel (separate tab) — category + date range
   ============================================================ */
.searchpanel {
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 14px;
  padding: 16px;
}
.searchpanel__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.searchpanel__row--dates .searchpanel__field { flex: 1; }
.searchpanel__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  font-size: 12px;
  color: var(--sand-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.searchpanel__field select,
.searchpanel__field input {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 14.5px;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  color: var(--sand);
  padding: 10px 12px;
  color-scheme: light;
}
.searchpanel__actions {
  display: flex;
  gap: 10px;
}
.searchpanel__go {
  flex: 1;
  background: var(--coral);
  color: var(--navy-deep);
  border: none;
  border-radius: 999px;
  padding: 11px 0;
  font-weight: 700;
  font-size: 14px;
}
.searchpanel__clear {
  background: transparent;
  color: var(--sand-dim);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   Slice menu — step 1 (period) / step 2 (category), mirrors bot
   ============================================================ */
.fetchnotice {
  margin: 12px auto 18px;
  padding: 12px 16px;
  background: rgba(224,100,90,0.12);
  border: 1px solid var(--alert);
  color: var(--sand);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}
.slicemenu { padding: 16px 14px 4px; margin: 0 auto; }
.slicemenu__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sand-dim);
  margin: 0 0 10px 2px;
}
.slicemenu__grid { display: flex; flex-direction: column; gap: 8px; }
.slicemenu__btn {
  text-align: left;
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  color: var(--sand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--sun);
  box-shadow: 0 8px 24px rgba(28,43,51,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.slicemenu__btn:hover { border-color: var(--coral); }
.slicemenu__back {
  background: none;
  border: none;
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 12px;
}

/* ============================================================
   Browse bar — back + Карточки/Списком toggle
   ============================================================ */
.browsebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 auto;
}
.browsebar__back {
  background: none;
  border: none;
  color: var(--sand-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
}
.browsebar__toggle {
  display: flex;
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: 3px;
}
.browsebar__toggleBtn {
  border: none;
  background: transparent;
  color: var(--sand-dim);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.browsebar__toggleBtn--active { background: var(--brand-blue); color: #fff; }

/* ============================================================
   Featured — neutral nearby-events showcase, not a ranking
   ============================================================ */
.featured {
  position: relative;
  z-index: 1;
  margin: 20px auto 2px;
  padding: 0 20px;
}
.featured[hidden] {
  display: none !important;
}
.publicholiday-reminder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 14px;
  border: 1px dashed rgba(14,90,167,0.42);
  border-radius: 999px;
  background: rgba(220,238,255,0.72);
  color: var(--brand-blue);
  box-shadow: 0 10px 30px rgba(14,90,167,0.08);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
}
.publicholiday-reminder small {
  margin-left: 6px;
  color: var(--coral-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.publicholiday-reminder__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-red);
}
.featured__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.featured__eyebrow {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.featured__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.055em;
}
.featured__head > span {
  border: 1px solid rgba(255,122,69,0.28);
  border-radius: 999px;
  background: rgba(255,122,69,0.12);
  color: var(--accent-deep);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.featured__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.88fr 0.88fr;
  gap: 12px;
}
.featured__card {
  display: grid;
  grid-template-rows: 150px 1fr;
  overflow: hidden;
  border: 1px solid rgba(153,196,255,0.62);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 46px rgba(28,43,51,0.08);
}
.featured__card--publicholiday {
  border-color: rgba(14,90,167,0.34);
  background: linear-gradient(180deg, rgba(243,248,255,0.98), rgba(255,255,255,0.94));
  box-shadow: 0 18px 46px rgba(14,90,167,0.12);
}
.featured__card--publicholiday .featured__meta {
  color: var(--brand-blue);
}
.featured__card--publicholiday .featured__body h3::before {
  content: "🎊 ";
}
.featured__card--wide {
  grid-template-rows: 190px 1fr;
}
.featured__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #DCEEFF;
}
.featured__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.featured__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9,24,54,0.28));
  pointer-events: none;
}
.featured__media--fallback {
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.65), transparent 5rem),
    linear-gradient(135deg, #3868FF 0%, #7CB6FF 50%, #FFD8C5 100%);
}
.featured__body {
  padding: 14px;
}
.featured__meta {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-strong);
}
.featured__body h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.featured__place {
  margin: 0 0 12px;
  color: var(--sand-dim);
  line-height: 1.35;
  font-size: 13px;
}
.featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.featured__actions > * {
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sand);
  padding: 7px 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.featured__details {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff;
}

.regularclasses {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 0 14px;
}
.regularclasses[hidden] {
  display: none !important;
}
.regularclasses__head {
  border: 1px solid rgba(153,196,255,0.62);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(220,238,255,0.74));
  box-shadow: 0 18px 46px rgba(28,43,51,0.08);
  padding: 18px;
  margin-bottom: 12px;
}
.regularclasses__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.regularclasses__head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.regularclasses__head p {
  max-width: 760px;
  margin: 0;
  color: var(--sand-dim);
  line-height: 1.5;
}
.regularclasses__intro {
  white-space: normal;
}
.regularclasses__notice {
  max-width: none;
  margin-top: 12px !important;
  border: 1px solid rgba(14,90,167,0.18);
  border-radius: 14px;
  background: rgba(220,238,255,0.82);
  color: #0d4f94 !important;
  padding: 11px 13px;
  font-weight: 750;
}
.regularclasses__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.regularclasses__links a,
.regularclasses__links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-blue);
  padding: 7px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.regularclasses__links a:first-child,
.regularclasses__links button:first-child {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.regularclasses__links > :nth-child(2) {
  background: rgba(220,238,255,0.96);
  border-color: rgba(14,90,167,0.2);
  color: var(--brand-blue);
}
.regularclasses__links > :nth-child(3) {
  background: rgba(255,255,255,0.96);
  border-color: rgba(14,90,167,0.28);
  color: #0d4f94;
}
.regularclasses__links > :nth-child(4) {
  background: rgba(232,243,255,0.96);
  border-color: rgba(14,90,167,0.24);
  color: #164f86;
}
.regularclasses__links > :nth-child(5) {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(220,238,255,0.96));
  border-color: rgba(14,90,167,0.24);
  color: #0d5fae;
}
.regularclasses__links > :nth-child(6) {
  background: #edf6ff;
  border-color: rgba(14,90,167,0.28);
  color: #0a4d91;
}
.regularclasses__links a:hover,
.regularclasses__links button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(14,90,167,0.12);
}
.regularclasses__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid rgba(153,196,255,0.62);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  margin-bottom: 12px;
}
.regularclasses__tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sand);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.regularclasses__tabs .regularclasses__tab--active {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14,90,167,0.16);
}
.regularclasses__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.regularclasses__group {
  overflow: hidden;
  border: 1px solid rgba(153,196,255,0.62);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 14px 34px rgba(28,43,51,0.07);
}
.regularclasses__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}
.regularclasses__group summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.regularclasses__group summary > span::after {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(153,196,255,0.72);
  border-radius: 999px;
  background: rgba(220,238,255,0.72);
  color: var(--brand-blue);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 900;
}
.regularclasses__group[open] summary > span::after {
  content: "↑";
}
.regularclasses__group summary::-webkit-details-marker {
  display: none;
}
.regularclasses__group summary small {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(220,238,255,0.92);
  color: var(--brand-blue);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 900;
}
.regularclasses__group ul {
  margin: 0;
  padding: 0 16px 12px;
  list-style: none;
}
.regularclasses__group li + li {
  border-top: 1px solid rgba(153,196,255,0.42);
}
.regularclasses__item {
  position: relative;
  padding: 11px 0 12px 16px;
}
.regularclasses__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.regularclasses__titlebtn {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}
.regularclasses__titlebtn span {
  display: block;
  font-weight: 750;
}
.regularclasses__titlebtn small {
  display: block;
  margin-top: 3px;
  color: var(--sand-dim);
  font-size: 12px;
  line-height: 1.35;
}
.regularclasses__titlebtn:hover span {
  color: var(--brand-blue);
}
.regularclasses__empty {
  margin: 0;
  padding: 12px 0 10px;
  color: var(--sand-dim);
  font-size: 13px;
  line-height: 1.45;
}
.regularclasses__empty--panel {
  border: 1px solid rgba(153,196,255,0.62);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  padding: 16px;
}
.regularclasses__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.regularclasses__actions a,
.regularclasses__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--brand-blue);
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.regularclasses__actions a:hover,
.regularclasses__actions button:hover {
  background: rgba(220,238,255,0.92);
}
.regularclasses__desc {
  margin: 10px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(153,196,255,0.52);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  color: var(--sand);
  font-size: 13px;
  line-height: 1.45;
}
.regularclasses__desc[hidden] {
  display: none !important;
}
.regularclasses__desc a {
  color: var(--brand-blue);
  font-weight: 750;
}
.regularclasses__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0 16px 14px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--brand-blue);
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.regularclasses__group:not([open]) .regularclasses__collapse {
  display: none;
}

/* ============================================================
   Pager — card-by-card view ("1 из 27")
   ============================================================ */
.pager { padding: 4px 14px 20px; margin: 0 auto; }
.pager__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}
.pager__counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sand-dim);
  margin: 0;
  flex: none;
}
.pager__card {
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-left: none;
  border-top: 4px solid var(--coral);
  border-radius: 0;
  padding: 18px 18px 16px;
  animation: rise 0.35s ease both;
  box-shadow: 0 18px 50px rgba(28,43,51,0.1);
}
.pager__card.card--club { border-left-color: var(--sage); }
.pager__card.card--school { border-left-color: var(--gold); }
.pager__card--publicholiday {
  border-top-color: var(--brand-blue);
  background: linear-gradient(180deg, rgba(243,248,255,0.98), rgba(255,255,255,0.94));
  box-shadow: 0 18px 50px rgba(14,90,167,0.13);
}
.pager__catlabel {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral);
  margin-bottom: 6px;
}
.card--club .pager__catlabel { color: var(--sage); }
.card--school .pager__catlabel { color: var(--gold); }
.pager__card--publicholiday .pager__catlabel,
.pager__card--publicholiday .pager__title {
  color: var(--brand-blue);
}
.pager__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.pager__meta {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sand-dim);
  margin-bottom: 12px;
}
.pager__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(28,43,51,0.82);
  padding-top: 12px;
  border-top: 1px solid var(--navy-line);
  margin-bottom: 4px;
}
.pager__desc--collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pager__desc a { color: var(--coral); }
.pager__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px dashed var(--navy-line);
  background: transparent;
  color: var(--sand-dim);
  font-size: 13px;
  font-weight: 700;
}
.pager__media {
  margin: -6px -6px 16px;
  border-radius: 0;
  overflow: hidden;
  background: #EAF4FF;
  border: 1px solid var(--navy-line);
}
.pager__media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.pager__media--fallback {
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.72), transparent 8rem),
    linear-gradient(135deg, #3868FF 0%, #7CB6FF 50%, #FFD8C5 100%);
}
.pager__card.card--school .pager__media--fallback {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.72), transparent 8rem),
    linear-gradient(135deg, #72E6CF 0%, #BDEEFF 52%, #F6F5C4 100%);
}
.pager__fallback,
.card__fallback,
.featured__fallback {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 100%;
  text-align: center;
  color: rgba(28,43,51,0.72);
}
.pager__fallback span,
.card__fallback span,
.featured__fallback span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.pager__fallback strong,
.card__fallback strong,
.featured__fallback strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: rgba(23,23,29,0.78);
}
.pager__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pager__actionbtn {
  font-size: 13px;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  background: transparent;
  color: var(--sand);
  text-decoration: none;
}
.pager__actionbtn--solid { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.pager__nav {
  display: flex;
  gap: 10px;
  margin-top: 0;
  flex: 1;
  justify-content: flex-end;
}
.pager__navbtn {
  min-width: 112px;
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  color: var(--sand);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 0;
  border-radius: var(--radius-sm);
}
.pager__navbtn:disabled { opacity: 0.35; }

/* ============================================================
   Navigator (community directory) panel
   ============================================================ */
.navpanel {
  padding: 18px 14px 4px;
  margin: 0 auto;
}
.navpanel__intro {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid rgba(159,55,39,0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 96% 12%, rgba(255,255,255,0.58), transparent 12rem),
    radial-gradient(circle at 3% 0%, rgba(14,90,167,0.12), transparent 14rem),
    linear-gradient(118deg, rgba(201,88,56,0.16), rgba(255,255,255,0.84) 58%, rgba(220,238,255,0.74));
  box-shadow: 0 16px 42px rgba(28,43,51,0.07);
}
.navpanel__intro h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.navpanel__intro p {
  max-width: 780px;
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--sand-dim);
  line-height: 1.55;
}
.navpanel__intro p:last-child { margin-bottom: 0; }
.navpanel__intro a {
  color: var(--brand-red);
  font-weight: 800;
  text-decoration: none;
}
.service-submit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.service-submit__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: 0 13px 30px rgba(6,43,84,0.24);
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.service-submit__button:hover {
  background: var(--brand-red);
  box-shadow: 0 12px 26px rgba(201,88,56,0.18);
}
.navfilters {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(220px, 280px);
  gap: 12px;
  align-items: end;
  padding: 0 0 14px;
}
.navfilters__field {
  display: grid;
  gap: 6px;
}
.navfilters__field span {
  font-size: 13px;
  color: var(--sand);
}
.navfilters__field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(14,90,167,0.18);
  border-radius: 9px;
  background: rgba(255,255,255,0.86);
  color: var(--sand);
  font: 600 14px/1.2 var(--font-body);
  padding: 8px 34px 8px 12px;
  box-shadow: 0 10px 24px rgba(28,43,51,0.045);
}
.navfilters__field select:focus {
  outline: 2px solid rgba(201,88,56,0.18);
  border-color: var(--brand-red);
}

.navpanel #navList,
.navpanel #serviceList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.navcard {
  display: flex;
  flex-direction: column;
  background: var(--navy-panel);
  border: 1px solid rgba(14,90,167,0.16);
  border-radius: var(--radius-sm);
  padding: 0;
  min-height: 210px;
  text-decoration: none;
  color: var(--sand);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(28,43,51,0.055);
}
.navcard__media {
  position: relative;
  margin: 0;
  width: 100%;
  height: 138px;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
  background: linear-gradient(135deg, rgba(201,88,56,0.16), rgba(220,238,255,0.88));
}
.navcard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.navcard__media--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}
.navcard__media--loading span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: var(--brand-blue);
  font: 800 10px/1 var(--font-mono);
  text-transform: uppercase;
}
.navcard__media--gallery .navcard__galleryimg {
  display: none;
}
.navcard__media--gallery .navcard__galleryimg--active {
  display: block;
}
.navcard__gallerybtn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14,90,167,0.28);
  cursor: pointer;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}
.navcard__gallerybtn:hover {
  background: #174f91;
}
.navcard__gallerybtn[hidden] {
  display: none;
}
.navcard__gallerybtn--prev {
  left: 8px;
}
.navcard__gallerybtn--next {
  right: 8px;
}
.navcard__gallerycount {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--sand);
  font: 800 10px/1 var(--font-mono);
}
.navcard__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  flex: 1;
}
.navcard__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(201,88,56,0.1);
  color: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.navcard__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 170px;
}
.navcard__region {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sand-dim);
  margin: 0 0 3px;
}
.navcard__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 4px;
}
.navcard__desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(28,43,51,0.75);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.navcard__desc a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.navcard__desc a:hover {
  color: var(--brand-red);
}
.navcard--expanded .navcard__desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.navcard__address {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--sand-dim);
  line-height: 1.35;
}
.navcard__tags {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14,90,167,0.1);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 11px;
}
.navcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.navcard__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: var(--sand);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
}
.navcard__action--solid {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.navcard__action--details {
  cursor: pointer;
}
.servicecard--paid {
  border-color: rgba(201,88,56,0.34);
  box-shadow: 0 16px 40px rgba(201,88,56,0.10);
}
.servicecard__paid {
  color: var(--brand-red);
  font-weight: 800;
}
.servicepanel #serviceList {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  align-items: start;
}
.servicepanel .navcard {
  min-height: 0;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(28,43,51,0.06);
}
.servicepanel .navcard__media {
  height: 210px;
  border-radius: 18px 18px 0 0;
}
.servicepanel .navcard__content {
  gap: 12px;
  padding: 15px;
}
.servicepanel .navcard__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
}
.servicepanel .navcard__body {
  min-height: 210px;
}
.servicepanel .navcard__region {
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.servicepanel .navcard__title {
  font-size: 17px;
  line-height: 1.18;
}
.servicepanel .navcard__desc {
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 5;
}
.servicepanel .navcard__address {
  font-size: 13px;
  line-height: 1.35;
}
.servicepanel .navcard__tags {
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 11px;
}
.servicepanel .navcard__actions {
  gap: 8px;
  padding-top: 12px;
}
.servicepanel .navcard__action {
  padding: 8px 12px;
  font-size: 12.5px;
}
.navcard--expanded .navcard__desc,
.servicepanel .navcard--expanded .navcard__desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.navcard--expanded .navcard__actions,
.servicepanel .navcard--expanded .navcard__actions {
  margin-top: 10px;
}

/* ============================================================
   Archive + About
   ============================================================ */
.archivepanel,
.holidaypanel,
.aboutpanel {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 18px 14px 6px;
}

.sectionhead {
  max-width: 760px;
  margin: 0 0 18px;
}
.sectionhead__eyebrow,
.archivecard__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
.sectionhead h2,
.aboutcard h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.holiday-section__dates {
  display: block;
  margin-top: 4px;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.16;
}
.sectionhead p {
  margin: 0;
  color: var(--sand-dim);
  line-height: 1.55;
}
.sectionhead code {
  background: rgba(79,157,255,0.12);
  border: 1px solid var(--navy-line);
  border-radius: 7px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  color: var(--coral-strong);
}

.archivegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.archivecard {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(28,43,51,0.08);
}
.archivecard__image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--sun-soft);
}
.archivecard__body {
  padding: 18px;
}
.archivecard h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.archivecard__count {
  color: rgba(28,43,51,0.72);
  font-family: var(--font-body);
  font-size: 0.86em;
  font-weight: 800;
  letter-spacing: 0;
}
.archivecard__text {
  color: rgba(28,43,51,0.82);
  line-height: 1.6;
}
.archivecard__text p,
.archivecard__details p {
  margin: 0 0 10px;
}
.archivecard__text a,
.archivecard__details a {
  color: var(--coral);
}
.archivecard__details {
  margin-top: 14px;
  border-top: 1px solid var(--navy-line);
  padding-top: 12px;
  color: rgba(28,43,51,0.78);
  line-height: 1.55;
}
.archivecard__details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--sand);
}
.archivecard__details div {
  margin-top: 10px;
}

.holidaygrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.holidaycard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 46px rgba(28,43,51,0.08);
}
.holidaycard__media {
  margin: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #F8FCFF, var(--sun-soft));
  border-bottom: 1px solid var(--navy-line);
}
.holidaycard__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}
.holidaycard__media--fallback {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(255,176,0,0.92), rgba(255,231,168,0.96)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.78), transparent 8rem);
}
.holidaycard__fallback {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
}
.holidaycard__fallback img {
  width: 90px;
  height: auto;
  margin-bottom: 12px;
}
.holidaycard__fallback span,
.holidaycard__fallback strong {
  display: block;
  color: rgba(28,43,51,0.76);
}
.holidaycard__fallback span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.holidaycard__fallback strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}
.holidaycard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}
.holidaycard__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-red);
}
.holidaycard h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}
.holidaycard__desc,
.holidaycard__dates,
.holidaycard__page {
  margin: 0 0 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(28,43,51,0.78);
}
.holidaycard__dates,
.holidaycard__page {
  color: var(--sand-dim);
}
.holidaycard__button {
  align-self: flex-start;
  margin-top: auto;
  border-radius: 999px;
  background: var(--sand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 14px;
  text-decoration: none;
}

.aboutcard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
  align-items: start;
  background:
    radial-gradient(circle at 95% 4%, rgba(79,157,255,0.16), transparent 16rem),
    rgba(255,255,255,0.9);
  border: 1px solid var(--navy-line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 24px 70px rgba(28,43,51,0.1);
}
.aboutcard__text {
  color: rgba(28,43,51,0.83);
  line-height: 1.64;
}
.aboutcard__text p {
  margin: 0 0 14px;
}
.aboutcard__text h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.aboutcard__text ul {
  margin: 0 0 14px;
  padding-left: 18px;
}
.aboutcard__text li {
  margin: 5px 0;
}
.aboutcard__photo {
  position: sticky;
  top: 78px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--navy-line);
  background: var(--sun-soft);
  box-shadow: 0 16px 44px rgba(47,127,234,0.16);
}
.aboutcard__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.supportways {
  margin: 22px 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--navy-line);
}
.supportways__intro h3 {
  margin-top: 0;
}
.supportways__intro p:last-child {
  margin-bottom: 14px;
}
.supportways__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.supportway {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(213,226,241,0.9);
  background:
    radial-gradient(circle at 95% 0%, rgba(255,255,255,0.72), transparent 7rem),
    rgba(255,255,255,0.76);
  box-shadow: 0 12px 30px rgba(28,43,51,0.055);
}
.supportway--support {
  background:
    radial-gradient(circle at 95% 0%, rgba(255,255,255,0.72), transparent 7rem),
    linear-gradient(135deg, rgba(220,238,255,0.9), rgba(255,247,239,0.86));
}
.supportway--promotion {
  background:
    radial-gradient(circle at 95% 0%, rgba(255,255,255,0.72), transparent 7rem),
    linear-gradient(135deg, rgba(255,122,69,0.14), rgba(255,247,239,0.9));
}
.supportway--sponsor {
  background:
    radial-gradient(circle at 95% 0%, rgba(255,255,255,0.72), transparent 7rem),
    linear-gradient(135deg, rgba(120,230,207,0.18), rgba(234,244,255,0.9));
}
.supportway__tag {
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14,90,167,0.1);
  color: var(--brand-blue);
  font: 800 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.supportway--promotion .supportway__tag {
  background: rgba(255,122,69,0.15);
  color: var(--brand-red);
}
.supportway h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--sand);
}
.supportway p {
  flex: 1;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.48;
}
.supportway a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(14,90,167,0.14);
}
.supportway--promotion a {
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(201,88,56,0.16);
}
.supportbox {
  margin: 18px 0 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79,157,255,0.14), rgba(220,238,255,0.8));
  border: 1px solid rgba(79,157,255,0.28);
}
.supportbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.supportbox a {
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.supportbox a.supportbox__donate {
  background: linear-gradient(135deg, var(--coral), #66B8FF);
  box-shadow: 0 10px 24px rgba(47,127,234,0.18);
}

.socialbox {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--navy-line);
}
.socialbox__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.socialbox__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--sand);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(47,127,234,0.08);
}
.socialbox__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
}
.socialbox__link--facebook .socialbox__icon { background: #1877f2; }
.socialbox__link--telegram .socialbox__icon { background: #27a7e7; }

/* ============================================================
   Tide strip — signature day-navigation, styled as a tide gauge
   ============================================================ */
.tide {
  position: sticky;
  top: 52px;
  z-index: 5;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 14px 14px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(243,248,255,0.96) 70%, rgba(234,244,255,0.88));
  border-bottom: 1px solid var(--navy-line);
  scrollbar-width: none;
}
.tide::-webkit-scrollbar { display: none; }

.tide__day {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 52px;
  padding: 8px 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--sand-dim);
  position: relative;
}
.tide__day::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 10px;
  background: var(--navy-line);
  transform: translateX(-50%);
}
.tide__dow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.tide__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--sand);
}
.tide__dots {
  display: flex;
  gap: 2px;
  height: 5px;
  align-items: flex-end;
}
.tide__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy-line);
}
.tide__day--has .tide__dots span:nth-child(1) { background: var(--coral); }
.tide__day--has .tide__dots span:nth-child(2) { background: var(--sage); }
.tide__day--has .tide__dots span:nth-child(3) { background: var(--gold); }

.tide__day--today { border-color: var(--coral); background: rgba(245,162,107,0.08); }
.tide__day--today .tide__num { color: var(--brand-blue); }
.tide__day--active { background: var(--brand-blue); border-color: var(--brand-blue); }
.tide__day--active .tide__num,
.tide__day--active .tide__dow { color: #fff; }
.tide__day--active .tide__dots span { background: #fff !important; opacity: 0.55; }
.tide__day small {
  min-height: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: currentColor;
  opacity: 0.75;
}

.feedfilterlabel {
  max-width: 1160px;
  margin: 10px auto 4px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sand-dim);
  letter-spacing: 0.02em;
}

/* ============================================================
   Category chips
   ============================================================ */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 14px 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  background: var(--navy-panel);
  color: var(--sand-dim);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.chip small {
  opacity: 0.68;
  font-family: var(--font-mono);
  font-size: 11px;
}
.chip--subtle {
  font-size: 12.5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.72);
}
.chip__swatch { width: 8px; height: 8px; border-radius: 50%; }
.chip--active { background: var(--sand); color: var(--navy-deep); border-color: var(--sand); }
.chip--active .chip__swatch { background: var(--navy-deep) !important; }

/* ============================================================
   Feed
   ============================================================ */
.feed {
  position: relative;
  z-index: 1;
  padding: 12px 14px 20px;
  margin: 0 auto;
}

.feed__group { margin-top: 20px; }
.feed__group + .feed__group { margin-top: 28px; }
.feed__groupLabel {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand-dim);
  margin: 0 0 10px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed__groupLabel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy-line);
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  animation: rise 0.4s ease both;
  min-height: 250px;
  box-shadow: 0 14px 36px rgba(28,43,51,0.055);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feed__group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feed__groupLabel {
  grid-column: 1 / -1;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.card__bar { height: 4px; width: 100%; flex: none; background: var(--coral); order: 2; }
.card--club .card__bar { background: var(--sage); }
.card--school .card__bar { background: var(--gold); }
.card--publicholiday {
  border-color: rgba(14,90,167,0.34);
  background: linear-gradient(180deg, rgba(243,248,255,0.98), rgba(255,255,255,0.94));
  box-shadow: 0 18px 48px rgba(14,90,167,0.12);
}
.card--publicholiday .card__bar {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}
.card--publicholiday .card__title {
  color: var(--brand-blue);
}
.card__holidaylabel {
  margin: -2px 14px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--coral-strong);
}

.card__body { padding: 0 0 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card__media {
  order: -1;
  margin: 0 0 10px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid var(--navy-line);
  background: #EAF4FF;
}
.card__image {
  display: block;
  width: 100%;
  height: clamp(122px, 13vw, 158px);
  object-fit: cover;
}
.card__media--fallback {
  min-height: clamp(122px, 13vw, 158px);
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.8), transparent 9rem),
    linear-gradient(135deg, #3868FF 0%, #7CB6FF 54%, #FFD8C5 100%);
}
.card--school .card__media--fallback {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.8), transparent 9rem),
    linear-gradient(135deg, #72E6CF 0%, #BDEEFF 54%, #F6F5C4 100%);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--coral);
  margin: 0 14px 5px;
}
.card--club .card__meta { color: var(--sage); }
.card--school .card__meta { color: var(--gold); }
.card__dot { color: var(--sand-dim); }
.card__time { color: var(--sand-dim); }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 14px 5px;
}

.card__place {
  font-size: 13px;
  color: var(--sand-dim);
  margin: 0 14px 7px;
  line-height: 1.35;
}

.card__desc {
  font-size: 13.5px;
  line-height: 1.42;
  color: rgba(28,43,51,0.8);
  margin: 0 14px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--expanded .card__desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 14px 0;
}
.card__actions > * {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  background: transparent;
  color: var(--sand);
  text-decoration: none;
  line-height: 1;
}
.card__more { border-style: dashed; color: var(--sand-dim); }
.card__map:empty { display: none; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    min-height: 220px;
  }
  .featured__grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured__card--wide {
    grid-column: 1 / -1;
  }
  .regularclasses__list {
    grid-template-columns: 1fr;
  }
  .feed__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .holidaygrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .navpanel #navList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .servicepanel #serviceList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .servicepanel .navcard__media {
    height: 190px;
  }
  .legalpanel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aboutcard {
    grid-template-columns: 1fr;
  }
  .supportways__grid {
    grid-template-columns: 1fr;
  }
  .aboutcard__photo {
    position: static;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  body {
    min-width: 0;
  }
  .mainnav,
  .hero,
  .tabs,
  .feed,
  .regularclasses,
  .navpanel,
  .archivepanel,
  .aboutpanel,
  .legalpanel,
  .footer {
    width: 100%;
    max-width: 100%;
  }
  .mainnav {
    min-height: auto;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .mainnav__brand { display: inline-flex; min-width: 0; }
  .mainnav__brand img {
    width: 108px;
    max-width: 100%;
    max-height: 34px;
  }
  .mainnav__toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .mainnav__language {
    display: flex;
    position: relative;
    margin-left: auto;
    margin-right: 8px;
    padding-left: 6px;
    flex-shrink: 0;
  }
  .mainnav__language .langtoggle {
    min-height: 44px;
    white-space: nowrap;
    gap: 6px;
    padding: 8px 12px;
    color: #182734;
    font-size: 14px;
  }
  .mainnav__links {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    width: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    flex-wrap: nowrap;
    padding: 8px;
    gap: 2px;
    max-width: 100%;
    border: 1px solid rgba(213,226,241,0.95);
    border-radius: 18px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 22px 52px rgba(28,43,51,0.16);
  }
  .mainnav__links--open {
    display: flex;
  }
  .mainnav__links button {
    width: 100%;
    text-align: left;
    font-size: 14px;
    line-height: 1.2;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .mainnav__links button:hover {
    background: var(--sun-soft);
  }
  .mainnav__links .langtoggle {
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    padding: 5px;
  }
  .regularclasses {
    padding: 0 12px;
  }
  .regularclasses__head {
    padding: 16px;
  }
  .regularclasses__tabs {
    border-radius: 18px;
  }
  .regularclasses__tabs button {
    min-height: 36px;
    font-size: 12.5px;
  }
  .regularclasses__group summary {
    min-height: 50px;
    padding: 13px 14px;
  }
  .regularclasses__group ul {
    padding: 0 14px 10px;
  }
  .hero {
    margin-top: 8px;
    padding: 18px 14px 16px;
    border-radius: 0 0 24px 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero__heading {
    display: block;
    margin-bottom: 6px;
  }
  .hero__title {
    font-size: clamp(24px, 8.2vw, 34px);
    margin-bottom: 0;
    letter-spacing: -0.055em;
  }
  .hero__visual {
    display: none;
  }
  .hero__badge {
    font-size: 10.5px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
  }
  .hero__logo {
    display: none;
  }
  .hero__subtitle {
    font-size: 13.5px;
    margin-bottom: 12px;
    white-space: normal;
  }
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 9px;
  }
  .hero__eyebrow span {
    width: 28px;
  }
  .hero__stats {
    gap: 6px;
    margin-bottom: 12px;
  }
  .hero__stats > span {
    padding: 6px 9px;
    font-size: 11.5px;
  }
  .hero__stats strong {
    font-size: 15px;
  }
  .searchbar { padding: 10px 12px; }
  .hero__pillbtn { padding: 8px 12px; font-size: 12.5px; }
  .featured {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 14px;
  }
  .featured__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .featured__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .featured__card {
    min-width: min(82vw, 330px);
    grid-template-rows: 132px 1fr;
    scroll-snap-align: start;
  }
  .featured__card--wide {
    grid-template-rows: 150px 1fr;
  }
  .pager { padding-left: 10px; padding-right: 10px; }
  .pager__top {
    align-items: stretch;
    gap: 8px;
  }
  .pager__counter {
    align-self: center;
    font-size: 12px;
  }
  .pager__nav {
    gap: 6px;
  }
  .pager__navbtn {
    min-width: 0;
    padding: 9px 11px;
    font-size: 13px;
  }
  .feed__group {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feed {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card { min-height: 0; }
  .card__media { margin-bottom: 10px; }
  .card__image { height: 150px; }
  .card__media--fallback { min-height: 150px; }
  .card__meta { margin: 0 12px 5px; font-size: 11.5px; }
  .card__title { margin: 0 12px 6px; font-size: 15px; }
  .card__place { margin: 0 12px 7px; font-size: 12.8px; }
  .card__desc { margin: 0 12px 10px; font-size: 13px; }
  .card__actions { margin-left: 12px; margin-right: 12px; gap: 6px; }
  .card__actions > * { padding: 7px 9px; font-size: 12px; }
  .navpanel {
    padding: 12px 10px 4px;
    width: 100%;
    max-width: 100%;
  }
  .navpanel__intro {
    padding: 14px;
    margin-bottom: 12px;
  }
  .navpanel__intro h2 {
    font-size: 22px;
  }
  .navpanel__intro p {
    font-size: 13.5px;
  }
  .navfilters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .navpanel #navList,
  .navpanel #serviceList {
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .navcard {
    min-height: 0;
    min-width: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .navcard__media {
    height: 150px;
  }
  .servicepanel .navcard__media {
    height: 210px;
  }
  .servicepanel .navcard__content {
    padding: 13px;
  }
  .servicepanel .navcard__body {
    min-height: 0;
  }
  .servicepanel .navcard__title {
    font-size: 16px;
  }
  .servicepanel .navcard__desc {
    font-size: 13.2px;
    -webkit-line-clamp: 4;
  }
  .navcard__content {
    padding: 12px;
  }
  .navcard__body {
    min-height: 0;
  }
  .navcard__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }
  .navcard__title { font-size: 14.5px; }
  .navcard__region { font-size: 10px; }
  .navcard__desc {
    font-size: 12.8px;
    -webkit-line-clamp: 4;
  }
  .navcard__action {
    padding: 7px 10px;
    font-size: 12px;
  }
  .chips {
    gap: 6px;
    max-width: 100%;
  }
  .chip { padding: 7px 10px; font-size: 12px; }
  .footer {
    align-items: center;
    text-align: center;
    padding: 20px 14px 24px;
  }
  .footer__main,
  .footer__links {
    justify-content: center;
  }
  .archivegrid {
    grid-template-columns: 1fr;
  }
  .archivepanel,
  .holidaypanel,
  .aboutpanel {
    padding: 14px 10px 4px;
  }
  .holidaygrid {
    grid-template-columns: 1fr;
  }
  .legalpanel {
    padding: 14px 10px 4px;
  }
  .legalpanel__grid {
    grid-template-columns: 1fr;
  }
  .legalcard {
    padding: 13px;
  }
  .tabs {
    overflow-x: auto;
  }
  .tabs__btn {
    min-width: 112px;
  }
}

/* ============================================================
   States: loading / empty / error
   ============================================================ */
.state {
  text-align: center;
  padding: 60px 20px;
  color: var(--sand-dim);
  font-size: 14px;
}
.wave-loader { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.wave-loader span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  animation: bob 1s ease-in-out infinite;
}
.wave-loader span:nth-child(2) { animation-delay: 0.15s; }
.wave-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-8px); opacity: 1; } }

.state--error { color: var(--alert); }
.state button {
  margin-top: 14px;
  background: var(--coral);
  color: var(--navy-deep);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
   Install bar
   ============================================================ */
.installbar {
  position: fixed;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 20;
  background: var(--sand);
  color: var(--navy-deep);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  user-select: none;
}
.installbar[hidden] {
  display: none !important;
}
.installbar__actions { display: flex; gap: 8px; align-items: center; flex: none; }
.installbar__actions button {
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
}
#installBtn { background: var(--navy-deep); color: var(--sand); padding: 8px 14px; }
#installDismiss {
  background: transparent;
  color: var(--navy-deep);
  padding: 8px;
  opacity: 0.7;
  min-width: 34px;
  min-height: 34px;
}

/* ============================================================
   Legal cards
   ============================================================ */
.legalpanel {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  padding: 12px 14px 6px;
}
.legalpanel[hidden] {
  display: none !important;
}
.legalpanel__header {
  max-width: 760px;
  margin: 0 0 14px;
}
.legalpanel__header h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.legalpanel__header p:not(.sectionhead__eyebrow) {
  margin: 0;
  color: var(--sand-dim);
  line-height: 1.5;
}
.legalpanel__back {
  margin: 0 0 16px;
  border: 1px solid var(--navy-line);
  background: rgba(255,255,255,0.78);
  color: var(--sand);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}
.legalpanel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.legalcard {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: rgba(28,43,51,0.78);
  line-height: 1.5;
  box-shadow: 0 14px 34px rgba(28,43,51,0.06);
}
.legalcard__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 800;
}
.legalcard h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--sand);
}
.legalcard p {
  margin: 0 0 9px;
  font-size: 12.8px;
}
.legalcard p:last-child {
  margin-bottom: 0;
}
.legalcard a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47,127,234,0.1);
  border: 1px solid rgba(47,127,234,0.28);
  color: var(--coral-strong);
  font-weight: 800;
  text-decoration: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--sand-dim);
  font-size: 12px;
  padding: 24px 20px;
  font-family: var(--font-mono);
  border-top: 1px solid rgba(213,226,241,0.9);
}
.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 700;
}
.footer a:hover {
  color: var(--coral);
}
.footer__note {
  margin: 0;
  color: rgba(98,91,82,0.78);
  line-height: 1.5;
}

/* ============================================================
   Focus visibility
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .hero { padding: 22px 32px 14px; }
  .feed { padding: 16px 32px 30px; }
  .tide { padding-left: 26px; padding-right: 26px; }
  .chips { padding-left: 26px; padding-right: 26px; }
}

@media (min-width: 760px) {
  .installbar {
    max-width: 520px;
    left: auto;
  }
}
