:root {
  --ink: #182233;
  --ink-soft: #3d4757;
  --paper: #ffffff;
  --paper-2: #f6f5ef;
  --yellow: #ffca5a;
  --green: #d4ec8e;
  --pale: #f2f0a1;
  --line: #e4e2d8;
  --radius: 16px;
  --wrap: 1180px;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { padding-top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* Logo HT♥R */
.logo {
  display: inline-flex; align-items: flex-end;
  font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: 0.02em;
}
.logo svg { width: 0.98em; height: 0.92em; fill: currentColor; margin: 0 0.04em 0.42em; }

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { font-size: 13px; line-height: 1.2; font-weight: 600; color: var(--ink-soft); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); }
.nav a.nav-cta { background: var(--yellow); font-weight: 600; margin-left: 8px; }
.nav a.nav-cta:hover { background: #ffbf3a; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a3649; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Úvod */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600;
  background: var(--yellow); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.countdown { margin-top: 28px; font-size: 16px; color: var(--ink-soft); }
.countdown b { color: var(--ink); }

.hero-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(24, 34, 51, .35); }
.hero-photo img { width: 100%; aspect-ratio: 1800 / 1280; object-fit: cover; }
.logo-on-photo { position: absolute; right: 5%; bottom: 6%; color: #fff; font-size: clamp(26px, 3.4vw, 44px); filter: drop-shadow(0 1px 8px rgba(0,0,0,.25)); }

/* Slovo starosty */
.quote-section { background: var(--paper-2); padding-block: clamp(56px, 8vw, 104px); }
.quote-section + .section { padding-top: clamp(56px, 8vw, 104px); }
.quote-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-portrait { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: var(--radius); position: sticky; top: 100px; }
.quote { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; max-width: 64ch; }
.quote footer { margin-top: 24px; font-style: italic; font-size: 18px; }
.quote footer span { color: var(--ink-soft); }

/* Barevné karty */
.card-yellow { background: var(--yellow); border-radius: var(--radius); }
.card-green { background: var(--green); border-radius: var(--radius); }
.card-pale { background: var(--pale); border-radius: var(--radius); }

.vision { padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.vision-quote { font-size: clamp(24px, 2.8vw, 36px); font-weight: 500; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.vision-note { font-size: 18px; margin: 0; }

/* Program */
.section-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.02em; max-width: 18ch; margin-bottom: 32px; }
.section-lead { font-size: 19px; color: var(--ink-soft); margin: -12px 0 40px; }

.program-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 6vw, 72px); }
.program-tabs a {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
}
.program-tabs a:hover { border-color: var(--ink); }
.program-tabs b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-size: 14px; }

.area { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ink); }
.area:last-child { padding-bottom: 0; }
.area-head { position: sticky; top: 100px; align-self: start; }
.area-num { display: block; font-size: clamp(56px, 7vw, 96px); font-weight: 700; line-height: 1; margin-bottom: 12px; letter-spacing: -0.04em; }
.area-head h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }

.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.items-3 { grid-template-columns: repeat(3, 1fr); }
.item { background: var(--paper-2); border-radius: var(--radius); padding: 24px 24px 26px; }
.item h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.item p { font-size: 16px; color: var(--ink-soft); }
.item-key { grid-column: 1 / -1; background: var(--ink); color: #fff; padding: 32px; }
.item-key h4 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.item-key h4::before { content: "Priorita"; display: block; width: max-content; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: var(--yellow); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.item-key p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 70ch; }

.landscape { margin: 0 auto; max-width: calc(var(--wrap) + 160px); padding-inline: 24px; margin-bottom: clamp(56px, 8vw, 104px); }
.landscape img { width: 100%; aspect-ratio: 2000 / 822; object-fit: cover; border-radius: var(--radius); }

/* Kandidáti */
.candidates { background: var(--paper-2); padding-top: clamp(56px, 8vw, 104px) !important; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 720 / 753; object-fit: cover; }
.person div { padding: 18px 20px 22px; }
.person h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.person p { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }

/* Setkání */
.candidates + .section { padding-top: clamp(56px, 8vw, 104px); }
.meet { padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.meet h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; margin-bottom: 12px; }
.meet-lead { font-size: 20px; margin: 0; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event { display: flex; gap: 18px; align-items: center; background: rgba(255,255,255,.55); border-radius: 12px; padding: 16px 20px 16px 16px; }
.event-date { flex: none; width: 76px; height: 76px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; font-size: 13px; line-height: 1.1; }
.event-date b { font-size: 28px; }
.event-body { display: flex; flex-direction: column; font-size: 17px; line-height: 1.4; }
.event-body strong { font-weight: 700; }
.event-past { font-style: normal; font-size: 14px; font-weight: 600; margin-top: 4px; }
.event.is-past { opacity: .6; }
.event.is-past .event-date { background: var(--ink-soft); }

/* Volby + zapojte se */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.panel h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin-bottom: 24px; }
.panel .mail { margin-top: auto; align-self: flex-start; }
.panel p:has(+ .mail) { margin-bottom: 28px; }
.vote-box { margin-top: auto; padding-top: 28px; }
.vote-big { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; margin-bottom: 18px; }
.vote-times { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.vote-times div { background: rgba(255,255,255,.6); border-radius: 10px; padding: 10px 16px; }
.vote-times dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.vote-times dd { margin: 0; font-size: 20px; font-weight: 600; }

/* Patička */
.site-footer { background: var(--ink); color: #fff; padding-block: 48px; margin-top: clamp(56px, 8vw, 104px); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-inner .logo { font-size: 36px; color: var(--yellow); }
.footer-inner p { margin: 0; font-size: 15px; color: rgba(255,255,255,.8); }
.footer-inner p strong { color: #fff; }
.footer-inner p:last-child { margin-left: auto; }
.footer-inner a { color: var(--yellow); font-weight: 600; }

/* Responzivita */
@media (max-width: 1020px) {
  .items-3 { grid-template-columns: repeat(2, 1fr); }
  .area { grid-template-columns: 1fr; }
  .area-head { position: static; }
  .area-num { font-size: 56px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 17px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-portrait { position: static; width: 120px; border-radius: 50%; }
  .vision, .meet, .duo { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-inner p:last-child { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .landscape { padding-inline: 16px; }
  .items, .items-3 { grid-template-columns: 1fr; }
  .item-key { padding: 24px; }
  .people { gap: 10px; }
  .person div { padding: 12px 14px 16px; }
  .person h3 { font-size: 16px; }
  .person p { font-size: 13px; }
  .brand-text { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .event { padding: 12px; gap: 14px; }
  .event-date { width: 64px; height: 64px; }
  .event-date b { font-size: 24px; }
  .landscape img { aspect-ratio: 16 / 9; }
}
