:root {
  --white: #ffffff;
  --cream: #fdfaf2;
  --cream-2: #f7f0de;
  --gold: #b8862f;
  --gold-light: #d9b45a;
  --gold-pale: #efdca8;
  --brown: #6b4812;
  --brown-dark: #3f2a0a;
  --text: #4a3a22;
  --muted: #8a7550;
  --gold-grad: linear-gradient(135deg, #8a6420 0%, #d9b45a 45%, #f3dc92 60%, #9c7326 100%);
  --shadow: 0 10px 30px rgba(107, 72, 18, .10);
  --radius: 14px;
  --serif-head: "Playfair Display", Georgia, serif;
  --serif-body: "Lora", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif-head); color: var(--brown); line-height: 1.2; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .01em; }
h3 { font-size: 1.4rem; margin: 18px 0 10px; }

.eyebrow {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}

.ornament { display: block; width: 260px; max-width: 80%; height: 20px; margin: 18px auto 0; color: var(--gold); }
.ornament-left { margin-left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-pale);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif-head); font-weight: 800; font-size: 1.35rem; color: var(--brown); text-transform: uppercase; letter-spacing: .03em; }
.brand-sub { font-size: .8rem; color: var(--gold); font-style: italic; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 1rem; color: var(--brown); position: relative; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform .3s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { border: 1.5px solid var(--gold); border-radius: 999px; padding: 6px 18px !important; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--gold); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse at center 35%, #fff 45%, var(--cream) 100%);
  overflow: hidden;
}
.hero-frame {
  position: absolute; inset: 18px;
  border: 1.5px solid var(--gold-pale);
  border-radius: 6px;
  pointer-events: none;
}
.hero-frame::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--gold-pale); border-radius: 4px;
}
.hero-inner { position: relative; }
.hero-logo {
  width: min(680px, 100%);
  margin: 0 auto;
  mix-blend-mode: multiply;
  animation: fadeUp 1.1s ease both;
}
.hero-logo-wrap { position: relative; width: min(680px, 100%); margin: 0 auto; }

