/* ODS Prachatice – veřejný web
   Barvy, typografie a layout podle vizuálního návrhu kampaně.
   Obsah stojí na typografii, linkách a fotkách – bez karet a podbarvených rámečků.
   Zkosený modrý prvek (štítky, čísla kandidátů, popisky fotek) je podpis kampaně. */

:root {
    --navy: #0B2D57;
    --navy-deep: #081F3D;
    --blue: #0074B8;
    --blue-alt: #005B9F;
    --blue-light: #6BBBEA;
    --blue-bg: #EAF5FB;
    --white: #FFFFFF;
    --text: #10233F;
    --text-muted: #4C5C74;
    --line: rgba(11, 45, 87, 0.12);
    --line-strong: rgba(11, 45, 87, 0.28);
    --radius-sm: 4px;
    --radius-md: 6px;
    --container-max: 1180px;
    --header-height: 72px;
    --space-section: 104px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

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

ul {
    margin: 0;
    padding: 0;
}

.sr-only {
    position: absolute;
    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: 8px;
    left: 8px;
    z-index: 300;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

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

.site-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typografie a hlavičky sekcí ───────────────────────────────────────── */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--blue-alt);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 28px;
    height: 8px;
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    transform: skewX(-24deg);
}

.eyebrow--hero,
.section-head--light .eyebrow {
    color: var(--blue-light);
}

.eyebrow--hero::before,
.section-head--light .eyebrow::before {
    background: var(--blue-light);
}

.section-head {
    max-width: 780px;
    margin: 0 0 56px;
}

.section-head__title {
    margin: 0;
    color: var(--navy);
    font-size: 40px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

.section-head--light .section-head__title {
    color: var(--white);
}

.statement {
    max-width: 980px;
    margin: 0;
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: pretty;
}

.statement + .statement {
    margin-top: 20px;
}

.lead-text {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
}

.prose__p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.75;
}

.prose__p strong {
    color: var(--navy);
    font-weight: 700;
}

.prose__p--intro {
    margin-bottom: 12px;
    color: var(--navy);
    font-weight: 700;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid currentColor;
    color: var(--blue-alt);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color .15s ease;
}

.text-link i {
    font-size: 12px;
    transition: transform .15s ease;
}

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

.text-link:hover .fa-arrow-right {
    transform: translateX(3px);
}

.text-link:hover .fa-arrow-down {
    transform: translateY(2px);
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    margin: 30px 0 0;
}

