/* ==========================================================
   ELVAPOS — prodejní web (redesign 2026)
   ========================================================== */
:root {
  --ink: #101d2c;
  --ink-soft: #42506b;
  --muted: #68748c;
  --bg: #f7f6f3;
  --card: #ffffff;
  --line: #e6e4de;
  --primary: #047857;          /* akcentní zelená (dřív modrá) */
  --primary-dark: #065f46;
  --primary-soft: #e7f5ef;
  --success: #107c10;
  --danger: #e81123;
  --dark: #101d2c;
  --gray: #68748c;
  --light: #f3f2f1;
  --navy: #0f1b2d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,29,44,.05), 0 12px 32px -16px rgba(16,29,44,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "SF Pro Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,243,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #047857, #059669);
  display: grid; place-items: center; color: #fff; flex: none;
}
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.topbar nav a {
  padding: 8px 14px; border-radius: 9px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
}
.topbar nav a:hover { color: var(--ink); background: rgba(16,29,44,.05); }
.topbar nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
.topbar nav a.nav-cta {
  background: var(--primary); color: #fff; padding: 10px 18px;
  box-shadow: 0 6px 16px -6px rgba(4,120,87,.5);
}
.topbar nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: .15s; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary,
.btn-accent {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(4,120,87,.5);
}
.btn-primary:hover, .btn-accent:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-blue {
  background: var(--card); color: var(--ink);
  border-color: var(--line);
}
.btn-blue:hover { border-color: #cfcdc6; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ---------- Sekce ---------- */
.section { padding: 72px 0; }
.section.alt { background: transparent; }
.section h2 { font-size: clamp(26px, 3.2vw, 36px); text-align: center; margin-bottom: 36px; letter-spacing: -.02em; line-height: 1.15; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
.sec-head { margin-bottom: 40px; }
.sec-head h2 { text-align: left; margin-bottom: 0; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { text-align: center; }
.sec-head .lead { color: var(--ink-soft); max-width: 60ch; margin-top: 12px; font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.01em; }
.card .ico { font-size: 2rem; margin-bottom: 10px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13.5px; font-weight: 700; border-radius: 999px;
  padding: 7px 14px; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08;
  letter-spacing: -.025em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .sub { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 52ch; }
.hero .btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-checks { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.hero-checks span { display: flex; align-items: center; gap: 7px; }
.hero-checks svg { color: var(--primary); flex: none; }

/* Monitor mockup */
.monitor { filter: drop-shadow(0 30px 40px rgba(16,29,44,.22)); }
.mon-frame { background: #1b2433; border-radius: 18px; padding: 12px; border: 1px solid #2c3850; }
.mon-screen { background: #eceef1; border-radius: 8px; overflow: hidden; font-size: 9px; }
.mon-stand { width: 120px; height: 14px; background: #28324a; margin: 0 auto; border-radius: 0 0 8px 8px; }
.mon-base { width: 220px; height: 8px; background: #1b2433; margin: 0 auto; border-radius: 99px; }
.pos-top { background: #101827; color: #e8edf5; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-weight: 700; }
.pos-top small { color: #93a3bd; font-weight: 600; }
.pos-body { display: grid; grid-template-columns: 96px 1fr; gap: 6px; padding: 6px; background: #dfe3e8; }
.pos-cart { background: #fff; border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.pos-cart .ci { display: flex; justify-content: space-between; color: #3c4a61; border-bottom: 1px solid #eef0f3; padding-bottom: 3px; }
.pos-cart .ci b { color: #101d2c; }
.pos-total { margin-top: auto; background: #f1f7f4; border-radius: 5px; text-align: center; padding: 5px 4px; font-weight: 800; color: #065f46; }
.pos-total div { font-size: 13px; }
.pos-pay { background: #f39c12; border-radius: 5px; color: #fff; text-align: center; font-weight: 800; padding: 6px 0; letter-spacing: .03em; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tile {
  border-radius: 6px; color: #fff; padding: 6px 5px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 44px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.tile small { font-weight: 600; opacity: .92; }
.t1 { background: linear-gradient(135deg,#fbd38d,#f6ad55); }
.t2 { background: linear-gradient(135deg,#9f7aea,#805ad5); }
.t3 { background: linear-gradient(135deg,#68d391,#38a169); }
.t4 { background: linear-gradient(135deg,#63b3ed,#3182ce); }
.t5 { background: linear-gradient(135deg,#fc8181,#e53e3e); }
.t6 { background: linear-gradient(135deg,#f687b3,#d53f8c); }
.t7 { background: linear-gradient(135deg,#4fd1c5,#319795); }
.t8 { background: linear-gradient(135deg,#b794f4,#6b46c1); }
.t9 { background: linear-gradient(135deg,#a0aec0,#718096); }

/* ---------- Pás důvěry ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); padding: 26px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip b { display: block; font-size: 22px; letter-spacing: -.02em; }
.strip span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- Ukázky (screenshoty) ---------- */
.show { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-top: 64px; }
.show.flip { grid-template-columns: 1.15fr 1fr; }
.show.flip .show-text { order: 2; }
.show.flip .shot { order: 1; }
.show h3 { font-size: 24px; letter-spacing: -.015em; margin-bottom: 10px; }
.show p { color: var(--ink-soft); font-size: 16px; }
.show ul { margin-top: 14px; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--ink-soft); }
.show li { display: flex; gap: 9px; align-items: flex-start; }
.show li svg { flex: none; margin-top: 4px; color: var(--primary); }
.shot { background: #1b2433; border-radius: 14px; padding: 9px; box-shadow: var(--shadow); }
.shot img { border-radius: 7px; }

/* ---------- Srovnání (tmavý blok) ---------- */
.cmp {
  background: var(--navy); color: #eef2f8; border-radius: 24px;
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cmp .kicker { color: #5eead4; }
.cmp h2 { color: #fff; text-align: left; margin-bottom: 0; }
.cmp .cmp-lead { color: #aeb9cc; margin-top: 14px; font-size: 16px; }
.cmp-cards { display: flex; flex-direction: column; gap: 14px; }
.cmp-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.cmp-card.win { background: rgba(16,185,129,.14); border-color: rgba(52,211,153,.45); }
.cmp-card.lose { opacity: .88; }
.cmp-card.lose .cmp-price { color: #f0a7a7; }
.cmp-card.lose .cmp-price s { text-decoration-thickness: 2.5px; text-decoration-color: rgba(248,113,113,.9); }
.cmp-card b { font-size: 16px; }
.cmp-card small { display: block; color: #9fb0c7; font-weight: 500; margin-top: 2px; }
.cmp-card.win small { color: #8fd9c0; }
.cmp-price { font-size: 22px; font-weight: 800; white-space: nowrap; }
.cmp-price small { font-size: 13px; font-weight: 600; }
.cmp-card.win .cmp-price { color: #34d399; }
.cmp-note { font-size: 12.5px; color: #7f8ea6; margin-top: 6px; }

/* ---------- Ceník ---------- */
.price-card { text-align: left; position: relative; display: flex; flex-direction: column; border-radius: 20px; padding: 32px 28px; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); transform: scale(1.03); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.price-card h3 { font-size: 17px; color: var(--ink-soft); }
.price-card .price { font-size: 38px; font-weight: 800; color: var(--ink); margin: 10px 0 2px; line-height: 1.1; letter-spacing: -.03em; }
.price-card .price small {
  display: block; font-size: 14.5px; color: var(--muted); font-weight: 600;
  line-height: 1.3; margin-top: 6px; letter-spacing: 0;
}
.price-card ul { list-style: none; margin: 20px 0 26px; text-align: left; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.price-card ul li { padding: 0 0 0 26px; position: relative; }
.price-card ul li::before { content: "✓"; color: var(--primary); font-weight: 800; position: absolute; left: 4px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- Kroky ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; margin-bottom: 18px; align-items: flex-start; }
.step .num {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 4px 10px -2px rgba(4,120,87,.5);
}
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; counter-reset: step4; }
.step4 { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; box-shadow: var(--shadow); }
.step4::before {
  counter-increment: step4; content: counter(step4);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 4px 10px -2px rgba(4,120,87,.5);
}
.step4 h3 { font-size: 15.5px; margin: 8px 0 6px; }
.step4 p { font-size: 14px; color: var(--ink-soft); }
.step4 code { background: var(--primary-soft); color: var(--primary-dark); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 19px 24px; font-weight: 700; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- CTA band ---------- */
.band {
  background: linear-gradient(135deg, #065f46, #047857);
  border-radius: 24px; text-align: center; padding: 60px 32px; color: #fff;
}
.band h2 { color: #fff; margin-bottom: 0; }
.band p { color: #c6ede0; margin: 14px auto 28px; max-width: 52ch; }
.band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.band .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.band .btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------- Formuláře (objednávka, admin login) ---------- */
.form-card { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--gray); margin-top: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #cfcdc6; border-radius: 9px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 0.92rem; color: var(--ink-soft); }
.consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--primary); }
.consent a { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-error { background: #fde7e9; color: #a4262c; border: 1px solid #f1707b; }
.alert-ok { background: #dff6dd; color: #0b6a0b; border: 1px solid #6bb700; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #7fc8ac; }

/* Výběr produktu */
.product-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.product-pick label {
  border: 2px solid #cfcdc6; border-radius: 12px; padding: 16px; cursor: pointer; display: block; background: #fff;
}
.product-pick input { display: none; }
.product-pick input:checked + span .pp-title { color: var(--primary-dark); }
.product-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pp-title { font-weight: 800; display: block; }
.pp-price { font-size: 1.4rem; font-weight: 800; }

/* Stav objednávky */
.status-box { max-width: 560px; margin: 0 auto; text-align: center; }
.key-box {
  background: var(--primary-soft); border: 2px solid var(--primary); border-radius: 12px;
  padding: 20px; margin: 20px 0;
  font-size: 1.7rem; font-weight: 800; letter-spacing: 2px;
}

/* ---------- Patička ---------- */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 48px 0 32px; margin-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }

/* Textové (právní) stránky */
.legal { max-width: 840px; }
.legal h2 { margin-bottom: 6px; }
.legal h3 { margin: 26px 0 8px; font-size: 18px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.legal p { margin: 8px 0; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.foot-grid .brand { margin-bottom: 12px; }
.foot-claim { font-size: 14px; color: var(--muted); max-width: 36ch; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--ink-soft); }
.footer ul a { color: var(--ink-soft); text-decoration: none; }
.footer ul a:hover { color: var(--primary); }
.foot-legal {
  border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px;
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.foot-legal a { color: var(--muted); }

/* ==========================================================
   Admin — layout s menu vlevo (beze změny struktury)
   ========================================================== */
.admin-body { background: #f0f2f5; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
  width: 240px; flex: 0 0 240px;
  background: #14222f; color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand {
  padding: 20px 18px; font-size: 1.15rem; font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.admin-brand small { font-weight: 500; opacity: 0.65; font-size: 0.8rem; }
.admin-side nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.admin-side nav a, .admin-side-bottom a {
  display: block; padding: 11px 14px; border-radius: 9px;
  color: #cfd8e3; text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.admin-side nav a:hover, .admin-side-bottom a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-side nav a.active { background: var(--primary); color: #fff; }
.admin-side .mi { display: inline-block; width: 24px; }
.admin-side-bottom { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,0.12); }
.admin-main { flex: 1; padding: 26px 30px; min-width: 0; }
.admin-main h2 { margin-bottom: 16px; text-align: left; }
.admin-main .card { margin-bottom: 18px; }

@media (max-width: 860px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; flex: 0 0 auto; height: auto; position: static; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 16px; }
}

table.admin { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; border-radius: 10px; overflow: hidden; }
table.admin th, table.admin td { padding: 8px 10px; border-bottom: 1px solid #e5e5e5; text-align: left; }
table.admin th { background: var(--light); }
.tag { padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.tag-pending { background: #fff4ce; color: #7a5900; }
.tag-delivered { background: #dff6dd; color: #0b6a0b; }
.tag-cancelled { background: #fde7e9; color: #a4262c; }
.tag-paid { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Responzivita ---------- */
@media (max-width: 900px) {
  .hero-grid, .show, .show.flip, .cmp { grid-template-columns: 1fr; }
  .show.flip .show-text { order: 1; }
  .steps4 { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .cmp { padding: 36px 24px; }
}
@media (max-width: 800px) {
  .grid-3, .grid-2, .form-row, .product-pick { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .topbar-in { flex-direction: column; height: auto; padding: 10px 0; gap: 6px; }
  .topbar nav { margin-left: 0; justify-content: center; }
}
