/* Inovuy – vizuálny systém
   Pistáciová zelená (logo, mapy), machová tmavá (text), vrstevnice ako
   motív terénu, turistická značka a smerovník ako znaky trasy. */

/* ---------- Písma (uložené na vlastnom serveri) ---------- */
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/funnel-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/funnel-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/funnel-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/funnel-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/funnel-sans-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Funnel Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/funnel-sans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  color-scheme: light;

  --pistachio: #a6dcb9;
  --pistachio-light: #c3e8cf;
  --mint-50: #f1f9f3;
  --mint-100: #e1f2e7;
  --line: #cfe5d6;
  --ink: #10362a;
  --ink-hover: #1f5242;
  --ink-2: #2d5245;
  --field-border: #8fae9f;
  --trail: #2e8b57;
  --sun: #f2c94c;
  --paper: #ffffff;
  --error: #a4231b;
  --error-bg: #fce8e6;

  --font-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.75rem, 1.7rem + 4.6vw, 5.75rem);
  --step-hero: clamp(3rem, 1.6rem + 5.6vw, 7rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --space-head: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --col-gap: clamp(2rem, 1rem + 4vw, 6rem);
  --radius-lg: 28px;
  --radius-md: 20px;
  --header-h: 76px;
}

/* ---------- Základ ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

dl,
dd {
  margin: 0;
}

::selection {
  background: var(--pistachio);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tlačidlá a odkazy ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ink-hover);
}

.btn--secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: rgba(16, 54, 42, 0.07);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #fff;
}

.btn--light {
  background: var(--pistachio);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--pistachio-light);
}

.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.link-more {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pistachio);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.site-logo {
  display: block;
  flex: none;
  border-radius: 12px;
}

/* Nápis v logu zarovnaný s textom stránky, dlaždica presahuje do okraja. */
.site-header .site-logo {
  margin-left: -11px;
}

.logo-tile {
  width: auto;
  height: 44px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav__list a:not(.btn) {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__list a:not(.btn):hover {
  background: rgba(16, 54, 42, 0.08);
}

.site-nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-nav__cta {
  margin-left: 0.75rem;
}

.site-nav__toggle {
  display: none;
}

@media (max-width: 960px) {
  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 600 1rem/1 var(--font-text);
    cursor: pointer;
  }

  .site-nav__toggle-icon,
  .site-nav__toggle-icon::before {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .site-nav__toggle-icon {
    position: relative;
    transform: translateY(-3px);
  }

  .site-nav__toggle-icon::before {
    content: "";
    position: absolute;
    top: 6px;
  }

  .site-nav.is-open .site-nav__toggle-icon {
    transform: translateY(0) rotate(45deg);
  }

  .site-nav.is-open .site-nav__toggle-icon::before {
    top: 0;
    transform: rotate(-90deg);
  }

  .site-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(16, 54, 42, 0.35);
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
  }

  .site-nav__list a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.375rem;
  }

  .site-nav__list a:not(.btn):hover {
    background: none;
    text-decoration: underline;
  }

  .site-nav__cta {
    margin: 1.25rem 0 0;
  }

  .site-nav__cta .btn {
    width: 100%;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .site-nav__list a:not(.btn) {
    padding-inline: 0.6rem;
  }
}

/* ---------- Úvodná mapa (hero) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pistachio);
}

.hero__map {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__inner {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6.5rem) clamp(4rem, 2rem + 9vw, 10.5rem);
}

.hero__title {
  max-width: 11.5ch;
  font-size: var(--step-hero);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero .actions {
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.hero__route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 13;
  vector-effect: non-scaling-stroke;
}

.hero__reveal {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: route-draw 2.4s cubic-bezier(0.45, 0.05, 0.3, 1) 0.4s forwards;
}

.hero__mark {
  opacity: 0;
  animation: appear 0.35s ease-out forwards;
  animation-delay: var(--delay, 1s);
}

.hero__summit {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 0 100%;
  animation: summit 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) 2.65s forwards;
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@keyframes summit {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__reveal {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hero__mark,
  .hero__summit {
    animation: none;
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__inner {
    order: 1;
    padding-bottom: 0;
  }

  .hero__map {
    position: relative;
    order: 2;
    z-index: 0;
    /* širší výrez posunutý doľava, aby trasa a vrchol boli v strede obrazovky */
    width: 140%;
    max-width: none;
    height: 340px;
    margin-top: 1rem;
    margin-left: -40%;
  }
}

/* ---------- Sekcie ---------- */
.section {
  padding-block: var(--space-section);
}

.section--tint {
  background: var(--mint-50);
}

.section--ink {
  background: var(--ink);
  color: var(--mint-100);
}

