/* Písma jsou součástí webu (nenačítají se z Google Fonts) */
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/web/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/web/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/web/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/web/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #b3abb5;
  --surface: #0f0b0e;
  --line: #2d2531;
  --accent: #b60094;
  --accent-ink: #e65bcb;
  --on-accent: #ffffff;
  --good: #52cf92;
  --warn: #f2a93b;
  --bad: #ff7070;
  --logo-d: block;
  --logo-l: none;
  --font-display: 'Archivo Variable', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --fg: #000000; --muted: #5f5762; --surface: #f7f3f6; --line: #e3dbe2;
    --accent-ink: #b60094; --good: #0d7a49; --warn: #8f5400; --bad: #b3261e;
    --logo-d: none; --logo-l: block; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ffffff; --fg: #000000; --muted: #5f5762; --surface: #f7f3f6; --line: #e3dbe2;
  --accent-ink: #b60094; --good: #0d7a49; --warn: #8f5400; --bad: #b3261e;
  --logo-d: none; --logo-l: block; color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0;
}
h1 { font-size: clamp(2rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 2.3vw, 1.4rem); line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.eyebrow {
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.muted { color: var(--muted); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo-d { display: var(--logo-d); }
.logo-l { display: var(--logo-l); }
.top img { height: 26px; width: auto; max-width: none; }
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  font: 600 0.8rem/1 var(--font-body);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero .lead { max-width: 40rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }

/* sections */
section { border-top: 1px solid var(--line); padding-block: clamp(48px, 8vw, 96px); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 42rem; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); margin-top: 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.tag { display: inline-block; font: 500 0.8rem/1.3 var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font: 500 0.85rem/1.3 var(--font-body); color: var(--muted); }
.input { position: relative; }
.input input {
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 52px 12px 14px;
  font: 600 1.1rem/1.2 var(--font-body);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.input input:focus { border-color: var(--accent-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 30%, transparent); }
.input .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 0.8rem/1 var(--font-body); color: var(--muted); pointer-events: none; }
.result-label { font: 600 0.75rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.result-main { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; margin: 8px 0 14px; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 600 0.8rem/1 var(--font-body); padding: 7px 12px; border-radius: 999px; border: 1px solid currentColor; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill[data-state="good"] { color: var(--good); }
.pill[data-state="warn"] { color: var(--warn); }
.pill[data-state="bad"] { color: var(--bad); }
dl { margin: 22px 0 0; }
.dl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 0.92rem; }
dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* pack rows */
.rows { margin-top: 40px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row p { color: var(--muted); }

.price { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.price-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.price-now { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-per { color: var(--muted); font-size: 1.25rem; }
/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.step { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--accent-ink); }
.step p { color: var(--muted); }

/* about + contact */
.about { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 500; line-height: 1.4; max-width: 40rem; margin-top: 20px; text-wrap: pretty; }
.contact-panel { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; }
.mail { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(1.05rem, 3.2vw, 1.6rem); overflow-wrap: anywhere; user-select: all; min-width: 0; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copied { font-size: 0.85rem; color: var(--good); min-width: 6ch; }

footer { border-top: 1px solid var(--line); padding-block: 32px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }
.foot img { height: 18px; width: auto; max-width: none; }

@media (max-width: 800px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Doplněno pro ostrý web */
.top-right { display: flex; align-items: center; gap: 10px; }
.login { font: 600 0.9rem/1 var(--font-body); color: var(--fg); text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
.login:hover { border-color: var(--fg); }
.note-soon { margin-top: 6px; font-size: 0.9rem; color: var(--muted); max-width: 34rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
@media (max-width: 480px) { .login { padding: 9px 12px; } }