:root {
  --bg: #131313;
  --bg-elevated: #131313;
  --panel: #201f1f;
  --panel-low: #1c1b1b;
  --panel-high: #2a2a2a;
  --text: #e5e2e1;
  --text-muted: #d9c9a0;
  --link: #e5e2e1;
  --link-hover: #e9c349;
  --primary: #e9c349;
  --on-primary: #3c2f00;
  --primary-container: #af8d11;
  --on-primary-container: #342800;
  --highlight: #e9c349;
  --tertiary: #6fd8c8;
  --outline: #a89870;
  --outline-variant: #5a4c30;
  --line: rgba(90, 76, 48, 0.28);
  --line-strong: rgba(90, 76, 48, 0.55);
  --radius: 2px;
  --radius-sm: 2px;
  --max: 1200px;
  --nav: 256px;
  --space: 1rem;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --glow-soft: none;
  --glow: none;
  --ease: 0.25s ease;
  /*
   * Jemně teplý odstín → do ztracena do barvy pozadí (#131313),
   * odspodu nahoru (ne diagonála).
   */
  --grad-card: linear-gradient(
    to top,
    #1a1914 0%,
    #131313 75%
  );
  --grad-card-hover: linear-gradient(
    to top,
    #1e1d16 0%,
    #151515 75%
  );
  --grad-panel: linear-gradient(
    to top,
    #191814 0%,
    #131313 78%
  );
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; border: 0; display: block; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(228, 190, 188, 0.35);
  transition: color var(--ease), text-decoration-color var(--ease);
}
a:hover {
  color: var(--link-hover);
  background: transparent;
  text-decoration-color: var(--primary);
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.1rem 2rem;
}

/* —— Brand header —— */
.site-header {
  position: relative;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(229, 226, 225, 0.28);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 1.85rem 1.25rem 1.65rem;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.brand:hover {
  background: transparent;
  text-shadow: none;
}
.brand:hover .brand-title::after {
  width: 3.25rem;
  opacity: 1;
}
.brand-title {
  display: block;
  width: 100%;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-indent: 0;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
}
/* krátká zlatá linka pod názvem — oddělí brand od tagline */
.brand-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.7rem auto 0.15rem;
  background: var(--primary);
  opacity: 0.75;
  transition: width var(--ease), opacity var(--ease);
}
.brand-tagline {
  display: block;
  width: min(100%, 46rem);
  margin: 0 auto;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(0.68rem, 1.25vw, 0.8rem);
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: none;
}

.nav-toggle {
  display: none;
  margin-top: 0.65rem;
  padding: 0.35rem;
  background: transparent;
  color: #e5e2e1;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle__icon {
  font-size: 2rem;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* —— Layout —— */
.site-body {
  display: grid;
  grid-template-columns: var(--nav) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  flex: 1 0 auto;
}

.site-nav {
  position: sticky;
  top: 0.75rem;
  padding: 0.5rem 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #353534 transparent;
}
.site-nav::-webkit-scrollbar { width: 6px; }
.site-nav::-webkit-scrollbar-track { background: transparent; }
.site-nav::-webkit-scrollbar-thumb {
  background: #353534;
  border-radius: 10px;
}
.site-nav::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.nav-item { margin-bottom: 0; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 0.85rem;
  text-decoration: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
button.nav-link { appearance: none; }
.nav-link:hover {
  background: var(--panel-high);
  text-shadow: none;
}
.nav-link:hover .nav-text,
.nav-link:hover .nav-icon {
  color: var(--primary);
}
.nav-link.is-active {
  background: var(--panel-low);
  border-left-color: var(--primary);
}
.nav-link.is-active .nav-text,
.nav-link.is-active .nav-icon {
  color: var(--primary);
  font-weight: 700;
}
.nav-link.is-active .nav-icon {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nav-link-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.nav-icon {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: color var(--ease);
}

.nav-text {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
  line-height: 1.25;
}

.nav-chevron {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--ease), border-color var(--ease);
  opacity: 0.85;
}
.nav-link:hover .nav-chevron,
.nav-link.is-active .nav-chevron {
  border-color: var(--primary);
}
.nav-link[aria-expanded="true"] .nav-chevron,
.nav-decade[aria-expanded="true"] .nav-chevron,
.nav-year[aria-expanded="true"] .nav-chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.nav-submenu {
  display: none;
  padding: 0.15rem 0 0.35rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  background: var(--panel-low);
}
.nav-submenu.is-open { display: block; }

.nav-decade-group { margin: 0; }
.nav-decade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 1.15rem;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  text-shadow: none;
}
.nav-decade:hover {
  background: var(--panel-high);
  color: var(--primary);
}
.nav-decade-label { flex: 1; }
.nav-decade-items {
  display: none;
  padding: 0 0 0.2rem 0;
}
.nav-decade-group.is-open > .nav-decade-items { display: block; }

.nav-year-group { margin: 0; }
.nav-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 1rem 0.45rem 1.35rem;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  text-shadow: none;
}
.nav-year:hover {
  background: var(--panel-high);
  color: var(--primary);
}
.nav-year-label { flex: 1; }
.nav-year-items {
  display: none;
  padding: 0.05rem 0 0.3rem 0;
}
.nav-year-group.is-open > .nav-year-items { display: block; }

