/* Valint & Balk sales pages: the one stylesheet.
   Every value comes from design/DESIGN.md through the custom properties in :root.
   Component rules use only var(--...), 0, percentages and keywords. Edit tokens here and in DESIGN.md together. */

/* Self-hosted fonts (SIL Open Font Licence 1.1, licence files in fonts/). Variable woff2, Latin and Latin Extended. */
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/sofia-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/sofia-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/sofia-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light dark;

  /* colours, light */
  --c-surface: #F2F2EF;
  --c-surface-raised: #FFFFFF;
  --c-surface-bar: #E4E5DF;
  --c-on-surface: #232622;
  --c-muted: #5C625D;
  --c-outline: #E1E2DD;
  --c-outline-strong: #7D837E;
  --c-accent: #C2102D;
  --c-on-accent: #FFFFFF;
  --c-accent-text: #C2102D;
  --c-sheet: #FFFFFF;
  --c-sheet-binding: #232622;
  --c-on-sheet: #232622;
  --c-on-sheet-accent: #C2102D;
  --c-warn: #7A4E00;
  --c-warn-container: #FBEFD6;
  --c-success: #2E6B3B;
  --c-error: #A1261C;
  --c-draft: #FBEFD6;
  --c-on-draft: #232622;
  --c-accent-pressed: #A30D26;

  /* elevation (3 levels: flat, paper, thumb) */
  --e-paper: 0 1px 2px rgba(35, 38, 34, .12), 0 4px 12px rgba(35, 38, 34, .10);
  --e-thumb: 0 1px 2px rgba(35, 38, 34, .20);
  --img-tone: none;

  /* type families */
  --f-text: "Sofia Sans", sans-serif;
  --f-figure: "Sofia Sans Extra Condensed", "Sofia Sans", sans-serif;

  /* type roles: size / line-height / weight */
  --t-date: 124px;        --lh-date: 108px;
  --t-date-sm: 96px;      --lh-date-sm: 86px;
  --t-month: 20px;        --lh-month: 22px;
  --t-price-lg: 38px;     --lh-price-lg: 38px;
  --t-price: 30px;        --lh-price: 30px;
  --t-step: 24px;         --lh-step: 25px;
  --t-headline: 27px;     --lh-headline: 32px;
  --t-headline-d: 36px;   --lh-headline-d: 42px;
  --t-title: 21px;        --lh-title: 26px;
  --t-item: 18px;         --lh-item: 23px;
  --t-body: 17px;         --lh-body: 25px;
  --t-detail: 16px;       --lh-detail: 22px;
  --t-note: 15px;         --lh-note: 20px;
  --t-caption: 14px;      --lh-caption: 19px;
  --t-button: 18px;       --lh-button: 22px;
  --t-button-sm: 16px;    --lh-button-sm: 20px;
  --t-brand: 17px;        --lh-brand: 22px;
  --w-regular: 400;
  --w-bold: 700;
  --w-heavy: 750;
  --w-black: 800;
  --ls-tight: -0.01em;

  /* spacing (4 px scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --gutter: 16px;
  --measure: 32em;
  --page-max: 72em;
  --header-h: 52px;
  --tap: 48px;
  --button-h: 52px;
  --hairline: 1px;
  --ring: 2px;
  --focus: 3px;
  --sheet-w: 140px;
  --sheet-w-sm: 112px;
  --sheet-w-d: 168px;
  --bind-h: 18px;
  --hole: 7px;
  --tear: 6px;
  --zoom-d: 176px;
  --zoom-k: 1;            /* lens scale: the crop shows the same text at every lens size */
  --zoom-d-d: 208px;
  --thumb: 72px;
  --icon: 20px;

  /* radii by role */
  --r-none: 0;
  --r-control: 6px;
  --r-panel: 10px;
  --r-full: 9999px;

  /* motion: one press, nothing else */
  --m-press: 120ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-surface: #17191A;
    --c-surface-raised: #202324;
    --c-surface-bar: #202324;
    --c-on-surface: #ECEEEA;
    --c-muted: #A4AAA5;
    --c-outline: #303435;
    --c-outline-strong: #737A75;
    --c-accent: #B8223A;
    --c-on-accent: #FFFFFF;
    --c-accent-text: #FF7A7A;
    --c-sheet: #E9EAE5;
    --c-sheet-binding: #4A504B;
    --c-on-sheet: #232622;
    --c-on-sheet-accent: #C2102D;
    --c-warn: #F0B44C;
    --c-warn-container: #3A2F1A;
    --c-success: #7CC48A;
    --c-error: #F2B8B5;
    --c-draft: #3A2F1A;
    --c-on-draft: #ECEEEA;
    --c-accent-pressed: #9E1C31;
    --e-paper: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .4);
    --e-thumb: 0 1px 2px rgba(0, 0, 0, .5);
    --img-tone: brightness(.9);
  }
}

