/* Elektronika Petrů – styl webu (2026) */

:root {
  --ink: #0f1b2d;
  --ink-2: #2b3a52;
  --muted: #5b6b84;
  --line: #e2e7ee;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --navy: #10233f;
  --navy-2: #173257;
  --accent: #e8590c;
  --accent-ink: #b8430a;
  --accent-soft: #fff1e7;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 35, 63, .06), 0 4px 16px rgba(16, 35, 63, .06);
  --shadow-lg: 0 2px 4px rgba(16, 35, 63, .06), 0 12px 32px rgba(16, 35, 63, .10);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .4em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 750; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  color: #dbe4f0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(232, 89, 12, .28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.3rem); }
.hero h1 span { color: #ffb48a; }
.hero p.lead { font-size: 1.15rem; max-width: 36em; margin: 0 0 28px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffb48a; margin-bottom: 14px; }

.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-visual figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-visual figure:nth-child(2) { transform: translateY(28px); }
.hero-visual figcaption { color: var(--ink); font-weight: 700; font-size: .9rem; text-align: center; margin-top: 8px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 650; text-decoration: none;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  transition: transform .15s, background .15s;
}
.btn:hover { background: #d24f08; border-color: #d24f08; color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.light:hover { border-color: var(--ink-2); color: var(--ink); }

/* ---------- Sekce ---------- */

.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); margin: 0; }

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

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; margin: 6px 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 550; color: var(--ink); font-size: .95rem;
}

/* ---------- Produktové karty ---------- */