/* ─── Tlačítka ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--white {
    background: var(--white);
    color: var(--navy);
}

.btn--white:hover {
    background: #E8F1FA;
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn--primary {
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    color: var(--white);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--navy), var(--blue-alt));
}

/* ─── Horní navigace ────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid rgba(11, 45, 87, 0.08);
}

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

.site-logo img {
    height: 44px;
    width: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.site-nav__list > li {
    position: relative;
}

.site-nav__link {
    display: block;
    padding: 24px 0 21px;
    border-bottom: 3px solid transparent;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-nav__link:hover {
    color: var(--blue);
}

.site-nav__link.is-active {
    border-bottom-color: var(--blue);
}

.site-nav__parent-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav__sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    font-size: 10px;
    cursor: pointer;
    transition: transform .15s ease, color .15s ease;
}

.site-nav__sub-toggle:hover {
    color: var(--blue);
}

.site-nav__item--parent.is-open .site-nav__sub-toggle {
    transform: rotate(180deg);
}

.site-nav__sub {
    position: absolute;
    top: 100%;
    left: -22px;
    min-width: 310px;
    padding: 10px 0;
    list-style: none;
    background: var(--white);
    border-top: 3px solid var(--blue);
    box-shadow: 0 18px 40px rgba(8, 31, 61, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.site-nav__item--parent:hover .site-nav__sub,
.site-nav__item--parent:focus-within .site-nav__sub,
.site-nav__item--parent.is-open .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav__sub-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 22px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.site-nav__sub-link:hover,
.site-nav__sub-link.is-active {
    color: var(--blue-alt);
}

.site-nav__sub-number {
    min-width: 20px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--navy);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

/* ─── Hero úvodní stránky ───────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 620px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 45, 87, 0.95) 0%, rgba(11, 45, 87, 0.82) 48%, rgba(11, 45, 87, 0.3) 100%);
}

.hero__inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 620px;
    padding-top: 40px;
}

.hero__person {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    align-self: flex-end;
}

.hero__person-photo-wrap {
    width: 500px;
    height: 600px;
    overflow: hidden;
}

.hero__person-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3));
}

.hero__person-nameplate {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    margin: 0;
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    padding: 12px 34px;
    white-space: nowrap;
    text-align: center;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    box-shadow: 0 10px 24px rgba(8, 31, 61, 0.35);
}

.hero__person-nameplate-name {
    display: block;
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero__person-nameplate-role {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 500;
}

.hero__content {
    position: relative;
    z-index: 1;
    align-self: center;
    flex: 1;
    min-width: 0;
    max-width: 600px;
    padding-block: 48px;
}

.hero__badge {
    display: inline-flex;
    margin-bottom: 24px;
}

.hero__badge-part {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hero__badge-part--dark {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
    padding-right: 36px;
    margin-right: -16px;
}

.hero__badge-part--light {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--blue-alt);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
    padding-left: 36px;
}

.hero__title {
    margin: 0 0 22px;
    color: var(--white);
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

.hero__lead {
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.6;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-bottom: 4px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: border-color .15s ease;
}

.hero__link:hover {
    border-bottom-color: var(--white);
}

/* ─── Hero podstránek ───────────────────────────────────────────────────── */

.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 45, 87, 0.95) 0%, rgba(11, 45, 87, 0.78) 55%, rgba(11, 45, 87, 0.55) 100%);
}

.page-hero__inner {
    position: relative;
    width: 100%;
    padding-block: 64px;
}

.page-hero__title {
    max-width: 900px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

.page-hero__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.6;
    max-width: 700px;
}

/* ─── Sekce a rozvržení ─────────────────────────────────────────────────── */

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

.section--intro {
    padding-block: 88px;
}

.section--rule {
    border-top: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 28px 80px;
    align-items: start;
    margin-bottom: 64px;
}

.split:last-child {
    margin-bottom: 0;
}

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

.split__body > :last-child {
    margin-bottom: 0;
}

.section-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: 64px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.section-foot__text {
    max-width: 660px;
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.events + .section-foot {
    margin-top: 36px;
    padding-top: 0;
    border-top: 0;
}

.section-foot--center {
    justify-content: center;
    padding-top: 0;
    border-top: 0;
}

.section__gallery {
    margin-top: 72px;
}

/* ─── Velká čísla ───────────────────────────────────────────────────────── */

.figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    margin: 6px 0 30px;
}

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

.figures--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.figure {
    margin: 0;
}

.figures--row .figure {
    padding: 4px 28px 0;
    border-left: 1px solid var(--line);
}

.figures--row .figure:first-child {
    padding-left: 0;
    border-left: 0;
}

.figure__value {
    margin: 0;
}

