/* ==========================================================================
   Domovní Kompas — sandingco.digital
   Tmavé matné rozhraní pro správu rodinného rozpočtu
   ========================================================================== */

:root {
  --bg: #0d1012;
  --bg-soft: #11161a;
  --surface: #161c20;
  --surface-2: #1b2328;
  --surface-3: #212a30;
  --line: #262f35;
  --line-soft: #1f272c;

  --text: #eceff1;
  --text-2: #b8c2c8;
  --muted: #8d99a0;

  --brass: #d8b26a;
  --brass-soft: #e8cf9c;
  --brass-dim: rgba(216, 178, 106, 0.14);
  --steel: #7fa6b8;
  --steel-dim: rgba(127, 166, 184, 0.14);
  --sage: #86b09a;
  --clay: #c2836d;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 60px -28px rgba(0, 0, 0, 0.95);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1160px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(216, 178, 106, 0.09), transparent 62%),
    radial-gradient(760px 480px at 4% 12%, rgba(127, 166, 184, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brass-soft); text-decoration: none; }
a:hover { color: var(--brass); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: #f4f6f7;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.35rem); }

p { margin: 0 0 1.05em; color: var(--text-2); }

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

::selection { background: rgba(216, 178, 106, 0.3); color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 92px 0; position: relative; }
.section--tight { padding: 62px 0; }
.section--line { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.head { max-width: 640px; margin-bottom: 46px; }
.head p { font-size: 1.02rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: #14181b;
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease, color 0.22s ease;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(160deg, var(--brass-soft), var(--brass) 58%, #bd9450);
  color: #191b17;
  box-shadow: 0 14px 30px -18px rgba(216, 178, 106, 0.85);
}
.btn--primary:hover {
  transform: translateY(-2px);
  color: #191b17;
  box-shadow: 0 20px 38px -18px rgba(216, 178, 106, 0.95);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(216, 178, 106, 0.55);
  background: rgba(216, 178, 106, 0.07);
  color: var(--text);
  transform: translateY(-2px);
}
.btn--wide { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.87rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 16, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(13, 16, 18, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-2);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--brass); }

.burger {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19.5px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 58px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: var(--brass-soft);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero-lead { font-size: 1.08rem; max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- Kalkulačka (signature) ---------- */
.ledger {
  background: linear-gradient(168deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px;
  box-shadow: var(--shadow-lift);
}
.ledger-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.ledger-top h2,
.ledger-top h3 {
  font-size: 1.06rem;
  margin: 0;
}
.ledger-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(216, 178, 106, 0.35);
  background: var(--brass-dim);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.field { margin-bottom: 15px; }
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field label output,
.field-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brass) var(--fill, 40%), var(--surface-3) var(--fill, 40%));
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1e3c6;
  border: 4px solid #8f6f36;
  cursor: grab;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1e3c6;
  border: 4px solid #8f6f36;
  cursor: grab;
}

.bar {
  display: flex;
  width: 100%;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
  margin: 22px 0 14px;
}
.bar span {
  display: block;
  height: 100%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}
.bar .s-home { background: linear-gradient(180deg, #4b6a79, #3b5462); }
.bar .s-food { background: linear-gradient(180deg, #6f8f7e, #55705f); }
.bar .s-move { background: linear-gradient(180deg, #a0764c, #7f5c39); }
.bar .s-else { background: linear-gradient(180deg, #4e565c, #3b4247); }
.bar .s-save { background: linear-gradient(180deg, var(--brass-soft), var(--brass)); }

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.legend .c-home { background: #4b6a79; }
.legend .c-food { background: #6f8f7e; }
.legend .c-move { background: #a0764c; }
.legend .c-else { background: #4e565c; }
.legend .c-save { background: var(--brass); }

.result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.result-box {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.result-box b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.result-box b.is-warn { color: var(--clay); }
.result-box b.is-good { color: var(--brass-soft); }
.result-box small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.ledger-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Trust strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.strip div {
  background: var(--bg-soft);
  padding: 24px 22px;
}
.strip b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brass-soft);
  letter-spacing: -0.02em;
}
.strip span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Karty služeb ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 178, 106, 0.34);
  box-shadow: var(--shadow-lift);
}
.card figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 16, 18, 0.15), rgba(13, 16, 18, 0.82));
}
.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03) brightness(0.86);
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover figure img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 0.93rem; margin-bottom: 14px; }
.card-list {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 7px;
}
.card-list li { display: flex; gap: 9px; }
.card-list li::before { content: "—"; color: var(--brass); flex: none; }

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); gap: 20px; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  position: relative;
}
.step-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { font-size: 0.89rem; margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.88);
}
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-2);
}
.facts li b { color: var(--text); font-weight: 600; }
.facts i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brass-dim);
  border: 1px solid rgba(216, 178, 106, 0.3);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--brass);
  margin-top: 3px;
}

