/* beaches.css — what the beaches pages have of their own on the shared templates (13.10.2026, the owner's «да»):
   the catalogue (beaches.html) stands on catalog.css — its register, the search and the filters in the panel, the
   places as lines — and a beach's page (beaches/_entry.html) on places.css, the museum page's parts. Here is only the
   sea's costume: the first screen with today at the sea, the four roads, the coast town by town in one dark band;
   on a beach's page the hall in deep water, the town's year for dogs on the ticket, the beach from north to south.
   Colours come from styles.css, so the dark theme follows; the sea's dark stays dark in both, as the wall does. */

.ba, .bq { --sea: #1B2A33; --sea-in: linear-gradient(180deg, #24343D 0%, #1B2A33 52%, #16232B 100%); --sea-txt: #F2F0EB; --sea-mut: rgba(242, 240, 235, .66); --sea-line: rgba(242, 240, 235, .14); }
.ba-kick { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.ba-kick i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

/* ── 1 · The first screen: what it is, how many — and today at the sea ── */
.ba-head { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; padding-top: 56px; padding-bottom: 72px; }
.ba-head-txt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.ba-head h1 { margin: 30px 0 0; font-size: clamp(46px, 9vw, 104px); font-weight: 500; line-height: .9; letter-spacing: -.055em; }
.ba-head h1 b { font-weight: inherit; }
.ba-lede { max-width: 31em; margin: 30px 0 0; font-size: 20px; line-height: 1.5; color: var(--txt2); }
.ba-lede b { font-weight: 500; color: var(--txt); }
.ba-go { margin-top: 40px; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--txt); color: var(--bg); font-size: 16px; font-weight: 500; transition: background .2s, color .2s; }
.ba-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ba .ba-go:hover { background: var(--acc); color: #FFF; }
.ba-go:hover svg { transform: translateY(2px); }
:root.dark .ba .ba-go:hover { color: #0F0F10; }

/* Today's card: the month's photograph, then the words on the card — they never sit on sky, whatever the month. */
.ba-now { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--s1); box-shadow: 0 1px 2px rgba(var(--ink), .05), 0 24px 48px -32px rgba(var(--ink), .4); }
.ba-now-pic { position: relative; height: 312px; margin: 0; background: var(--sea); }
.ba-now-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--p, 50% 60%); }
.ba-now-pic figcaption { position: absolute; right: 16px; bottom: 12px; left: 16px; font-size: 11px; line-height: 1.4; text-align: right; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.ba-now-cap { padding: 28px 32px 4px; }
.ba-now-line { margin: 14px 0 0; font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.ba-now-line span { display: block; color: var(--mut); }
.ba-today { margin: 0; padding: 12px 32px 14px; }
.ba-today > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 15px 0; font-size: 16px; line-height: 1.4; }
.ba-today > div + div { border-top: 1px solid var(--line, rgba(var(--ink), .1)); }
.ba-today dt { font: 500 11px/2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.ba-today dd { margin: 0; }
.ba-today dd b { font-weight: inherit; }
.ba-today a { color: var(--acc); }
.ba .ba-today a:hover { color: var(--acc); text-decoration: underline; text-underline-offset: 4px; }

/* ── 2 · Where to start ── */
.ba-start > .ba-kick { padding-bottom: 22px; }
.ba-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ba-card { display: block; min-width: 0; color: var(--txt); }
.ba-card-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--s2); }
.ba-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ba-card:hover .ba-card-pic img { transform: scale(1.03); }
.ba-card h3 { margin: 18px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.ba-card h3 span { flex: none; font-weight: 400; color: var(--faint); transition: color .2s, transform .2s; }
.ba .ba-card:hover h3 span { color: var(--acc); transform: translateX(3px); }
.ba-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--mut); }
.ba-card p b { font-weight: inherit; }

/* ── 3 · The register is catalog.css's; only the empty tags line is the beaches' own ── */
.ba .ct-reg { padding-top: 112px; padding-bottom: 128px; }
.ct-line-tags:empty { display: none; }

