/* VZV školení Plzeň.
   Fira Sans + Fira Sans Condensed (SIL Open Font License 1.1), self-hosted and
   subset to RU/UK/CZ/EN, at ../fonts/. */

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fira-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fira-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fira-sans-condensed-700.woff2') format('woff2');
}

:root {
  --bg: #f3f3f0;
  --surface: #ffffff;
  --dark: #0d1a24;
  --ink: #101c26;
  --ink-soft: #5c6c78;
  --line: #e3e4df;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #ffc400;
  --accent-deep: #c99500;

  --sans: 'Fira Sans', 'Segoe UI', system-ui, sans-serif;
  --cond: 'Fira Sans Condensed', 'Fira Sans', 'Segoe UI', system-ui, sans-serif;

  --gutter: 1.25rem;
  --maxw: 1160px;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 28, 38, .05), 0 14px 34px -20px rgba(16, 28, 38, .35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-gutter: stable; /* no page shift when the viewer locks scrolling */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--cond);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.55rem, 6.6vw, 4.75rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--accent);
  color: var(--ink);
  padding: .75rem 1rem;
}

.skip:focus {
  left: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 28px -16px rgba(201, 149, 0, .9);
  transition: transform .15s ease, background-color .15s ease;
}

.btn:hover {
  background: #ffd23f;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  box-shadow: none;
}

.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- header ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 26, 36, .94);
  backdrop-filter: saturate(140%) blur(8px);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}

.head__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-right: auto;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

.brand__place {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: .95rem;
}

.nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.head__tel {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.head__tel:hover { color: var(--accent); }

.langs {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.langs a,
.langs span {
  display: block;
  padding: .3rem .55rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

.langs a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.langs [aria-current] {
  background: var(--accent);
  color: var(--ink);
}

@media (max-width: 61.99rem) {
  .nav { display: none; }
}

@media (max-width: 34rem) {
  .head__tel { display: none; }
}

/* four language pills next to the brand only fit a phone if both give a
   little; the brand must never wrap onto two lines */
.brand__name { white-space: nowrap; }

@media (max-width: 25rem) {
  .head__in { gap: .6rem; }
  .brand { font-size: 1.15rem; gap: .35rem; }
  .langs a,
  .langs span { padding: .3rem .38rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 26, 36, .74) 0%, rgba(13, 26, 36, .6) 45%, rgba(13, 26, 36, .95) 100%),
    linear-gradient(90deg, rgba(13, 26, 36, .8) 0%, rgba(13, 26, 36, .2) 72%);
}

.hero__in {
  padding-block: clamp(3rem, 10vw, 6.5rem);
}

.hero h1 {
  max-width: 15ch;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
}

.hero__kicker::before {
  content: '';
  width: 2.2rem;
  height: 2px;
  background: var(--accent);
}

.hero__sub {
  margin-top: 1.1rem;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: rgba(255, 255, 255, .85);
}

.price {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: .45rem 1.15rem .55rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.15;
}

.claims {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
  max-width: 44rem;
}

@media (min-width: 40rem) {
  .claims { grid-template-columns: 1fr 1fr; gap: .8rem 1.75rem; }

  /* the Czech page lists three one-word services, which read as a row */
  .claims--inline { grid-template-columns: repeat(3, max-content); gap: .6rem 2.5rem; }
}

.claims li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 600;
  line-height: 1.35;
}

.claims svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .05rem;
  padding: .25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.5rem;
  margin-top: 2.25rem;
}

.actions__tel {
  font-family: var(--cond);
  font-size: 1.6rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .1rem;
}

.actions__tel:hover { color: var(--accent); }

/* ---------- info strip ---------- */

.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
}

@media (min-width: 46rem) {
  .strip ul { grid-template-columns: repeat(3, 1fr); }
}

.strip li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.3rem 1.25rem;
  background: var(--surface);
  font-size: .98rem;
}

.strip svg {
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent-deep);
}

