/* =========================================================
   Maturováček – styly webu
   Barvy, písma a mezery podle design systému Maturováček.
   ========================================================= */

:root {
  --paper: #FFFFFF;
  --surface: #F2F2F2;
  --line: #E2E2E2;
  --ink: #161616;
  --ink-soft: #3D3D3D;
  --muted: #5E5E5E;
  --brand: #B42B2B;
  --on-brand: #FFFFFF;
  --accent: #B42B2B;
  --accent-deep: #8C1D1D;
  --blush: #FBE7E5;
  --rose: #EBC3BE;
  --rose-line: #D99A93;
  --petrol: #155159;
  --petrol-soft: #E3F0F1;
  --slate: #3E4C57;
  --slate-soft: #EEF0F2;

  --font-display: "Lora", Georgia, serif;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --max: 1200px;
}


/* ---------- Tmavý režim (barvy z design systému) ---------- */
:root[data-theme="dark"] {
  --paper: #171A1B; --surface: #222628; --line: #34393C; --ink: #F2F2F2; --ink-soft: #D2D5D7; --muted: #A6ABAE;
  --brand: #B42B2B; --on-brand: #FFFFFF; --accent: #EE7D72; --accent-deep: #F3A39A;
  --blush: #3A2422; --rose: #6E3A35; --rose-line: #8A4A44;
  --petrol: #7CC3CB; --petrol-soft: #163238; --slate: #B4C1CB; --slate-soft: #262C31;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171A1B; --surface: #222628; --line: #34393C; --ink: #F2F2F2; --ink-soft: #D2D5D7; --muted: #A6ABAE;
    --brand: #B42B2B; --on-brand: #FFFFFF; --accent: #EE7D72; --accent-deep: #F3A39A;
    --blush: #3A2422; --rose: #6E3A35; --rose-line: #8A4A44;
    --petrol: #7CC3CB; --petrol-soft: #163238; --slate: #B4C1CB; --slate-soft: #262C31;
    color-scheme: dark;
  }
}
:root[data-theme="light"] { color-scheme: light; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius-md); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Typografie ---------- */
.kicker {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.cover-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 6vw, 58px); line-height: 1.05; letter-spacing: -.015em;
  text-wrap: balance;
}
.h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -.01em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15;
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: 21px; line-height: 1.25;
}
.em { font-style: italic; color: var(--accent); }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 18px 0 0; max-width: 580px; }
.muted { color: var(--muted); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-md); border: 1.5px solid transparent;
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: filter .15s, background .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { filter: brightness(.92); color: var(--on-brand); }
.btn--secondary { background: var(--paper); color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--blush); }
.btn--ghost { background: transparent; color: var(--ink); text-decoration: underline; padding: 0 8px; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }

/* ---------- Štítky ---------- */
.chip {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500; padding: 5px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--rose-line);
  color: var(--accent-deep); background: var(--paper);
}
.chip--fill { border-color: transparent; background: var(--surface); font-weight: 600; font-size: 12px; padding: 3px 10px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.badge--soon { background: var(--slate-soft); color: var(--slate); }
.badge--new { background: var(--blush); color: var(--accent-deep); }

/* ---------- Záhlaví ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 34px; height: 34px; border-radius: 27%;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-display); font-style: italic; font-size: 23px; line-height: 32px; text-align: center;
  flex: none;
}
.logo__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav__soon {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--slate-soft); color: var(--slate); padding: 2px 7px; border-radius: var(--radius-pill);
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; border-radius: var(--radius-md);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Sekce ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--grey { background: var(--surface); }
.section__head { margin-bottom: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__art { position: relative; height: 400px; }
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: 330px; }
}

/* Ilustrace materiálu (čistě CSS) */
.paper-sheet {
  position: absolute; width: 250px; height: 354px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.paper-sheet--back { width: 230px; height: 326px; background: var(--blush); border-color: var(--rose); padding: 0; }
.paper-sheet__hd { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .1em; color: var(--muted); font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.paper-sheet__kicker { font-size: 8px; font-weight: 700; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-top: 18px; }
.paper-sheet__title { font-family: var(--font-display); font-size: 25px; line-height: 1.06; }
.paper-sheet__rule { height: 1px; width: 40px; background: var(--rose); margin: 6px 0; }
.paper-sheet__box { border-radius: 6px; padding: 8px 10px; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.paper-sheet__box span { display: block; font-weight: 400; letter-spacing: 0; color: var(--ink); margin-top: 4px; line-height: 1.4; }
.paper-sheet__box--tip { background: var(--petrol-soft); color: var(--petrol); }
.paper-sheet__box--warn { background: var(--blush); color: var(--accent-deep); }
.paper-sheet__lines { margin-top: auto; display: grid; gap: 5px; }
.paper-sheet__lines i { display: block; height: 4px; background: var(--surface); border-radius: 2px; }

/* ---------- Karty ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  color: var(--ink); text-decoration: none;
}
a.card:hover { border-color: var(--rose-line); color: var(--ink); }
.card--grey { background: var(--surface); border-color: var(--surface); }
.card__num { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent); }
.card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.card__text { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card__more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); font-size: 15px; }

.band {
  margin-top: 16px; background: var(--surface); border-radius: var(--radius-lg); padding: 22px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  color: var(--ink); text-decoration: none;
}
.band:hover { color: var(--ink); background: var(--blush); }

/* ---------- Produkty ---------- */
.product-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; background: var(--paper); }
.product-card__cover { height: 210px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.product-card__title a { color: var(--ink); text-decoration: none; }
.product-card__title a:hover { color: var(--accent); }
.product-card__text { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.product-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 20px; white-space: nowrap; }

.mini-cover {
  width: 118px; height: 166px; background: #fff; border-radius: 4px; border: 1px solid var(--line);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 6px;
}
.mini-cover__kicker { font-size: 6.5px; font-weight: 700; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-top: 16px; }
.mini-cover__title { font-family: var(--font-display); font-size: 13px; line-height: 1.1; color: var(--ink); }
.mini-cover__rule { height: 1px; width: 22px; background: var(--rose); }
.mini-cover--lg { width: 220px; height: 310px; padding: 26px 22px; gap: 10px; }
.mini-cover--lg .mini-cover__kicker { font-size: 10px; margin-top: 30px; }
.mini-cover--lg .mini-cover__title { font-size: 26px; }
.mini-cover--lg .mini-cover__rule { width: 36px; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border-radius: var(--radius-md); padding: 4px; }
.tab {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 14px var(--font-sans);
}
.tab[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--rose-line);
  color: var(--accent-deep); font-weight: 600; font-size: 14px; text-decoration: none;
}
.pill:hover { background: var(--blush); color: var(--accent-deep); }
.pill[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.empty {
  border: 1px dashed var(--rose-line); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; color: var(--ink-soft);
}

/* Detail produktu */
.product { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.product__cover { background: var(--blush); border-radius: var(--radius-lg); padding: 48px 24px; display: flex; justify-content: center; }
.product__list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.product__list li::marker { color: var(--accent-deep); }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.buybox { margin-top: 28px; border: 1.5px solid var(--brand); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px; }
.buybox__price { display: flex; align-items: baseline; gap: 8px; }
.buybox__price .price { font-size: 32px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--ink-soft); align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.buybox__note { font-size: 13px; color: var(--muted); margin: 0; }
.buybox__msg { font-size: 14px; color: var(--accent-deep); background: var(--blush); border-radius: var(--radius-md); padding: 10px 12px; margin: 0; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Rámečky (Box) ---------- */
.box { border-radius: var(--radius-lg); padding: 14px 18px; display: grid; gap: 4px; font-size: 15px; }
.box p { margin: 0; }
.box__lab { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.box--tip { background: var(--petrol-soft); }
.box--tip .box__lab { color: var(--petrol); }
.box--warn { background: var(--blush); }
.box--warn .box__lab { color: var(--accent-deep); }
.box--rec { background: var(--surface); }
.box--rec .box__lab { color: var(--accent-deep); }
.box--off { border: 1.5px solid var(--brand); }
.box--off .box__lab { color: var(--accent-deep); }

/* Kroky */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.step__num {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--petrol); color: var(--petrol);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Dvousloupec ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.photo-ph {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--blush);
  display: flex; align-items: center; justify-content: center; color: var(--accent-deep); font-weight: 600; font-size: 14px;
  overflow: hidden;
}
.photo-ph img { width: 100%; height: 100%; object-fit: cover; }

.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: "✓"; color: var(--petrol); font-weight: 700; }

/* ---------- Formuláře ---------- */
.form { display: grid; gap: 14px; background: var(--paper); border-radius: var(--radius-lg); padding: 26px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  min-height: 46px; border: 1px solid var(--muted); border-radius: var(--radius-md); padding: 10px 12px;
  font: 400 16px var(--font-sans); color: var(--ink); background: var(--paper);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.form__note { font-size: 13px; color: var(--muted); margin: 0; font-weight: 400; }
.hidden { display: none !important; }

.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px;
  background: var(--paper); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none;
}
.contact-item:hover { color: var(--ink); background: var(--blush); }
.contact-item svg { width: 22px; height: 22px; flex: none; }
.contact-item small { display: block; font-size: 12.5px; color: var(--muted); }
.contact-item strong { font-weight: 600; }

/* ---------- Právní texty ---------- */
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 22px 0 8px; }
.legal ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal ol li::marker { color: var(--accent-deep); font-weight: 700; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal p { margin: 0 0 12px; }
.legal .meta { font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 14px 0 8px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; min-width: 560px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1.5px solid var(--ink); }
.table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer__in { padding: 40px 24px 44px; display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer__brand { display: grid; gap: 10px; max-width: 340px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.site-footer__col { display: grid; gap: 8px; align-content: start; }
.site-footer__col strong { color: var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.logo--sm .logo__mark { width: 26px; height: 26px; font-size: 17px; line-height: 25px; }
.logo--sm .logo__name { font-size: 16px; }

/* Doplňkové rozvržení */
.novinka { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.split--photo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.split--photo-sm { grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); }
@media (max-width: 860px) {
  .novinka, .split--photo, .split--photo-sm { grid-template-columns: 1fr; }
  .novinka .product-card__cover { justify-self: start; }
}
.klub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.klub-tile { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.klub-tile__t { font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
@media (max-width: 560px) {
  .klub-tiles { gap: 8px; }
  .klub-tile { padding: 12px; }
  .klub-tile > span:first-child { font-size: 9px !important; }
  .klub-tile__t { font-size: 14px; }
  .hero__art { margin-bottom: 24px; }
}

/* Značkový panel místo fotky */
.brand-panel {
  background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5; padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.brand-panel__mark { font-family: var(--font-display); font-style: italic; font-size: 180px; line-height: .8; }
.brand-panel__note { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-panel--sm { max-width: 300px; }
.brand-panel--sm .brand-panel__mark { font-size: 140px; }
.brand-panel__facts { margin: 0; display: grid; gap: 14px; }
.brand-panel__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.brand-panel__facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 21px; line-height: 1.2; }
@media (max-width: 860px) {
  .brand-panel { aspect-ratio: auto; min-height: 260px; gap: 28px; }
  .brand-panel__mark { font-size: 120px; }
  .brand-panel--sm { max-width: none; min-height: 180px; flex-direction: row; align-items: flex-end; }
  .brand-panel--sm .brand-panel__mark { font-size: 100px; }
}

/* Obálka jako obrázek */
.product-card__img { height: 180px; width: auto; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.product__cover-img { width: 100%; max-width: 260px; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }

/* Ukázka materiálu */
.product__side { display: grid; gap: 20px; align-content: start; }
.preview { display: grid; gap: 12px; }
.preview__title { margin: 0; font-weight: 700; font-size: 14px; }
.preview__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.preview__thumb {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #FFFFFF; cursor: zoom-in;
  aspect-ratio: 794 / 1123; overflow: hidden;
}
.preview__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.preview__thumb:hover { border-color: var(--rose-line); }

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(22, 22, 22, .94); color: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(22, 22, 22, .94); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.lightbox__count { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.lightbox__close, .lightbox__nav {
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; }
.lightbox__img {
  max-width: min(100%, 820px); max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.lightbox__note { text-align: center; font-size: 13px; opacity: .8; margin: 10px 0 16px; }
@media (max-width: 700px) {
  .lightbox__stage { padding: 0 8px; position: relative; }
  .lightbox__nav { position: absolute; bottom: 8px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__img { max-height: calc(100% - 64px); align-self: flex-start; }
}
@media (max-width: 860px) {
  .product__cover { padding: 24px; }
  .product__cover .mini-cover--lg { width: 150px; height: 212px; padding: 18px 14px; }
  .product__cover .mini-cover--lg .mini-cover__title { font-size: 18px; }
  .product__cover .mini-cover--lg .mini-cover__kicker { margin-top: 18px; font-size: 8px; }
}

/* Obálky v úvodu */
.hero__cover { position: absolute; width: 46%; max-width: 250px; border-radius: 6px; border: 1px solid var(--line); background: #fff; box-shadow: none; }
.hero__cover--1 { left: 4%; top: 40px; transform: rotate(-7deg); }
.hero__cover--3 { right: 4%; top: 40px; transform: rotate(6deg); }
.hero__cover--2 { left: 50%; top: 8px; transform: translateX(-50%); z-index: 2; }
@media (max-width: 860px) {
  /* na menší obrazovce: text nahoře, obálky pod ním, nic se nepřekrývá */
  .hero__art { height: auto; aspect-ratio: 16 / 11; width: 100%; max-width: 560px; margin: 8px auto 0; }
  .hero__cover { width: 36%; }
  .hero__cover--1, .hero__cover--3 { top: 9%; }
  .hero__cover--2 { top: 0; }
}
.price-old { color: var(--muted); font-weight: 400; font-size: .8em; margin-right: 4px; }

/* ---------- Maturitní otázky ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.mode {
  text-align: left; cursor: pointer; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; display: grid; gap: 4px; font: inherit; color: var(--ink);
}
.mode:hover { border-color: var(--rose-line); }
.mode[aria-pressed="true"] { border-color: var(--brand); background: var(--blush); }
.mode__title { font-family: var(--font-display); font-size: 22px; }
.mode__text { font-size: 14.5px; color: var(--ink-soft); }
.mode__price { font-size: 13px; font-weight: 700; color: var(--accent-deep); margin-top: 4px; }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }

.order { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.order__side { position: sticky; top: 92px; }
@media (max-width: 960px) { .order { grid-template-columns: 1fr; } .order__side { position: static; } }

.ostep { padding: 26px 0; border-top: 1px solid var(--line); }
.ostep:first-child { border-top: 0; padding-top: 4px; }
.ostep__title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-display); font-weight: 500; font-size: 23px; }
.ostep__num {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--accent-deep);
  font: 700 14px var(--font-sans); display: inline-flex; align-items: center; justify-content: center; flex: none;
}

.subjects { border: 0; margin: 0 0 16px; padding: 0; }
.subjects legend { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.subjects__list { display: flex; flex-wrap: wrap; gap: 8px; }
.subject {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--rose-line); border-radius: var(--radius-pill); cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--accent-deep); background: var(--paper);
}
.subject input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.subject small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.subject.is-on { background: var(--blush); border-color: var(--brand); }
.subject--add { font: 600 14.5px var(--font-sans); border-style: dashed; }

.panels { display: grid; gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 14px; }
.panel__hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel__remove { border: 0; background: none; color: var(--muted); font: 600 14px var(--font-sans); text-decoration: underline; cursor: pointer; min-height: 40px; }
.panel__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.panel__preview--empty { background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; color: var(--muted); }
.panel__preview .preview__thumbs { grid-template-columns: repeat(auto-fill, minmax(72px, 96px)); }
.panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.panel__count { font-size: 14.5px; color: var(--ink-soft); }
.panel__chosen { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); display: grid; gap: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field input[type="file"] { padding: 9px 10px; font-size: 14px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice strong { display: block; font-size: 15.5px; }
.choice small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--blush); }
.choice.is-disabled { opacity: .6; cursor: not-allowed; }

.sum { border: 1.5px solid var(--brand); border-radius: var(--radius-lg); padding: 22px; }
.sum__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.sum__list li { display: flex; justify-content: space-between; gap: 12px; }
.sum__list--calc { border-top: 1px solid var(--line); padding-top: 12px; color: var(--ink-soft); }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--ink); padding-top: 12px; font-weight: 700; }
.sum__total strong { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14.5px; }
.sum__note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.sum__tip { font-size: 13.5px; margin: 10px 0 0; background: var(--petrol-soft); color: var(--petrol); border-radius: var(--radius-md); padding: 8px 10px; font-weight: 600; }

.sum-bar { display: none; }
@media (max-width: 960px) {
  .sum-bar {
    display: flex; position: sticky; bottom: 0; z-index: 40; justify-content: space-between; align-items: center;
    background: var(--paper); border-top: 1px solid var(--line); padding: 10px 24px;
  }
  .sum-bar strong { font-family: var(--font-display); font-size: 20px; margin-left: 6px; }
}

.dlg { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: min(86dvh, 760px); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(22, 22, 22, .55); }
.dlg__hd { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px 8px; gap: 12px; }
.dlg__close { width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dlg__close svg { width: 22px; height: 22px; }
.dlg__tools { display: flex; gap: 10px; align-items: flex-end; padding: 0 22px 12px; flex-wrap: wrap; }
.dlg__list { list-style: none; margin: 0; padding: 4px 22px; overflow-y: auto; flex: 1; display: grid; gap: 2px; align-content: start; }
.dlg__list li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.dlg__list .check { color: var(--ink); font-size: 15px; }
.dlg__ft { padding: 14px 22px 20px; border-top: 1px solid var(--line); }

.pay { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; margin-top: 24px; border: 1.5px solid var(--brand); border-radius: var(--radius-lg); padding: 22px; }
.pay__info { margin: 0; display: grid; gap: 12px; }
.pay__info dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pay__info dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.pay__qr { display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 13px; }
.pay__qr svg { width: 200px; height: 200px; }
.pay__qr-note { color: var(--muted); }
@media (max-width: 640px) { .pay { grid-template-columns: 1fr; } }
.subject.is-disabled { opacity: .55; cursor: not-allowed; border-style: dashed; }
.nav__account { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__account svg { width: 20px; height: 20px; }
.nav__account:hover { color: var(--accent); }
@media (max-width: 860px) { .nav__account { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--line); } }
.dlg__list .dlg__group { border-bottom: 0; padding: 18px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dlg__list .dlg__group:first-child { padding-top: 6px; }
.check.is-disabled { opacity: .6; cursor: not-allowed; }
.mode__badge { justify-self: start; margin-top: 6px; }
.pricebar { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 14px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-md); font-size: 14.5px; max-width: 760px; box-sizing: border-box; }
.pricebar__item { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pricebar__note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.sleva { margin: 10px 0 0; font-size: 14.5px; display: flex; gap: 8px; align-items: baseline; }
.sleva .badge { flex: none; }
.sleva--ok { color: var(--petrol); font-weight: 600; }
.sum-bar__txt { display: grid; }
.sum-bar__tip { font-size: 12px; color: var(--petrol); font-weight: 600; max-width: 220px; line-height: 1.3; }
.mode[aria-pressed="true"] .mode__badge { background: var(--paper); }

/* Přepínač režimu */
.theme-toggle {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
.site-header__tools { display: flex; align-items: center; gap: 4px; }
/* obrázky obálek a stran zůstávají jako papír */
.mini-cover { background: #FFFFFF; }
.mini-cover__title { color: #161616; }
.mini-cover__kicker { color: #B42B2B; }
.mini-cover__rule { background: #EBC3BE; }

.site-header__in .site-header__tools { order: 3; }
.site-header__in .nav { order: 2; }
@media (max-width: 860px) { .site-header__in .site-header__tools { order: 2; } }
.mode__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mode[aria-pressed="true"] .mode__badges .badge--new { background: var(--paper); }

/* Účet vs. Klub */
.ucet-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.ucet-vs .box { padding: 22px 24px; gap: 8px; }
.ucet-vs .box ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.ucet-vs__price { font-family: "Lora", serif; font-size: 22px; color: var(--ink); }
@media (max-width: 760px) { .ucet-vs { grid-template-columns: 1fr; } }
