/* ==========================================================================
   Pure Energy – štýly webu
   Mobile-first, bez externých závislostí. Farby vychádzajú z loga
   (zelená, žltá, modrá).
   ========================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    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;
}

:root {
    --green-950: #062016;
    --green-900: #0b2e1d;
    --green-800: #14532d;
    --green-700: #186a37;
    --green-600: #1f7a3a;
    --green-500: #4c9a2a;
    --green-100: #e6f2e0;
    --green-50: #f3f8f0;
    --yellow-400: #f5d33d;
    --yellow-100: #fdf6d3;
    --blue-500: #4466e0;
    --blue-100: #e5ebfc;

    --text: #13241b;
    --text-muted: #4a5c52;
    --border: #dce5d8;
    --surface: #ffffff;
    --surface-muted: var(--green-50);
    --focus: #1d4ed8;
    --error: #b42318;
    --error-bg: #fef3f2;
    --success-bg: var(--green-100);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-lg: 1.25rem;
    --shadow-sm: 0 1px 2px rgb(16 40 24 / 0.06), 0 1px 3px rgb(16 40 24 / 0.08);
    --shadow: 0 10px 30px -12px rgb(16 40 24 / 0.25);
    --shadow-lg: 0 24px 60px -20px rgb(16 40 24 / 0.35);
    --header-height: 4.5rem;
    --gutter: 1rem;
    --section: clamp(3.5rem, 8vw, 6.5rem);
}

/* --- Základ ----------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-feature-settings: "cv11", "ss01";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    margin: 0 0 1rem;
    text-wrap: pretty;
}

a {
    color: var(--green-700);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--green-800);
}

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

main:focus {
    outline: none;
}

address {
    font-style: normal;
}

.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;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--green-900);
    color: #fff;
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 50rem;
}

@media (min-width: 40rem) {
    :root {
        --gutter: 1.5rem;
    }
}

.icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
}

.icon--sm {
    width: 1.125rem;
    height: 1.125rem;
}

.icon--lg {
    width: 2rem;
    height: 2rem;
}

/* --- Typografia sekcií ------------------------------------------------ */

.section {
    padding-block: var(--section);
}

.section--muted {
    background: var(--surface-muted);
}

.section-title {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
    font-weight: 750;
    color: var(--green-950);
}

.section-title--sm {
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
    margin-top: 2.5rem;
}

.section-title--sm:first-child {
    margin-top: 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.5rem;
}

.section-head .section-title {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--green-600);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--yellow-400), var(--blue-500));
}

.eyebrow--light {
    color: #d9f99d;
}

.lead {
    font-size: 1.1875rem;
    color: var(--text);
    font-weight: 500;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 650;
    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* --- Tlačidlá --------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--green-600);
    border-radius: 999px;
    background: var(--green-600);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.button:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
}

.button:active {
    transform: translateY(1px);
}

.button--ghost {
    background: rgb(255 255 255 / 0.08);
    border-color: rgb(255 255 255 / 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.button--ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--green-900);
}

.button--outline {
    background: transparent;
    color: var(--green-700);
}

.button--outline:hover {
    background: var(--green-600);
    color: #fff;
}

.button--light {
    background: #fff;
    border-color: #fff;
    color: var(--green-900);
}

.button--light:hover {
    background: var(--yellow-400);
    border-color: var(--yellow-400);
    color: var(--green-950);
}

