:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #203c2d;
  background: #1b3a64;
  font-synthesis: none;
  --blue: #1b3a64;
  --gold: #d8bd79;
  --green: #4a8132;
  --ink: #203c2d;
  --muted: #667264;
  --line: #dfe6d8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.app-shell { position: relative; width: min(1160px, calc(100% - 240px)); margin: auto; padding: 30px 0 100px; }
.dilution-ribbon { position: fixed; top: 50%; left: 28px; transform: translateY(-50%); pointer-events: none; }
.dilution-ribbon span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); padding: 18px 11px; border-radius: 10px; background: var(--gold); color: #122a49; font-weight: 800; letter-spacing: .06em; font-size: 15px; box-shadow: 0 10px 24px #122a492e; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0 24px; border-bottom: 1px solid #d8bd794d; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 9px; object-fit: contain; }
.brand small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .09em; font-weight: 800; }
.back-link { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.intro { padding: 28px 24px 30px; margin: 26px 0 24px; border-radius: 18px; background: var(--green); color: #fff; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .18em; margin: 0 0 14px; }
h1 { max-width: 24ch; margin: 0 auto 16px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 3.5vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; }
.intro > p:last-child { font-size: 14px; line-height: 1.6; margin: 0; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px #122a4914; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.step { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid #c8d8bb; border-radius: 50%; font-size: 10px; font-weight: 700; color: var(--green); }
.connection { margin-left: auto; font-size: 11px; color: var(--muted); }
.inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field-tile { min-width: 0; min-height: 134px; padding: 16px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fcfdf9; }
.field-tile label { display: block; min-height: 30px; margin-bottom: 10px; font-size: 12px; font-weight: 600; line-height: 1.4; color: #475845; }
.input-with-unit { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.input-with-unit input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 2px; background: transparent; font-size: 27px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.input-with-unit span { font-size: 14px; color: #61725b; white-space: nowrap; }
.input-with-unit .litre-unit { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; color: var(--ink); }
.input-with-unit.ratio > span { font-size: 24px; color: var(--ink); }
.field-tile small { display: block; margin-top: 10px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 44px; padding: 13px 18px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .15s; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #3e7128; }
.secondary { background: var(--blue); color: #fff; border-color: var(--blue); }
.secondary:hover { background: #122a49; }
.calculate-button { width: 100%; justify-content: space-between; margin-top: 16px; background: var(--gold); color: var(--blue); font-size: 14px; font-weight: 800; }
.calculate-button:hover { background: #e5cb8b; }
.calculate-button span { font-size: 21px; font-weight: 400; }
.result { padding: 23px 18px; margin-top: 22px; border-radius: 12px; background: var(--green); color: #fff; text-align: center; }
.result > p:first-child { margin: 0 0 9px; font-size: 15px; font-weight: 700; }
.result output { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 54px; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.result output small { font-family: Georgia, 'Times New Roman', serif; font-size: 27px; white-space: nowrap; }
#yield { margin: 10px 0 0; font-size: 18px; font-weight: 800; line-height: 1.6; }
.calculation-note { margin: 12px 2px 22px; font-size: 14px; color: #475845; line-height: 1.6; }
.save-row { border-top: 1px solid var(--line); padding-top: 20px; }
.save-row > label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.save-row label span { font-weight: 400; color: var(--muted); }
.save-row > div { display: flex; gap: 9px; align-items: stretch; }
.save-row input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--ink); }
.save-row input::placeholder { color: #77816f; }
.save-row button { flex: none; padding: 12px; font-size: 11px; }
.storage-message { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--green); }
.storage-message:empty { display: none; }
.count { margin-left: auto; padding: 4px 9px; border-radius: 20px; background: #f0f4ea; font-size: 11px; color: #57714d; }
.empty { text-align: center; padding: 24px 0 32px; }
.empty img { object-fit: contain; margin-bottom: 8px; }
.empty p { font-size: 14px; margin: 8px 0; color: #4d6047; }
.empty small { font-size: 12px; line-height: 1.7; color: var(--muted); }
.privacy-note { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; line-height: 1.7; color: #475845; margin: 16px 0 0; }
.saved-list { padding: 0; margin: 0; list-style: none; max-height: 670px; overflow: auto; overscroll-behavior: contain; }
.saved-item { border-top: 1px solid var(--line); padding: 18px 0; }
.saved-item:first-child { border-top: 0; padding-top: 0; }
.saved-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.saved-heading strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.best-price { font-size: 10px; background: #eaf2df; border-radius: 20px; padding: 4px 7px; color: #36632c; }
.saved-price { font-family: Georgia, 'Times New Roman', serif; font-size: 32px; color: #356329; margin: 9px 0 8px; }
.saved-price small { font-size: 19px; }
.saved-detail { font-size: 17px; font-weight: 700; color: #475845; margin: 0; line-height: 1.6; }
.saved-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.text-button { min-height: 36px; padding: 9px 0; border: 0; background: transparent; font-size: 12px; font-weight: 600; color: #376a2b; text-decoration: underline; text-underline-offset: 3px; }
.text-button.remove { color: #7b7168; font-weight: 400; }
.notice { margin: 0 0 18px; padding: 12px; border-radius: 8px; background: #f0f6e8; font-size: 12px; color: #3d6033; line-height: 1.5; }
.error { padding: 12px; border-radius: 8px; background: #fff4f1; font-size: 12px; color: #9f3025; line-height: 1.5; }
input[aria-invalid=true] { outline: 2px solid #a13d30; outline-offset: 3px; }
.install-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px 26px; margin-top: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.install-card > img { border-radius: 12px; background: var(--green); flex: none; }
.install-card > div:not(.install-help) { flex: 1; min-width: 180px; }
.install-card h2 { font-size: 16px; }
.install-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
#offline-status { font-size: 11px; color: #47713b; }
.install-card > .button { flex: none; font-size: 13px; }
.install-help { width: 100%; padding-top: 15px; border-top: 1px solid var(--line); }
footer { text-align: center; color: #fff; font-size: 11px; padding: 28px 0 0; line-height: 1.8; }
footer span { margin: 0 8px; color: var(--gold); }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .saved-list { max-height: 460px; }
  .empty { padding: 8px 0 16px; }
  .empty img { width: 60px; height: 60px; }
}
@media (max-width: 900px) {
  .app-shell { width: calc(100% - 40px); padding: 86px 0 92px; }
  .corner-logo { width: 80px; }
  .top-left, .top-right { top: 20px; }
  .top-left, .bottom-left { left: 20px; }
  .top-right, .bottom-right { right: 20px; }
  .app-header { margin-bottom: 64px; }
  .dilution-ribbon { position: absolute; top: 174px; left: 20px; transform: none; }
  .dilution-ribbon span { writing-mode: horizontal-tb; transform: none; padding: 10px 14px; font-size: 11px; letter-spacing: .12em; }
  .intro { margin-top: 0; }
}
@media (max-width: 520px) {
  .app-shell { width: calc(100% - 32px); }
  .app-header { gap: 10px; padding: 4px 0 20px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { font-size: 8px; letter-spacing: .025em; max-width: 140px; line-height: 1.5; }
  .back-link { font-size: 11px; }
  .dilution-ribbon { left: 16px; top: 164px; }
  .intro { padding: 24px 16px; }
  h1 { font-size: 33px; }
  .eyebrow { font-size: 10px; }
  .intro > p:last-child { font-size: 13px; }
  .workspace { gap: 16px; }
  .card { padding: 20px 16px; border-radius: 14px; }
  .card-heading { margin-bottom: 20px; }
  .inputs { gap: 7px; }
  .field-tile { padding: 12px 8px; }
  .field-tile label { font-size: 11px; min-height: 32px; }
  .input-with-unit { gap: 4px; }
  .input-with-unit input { font-size: 24px; }
  .input-with-unit span { font-size: 12px; }
  .input-with-unit .litre-unit { font-size: 23px; }
  .input-with-unit.ratio > span { font-size: 21px; }
  .field-tile small { font-size: 9px; }
  .result { padding: 22px 12px; margin-top: 18px; }
  .result output { font-size: 48px; }
  .result output small { font-size: 25px; }
  .result > p:first-child { font-size: 14px; }
  .save-row > div { flex-direction: column; }
  .save-row input, .save-row button { font-size: 13px; }
  .install-card { padding: 20px 16px; gap: 12px; }
  .install-card > img { width: 48px; height: 48px; }
  .install-card h2 { font-size: 15px; }
  .install-card > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  :root { background: #fff; }
  .app-shell { width: 100%; padding: 0; }
  .page-brands, .dilution-ribbon, .app-header, .install-card, button, .save-row, .intro, .storage-message, footer { display: none; }
  .workspace { display: block; }
  .card { break-inside: avoid; box-shadow: none; margin-bottom: 16px; }
  .saved-list { max-height: none; overflow: visible; }
}

.comparison-column { min-width: 0; }
.calculator-promo { display: block; margin: 24px auto 0; max-width: 100%; }
.calculator-promo img { display: block; width: 100%; height: auto; border-radius: 12px; }
@media(max-width:1100px) { .calculator-promo { display: none; } }
@media(max-width:900px) {
  .dilution-ribbon { display: none; }
  .app-shell { padding: 12px 0 32px; }
  .app-header { margin-bottom: 0; padding-bottom: 12px; }
  .intro { padding: 14px 12px; margin: 14px 0; }
  .intro h1 { font-size: 28px; margin-bottom: 8px; }
  .eyebrow { margin-bottom: 6px; font-size: 9px; }
  .card-heading { margin-bottom: 12px; }
  .card { padding: 16px 12px; }
  .field-tile { min-height: 114px; padding: 10px 8px; }
  .field-tile label { margin-bottom: 6px; }
  .field-tile small { margin-top: 6px; }
  .calculate-button { margin-top: 10px; min-height: 44px; padding: 9px 12px; }
  .result { padding: 14px 10px; margin-top: 12px; }
  .result output { font-size: 42px; }
  #yield { font-size: 16px; line-height: 1.4; margin-top: 6px; }
  .notice { padding: 8px; margin-bottom: 10px; }
}

.promo-fallback { display: block; padding: 28px 20px; border: 1px solid var(--gold); border-radius: 12px; background: var(--green); color: #fff; text-align: center; font-size: 22px; font-weight: 800; line-height: 1.4; }
.promo-fallback small { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; }
.calculator-promo { text-decoration: none; }
@media print { .calculator-promo { display: none; } }

@media(max-width:520px) {
 .app-shell { padding-top: 8px; }
 .app-header { padding: 4px 0 10px; }
 .brand small { display: none; }
 .intro { padding: 10px 12px; margin: 10px 0; }
 .intro .eyebrow, .intro > p:last-child { display: none; }
 .intro h1 { font-size: clamp(22px, 6.4vw, 26px); margin: 0 auto; }
 .card-heading { margin-bottom: 10px; }
}

/* Kompaktní první obrazovka kalkulačky na počítači. */
@media(min-width:901px) {
 .app-shell { padding-top:16px; }
 .app-header { padding:6px 0 14px; }
 .intro { padding:12px 20px; margin:14px 0 16px; }
 .intro .eyebrow { margin-bottom:6px; }
 .intro h1 { max-width:none; font-size:clamp(26px,2.5vw,34px); margin-bottom:6px; }
 .card { padding:20px; }
 .card-heading { margin-bottom:14px; }
 .field-tile { min-height:120px; padding:12px 10px; }
 .calculate-button { margin-top:12px; }
 .result { padding:16px 14px; margin-top:16px; }
}
@media(min-width:901px) and (max-height:720px) {
 .app-shell { padding-top:8px; }
 .app-header { padding:4px 0 8px; }
 .intro { padding:10px 16px; margin:10px 0 12px; }
 .intro .eyebrow, .intro > p:last-child { display:none; }
 .intro h1 { margin-bottom:0; }
 .card { padding:16px; }
 .card-heading { margin-bottom:10px; }
 .field-tile { min-height:100px; padding:10px; }
 .result { padding:12px; margin-top:12px; }
 .result output { font-size:46px; }
}
