/* afisha2.css — the afisha's tab pages that step by month: «Фестивали» now, «Выставки» and «Голландский год» next.
   Her mockups «Афиша 2: страницы целиком» (15.11): the same head as «Все события» (name, how many, three views),
   «Что · Где · Когда» as fields with the search in the bar, «для кого» and the chips; a strip of months that sticks
   under the header (the month being read in violet, this month framed); the list by month, one row per thing
   (dates and how soon, a picture, the name with its label, kind and town, what it is, entry, «Подробнее», a heart);
   the rail beside it on a laptop. «Постеры» — the same as tiles; «Календарь» — the platform's month. Loads as you
   scroll (no pages). Everything is scoped to main.a2p; both themes by the site's own variables. Phone first:
   600, 760, 1100, 1440. */
.a2p {
  --ap: 20px;
  --aline: rgba(var(--ink), .12);
  --apic: #E6E2D8;
  --achip: #DAD6CD;
  --anl: #FF7A1A;
  --asheet: #FFFFFF;
  --ahl: rgba(var(--ink), .045);
  max-width: 1600px; margin: 0 auto; padding: 0 var(--ap) 72px;
  font-family: Geologica, system-ui, sans-serif; color: var(--txt);
}
:root.dark .a2p { --apic: #1C1B1A; --achip: #34322F; --asheet: #1A1918; --ahl: rgba(var(--ink), .05); }
@media (min-width: 601px) { .a2p { --ap: 32px; } }
@media (min-width: 1101px) { .a2p { --ap: 40px; } }
.a2p p, .a2p h1, .a2p h2, .a2p h3 { margin: 0; }
.a2p button { font: inherit; color: inherit; }
.a2p img { display: block; }

/* the head: name, how many, the views */
.a2-hero { padding-top: 20px; }
.a2p .a2h { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h v" "n v"; align-items: center; column-gap: 12px; }
.a2p .a2h h1 { grid-area: h; font-size: clamp(22px, 6.4vw, 26px); font-weight: 400; line-height: 30px; letter-spacing: -.03em; }
.a2p .a2h .count { grid-area: n; font-family: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mut); white-space: nowrap; }
.a2p .views { grid-area: v; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--aline); border-radius: 999px; }
.a2p .views button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; font-size: 13px; color: var(--mut); cursor: pointer; transition: color .2s; }
.a2p .views button:hover { color: var(--txt); }
.a2p .views button[aria-pressed="true"] { background: var(--txt); color: var(--bg); font-weight: 500; }
.a2p :is(.views button, .chip, .aud button, .a2-mo, .a2-go, .hrt):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 600px) {
  .a2p .views button { position: relative; width: 44px; height: 36px; padding: 0; font-size: 0; }
  .a2p .views button::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--vi) center / contain no-repeat; mask: var(--vi) center / contain no-repeat; }
  .a2p .views [data-gally-view="list"] { --vi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h12M4 10h12M4 14h12'/%3E%3C/svg%3E"); }
  .a2p .views [data-gally-view="posters"] { --vi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='5.5' height='5.5' rx='1'/%3E%3Crect x='11' y='3.5' width='5.5' height='5.5' rx='1'/%3E%3Crect x='3.5' y='11' width='5.5' height='5.5' rx='1'/%3E%3Crect x='11' y='11' width='5.5' height='5.5' rx='1'/%3E%3C/svg%3E"); }
  .a2p .views [data-gally-view="calendar"] { --vi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='4.5' width='13' height='12' rx='2'/%3E%3Cpath d='M3.5 8.5h13M7 3v3M13 3v3'/%3E%3C/svg%3E"); }
}
@media (min-width: 761px) {
  .a2-hero { padding-top: 32px; }
  .a2p .a2h { display: flex; align-items: baseline; gap: 16px; }
  .a2p .a2h h1 { font-size: 40px; line-height: 44px; }
  .a2p .a2h .count { font-size: 15px; }
  .a2p .views { margin-left: auto; align-self: center; }
  .a2p .views button { padding: 6px 14px; font-size: 14px; }
}

/* «Что · Где · Когда» and the search: fields as wide as their words on a phone (they scroll sideways, the lens
   stays at the right), one white bar on a laptop */
.a2p .ask { position: relative; display: flex; gap: 6px; margin-top: 14px; padding-right: 58px; overflow-x: auto; scrollbar-width: none; }
.a2p .ask::-webkit-scrollbar { display: none; }
.a2p .af { flex: none; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 7px 12px; border-radius: 12px; background: var(--s1); }
.a2p .af small { font-size: 12px; line-height: 15px; color: var(--mut); }
.a2p .af .tok { position: relative; font-size: 15px; font-weight: 500; line-height: 21px; color: var(--txt); white-space: nowrap; }
.a2p .af .tok::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 1px 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.a2p .srch { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 52px; min-height: 0; flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 0; border-radius: 12px; background: var(--s1); color: var(--txt); box-shadow: -6px 0 0 var(--bg); }
.a2p .srch svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.a2p .srch input { width: 0; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; opacity: 0; color: var(--txt); font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.a2p .srch input::placeholder { color: var(--mut); }
.a2p .srch:focus-within, .a2p .srch:has(input:not(:placeholder-shown)) { left: 0; width: auto; justify-content: flex-start; padding: 0 14px; box-shadow: inset 0 0 0 1.5px var(--txt); }
.a2p .srch:focus-within input, .a2p .srch:has(input:not(:placeholder-shown)) input { width: auto; opacity: 1; }
@media (min-width: 761px) {
  .a2p .ask { display: grid; grid-template-columns: 1fr 1.15fr 1fr 1.3fr; gap: 0; margin-top: 20px; padding: 0; overflow: visible; border-radius: 14px; background: var(--s1); }
  .a2p .af { min-height: 60px; padding: 10px 20px; border-radius: 0; background: none; border-right: 1px solid var(--aline); }
  .a2p .af small { font-size: 13px; line-height: 17px; }
  .a2p .af .tok { font-size: 16px; line-height: 22px; }
  .a2p .srch, .a2p .srch:focus-within, .a2p .srch:has(input:not(:placeholder-shown)) { position: static; width: auto; padding: 0 20px; border: 0; justify-content: flex-start; box-shadow: none; color: var(--mut); }
  .a2p .srch svg { width: 18px; height: 18px; }
  .a2p .srch input { width: auto; opacity: 1; font-size: 15px; }
}

/* «для кого» and the chips: one row, it scrolls sideways on a phone */
.a2p .chips { display: flex; align-items: center; gap: 8px; margin: 12px calc(-1 * var(--ap)) 0 0; padding: 0 var(--ap) 2px 0; overflow-x: auto; scrollbar-width: none; }
.a2p .chips::-webkit-scrollbar { display: none; }
.a2p .aud { flex: none; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--achip); border-radius: 999px; }
.a2p .aud > .gally-say-word { display: none; }
.a2p .aud button { height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 15px; color: var(--mut); white-space: nowrap; cursor: pointer; transition: color .2s; }
.a2p .aud button:hover { color: var(--txt); }
.a2p .aud small { font-size: .8em; font-variant-numeric: tabular-nums; }
.a2p .aud small:empty { display: none; }
.a2p .aud [aria-pressed="true"] { background: var(--txt); color: var(--bg); font-weight: 500; }
.a2p .aud [data-gally-value="International"][aria-pressed="true"] { background: var(--txt); color: var(--bg); }
.a2p .aud [data-gally-value="Местное"][aria-pressed="true"] { background: var(--anl); color: #121211; }
.a2p .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--achip); border-radius: 999px; background: none; font-size: 15px; white-space: nowrap; color: var(--txt); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.a2p .chip:hover { border-color: var(--txt); }
.a2p .chip[aria-pressed="true"], .a2p .chip[aria-current="page"], .a2p .chip:has(input:checked) { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.a2p .chip small { font-size: 13px; opacity: .7; }
.a2p .chip small:empty { display: none; }
/* a genre comes only from a festival's page (?f.Жанр=…): it shows as a chip while chosen, one tap takes it off */
.a2p .chip.pick { display: none; }
.a2p .chip.pick:has(input:checked) { display: inline-flex; }
.a2p .chip.pick input { position: absolute; opacity: 0; pointer-events: none; }
.a2p .gally-reset { flex: none; height: 40px; padding: 0 6px; border: 0; background: none; font-size: 15px; color: var(--mut); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* docked: «для кого» at the bottom edge once its place went under the header, as on «Все события» */
.a2p .aud.docked { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35; justify-content: space-between; background: var(--asheet); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); animation: a2-dock .25s ease-out; }
.a2p .aud.docked button { flex: 1; justify-content: center; height: 34px; font-size: 14px; }
:root.dark .a2p .aud.docked { box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.a2p .chips:has(.aud.docked) { padding-left: var(--aud-w, 0px); }
@keyframes a2-dock { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .a2p .aud.docked { animation: none; } }
html.a2-docked .pgnav { opacity: 0 !important; pointer-events: none !important; }
@media (min-width: 761px) {
  .a2p .chips { flex-wrap: wrap; margin: 14px 0 0; padding: 0; overflow: visible; }
  .a2p .aud.docked { right: auto; left: max(var(--ap), calc((100vw - 1600px) / 2 + var(--ap))); bottom: 24px; }
  .a2p .aud.docked button { flex: none; padding: 0 16px; }
}

/* the strip of months: under the header while the list scrolls */
.a2-strip { position: sticky; top: var(--top-h); z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr); margin: 20px calc(-1 * var(--ap)) 0; padding: 0 var(--ap); background: var(--bg); border-top: 1.5px solid var(--txt); border-bottom: 1px solid var(--aline); transition: box-shadow .25s ease; }
.a2-strip[hidden] { display: none; }
.a2-strip.is-stuck { box-shadow: 0 10px 18px -14px rgba(18, 18, 17, .35); }
:root.dark .a2-strip.is-stuck { box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .7); }
.a2-strip .sx { display: none; align-items: center; justify-content: center; align-self: center; width: 36px; height: 36px; padding: 0 0 2px; border: 1px solid var(--aline); border-radius: 50%; background: none; font-size: 18px; line-height: 1; color: var(--txt); cursor: pointer; transition: border-color .2s, background .2s; }
.a2-strip .sx:hover { border-color: var(--txt); background: var(--s1); }
.a2-strip .sx:hover { color: var(--txt); }
.a2-months { display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--ap)), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - var(--ap)), transparent); }
.a2-months::-webkit-scrollbar { display: none; }
.a2-mo { position: relative; isolation: isolate; flex: 0 0 60px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 9px; color: var(--txt); text-decoration: none; }
.a2-mo i { height: 14px; font-size: 11px; font-style: normal; line-height: 14px; color: var(--mut); }
.a2-mo b { font-size: 18px; font-weight: 400; line-height: 22px; text-transform: lowercase; }
.a2-mo small { min-height: 15px; font-size: 12px; line-height: 15px; color: var(--mut); font-variant-numeric: tabular-nums; }
.a2-mo small:empty::after { content: "—"; }
.a2-mo.is-empty b, .a2-mo.is-empty small { color: var(--off, #A9A59D); }
.a2-mo:hover b { color: var(--acc); }
.a2-mo.is-now::before { content: ""; position: absolute; inset: 2px 3px 4px; z-index: -1; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--acc); }
.a2-mo[aria-current]::before { content: ""; position: absolute; inset: 2px 3px 4px; z-index: -1; border-radius: 10px; background: var(--acc); box-shadow: none; }
.a2-mo[aria-current], .a2-mo[aria-current] b { color: #FFFFFF; font-weight: 600; }
.a2-mo[aria-current] i, .a2-mo[aria-current] small { color: rgba(255, 255, 255, .85); }
html:has(.a2-strip) { scroll-padding-top: calc(var(--top-h) + 84px); }
@media (min-width: 761px) {
  .a2-strip { grid-template-columns: 36px minmax(0, 1fr) 36px; column-gap: 8px; margin: 20px 0 0; padding: 0; }
  .a2-strip .sx { display: flex; }
  .a2-months { -webkit-mask-image: none; mask-image: none; }
  .a2-mo { flex: 1 0 64px; }
  .a2-mo b { font-size: 20px; }
}

/* the page: the list, and on a laptop the rail beside it */
.a2-cols { margin-top: 0; }
.a2-rail { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--aline); }
@media (min-width: 1101px) {
  .a2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .a2-rail { margin: 0; padding: 26px 0 0 28px; border-top: 0; border-left: 1px solid var(--aline); align-self: start; position: sticky; top: calc(var(--top-h) + 92px); }
}
@media (min-width: 1601px) { .a2-cols { grid-template-columns: minmax(0, 1fr) 400px; } }
.a2-b { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--aline); }
.a2-b:last-child { border-bottom: 0; }
.a2-b h3 { margin-bottom: 8px; font-size: 17px; font-weight: 500; }
.a2-b p { font-size: 14px; line-height: 1.45; color: var(--mut); }
.a2-b p b { display: block; font-size: 15px; font-weight: 500; color: var(--txt); }
.a2-b ul { margin: 0; padding: 0; list-style: none; }
.a2-b li a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--txt); }
.a2-b li a:hover { color: var(--acc); }
.a2-b li small { font-size: 14px; font-weight: 400; color: var(--mut); font-variant-numeric: tabular-nums; }
.a2-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--txt); white-space: nowrap; }
.a2-more:hover { color: var(--acc); }