/* --- Hlavička --------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
}

.brand {
    display: block;
    flex: none;
}

.brand img {
    width: auto;
    height: 2.75rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--green-950);
    cursor: pointer;
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.site-nav__list,
.lang-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.site-nav__link:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.site-nav__link[aria-current="page"] {
    color: var(--green-700);
}

.site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.125rem;
    height: 2px;
    border-radius: 2px;
    background: var(--green-500);
}

.lang-switch {
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.lang-switch__item {
    display: block;
    min-width: 2.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.lang-switch__item:hover {
    color: var(--green-700);
}

.lang-switch__item.is-active {
    background: var(--green-600);
    color: #fff;
}

/* Mobilné menu: bez JavaScriptu je navigácia vždy viditeľná pod logom. */
@media (max-width: 63.99rem) {
    .js .nav-toggle {
        display: inline-flex;
    }

    .no-js .site-header__inner {
        flex-wrap: wrap;
        padding-block: 0.75rem;
    }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        padding: 1rem var(--gutter) 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .js .site-nav__list {
        flex-direction: column;
    }

    .js .site-nav__link {
        padding: 0.75rem 0.5rem;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .js .site-nav__link[aria-current="page"]::after {
        left: 0;
        right: auto;
        top: 0.75rem;
        bottom: 0.75rem;
        width: 3px;
        height: auto;
    }

    .js .lang-switch {
        align-self: flex-start;
    }
}

/* --- Úvodný banner ---------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(34rem, 82vh, 48rem);
    padding-block: 5rem 8rem;
    color: #fff;
    overflow: hidden;
    background: var(--green-900);
}

.hero__media,
.hero__media picture {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgb(6 32 22 / 0.92) 0%, rgb(6 32 22 / 0.72) 45%, rgb(6 32 22 / 0.2) 100%),
        linear-gradient(0deg, rgb(6 32 22 / 0.55) 0%, transparent 40%);
}

.hero__content {
    max-width: 75rem;
}

.hero__title {
    max-width: 14ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 1.5rem + 5vw, 4.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.hero__lead {
    max-width: 38rem;
    margin-bottom: 2rem;
    color: rgb(255 255 255 / 0.88);
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Oblasti pôsobenia ------------------------------------------------ */

.focus {
    position: relative;
    z-index: 1;
    margin-top: -4.5rem;
}

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

@media (min-width: 48rem) {
    .focus__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.focus__item {
    --accent: var(--green-500);
    --accent-bg: var(--green-100);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    border-bottom: 4px solid var(--accent);
    box-shadow: var(--shadow);
    color: var(--green-950);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.focus__item .icon {
    box-sizing: content-box;
    padding: 0.75rem;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--green-800);
}

.focus__item--chp {
    --accent: var(--yellow-400);
    --accent-bg: var(--yellow-100);
}

.focus__item--other {
    --accent: var(--blue-500);
    --accent-bg: var(--blue-100);
}

/* --- O nás ------------------------------------------------------------ */

.about__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 64rem) {
    .about__grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 5rem;
    }
}

.about__text > p:not(.lead):not(.eyebrow) {
    color: var(--text-muted);
}

.feature-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 40rem) {
    .feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.35;
}

.feature-list .icon {
    color: var(--green-600);
}

.about__media {
    position: relative;
    margin: 0 0 2rem;
}

.about__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__badge {
    position: absolute;
    left: -0.5rem;
    bottom: -2rem;
    display: grid;
    max-width: 13rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--green-600);
    color: #fff;
    box-shadow: var(--shadow);
    line-height: 1.25;
}

@media (min-width: 64rem) {
    .about__badge {
        left: -2.5rem;
    }
}

.about__badge-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.about__badge-label {
    font-weight: 700;
}

.about__badge-since {
    margin-top: 0.25rem;
    color: rgb(255 255 255 / 0.8);
    font-size: 0.875rem;
}

/* --- Čísla ------------------------------------------------------------ */

.stats {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background:
        radial-gradient(60rem 30rem at 100% 0%, rgb(76 154 42 / 0.35), transparent 60%),
        radial-gradient(40rem 20rem at 0% 100%, rgb(68 102 224 / 0.25), transparent 60%),
        var(--green-900);
    color: #fff;
}

.stats__title {
    margin-bottom: 2rem;
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
    color: #fff;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    margin: 0;
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: var(--radius);
    background: rgb(255 255 255 / 0.05);
}

.stat dt {
    color: rgb(255 255 255 / 0.78);
    font-size: 0.9375rem;
}