@media (max-width: 359.98px) {
  :root {
    --sheet-w: var(--sheet-w-sm);
    --t-date: var(--t-date-sm);
    --lh-date: var(--lh-date-sm);
    --zoom-d: 144px;
    --zoom-k: 0.818;
  }
}

@media (max-width: 359.98px) {
  .cenik__detail { grid-column: 1 / -1; }
  .cenik__go { grid-column: 1 / -1; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-on-surface);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--c-on-surface); }
:focus-visible { outline: var(--focus) solid var(--c-accent-text); outline-offset: var(--ring); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.fig { font-family: var(--f-figure); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.icon { width: var(--icon); height: var(--icon); flex: none; }

/* ---------- deadline bar ---------- */
.bar { background: var(--c-surface-bar); color: var(--c-on-surface); }
.bar__inner { padding-top: var(--s-2); padding-bottom: var(--s-2); }
.bar__text { margin: 0; font-size: var(--t-note); line-height: var(--lh-note); }

/* ---------- page header ---------- */
.head { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.head__brand {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-weight: var(--w-black); font-size: var(--t-brand); line-height: var(--lh-brand);
  letter-spacing: var(--ls-tight); text-decoration: none;
}
.head__contact { display: inline-flex; align-items: center; min-height: var(--tap); gap: var(--s-2); color: var(--c-muted); font-size: var(--t-note); text-decoration: none; }

/* ---------- hero ---------- */
.hero__h {
  margin: var(--s-1) 0 var(--s-2);
  font-size: var(--t-headline); line-height: var(--lh-headline); font-weight: var(--w-heavy);
  letter-spacing: var(--ls-tight); text-wrap: balance;
}
.hero__sub { margin: 0 0 var(--s-4); color: var(--c-muted); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) var(--sheet-w); gap: var(--s-4); align-items: start; }
.duo--single { grid-template-columns: minmax(0, 1fr); }
.duo__note { margin: var(--s-3) 0 0; font-size: var(--t-note); line-height: var(--lh-note); font-weight: var(--w-bold); }

/* sample picture + sample caption */
.sample { margin: 0; }
.sample__img { display: block; width: 100%; box-shadow: var(--e-paper); filter: var(--img-tone); border-radius: var(--r-none); }
.sample picture { display: block; }
.sample__cap--phone { display: none; }
@media (max-width: 959.98px) {
  .sample__cap--laptop { display: none; }
  .sample__cap--phone { display: block; }
}
.sample__cap { margin-top: var(--s-2); font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--c-muted); }

/* calendar sheet: always paper, also in dark */
.sheet {
  display: block; background: var(--c-sheet); color: var(--c-on-sheet);
  box-shadow: var(--e-paper); text-align: center; padding-bottom: var(--s-4);
  clip-path: polygon(0 0, 100% 0, 100% 100%,
    92.86% calc(100% - var(--tear)), 85.71% 100%, 78.57% calc(100% - var(--tear)), 71.43% 100%,
    64.29% calc(100% - var(--tear)), 57.14% 100%, 50% calc(100% - var(--tear)), 42.86% 100%,
    35.71% calc(100% - var(--tear)), 28.57% 100%, 21.43% calc(100% - var(--tear)), 14.29% 100%,
    7.14% calc(100% - var(--tear)), 0 100%);
}
.sheet__bind { display: block; height: var(--bind-h); background: var(--c-sheet-binding); position: relative; }
.sheet__bind::before, .sheet__bind::after {
  content: ""; position: absolute; top: calc((var(--bind-h) - var(--hole)) / 2);
  width: var(--hole); height: var(--hole); border-radius: var(--r-full); background: var(--c-surface);
}
.sheet__bind::before { left: 18%; }
.sheet__bind::after { right: 18%; }
.sheet__month, .sheet__day, .sheet__wd { padding-left: var(--s-2); padding-right: var(--s-2); }
.sheet__month { display: block; padding-top: var(--s-3); font-family: var(--f-figure); font-weight: var(--w-bold); font-size: var(--t-month); line-height: var(--lh-month); }
.sheet__day {
  display: block; margin-top: var(--s-1); color: var(--c-on-sheet-accent);
  font-family: var(--f-figure); font-weight: var(--w-black); font-size: var(--t-date); line-height: var(--lh-date);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.sheet__wd { display: block; color: var(--c-on-sheet-accent); font-weight: var(--w-bold); font-size: var(--t-item); line-height: var(--lh-item); }

/* price row + hero button */
.buy { margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--hairline) solid var(--c-outline); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.price-row__name { font-weight: var(--w-heavy); font-size: var(--t-item); line-height: var(--lh-item); }
.price-row__price { font-variant-numeric: lining-nums proportional-nums; font-weight: var(--w-bold); font-size: var(--t-price-lg); line-height: var(--lh-price-lg); white-space: nowrap; }
.price-row__per { font-family: var(--f-text); font-size: var(--t-caption); font-weight: var(--w-bold); color: var(--c-muted); }
.price-row__detail { margin: 0 0 var(--s-3); color: var(--c-muted); font-size: var(--t-detail); line-height: var(--lh-detail); }
.buy__note { margin: var(--s-2) 0 0; color: var(--c-muted); font-size: var(--t-note); line-height: var(--lh-note); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--r-control);
  font-family: var(--f-text); font-weight: var(--w-heavy); font-size: var(--t-button-sm); line-height: var(--lh-button-sm);
  text-decoration: none; text-align: center; font-variant-numeric: tabular-nums;
  transition: background-color var(--m-press);
}
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:active { background: var(--c-accent-pressed); }
.btn--hero { display: flex; width: 100%; min-height: var(--button-h); padding: 0 var(--s-6); font-size: var(--t-button); line-height: var(--lh-button); }
.btn--secondary { background: transparent; color: var(--c-on-surface); border: var(--hairline) solid var(--c-outline-strong); }
.btn--secondary:active { background: var(--c-surface-bar); }

/* ---------- price list (ceník) ---------- */
.section-title { margin: 0 0 var(--s-3); font-size: var(--t-title); line-height: var(--lh-title); font-weight: var(--w-black); }
.cenik { margin-top: var(--s-12); }
.cenik__panel { background: var(--c-surface-raised); border-radius: var(--r-panel); padding: 0 var(--s-4); }
.cenik__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); row-gap: var(--s-2);
  padding: var(--s-4) 0; border-top: var(--hairline) solid var(--c-outline); align-items: baseline;
}
.cenik__row:first-child { border-top: 0; }
.cenik__name { margin: 0; font-size: var(--t-item); line-height: var(--lh-item); font-weight: var(--w-heavy); }
.cenik__price { font-weight: var(--w-bold); font-size: var(--t-price); line-height: var(--lh-price); text-align: right; white-space: nowrap; }
.cenik__per { display: block; font-family: var(--f-text); font-size: var(--t-caption); line-height: var(--lh-caption); font-weight: var(--w-bold); color: var(--c-muted); }
.cenik__detail { margin: 0; color: var(--c-muted); font-size: var(--t-detail); line-height: var(--lh-detail); align-self: center; }
.cenik__go { align-self: center; justify-self: end; }
.cenik__row--note { grid-template-columns: minmax(0, 1fr) var(--thumb); align-items: start; }
.cenik__row--note .cenik__text { margin: 0; }
.thumb { margin: 0; grid-row: span 2; }
.thumb__img { display: block; width: var(--thumb); box-shadow: var(--e-thumb); filter: var(--img-tone); }
.thumb__cap, .cenik__cap { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--c-muted); }
.cenik__cap { margin: 0; }

