/* Divohyb public site — DESIGN.md v1.3.
   Tokens first; every component below reads the semantic layer only. */

:root {
  /* Základné tokeny · nikdy sa nemenia */
  --dh-canvas: #F7F3EA;
  --dh-canvas-soft: #EFE9DA;
  --dh-white: #FFFFFF;
  --dh-grey-surface: #E7E2D6;
  --dh-ink: #241E18;
  --dh-text: #4A4038;
  --dh-muted: #6B6154;
  --dh-line: #DFD8C8;
  --dh-line-strong: #8C7F5F;
  --dh-green-deep: #17342A;
  --dh-green: #1E5C40;
  --dh-green-action: #26714E;
  --dh-green-leaf: #6A8D55;
  --dh-moss: #8FAE77;
  --dh-orange: #C2521C;
  --dh-ochre: #DFA63C;
  --dh-on-dark: #F0EDE3;
  --dh-on-dark-muted: #C2CCBE;

  /* Sémantická vrstva */
  --surface-page: var(--dh-canvas);
  --surface-raised: var(--dh-white);
  --surface-sunken: var(--dh-canvas-soft);
  --surface-feature: var(--dh-green-deep);
  --surface-accent: var(--dh-ochre);
  --text-heading: var(--dh-ink);
  --text-body: var(--dh-text);
  --text-muted: var(--dh-muted);
  --accent-cta: var(--dh-orange);
  --accent-nav: var(--dh-green-action);
  --accent-decor: var(--dh-moss);
  --decor-max: 2;

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --r-inner: 4px;
  --r-block: 8px;
  --r-round: 999px;

  --sh-card: 0 1px 2px rgba(36, 30, 24, .06);
  --sh-nav: 0 1px 2px rgba(36, 30, 24, .07), 0 2px 2px rgba(36, 30, 24, .04);

  --control-h: 37px;
  --control-h-touch: 44px;

  --container: 1160px;
  --gutter-mobile: 1.25rem;
  --gutter-desktop: 2rem;
}

/* ---- Reset (6.1) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; }
img, video { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; }

body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-heading);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.10; letter-spacing: -.022em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.018em; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.012em; }
h4 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.008em; }

strong, b { font-weight: 600; }
em, i { font-style: normal; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }

a { color: var(--accent-nav); text-decoration: underline; text-underline-offset: .15em; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--dh-ink);
  outline-offset: 2px;
}

.dh-muted { color: var(--text-muted); }
.dh-caption { font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
.dh-body-sm { font-size: .875rem; line-height: 1.55; }
.dh-lead { font-size: 1.125rem; line-height: 1.6; }
.dh-hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--accent-nav);
  transform: rotate(-2deg);
  display: inline-block;
}

.dh-skip {
  position: absolute;
  left: -999px;
  top: var(--sp-2);
  background: var(--surface-raised);
  color: var(--dh-ink);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-inner);
  z-index: 100;
}
.dh-skip:focus { left: var(--sp-2); }

/* ---- Layout (4.2, 4.3) ---- */
.dh-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
.dh-section { padding-block: var(--sp-16); text-align: center; }
.dh-section--raised { background: var(--surface-raised); }
.dh-section--sunken { background: var(--surface-sunken); }
.dh-section--feature { background: var(--surface-feature); color: var(--dh-on-dark); }
.dh-section--feature h1, .dh-section--feature h2, .dh-section--feature h3 { color: var(--dh-on-dark); }
.dh-section--feature p { color: var(--dh-on-dark-muted); }
.dh-section--feature a { color: var(--dh-on-dark); }
.dh-section .dh-container > * + * { margin-block-start: var(--sp-6); }
.dh-section p { max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.dh-section .dh-grid p { margin-inline: 0; }

.dh-split { text-align: left; display: grid; gap: var(--sp-8); }
.dh-split > * > * + * { margin-block-start: var(--sp-4); }
.dh-split p, .dh-form p, .dh-faq p, .dh-legal p, .dh-schedule p, .dh-footer p {
  max-width: 62ch;
  margin-inline: 0;
  text-wrap: pretty;
}
.dh-form, .dh-faq, .dh-legal, .dh-footer { text-align: left; }
.dh-legal { max-width: 72ch; }
main > .dh-legal { padding-block: var(--sp-12); }
.dh-legal > * + * { margin-block-start: var(--sp-4); }
.dh-legal h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.dh-legal h2 { font-size: 1.5rem; margin-block-start: var(--sp-8); }
.dh-legal h3 { font-size: 1.25rem; margin-block-start: var(--sp-8); }
.dh-legal ol, .dh-legal ul { margin-block-start: var(--sp-3); }
.dh-legal li + li { margin-block-start: var(--sp-2); }

.dh-grid { display: grid; gap: var(--sp-6); text-align: center; }

.dh-hero { padding-block: var(--sp-12); }

@media (min-width: 48rem) {
  .dh-container { padding-inline: var(--gutter-desktop); }
  .dh-section { padding-block: var(--sp-24); }
  .dh-hero { padding-block: var(--sp-16); }
  .dh-split--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-split--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}

/* ---- Buttons (5) ---- */
.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-round);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.dh-btn:active { transform: translateY(1px); }
.dh-btn:focus-visible { outline: 2px solid var(--dh-ink); outline-offset: 2px; }
.dh-btn--cta { background: var(--accent-cta); color: var(--dh-white); border-color: var(--accent-cta); }
.dh-btn--primary { background: var(--accent-nav); color: var(--dh-white); border-color: var(--accent-nav); }
.dh-btn--secondary { background: transparent; color: var(--accent-nav); border-color: var(--accent-nav); }
.dh-btn--quiet { background: transparent; color: var(--dh-ink); border-color: var(--dh-ink); }
.dh-btn--inverse { background: var(--dh-white); color: var(--dh-green-action); border-color: var(--dh-white); }
.dh-btn--inverse:focus-visible, .dh-btn--ghost:focus-visible { outline-color: var(--dh-on-dark); }
.dh-btn--ghost { background: transparent; color: var(--dh-on-dark); border-color: rgba(240, 237, 227, .55); }
.dh-btn--muted { background: var(--dh-grey-surface); color: var(--dh-muted); border-color: var(--dh-line-strong); }
.dh-btn--sm { padding: 0.4375rem 0.875rem; font-size: 0.875rem; }
.dh-btn[disabled] { opacity: .6; cursor: default; }
@media (pointer: coarse) {
  .dh-btn { min-height: var(--control-h-touch); }
}

