/* ROI kalkulačka AITEC – společné styly veřejné a obchodní verze. Barvy a písmo podle webu aitecrobotics.cz. */
:root {
  --ink: #151515; --paper: #F2F4F5; --surface: #FFFFFF; --line: #DCDFE1; --muted: #6A7075;
  --accent: #299FD2; --accent-deep: #17698F; --accent-soft: #E6F3FA;
  --robot: #299FD2; --rucne: #B9C0C5; --docisteni: #F2B544;
  --good: #1E8A5A; --bad: #C2413B;
  --r: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.lista { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 40px); }
.lista img { height: 30px; width: auto; }
.lista a { color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; margin: 10px 0 14px; max-width: 18ch; }
.uvod { color: var(--muted); max-width: 52ch; margin: 0; font-size: 17px; }

.karta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
.skupina + .skupina { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.skupina > h2, .skupina > h3 { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

.pole { margin-bottom: 16px; }
.pole:last-child { margin-bottom: 0; }
.pole > label, .pole > .l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; font-size: 15px; margin-bottom: 7px; }
.napoveda { font-size: 13px; color: var(--muted); margin-top: 5px; }
.vstup { display: inline-flex; align-items: baseline; gap: 6px; }
.vstup input, input.pln, select.pln { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px 10px; font-weight: 600; font-size: 16px; line-height: 1.2; }
.vstup input { width: 110px; text-align: right; }
.vstup span { color: var(--muted); font-size: 13px; font-weight: 400; }
input.pln, select.pln { width: 100%; font-weight: 500; }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; height: 26px; }

.volby { display: flex; flex-wrap: wrap; gap: 6px; }
.volby button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.volby button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tlacitko { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; padding: 14px 18px; cursor: pointer; text-decoration: none; }
.tlacitko:hover { background: var(--accent-deep); }
.tlacitko.vedlejsi { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tlacitko.vedlejsi:hover { background: var(--paper); }
.tlacitko[disabled] { opacity: .6; cursor: progress; }
.chyba { color: var(--bad); font-size: 13px; min-height: 1em; margin-top: 8px; }

/* Podlaha: kdo uklízí kterou část plochy (signaturní prvek) */
.podlaha { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; margin: 4px 0 10px; }
.podlaha i { aspect-ratio: 1; border-radius: 2px; background: var(--rucne); transition: background-color .35s; }
.podlaha i.r { background: var(--robot); }
.podlaha i.d { background: var(--docisteni); }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legenda b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 3D náhled robota */
.tl-3d { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tl-3d:hover { border-color: var(--accent); color: var(--accent-deep); }
.okno-3d { width: min(960px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.okno-3d::backdrop { background: rgba(21,21,21,.55); }
.okno-3d-hlava { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.okno-3d-zavrit { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.okno-3d-scena { height: min(70vh, 520px); background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #E9EDF0 70%); display: grid; place-items: center; }
.okno-3d-scena model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.okno-3d-nacitam { color: var(--muted); font-size: 14px; }
.okno-3d-foto { max-width: 86%; max-height: 92%; object-fit: contain; }
.okno-video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.okno-3d-pozn { margin: 0; padding: 10px 18px 14px; font-size: 12.5px; color: var(--muted); }
@media print { .tl-3d { display: none !important; } }
.okno-3d-scena:has(.okno-video) { height: auto; aspect-ratio: 16 / 9; background: #000; }
