/* Klidný posed — minimalist light theme */
:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --border: #e8e8e8;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #2d4a3e;
  --accent-hover: #1f352c;
  --radius: 8px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 680px;
  --wide: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--max));
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 3rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

section p:last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Lists */
.ul-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-clean li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.ul-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* Spec table */
.specs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9375rem;
}

.specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-row span:first-child {
  color: var(--muted);
}

.specs-row span:last-child {
  text-align: right;
  color: var(--text);
}

/* Notice box */
.notice {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Intermediate purchase page */
.purchase-card {
  max-width: 520px;
  margin: 2rem auto 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg);
}

.purchase-card .thumb {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.purchase-card h1 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.purchase-card .btn {
  width: 100%;
  margin-top: 1rem;
}

/* ——— Rozložení obsahu s obrázky po stránce ——— */
.figure {
  margin: 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Text + obrázek vedle sebe */
.media-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin: 2rem 0 0;
}

@media (min-width: 800px) {
  .media-row {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }

  .media-row--reverse .media-row__text {
    order: 2;
  }

  .media-row--reverse .media-row__visual {
    order: 1;
  }
}

.media-row__visual .figure img {
  max-height: min(420px, 55vh);
  object-fit: contain;
}

/* Obrázek na šířku „pásu“ */
.band {
  margin: 2.5rem calc(50% - 50vw) 0;
  width: 100vw;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band__inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  padding: 2rem 0;
}

.band .figure img {
  max-height: min(480px, 70vh);
  margin-inline: auto;
  object-fit: contain;
  border: none;
  background: transparent;
}

/* Dva obrázky vedle sebe (volnější rytmus) */
.duo-fig {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .duo-fig {
    grid-template-columns: 1fr 1fr;
  }
}

.duo-fig .figure img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Širší článek */
.wrap--article {
  width: min(100% - 2rem, 760px);
}

h3.section-sub {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.toc {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Právní / dlouhé texty */
.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.legal-doc .meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--text);
}

.legal-doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  color: var(--muted);
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

/* Kontakt */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.nav--footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
}

.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 600px) {
  .site-footer .footer-links {
    text-align: right;
  }
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.cards-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-lite {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.card-lite h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card-lite p {
  margin: 0;
  font-size: 0.9375rem;
}
