/* Písma jsou uložena přímo na webu (bez Google Fonts – kvůli rychlosti a GDPR). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ==========================================================================
   Materiály pro učitele – design
   Teplý „papírový“ styl: krémové pozadí, inkoustová modř, korálová akce,
   každý předmět má svou barvu (--c) a světlý odstín (--soft).
   ========================================================================== */

:root {
  --paper: #fffaf2;
  --paper-2: #fbf3e6;
  --surface: #ffffff;
  --ink: #1b2240;
  --ink-2: #454c6b;
  --muted: #7c8199;
  --line: #efe6d8;
  --line-2: #e4d9c7;

  --coral: #f0603a;
  --coral-dark: #cc4521;
  --coral-soft: #ffe7dd;
  --sun: #ffc93f;
  --sun-soft: #fff3cf;
  --sage: #2f9464;
  --sage-soft: #dcf2e5;
  --danger: #d23b3b;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 34, 64, .06), 0 2px 6px rgba(27, 34, 64, .04);
  --shadow: 0 1px 2px rgba(27, 34, 64, .05), 0 12px 32px -14px rgba(27, 34, 64, .22);
  --shadow-lg: 0 2px 4px rgba(27, 34, 64, .04), 0 30px 60px -24px rgba(27, 34, 64, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p a, .link { color: var(--coral-dark); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--coral) 35%, transparent); text-underline-offset: 3px; }
p a:hover, .link:hover { text-decoration-color: var(--coral); }
img { max-width: 100%; display: block; }
::selection { background: var(--sun); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6rem;
  font-variation-settings: 'SOFT' 100;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 2.25rem; padding-bottom: 5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-edge: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--btn-edge);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--btn-edge);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--btn-edge); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--coral) 45%, transparent); outline-offset: 3px; }
.btn-primary { --btn-bg: var(--coral); --btn-fg: #fff; --btn-edge: var(--coral-dark); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-edge: #0b1027; }
.btn-sun { --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-edge: #e0a816; }
.btn-small { padding: .5rem .95rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.1em; height: 1.1em; }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
}
.link-button:hover { color: var(--ink); }
.danger, .link-button.danger { color: var(--danger); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn.danger:hover { background: #fde8e8; color: var(--danger); }

/* ---------- Forms ---------- */
input, select, textarea {
  font: inherit; font-size: .98rem; width: 100%;
  padding: .75rem .95rem;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #a3a7b9; }
input:hover, select:hover, textarea:hover { border-color: #d4c7b1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 16%, transparent);
}
select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c8199' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
input[type=radio], input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--coral); margin: 0; }
input[type=file] { padding: .6rem; background: var(--paper); border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 700; font-size: .85rem; margin-right: .9rem;
  padding: .45rem .9rem; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer;
}

label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 1.15rem; }
label > input, label > select, label > textarea { margin-top: .45rem; font-weight: 500; }
label small { font-weight: 500; }
label.checkbox { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { display: block; margin-top: .4rem; font-weight: 500; font-size: .82rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--coral); color: #fff; transform: rotate(-6deg);
  box-shadow: 0 3px 0 var(--coral-dark);
  transition: transform .3s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(4deg) scale(1.05); }
.logo-mark .icon { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); margin-top: .15rem; }
.site-footer .logo-text small { color: #8d93ad; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link.active { background: var(--ink); color: #fff; }
.nav-link .icon { width: 1.05em; height: 1.05em; }
.cart-link { position: relative; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800;
}
.nav-link.active .badge { background: var(--sun); color: var(--ink); }
.nav-sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 .35rem; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding-left: .35rem; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: .9rem;
}