.strip a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3.25rem, 8vw, 5.75rem); }

.section--tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .8rem;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: '';
  width: 1.8rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.lede {
  margin-top: 1.1rem;
  max-width: 52ch;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--ink-soft);
}

/* ---------- course ---------- */

/* the three steps and the three photos read as one set, so they stack:
   the card of steps, then the row of photos under it, column for column */
.course {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.section--tint .card { background: var(--bg); }

.steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps b {
  padding-top: .15rem;
  font-family: var(--cond);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-deep);
}

.steps strong {
  display: block;
  font-size: 1.1rem;
}

.steps span { color: var(--ink-soft); }

.note {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 196, 0, .12);
  font-size: .98rem;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* three across, or one per row -- never two and an orphan */
@media (min-width: 40rem) {
  .shots { grid-template-columns: repeat(3, 1fr); }
}

.shots figure {
  position: relative;
  margin: 0;
}

/* landscape: the licence card is a wide document, and a portrait crop would
   cut straight through it -- at 4/3 only its white margins are trimmed */
.shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}

.shots figcaption {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(13, 26, 36, .85);
  color: #fff;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- gallery ---------- */

/* Two per row on a phone. One per row ran the section to three screenfuls of
   photos, which the contacts and the booking button sit below. */
.gallery {
  display: grid;
  gap: .85rem;
  margin-top: 2.25rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery figure:hover img { transform: scale(1.04); }

/* The lead photo keeps the full row at every width, so the denser grid still
   opens with one big image instead of reading as a flat mosaic. */
.gallery figure:first-child { grid-column: span 2; }

/* Once it is wider than a phone the lead photo would be very tall at 4/3, so
   it flattens into a banner instead. */
@media (min-width: 40rem) {
  .gallery figure:first-child img { aspect-ratio: 8 / 3; }
}

/* ---------- photo viewer ---------- */

.zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
}

/* magnifier hint, so the photo reads as clickable on touch too */
.zoom::after {
  content: '';
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(13, 26, 36, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.6 15.6 4.4 4.4M10.5 7.9v5.2M7.9 10.5h5.2'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  opacity: .88;
  transition: opacity .18s ease;
  pointer-events: none;
}

.zoom:hover::after,
.zoom:focus-visible::after {
  opacity: 1;
}

/* the dialog covers the viewport and centres the photo in it; everything
   around the photo is backdrop, and a click there closes (see viewer.js) */
.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: clamp(.75rem, 4vw, 2.5rem);
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lb[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb::backdrop {
  background: rgba(6, 13, 19, .94);
}

/* showModal() makes the page inert but not unscrollable */
html:has(.lb[open]) {
  overflow: hidden;
}

.lb__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, .85);
}

.lb__x,
.lb__nav {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.lb__x:hover,
.lb__nav:hover {
  background: var(--accent);
  color: var(--ink);
}

.lb__x {
  top: clamp(.75rem, 2.5vw, 1.5rem);
  right: clamp(.75rem, 2.5vw, 1.5rem);
  width: 2.75rem;
  height: 2.75rem;
}

.lb__x::before,
.lb__x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lb__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.lb__x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* prev/next appear only for the gallery, the one run of photos to page
   through; viewer.js adds .lb--run when the open photo belongs to it */
.lb__nav {
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  display: none;
}

.lb--run .lb__nav {
  display: block;
}

.lb__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }

.lb__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: .62rem;
  height: .62rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.lb__nav--prev::before { transform: translate(-50%, -50%) rotate(-135deg); }
.lb__nav--next::before { transform: translate(-50%, -50%) rotate(45deg); }

/* ---------- reviews ---------- */

.reviews {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

@media (min-width: 52rem) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

.review {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.section--tint .review { background: var(--bg); }

.stars {
  display: flex;
  gap: .15rem;
  margin-bottom: .6rem;
  color: var(--accent-deep);
}

.stars svg { width: 1.1rem; height: 1.1rem; }

.review__name { margin: 0; font-weight: 600; }

.review__meta {
  margin: 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* the English page notes where a review was translated from */
.review__note {
  margin: 0;
  font-size: .8125rem;
  color: var(--ink-soft);
}

.review blockquote {
  margin: .85rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.graduates { margin: 1.5rem 0 0; }

.graduates img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
}

/* ---------- CTA band ---------- */

.band {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--dark);
  color: #fff;
}

.band__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.band h2 { max-width: 18ch; }

.band p {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .75);
}

.band__tel {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--cond);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-decoration: none;
}

.band__tel:hover { color: var(--accent); }

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
  align-items: start;
}