/* Zlatá pečeť 25 let */
.seal {
  position: absolute; right: -40px; top: 12%;
  width: 150px; aspect-ratio: 1;
  display: grid; place-items: center;
  animation: sealIn 1s .8s cubic-bezier(.2, 1.4, .4, 1) both;
}
.seal-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 40s linear infinite;
}
.seal-ring text { font-family: var(--serif-head); font-size: 15.5px; font-weight: 700; letter-spacing: 2.6px; fill: var(--gold); }
.seal::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--gold-light);
  box-shadow: 0 8px 24px rgba(107, 72, 18, .18);
}
.seal-core {
  position: relative;
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: var(--gold-grad);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), inset 0 -6px 12px rgba(63,42,10,.25);
  color: #fff; text-shadow: 0 1px 2px rgba(63, 42, 10, .45);
}
.seal-num { font-family: var(--serif-head); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.seal-text { font-size: .72rem; font-style: italic; letter-spacing: .02em; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sealIn { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }

.hero-lead {
  max-width: 640px; margin: 0 auto 32px;
  font-size: 1.15rem;
  animation: fadeUp 1.1s .25s ease both;
}
.hero-lead strong { color: var(--brown); font-weight: 500; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1.1s .45s ease both; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--serif-head); font-weight: 600; font-size: 1.05rem;
  padding: 14px 32px; border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background-position .6s;
}
.btn-gold {
  color: var(--white);
  background: linear-gradient(120deg, #8a6420, #c89a3e 30%, #f0d487 50%, #c89a3e 70%, #8a6420);
  background-size: 250% 100%;
  box-shadow: 0 6px 18px rgba(184, 134, 47, .35);
  text-shadow: 0 1px 1px rgba(63, 42, 10, .35);
}
.btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn-outline { color: var(--brown); border: 1.5px solid var(--gold); background: var(--white); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 56px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius);
  padding: 40px 32px 34px;
  text-align: center;
  transition: transform .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid transparent; border-radius: 10px;
  transition: border-color .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { border-color: var(--gold-pale); }
.card p { margin: 0; font-size: 1rem; color: var(--text); }
.card-icon {
  width: 84px; height: 84px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px var(--gold-pale);
}
.card-icon svg { width: 44px; height: 44px; }

/* ---------- Kilometry ---------- */
.km-section {
  background:
    linear-gradient(var(--cream), var(--white) 60%);
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
}
.km-stage { position: relative; height: 300px; display: grid; place-items: center; }
.pipe { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipe path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pipe-shell { stroke: url(#gold); stroke-width: 30; }
.pipe-inner { stroke: #fffaf0; stroke-width: 20; }
.pipe-flow {
  stroke: url(#beer); stroke-width: 14;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.km-stage.run .pipe-flow { animation: flow 3.2s cubic-bezier(.6, .05, .3, 1) forwards; }
.bubbles circle { fill: #fff; stroke: var(--gold-light); stroke-width: 1; opacity: 0; }

.km-counter {
  position: relative; z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, .94);
  padding: 26px 48px 22px;
  border-radius: 18px;
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 0 0 7px rgba(255,255,255,.9), 0 0 0 8px var(--gold-pale), var(--shadow);
}
.km-number {
  font-family: var(--serif-head); font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.km-plus { margin-left: 4px; }
.km-unit { margin-top: 8px; font-style: italic; color: var(--brown); font-size: 1.15rem; }
.km-note { max-width: 680px; margin: 40px auto 0; text-align: center; color: var(--muted); }

/* ---------- O nás ---------- */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about-text .ornament { margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 34px; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.45em + 4px);
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.quote {
  margin: 0; text-align: center;
  padding: 56px 32px;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 0 0 8px var(--white), 0 0 0 9.5px var(--gold-pale);
  background: radial-gradient(circle, #fff 55%, var(--cream));
}
.quote-mark { font-family: var(--serif-head); font-size: 5rem; line-height: .5; color: var(--gold-light); }
.quote p { font-style: italic; font-size: 1.8rem; color: var(--brown); margin: 16px 0 10px; line-height: 1.3; }
.quote cite { font-style: normal; color: var(--gold); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Kontakt ---------- */
.contact { background: var(--cream); border-top: 1px solid var(--gold-pale); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-item {
  text-decoration: none; text-align: center;
  background: var(--white); border: 1px solid var(--gold-pale); border-radius: var(--radius);
  padding: 28px 20px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s, box-shadow .3s;
}
a.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-label { font-style: italic; color: var(--gold); }
.contact-value { font-family: var(--serif-head); font-weight: 600; color: var(--brown); font-size: 1.2rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 48px 0 36px; background: var(--white); border-top: 1px solid var(--gold-pale); }
.site-footer .ornament { margin: 0 auto 18px; }
.footer-brand { font-family: var(--serif-head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brown); font-size: 1.3rem; margin: 0; }
.footer-tag { font-style: italic; margin: 4px 0 18px; }
.footer-contact { margin: 0 0 14px; }
.footer-contact a { color: var(--brown); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-copy { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Animace ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: 0; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(2) { transition-delay: .15s; }
.cards .card.reveal:nth-child(3) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .pipe-flow { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .contact-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .quote { max-width: 340px; margin-inline: auto; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--gold-pale);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 14px 0 !important; width: 100%; text-align: center; }
  .nav-cta { border: 0; border-radius: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-frame { inset: 8px; }
  .seal { width: 96px; right: 0; top: 0; }
  .seal-ring text { font-size: 17px; letter-spacing: 1.5px; }
  .seal-num { font-size: 1.6rem; }
  .seal-text { font-size: .55rem; }
  .km-stage { height: 240px; }
  .km-counter { padding: 20px 24px 16px; }
  .pipe-shell { stroke-width: 22; } .pipe-inner { stroke-width: 14; } .pipe-flow { stroke-width: 9; }
}