.section--ink :focus-visible {
  outline-color: var(--sun);
}

/* Dve biele sekcie za sebou nemajú dvojitú medzeru. */
.section:not(.section--tint):not(.section--ink) + .section:not(.section--tint):not(.section--ink),
.section--flush {
  padding-top: 0;
}

.section--tight-bottom {
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.section--tight-top {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: var(--space-head);
}

.section-title {
  margin-bottom: var(--space-head);
  font-size: var(--step-4);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-head .section-title {
  grid-column: 1;
  margin-bottom: 0;
}

.section-intro {
  grid-column: 1;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

.section-head .link-more {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-bottom: 0.5rem;
}

.section--ink .section-title {
  color: #fff;
}

@media (max-width: 640px) {
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head .link-more {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

/* ---------- Služby vo veľkom písme ---------- */
.service-rows {
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem var(--col-gap);
  padding-block: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.service-row__name {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.service-row__name a {
  text-decoration: none;
}

.service-row__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.service-row__body {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding-top: 0.35rem;
}

.service-row__body > p {
  max-width: 52ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

.dash-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
  width: 100%;
  list-style: none;
  color: var(--ink-2);
}

.dash-list li {
  position: relative;
  padding-left: 1.1em;
}

.dash-list li::before {
  content: "–";
  position: absolute;
  left: 0;
}

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row__body {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .dash-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vybraný projekt (tmavý pás) ---------- */
.feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem var(--col-gap);
}

.feature__map {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: #174637;
}

.feature__map img,
.project-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__meta {
  margin-bottom: 1rem;
  color: var(--pistachio);
  font-size: var(--step--1);
}

.feature__title {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: var(--step-3);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.feature__body > p:not(.feature__meta) {
  max-width: 56ch;
}

.feature__body > p + p:not(.feature__meta) {
  margin-top: 1em;
}

.feature .metrics {
  --metric-min: 8.5rem;
  margin-block: 2.25rem;
}

.feature .metrics dd {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}

@media (max-width: 860px) {
  .feature__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Čísla ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--metric-min, 13rem), 1fr));
  gap: 1.75rem 2rem;
}

.metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--ink);
}

.metrics dd {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.metrics dt {
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.4;
}

.metrics--dark > div {
  border-top-color: rgba(166, 220, 185, 0.4);
}

.metrics--dark dd {
  color: var(--pistachio);
}

.metrics--dark dt {
  color: var(--mint-100);
}

/* ---------- Výrok a zásady ---------- */
.statement {
  max-width: 30ch;
  margin-bottom: var(--space-section);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 350;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.principles,
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem var(--col-gap);
}

.options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2.5rem clamp(1.5rem, 1rem + 2vw, 3rem);
}

.principle,
.option {
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
}

.principle h3,
.option h3 {
  margin-bottom: 0.6rem;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.principle p,
.option p {
  max-width: 46ch;
  color: var(--ink-2);
}

@media (max-width: 700px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ---------- Smerovník (postup spolupráce) ---------- */
.signpost {
  position: relative;
  max-width: 60rem;
  padding-block: 2.5rem 5rem;
}

/* stĺp smerovníka */
.signpost::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1.5rem, 3vw, 2.5rem);
  width: 14px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg, #7f988c, #b9cac1 45%, #86a093);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.signpost__plates {
  position: relative;
  display: grid;
  gap: 12px;
  list-style: none;
  filter: drop-shadow(0 1px 0 rgba(16, 54, 42, 0.22)) drop-shadow(0 10px 18px rgba(16, 54, 42, 0.08));
}

.signpost__plate {
  --tip: 2.75rem;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding: 1.35rem calc(var(--tip) + 2.75rem) 1.35rem 1.5rem;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
}

.signpost__step {
  width: 2ch;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.signpost__text h3 {
  margin-bottom: 0.3rem;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.signpost__text p {
  max-width: 54ch;
  color: var(--ink-2);
}

.signpost__time {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}

.signpost__mark {
  position: absolute;
  top: 50%;
  right: calc(var(--tip) - 0.9rem);
  translate: 0 -50%;
}

@media (max-width: 640px) {
  .signpost__plate {
    --tip: 1.75rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.1rem calc(var(--tip) + 1rem) 1.1rem 1rem;
    gap: 0.35rem 0.9rem;
  }

  .signpost__step {
    align-self: start;
  }

  .signpost__time {
    grid-column: 2;
    text-align: left;
  }

  .signpost__mark {
    display: none;
  }
}

/* Turistická značka: biela – zelená – biela */
.trail-mark {
  display: inline-block;
  flex: none;
  width: 30px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(#fff 0 33.3%, var(--trail) 33.3% 66.6%, #fff 66.6%);
  box-shadow: 0 0 0 1px rgba(16, 54, 42, 0.25);
}

/* ---------- Karty projektov ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 3.5rem clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__map {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--pistachio);
}

.project-card__category {
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 500;
}

.project-card__title {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.project-card__title a {
  text-decoration: none;
}

.project-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}

.project-card:hover .project-card__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.project-card__title a:focus-visible {
  outline: none;
}

.project-card__title a:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}

.project-card__summary {
  color: var(--ink-2);
}

.project-card__metric {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.project-card__metric strong {
  margin-right: 0.3em;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
}

.section--tint .project-card__metric {
  border-top-color: var(--line);
}

/* ---------- Články v zozname ---------- */
.post-rows {
  list-style: none;
  border-top: 1.5px solid var(--ink);
}

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 0.5rem var(--col-gap);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.post-row__meta {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 0.3rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.post-row__title {
  grid-column: 2;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.post-row__title a {
  text-decoration: none;
}

.post-row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-row:hover .post-row__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.post-row__title a:focus-visible {
  outline: none;
}

.post-row__title a:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}

.post-row__excerpt {
  grid-column: 2;
  max-width: 64ch;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .post-row {
    grid-template-columns: 1fr;
  }

  .post-row__meta,
  .post-row__title,
  .post-row__excerpt {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---------- Pistáciové pásy s mapou ---------- */
.page-header,
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pistachio);
}

.page-header__map,
.cta-band__map {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: min(100%, 1150px);
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
}

.page-header__inner {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

.page-header__title {
  max-width: 16ch;
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-header__lead {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.page-header .actions {
  margin-top: 2rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  list-style: none;
  font-size: var(--step--1);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--ink-2);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 2fr);
  gap: 1.25rem 2rem;
  max-width: 64rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
}

.facts dt {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.facts dd {
  margin-top: 0.2rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cta-band__inner {
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
}

.cta-band__title {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cta-band__text {
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

/* ---------- Rozloženia obsahu ---------- */
.split,
.prose-grid,
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem var(--col-gap);
}

.split__head .section-title,
.prose-grid .section-title,
.faq__title {
  margin-bottom: 1rem;
}

.split__body {
  font-size: var(--step-1);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .split,
  .prose-grid,
  .faq {
    grid-template-columns: 1fr;
  }
}

.bullet-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 1.75rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trail);
}

.steps {
  display: grid;
  gap: 1.75rem;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  top: -0.15rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--pistachio);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

.steps__item h3 {
  margin-bottom: 0.35rem;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.steps__item p {
  color: var(--ink-2);
  font-size: var(--step-0);
}

.steps--compact {
  gap: 1rem;
}

.steps--compact .steps__item {
  padding-left: 2.75rem;
}

.steps--compact .steps__item::before {
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1rem;
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem var(--col-gap);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--mint-100);
}

.note__title {
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
}

.note p {
  font-size: var(--step-1);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .note {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.stack__group {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.stack__group dt {
  font-weight: 600;
}

@media (max-width: 520px) {
  .stack__group {
    grid-template-columns: 1fr;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.4;
}

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem var(--col-gap);
}

.fit .section-title {
  margin-bottom: 1rem;
  font-size: var(--step-3);
}

.fit p {
  max-width: 48ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .fit {
    grid-template-columns: 1fr;
  }
}

.related-post {
  margin-top: 3rem;
  font-size: var(--step-1);
}

.related-post a {
  font-weight: 600;
}

/* ---------- Časté otázky ---------- */
.faq__list {
  border-top: 1.5px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--pistachio);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.faq__item p {
  max-width: 62ch;
  padding-bottom: 1.5rem;
  color: var(--ink-2);
}

/* ---------- Prípadová štúdia: príbeh ako trasa ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  align-items: start;
  gap: 3rem var(--col-gap);
}

.route-story {
  --stop-gap: clamp(2.75rem, 2rem + 2vw, 4rem);
  --indent: 4rem;
  display: grid;
  gap: var(--stop-gap);
  padding-left: var(--indent);
}

.route-story__stop {
  position: relative;
}

/* bodkovaná cesta medzi zastávkami */
.route-story__stop:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  bottom: calc(-1 * var(--stop-gap) + 0.2rem);
  left: calc(-1 * var(--indent) + 12px);
  width: 6px;
  background: radial-gradient(circle, var(--ink) 2.4px, transparent 2.9px) center top / 6px 13px repeat-y;
}

.route-story__mark {
  position: absolute;
  top: 0.45rem;
  left: calc(-1 * var(--indent));
}

.route-story__flag {
  position: absolute;
  top: -0.7rem;
  left: calc(-1 * var(--indent) + 7px);
  width: 40px;
  height: 48px;
}

.route-story__stop h2 {
  margin-bottom: 0.75rem;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.15;
}

.route-story__stop > p,
.route-story__stop .bullet-list {
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.55;
}

.case__aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--mint-50);
}

.case__aside-title {
  margin-bottom: 1rem;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 600;
}

@media (max-width: 960px) {
  .case {
    grid-template-columns: 1fr;
  }

  .case__aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .route-story {
    --indent: 3rem;
  }

  .route-story .trail-mark {
    width: 24px;
    height: 16px;
  }

  .route-story__stop:not(:last-child)::before {
    left: calc(-1 * var(--indent) + 9px);
  }

  .route-story__flag {
    left: calc(-1 * var(--indent) + 4px);
  }
}

/* ---------- Text článkov ---------- */
.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: 1.1em;
}

.prose--article {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
}

.prose--article h2 {
  margin: 2.2em 0 0.6em;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.15;
}

.prose--article ul,
.prose--article ol {
  margin-block: 1em;
  padding-left: 1.25em;
}

.prose--article li + li {
  margin-top: 0.4em;
}

.prose--article li::marker {
  color: var(--trail);
}

.prose--article strong {
  font-weight: 600;
}

.prose--article a {
  text-decoration-thickness: 1.5px;
}

.prose__lead {
  margin-bottom: 1.5em;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
}

.prose__big {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 350;
  line-height: 1.25;
}

.post-header {
  background: var(--pistachio);
}

.post-header__inner {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.post-header__title {
  max-width: 20ch;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.post-header__meta {
  margin-top: 1.25rem;
  color: var(--ink-2);
}

.post-cta {
  max-width: 68ch;
  margin-top: 4rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--mint-50);
  box-shadow: inset 0 0 0 1px var(--line);
}

.post-cta__title {
  font-size: var(--step-3);
  line-height: 1.1;
}

.post-cta p {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-2);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: start;
  gap: 3.5rem var(--col-gap);
}

@media (max-width: 960px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.form__title {
  margin-bottom: 1.5rem;
  font-size: var(--step-3);
  line-height: 1.1;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (max-width: 600px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
}

.field__optional {
  color: var(--ink-2);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--field-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-2);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--pistachio);
  outline-offset: 1px;
}

.field select {
  padding-right: 2.75rem;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 1.35rem) 55% / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) calc(100% - 1rem) 55% / 6px 6px no-repeat,
    #fff;
}

.field textarea {
  min-height: 11rem;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__hint {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.field__error {
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}

.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem 0.85rem;
}

.field--check input {
  width: 1.4rem;
  height: 1.4rem;
  min-height: 0;
  margin: 0.1rem 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.field--check label {
  font-size: var(--step-0);
  font-weight: 400;
}

.field--check .field__error {
  grid-column: 2;
}

.form__submit {
  margin-top: 1.75rem;
}

.form__status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 500;
}

.form__status[data-state="success"] {
  background: var(--pistachio);
}

.form__status[data-state="error"] {
  background: var(--error-bg);
  color: var(--error);
}

.contact__aside {
  display: grid;
  gap: 2.5rem;
}

.contact__block {
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
}

.contact__block > p + p {
  margin-top: 0.6rem;
}

.contact__title {
  margin-bottom: 0.9rem;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}

.contact__big {
  font-family: var(--font-display);
  font-size: var(--step-2);
  overflow-wrap: anywhere;
}

.contact__company p {
  color: var(--ink-2);
}

/* ---------- Päta ---------- */
.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem;
  background: var(--ink);
  color: var(--mint-100);
}

.site-footer :focus-visible {
  outline-color: var(--sun);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
  gap: 2.5rem;
}

.site-footer__brand p {
  max-width: 32ch;
  margin-top: 1.25rem;
}

.site-logo--footer {
  width: fit-content;
}

.site-logo--footer .logo-tile {
  height: 52px;
}

.site-footer__title {
  margin-bottom: 1rem;
  color: var(--pistachio);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
}

.site-footer ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__col a {
  overflow-wrap: anywhere;
}

.site-footer__note {
  margin-top: 1rem;
  color: rgba(225, 242, 231, 0.78);
  font-size: var(--step--1);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(166, 220, 185, 0.25);
  color: rgba(225, 242, 231, 0.78);
  font-size: 0.875rem;
}

.site-footer__legal a {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Tlač ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .hero__map,
  .page-header__map {
    display: none;
  }

  .hero,
  .page-header,
  .post-header {
    background: none;
  }
}