/* flagged row (tool pages): amber, never red */
.cenik__row--flag { background: var(--c-warn-container); padding-left: var(--s-3); padding-right: var(--s-3); border-radius: var(--r-control); border-top-color: transparent; }
.cenik__row--flag + .cenik__row { border-top-color: transparent; }
.flag { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-warn); font-weight: var(--w-bold); font-size: var(--t-detail); line-height: var(--lh-detail); vertical-align: top; }

/* ---------- proof zoom (lupa) ---------- */
.zoom { margin: var(--s-8) 0 0; display: grid; grid-template-columns: var(--zoom-d) minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.zoom__lens {
  width: var(--zoom-d); height: var(--zoom-d); border-radius: var(--r-full);
  border: var(--ring) solid var(--c-on-surface);
  background-color: var(--c-sheet); background-image: var(--zoom-img); background-repeat: no-repeat;
  background-size: calc(var(--zoom-bw) * var(--zoom-k)) auto;
  background-position: calc(var(--zoom-d) / 2 - var(--zoom-px) * var(--zoom-k)) calc(var(--zoom-d) / 2 - var(--zoom-py) * var(--zoom-k));
  filter: var(--img-tone);
}
.zoom__cap { font-size: var(--t-detail); line-height: var(--lh-detail); }

/* ---------- steps ---------- */
.steps { margin-top: var(--s-8); }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps__item { counter-increment: step; display: grid; grid-template-columns: var(--s-8) minmax(0, 1fr); gap: var(--s-2); padding: var(--s-2) 0; }
.steps__item::before { content: counter(step) "."; font-family: var(--f-figure); font-weight: var(--w-black); font-size: var(--t-step); line-height: var(--lh-step); font-variant-numeric: tabular-nums; }

/* ---------- what is inside (contents) ---------- */
.inside { margin-top: var(--s-8); }
.inside__list { list-style: none; margin: 0; padding: 0; }
.inside__item { padding: var(--s-3) 0; border-top: var(--hairline) solid var(--c-outline); }
.inside__item:first-child { border-top: 0; padding-top: 0; }
.inside__name { margin: 0 0 var(--s-1); font-size: var(--t-item); line-height: var(--lh-item); font-weight: var(--w-heavy); }
.inside__text { margin: 0; }

/* ---------- plain notice: a section, no panel ---------- */
.notice { margin-top: var(--s-8); }
.notice__text { margin: 0; }

/* ---------- trust line ---------- */
.trust {
  display: grid; grid-template-columns: var(--icon) minmax(0, 1fr); gap: var(--s-3);
  margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: var(--hairline) solid var(--c-outline);
  font-size: var(--t-detail); line-height: var(--lh-detail);
}
.trust--plain { grid-template-columns: minmax(0, 1fr); }
.trust .icon { color: var(--c-muted); margin-top: var(--s-1); }

/* ---------- footer ---------- */
.foot { padding: var(--s-8) 0 var(--s-12); font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--c-muted); }
.foot p { margin: 0 0 var(--s-2); }
.foot a { color: var(--c-muted); display: inline-flex; align-items: center; min-height: var(--tap); }
.foot__links { display: flex; flex-wrap: wrap; column-gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.foot__slot { display: inline-block; padding: var(--s-1) var(--s-2); background: var(--c-draft); color: var(--c-on-draft); border-radius: var(--r-control); }

/* ---------- legal-text page ---------- */
.draft { margin: var(--s-4) 0 var(--s-6); padding: var(--s-3) var(--s-4); background: var(--c-draft); color: var(--c-on-draft); border-radius: var(--r-panel); font-size: var(--t-detail); line-height: var(--lh-detail); }
.draft p { margin: 0; }
.draft p + p { margin-top: var(--s-2); }
.legal h1 { margin: var(--s-2) 0 var(--s-2); font-size: var(--t-headline); line-height: var(--lh-headline); font-weight: var(--w-heavy); letter-spacing: var(--ls-tight); }
.legal h2 { margin: var(--s-8) 0 var(--s-2); font-size: var(--t-title); line-height: var(--lh-title); font-weight: var(--w-black); }
.legal p, .legal ul, .legal ol { margin: 0 0 var(--s-3); }
.legal ul, .legal ol { padding-left: var(--s-6); }
.legal li + li { margin-top: var(--s-1); }
.legal__meta { color: var(--c-muted); font-size: var(--t-detail); line-height: var(--lh-detail); }
.legal__table { margin: 0 0 var(--s-4); background: var(--c-surface-raised); border-radius: var(--r-panel); padding: var(--s-2) var(--s-4); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--t-detail); line-height: var(--lh-detail); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-2) var(--s-2) 0; border-top: var(--hairline) solid var(--c-outline); }
.legal thead th { border-top: 0; font-weight: var(--w-bold); }
.legal td:last-child, .legal th:last-child { padding-right: 0; }
.check { background: var(--c-draft); color: var(--c-on-draft); padding: 0 var(--s-1); border-radius: var(--r-control); font-weight: var(--w-bold); }
.legal__back { margin: var(--s-8) 0 0; }