@media (min-width: 58rem) {
  .contact { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.facts li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.facts svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .15rem;
  color: var(--accent-deep);
}

.facts strong { display: block; }

.facts span {
  display: block;
  font-size: .9rem;
  color: var(--ink-soft);
}

.facts a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.meeting { margin: 1.25rem 0 0; }

.meeting img {
  width: 100%;
  border-radius: var(--r);
}

.meeting figcaption {
  margin-top: .6rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

.map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

@media (max-width: 57.99rem) {
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- footer ---------- */

.foot {
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
}

.foot__in {
  display: grid;
  gap: 2rem;
}

@media (min-width: 46rem) {
  .foot__in { grid-template-columns: 1.3fr 1fr 1fr; }
}

.foot h2 {
  margin-bottom: .9rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

.foot__note {
  margin-top: 1rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
}

/* terms and privacy policy links, a row of their own under the columns */
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  row-gap: .4rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem;
}

.foot__legal > * + *::before {
  content: '|';
  margin-inline: .75rem;
  color: rgba(255, 255, 255, .35);
}

/* ---------- text page (privacy policy) ---------- */

.doc {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.doc h1 {
  margin-bottom: .75rem;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.doc__date {
  margin-bottom: 2rem;
  color: var(--ink-soft);
}

.doc h2 {
  margin: 2.25rem 0 .75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li + li { margin-top: .2rem; }

/* contact details read as lines, not as bullet points */
.doc .doc__plain {
  list-style: none;
  padding-left: 0;
}

.doc a { text-decoration-color: var(--accent-deep); }
.doc a:hover { color: var(--accent-deep); }

/* FAQ: native <details>, so it opens and closes without any script */
.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 1rem 2.25rem 1rem 0;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

/* chevron drawn with borders, so it needs no glyph from the subset fonts */
.faq summary::after {
  content: '';
  position: absolute;
  right: .4rem;
  top: 1.3rem;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.faq details[open] summary::after {
  top: 1.55rem;
  transform: rotate(-135deg);
}

.faq summary:hover { color: var(--accent-deep); }

.faq details p { padding-bottom: 1.1rem; }

/* ---------- mobile action bar ---------- */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: .6rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(13, 26, 36, .97);
  border-top: 1px solid var(--line-dark);
}

/* sized by their labels rather than split evenly, so a long word such as
   "Зателефонувати" does not push the other button onto two lines */
.bar .btn {
  flex: 1 1 auto;
  padding: .8rem .75rem;
  white-space: nowrap;
}

.bar .btn--ghost { color: #fff; }

@media (max-width: 47.99rem) {
  .bar { display: flex; }
  body { padding-bottom: 4.6rem; }
  .page-doc { padding-bottom: 0; } /* no action bar on the text page */
}

@media (max-width: 22.5rem) {
  .brand { font-size: 1.05rem; }
  .langs a,
  .langs span { padding-inline: .3rem; }
  .bar { gap: .4rem; }
  .bar .btn { padding-inline: .55rem; font-size: .92rem; }
}

@media print {
  .head,
  .bar,
  .map { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}

/* footer: mark the current language like the header pill does */
.foot [aria-current] {
  color: #fff;
  font-weight: 600;
}