/* ---------- Flash ---------- */
.flash {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem; border-radius: 16px; margin-bottom: 1.75rem;
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid; animation: flash-in .4s var(--ease);
}
.flash .icon { width: 1.3em; height: 1.3em; }
.flash-success { background: var(--sage-soft); border-color: #bfe6cf; color: #1d6a45; }
.flash-info { background: #e8effc; border-color: #cddcf7; color: #2d4d8f; }
.flash-error { background: #fdeaea; border-color: #f6cccc; color: #9b2626; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

.notice {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--sun-soft); color: #7a5a06; border: 1.5px dashed #f0d27a;
  padding: .85rem 1rem; border-radius: 14px; font-size: .9rem; font-weight: 600;
}

/* ---------- Worksheet cover (náhled pracovního listu) ---------- */
.cover {
  --c: #b8901a; --soft: #fbf0c9;
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 4 / 3;
  background-color: var(--soft);
  background-image: radial-gradient(color-mix(in srgb, var(--c) 24%, transparent) 1.1px, transparent 1.4px);
  background-size: 14px 14px;
}
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet {
  position: absolute; left: 50%; top: 13%;
  width: 56%; aspect-ratio: 210 / 297;
  background: #fff; border-radius: 1.8cqi;
  padding: 5.5cqi 5.5cqi;
  box-shadow: 0 .4cqi .8cqi rgba(27, 34, 64, .08), 0 3cqi 6cqi -2cqi rgba(27, 34, 64, .25);
  transform: translateX(-50%) rotate(-3deg);
  transition: transform .45s var(--ease);
}
.sheet-back {
  top: 17%;
  background: color-mix(in srgb, #fff 62%, var(--c));
  transform: translateX(-40%) rotate(6deg);
}
.sheet-head { display: flex; align-items: center; gap: 2cqi; margin-bottom: 3.5cqi; }
.sheet-icon {
  display: grid; place-items: center; width: 8cqi; height: 8cqi; border-radius: 2.2cqi;
  background: var(--c); color: #fff;
}
.sheet-icon .icon { width: 5cqi; height: 5cqi; stroke-width: 2.4; }
.sheet-subject { font-size: 2.5cqi; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); line-height: 1.2; }
.sheet-name { display: flex; gap: 1.5cqi; align-items: flex-end; font-size: 2.2cqi; color: #9aa0b5; font-weight: 600; margin-bottom: 3cqi; }
.sheet-name::after { content: ''; flex: 1; border-bottom: .35cqi dotted #c7cbd8; margin-bottom: .5cqi; }
.sheet-title {
  font-family: var(--font-display); font-weight: 700; font-size: 4.3cqi; line-height: 1.14; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4cqi;
}
.sheet-lines i { display: block; height: 1.2cqi; border-radius: 1cqi; background: #edf0f5; margin-bottom: 2.3cqi; }
.sheet-lines i:nth-child(2) { width: 84%; }
.sheet-lines i:nth-child(3) { width: 92%; }
.sheet-lines i:nth-child(4) { width: 64%; }
.sheet-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; margin-top: 3cqi; }
.sheet-boxes i { aspect-ratio: 1; border-radius: 1.6cqi; border: .4cqi dashed color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--soft) 60%, #fff); }
.sheet-boxes i:nth-child(2), .sheet-boxes i:nth-child(6) { background: color-mix(in srgb, var(--c) 18%, #fff); }
.sheet-dots { display: flex; gap: 2.2cqi; margin-top: 3cqi; }
.sheet-dots i { flex: 1; aspect-ratio: 1; border-radius: 50%; border: .45cqi solid color-mix(in srgb, var(--c) 45%, transparent); }
.sheet-dots i:first-child { background: color-mix(in srgb, var(--c) 22%, #fff); }
.sheet-rules { margin-top: 3cqi; border-left: .45cqi solid color-mix(in srgb, var(--c) 45%, transparent); padding-left: 2cqi; }
.sheet-rules i { display: block; height: 4cqi; border-bottom: .3cqi solid #e6e9f0; }

/* ---------- Pills & prices ---------- */
.pill {
  --c: var(--ink-2); --soft: var(--paper-2);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem .28rem .55rem; border-radius: 999px;
  background: var(--soft); color: var(--c);
  font-size: .78rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.pill .icon { width: 1em; height: 1em; stroke-width: 2.4; }
.pill-plain { padding: .28rem .7rem; background: var(--paper-2); color: var(--ink-2); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.price-free { color: var(--sage); }
.owned-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px; background: var(--sage-soft); color: #1d6a45;
  font-size: .8rem; font-weight: 700;
}
.owned-badge .icon { width: 1em; height: 1em; stroke-width: 3; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.75rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover .sheet:not(.sheet-back) { transform: translateX(-50%) translateY(-3cqi) rotate(-1deg); }
.card:hover .sheet-back { transform: translateX(-34%) rotate(10deg); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.3rem 1.3rem; }
.card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card h3 { font-size: 1.12rem; margin-bottom: 1.1rem; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.card:hover .card-go { background: var(--coral); color: #fff; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  padding: 3.5rem 3.5rem 3.5rem 3.75rem;
  border-radius: 40px;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--sun) 45%, transparent), transparent 38%),
    radial-gradient(circle at 70% 95%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, #7ea6d9 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, #7ea6d9 16%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.7rem); margin-bottom: 1.1rem; }
.scribble { position: relative; white-space: nowrap; z-index: 0; }
.scribble svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .42em; z-index: -1; overflow: visible; }
.scribble path { stroke: var(--sun); stroke-width: 12; fill: none; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 32rem; margin: 0 0 2rem; }

.search-pill {
  display: flex; align-items: center; gap: .35rem;
  max-width: 34rem; padding: .4rem .4rem .4rem 1.2rem;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search-pill:focus-within { border-color: var(--coral); box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 14%, transparent); }
.search-pill > .icon { color: var(--muted); width: 1.25rem; height: 1.25rem; }
.search-pill input { border: 0; box-shadow: none !important; padding: .6rem .4rem; background: transparent; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .icon { color: var(--sage); stroke-width: 3; width: 1em; height: 1em; }

.hero-art { position: relative; height: 420px; }
.fan { position: absolute; width: 62%; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; transition: transform .6s var(--ease); }
.fan-1 { left: 0; top: 18%; transform: rotate(-9deg); z-index: 1; }
.fan-2 { right: 0; top: 2%; transform: rotate(7deg); z-index: 2; }
.fan-3 { left: 20%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.hero-art:hover .fan-1 { transform: rotate(-12deg) translate(-10px, 4px); }
.hero-art:hover .fan-2 { transform: rotate(10deg) translate(10px, -6px); }
.hero-art:hover .fan-3 { transform: rotate(0deg) translateY(-8px); }
.sticker {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-lg);
  font-size: .85rem; font-weight: 700; line-height: 1.25;
  animation: bob 5s ease-in-out infinite;
}
.sticker small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }
.sticker-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.sticker-1 { left: -6%; bottom: 14%; }
.sticker-1 .sticker-icon { background: var(--sage-soft); color: var(--sage); }
.sticker-2 { right: -3%; bottom: 30%; animation-delay: -2.5s; }
.sticker-2 .sticker-icon { background: var(--sun-soft); color: #b98300; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.doodle { position: absolute; z-index: 4; color: var(--sun); }
.doodle-star { width: 46px; height: 46px; right: 42%; top: -2%; transform: rotate(12deg); }
.doodle-star path { fill: var(--sun); stroke: #e5aa12; }

/* ---------- Sections ---------- */
.section { margin-top: 5rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); }
.more-link .icon { transition: transform .25s var(--ease); }
.more-link:hover .icon { transform: translateX(4px); }

.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 1rem; }
.subject-tile {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.1rem; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow-sm); border: 1.5px solid transparent;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.subject-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: var(--shadow); }
.subject-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--soft); color: var(--c); flex-shrink: 0; transition: transform .3s var(--ease); }
.subject-tile:hover .subject-icon { transform: rotate(-8deg) scale(1.06); }
.subject-icon .icon { width: 24px; height: 24px; }
.subject-tile strong { display: block; line-height: 1.25; }
.subject-tile span { font-size: .85rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1.1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  transform: rotate(-5deg);
}
.step:nth-child(1) .step-num { background: var(--coral-soft); color: var(--coral-dark); }
.step:nth-child(2) .step-num { background: var(--sun-soft); color: #b98300; }
.step:nth-child(3) .step-num { background: var(--sage-soft); color: var(--sage); }
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--ink-2); }


/* ---------- Page header / catalog ---------- */
.page-head { margin-bottom: 2rem; }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.breadcrumbs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0 0 1.25rem; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-2); }

.toolbar {
  display: grid; grid-template-columns: 1fr 200px 200px auto; gap: .6rem; align-items: center;
  padding: .6rem; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
}
.toolbar .search-pill { max-width: none; box-shadow: none; border-color: transparent; background: var(--paper); padding-left: 1rem; }
.toolbar select { border-radius: 999px; background-color: var(--paper); border-color: transparent; }
.subject-filter { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 2rem .75rem .1rem; margin-bottom: 1rem; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.filter-chip {
  --c: var(--ink); --soft: var(--paper-2);
  display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0;
  padding: .5rem .95rem; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2);
  font-weight: 700; font-size: .88rem;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip .icon { color: var(--c); width: 1.05em; height: 1.05em; }
.filter-chip:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--ink); }
.filter-chip.active { background: var(--c); border-color: var(--c); color: #fff; }
.filter-chip.active .icon { color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.results-bar a { color: var(--coral-dark); display: inline-flex; align-items: center; gap: .3rem; }

.empty {
  text-align: center; padding: 4rem 1.5rem; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink-2);
}
.empty-icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1.25rem; border-radius: 24px;
  background: var(--sun-soft); color: #b98300; transform: rotate(-6deg);
}
.empty-icon .icon { width: 34px; height: 34px; }
.empty h2 { margin-bottom: .4rem; }
.empty p { margin: 0 auto 1.5rem; max-width: 26rem; color: var(--muted); }

/* ---------- Material detail ---------- */
.detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
.detail-cover { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-cover .sheet { width: 50%; }
.detail h1 { margin: .9rem 0 1rem; }
.detail-about { margin-top: 2.5rem; }
.detail-about h2 { font-size: 1.4rem; }
.description { white-space: pre-line; font-size: 1.07rem; color: var(--ink-2); margin: 0; }
.buy-card {
  position: sticky; top: 96px;
  padding: 2rem; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.buy-card .price { font-size: 2.4rem; display: block; margin-bottom: 1.25rem; }
.buy-card .btn { width: 100%; }
.buy-card .btn + .btn { margin-top: .6rem; }
.features { list-style: none; margin: 1.6rem 0 0; padding: 1.4rem 0 0; border-top: 1.5px dashed var(--line-2); display: grid; gap: .85rem; }
.features li { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--paper-2); color: var(--ink); flex-shrink: 0; }
.feature-icon .icon { width: 17px; height: 17px; }
.admin-note { margin-top: 1.25rem; text-align: center; font-size: .9rem; }

/* ---------- Panels, lists, tables ---------- */
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 1.75rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.panel-flush { padding: 0; overflow: hidden; }

.item-list { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1.5px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item-thumb { width: 92px; border-radius: 14px; overflow: hidden; }
.item-thumb .cover { aspect-ratio: 1; }
.item-thumb .sheet { width: 62%; top: 16%; }
.item-title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; display: block; margin-bottom: .3rem; }
.item-title:hover { color: var(--coral-dark); }
.item-sub { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .85rem; font-weight: 600; }
.item-end { display: flex; align-items: center; gap: .75rem; }
.item-end .price { font-size: 1.15rem; }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.75rem; align-items: start; }
.summary { position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; color: var(--ink-2); font-weight: 600; }
.summary-total { border-top: 1.5px dashed var(--line-2); margin-top: .6rem; padding-top: 1rem; color: var(--ink); }
.summary-total .price { font-size: 1.8rem; }
.summary .btn { margin-top: 1.25rem; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1rem 0 0; font-size: .82rem; color: var(--muted); font-weight: 600; }

.pay-options { display: grid; gap: .75rem; margin: 1.1rem 0 1.4rem; }
.pay-option {
  display: flex; align-items: center; gap: .9rem; margin: 0;
  padding: 1rem 1.1rem; border-radius: 16px; border: 1.5px solid var(--line-2);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.pay-option:hover { border-color: #d4c7b1; }
.pay-option:has(input:checked) { border-color: var(--coral); background: color-mix(in srgb, var(--coral-soft) 50%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 12%, transparent); }
.pay-option .feature-icon { background: var(--paper-2); }
.pay-option strong { display: block; }
.pay-option span { font-weight: 500; font-size: .85rem; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: .95rem 1.25rem; border-bottom: 1.5px solid var(--line); text-align: left; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--paper); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--paper) 70%, #fff); }
.table .num { text-align: right; }
.table-wrap { overflow-x: auto; }
.cell-material { display: flex; align-items: center; gap: .9rem; min-width: 240px; }
.cell-material .item-thumb { width: 52px; border-radius: 10px; }
.cell-actions { display: flex; justify-content: flex-end; gap: .15rem; }

.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--sage-soft); color: #1d6a45; }

/* ---------- Success ---------- */
.success-head { position: relative; text-align: center; padding: 3.5rem 1.5rem 2.5rem; margin-bottom: 1.75rem; border-radius: 36px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.success-head p { margin: 0; color: var(--muted); font-weight: 600; }
.success-icon {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 28px;
  background: var(--sage); color: #fff; transform: rotate(-6deg);
  box-shadow: 0 5px 0 #1f6e49; animation: pop .6s var(--ease);
}
.success-icon .icon { width: 42px; height: 42px; stroke-width: 3; }
@keyframes pop { from { transform: rotate(-6deg) scale(.4); opacity: 0; } }
.confetti i { position: absolute; width: 10px; height: 16px; border-radius: 3px; opacity: .9; animation: fall 1.2s var(--ease) both; }
.confetti i:nth-child(1) { left: 12%; top: 22%; background: var(--coral); transform: rotate(20deg); }
.confetti i:nth-child(2) { left: 22%; top: 62%; background: var(--sun); transform: rotate(-30deg); animation-delay: .1s; }
.confetti i:nth-child(3) { left: 80%; top: 20%; background: #7454d1; transform: rotate(40deg); animation-delay: .05s; }
.confetti i:nth-child(4) { left: 88%; top: 58%; background: var(--sage); transform: rotate(-15deg); animation-delay: .15s; }
.confetti i:nth-child(5) { left: 70%; top: 76%; background: #2f7bc4; border-radius: 50%; width: 12px; height: 12px; animation-delay: .2s; }
.confetti i:nth-child(6) { left: 32%; top: 16%; background: #cc3d83; border-radius: 50%; width: 10px; height: 10px; animation-delay: .12s; }
@keyframes fall { from { opacity: 0; translate: 0 -30px; } }

/* ---------- Auth ---------- */
.auth {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto;
  border-radius: 36px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.auth-aside {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 3rem; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.auth-aside::before { content: ''; position: absolute; z-index: -1; width: 300px; height: 300px; border-radius: 50%; right: -110px; bottom: -110px; background: color-mix(in srgb, var(--coral) 45%, transparent); filter: blur(50px); }
.auth-aside::after { content: ''; position: absolute; z-index: -1; width: 160px; height: 160px; border-radius: 50%; left: -50px; top: 40%; background: color-mix(in srgb, var(--sun) 30%, transparent); filter: blur(50px); }
.auth-aside h2 { color: #fff; font-size: 1.9rem; }
.auth-aside p { color: #c5cae0; margin: 0; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.auth-aside li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.auth-aside li .feature-icon { background: rgba(255, 255, 255, .1); color: var(--sun); }
.auth-form { padding: 3rem; }
.auth-form h1 { font-size: 2.1rem; }
.auth-form > p:first-of-type { margin-top: 0; }
.auth-switch { text-align: center; margin: 1.5rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; flex-shrink: 0; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat:nth-child(1) .stat-icon { background: var(--sage-soft); color: var(--sage); }
.stat:nth-child(2) .stat-icon { background: var(--coral-soft); color: var(--coral-dark); }
.stat:nth-child(3) .stat-icon { background: #ece5fd; color: #7454d1; }
.stat:nth-child(4) .stat-icon { background: var(--sun-soft); color: #b98300; }
.stat span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat strong { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.15; }
.form-card { max-width: 820px; }
.form-section { padding-bottom: .5rem; margin-bottom: 1.5rem; border-bottom: 1.5px dashed var(--line-2); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; margin-bottom: 1rem; }
.cover-preview { display: flex; align-items: center; gap: 1rem; margin: -.4rem 0 1.2rem; }
.cover-preview img { width: 110px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 1rem; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.actions-inline { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5cae0; padding: 3.5rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2rem; }
.site-footer .logo { color: #fff; margin-bottom: .9rem; }
.site-footer p { margin: 0; max-width: 24rem; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: .4rem 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8d93ad; }

/* ---------- Entrance animation ---------- */
.reveal { animation: rise .7s var(--ease) both; }
.grid > .card { animation: rise .6s var(--ease) both; }
.grid > .card:nth-child(2) { animation-delay: .05s; }
.grid > .card:nth-child(3) { animation-delay: .1s; }
.grid > .card:nth-child(4) { animation-delay: .15s; }
.grid > .card:nth-child(5) { animation-delay: .2s; }
.grid > .card:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble path { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 2.75rem 2rem; }
  .hero-art { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .detail { grid-template-columns: 1fr; gap: 2rem; }
  .buy-card, .summary { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search-pill { grid-column: 1 / -1; }
  .toolbar .btn { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 2.25rem; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-label { display: none; }
  .nav-link { padding: .55rem .65rem; }
  .user-chip .nav-label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .main { padding-top: 1.5rem; }
  .logo-text { display: none; }
  .hero { padding: 2rem 1.25rem; border-radius: 28px; }
  .hero-art { height: 280px; }
  .sticker { font-size: .78rem; padding: .55rem .8rem .55rem .55rem; }
  .sticker-icon { width: 32px; height: 32px; }
  .sticker-1 { left: 0; bottom: 4%; }
  .sticker-2 { right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .item { grid-template-columns: 64px 1fr; gap: .9rem; padding: 1rem; }
  .item-thumb { width: 64px; }
  .item-end { grid-column: 1 / -1; justify-content: space-between; }
  .auth-form, .auth-aside { padding: 1.75rem; }
  .panel { padding: 1.25rem; }
  .stats { grid-template-columns: 1fr; }
  .success-head { padding: 2.5rem 1.25rem 2rem; }
}

/* ---------- Skutečné náhledy stran (vyrenderované z PDF) ---------- */
.sheet-img { padding: 0; overflow: hidden; background: #fff; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sheet-back.sheet-img img { opacity: .55; }

.gallery {
  --c: var(--ink); --soft: var(--paper-2);
  border-radius: 32px; padding: 2rem 2rem 1.5rem;
  background-color: var(--soft);
  background-image: radial-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1.2px, transparent 1.5px);
  background-size: 18px 18px;
  box-shadow: var(--shadow);
}
.gallery-stage {
  position: relative; display: block; width: min(100%, 440px); margin: 0 auto;
  padding: 0; border: 0; background: #fff; cursor: zoom-in;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(27, 34, 64, .06), 0 24px 48px -18px rgba(27, 34, 64, .4);
  transform: rotate(-1deg); transition: transform .4s var(--ease);
}
.gallery-stage:hover { transform: rotate(0deg) scale(1.01); }
.gallery-stage img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; }
.gallery-zoom {
  position: absolute; right: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(27, 34, 64, .82); color: #fff; font-size: .8rem; font-weight: 700;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
.gallery-stage:hover .gallery-zoom, .gallery-stage:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-thumbs { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.thumb {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  width: 84px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .75rem; font-weight: 700; color: var(--ink-2);
}
.thumb img {
  width: 84px; aspect-ratio: 210 / 297; object-fit: cover; object-position: top;
  border-radius: 8px; background: #fff; border: 3px solid transparent;
  box-shadow: 0 4px 12px -4px rgba(27, 34, 64, .3); transition: border-color .15s, transform .2s var(--ease);
}
.thumb:hover img { transform: translateY(-2px); }
.thumb.active img { border-color: var(--c); }
.thumb-more {
  justify-content: center; text-align: center; cursor: default;
  aspect-ratio: 210 / 297; height: auto; align-self: flex-start;
  border-radius: 8px; border: 2px dashed color-mix(in srgb, var(--c) 45%, transparent);
  background: rgba(255, 255, 255, .6); color: var(--c); padding: .4rem; line-height: 1.2;
}
.thumb-more strong { font-family: var(--font-display); font-size: 1.3rem; }
.thumb-more span:last-child { font-size: .62rem; color: var(--ink-2); font-weight: 600; }
.thumb-more-icon .icon { width: 16px; height: 16px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15, 19, 38, .92); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 1rem; animation: flash-in .25s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 110px); max-width: min(92vw, 820px); border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { font-weight: 700; font-size: .9rem; color: #c5cae0; }
.lightbox-nav {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox-nav .icon { width: 22px; height: 22px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; color: #fff; background: rgba(255, 255, 255, .12); width: 46px; height: 46px; }
.lightbox-close:hover { background: rgba(255, 255, 255, .24); color: #fff; }

.preview-strip { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1.3rem; }
.preview-strip img { width: 64px; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: var(--shadow-sm); }
.preview-strip .hint { margin: 0 0 0 .4rem; }

@media (max-width: 560px) {
  .gallery { padding: 1.25rem 1rem 1rem; border-radius: 26px; }
  .thumb, .thumb img { width: 64px; }
  .lightbox { gap: .25rem; }
  .lightbox-nav { position: absolute; bottom: 20px; }
  .lightbox-nav.prev { left: 20px; }
  .lightbox-nav.next { right: 20px; }
}
@media (max-width: 560px) {
  .site-footer .logo-text { display: flex; }
}

/* ---------- Faktury ---------- */
.field-error { display: block; margin-top: .35rem; color: var(--danger); font-size: .82rem; font-weight: 600; }
.form-row-zip { grid-template-columns: 1fr 2fr; }
.invoice-bar { display: flex; align-items: center; gap: 1rem; }
.invoice-bar > div { flex: 1; display: flex; flex-direction: column; }
.invoice-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--ink); }
.invoice-link:hover { color: var(--coral-dark); }
.status-warn { background: var(--sun-soft); color: #7a5a06; }
.status-error { background: #fdeaea; color: #9b2626; }
code { font-size: .88em; background: rgba(27, 34, 64, .06); padding: .1em .35em; border-radius: 5px; }
@media (max-width: 560px) {
  .form-row-zip { grid-template-columns: 1fr; }
  .invoice-bar { flex-wrap: wrap; }
}

/* ---------- Právní texty ---------- */
.legal { max-width: 860px; padding: 2.25rem 2.5rem; }
.legal section + section { margin-top: 1.75rem; }
.legal h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p { margin: 0 0 .75rem; }
.legal ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
.consents { display: grid; gap: .75rem; margin: 1.25rem 0 0; }
.consents label { margin: 0; font-weight: 500; font-size: .88rem; line-height: 1.45; align-items: flex-start; color: var(--ink-2); }
.consents input { margin-top: .15rem; flex-shrink: 0; }
@media (max-width: 560px) { .legal { padding: 1.5rem 1.25rem; } }

/* ---------- Zálohy ---------- */
.backup-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.backup-info .panel { display: flex; gap: .9rem; align-items: flex-start; margin: 0; }
.backup-info .panel div { display: flex; flex-direction: column; gap: .2rem; }
.status .icon { width: .95em; height: .95em; }
@media (max-width: 760px) { .backup-info { grid-template-columns: 1fr; } }

/* ---------- O mně ---------- */
.about-hero { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.about-photo { position: relative; width: 260px; }
.about-photo::before {
  content: ''; position: absolute; inset: -14px -14px 14px 14px; z-index: 0;
  border-radius: 36px; background: var(--sun-soft); border: 2px dashed color-mix(in srgb, var(--sun) 70%, #c99700);
  transform: rotate(4deg);
}
.about-photo img {
  position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 163 / 229; object-fit: cover;
  border-radius: 32px; box-shadow: var(--shadow-lg); transform: rotate(-2deg);
}
.about-badge {
  position: absolute; z-index: 2; left: -18px; bottom: 26px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 700; font-size: .85rem; color: var(--coral-dark);
}
.about-intro h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); }
.about-intro .lead { margin-bottom: 1.5rem; }
.about-grid { max-width: 880px; }
.about-story { padding: 2.25rem 2.5rem; margin: 0; }
.about-story p { color: var(--ink-2); line-height: 1.75; font-size: 1.04rem; }
.about-quote {
  margin: 1.75rem 0 0; padding: 1.25rem 1.5rem; border-radius: 20px;
  background: var(--coral-soft); color: var(--ink); border-left: 5px solid var(--coral);
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45;
}
.about-teaser { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; padding: 2.5rem 3rem; margin: 0; }
.about-teaser h2 { margin-bottom: .75rem; }
.about-teaser p { color: var(--ink-2); max-width: 44rem; margin: 0 0 1rem; line-height: 1.7; }
.about-photo-sm { width: 170px; }
@media (max-width: 860px) {
  .about-hero, .about-teaser { grid-template-columns: 1fr; justify-items: start; }
  .about-photo { width: 200px; margin-left: 14px; }
  .about-teaser { padding: 2rem 1.5rem; }
  .about-story { padding: 1.75rem 1.5rem; }
}
