:root {
  --blue: #16407e;
  --blue-deep: #0f2c57;
  --blue-2: #2c5aa0;
  --green: #2f9e3b;
  --green-soft: #f0f8f1;
  --red: #d8323b;
  --red-soft: #fdf2f2;
  --ink: #1c2536;
  --muted: #66728a;
  --line: #eaeef4;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 10px 28px rgba(20, 33, 61, 0.06);
  --shadow-soft: 0 1px 2px rgba(20, 33, 61, 0.04), 0 4px 14px rgba(20, 33, 61, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --shell: min(1140px, calc(100vw - 48px));
  --font-sans: "Inter", "Segoe UI Variable", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Source Serif 4", Georgia, ui-serif, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  letter-spacing: -0.002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

strong,
b {
  font-weight: 600;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  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:focus {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  color: white;
  background: var(--blue);
  border-radius: var(--radius);
}

body.site-locked {
  overflow: hidden;
}

.site-lock {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(10, 26, 53, 0.82), rgba(15, 44, 87, 0.72)),
    url("assets/photos/obec-main.jpg") center / cover no-repeat;
  backdrop-filter: blur(14px);
}

.site-lock[hidden] {
  display: none;
}

.site-lock-panel {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  color: white;
  background: rgba(4, 20, 52, 0.72);
  box-shadow: 0 24px 70px rgba(10, 26, 53, 0.3);
  backdrop-filter: blur(18px);
}

.site-lock-panel img {
  width: min(260px, 100%);
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.site-lock-panel .eyebrow {
  color: #ffc9c9;
}

.site-lock-panel h2 {
  color: white;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}

.site-lock-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.site-lock-panel form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.site-lock-panel label {
  display: grid;
  gap: 7px;
  font-weight: 520;
}

.site-lock-panel input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
}

.site-lock-error {
  min-height: 1.4em;
  margin: 0;
  color: #ffd0d0 !important;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(234, 238, 244, 0.9);
  backdrop-filter: saturate(160%) blur(16px);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue);
}

.brand img {
  width: 214px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
  background: var(--wash);
  outline: none;
}

.nav-links .nav-cta {
  margin-left: 6px;
  color: white;
  background: var(--blue);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: white;
  background: var(--blue-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(660px, calc(100vh - 80px));
  padding: 104px 0 84px;
  background: var(--blue-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background:
    linear-gradient(95deg, rgba(10, 26, 53, 0.86) 0%, rgba(12, 32, 64, 0.58) 46%, rgba(12, 32, 64, 0.18) 78%, rgba(12, 32, 64, 0.05) 100%),
    linear-gradient(180deg, rgba(10, 26, 53, 0) 40%, rgba(10, 26, 53, 0.35) 100%),
    url("assets/photos/obec-main.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0) 30%, white 100%);
  opacity: 0.9;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 1080px;
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b7e8ae;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

h1,
h2 {
  font-family: var(--font-sans);
  font-weight: 640;
  letter-spacing: -0.028em;
}

.hero h1 {
  max-width: none;
  color: white;
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
}

.hero-note {
  max-width: 700px;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(47, 158, 59, 0.24);
}

.button.primary:hover {
  background: #2a8f35;
}

.button.secondary {
  color: var(--blue);
  border-color: var(--line);
  background: white;
}

.button.secondary:hover {
  border-color: var(--blue-2);
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button.full {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-self: end;
  margin-top: 112px;
}

.hero-panel-empty {
  min-height: 360px;
}

.hero-mini-photo {
  overflow: hidden;
  width: min(420px, 100%);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.hero-mini-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-logo-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-logo-card img {
  width: min(360px, 100%);
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-logo-card p {
  margin: 18px 0 0;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.identity-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.identity-row {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(23, 32, 51, 0.12);
  backdrop-filter: blur(14px);
}

.identity-row span {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.identity-row.green {
  color: var(--green);
}

.identity-row.red {
  color: var(--red);
}

.identity-row strong {
  color: var(--blue);
}

.identity-row small {
  color: var(--muted);
}

.section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 92px;
  padding: 104px 0;
}

.section::before {
  position: absolute;
  inset: 22px 0 auto;
  height: 230px;
  pointer-events: none;
  opacity: 0.56;
  display: none;
  content: "";
}

.section > .shell {
  position: relative;
  z-index: 1;
}

.intro {
  padding-top: 96px;
  background: white;
}

.intro::before {
  display: block;
  inset: auto max(20px, calc((100vw - 1180px) / 2)) 10px auto;
  width: min(430px, 58vw);
  height: min(270px, 34vw);
  opacity: 0.07;
  background: url("assets/brand/logo-tree-mark.svg") center / contain no-repeat;
}

.program-section::before,
.candidates::before,
.news-section::before,
.instagram-section::before,
.contact::before {
  display: block;
  position: absolute;
  pointer-events: none;
  content: "";
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 960px;
  text-align: center;
}

.section-kicker span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 460;
}

.section-kicker h2,
.section-heading h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
}

.text-stack {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.07rem;
  text-align: left;
}

.text-stack p {
  margin: 0;
}

.hero strong,
.section strong {
  color: inherit;
  font-weight: 570;
}

.text-stack strong,
.section-heading strong,
.ticket strong,
.candidate-feature strong,
.contact-copy strong {
  color: var(--blue);
}

.bands {
  padding: 16px 0 84px;
  background: white;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "number"
    "label";
  gap: 6px;
  min-height: 124px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.metric::after {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--green);
  content: "";
}

.metric:nth-child(2)::after {
  background: var(--blue);
}

.metric:nth-child(3)::after {
  background: var(--red);
}

.metric strong {
  grid-area: number;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1;
}

.metric span {
  grid-area: label;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.metric small {
  grid-area: detail;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 520;
}

.section-heading {
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 42px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ticket {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ticket:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 18px 42px rgba(20, 33, 61, 0.1);
}

.ticket::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
}

.ticket-green::before {
  background: var(--green);
}

.ticket-red::before {
  background: var(--red);
}

.ticket-logo {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.ticket-logo img {
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
}

.ticket h3 {
  font-size: 1.48rem;
}

.ticket p,
.ticket li {
  color: var(--muted);
}

.ticket p {
  margin: 0;
}

.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.ticket-red .check-list li::before {
  background: var(--red);
}

.card-actions {
  display: none;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 4px;
}

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

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

.program-section {
  background: var(--wash);
}

.program-section::before {
  inset: 30px auto auto max(20px, calc((100vw - 1180px) / 2));
  width: min(360px, 42vw);
  height: 250px;
  opacity: 0.055;
  background: url("assets/brand/logo-tree-mark.svg") left center / contain no-repeat;
}

.program-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.program-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.program-tab {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.program-tab:hover,
.program-tab:focus-visible {
  color: var(--blue);
  background: var(--wash);
  outline: none;
}

.program-tab.active {
  color: white;
  background: var(--blue);
}

.program-content {
  min-height: 520px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.program-content h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.program-content > p {
  max-width: 760px;
  color: var(--muted);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.program-list li {
  position: relative;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--wash);
}

.program-list li:nth-child(4n + 2),
.program-list li:nth-child(4n + 3) {
  border-left-color: var(--red);
}

.program-list li::before {
  content: none;
}

.values {
  background:
    url("assets/brand/logo-tree-mark.svg") right 6% center / min(420px, 40vw) auto no-repeat,
    var(--wash);
}

.values .value-card h3 {
  color: var(--blue);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card {
  min-height: 220px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: white;
  box-shadow: var(--shadow-soft);
}

.value-card p {
  margin: 12px 0 0;
}

.icon-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
}

.icon-dot::after {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: currentColor;
  content: "";
}

.icon-dot.blue {
  color: var(--blue);
  background: rgba(22, 64, 126, 0.1);
}

.icon-dot.green {
  color: var(--green);
  background: rgba(47, 158, 59, 0.12);
}

.icon-dot.red {
  color: var(--red);
  background: rgba(216, 50, 59, 0.1);
}

.candidates {
  background:
    linear-gradient(180deg, white, rgba(248, 251, 248, 0.98));
}

.candidates::before {
  inset: 20px 0 auto auto;
  width: min(560px, 46vw);
  height: 420px;
  opacity: 0.05;
  background: url("assets/photos/nestranici-skupina.jpg") center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.candidate-tabs {
  display: flex;
  width: min(560px, 100%);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  box-shadow: var(--shadow-soft);
}

.candidate-switch-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 34px;
}

.candidate-tab {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 540;
  cursor: pointer;
  text-align: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.candidate-tab span {
  font-size: 1.14rem;
}

.candidate-tab.active.green {
  color: white;
  background: var(--green);
}

.candidate-tab.active.red {
  color: white;
  background: var(--red);
}

.candidate-group {
  display: none;
}

.candidate-group.active {
  display: block;
}

.candidate-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1fr;
  gap: 30px;
  align-items: center;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.candidate-feature img {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  background: white;
}

.candidate-feature h3 {
  font-size: 1.75rem;
}

.candidate-feature p:not(.eyebrow) {
  color: var(--muted);
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.candidate-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.candidate-card:hover,
.candidate-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 18px 44px rgba(20, 33, 61, 0.1);
}

.candidate-card:focus-visible {
  outline: 3px solid rgba(22, 64, 126, 0.22);
  outline-offset: 3px;
}

.candidate-card.green::before,
.candidate-card.red::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  content: "";
}

.candidate-card.green::before {
  background: var(--green);
}

.candidate-card.red::before {
  background: var(--red);
}

.candidate-media {
  position: relative;
  background: var(--wash);
}

.candidate-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.candidate-initials {
  display: grid;
  min-height: 310px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(6, 36, 92, 0.12), rgba(39, 137, 21, 0.14)),
    linear-gradient(180deg, white, #f5f9f6);
  text-align: center;
}

.candidate-card.red .candidate-initials {
  background:
    linear-gradient(135deg, rgba(6, 36, 92, 0.1), rgba(235, 28, 36, 0.12)),
    linear-gradient(180deg, white, #fff7f6);
}

.candidate-initials span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(6, 36, 92, 0.16);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 640;
  box-shadow: 0 18px 44px rgba(6, 36, 92, 0.12);
}

.candidate-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 500;
}

.candidate-card.green .candidate-badge {
  background: var(--green);
}

.candidate-card.red .candidate-badge {
  background: var(--red);
}

.candidate-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 11px;
  padding: 20px;
}

.candidate-body h3 {
  font-size: 1.32rem;
}

.candidate-theme {
  overflow: hidden;
  margin: 0;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 460;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.candidate-card.red .candidate-theme {
  color: var(--red);
}

.candidate-teaser {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.8em;
  margin: 0;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-link {
  width: fit-content;
  border: 0;
  border-radius: 0;
  color: var(--red);
  background: transparent;
  font-weight: 520;
  cursor: pointer;
}

.news-link:hover,
.news-link:focus-visible {
  color: #c9151c;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
  background: transparent;
}

.news-section {
  background: var(--wash);
}

.news-section::before {
  inset: auto max(20px, calc((100vw - 1180px) / 2)) 0 auto;
  width: min(380px, 48vw);
  height: 260px;
  opacity: 0.06;
  background: url("assets/brand/logo-tree-mark.svg") center / contain no-repeat;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 18px 42px rgba(20, 33, 61, 0.1);
}

.news-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card > :not(img) {
  width: calc(100% - 48px);
  min-width: 0;
  justify-self: center;
  margin-inline: 0;
  padding-inline: 0;
}

.news-date {
  margin-top: 4px;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 460;
  text-transform: uppercase;
}

.news-card p:not(.news-date) {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card h3 {
  font-size: 1.25rem;
}

.news-link {
  display: inline-flex;
  justify-self: start;
  min-height: auto;
  align-items: center;
  padding: 0;
  text-decoration: none;
}

body.article-view main > section:not(.article-page) {
  display: none;
}

.article-page {
  min-height: calc(100vh - 86px);
  padding: 34px 0 90px;
  background: var(--wash);
}

.article-page-shell {
  display: grid;
  gap: 20px;
}

.article-back {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(235, 28, 36, 0.22);
  border-radius: 6px;
  color: var(--red);
  background: white;
  font-weight: 520;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.article-back::before {
  content: "←";
  margin-right: 8px;
}

.article-detail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.article-detail-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
  gap: 34px;
  align-items: center;
  padding: 40px;
  color: white;
  background:
    linear-gradient(135deg, var(--blue-deep), var(--blue-2)),
    var(--blue);
}

.article-detail-head img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.article-detail-head h1 {
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  white-space: normal;
}

.article-detail-head .news-date,
.article-detail-head p {
  color: rgba(255, 255, 255, 0.86);
}

.article-detail-body {
  display: grid;
  gap: 18px;
  max-width: 820px;
  padding: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-detail-body p {
  margin: 0;
}

.instagram-section {
  background: white;
}

.instagram-section::before {
  inset: 40px auto auto 0;
  width: min(480px, 46vw);
  height: 320px;
  opacity: 0.045;
  background: url("assets/photos/skupina-schody.png") center / cover no-repeat;
  mask-image: linear-gradient(90deg, black, transparent 86%);
}

.instagram-follow {
  width: fit-content;
  margin-top: 22px;
  color: white;
  background: var(--red);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insta-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.insta-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.insta-head img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: contain;
  background: white;
}

.insta-head strong,
.insta-head span {
  display: block;
}

.insta-head strong {
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 1.2;
}

.insta-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.insta-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.insta-body {
  padding: 14px;
}

.insta-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.insta-actions span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.insta-actions span:nth-child(2) {
  border-radius: 4px;
  transform: rotate(-8deg);
}

.insta-actions span:nth-child(3) {
  margin-left: auto;
  border-color: var(--red);
  border-radius: 3px;
}

.insta-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.insta-body strong {
  color: var(--ink);
}

.contact {
  background: var(--wash);
}

.contact::before {
  inset: auto auto 10px max(20px, calc((100vw - 1180px) / 2));
  width: min(340px, 45vw);
  height: 220px;
  opacity: 0.055;
  background: url("assets/brand/logo-tree-mark.svg") center / contain no-repeat;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.85rem);
}

.contact-copy p {
  color: var(--muted);
}

.contact-box {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--wash);
}

.contact-box p {
  margin: 8px 0 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 520;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--wash);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-2);
  background: white;
  outline: 3px solid rgba(22, 64, 126, 0.14);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted) !important;
  font-weight: 530 !important;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 52, 0.68);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  overflow: hidden;
  width: min(920px, 100%);
  max-height: min(840px, calc(100vh - 48px));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 24px 70px rgba(10, 26, 53, 0.3);
}

.modal-content {
  overflow: auto;
  max-height: min(840px, calc(100vh - 48px));
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: white;
  background: rgba(6, 36, 92, 0.72);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
}

.modal-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
  padding: 38px;
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-2));
}

.modal-hero.green {
  background: linear-gradient(135deg, var(--blue-deep), #2f7d3a);
}

.modal-hero.red {
  background: linear-gradient(135deg, var(--blue-deep), #b73943);
}

.modal-hero h2,
.article-modal-head h2 {
  color: inherit;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.modal-hero .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.modal-photo img,
.modal-initials {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.modal-initials {
  min-height: 320px;
}

.modal-theme {
  overflow: hidden;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-hero blockquote {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 5px solid rgba(255, 255, 255, 0.74);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.42;
}

.qa-list,
.article-modal-body {
  display: grid;
  gap: 16px;
  padding: 30px 34px 36px;
  background:
    linear-gradient(180deg, white, #fbfdfb);
}

.qa-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--wash);
}

.qa-item:nth-child(even) {
  border-left-color: var(--red);
}

.qa-item h3 {
  overflow: hidden;
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-item:nth-child(even) h3 {
  color: var(--red);
}

.qa-item p,
.article-modal-body p,
.article-modal-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.article-modal-head {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 38px;
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-2));
}

.article-modal-head img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  object-fit: cover;
}

.article-modal-head .news-date {
  color: rgba(255, 255, 255, 0.76);
}

.article-modal-head p {
  color: rgba(255, 255, 255, 0.86);
}

.footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--blue-deep);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer strong {
  color: white;
}

.footer p {
  margin: 6px 0 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.footer-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: white;
  font-weight: 520;
  text-decoration: none;
}

.footer-download {
  background: var(--green);
  border-color: var(--green) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease var(--delay, 0ms),
    transform 560ms ease var(--delay, 0ms);
}

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

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

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

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(4, 22, 54, 0.9) 0%, rgba(5, 30, 74, 0.82) 58%, rgba(4, 22, 54, 0.62) 100%),
      url("assets/photos/obec-main.jpg") center / cover no-repeat;
  }

  .hero-grid,
  .split,
  .program-layout,
  .candidate-feature,
  .contact-grid,
  .modal-hero,
  .article-modal-head,
  .article-detail-head {
    grid-template-columns: 1fr;
  }

  .program-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-panel {
    margin-top: 8px;
  }

  .hero-panel-empty {
    display: none;
  }

  .hero h1 {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100vw - 28px, 1180px);
  }

  .nav {
    min-height: 66px;
  }

  .brand img {
    width: 142px;
    height: 50px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px;
  }

  .hero {
    padding: 54px 0 48px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
  }

  .hero-logo-card {
    padding: 16px;
  }

  .hero-actions,
  .card-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .identity-card,
  .metrics,
  .ticket-grid,
  .program-list,
  .value-grid,
  .candidate-grid,
  .news-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .candidate-tabs {
    width: 100%;
    flex-direction: column;
  }

  .section {
    padding: 64px 0;
  }

  .program-nav {
    grid-template-columns: 1fr;
  }

  .program-content,
  .ticket,
  .contact-form,
  .qa-list,
  .article-modal-body {
    padding: 20px;
  }

  .modal-shell {
    padding: 12px;
  }

  .modal-card,
  .modal-content {
    max-height: calc(100vh - 24px);
  }

  .modal-hero,
  .article-modal-head,
  .article-detail-head,
  .article-detail-body {
    padding: 22px;
  }

  .modal-photo {
    max-width: 260px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}