.dh-link-arrow {
  display: inline-block;
  color: var(--accent-nav);
  font-weight: 700;
  text-decoration: none;
}
.dh-link-arrow::after { content: " →"; }
.dh-link-arrow:hover { text-decoration: underline; }

/* ---- Badge (6.5) ---- */
.dh-badge {
  display: inline-block;
  background: var(--dh-ochre);
  color: var(--dh-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-round);
}

/* ---- Cards (6.2) ---- */
.dh-group-card {
  background: var(--surface-raised);
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  padding: var(--sp-6);
  text-align: center;
  box-shadow: var(--sh-card);
  transition: border-color .16s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.dh-group-card:hover { border-color: var(--dh-ink); }
.dh-group-card > * { margin: 0; }
.dh-group-card h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.008em; }
.dh-group-card .dh-link-arrow { margin-top: auto; }
.dh-group-card.is-closed h3 { color: var(--text-muted); }
.dh-mascot { width: 64px; height: 64px; }
.dh-price strong { font-size: 1.25rem; color: var(--text-heading); }

/* ---- Photo (8) ---- */
.dh-photo {
  border-radius: var(--r-block);
  overflow: hidden;
  position: relative;
  background: var(--dh-canvas-soft);
}
.dh-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.dh-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(223, 166, 60, .07);
  pointer-events: none;
}
.dh-photo--portrait { max-width: 22rem; width: 100%; margin-inline: auto; }

/* ---- Navigation (6.6) ---- */
.dh-nav { background: var(--surface-page); box-shadow: var(--sh-nav); position: relative; z-index: 20; }
.dh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: .875rem;
}
.dh-logo {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -.018em;
  color: var(--dh-green);
  text-decoration: none;
}
.dh-nav-links { display: none; align-items: center; gap: 1.25rem; font-size: .9375rem; }
.dh-nav-links a { color: var(--dh-ink); text-decoration: none; font-weight: 600; }
.dh-nav-links a:hover { color: var(--accent-nav); }
.dh-nav-cta { margin-left: auto; }
.dh-nav-menu { position: relative; }
.dh-nav-menu > summary { list-style: none; }
.dh-nav-menu > summary::-webkit-details-marker { display: none; }
.dh-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--dh-line-strong);
  border-radius: var(--r-round);
  color: var(--dh-ink);
  cursor: pointer;
}
.dh-burger, .dh-burger::before, .dh-burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dh-ink);
  border-radius: var(--r-round);
}
.dh-burger { position: relative; }
.dh-burger::before, .dh-burger::after { content: ""; position: absolute; left: 0; }
.dh-burger::before { top: -6px; }
.dh-burger::after { top: 6px; }
.dh-nav-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sp-2));
  min-width: 14rem;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-raised);
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  box-shadow: var(--sh-card);
  text-align: left;
}
.dh-nav-sheet a { color: var(--dh-ink); text-decoration: none; font-weight: 600; padding-block: var(--sp-1); }

@media (min-width: 48rem) {
  .dh-nav-links { display: flex; }
  .dh-nav-menu { display: none; }
}