/* a month, and «Идут сейчас» */
.a2-m { padding: 16px 0 8px; }
.a2-m + .a2-m, .a2-now + .a2-list .a2-m:first-child { border-top: 1.5px solid var(--txt); margin-top: 12px; }
.a2-mh { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--aline); }
.a2-mh h2 { font-size: 21px; font-weight: 500; line-height: 28px; letter-spacing: -.02em; }
.a2-mh h2 span, .a2-mh small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--mut); }
.a2-mh small { margin-left: auto; }
@media (min-width: 761px) {
  .a2-m { padding: 24px 0 12px; }
  .a2-mh h2 { font-size: 26px; line-height: 32px; }
  .a2-mh h2 span, .a2-mh small { font-size: 15px; }
  .a2-mh small { margin-left: 0; }
}

/* «Список»: a row */
.a2-r { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "ph w" "ph tx" "ph go"; column-gap: 14px; align-items: start; padding: 14px 0 0; border-bottom: 1px solid var(--aline); }
.a2-w { grid-area: w; font-size: 14px; line-height: 19px; }
.a2-d { font-weight: 600; white-space: nowrap; }
.a2-in { color: var(--mut); white-space: nowrap; }
.a2-in:not(:empty)::before { content: " · "; }
.a2-in.is-on { color: var(--acc); font-weight: 500; }
.a2-ph { grid-area: ph; position: relative; width: 88px; height: 110px; overflow: hidden; border-radius: 8px; background: var(--apic); }
.a2-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.a2-r:hover .a2-ph img { transform: scale(1.04); }
.a2-tx { grid-area: tx; min-width: 0; margin-top: 2px; }
.a2-tx h3 { font-size: 16px; font-weight: 500; line-height: 21px; }
.a2-tx h3 a { color: var(--txt); }
.a2-tx h3 a:hover { color: var(--acc); }
.a2p .au { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--aline); border-radius: 999px; font-size: 12px; font-weight: 400; line-height: 18px; color: var(--txt2); white-space: nowrap; vertical-align: 1px; }
.a2p .au[data-aud="Местное"] { border-color: color-mix(in srgb, var(--anl) 55%, transparent); }
.a2-wh { margin-top: 1px; font-size: 14px; color: var(--txt); }
.a2-ds { margin-top: 3px; font-size: 13px; line-height: 17px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a2-ft { grid-area: go; display: flex; align-items: center; gap: 14px; height: 44px; padding-right: 40px; font-size: 14px; }
.a2-pr { color: var(--txt); white-space: nowrap; }
.a2-pr:empty { display: none; }
.a2-go { font-weight: 500; color: var(--txt); white-space: nowrap; }
.a2-go:hover { color: var(--acc); }
.a2p .hrt { position: absolute; right: -10px; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--mut); cursor: pointer; transition: color .2s, background .2s; }
.a2p .hrt:hover { color: var(--txt); background: var(--ahl); }
.a2p .hrt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.a2p .hrt[aria-pressed="true"] { color: var(--txt); }
.a2p .hrt[aria-pressed="true"] svg { fill: currentColor; }
@media (min-width: 761px) {
  .a2-r { grid-template-columns: 132px 116px minmax(0, 1fr) auto 44px; grid-template-areas: "w ph tx go hrt"; column-gap: 16px; align-items: center; padding: 14px 0; }
  .a2-w { font-size: 15px; line-height: 21px; }
  .a2-d, .a2-in { display: block; white-space: normal; }
  .a2-in { font-size: 13px; line-height: 18px; }
  .a2-in:not(:empty)::before { content: none; }
  .a2-ph { width: 116px; height: 96px; }
  .a2-tx { margin: 0; }
  .a2-wh { font-size: 15px; margin: 1px 0 3px; }
  .a2-ds { font-size: 14px; line-height: 20px; }
  .a2-ft { justify-content: flex-end; gap: 24px; height: auto; padding: 0; }
  .a2p .hrt { position: static; grid-area: hrt; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  /* a tablet: the dates over the name, not a column of their own */
  .a2-r { grid-template-columns: 116px minmax(0, 1fr) auto 44px; grid-template-areas: "ph w go hrt" "ph tx go hrt"; align-items: start; }
  .a2-ft, .a2p .hrt { align-self: center; }
  .a2-d, .a2-in { display: inline; }
  .a2-in:not(:empty)::before { content: " · "; }
  .a2-ft { flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* «Постеры»: tiles, the same parts */
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; padding-top: 14px; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-r { display: flex; flex-direction: column; padding: 0; border: 0; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-ph { order: -1; width: auto; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-w { margin-top: 10px; font-size: 13px; line-height: 18px; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-d, .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-in { display: inline; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-in:not(:empty)::before { content: " · "; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-tx h3 { font-size: 15px; line-height: 20px; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-wh { font-size: 13px; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-ft { justify-content: space-between; height: 32px; margin-top: 4px; padding: 0; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-ft .a2-go { display: none; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-pr:empty + .a2-go { margin-left: auto; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .hrt { position: absolute; top: 6px; right: 6px; bottom: auto; background: rgba(255, 255, 255, .9); color: #121211; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .hrt:hover { background: #FFFFFF; }
@media (min-width: 761px) {
  .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; padding-top: 20px; }
  .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-w { margin-top: 12px; font-size: 14px; }
  .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-tx h3 { font-size: 16px; line-height: 22px; }
  .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-wh { font-size: 14px; }
  .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-ft { height: auto; margin-top: 12px; gap: 16px; }
  .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-ft .a2-go { display: inline; margin-left: auto; }
}
@media (min-width: 1441px) { .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1801px) { .a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-items { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* «Календарь» (her mockups): the page's own month in the list's place; the strip turns its month, the rail stays */
.a2-cal { display: none; }
.a2p:has(.views [data-gally-view="calendar"][aria-pressed="true"]) .a2-cal { display: block; }
.a2p:has(.views [data-gally-view="calendar"][aria-pressed="true"]) .a2-main > :not(.a2-cal) { display: none; }
.a2p:has(.views [data-gally-view="calendar"][aria-pressed="true"]) .gally-more { display: none; }
.a2p .calendar-wrap { display: none !important; }
.a2-calh { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; padding: 18px 0 10px; }
.a2-calh h2 { font-size: 21px; font-weight: 500; line-height: 28px; letter-spacing: -.02em; }
.a2-calh span { font-size: 14px; color: var(--mut); }
.a2-calwd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 6px; border-bottom: 1px solid var(--aline); font-size: 12px; color: var(--mut); }
.a2-calwd span { padding-left: 6px; }
.a2-calwd .w { color: var(--txt); font-weight: 600; }
.a2-wk { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--aline); }
.a2-c { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: calc(56px + var(--lanes, 0) * 22px); padding: 6px 4px 8px 6px; border: 0; border-right: 1px solid var(--aline); background: none; font: inherit; color: var(--txt); text-align: left; cursor: pointer; transition: background .15s; }
.a2-c:last-child { border-right: 0; }
.a2-c:hover { background: var(--ahl); }
.a2-c .n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: -4px; padding: 0 5px; border-radius: 13px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.a2-c.we .n { font-weight: 600; }
.a2-c.past .n, .a2-c.out .n { color: var(--off, #A9A59D); }
.a2-c.today .n { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); }
.a2-c.sel { background: var(--s1); }
.a2-c.sel .n { background: var(--acc); color: #FFFFFF; box-shadow: none; }
.a2-c:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
/* a bar: through its days of the week; cut square where it goes on past the week */
.a2-bar { position: absolute; z-index: 1; top: calc(36px + var(--l) * 22px); left: calc(var(--s) * 100% / 7 + 3px); width: calc(var(--n) * 100% / 7 - 6px); height: 19px; display: flex; align-items: center; gap: 5px; padding: 0 6px 0 2px; overflow: hidden; border-radius: 6px; background: var(--afest); box-shadow: inset 3px 0 0 var(--afest-s); font-size: 11px; line-height: 19px; white-space: nowrap; color: var(--afest-s); }
.a2-bar img { flex: none; width: 15px; height: 15px; border-radius: 3px; object-fit: cover; }
.a2-bar b { flex: none; font-weight: 500; }
.a2-bar span { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.a2-bar.cl { left: calc(var(--s) * 100% / 7); border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
.a2-bar.cr { width: calc(var(--n) * 100% / 7 - 3px); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.a2-bar.cl.cr { width: calc(var(--n) * 100% / 7); }
.a2-bar.pastb { opacity: .45; }
.a2-bar:hover { box-shadow: 0 0 0 1.5px var(--acc), inset 3px 0 0 var(--afest-s); }
.dy2 .a2-bar { background: var(--s1); box-shadow: inset 0 0 0 1px var(--aline); color: var(--txt); }
.dy2 .a2-bar span { color: var(--mut); }
.a2-clines { display: flex; flex-direction: column; gap: 2px; margin-top: calc(var(--lanes, 0) * 22px); min-width: 0; width: 100%; }
.a2-cline { display: block; overflow: hidden; font-size: 11px; font-weight: 500; line-height: 14px; overflow-wrap: anywhere; }
.a2-cline small { display: block; font-size: 10px; font-weight: 400; color: var(--mut); }
.a2-cx, .a2-co { font-size: 11px; line-height: 14px; color: var(--txt2); }
.a2-co { color: var(--mut); }
.a2-cpics { display: flex; align-items: center; gap: 3px; }
.a2-cpics img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.a2-cpics i { font-size: 11px; font-style: normal; color: var(--mut); }
@media (max-width: 760px) {
  .a2-cpics img:nth-child(n+2), .a2-cpics i, .a2-co, .a2-cline small { display: none; }
  .a2-bar b { overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .a2-bar img { display: none; }
  /* a phone: no edge mark — on a bar a few pixels wide the 3px edge in a round corner reads as a bracket */
  .a2-bar, .a2-bar:hover { border-radius: 4px; box-shadow: none; padding-left: 4px; }
  .a2-bar.cl { border-radius: 0 4px 4px 0; }
  .a2-bar.cr { border-radius: 4px 0 0 4px; }
  .a2-bar.cl.cr { border-radius: 0; }
}
@media (min-width: 761px) {
  .a2-calh { padding: 24px 0 12px; }
  .a2-calh h2 { font-size: 26px; line-height: 32px; }
  .a2-calh span { font-size: 15px; }
  .a2-calwd { font-size: 13px; }
  .a2-calwd span { padding-left: 10px; }
  .a2-c { min-height: calc(76px + var(--lanes, 0) * 30px); padding: 8px 8px 10px 10px; }
  .a2-c .n { min-width: 28px; height: 28px; margin-left: -6px; font-size: 15px; }
  .a2-bar { top: calc(40px + var(--l) * 30px); height: 26px; left: calc(var(--s) * 100% / 7 + 6px); width: calc(var(--n) * 100% / 7 - 12px); gap: 7px; padding: 0 8px 0 3px; border-radius: 7px; font-size: 13px; line-height: 26px; }
  .a2-bar img { width: 20px; height: 20px; border-radius: 4px; }
  .a2-bar span { display: block; }
  .a2-bar.cr { width: calc(var(--n) * 100% / 7 - 6px); }
  .a2-clines { margin-top: calc(var(--lanes, 0) * 30px); }
  .a2-cline { font-size: 13px; line-height: 16px; }
  .a2-cline small { font-size: 11px; }
  .a2-cx, .a2-co { font-size: 12px; line-height: 16px; }
}
/* a pressed day: under its week, its rows */
.a2-pday { margin: 0 -8px; padding: 6px 14px 10px; border-bottom: 1px solid var(--aline); border-radius: 0 0 14px 14px; background: var(--s1); }
.a2-pday > header { display: flex; align-items: baseline; gap: 10px; padding: 10px 0 6px; border-bottom: 1px solid var(--aline); }
.a2-pday h3 { font-size: 18px; font-weight: 500; }
.a2-pday > header span { font-size: 14px; color: var(--mut); }
.a2-pclose { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--mut); cursor: pointer; }
.a2-pclose:hover { background: var(--ahl); color: var(--txt); }
.a2-pday .a2-r { padding-bottom: 10px; }
.a2-pday .a2-r:last-child { border-bottom: 0; }
.a2-pday .a2-ph { width: 72px; height: 60px; }
.a2-pday .a2-ft { padding-right: 0; }
.a2-psec { margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--aline); font-size: 13px; font-weight: 600; color: var(--mut); }
.a2-pmore { margin: 10px 0 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--txt); cursor: pointer; }
.a2-pmore:hover { color: var(--acc); }
.a2-pnone { padding: 16px 0 8px; color: var(--mut); }
.a2-calph-t { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 6px; font-size: 11px; color: var(--mut); }
@media (min-width: 761px) {
  .a2-pday { margin: 0; padding: 8px 22px 12px; box-shadow: 0 10px 24px rgba(18, 18, 17, .08); }
  .a2-pday .a2-r { grid-template-columns: 114px 72px minmax(0, 1fr) auto; grid-template-areas: "w ph tx go"; padding: 12px 0; }
  .a2-pday h3 { font-size: 19px; }
}
/* the month: the same type and accent as the calendar of «Все события» (home.css), and a day's words kept inside
   its tile — a name and the starts and ends one line each, cut with «…», never spilling into the next day */
.a2p { --afest: #EEEBFD; --afest-s: #6857E8; }
:root.dark .a2p { --afest: rgba(124, 108, 255, .18); --afest-s: #8F82FF; }
.a2p .calendar-wrap { padding: 4px 0 64px; }
.a2p .cal .gally-cal-head { align-items: center; gap: 16px; padding: 28px 0 12px; }
.a2p .cal .gally-cal-month { font-size: 28px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.a2p .cal .gally-cal-year { font: 300 28px/1 Geologica, system-ui, sans-serif; letter-spacing: -.03em; text-transform: none; color: var(--txt); padding: 0; }
.a2p .cal .gally-cal-total { font: 400 15px Geologica, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--mut); }
.a2p .cal .gally-cal-programme-words { font: 500 18px Geologica, system-ui, sans-serif; letter-spacing: 0; text-transform: lowercase; color: var(--txt); }
.a2p .cal .gally-cal-programme-words > * + * { font-size: 14px; font-weight: 400; color: var(--mut); }
.a2p .cal .gally-cal-nav a, .a2p .cal .gally-cal-nav .gally-cal-edge { border: 0; color: var(--mut); }
.a2p .cal .gally-cal-nav a:hover { background: var(--ahl); color: var(--txt); }
.a2p .cal .gally-cal-grid { border-top: 1.5px solid var(--txt); border-bottom: 0; padding-top: 0; }
.a2p .cal .gally-cal-wd { padding: 10px 0; color: var(--mut); text-transform: none; letter-spacing: 0; font: 400 13px Geologica, system-ui, sans-serif; }
.a2p .cal .gally-cal-cell { overflow: hidden; min-width: 0; }
.a2p .cal .gally-cal-names > span, .a2p .cal .gally-cal-mark { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.a2p .cal .gally-cal-marks { display: block; min-width: 0; }
.a2p .cal .gally-cal-mark:nth-child(n+3) { display: none; }
.a2p .cal .gally-cal-cell[aria-current] .gally-cal-num { background: var(--acc); color: #FFFFFF; }
@media (min-width: 900px) {
  .a2p .cal .gally-cal-cell[aria-current], .a2p .cal .gally-cal-cell[aria-current]:hover { background: var(--acc); }
  .a2p .cal .gally-cal-cell[aria-current] .gally-cal-num { background: none; color: #FFFFFF; }
  .a2p .cal .gally-cal-cell[aria-current] :is(.gally-cal-count, .gally-cal-names, .gally-cal-mark), .a2p .cal .gally-cal-cell[aria-current]::after { color: #FFFFFF; opacity: .85; }
}
.a2p .cal-row { grid-template-columns: 88px minmax(0, 1fr) 36px; align-items: start; border-bottom: 1px solid var(--aline); }
.a2p .cal-row .hrt { position: static; width: 36px; height: 36px; margin-right: -8px; align-self: center; }
.a2p .cal-thumb { position: relative; height: 110px; aspect-ratio: auto; border-radius: 0; background: var(--apic); }
.a2p .cal-thumb .aud { top: 5px; left: 5px; }
.a2p .cal-text .meta { font: 400 13px Geologica, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--mut); }
.a2p .cal-text .title { font-size: 17px; font-weight: 500; }
.a2p .cal-text .place { font-size: 15px; }
@media (min-width: 900px) { .a2p .cal-row { grid-template-columns: 120px minmax(0, 1fr) 40px; } .a2p .cal-row .hrt { width: 40px; height: 40px; margin: 0; } }
.a2p .cal-run[data-list="festivals"] { background: var(--afest); box-shadow: inset 3px 0 0 var(--afest-s); border-radius: 4px 10px 10px 4px; }
.a2p .cal-run[data-list="festivals"] .cal-run-until { color: var(--afest-s); font-weight: 600; }

/* the end of the list, nothing found, the festivals no longer held */
.a2-empty { padding: 32px 0; font-size: 17px; color: var(--mut); }
.a2-none { padding: 40px 0; }
.a2-none h2 { font-size: 28px; font-weight: 400; letter-spacing: -.02em; }
.a2-none p { margin-top: 8px; color: var(--mut); }
.a2-none a { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }
.a2p .gally-more { display: block; margin: 24px auto 0; height: 44px; padding: 0 22px; border: 1px solid var(--achip); border-radius: 999px; background: none; font-size: 15px; cursor: pointer; }
.a2-tail { margin-top: 48px; border-top: 1.5px solid var(--txt); }
.a2-gone { padding-top: 20px; }
.a2-gone h2 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.a2-gone > p { margin-top: 4px; font-size: 14px; color: var(--mut); }
.a2-gone ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.a2-gone li a { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--aline); color: var(--txt); }
.a2-gone li img { width: 48px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; background: var(--apic); filter: grayscale(1); }
.a2-gone li b { display: block; font-size: 15px; font-weight: 500; }
.a2-gone li span span { font-size: 13px; color: var(--mut); }
.a2-miss { margin-top: 28px; font-size: 14px; color: var(--mut); }
.a2-miss a { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 761px) { .a2-gone ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1101px) { .a2-gone ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* «Выставки»: a tile of the closing date where the exhibition has no picture of its own (never the museum's
   building — her rule of 14.11); the last days in red; Museumkaart and «детям» beside «Подробнее» */
.a2-tile { display: flex; align-items: flex-end; padding: 10px; background: var(--s1); color: var(--txt); }
.a2-tile span { font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.a2-tile::before { content: ""; position: absolute; top: 10px; left: 10px; width: 18px; height: 2px; background: var(--acc); }
.a2-in.is-last { color: var(--ared, #C8323C); font-weight: 500; }
:root.dark .a2p { --ared: #FF6B75; }
.a2-pr em { margin-left: 8px; font-style: normal; color: var(--mut); }
.a2-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; }
.a2-ask { display: flex; flex-wrap: wrap; gap: 8px; }
.a2-ask .chip { height: 36px; padding: 0 14px; font-size: 14px; }
@media (min-width: 761px) { .a2-tile { padding: 12px; } .a2-tile span { font-size: 14px; } }
}
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-tile { padding: 16px; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-tile span { font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.a2p:has(.views [data-gally-view="posters"][aria-pressed="true"]) .a2-tile::before { top: 16px; left: 16px; width: 24px; }
.a2p .cal-run[data-list="museum-exhibitions"] { background: var(--s1); box-shadow: inset 3px 0 0 var(--txt); border-radius: 4px 10px 10px 4px; }
.a2p .cal-run.a2-off { display: none; }
.a2p .cal-run[data-list="museum-exhibitions"].is-last .cal-run-until { color: var(--ared, #C8323C); font-weight: 600; }

/* «Голландский год»: the strip names each month's main tradition; the Dutch name under the Russian one; the rail's
   year in short — a date tile and its words */
.a2-strip-words .a2-mo { flex-basis: 92px; }
.a2-strip-words .a2-mo { min-width: 0; }
.a2-strip-words .a2-mo small { display: block; width: 100%; max-width: 86px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.a2-strip-words .a2-mo small:empty::after { content: "—"; }
.a2-strip-words .a2-mo small [data-gally-item] { display: inline; }
@media (min-width: 761px) { .a2-strip-words .a2-mo { flex: 1 1 0; min-width: 88px; } .a2-strip-words .a2-mo small { max-width: none; padding: 0 6px; } }
.a2-nl { display: block; margin-top: 1px; font-size: 13px; font-weight: 400; color: var(--mut); }
.a2-year { margin: 0; padding: 0; list-style: none; }
.a2-year li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.a2-dt { flex: none; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: var(--s1); line-height: 1; }
.a2-dt b { font-size: 17px; font-weight: 500; }
.a2-dt small { margin-top: 2px; font-size: 11px; color: var(--mut); }
.a2-year li > span:last-child b { display: block; font-size: 15px; font-weight: 500; }
.a2-year li > span:last-child small { font-size: 13px; color: var(--mut); }
.a2-year li.is-gone { display: none; }
.a2-note { margin-top: 8px; font-size: 13px !important; }

/* a month's head (mockups): on a laptop «Ноябрь  2026 · 12 фестивалей» in one line; on a phone «Ноябрь» and the count
   at the right edge — the strip above already names the year */
.a2-mh .a2-yr { display: none; }
@media (min-width: 761px) {
  .a2-mh .a2-yr { display: inline; }
  .a2-mh small:not(.a2-now-day) { display: none; }
}
/* «Идут сейчас»: what runs today, on its own before the months (the script marks it) */
.a2-now-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0 10px; border-bottom: 1px solid var(--aline); }
.a2-now-head h2 { font-size: 21px; font-weight: 500; line-height: 28px; letter-spacing: -.02em; }
.a2-now-head small { font-size: 14px; color: var(--mut); }
.a2-r.is-now-last { margin-bottom: 12px; }
.a2-r.is-now-last + .a2-mh, .a2-items > .a2-mh-moved { margin-top: 0; }
@media (min-width: 761px) {
  .a2-now-head { justify-content: flex-start; padding: 24px 0 12px; }
  .a2-now-head h2 { font-size: 26px; line-height: 32px; }
  .a2-now-head small { font-size: 15px; }
}
.a2-list .a2-m.is-emptied { display: none; }
.a2-lead { padding-bottom: 8px; }
.a2-lead + .a2-list .a2-m:first-child, .a2-lead + .a2-list .a2-m.is-emptied + .a2-m { border-top: 1.5px solid var(--txt); margin-top: 16px; }

/* the rail: a long list shows five and «Все темы →» (mockups) */
.a2-b ul.a2-five li:nth-child(n+6) { display: none; }
.a2-b.is-open ul.a2-five li { display: list-item; }
.a2-b ul.a2-five li a { display: flex; }
.a2-b.is-open ul.a2-five li a { display: flex; }
.a2-b .a2-btn { margin-top: 8px; color: var(--txt); }
.a2-b .a2-btn:hover { color: var(--acc); }
/* «Выставки» and «Фестивали»: what the entry costs stands as a column at the right on a laptop (mockups) */
@media (min-width: 761px) {
  .a2-pr { text-align: right; line-height: 18px; }
  .a2-pr em { display: block; margin: 0; }
}
/* «Голландский год»: the Dutch name on the line of the Russian one, quieter (mockup) */
.dy2 .a2-tx h3 .a2-nl { display: inline; margin: 0 0 0 8px; font-size: 14px; }
/* a date without a picture: a white tile, the big day, its month, what it is (mockup) */
.a2-tile.a2-dtile { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; padding: 8px 10px; background: var(--s1); }
.a2-tile.a2-dtile::before { content: none; }
.a2-dtile b { font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.a2-dtile i { margin-top: 3px; font-size: 12px; font-style: normal; color: var(--txt); }
.a2-dtile small { font-size: 11px; color: var(--mut); text-transform: lowercase; }
@media (min-width: 761px) { .a2-dtile b { font-size: 32px; } .a2-dtile i { font-size: 13px; } }
/* «25–26»: a range in one line, never broken under the dash */
.a2-dtile b { white-space: nowrap; }
.a2-dtile.is-range b { font-size: 20px; }
@media (min-width: 761px) { .a2-dtile.is-range b { font-size: 26px; } }