/* ---------- Ceník ---------- */
.plan-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 34px;
}
.plan-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}
.plan-switch button[aria-pressed="true"] {
  background: var(--brass);
  color: #191b17;
}

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 22px; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 26px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.plan:hover { border-color: rgba(216, 178, 106, 0.3); transform: translateY(-3px); }
.plan--featured {
  border-color: rgba(216, 178, 106, 0.48);
  background: linear-gradient(170deg, rgba(216, 178, 106, 0.09), var(--surface) 52%);
  box-shadow: var(--shadow-lift);
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.plan-name em {
  font-style: normal;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  color: #191b17;
  background: var(--brass);
  padding: 3px 9px;
  border-radius: 999px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.plan-price sup { font-size: 0.9rem; vertical-align: super; color: var(--muted); }
.plan-period { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; display: block; }
.plan > p { font-size: 0.9rem; }
.plan ul {
  list-style: none;
  margin: 6px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
}
.plan ul li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.plan ul li::before {
  content: "✓";
  color: var(--brass);
  font-size: 0.82rem;
  line-height: 1.55;
}
.plan ul li.is-off { color: var(--muted); opacity: 0.72; }
.plan ul li.is-off::before { content: "×"; color: var(--muted); }
.plan .btn { margin-top: auto; }

.pricing-notes {
  margin-top: 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.018);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 34px;
  font-size: 0.87rem;
  color: var(--muted);
}
.pricing-notes h3 { font-size: 0.98rem; margin-bottom: 6px; color: var(--text); }
.pricing-notes p { margin: 0; font-size: 0.87rem; }
.pricing-notes strong { color: var(--text-2); }

/* ---------- Reference ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote p { font-size: 0.95rem; margin: 0; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.quote img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.7);
  border: 1px solid var(--line);
}
.quote b { display: block; font-size: 0.9rem; color: var(--text); }
.quote small { color: var(--muted); font-size: 0.78rem; }
.stars { color: var(--brass); font-size: 0.8rem; letter-spacing: 0.16em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.22s ease;
}
.faq details[open] { border-color: rgba(216, 178, 106, 0.32); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 54px 19px 22px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 22px 20px; }
.faq .faq-a p { margin: 0; font-size: 0.92rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 42px;
  align-items: start;
}
.form-card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 68%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}
.form-field label span { color: var(--brass); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 118px; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 178, 106, 0.6);
  background: rgba(0, 0, 0, 0.4);
  outline: none;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] { border-color: var(--clay); }

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.check input { width: 18px; height: 18px; accent-color: var(--brass); margin-top: 2px; }
.err {
  display: block;
  color: var(--clay);
  font-size: 0.76rem;
  min-height: 1.1em;
  margin-top: 5px;
}
.form-note { font-size: 0.76rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-ok {
  display: none;
  border: 1px solid rgba(134, 176, 154, 0.4);
  background: rgba(134, 176, 154, 0.1);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #cfe3d8;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-ok.is-on { display: block; }

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
}
.info-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.8);
}
.info-body { padding: 24px 26px 26px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 0.9rem; }
.info-list b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 2px;
}
.info-list i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--steel-dim);
  border: 1px solid rgba(127, 166, 184, 0.28);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--steel);
}
.info-list a { color: var(--text); }
.info-list a:hover { color: var(--brass); }
.hours { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.hours dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 16px;
  font-size: 0.85rem;
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-family: var(--font-mono); color: var(--text-2); }

/* ---------- CTA pruh ---------- */
.cta-band {
  border: 1px solid rgba(216, 178, 106, 0.28);
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, rgba(216, 178, 106, 0.13), rgba(127, 166, 184, 0.07) 60%, transparent);
  padding: 40px 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
  padding: 56px 0 30px;
  margin-top: 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.foot-grid p { font-size: 0.87rem; margin-bottom: 0.8em; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.88rem; }
.foot-list a { color: var(--text-2); }
.foot-list a:hover { color: var(--brass); }
.foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.foot-bottom p { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* ---------- Cookie lišta ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  width: min(940px, calc(100% - 32px));
  background: rgba(20, 25, 29, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 1);
  padding: 22px 24px;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie.is-on { transform: translate(-50%, 0); }
.cookie h3 { font-size: 1rem; margin-bottom: 6px; }
.cookie p { margin: 0; font-size: 0.84rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-prefs {
  grid-column: 1 / -1;
  display: none;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.cookie-prefs.is-on { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cookie-prefs label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  align-items: start;
}
.cookie-prefs label b { display: block; color: var(--text-2); font-size: 0.84rem; }
.cookie-prefs input { accent-color: var(--brass); width: 17px; height: 17px; margin-top: 2px; }

/* ---------- Právní stránky ---------- */
.legal { padding: 60px 0 80px; }
.legal-wrap { max-width: 840px; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 22px;
  margin-bottom: 34px;
}
.legal h2 { font-size: clamp(1.28rem, 2.4vw, 1.62rem); margin-top: 44px; }
.legal h3 { font-size: 1.06rem; margin-top: 28px; }
.legal p, .legal li { font-size: 0.95rem; color: var(--text-2); }
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 1.1em; }
.legal li { margin-bottom: 8px; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 26px;
  font-size: 0.88rem;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal td { color: var(--text-2); }
.legal-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}
.legal-box p:last-child { margin-bottom: 0; }
.crumbs {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brass); }

/* ---------- Animace při scrollu ---------- */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rise.is-in { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 16, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    transform: translateY(-140%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 15px 0; font-size: 0.98rem; }
  .nav-links a::after { display: none; }
  .burger { display: block; }
  .nav-phone { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .hero { padding: 46px 0 60px; }
  .ledger { padding: 20px 18px; }
  .strip { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band { padding: 30px 24px; }
  .cta-band .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .cookie { grid-template-columns: 1fr; padding: 20px; }
  .cookie-actions .btn { flex: 1 1 100%; }
  .result { grid-template-columns: 1fr; }
  .legal table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .rise { opacity: 1; transform: none; }
}