.nav-show-link {
  display: block;
  margin: 0;
  padding: 0.4rem 1rem 0.4rem 1.65rem;
  text-decoration: none;
  border-radius: 0;
  border-left: 4px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.nav-show-link:hover {
  background: var(--panel-high);
  color: var(--primary);
  text-shadow: none;
}
.nav-show-link.is-current {
  color: var(--primary);
  background: var(--panel-low);
  border-left-color: var(--primary);
  text-shadow: none;
}

/* —— Main content —— */
.site-main { min-width: 0; }

.panel {
  padding: 1.35rem 1.4rem 1.75rem;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: 0;
}

.panel-title {
  margin: 0 0 1.1rem;
  padding-bottom: 0.75rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
  text-shadow: none;
}

/* —— Aktuality / posts feed —— */
.aktuality {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aktuality-head {
  margin: 0;
}

.aktuality-title {
  margin: 0 0 0.65rem;
  color: var(--highlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}

.aktuality-rule {
  width: 3.25rem;
  height: 2px;
  background: var(--highlight);
}

.post-card__rule {
  width: 3.25rem;
  height: 2px;
  background: var(--primary);
}

.aktuality-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  margin: 0;
  padding: 1.5rem 1.5rem 1.65rem;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--outline-variant);
  transition: border-color var(--ease), background var(--ease);
}
.post-card:hover {
  border-left-color: var(--primary);
  background: var(--grad-card-hover);
}
.post-card:last-child {
  margin-bottom: 0;
  padding-bottom: 1.65rem;
  border-bottom: 1px solid var(--line);
}

.post-card__head {
  margin-bottom: 1rem;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.55rem;
}

.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.post-badge .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
  color: var(--highlight);
}

.post-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.post-date {
  display: inline-block;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.post-card__media {
  position: relative;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e0e0e;
}
.post-card__media::after,
.post-body p.center > a:has(> img)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 48px 14px rgba(0, 0, 0, 0.45);
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
}
.post-card__media:hover .post-cover {
  transform: scale(1.03);
}

.post-cover {
  margin: 0;
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.7s ease;
}

.post-body {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.post-body p { margin: 0.7rem 0; color: inherit; }
.post-body a { color: var(--primary); }
.post-body .center { text-align: center; }
.post-body p.center > a:has(> img) {
  position: relative;
  display: inline-block;
  max-width: min(100%, 720px);
  overflow: hidden;
  border-radius: 10px;
  line-height: 0;
  border: 1px solid var(--line);
  transition: transform 0.35s ease;
}
.post-body p.center > a:has(> img):hover img {
  transform: scale(1.03);
}
.post-body p.center > img,
.post-body p.center > a > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  border-radius: 10px;
  transition: transform 0.7s ease;
}
.post-body p.center > img {
  max-width: min(100%, 720px);
  border: 1px solid var(--line);
}
.post-body .photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.9rem auto;
  max-width: 720px;
}
.post-body .photo-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.muted { color: var(--text-muted); }
.attachments {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.attachments li { margin: 0; }
.attachments a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(28, 27, 27, 0.55);
  border-left: 2px solid var(--outline-variant);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.attachments a::before {
  content: "attach_file";
  font-family: "Material Symbols Outlined";
  font-size: 1.15rem;
  color: var(--highlight);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.attachments a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--panel-low);
  text-decoration: none;
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.section-heading {
  margin: 1.5rem 0 0.65rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}
.show-videos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.35rem 0 0.5rem;
}
.show-video-link {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--primary);
}
.gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color var(--ease), transform var(--ease);
}
.gallery a:hover {
  background: #0e0e0e;
  border-color: var(--primary);
  transform: none;
  text-shadow: none;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.35s ease;
}
.gallery a:hover img { transform: scale(1.03); }

.show-year {
  margin: -0.35rem 0 0.85rem;
  color: var(--text-muted);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
}
.year-heading {
  width: 100%;
  margin: 1.15rem 0 0.4rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}
.show-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}
.show-link {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 0;
  font-family: var(--font-ui);
}