/* legal tables on a phone: one block per row, the column name above each value */
@media (max-width: 599.98px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: var(--s-2) 0; border-top: var(--hairline) solid var(--c-outline); }
  .legal tbody tr:first-child { border-top: 0; }
  .legal td { border-top: 0; padding: var(--s-1) 0; }
  .legal td::before { content: attr(data-label); display: block; color: var(--c-muted); font-size: var(--t-caption); line-height: var(--lh-caption); }
}

/* ---------- laptop: two columns ---------- */
@media (min-width: 960px) {
  :root { --sheet-w: var(--sheet-w-d); --zoom-d: var(--zoom-d-d); --zoom-k: 1.182; }
  .wrap--page { max-width: var(--page-max); }
  .page { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); column-gap: var(--s-16); grid-template-rows: auto 1fr; }
  .page__lead { grid-column: 1; grid-row: 1; }
  .page__body { grid-column: 1; grid-row: 2; }
  .page__media { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: var(--s-6); align-self: start; padding-top: var(--s-2); }
  .hero__h { font-size: var(--t-headline-d); line-height: var(--lh-headline-d); }
  .page__body .buy { margin-top: 0; padding-top: 0; border-top: 0; }
  .btn--hero { width: auto; }
}

@media (max-width: 359.98px) {
  .page__media { margin-top: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
