@font-face {
  font-family: Manrope;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
:root {
  color-scheme: light;
  --paper: #f8f9fb;
  --ink: #1c2430;
  --muted: #515d6d;
  --accent: #354a6b;
  --deep: #192433;
  --gold: #e7edf5;
  --line: #e0e5ed;
  font: 16px/1.55 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #426998; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
footer { background: #edf1f6; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 60px; }
.footer { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; justify-self: start; text-decoration: none; font-weight: 800; line-height: 1.15; }
.mark { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 33px; border-radius: 11px; background: var(--deep); color: var(--gold); font-size: 21px; }
.nav { display: flex; align-items: center; gap: 5px; padding: 3px; border-radius: 999px; background: #edf1f6; font-size: .85rem; font-weight: 750; }
.nav a { padding: 6px 13px; border-radius: 999px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: #dde6f2; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 52% 48%; min-height: 385px; margin-block: 22px 0; border-radius: 28px; overflow: hidden; background: var(--deep); color: #fff; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(28px, 3.45vw, 49px); }
.micro { color: #445b7d; font-size: .82rem; font-weight: bold; letter-spacing: .07em; margin: 0 0 9px; }
.hero-copy .micro { color: var(--gold); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.058em; line-height: 1.06; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.55rem); }
.lead { margin: 14px 0 21px; line-height: 1.56; }
.hero .lead { color: #e1e9f4; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; text-decoration: none; font-weight: bold; font-size: .9rem; border-radius: 999px; cursor: pointer; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--deep); }
.hero-copy .primary { background: var(--gold); color: var(--deep); }
.hero-copy .primary:hover { background: #fff; }
.secondary { background: #ecf1f8; color: var(--accent); border-color: transparent; }
.secondary:hover { background: #dae5f4; }
.feature { position: relative; display: grid; min-width: 0; color: white; align-items: end; justify-items: end; text-decoration: none; }
.feature:focus-visible { outline-offset: -5px; z-index: 1; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep), transparent 28%), linear-gradient(0deg, #142033cf, transparent 46%); pointer-events: none; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.feature-caption { z-index: 1; position: relative; margin: 0 20px 20px; padding: 12px 16px; max-width: calc(100% - 40px); border: 1px solid #ffffff3b; border-radius: 16px; background: #192537df; }
.feature-caption span { color: var(--gold); display: block; margin-bottom: 3px; font-size: .82rem; }
.feature-caption strong { font-size: 1rem; line-height: 1.3; }
.programme { padding: 32px 0 55px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
#count, .card-date, .schedule-note { color: var(--muted); }
#filters { display: grid; align-items: end; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)) auto; gap: 10px; margin: 15px 0 24px; }
.filter { display: grid; gap: 6px; min-width: 0; padding: 0; margin: 0; border: 0; font-size: .87rem; font-weight: bold; }
.filter legend { padding: 0 0 6px; }
.field input, summary { width: 100%; min-width: 0; height: 43px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); }
.field input::placeholder { color: var(--muted); }
.dropdown { position: relative; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-weight: normal; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
summary i { width: 8px; height: 8px; border-right: 1px solid; border-bottom: 1px solid; flex: 0 0 8px; transform: translateY(-2px) rotate(45deg); }
details[open] i { transform: translateY(2px) rotate(225deg); }
.choices { position: absolute; inset: calc(100% + 5px) 0 auto; z-index: 3; min-width: max(100%, 154px); max-height: 255px; overflow: auto; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 12px 30px #19243324; }
.choice { display: flex; align-items: center; gap: 8px; padding: 8px; cursor: pointer; border-radius: 10px; font-weight: 650; }
.choice:hover, .choice:has(input:checked) { background: #edf2f8; }
.choice input { appearance: none; display: grid; place-content: center; width: 15px; height: 15px; margin: 0; flex: 0 0 15px; border: 1px solid var(--accent); border-radius: 50%; }
.choice input:checked::before { content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 21px; overflow: hidden; }
.poster { position: relative; display: block; }
.poster img { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.age { position: absolute; right: 12px; top: 12px; border-radius: 999px; padding: 2px 6px; background: var(--deep); color: white; font-size: .83rem; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.035em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-date { margin: 8px 0 14px; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; }
.footer { min-height: 110px; justify-content: space-between; font-size: .9rem; }
.event-wrap { padding: 24px 0 46px; }
.back { display: inline-block; margin-bottom: 22px; color: var(--accent); text-underline-offset: 4px; }
.event-poster { display: block; width: 100%; height: auto; border-radius: 23px; }
.event-hero, .event-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.event-hero { align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.event-layout { padding-top: 27px; }
.event-layout { grid-template-areas: "editorial schedule"; }
.description { font-size: 1.05rem; line-height: 1.68; }
.schedule { background: #fff; border: 1px solid var(--line); border-radius: 21px; padding: 20px; }
.schedule { align-self: start; scroll-margin-top: 20px; }
.day h3 { font-size: 1rem; margin-top: 14px; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.session-meta { display: inline-flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.day li .button { flex: 0 0 auto; min-height: 36px; padding: 5px 10px; white-space: nowrap; }
.day li:last-child { border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 44px); }
  .hero { min-height: 340px; }
  #filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 26px); }
  .bar, .footer { gap: 11px; }
  .bar { grid-template-columns: 1fr auto; }
  .nav { font-size: .78rem; }
  .nav a { padding-inline: 8px; }
  .hero { grid-template-columns: 1fr; margin-top: 13px; border-radius: 21px; }
  .hero-copy { padding: 24px 21px 19px; }
  .hero h1 { font-size: clamp(1.7rem, 8.7vw, 2.45rem); }
  .feature { min-height: 235px; }
  .feature::after { background: linear-gradient(180deg, var(--deep), transparent 27%), linear-gradient(0deg, #142033b0, transparent 45%); }
  .feature-caption { margin: 0 12px 12px; max-width: calc(100% - 24px); }
  #filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; padding: 15px 0; }
}

.header-action {
  justify-self: end;
  white-space: nowrap;
  min-height: 36px;
  padding: 6px 13px;
}
.calendar-panel { width: min(313px, calc(100vw - 28px)); max-height: none; padding: 12px; }
.calendar-heading { display: grid; grid-template-columns: 35px 1fr 35px; align-items: center; gap: 5px; text-align: center; margin-bottom: 8px; }
#calendar-month::first-letter { text-transform: uppercase; }
.calendar-heading button, .calendar-grid button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #ecf1f8;
  color: var(--accent);
  font-weight: 750;
  cursor: pointer;
}
.calendar-heading button { font-size: 1.3rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar-weekdays { margin-bottom: 6px; color: var(--muted); font-size: .75rem; }
.calendar-grid button:hover:not(:disabled), .calendar-heading button:hover:not(:disabled) { background: #dae5f4; }
.calendar-grid button[aria-pressed="true"], .calendar-grid button[aria-pressed="true"]:hover { background: var(--accent); color: #fff; }
.calendar-heading button:disabled, .calendar-grid button:disabled { background: transparent; color: #738093; cursor: default; }
.calendar-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-top: 9px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.calendar-clear { border: 0; background: transparent; color: var(--accent); text-decoration: underline; padding: 5px; white-space: nowrap; cursor: pointer; }
.home-benefits { padding: 14px 20px; background: #edf1f6; border-radius: 17px; }
.home-benefits ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-benefits li { color: var(--accent); font-size: .88rem; font-weight: 750; }
.home-benefits li::before { content: "✓"; margin-inline-end: 8px; }
.home-guide, .home-visit, .home-faq { margin-top: clamp(35px, 5vw, 65px); }
.home-guide h2, .home-visit h2, .home-faq h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.guide-card, .visit-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.guide-card { display: flex; flex-direction: column; }
.guide-card h3, .visit-card h3 { font-size: 1.15rem; line-height: 1.3; }
.guide-card p, .home-visit p { color: var(--muted); margin: 9px 0 15px; }
.guide-card ul { list-style: none; padding: 0; margin: auto 0 0; }
.guide-card li + li { margin-top: 6px; }
.guide-card a { color: var(--accent); font-weight: 750; text-underline-offset: 4px; }
.home-visit {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: 24px;
  padding: clamp(18px, 4vw, 37px);
  border-radius: 23px;
  background: #edf1f6;
}
.home-visit > div:first-child p { max-width: 56ch; }
.visit-card address { font-style: normal; margin-top: 7px; }
.visit-card > p { margin: 6px 0 13px; }
.home-faq { margin-bottom: clamp(36px, 6vw, 70px); }
.faq-list { max-width: 820px; margin-top: 20px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-item summary { height: auto; min-height: 49px; padding: 10px 15px; gap: 12px; border: 0; background: transparent; font-weight: 750; }
.faq-item summary span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #edf1f6; color: var(--accent); }
.faq-item summary span::before { content: "+"; }
.faq-item[open] summary span::before { content: "−"; }
.faq-item p { color: var(--muted); margin: 0; padding: 2px 15px 14px; }
@media (min-width: 541px) and (max-width: 950px) {
  .calendar-panel { left: auto; right: 0; }
}
@media (max-width: 680px) {
  .guide-grid, .home-visit { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 540px) {
  .bar .nav { display: none; }
  .header-action { font-size: .78rem; }
}

.hero { min-height: 340px; }
.hero-copy { padding-block: 35px; }
#filters.compact { grid-template-columns: minmax(150px, 214px) minmax(150px, 214px) auto; justify-content: start; }
#filters.expanded { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) auto; }
.calendar-panel { left: 0; right: auto; }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.card-link:focus-visible { outline-offset: -4px; }
.card-link:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.card-link:hover .secondary { background: #dae5f4; }
.card-date { margin: 8px 0 2px; color: var(--ink); font-weight: 750; }
.card-extra { display: block; color: var(--muted); font-size: .85rem; }
.card-bottom { margin-top: auto; }
.card-date:last-child, .card-extra { margin-bottom: 12px; }
.card-bottom strong { font-size: 1.12rem; white-space: nowrap; }
.event-intro h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); overflow-wrap: anywhere; }
.editorial { grid-area: editorial; }
.schedule { grid-area: schedule; }
.next-session { display: grid; gap: 2px; margin: 0 0 14px; padding: 10px 0 10px 13px; border-left: 3px solid var(--accent); }
.next-session strong { color: var(--accent); font-size: .85rem; }
.next-session span { font-weight: 750; }
.day { scroll-margin-top: 16px; }
.day:target { background: #ecf1f8; border-radius: 12px; outline: 2px solid #9db3cb; }
.day:target h3, .day:target ul { margin-inline: 8px; }
.day:target h3 { padding-top: 5px; }
.day li time { font-weight: 800; font-variant-numeric: tabular-nums; }
.event-visual img { max-height: 350px; object-fit: contain; background: #e9edf3; }
@media (max-width: 950px) {
  #filters.expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .event-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "schedule" "editorial"; }
}
@media (max-width: 760px) {
  .event-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .hero-copy { padding-block: 23px 17px; }
  .feature { min-height: 205px; }
  #filters.compact, #filters.expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #filters.compact { justify-content: stretch; }
  #filters.compact .reset { justify-self: start; }
}


.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.footer-links > a:first-child, .site-map a { color: var(--accent); text-underline-offset: 4px; }
.related { margin-top: 37px; border-top: 1px solid var(--line); padding-top: 27px; }
.related .grid { margin-top: 18px; }
.site-map { padding-block: 35px 48px; }
.site-map h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.site-map h2 { font-size: 1.65rem; }
.site-map ul { padding-left: 1.25rem; }
.site-map li { margin-block: 6px; }


@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.event-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.info-panel { background: #fff; border: 1px solid var(--line); border-radius: 21px; padding: 20px; }
.info-panel h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.info-panel ul { list-style: none; margin: 13px 0 0; padding: 0; }
.info-panel li + li { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.info-panel li span { display: block; color: var(--muted); }
.info-panel p { margin: 13px 0; }
@media (max-width: 760px) {
  .event-info { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .schedule { padding-inline: 12px; }
  .day li .button { padding-inline: 10px; }
  .session-meta { gap: 8px; }
}

.schedule-note { margin: 8px 0 11px; }
.day h3 { margin: 0 0 2px; }
.day:not([hidden]) + .day:not([hidden]) { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 8px; }
@media (max-width: 380px) {
  .day li .button { padding-inline: 8px; font-size: .78rem; }
}

.schedule-choice { margin-bottom: 12px; }
.schedule-choice .choices { max-height: 225px; }
.schedule-more { margin-top: 8px; }

.catalogue-more { display: flex; margin: 20px auto 0; }

.card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  margin: 7px 0 0;
}
.description { overflow-wrap: anywhere; }
