/* =========================================
   🌍 BASE / RESET
   ========================================= */
:root {
  --bg: #0b0d10;
  --text: #e5e5e5;

  --gold: #f0c674;
  --teal: #00B3A4;

  --panel-bg: rgba(20, 20, 20, 0.5);
  --panel-border: rgba(255, 255, 255, 0.08);

  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.45);

  --header-h: 70px;
  --container: 1200px;

  --pad-x: 2rem;
  /* desktop horizontal padding */
  --pad-section: 6rem;
  /* vertical spacing sections */
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* =========================================
   ✍️ TYPOGRAPHY
   ========================================= */
h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 2rem;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0.2rem 0 0.6rem;
}

h2,
h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.4rem;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: left;
  margin: 0 0 1rem;
}

h2.gradient-title {
  display: inline-block;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 45%,
      var(--teal) 55%,
      var(--teal) 100%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2.error404,
h2.maintenance {
  font-size: clamp(2rem, 8.5vw, 2.6rem);
}

h3.gradient-title {
  display: inline-block;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 16%,
      var(--teal) 16%,
      var(--teal) 48%,
      var(--gold) 48%,
      var(--gold) 84%,
      var(--teal) 84%,
      var(--teal) 100%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.position-adress {
  margin-top: 3rem;
  display: block;
  text-align: left;
}

.title-muted {
  color: var(--gold);
  opacity: 0.85;
}

.title-brand {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.06em;
}

a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================
   🧭 HEADER / NAV
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.nav {
  max-width: var(--container);
  margin: auto;
  padding: .8rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--gold);
  letter-spacing: .12em;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 18%,
      var(--teal) 18%,
      var(--teal) 56%,
      var(--gold) 56%,
      var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: .3s;
}

/* =========================================
   🦸 HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Základní gradient pro všechny */
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
}

.hero-inner {
  max-width: 590px;
  padding: 0 var(--pad-x);
  width: 100%;
  margin-right: auto;
  margin-left: 8vw;
}

.hero-subtitle {
  color: rgba(230, 230, 230, .8);
  margin: 0 0 2rem;
}

.hero h1 {
  letter-spacing: .25em;
}

.hero-title {
  font-size: clamp(2rem, 8.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

/* =========================================
   🧱 SECTIONS
   ========================================= */
.section {
  padding: var(--pad-section) var(--pad-x);
  scroll-margin-top: var(--header-h);
}

.section-stone {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
}

.section-eroded {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
}

.section-download {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
}

/* =========================================
   📦 PANELS (shared)
   ========================================= */

.eroded-content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  background: transparent;
}

.eroded-content,
.eroded-content p,
.eroded-content li {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.eroded-rules {
  padding-left: 1.2rem;
}

.eroded-rules li {
  line-height: 1.6;
  word-break: break-word;
}


.contact-content {
  position: relative;
  max-width: var(--container);
  background: transparent;
}


.panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: transparent;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-404-grid .panel,
.about-status-grid .panel,
.mods-status-grid .panel,
.maintenance-grid .panel,
.download-grid .panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  width: 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.icon-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.icon-link {
  display: flex;
  align-items: center;
  /* vertikální střed ikona + text */
  gap: 12px;
}

.icon-link a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.icon-link a:hover {
  text-decoration: underline;
}

.icon img {
  display: block;
}


/* =========================================
   ℹ️ ABOUT GRID
   ========================================= */
.about-status-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: flex-start;
}

.page-404-grid,
.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: flex-start;
}


.about-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.status-text {
  padding: 2.5rem;
  text-align: left;
}

.about-panel img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ✅ FIX: divider inside STAV SERVERU from edge to edge */
.about-box.about-panel .divider {
  margin-left: -20px;
  margin-right: -20px;
}

#server-status {
  text-align: center;
  padding: 0 1rem;
}

/* Status strip */
.about-box.about-panel .status {
  display: block;
  width: 100%;
  padding: 1rem 0;
  box-sizing: border-box;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(to right,
      transparent 0%,
      var(--status-color) 20%,
      var(--status-color) 80%,
      transparent 100%);
}

.status.online {
  --status-color: green;
  color: #fff;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.status.offline {
  --status-color: red;
  color: #fff;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

/* =========================================
   🧩 MODS GRID
   ========================================= */
.mods-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;

  max-width: var(--container);
  margin: 0 auto;

}


.mods-status-grid>h2 {
  grid-column: 1 / -1;
  text-align: left;
  margin: 16px 0 16px;
}