.product-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfd7e2; color: inherit; }
.product-card .thumb { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.product-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .ver { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; }
.product-card h3 { margin: 0; font-size: 1.05rem; }
.product-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.product-card .price { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.product-card .price small { font-weight: 500; color: var(--muted); }

.series { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; margin-bottom: 64px; }
.series:last-child { margin-bottom: 0; }
.series-intro { position: sticky; top: 96px; }
.series-intro figure { margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.series-intro h2 { margin-top: 0; }
.series-intro p { color: var(--muted); }

.note {
  background: var(--accent-soft); border: 1px solid #ffd8bf; color: #6b2c06;
  border-radius: var(--radius); padding: 16px 20px; margin: 28px 0 0;
}

/* ---------- Stránky obsahu ---------- */

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-head p.lead { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: 46em; }

.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #a3b0c2; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

.product-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.product-head .photo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.product-head .photo img { max-height: 260px; width: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; color: var(--ink-2);
}
.badge strong { color: var(--ink); }
.badge.price { background: var(--accent-soft); border-color: #ffd8bf; }
.badge.price strong { color: var(--accent-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; padding: 48px 0 72px; }

.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: .2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--accent); }
.prose b, .prose strong { color: var(--ink); }

.fig {
  margin: 28px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.fig a { display: inline-block; cursor: zoom-in; }
.fig img { margin: 0 auto; }
.fig figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.spec { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec td, .spec th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { color: var(--muted); width: 50%; }
.spec td:last-child { font-family: var(--mono); color: var(--ink); font-size: .95rem; }

kbd.key {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .3em;
  font-family: var(--font); font-size: .85em; font-weight: 700; color: var(--ink);
  background: linear-gradient(#fff, #eef1f5); border: 1px solid #c9d2de; border-bottom-width: 2px;
  border-radius: 6px; vertical-align: .05em; line-height: 1;
}
code.seg {
  font-family: var(--mono); font-weight: 700; font-size: .9em;
  background: #13202f; color: #ff8f4d; padding: 1px 7px; border-radius: 5px;
}

.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside .card { padding: 20px; }
.aside h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.aside nav ul { list-style: none; margin: 0; padding: 0; }
.aside nav a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--ink-2); font-size: .93rem; line-height: 1.35;
}
.aside nav a:hover { background: var(--bg); color: var(--ink); }
.aside nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.aside nav a span { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.aside .cta p { margin: 0 0 12px; font-size: .95rem; }
.aside .cta .btn { width: 100%; justify-content: center; }
.aside .cta a.tel { display: block; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; margin-top: 12px; text-align: center; }

/* ---------- Ceník ---------- */

.price-block { margin-bottom: 48px; }
.price-block h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.prices { width: 100%; border-collapse: collapse; min-width: 560px; }
.prices th, .prices td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { background: #f0f3f7; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.prices tbody tr:last-child td { border-bottom: 0; }
.prices tbody tr:hover { background: #fafbfd; }
.prices td.code { font-family: var(--mono); font-weight: 700; color: var(--ink); white-space: nowrap; }
.prices td.code a { color: inherit; text-decoration: none; border-bottom: 1px dashed #b7c2d1; }
.prices td.code a:hover { color: var(--accent-ink); border-color: var(--accent); }
.prices .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.prices thead th.num { color: var(--muted); }

.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-grid .card h2 { font-size: 1.1rem; margin: 0 0 12px; }
.contact-grid address { font-style: normal; }
.big-link { display: block; font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; margin: 4px 0; }
.big-link:hover { color: var(--accent-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe4f0;
  border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* ---------- Patička ---------- */

.site-footer { background: var(--navy); color: #a9b8cc; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #dbe4f0; text-decoration: none; }
.site-footer a:hover { color: #ffb48a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name small { color: #8ea0b8; }

/* ---------- Responzivita ---------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { max-width: 460px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .series { grid-template-columns: 1fr; gap: 24px; }
  .series-intro { position: static; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
  .series-intro figure { margin: 0; }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 8px; min-height: 0; }
  .nav { justify-content: space-between; }
  .nav a { padding: 7px 10px; font-size: .9rem; }
  .section { padding: 52px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card .thumb { padding: 10px; }
  .product-card .body { padding: 12px 14px 14px; }
  .product-card h3 { font-size: .95rem; }
  .product-card p { font-size: .85rem; }
  .series-intro { grid-template-columns: 1fr; }
  .series-intro figure { max-width: 200px; }
  .product-head { grid-template-columns: 1fr; gap: 24px; }
  .product-head .photo { justify-self: start; }
  .product-head .photo img { max-height: 200px; }
  .terms { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual figure:nth-child(2) { transform: translateY(16px); }
}

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

@media print {
  .site-header, .site-footer, .aside, .btns { display: none; }
  .layout { display: block; padding: 0; }
  body { background: #fff; }
}

/* ---------- Doplňky 2026 ---------- */

.ukonceno { color: #d00000; font-weight: 700; }
.badge.ended { background: #fdecec; border-color: #f5c2c2; color: #b00000; font-weight: 700; }
.series.ended .product-card .thumb img { filter: grayscale(.6); opacity: .85; }
.hero-visual.single { grid-template-columns: minmax(0, 300px); justify-content: center; }
.hero-visual.single figure:nth-child(1) { transform: none; }
.card h3:only-of-type { margin-bottom: 0; }

.cenik { max-width: 900px; }
.cenik > :first-child { margin-top: 0; }
.cenik h2 { margin-top: 1.6em; }
.cenik table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cenik th, .cenik td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cenik th { background: #f0f3f7; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.cenik tr:last-child td { border-bottom: 0; }
.cenik td.num, .cenik th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cenik td.num { font-weight: 650; color: var(--ink); }
.cenik ul li::marker { color: var(--accent); }
@media (max-width: 640px) {
  .cenik table, .cenik tbody { display: block; }
  .cenik thead { display: none; }
  .cenik tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .cenik tr:last-child { border-bottom: 0; }
  .cenik td { padding: 0; border: 0; }
  .cenik td:nth-child(1) { grid-area: 1 / 1; }
  .cenik td:nth-child(2) { grid-area: 3 / 1 / 4 / 3; color: var(--muted); font-size: .92rem; margin-top: 4px; }
  .cenik td:nth-child(2):empty { display: none; }
  .cenik td:nth-child(3) { grid-area: 1 / 2; }
  .cenik td:nth-child(4) { grid-area: 2 / 2; font-weight: 500; color: var(--muted); }
  .cenik td:nth-child(3)::after { content: " bez DPH"; font-weight: 400; color: var(--muted); font-size: .8em; }
  .cenik td:nth-child(4)::after { content: " s DPH"; font-size: .8em; }
}
.cenik td:first-child { white-space: nowrap; }
.cenik td:first-child a { color: var(--accent-ink); }