/* —— Contacts —— */
.contacts { display: grid; gap: 1.25rem; }
.contact-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--grad-card);
  transition: border-color var(--ease), background var(--ease);
}
.contact-card:hover {
  border-color: var(--line-strong);
  background: var(--grad-card-hover);
}
.contact-photo {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--line);
}
.contact-body h2 {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
}

.site-footer {
  margin-top: auto;
  padding: 1.75rem 0 0.25rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: none;
  color: var(--text-muted);
  opacity: 0.85;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer strong {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-footer__admin {
  margin-top: 0.55rem !important;
  font-size: 0.72rem;
  opacity: 0.65;
  text-transform: none;
}

/* —— Video —— */
.video-thumb {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 48px 14px rgba(0, 0, 0, 0.45);
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
  z-index: 1;
}
.video-thumb:hover {
  background: transparent;
  text-shadow: none;
  border-color: var(--primary);
}
.video-thumb img {
  width: 100%;
  filter: brightness(0.78);
  transition: filter 0.25s ease, transform 0.35s ease;
}
.video-thumb:hover img {
  filter: brightness(0.6);
  transform: scale(1.02);
}
.video-thumb__badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.25));
}
.video-thumb__play {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: rgba(19, 19, 19, 0.65);
  border: 1.5px solid var(--primary);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.video-thumb__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.62rem 0 0.62rem 1.05rem;
  border-color: transparent transparent transparent var(--primary);
}
.video-thumb__label {
  padding: 0.25rem 0.7rem;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: none;
  background: rgba(19, 19, 19, 0.75);
  border: 1px solid rgba(255, 179, 177, 0.4);
  border-radius: 0;
}
.video-text-link::before {
  content: "▶ ";
  color: var(--primary);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.video-modal[hidden] { display: none !important; }
body.video-modal-open { overflow: hidden; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(3px);
}
.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, 94vw);
  padding: 0;
  background: #0e0e0e;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.video-modal__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: #0e0e0e;
  border-bottom: 1px solid var(--line);
}
.video-modal__close {
  position: static;
  z-index: 2;
  width: auto;
  height: auto;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(229, 226, 225, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
}
.video-modal__close:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.video-modal__player {
  display: block;
  width: 100%;
  max-height: min(78vh, 860px);
  background: #000;
  border-radius: 0;
  /* leave room for iOS native controls; don't cover corners with UI */
  vertical-align: top;
}
@media (min-width: 1100px) {
  .video-modal { padding: 1.5rem; }
  .video-modal__dialog {
    width: min(1400px, 92vw);
  }
  .video-modal__player { max-height: 84vh; }
}
@media (max-width: 860px) {
  .video-modal__player {
    max-height: min(70vh, 560px);
  }
}
.video-modal__fallback {
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--font-ui);
  color: #eee;
}
.video-modal__fallback p { margin-top: 0; }
.btn-glow {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  border: 1px solid transparent;
  color: var(--on-primary) !important;
  text-decoration: none !important;
  background: var(--primary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-glow:hover {
  background: var(--primary-container);
  color: var(--on-primary-container) !important;
  text-shadow: none;
}

@media (max-width: 860px) {
  .site {
    padding: 0 0.75rem 1.75rem;
  }

  /* Sticky compact header: brand + Menu always on top */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 -0.75rem 0.9rem;
    padding: 0.55rem 0.75rem;
    padding-top: max(0.55rem, env(safe-area-inset-top));
    background: rgba(19, 19, 19, 0.88);
    border-bottom: 1px solid rgba(229, 226, 225, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .brand {
    flex: 1;
    min-width: 0;
    align-items: center;
    padding: 0.15rem 0;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .brand:hover {
    border: 0;
  }
  .brand-title {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    text-indent: 0;
    text-shadow: none;
  }
  .brand-title::after {
    display: none;
  }
  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.25rem;
  }

  .site-body {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .site-nav {
    position: fixed;
    top: calc(3.15rem + env(safe-area-inset-top, 0px));
    left: 0.75rem;
    right: 0.75rem;
    z-index: 199;
    display: none;
    max-height: calc(100vh - 3.6rem - env(safe-area-inset-top, 0px));
    overflow: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    border-radius: 0;
  }
  .site-nav.is-open { display: block; }

  body.nav-open { overflow: hidden; }

  .nav-submenu { display: none; }
  .nav-submenu.is-open { display: block; }
  .panel { padding: 1.1rem 1rem 1.4rem; }
  .post-card { padding: 1.15rem 1rem 1.3rem; }
  .contact-card { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .video-thumb__play { width: 3.2rem; height: 3.2rem; }
}