/* ── 4 · With a dog at the sea: the page's one dark stage ── */
.ba-dogs { padding: 112px 0 120px; background: #121211; color: #EDEAE3; }
.ba-dogs .ba-kick { color: #8D8A84; }
.ba-dogs .ba-kick i { background: var(--lime); }
.ba-dogs-head { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: end; padding-bottom: 72px; }
.ba-dogs h2 { margin: 26px 0 0; font-size: clamp(48px, 5.6vw, 80px); font-weight: 500; line-height: .95; letter-spacing: -.045em; color: #FFF; }
.ba-dogs h2 b { font-weight: inherit; }
.ba-dogs-lede { max-width: 30em; margin: 26px 0 0; font-size: 18px; line-height: 1.55; color: #CFCBC3; }
.ba-big { display: flex; align-items: flex-end; gap: 24px; }
.ba-big > b { font-size: clamp(112px, 12vw, 184px); font-weight: 500; line-height: .78; letter-spacing: -.06em; color: var(--lime); }
.ba-big p { margin: 0 0 6px; font-size: 19px; line-height: 1.4; color: #EDEAE3; }
.ba-big small { display: block; margin-top: 8px; font: 400 14px/1.4 Geologica, system-ui, sans-serif; color: #8D8A84; }
.ba-reaches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.ba-reach summary { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(237, 234, 227, .85); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #EDEAE3; cursor: pointer; list-style: none; }
.ba-reach summary::-webkit-details-marker { display: none; }
.ba-reach summary span + span { color: #8D8A84; }
.ba-reach summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.ba-town { display: block; padding: 12px 0 13px; border-bottom: 1px solid rgba(237, 234, 227, .12); color: #EDEAE3; }
.ba-town b { display: block; font-size: 17px; font-weight: 500; line-height: 1.25; color: #FFF; transition: color .2s; }
.ba-town .ba-town-now { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: #CFCBC3; }
.ba-town .ba-town-next { display: block; margin-top: 2px; font: 400 13px/1.35 Geologica, system-ui, sans-serif; color: #8D8A84; }
.ba .ba-town:hover { color: #EDEAE3; }
.ba .ba-town:hover b { color: var(--lime); }
.ba-town.is-quiet .ba-town-now { color: #8D8A84; }

/* ── 5 · Where the facts come from ── */
.ba-src { display: grid; grid-template-columns: 344px minmax(0, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 88px; }
.ba-src > .ba-kick { align-self: start; margin-top: 5px; }
.ba-src p { max-width: 64em; margin: 0; font-size: 15px; line-height: 1.6; color: var(--txt2); }
.ba-src p + p { margin-top: 12px; font-size: 13px; color: var(--mut); }
.ba-src a { color: var(--acc); }

@media (max-width: 1099px) {
  .ba-head { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .ba-now { max-width: 620px; }
  .ba-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .ba-dogs-head { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ba-reaches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .ba-src { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 699px) {
  .ba-kick { font-size: 11px; }
  .ba-head { gap: 28px; padding-top: 32px; padding-bottom: 44px; }
  .ba-head h1 { margin-top: 20px; }
  .ba-lede { margin-top: 18px; font-size: 17px; }
  .ba-go { margin-top: 24px; height: 52px; font-size: 16px; }
  .ba-now-pic { height: 200px; }
  .ba-now-pic figcaption { font-size: 11px; }
  .ba-now-cap { padding: 20px 20px 2px; }
  .ba-now-line { font-size: 25px; }
  .ba-today { padding: 8px 20px 10px; }
  .ba-today > div { display: block; padding: 13px 0; font-size: 15px; }
  .ba-today dd { margin-top: 3px; }
  /* Four roads pass by the thumb, the next one showing at the edge. */
  .ba-cards { display: flex; gap: 14px; margin: 0 -18px; padding: 0 18px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; }
  .ba-cards::-webkit-scrollbar { display: none; }
  .ba-card { flex: none; width: 250px; scroll-snap-align: start; }
  .ba-card h3 { margin-top: 12px; font-size: 18px; }
  .ba-card p { font-size: 14px; }
  .ba .ct-reg { padding-top: 52px; padding-bottom: 72px; }
  .ba-dogs { padding: 64px 0 72px; }
  .ba-dogs-head { gap: 28px; padding-bottom: 36px; }
  .ba-dogs h2 { margin-top: 18px; font-size: 44px; }
  .ba-dogs-lede { margin-top: 18px; font-size: 16px; }
  .ba-big { order: 2; gap: 16px; }
  .ba-big > b { font-size: 112px; }
  .ba-big p { font-size: 16px; }
  .ba-reaches { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ba-reach summary { padding: 20px 0 12px; }
  .ba-reach:not([open]) summary { padding: 20px 0; border-bottom-color: rgba(237, 234, 227, .16); }
  .ba-reach summary::after { content: "+"; margin-left: 12px; font: 400 22px/1 Geologica, system-ui, sans-serif; color: #EDEAE3; }
  .ba-reach[open] summary::after { content: "−"; }
  .ba-reach summary span + span { margin-left: auto; }
  .ba-town b { font-size: 16px; }
  .ba-src { padding-top: 44px; padding-bottom: 52px; }
  .ba-src p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-card-pic img, .ba-go svg, .ba-card h3 span { transition: none; }
}

/* ════════════════ A beach's page: places.css, in the sea's costume ════════════════ */
/* The hall: deep water instead of the gallery wall; the photograph is a landscape with its label, or the place's
   dot on the map where there is no free photograph. */
.bq-hall { background: var(--sea-in); color: var(--sea-txt); overflow-x: clip; }
.bq-hall .mm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
.bq-hall .pl-kick { color: var(--sea-mut); }
.bq-shot { grid-area: exhibit; position: relative; align-self: center; margin: 12px 0 0; }
.bq-shot img { display: block; width: 100%; height: auto; aspect-ratio: 36 / 25; border-radius: 20px; object-fit: cover; object-position: var(--p, 50% 55%); box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .9); }
.bq-shot .mm-plaque { position: absolute; right: -14px; bottom: 28px; }
.bq-where { grid-area: exhibit; align-self: center; justify-self: end; width: min(340px, 100%); }
.bq-where .nl-map { width: 100%; }
.pl-chip.is-shut i { background: #E0B23C; box-shadow: 0 0 0 4px rgba(224, 178, 60, .18); }

/* The ticket: the town's year for dogs laid out like the museum's week — its parts in a row, today's dark. */
.bq-year + .bq-year, .bq-dogs + .bq-year { margin-top: 22px; }
.bq-dogs .bq-year + .bq-year { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.bq-year > h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.bq-year > ol { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 12px; }
.bq-year > ol:empty { display: none; }
.mx-week.bq-year li span { white-space: normal; }
.mx-week.bq-year li.is-no:not(.is-today) span { color: #A4402A; }
.bq-year > p { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--txt2); }
.bq-year > p b { color: var(--txt); }
.bq-year > p small { display: block; margin-top: 6px; font-size: 13px; color: var(--mut); }
.bq-year > p small a { color: var(--acc); }
.bq-year ~ .pl-t-cells, .bq-dogs ~ .pl-t-cells { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.bq-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(180, 35, 44, .08); font-size: 15px; line-height: 1.45; color: var(--txt); }
.bq-alert b { color: #B4232C; }
.pl-t-cell:not(:has(b)) { display: none; }
.bq-cell-in > b { display: block; margin-top: 8px; font: 500 24px/1.05 var(--mono); letter-spacing: -.03em; color: var(--txt); }
.bq-cap::first-letter { text-transform: uppercase; }
.bq-cell-in > p { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--txt2); }
.pl-t-cell.is-warn > p { color: #B4232C; font-weight: 500; }
.bq-water-now { margin-top: 18px; display: grid; gap: 8px; }
.bq-water-now li { padding: 12px 14px; border-radius: 12px; background: rgba(180, 35, 44, .08); font-size: 14px; line-height: 1.45; }
.bq-water-now b { color: #B4232C; }
.bq-warn, .bq-news > p { margin-top: 20px; padding-top: 18px; border-top: 1px dashed rgba(var(--ink), .18); font-size: 15px; line-height: 1.45; color: var(--txt2); }
.bq-warn b { color: #B4232C; font-weight: 600; }
.bq-news > p b { color: var(--txt); }
.bq-news > p small { display: block; margin-top: 4px; font-size: 13px; color: var(--mut); }
:root.dark .bq-alert b, :root.dark .bq-warn b, :root.dark .bq-water-now b, :root.dark .pl-t-cell.is-warn > p { color: #FF8F7D; }
:root.dark .mx-week.bq-year li.is-no:not(.is-today) span { color: #FF8F7D; }

/* The beach from north to south: the museum's cut, laid along the coast. */
.bq-cut { margin-top: 120px; background: var(--sea-in); color: var(--sea-txt); }
.bq-cut .pl-kick { color: var(--sea-mut); }
.bq-coast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; margin-top: 44px; border: 1px solid rgba(242, 240, 235, .16); border-radius: 24px; overflow: hidden; }
.bq-gate { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; align-items: center; padding: 16px 28px; border-top: 1px solid rgba(242, 240, 235, .1); }
.bq-gate:nth-child(-n + 2) { border-top: 0; }
.bq-gate:nth-child(even) { border-left: 1px solid rgba(242, 240, 235, .12); }
.bq-gate > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; border: 1.5px solid rgba(242, 240, 235, .32); font: 500 15px var(--mono); font-style: normal; letter-spacing: -.03em; }
.bq-gate.is-guard > i { border-color: var(--lime); background: var(--lime); color: #121211; box-shadow: 0 0 0 5px rgba(var(--limer), .14); }
.bq-gate b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.bq-gate div > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: rgba(242, 240, 235, .68); }
.bq-gate div > span > span:not(:last-child)::after { content: " · "; color: rgba(242, 240, 235, .4); }
.bq-gate .is-guard { font-weight: 600; color: var(--lime); }
.bq-gate .is-warn { color: #FF9C8A; }

/* «Подойдёт ли вам» is places.css's own. A row whose sentences all fell away is not shown, nor the section with none;
   «На месте» lists its words with commas. */
.bq-fit:not(:has(.bq-say > span)) { display: none; }
.bq-fits:not(:has(.bq-say > span)) { display: none; }
.bq-has > span:not(:last-child)::after { content: ", "; }
.bq-has > span:first-child { display: inline-block; }
.bq-has > span:first-child::first-letter { text-transform: uppercase; }
.mx-fit-list li > div > .bq-has-at { display: block; margin-top: 2px; font-size: 14px; color: var(--mut); }

/* The passport: the facts and where each is from */
.bq-pass dl { margin: 0; border-top: 1px solid rgba(var(--ink), .16); }
.bq-pass dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bq-pass dt { font-size: 15px; color: var(--mut); }
.bq-pass dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--txt); }
.bq-pass dd small { display: block; margin-top: 2px; font-size: 14px; color: var(--mut); }
.bq-pass dd ul { margin: 0; padding: 0; list-style: none; }
.bq-pass dd a { color: var(--acc); }
.bq-pic { display: grid; place-items: center; background: var(--sea); }
.bq-pic svg { width: 64px; height: 32px; fill: none; stroke: rgba(242, 240, 235, .4); stroke-width: 1.6; stroke-linecap: round; }
.bq-pic:has(img) svg { display: none; }
.bq-pic img { grid-area: 1 / 1; }

@media (max-width: 1099px) {
  .bq-hall .mm-hero { grid-template-columns: minmax(0, 1fr); }
  .bq-shot { margin-top: 32px; }
  .bq-where { justify-self: start; margin-top: 24px; width: 240px; }
  .bq-pass dl > div { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .bq-shot { display: flex; flex-direction: column; align-items: flex-end; margin-top: 24px; }
  .bq-shot img { aspect-ratio: 3 / 2; border-radius: 16px; }
  .bq-shot .mm-plaque { position: relative; right: -6px; bottom: auto; margin-top: -28px; }
  .bq-year > ol { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .bq-year li b { font-size: 11px; line-height: 1.3; }
  .bq-year li span { font-size: 12px; }
  .bq-cell-in > b { margin-top: 6px; font-size: 20px; }
  .bq-cell-in > p { margin-top: 6px; font-size: 13px; }
  .bq-cut { margin-top: 64px; }
  .bq-cut .mm-cut-in { padding-top: 56px; padding-bottom: 60px; }
  .bq-cut .mm-cut-lead { margin-top: 14px; font-size: 16px; }
  .bq-coast { grid-template-columns: minmax(0, 1fr); margin-top: 28px; border-radius: 20px; }
  .bq-gate { grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; padding: 12px 16px; }
  .bq-gate:nth-child(2) { border-top: 1px solid rgba(242, 240, 235, .1); }
  .bq-gate:nth-child(even) { border-left: 0; }
  .bq-gate > i { width: 38px; height: 38px; font-size: 13px; }
  .bq-gate b { font-size: 15px; }
  .bq-gate div > span { font-size: 13px; }
  .bq-pass dl > div { display: block; padding: 14px 0; }
  .bq-pass dt { font-size: 13px; }
  .bq-pass dd { margin-top: 4px; font-size: 15px; }
}