.mods-status-grid .panel {
  padding: 40px 20px;
  text-align: center;
  margin: 0;
  /* important for grids */
  max-width: 100%;
  /* important for grids */
}

.mods-status-grid .panel strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #e6e6e6;
}

.mods-status-grid .panel span {
  font-size: 0.95rem;
  color: #bdbdbd;
}

.mod-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.mod-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  padding: 6px 14px;

  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--gold);
  border: 1px solid rgba(240, 198, 116, 0.35);
  border-radius: 999px;

  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(2px);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.img-overlay {
  position: relative;
  display: inline-block;
}

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

.img-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 10, 10, .0),
      rgba(10, 10, 10, .9));
  pointer-events: none;
}

.mod-link:active {
  transform: translateY(0);
}

.mod-link.modrinth {
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.4);
}

/* =========================================
   🔘 BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  max-width: none;

  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(240, 200, 120, .6);
  background: transparent;
  color: var(--gold);

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}


/* =========================================
   🧾 DIVIDERS
   ========================================= */
.divider {
  height: 10px;
  margin: 0 auto;
  background: url("assets/ui/oddelovac.webp") center / 100% 100% no-repeat,
    linear-gradient(to right,
      transparent,
      rgba(240, 200, 120, .4),
      transparent);
  display: block;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: url("assets/ui/divider_ornament.svg") center / contain no-repeat;*/
}

.divider-footer {
  height: 10px;
  margin: 0 auto;
  background: url("assets/ui/footer.webp") center / 100% 100% no-repeat,
    linear-gradient(to right,
      transparent,
      rgba(240, 200, 120, .4),
      transparent);
  position: relative;
}

/* =========================================
   👣 FOOTER
   ========================================= */
footer {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
  padding: 1rem var(--pad-x);
  text-align: center;
  font-size: .85rem;
  color: rgba(240, 240, 240, .6);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  opacity: .6;
}

/* =========================================
   ✨ REVEAL ANIMATION
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ⬆️ SCROLL TOP BUTTON
   ========================================= */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
}


#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}



.download-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;

  max-width: var(--container);
  margin: 0 auto;
  align-items: stretch;
}

.download-left {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  text-align: center;
}

.download-left .panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  max-width: none;

  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(240, 200, 120, .6);
  background: transparent;
  color: var(--gold);

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.download-left ul li,
.download-left p {
  text-align: left;
}

/* Nadpis */
.download-left>h2 {
  grid-column: 1 / -1;
  grid-row: 1;
}

/* 1️⃣ VELKÝ ZIP PANEL – VLEVO, NAHOŘE */
.download-left>.panel:nth-of-type(1) {
  grid-column: 1;
  grid-row: 2 / span 2;
}

/* 2️⃣ CURSEFORGE – VPRAVO NAHOŘE */
.download-left>.panel:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
}

/* 3️⃣ MODRINTH – VPRAVO DOLE */
.download-left>.panel:nth-of-type(3) {
  grid-column: 2;
  grid-row: 3;
}

.download-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* ⬅️ místo center */
  gap: 1.5rem;
  text-align: center;
}

.download-right ul li {
  text-align: left;
}

h3 {
  text-align: left;
  font-size: 20px;
  color: var(--teal);
}

.download-right h3 {
  font-size: clamp(2rem, 9vw, 2rem);
  text-align: center;

}

.download-right .text-info {
  text-align: center;
}


:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}

a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 198, 116, 0.25);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;

  padding: 10px 14px;
  background: rgba(15, 15, 15, .95);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--gold);
  border-radius: 12px;
  text-decoration: none;

  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 2000;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.hint {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* =========================================
   🚧 404 PAGE – FOOTER ALWAYS BOTTOM
   ========================================= */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1 0 auto;
}

.page-404 footer {
  margin-top: auto;
}

.page-404 .divider-footer {
  margin: unset;
}

@media (min-width: 1400px) {
  :root {
    --pad-x: 2.5rem;
    --pad-section: 6.5rem;
  }

  .hero-inner {
    margin-left: 10vw;
  }
}

/* =========================================
   3️⃣ TABLET & MOBIL (Breakdown pod 900px)
   ========================================= */