/* ---- Footer ---- */
.dh-footer {
  background: var(--surface-feature);
  color: var(--dh-on-dark);
  padding-block: var(--sp-12);
  text-align: left;
}
.dh-footer p { color: var(--dh-on-dark-muted); }
.dh-footer a { color: var(--dh-on-dark); }
.dh-footer a:focus-visible { outline-color: var(--dh-on-dark); }
.dh-footer-grid { display: grid; gap: var(--sp-8); }
.dh-footer-brand { color: var(--dh-on-dark); font-weight: 700; margin-bottom: var(--sp-2); }
.dh-footer-copy { margin-top: var(--sp-8); font-size: .8125rem; }
@media (min-width: 48rem) {
  .dh-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---- Lists ---- */
.dh-check { list-style: none; padding: 0; }
.dh-check li { position: relative; padding-left: 1.5rem; }
.dh-check li + li { margin-top: var(--sp-1); }
.dh-check li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .35rem;
  width: .45rem;
  height: .85rem;
  border-right: 2px solid var(--accent-nav);
  border-bottom: 2px solid var(--accent-nav);
  transform: rotate(45deg);
}
.dh-pricelist, .dh-details {
  list-style: none;
  padding: 0;
  max-width: 46ch;
  margin-inline: auto;
  text-align: left;
}
.dh-pricelist li + li, .dh-details li + li { margin-top: var(--sp-2); }
.dh-schedule h4 { font-size: 1rem; margin-top: var(--sp-4); }
.dh-schedule ul { list-style: none; padding: 0; }
.dh-schedule li + li { margin-top: var(--sp-1); }

/* ---- FAQ ---- */
.dh-faq details {
  background: var(--surface-raised);
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  padding: var(--sp-3) var(--sp-4);
}
.dh-faq details + details { margin-block-start: var(--sp-3); }
.dh-faq summary { font-weight: 700; color: var(--text-heading); cursor: pointer; padding-block: var(--sp-1); }
.dh-faq details[open] summary { margin-bottom: var(--sp-2); }
.dh-faq details p + p { margin-top: var(--sp-3); }

/* ---- Forms (6.7) ---- */
.dh-form fieldset { border: 0; padding: 0; margin: 0; }
.dh-form fieldset + fieldset { margin-block-start: var(--sp-8); }
.dh-form legend { font-weight: 700; font-size: 1.25rem; color: var(--text-heading); padding: 0; margin-bottom: var(--sp-4); }
.dh-fields { display: grid; gap: var(--sp-4); }
.dh-field label, .dh-choices legend { display: block; font-weight: 600; margin-bottom: var(--sp-1); font-size: 1rem; }
.dh-input {
  width: 100%;
  background: var(--dh-white);
  color: var(--dh-ink);
  border: 1.5px solid var(--dh-line-strong);
  border-radius: var(--r-inner);
  padding: 0.4375rem 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.25;
  min-height: var(--control-h);
}
.dh-input:focus-visible { outline: 2px solid var(--dh-ink); outline-offset: 1px; border-color: var(--dh-ink); }
.dh-input[aria-invalid="true"], .has-error .dh-input { border-color: var(--dh-orange); }
.dh-help { font-size: .8125rem; color: var(--text-muted); margin-top: var(--sp-1); }
.dh-error { font-size: .875rem; line-height: 1.55; color: var(--dh-ink); margin-top: var(--sp-1); }
.dh-error::before { content: "Chyba: "; font-weight: 600; }
.dh-error[data-age-hint]::before { content: ""; }
.dh-child {
  border: 1px solid var(--dh-line);
  border-radius: var(--r-block);
  background: var(--surface-page);
  padding: var(--sp-4);
}
.dh-child + .dh-child { margin-top: var(--sp-4); }
.dh-child h3 { font-size: 1.125rem; margin-bottom: var(--sp-3); }
.dh-choices { margin-top: var(--sp-4); }
.dh-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  cursor: pointer;
}
.dh-choice input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--accent-nav);
}
.dh-choice.is-full { color: var(--text-muted); }
.dh-choice.is-hidden { display: none; }
.dh-choice--trial { font-weight: 600; margin-bottom: var(--sp-4); }
.dh-alert {
  background: var(--surface-sunken);
  border: 1.5px solid var(--dh-ink);
  border-radius: var(--r-block);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  color: var(--dh-ink);
}
.dh-summary {
  background: var(--surface-sunken);
  border-radius: var(--r-block);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
}
.dh-summary ul { list-style: none; padding: 0; }
.dh-summary li + li { margin-top: var(--sp-1); }
.dh-summary .dh-total { font-weight: 700; color: var(--text-heading); margin-top: var(--sp-3); }
@media (pointer: coarse) {
  .dh-input { min-height: var(--control-h-touch); }
  .dh-choice { min-height: var(--control-h-touch); }
}
@media (min-width: 48rem) {
  .dh-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Thank-you ---- */
.dh-kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-2) var(--sp-4); margin: 0; }
.dh-kv dt { font-weight: 600; }
.dh-kv dd { margin: 0; }
.dh-qr img { width: 100%; max-width: 20rem; margin-inline: auto; border-radius: var(--r-inner); background: var(--dh-white); }
.dh-qr { text-align: center; }
.dh-qr p { margin-inline: auto; }

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