.stat dd {
    margin: 0;
    font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat dd small {
    font-size: 0.5em;
    font-weight: 700;
    color: var(--yellow-400);
}

/* --- Mapa projektov (úvodná stránka) --------------------------------- */

.projects-map__head {
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.projects-map__lead {
    margin: 0;
    color: var(--text-muted);
}

.projects-map__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 64rem) {
    .projects-map__grid {
        grid-template-columns: minmax(0, 1fr) 22rem;
        gap: 3rem;
    }
}

.projects-map__figure {
    padding: clamp(0.75rem, 2vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.projects-map__svg {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f2f4f1;
}

.projects-map__figure {
    position: relative;
}

.projects-map__activate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    text-align: center;
}

.projects-map__activate p {
    flex: 1 1 18rem;
    max-width: 30rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: left;
}

@media (max-width: 39.99rem) {
    .projects-map__activate p {
        text-align: center;
    }
}

.projects-map__activate .button {
    min-height: 2.5rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.9375rem;
}

.projects-map__status {
    margin: 0;
    font-weight: 600;
}

.no-js .projects-map__activate {
    display: none;
}

.projects-map__grid > * {
    min-width: 0;
}

.projects-map__leaflet {
    width: 100%;
    height: clamp(20rem, 58vw, 34rem);
    border-radius: var(--radius);
    background: #eef1ec;
    font-family: var(--font);
}

.projects-map__leaflet:focus-visible {
    outline: 3px solid var(--focus);
}

/* .leaflet-container zvyšuje prioritu – leaflet.css sa načítava až po týchto štýloch */
.leaflet-container .pe-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px rgb(76 154 42 / 0.3), var(--shadow-sm);
    transition: background-color 0.2s, transform 0.2s;
}

.leaflet-container .pe-pin--sm {
    border-width: 2px;
    font-size: 0.75rem;
    box-shadow: 0 0 0 3px rgb(76 154 42 / 0.3), var(--shadow-sm);
}

.leaflet-container .pe-pin:hover,
.leaflet-container .pe-pin:focus-visible,
.leaflet-container .pe-pin.is-active {
    background: var(--green-900);
    box-shadow: 0 0 0 8px rgb(245 211 61 / 0.6), var(--shadow-sm);
    z-index: 1000 !important;
}

.leaflet-container .pe-hq {
    border: 3px solid #fff;
    border-radius: 3px;
    background: var(--blue-500);
    box-shadow: var(--shadow-sm);
}

.pe-popup {
    display: grid;
    gap: 0.25rem;
    font-family: var(--font);
}

.pe-popup__title {
    color: var(--green-950);
    font-size: 1rem;
}

.pe-popup__location {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.pe-popup__facts {
    margin: 0.375rem 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
}

.pe-popup__facts li::marker {
    color: var(--green-500);
}

.pe-popup__link {
    font-weight: 650;
}

.leaflet-container a.pe-popup__link {
    color: var(--green-700);
}

.pm-neighbours {
    fill: #f7f8f6;
    stroke: #d7ded4;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.pm-country {
    fill: var(--green-100);
    stroke: var(--green-500);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.pm-city circle {
    fill: #8a9b90;
}

.pm-city text,
.pm-hq text {
    fill: var(--text-muted);
    font-size: 20px;
    font-weight: 500;
    paint-order: stroke;
    stroke: var(--green-100);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.pm-hq rect {
    fill: var(--blue-500);
    stroke: #fff;
    stroke-width: 3;
}

.pm-hq text {
    fill: var(--green-950);
    font-weight: 700;
}

.pm-hq .pm-hq__sub {
    fill: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.pm-marker {
    cursor: pointer;
}

.pm-marker circle {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.2s, fill 0.2s;
}

.pm-marker__halo {
    fill: rgb(76 154 42 / 0.25);
}

.pm-marker__dot {
    fill: var(--green-600);
    stroke: #fff;
    stroke-width: 3;
}

.pm-marker__num {
    fill: #fff;
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
    pointer-events: none;
}

.pm-marker:hover .pm-marker__dot,
.pm-marker:focus-visible .pm-marker__dot,
.pm-marker.is-active .pm-marker__dot {
    fill: var(--green-900);
    transform: scale(1.25);
}

.pm-marker:hover .pm-marker__halo,
.pm-marker.is-active .pm-marker__halo {
    fill: rgb(245 211 61 / 0.55);
    transform: scale(1.3);
}

.pm-marker:focus-visible {
    outline: none;
}

.pm-marker:focus-visible .pm-marker__halo {
    fill: rgb(29 78 216 / 0.35);
}

@media (prefers-reduced-motion: no-preference) {
    .pm-marker__halo {
        animation: pm-pulse 2.6s ease-out infinite;
    }
}

@keyframes pm-pulse {
    0% { transform: scale(0.7); opacity: 1; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}

.projects-map__list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pm-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pm-item:hover,
.pm-item.is-active {
    border-color: var(--green-500);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transform: translateX(4px);
}

.pm-item__num {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    font-weight: 800;
}

.pm-item.is-active .pm-item__num {
    background: var(--green-900);
}

.pm-item__text {
    display: grid;
    flex: 1;
    line-height: 1.35;
}

.pm-item__text strong {
    color: var(--green-950);
}

.pm-item__text span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pm-item__text .pm-item__facts {
    margin-top: 0.125rem;
    color: var(--green-700);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pm-item__arrow {
    color: var(--green-600);
}

/* --- Karty projektov -------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
    gap: 1.5rem;
}

.project-grid--large {
    gap: 2rem;
}

@media (min-width: 48rem) {
    .project-grid--large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .project-grid--three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

.project-card:hover,
.project-card:focus-within {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.project-card__media {
    position: relative;
    overflow: hidden;
    background: var(--green-100);
}

.project-card__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-card__media img {
    transform: scale(1.04);
}

.project-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.92);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.5rem;
}

.project-card__title {
    margin-bottom: 0.375rem;
    font-size: 1.1875rem;
    font-weight: 700;
}

.project-card__title a {
    color: var(--green-950);
    text-decoration: none;
}

/* Celá karta je klikateľná. */
.project-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-card__title a:focus-visible {
    outline: none;
}

.project-card:has(a:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.project-card__meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.project-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.project-card__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: auto 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-card__facts dt {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.project-card__facts dd {
    margin: 0.125rem 0 0;
    color: var(--green-950);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.project-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--green-700);
    font-size: 0.9375rem;
    font-weight: 650;
}

/* --- Výzva na kontakt ------------------------------------------------- */

.cta {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(120deg, var(--green-700), var(--green-500) 60%, #6aa83a);
    color: #fff;
}

.cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.cta__title {
    margin-bottom: 0.25rem;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    font-weight: 800;
}

.cta__text {
    margin: 0;
    color: rgb(255 255 255 / 0.9);
    font-size: 1.125rem;
}

/* --- Hlavička podstránok ---------------------------------------------- */

.page-header {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background:
        radial-gradient(50rem 20rem at 100% 0%, rgb(245 211 61 / 0.18), transparent 60%),
        radial-gradient(40rem 20rem at 0% 100%, rgb(76 154 42 / 0.14), transparent 60%),
        var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.page-header__title {
    margin: 0;
    font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
    font-weight: 800;
    color: var(--green-950);
}

.page-header__lead {
    max-width: 44rem;
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #9aaba0;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--green-700);
}

/* --- Detail projektu -------------------------------------------------- */

.project__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 64rem) {
    .project__grid {
        grid-template-columns: minmax(0, 1fr) 22rem;
        gap: 4rem;
        align-items: start;
    }
}

.project__main > p {
    color: var(--text-muted);
}

.project__figure {
    margin: 0 0 2.5rem;
}

.project__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--green-100);
}

.project__figure figcaption {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}

.metric {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.metric .icon {
    grid-row: span 2;
    box-sizing: content-box;
    padding: 0.625rem;
    border-radius: 50%;
    background: #fff;
    color: var(--green-600);
}

.metric dt {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.3;
}

.metric dd {
    margin: 0;
    color: var(--green-950);
    font-size: 1.375rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
}

.project__aside {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.info-card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-top: 4px solid var(--green-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.info-card__title {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.info-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.info-list > div + div {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.info-list dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.info-list dt .icon {
    color: var(--green-600);
}

.info-list dd {
    display: grid;
    margin: 0.25rem 0 0 1.625rem;
    font-weight: 650;
}

.pager {
    display: grid;
    gap: 1rem;
    margin-top: 3.5rem;
}

@media (min-width: 40rem) {
    .pager {
        grid-template-columns: 1fr 1fr;
    }
}

.pager__link {
    display: grid;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--green-950);
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.pager__link:hover {
    border-color: var(--green-500);
    background: var(--surface-muted);
    color: var(--green-950);
}

.pager__link--next {
    text-align: right;
}

.pager__label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pager__link--next .pager__label {
    justify-content: flex-end;
}

.pager__title {
    font-weight: 700;
}

/* --- Textová stránka (ochrana osobných údajov) ----------------------- */

.prose {
    color: var(--text);
}

.prose h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.prose h3 {
    margin-top: 2.5rem;
    font-size: 1.25rem;
    color: var(--green-900);
}

.prose h4 {
    margin-top: 1.5rem;
    font-size: 1.0625rem;
}

.prose ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose li::marker {
    color: var(--green-500);
}

.prose address {
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--green-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-muted);
}

.prose .notice {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--yellow-100);
    font-size: 0.9375rem;
}

/* --- Kontakt ---------------------------------------------------------- */

.contact__grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 64rem) {
    .contact__grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 4rem;
        align-items: start;
    }
}

.contact-cards {
    display: grid;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.contact-card > .icon {
    box-sizing: content-box;
    padding: 0.625rem;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
}

.contact-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-card address {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-card a:not(.link-arrow) {
    font-weight: 650;
    font-size: 1.0625rem;
    overflow-wrap: anywhere;
}

.contact__form {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

/* --- Mapa ------------------------------------------------------------- */

.map-section {
    padding-bottom: var(--section);
}

.map {
    position: relative;
    overflow: hidden;
    min-height: 22rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--green-50);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
}

@media (min-width: 48rem) {
    .map {
        min-height: 28rem;
    }
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
    background: radial-gradient(closest-side, rgb(243 248 240 / 0.97), rgb(243 248 240 / 0.75));
}

.map__pin {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    box-shadow: var(--shadow);
}

.map__address {
    margin: 0;
    color: var(--green-950);
}

.map__notice {
    max-width: 34rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.no-js [data-map-load] {
    display: none;
}

/* --- Formulár --------------------------------------------------------- */

.form {
    display: grid;
    gap: 1.25rem;
}

.form__note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form__row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 40rem) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: grid;
    gap: 0.375rem;
}

.field label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.field__hint {
    color: var(--text-muted);
    font-weight: 400;
}

.field input:not([type="checkbox"]),
.field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid #b9c7b4;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
    resize: vertical;
    min-height: 9rem;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--green-500);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 4px rgb(31 122 58 / 0.18);
}

.field [aria-invalid="true"] {
    border-color: var(--error) !important;
}

.field [aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgb(180 35 24 / 0.15);
}

.field__error {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
}

.field--checkbox {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 0.75rem;
}

.field--checkbox input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.2rem 0 0;
    accent-color: var(--green-600);
}

.field--checkbox label {
    font-weight: 400;
}

.field--checkbox .field__error {
    grid-column: 2;
}

.field--honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form .button {
    justify-self: start;
}

.alert {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
}

.alert p {
    margin: 0;
}

.alert--success {
    background: var(--success-bg);
    color: var(--green-900);
}

.alert--success .icon {
    color: var(--green-600);
}

.alert--error {
    background: var(--error-bg);
    color: var(--error);
}

/* --- Chybová stránka -------------------------------------------------- */

.error-page {
    text-align: center;
}

.error-page__code {
    margin-bottom: 0.5rem;
    font-size: clamp(4rem, 3rem + 6vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(90deg, var(--green-500), var(--yellow-400), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Pätička ---------------------------------------------------------- */

.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--green-950);
    color: rgb(255 255 255 / 0.78);
    font-size: 0.9375rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--yellow-400);
    text-decoration: underline;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 48rem) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.site-footer__name {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-footer__brand p:last-child {
    max-width: 22rem;
}

.site-footer__title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-list,
.site-footer__links {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-list .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    color: #86c35b;
}

.site-footer__bottom {
    margin-top: 3rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.875rem;
}

.site-footer__bottom p {
    margin: 0;
}

/* --- Obmedzenie animácií ---------------------------------------------- */

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

/* --- Tlač ------------------------------------------------------------- */

@media print {
    .site-header,
    .site-footer,
    .cta,
    .hero__media,
    .hero::before,
    .contact__form,
    .pager {
        display: none !important;
    }

    .hero {
        min-height: 0;
        padding: 0;
        color: #000;
        background: none;
    }
}
