/* Na Vlnovce 7 — moderní responzivní layout */
:root {
  --bg-deep: #0b0d0c;
  --panel: rgba(14, 17, 15, 0.88);
  --panel-solid: #121612;
  --panel-edge: rgba(255, 255, 255, 0.08);
  --text: #e8ebe6;
  --muted: #9aa39a;
  --accent: #1fd65a;
  --accent-dim: #12a844;
  --accent-soft: rgba(31, 214, 90, 0.14);
  --danger: #ff6b6b;
  --warn: #f5c542;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 920px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(8, 10, 9, 0.55) 0%, rgba(8, 10, 9, 0.72) 45%, rgba(8, 10, 9, 0.88) 100%),
    url("/assets/images/background_2.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #6dff97;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(10, 12, 11, 0.92);
  border-bottom: 1px solid var(--panel-edge);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(10, 12, 11, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.header-inner {
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--accent);
  color: #06140a;
  box-shadow: 0 0 0 1px rgba(31, 214, 90, 0.35), 0 8px 20px rgba(31, 214, 90, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.site-nav a.is-active {
  color: var(--accent);
}


.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Layout —— */
.site-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.site-header,
.site-footer,
.admin-strip {
  flex-shrink: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel-pad {
  padding: 1.5rem 1.35rem 1.75rem;
}

@media (min-width: 640px) {
  .panel-pad {
    padding: 2rem 2.1rem 2.25rem;
  }
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--accent);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

/* —— Hero (úvod) —— */
.hero.panel {
  display: block;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 0;
  min-height: clamp(300px, 40vw, 420px);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: none;
  background: #0a0c0b;
  animation: rise 0.7s ease both;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 88% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 9, 0.82) 0%,
    rgba(8, 10, 9, 0.45) 42%,
    rgba(8, 10, 9, 0.12) 68%,
    transparent 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 34rem);
  min-height: clamp(300px, 40vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 1.75rem 1.35rem 1.6rem;
  background: none;
  animation: rise 0.85s 0.08s ease both;
}

@media (min-width: 640px) {
  .hero-copy {
    padding: 2.2rem 2rem 2rem;
  }
}

.hero-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 5.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0;
  color: rgba(232, 235, 230, 0.88);
  max-width: 36ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.hero .btn-ghost {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.hero .btn-ghost:hover {
  background: rgba(31, 214, 90, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #06140a;
}

.btn-primary:hover {
  background: #45e678;
  color: #06140a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--panel-edge);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--danger);
}

/* —— Meta cards —— */
.meta-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-edge);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.meta-card strong {
  font-weight: 560;
  color: var(--accent);
}

/* —— Posts —— */
.post-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-edge);
  animation: rise 0.55s ease both;
}

.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }

.post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.55rem;
}

.post-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--warn);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.12);
}

.post-card h2,
.post-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.post-body {
  color: #c8cfc8;
  font-size: 0.98rem;
}

.post-body p {
  margin: 0 0 0.7rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body strong {
  color: var(--accent);
  font-weight: 600;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.empty-state {
  color: var(--muted);
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--panel-edge);
  border-radius: 12px;
}

/* —— Documents —— */
.doc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.doc-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 560;
  font-size: 0.9rem;
}

.doc-cat em {
  font-style: normal;
  min-width: 1.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.doc-cat:hover {
  color: var(--text);
  border-color: rgba(31, 214, 90, 0.35);
}

.doc-cat.is-active {
  color: #06140a;
  background: var(--accent);
  border-color: var(--accent);
}

.doc-cat.is-active em {
  background: rgba(6, 20, 10, 0.18);
  color: #06140a;
}

.doc-panel-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.doc-group {
  margin-bottom: 1.5rem;
}

.doc-group h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

/* doc odkazy styluje .doc-link */

.doc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.doc-list small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

/* —— Gallery —— */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  justify-content: center;
}

.gallery-card {
  display: block;
  width: 200px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  background: #0a0c0a;
  color: var(--text);
  transition: border-color 0.25s ease;
}

.gallery-card:hover {
  border-color: var(--accent);
  color: var(--text);
}

.gallery-card .gallery-thumb {
  display: block;
  width: 200px;
  max-width: 100%;
  overflow: hidden;
  background: #0a0c0a;
  line-height: 0;
}

.gallery-card img {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
  image-rendering: auto;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card figcaption {
  padding: 0.75rem 0.85rem 0.9rem;
  font-weight: 560;
  font-size: 0.95rem;
}

.gallery-card figcaption small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.photo-grid a {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  aspect-ratio: 1;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-grid a:hover img {
  transform: scale(1.05);
}

.photo-grid a {
  cursor: zoom-in;
}

.photo-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}

.photo-more-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Lightbox —— */
body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 6, 5, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-stage {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}

.lightbox-cap {
  margin-top: 0.65rem;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.6rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 1.8rem;
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

@media (max-width: 700px) {
  .lightbox {
    padding: 3.5rem 0.75rem 4.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }

  .lightbox-stage img {
    max-height: calc(100vh - 8.5rem);
  }
}

/* —— Contacts —— */
.contact-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  padding: 1.15rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-edge);
}

.contact-card .role {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}

.contact-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.contact-card p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-wrap {
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

.admin-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-note a {
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--panel-edge);
  background: rgba(8, 10, 9, 0.75);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-meta {
    align-items: flex-end;
    text-align: right;
  }
}

/* —— Admin —— */
.admin-body {
  background: var(--bg-deep);
  min-height: 100vh;
}

.admin-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
}

.admin-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-bar a {
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-bar a:hover,
.admin-bar a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.admin-panel {
  background: var(--panel-solid);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.login-box {
  max-width: 380px;
  margin: 12vh auto;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa39a' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

select option {
  background: #151a16;
  color: var(--text);
}

input[type="email"] {
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.flash-ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.flash-err {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--panel-edge);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

/* —— Inline admin —— */
.admin-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: #06140a;
  font-size: 0.88rem;
  font-weight: 560;
}

.admin-strip-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-strip a {
  color: #06140a;
  text-decoration: underline;
  font-weight: 650;
}

.inline-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--panel-edge);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.post-card.is-pinned {
  border-color: rgba(31, 214, 90, 0.45);
  background: rgba(31, 214, 90, 0.06);
}

.post-pin {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #06140a;
  background: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  cursor: pointer;
}

.check-row input {
  width: auto;
}

.doc-row {
  display: grid;
  gap: 0.45rem;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-edge);
  color: var(--text);
}

.doc-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-admin {
  margin-top: 0;
  padding: 0 0.25rem 0.35rem 3.2rem;
  border: 0;
}

.contact-form-wrap {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--panel-edge);
}

.contact-form-wrap h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Mobile / tablet —— */
@media (max-width: 900px) {
  /* backdrop-filter na headeru uvězní fixed menu — na mobilu vypnout */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 12, 11, 0.97);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 320;
  }

  body.is-admin .site-nav {
    top: calc(var(--header-h) + 40px);
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 310;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    background: rgba(8, 10, 9, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.28s ease;
    gap: 0.25rem;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  .site-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .site-nav a {
    font-size: 1.15rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }

  .site-nav a.nav-login {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .map-wrap {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .doc-admin {
    padding-left: 0.25rem;
  }

  .admin-strip {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 0 0.85rem;
  }

  .site-main {
    padding: 1rem 0.85rem 2.5rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-actions .btn,
  .section-head .btn {
    width: 100%;
  }
}

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