:root {
  --bg: #000000;
  --surface: #111111;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --stroke: rgba(255, 255, 255, 0.14);
  --font-tech: "SF Mono", "Roboto Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", monospace;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 300;
  scroll-behavior: smooth;
}

body::before,
body::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  height: auto;
  filter: grayscale(100%) contrast(1.06);
}

.container {
  width: min(1360px, 95%);
  margin: 0 auto;
}

.section {
  padding: 46px 0;
}

#aktualnosci {
  padding-top: 72px;
  padding-bottom: 72px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
  padding: 18px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 250ms ease, backdrop-filter 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-color: var(--stroke);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: auto;
  height: 42px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 75vw;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.dropdown-trigger {
  color: var(--text-primary);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 300;
}

.main-nav a:hover,
.dropdown-trigger:hover {
  color: #ffffff;
  opacity: 0.88;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 34px;
  left: 0;
  border: 1px solid var(--stroke);
  background: #090909;
  min-width: 140px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.full-screen {
  min-height: 100svh;
}

.hero {
  position: relative;
  overflow: hidden;
}

.category-hero {
  min-height: 52svh;
}

.category-hero .hero-content {
  padding: 23svh 0 8svh;
}

.post-hero {
  min-height: 76svh;
}

.post-hero .hero-content {
  padding: 31svh 0 8svh;
}

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 400ms ease;
}

.slow-zoom {
  animation: zoomIn 18s linear infinite alternate;
}

@keyframes zoomIn {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 90%);
  margin: 0 auto;
  padding: 26svh 0 15svh;
}

.kicker {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
}

.display {
  font-size: clamp(2.8rem, 10vw, 7rem);
  margin: 6px 0;
  line-height: 0.95;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
}

.subtitle {
  max-width: 560px;
  color: var(--text-secondary);
  font-weight: 400;
}

.category-intro {
  color: var(--text-secondary);
  max-width: 70ch;
  margin-top: -8px;
  margin-bottom: 26px;
}

.btn {
  border: 1px solid var(--text-primary);
  padding: 12px 18px;
  display: inline-block;
  margin-top: 18px;
  transition: transform 150ms ease, background 150ms ease;
}

.btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

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

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  width: 1px;
  height: 48px;
  background: var(--text-primary);
  display: block;
  opacity: 0.5;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  margin: 0 0 12px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-hero:not(.post-hero) .display {
  font-size: clamp(2rem, 6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-hero .display {
  font-size: clamp(2rem, 6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-hero .subtitle {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.inline-link {
  color: var(--text-secondary);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--stroke);
  background: #070707;
  overflow: hidden;
}

.no-frame-card {
  border: none;
  background: transparent;
  box-shadow: none;
}

.no-frame-grid .card-body {
  padding-left: 0;
  padding-right: 0;
}

.no-frame-grid img {
  border: none !important;
  outline: none;
  box-shadow: none;
}

.card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover img {
  transform: scale(1.06);
}

.card-body {
  padding: 14px;
  text-align: center;
}

.card-body h3 {
  margin: 0 0 8px;
  font-weight: 400;
  text-align: center;
}

.card-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.category-tile {
  border: 1px solid var(--stroke);
  min-height: 160px;
  display: grid;
  place-items: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(120deg, #0b0b0b, #161616);
}

.about-split {
  display: grid;
  gap: 18px;
}

.about-image img {
  min-height: 340px;
  object-fit: cover;
}

.about-content {
  order: 1;
}

.about-image {
  order: 2;
}

.about-content p {
  color: var(--text-secondary);
  max-width: 54ch;
  line-height: 1.7;
}

.about-rows {
  display: grid;
  gap: 34px;
  margin-top: 22px;
}

.about-row {
  display: grid;
  gap: 16px;
  align-items: center;
}

.about-row-image img {
  min-height: 280px;
  object-fit: cover;
}

.about-row-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.9)),
    url("/assets/images/hero-home.jpeg") center 68% / cover no-repeat;
  filter: grayscale(100%) contrast(1.08);
  z-index: 0;
}

.site-footer .footer-content {
  position: relative;
  z-index: 1;
}

.site-footer .logo img {
  height: 56px;
}

.social-icons,
.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.footer-description {
  margin: 20px auto 0;
  max-width: 720px;
  padding: 0 20px;
  text-align: center;
  color: #efefef;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}

.social-links a {
  color: var(--text-secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}

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

.stats-bar {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 22px 0;
  margin: 30px 0;
  width: 100%;
  max-width: none;
  padding-left: 4%;
  padding-right: 4%;
}

.post-hero + .stats-bar {
  margin-top: 0;
  margin-bottom: 24px;
}

.post-hero + .stats-bar + .section {
  padding-top: 56px;
}

.post-hero + .stats-bar + .section .post-content > p:first-child {
  margin-top: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  font-family: var(--font-tech);
  color: var(--text-secondary);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  max-width: 1400px;
  margin: 0 auto;
}

.stats-grid > div {
  text-align: center;
}

.post-layout {
  display: grid;
  gap: 26px;
}

.post-content p {
  line-height: 1.8;
  color: #dfdfdf;
}

.sidebar {
  border-left: 1px solid var(--stroke);
  padding-left: 16px;
}

.route-section {
  display: grid;
  gap: 16px;
  align-items: center;
  margin: 34px 0;
}

.landmarks-list article {
  border-top: 1px solid var(--stroke);
  padding: 16px 0;
}

.map-box {
  border: 1px solid var(--stroke);
  padding: 18px;
  background: #090909;
  max-width: 860px;
  margin: 0 auto;
}

.map-placeholder {
  min-height: 260px;
  border: 1px dashed var(--stroke);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.map-embed {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: 520px;
  border: 1px solid var(--stroke);
  background: #0a0a0a;
  filter: none;
}

.elevation-chart {
  position: relative;
  margin-top: 16px;
  padding: 8px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
}

.elevation-chart svg {
  width: 100%;
  height: 140px;
  display: block;
}

.elev-grid line {
  stroke: rgba(255, 230, 140, 0.2);
  stroke-width: 1;
}

.elev-path {
  fill: rgba(245, 204, 94, 0.2);
  stroke: #f5cc5e;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(245, 204, 94, 0.3));
}

.elev-tooltip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -110%);
  background: rgba(9, 9, 9, 0.95);
  border: 1px solid rgba(245, 204, 94, 0.45);
  color: #fff;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms ease;
}

.elevation-chart:hover .elev-tooltip {
  opacity: 1;
}

.elev-indicator-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(245, 204, 94, 0.8);
  opacity: 0;
  pointer-events: none;
}

.elev-indicator-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f5cc5e;
  border: 2px solid #111;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 0 4px rgba(245, 204, 94, 0.2);
}

.map-stats {
  margin-top: 16px;
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.map-stats div {
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  background: #0c0c0c;
}

.map-stats span {
  display: block;
}

.map-stats .label {
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.map-stats .value {
  margin-top: 4px;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
}

.contact-hero {
  min-height: 46svh;
}

.contact-panel {
  display: grid;
  gap: 26px;
}

.contact-form-wrap,
.contact-map-wrap {
  border: 1px solid var(--stroke);
  background: #070707;
  padding: 20px;
}

.contact-form-row {
  display: grid;
  gap: 10px;
}

.contact-form-wrap textarea {
  margin-top: 8px;
}

.contact-map {
  width: 100%;
  min-height: 360px;
  border: 0;
  filter: none;
}

.contact-info-grid {
  margin-top: 14px;
}

.contact-info-card {
  border: 1px solid var(--stroke);
  padding: 16px;
  text-align: center;
  background: #070707;
}

.contact-info-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-info-card p {
  margin: 4px 0;
  color: var(--text-secondary);
}

.carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel img {
  min-width: 260px;
  scroll-snap-align: start;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.focusable:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

input,
textarea {
  width: 100%;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid var(--stroke);
  padding: 12px;
  margin: 8px 0 14px;
}

.main-nav a {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  position: relative;
}

.main-nav a::after,
.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.inline-link:hover::after {
  transform: scaleX(1);
}

.inline-link {
  position: relative;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.social-proof {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 14px 0;
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.social-proof-item .label {
  color: var(--text-secondary);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-proof-item .value {
  margin-top: 4px;
  font-size: 1rem;
  color: #fff;
}

.post-quote {
  margin: 60px 0;
  padding: 24px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  text-align: center;
}

.post-quote p {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.4;
  max-width: 22ch;
  margin-inline: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.06);
}

.lightbox-ui {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lightbox-counter {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.lightbox-close {
  border: 1px solid var(--stroke);
  background: #101010;
  color: #fff;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

@media (min-width: 780px) {
  .main-nav {
    max-width: none;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .about-split {
    grid-template-columns: 1.1fr 1fr;
  }

  .about-image img {
    min-height: 390px;
  }

  .about-row {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .about-row:nth-of-type(even) .about-row-image {
    order: 2;
  }

  .about-row:nth-of-type(even) .about-row-text {
    order: 1;
  }

  .post-layout {
    grid-template-columns: 2fr 1fr;
  }

  .route-section {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .route-section:nth-child(even) .route-image {
    order: 2;
  }

  .social-proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100%, 92%);
  }

  .section {
    padding: 34px 0;
  }

  .display {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .hero-content {
    padding: 18svh 0 10svh;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 250ms ease, opacity 250ms ease;
    max-width: none;
    overflow: hidden;
  }

  .site-header.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .map-stats {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