.figure__prefix {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.figure__prefix--empty {
    visibility: hidden;
}

.figures--single .figure__prefix--empty {
    display: none;
}

.figure__number {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    color: var(--blue-alt);
    font-size: 60px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.figures--row .figure__number {
    font-size: 72px;
}

.figure__unit {
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}

.figure__text {
    max-width: 36ch;
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* ─── Oblasti programu ──────────────────────────────────────────────────── */

.areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px 56px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 26px;
    border-top: 1px solid var(--line-strong);
}

.area::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 56px;
    height: 4px;
    background: var(--blue);
}

.area__number {
    margin-bottom: 14px;
    color: var(--blue-alt);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.area__title {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.area__title a:hover {
    color: var(--blue);
}

.area__text {
    flex: 1;
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ─── Text s fotkou ─────────────────────────────────────────────────────── */

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px 88px;
    align-items: center;
}

.feature + .feature {
    margin-top: 128px;
}

.feature__media {
    margin: 0;
}

.feature__media img {
    width: 100%;
    height: auto;
    clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
}

.feature--reverse .feature__media {
    order: 2;
}

.feature--reverse .feature__media img {
    clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%);
}

.feature__body .section-head {
    margin-bottom: 30px;
}

.feature__body .figures {
    margin-block: 10px 26px;
}

.feature__body .text-link {
    margin-top: 10px;
}

/* ─── Výčty ─────────────────────────────────────────────────────────────── */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.tag-list li {
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-list li:not(:last-child)::after {
    content: "/";
    margin: 0 12px;
    color: var(--blue);
    font-weight: 400;
}

.checklist {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.checklist li {
    position: relative;
    padding: 14px 0 14px 42px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.checklist li::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 3px;
    width: 18px;
    height: 6px;
    background: var(--blue);
    transform: skewX(-24deg);
}

.prose-item {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.prose-item:last-child {
    padding-bottom: 0;
}

.prose-item__title {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.prose-item .prose__p {
    margin: 0;
}

.prose-image {
    margin: 12px 0 30px;
}

.prose-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.prose > :last-child {
    margin-bottom: 0;
}

/* ─── Tematické řádky (výsledky, detail oblasti) ────────────────────────── */

.topic {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 24px 80px;
    padding-block: 72px;
    border-top: 1px solid var(--line);
}

.topics--no-intro .topic:first-child {
    border-top: 0;
}

.topic__head {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    align-self: start;
}

.topic__title {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    text-wrap: balance;
}

.toc {
    margin-top: 48px;
}

.toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    list-style: none;
}

.toc__list a {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    color: var(--blue-alt);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc__list a:hover {
    border-bottom-color: currentColor;
}

.area-nav {
    border-bottom: 1px solid var(--line);
}

.area-nav__list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 26px;
    list-style: none;
}

.area-nav__list::-webkit-scrollbar {
    display: none;
}

.area-nav__link {
    display: block;
    padding: 20px 0 17px;
    border-bottom: 3px solid transparent;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.area-nav__link:hover {
    color: var(--blue);
}

.area-nav__link.is-active {
    border-bottom-color: var(--blue);
    color: var(--blue-alt);
}

.pager {
    border-top: 1px solid var(--line);
}

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

.pager__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-block: 48px;
}

.pager__link--prev {
    padding-right: 32px;
}

.pager__link--next {
    align-items: flex-end;
    padding-left: 32px;
    border-left: 1px solid var(--line);
    text-align: right;
}

.pager__label {
    color: var(--blue-alt);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pager__label i {
    font-size: 11px;
}

.pager__title {
    color: var(--navy);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color .15s ease;
}

.pager__link:hover .pager__title {
    color: var(--blue);
}

/* ─── 10 závazků ────────────────────────────────────────────────────────── */

.commitments {
    padding-block: var(--space-section);
    background: linear-gradient(120deg, var(--navy-deep), var(--navy));
}

.commitments__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 72px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.commitment {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.commitment__number {
    color: var(--blue-light);
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.commitment__text {
    margin: 0;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

/* ─── Setkání ───────────────────────────────────────────────────────────── */

.events {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.event {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px 56px;
    padding-block: 44px;
    border-bottom: 1px solid var(--line);
}

.event__date {
    margin: 0;
}

.event__date time {
    display: block;
}

.event__day {
    display: block;
    color: var(--blue-alt);
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.event__month {
    display: block;
    margin-top: 10px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event__weekday {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 14px;
}

.event__status {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event__title {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.event__meta i {
    margin-right: 8px;
    color: var(--blue);
}

.event__text {
    max-width: 680px;
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.event__body > :last-child {
    margin-bottom: 0;
}

.schedule {
    max-width: 680px;
    margin: 24px 0 0;
    border-top: 1px solid var(--line);
}

.schedule__row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.schedule dt {
    color: var(--blue-alt);
    font-weight: 800;
}

.schedule dd {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
}

.event--past {
    opacity: 0.55;
}

.events--compact .event {
    grid-template-columns: 140px minmax(0, 1fr);
    padding-block: 32px;
}

.events--compact .event__day {
    font-size: 56px;
}

.events--compact .event__title {
    font-size: 22px;
}

/* ─── Závěrečné sdělení ─────────────────────────────────────────────────── */

.closing {
    padding-block: var(--space-section);
    border-top: 1px solid var(--line);
}

.commitments + .closing {
    border-top: 0;
}

.closing__inner > * {
    max-width: 940px;
}

.closing .section-head {
    margin-bottom: 32px;
}

.closing__text {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
}

.closing__slogan {
    margin: 40px 0 0;
    color: var(--blue-alt);
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    text-wrap: balance;
}

.closing__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    margin-top: 36px;
}

/* ─── Galerie „Co se podařilo“ ──────────────────────────────────────────── */

.achievements__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: calc(25vw - 3px);
    grid-auto-flow: dense;
    gap: 4px;
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--navy);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item__caption {
    position: absolute;
    left: 0;
    bottom: 16px;
    right: 16px;
    pointer-events: none;
}

.gallery-item__caption-box {
    display: inline-flex;
    max-width: 100%;
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    box-shadow: 0 10px 22px rgba(8, 31, 61, 0.4);
}

.gallery-item__caption-text {
    display: inline-block;
    padding: 12px 34px 12px 22px;
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.gallery-item--big {
    grid-column: span 2;
    grid-row: span 2;
}

/* ─── Kandidáti ─────────────────────────────────────────────────────────── */

.candidates__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
}

.candidate {
    text-align: center;
}

.candidate__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%),
        linear-gradient(155deg, var(--blue-alt), var(--navy-deep));
}

.candidate__photo-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate__photo-wrap--placeholder i {
    font-size: 34px;
    color: rgba(255, 255, 255, 0.5);
}

.candidate__photo-wrap img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
}

.candidate__number {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    transform: skewX(-10deg);
    box-shadow: 0 6px 14px rgba(8, 31, 61, 0.35);
}

.candidate__number-inner {
    display: block;
    transform: skewX(10deg);
    padding: 5px 10px;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
}

.candidate__name {
    margin: 0 0 4px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.35;
    color: var(--navy);
}

.candidate__bio {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.candidate__meta {
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--blue-alt);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.candidate--interactive {
    cursor: pointer;
}

.candidate--interactive .candidate__photo-wrap {
    transition: box-shadow .15s ease, transform .15s ease;
}

.candidate--interactive:hover .candidate__photo-wrap {
    box-shadow: 0 12px 26px rgba(11, 45, 87, 0.28);
    transform: translateY(-2px);
}

.candidate--interactive:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* ─── Modál / lightbox kandidáta ────────────────────────────────────────── */

body.candidate-modal-open {
    overflow: hidden;
}

.candidate-modal[hidden] {
    display: none;
}

.candidate-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 38, 0.82);
}

.candidate-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: calc(100% - 100px);
    max-width: 920px;
    max-height: calc(100vh - 60px);
}

.candidate-modal__media {
    position: relative;
    flex: 0 0 360px;
    align-self: flex-start;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%),
        linear-gradient(155deg, var(--blue-alt), var(--navy-deep));
}

.candidate-modal__photo {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
}

.candidate-modal__placeholder-icon {
    display: none !important;
    margin: auto;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
}

.candidate-modal__media--placeholder .candidate-modal__photo {
    display: none;
}

.candidate-modal__media--placeholder .candidate-modal__placeholder-icon {
    display: block !important;
}

.candidate-modal__number {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    transform: skewX(-10deg);
    box-shadow: 0 6px 14px rgba(8, 31, 61, 0.35);
}

.candidate-modal__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(8, 31, 61, 0.08);
    color: var(--navy);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-modal__close:hover {
    background: rgba(8, 31, 61, 0.16);
}

.candidate-modal__body {
    flex: 1;
    min-width: 0;
    padding: 40px;
    overflow-y: auto;
}

.candidate-modal__name {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
}

.candidate-modal__meta {
    margin: 0 0 20px;
    color: var(--blue-alt);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.candidate-modal__meta:empty,
.candidate-modal__profile:empty {
    display: none;
}

.candidate-modal__profile {
    margin: 0;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.75;
}

.candidate-modal__nav {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin: 0 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.candidate-modal__nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* ─── Patička ───────────────────────────────────────────────────────────── */

.site-footer {
    background: linear-gradient(120deg, var(--navy-deep), var(--navy));
    padding: 72px 0 40px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__logo {
    height: 52px;
    width: auto;
}

.site-footer__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.site-footer__badge-part {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transform: skewX(-12deg);
}

.site-footer__badge-part-inner {
    display: inline-block;
    transform: skewX(12deg);
}

.site-footer__badge-part--dark {
    background: linear-gradient(135deg, var(--blue-alt), var(--blue));
    color: var(--white);
}

.site-footer__badge-part--light {
    background: var(--white);
    color: var(--blue-alt);
}

.site-footer__slogan {
    max-width: 440px;
    margin: 0;
    color: var(--white);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: right;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.1fr);
    gap: 40px 48px;
    margin-bottom: 48px;
}

.site-footer__heading {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-footer__heading a:hover {
    color: var(--blue-light);
}

.site-footer__col p:not(.site-footer__heading) {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.65;
}

.site-footer__links {
    display: grid;
    gap: 9px;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__links a:hover {
    color: var(--white);
}

.site-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.site-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.site-footer__social a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin-bottom: 24px;
}

.site-footer__legal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 48px;
}

.site-footer__legal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
}

.site-footer__legal .site-footer__copyright {
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

/* ─── Menší desktop (~1100px) ───────────────────────────────────────────── */

@media (max-width: 1100px) {
    .hero__title {
        font-size: 50px;
    }

    .hero__person-photo-wrap {
        width: 420px;
        height: 520px;
    }

    .figures--row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 48px;
    }

    .figures--row .figure:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

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

/* ─── Tablet (~1024px) ──────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    :root {
        --space-section: 88px;
    }

    .site-nav__list {
        gap: 22px;
    }

    .hero__title {
        font-size: 46px;
    }

    .hero__person-photo-wrap {
        width: 320px;
        height: 420px;
    }

    .hero__person-nameplate {
        bottom: 84px;
        padding: 9px 22px;
    }

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

    .topic__head {
        position: static;
    }

    .topic__title {
        margin-bottom: 12px;
    }

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

    .feature {
        gap: 40px 48px;
    }

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

    .achievements__gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: calc(50vw - 2px);
    }
}

/* ─── Mobilní menu (~900px) ─────────────────────────────────────────────── */

@media (max-width: 900px) {
    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        padding: 4px 24px 24px;
        background: var(--white);
        box-shadow: 0 12px 24px rgba(11, 45, 87, 0.12);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__list > li {
        border-bottom: 1px solid var(--line);
    }

    .site-nav__link {
        padding: 15px 0;
        border-bottom: 0;
        font-size: 15px;
    }

    .site-nav__link.is-active {
        color: var(--blue);
    }

    .site-nav__parent-row {
        justify-content: space-between;
    }

    .site-nav__sub-toggle {
        width: 44px;
        height: 44px;
        font-size: 13px;
    }

    .site-nav__sub {
        display: none;
        position: static;
        min-width: 0;
        padding: 0 0 12px;
        border-top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav__item--parent.is-open .site-nav__sub {
        display: block;
    }

    .site-nav__sub-link {
        padding: 9px 0;
        font-size: 15px;
    }
}

/* ─── Mobil (~760px) ────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    :root {
        --space-section: 72px;
    }

    .section--intro {
        padding-block: 60px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head__title {
        font-size: 30px;
    }

    .statement {
        font-size: 22px;
    }

    .lead-text {
        font-size: 19px;
    }

    .prose__p {
        font-size: 16px;
    }

    .hero {
        min-height: 0;
    }

    .hero__inner {
        min-height: 0;
        padding-top: 16px;
    }

    .hero__person {
        display: none;
    }

    .hero__badge-part {
        padding: 8px 16px;
        font-size: 10.5px;
    }

    .hero__badge-part--dark {
        padding-right: 26px;
        margin-right: -12px;
    }

    .hero__badge-part--light {
        padding-left: 26px;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__lead {
        font-size: 16px;
    }

    .page-hero {
        min-height: 0;
    }

    .page-hero__inner {
        padding-block: 48px;
    }

    .page-hero__title {
        font-size: 32px;
    }

    .page-hero__lead {
        font-size: 16px;
    }

    .figure__number,
    .figures--row .figure__number {
        font-size: 50px;
    }

    .figures--row {
        column-gap: 0;
        row-gap: 36px;
    }

    .figures--row .figure {
        padding-inline: 16px 0;
    }

    .figure__unit {
        font-size: 18px;
    }

    .figure__text {
        font-size: 14px;
    }

    .section-foot {
        margin-top: 48px;
    }

    .areas {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

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

    .feature--reverse .feature__media {
        order: 0;
    }

    .feature__media img,
    .feature--reverse .feature__media img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
        clip-path: polygon(0 0, 100% 0, calc(100% - 32px) 100%, 0 100%);
    }

    .feature + .feature {
        margin-top: 88px;
    }

    .topic {
        padding-block: 56px;
    }

    .topic__title {
        font-size: 24px;
    }

    .area-nav__list {
        flex-wrap: nowrap;
        column-gap: 22px;
        overflow-x: auto;
        scrollbar-width: none;
    }

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

    .pager__link,
    .pager__link--next {
        padding-block: 28px;
        padding-inline: 0;
    }

    .pager__link--next {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .pager__title {
        font-size: 19px;
    }

    .commitments__list {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .commitment {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 18px 0;
    }

    .commitment__number {
        font-size: 30px;
    }

    .commitment__text {
        font-size: 16px;
    }

    .event,
    .events--compact .event {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding-block: 32px;
    }

    .event__date {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .event__date time {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .event__day,
    .events--compact .event__day {
        font-size: 44px;
    }

    .event__month {
        margin-top: 0;
    }

    .event__title,
    .events--compact .event__title {
        font-size: 22px;
    }

    .schedule__row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .closing__text {
        font-size: 18px;
    }

    .closing__slogan {
        font-size: 28px;
    }

    .achievements__gallery {
        grid-auto-rows: calc(50vw - 1.5px);
        gap: 3px;
    }

    .gallery-item__caption {
        left: 0;
        bottom: 6px;
        right: 6px;
    }

    .gallery-item__caption-box {
        clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
        box-shadow: 0 4px 10px rgba(8, 31, 61, 0.4);
    }

    .gallery-item__caption-text {
        padding: 5px 16px 5px 10px;
        font-size: 9.5px;
        font-weight: 700;
    }

    .candidates__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 16px;
    }

    .site-footer {
        padding: 56px 0 32px;
    }

    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__logo {
        height: 44px;
    }

    .site-footer__slogan {
        font-size: 21px;
        text-align: left;
    }

    .site-footer__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

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

    .candidate-modal__dialog {
        flex-direction: column;
        width: calc(100% - 32px);
        max-height: calc(100vh - 90px);
    }

    .candidate-modal__media {
        flex: 0 0 auto;
        width: 100%;
        max-width: 260px;
        aspect-ratio: 3 / 4;
        align-self: center;
        margin: 0 auto;
    }

    .candidate-modal__body {
        padding: 22px;
    }

    .candidate-modal__name {
        font-size: 20px;
    }

    .candidate-modal__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 40px;
        height: 40px;
        font-size: 15px;
        background: rgba(8, 31, 61, 0.55);
    }

    .candidate-modal__nav--prev {
        left: 8px;
    }

    .candidate-modal__nav--next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