@media (max-width: 900px) {

  /* Layout resety */
  .section,
  .page-404-grid,
  .about-status-grid,
  .mods-status-grid,
  .download-grid,
  .eroded-content,
  .contact-content,
  .maintenance-grid,
  .panel,
  .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /*.section {
    scroll-margin-top: 110px;
  } */

  .panel {
    padding: 22px 18px;
  }

  /* Hero & Nav */
  .hero-inner {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    max-width: 560px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.45s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 1.5rem 0;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .eroded-content {
    text-align: left;
  }

  .eroded-content h2 {
    text-align: center;
  }

  .eroded-quote {
    text-align: center;
    font-style: italic;
    opacity: 0.85;
  }

  /* Grid systémy na 1 sloupec */
  .page-404-grid,
  .about-status-grid,
  .mods-status-grid,
  .download-grid,
  .maintenance-grid,
  .download-left {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .download-right {
    order: -1;
  }

  .download-right h3 {
    margin-top: 0;
    font-size: 1.25rem;
    text-align: center;
    line-height: 1.3;
  }

  .download-left h3 {
    font-size: 1.25rem;
    /* rozumná mobilní velikost */
    text-align: left;
    line-height: 1.3;
  }

  .download-left>h2,
  .download-left>.panel {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Tlačítka */
  .btn {
    text-align: center;
    padding: 1rem 0;
  }

  /* KONTAKT – grid na 1 sloupec */
  #contact .about-status-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* textový blok první */
  #contact .contact-content {
    order: 1;
    max-width: 100%;
    margin: 0 auto;
  }

  /* obrázek pod obsahem */
  #contact .about-box.about-panel {
    order: 2;
    align-items: center;
  }

  #contact .about-box img {
    max-width: 280px;
    margin: 0 auto;
  }

  #contact .icon-links {
    align-items: flex-start;
  }

  #contact .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* =========================================
   4️⃣ MALÉ MOBILY (Breakdown pod 768px a 420px)
   ========================================= */
@media (max-width: 768px) {
  :root {
    --pad-section: 4.5rem;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-box.about-panel .divider {
    margin-left: -20px;
    margin-right: -20px;
  }

  .mod-links {
    justify-content: center;
    gap: 10px;
  }

  /* =========================
     KONTAKT – finální mobilní stabilizace
     ========================= */

  #contact .about-status-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  #contact .contact-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  #contact h2.gradient-title {
    text-align: center;
  }

  #contact .icon-links {
    align-items: flex-start;
  }

  #contact .icon-link {
    align-items: center;
  }

  #contact .about-box.about-panel {
    margin: 0 auto;
    align-items: center;
  }

  #contact .about-box img {
    max-width: 240px;
    height: auto;
  }

  #contact .btn {
    width: 100%;
    text-align: center;
  }

  #contact .hint {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-title {
    letter-spacing: 0.18em;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  #scrollTopBtn {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  #contact .icon-link a {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* =========================================
   5️⃣ INTERAKCE (Pouze pro zařízení s myší)
   ========================================= */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(240, 200, 120, 0.3);
  }

  .mods-status-grid .panel:hover,
  .about-status-grid .panel:hover,
  .download-grid .panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
  }

  .mod-link:hover {
    background: rgba(240, 198, 116, 0.12);
    transform: translateY(-1px);
  }
}

/* =========================================
   ♿ REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 0px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_768.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_768.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_768.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_768.webp");
  }

  .hero-title {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_768.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_768.webp");
  }
}

/* Tablet */
@media (min-width: 769px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_1280.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1280.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_1280.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_1280.webp");
  }

  .hero-title {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_1280.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1280.webp");
  }
}

/* Desktop */
@media (min-width: 1281px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_1920.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1920.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_1920.webp");
  }

  .hero-title {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_1920.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1920.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_1920.webp");
  }
}

/* 4K / UltraWide */
@media (min-width: 1921px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_3840.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_3840.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_3840.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_3840.webp");
  }

  .hero-title {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_3840.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_3840.webp");
  }
}

/* =========================================
   🚧 404 PAGE – FULLSCREEN + CENTER
   ========================================= */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main zabere dostupnou výšku */
.page-404 main {
  flex: 1 0 auto;
  display: flex;
}

/* sekce přes celý viewport */
.page-404 .error-section {
  flex: 1;
  display: flex;
  align-items: center;
  /* 👈 vertikální centrování */
  justify-content: center;
  /* 👈 horizontální centrování */
  padding-top: var(--header-h);
  padding-bottom: 3rem;
}

/* grid se chová normálně, ale je centrovaný */
.page-404 .about-status-grid {
  align-items: center;
}

/* footer vždy dole */
.page-404 footer {
  margin-top: auto;
}