/* ADARESI CMS – prezentační web */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.4rem, 1rem + 4vw, 4.6rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f6;
  --color-border: #dde3ec;
  --color-divider: #e6eaf0;
  --color-text: #0f1a2b;
  --color-text-muted: #56637a;
  --color-text-faint: #8d98ab;

  --color-ink: #0b1424;          /* tmavé plochy */
  --color-ink-2: #121e33;
  --color-ink-border: #233149;
  --color-ink-text: #e6ecf5;
  --color-ink-muted: #9aa8bf;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4fd0;
  --color-primary-soft: #e3ebfd;
  --color-primary-on-dark: #7fa6ff;

  --color-ok: #15803d;
  --color-warn: #b45309;
  --color-danger: #b91c1c;

  --radius-sm: .375rem; --radius-md: .5rem; --radius-lg: .875rem; --radius-xl: 1.25rem; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgb(15 26 43 / .06);
  --shadow-md: 0 6px 18px rgb(15 26 43 / .08);
  --shadow-lg: 0 24px 60px rgb(11 20 36 / .18);
  --shadow-shot: 0 30px 80px -20px rgb(4 10 22 / .55), 0 0 0 1px rgb(255 255 255 / .06);
  --transition: 180ms cubic-bezier(.16, 1, .3, 1);

  --content: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Geist', 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; }
p, li, figcaption, dd { text-wrap: pretty; }
a { color: inherit; }
a, button { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: rgb(37 99 235 / .22); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section--dark { background: var(--color-ink); color: var(--color-ink-text); }
.section--white { background: var(--color-surface); }

.eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); font-weight: 500; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--color-primary-on-dark); }
.h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -.02em; margin-top: var(--space-3); }
.lead { font-size: var(--text-base); color: var(--color-text-muted); max-width: 60ch; margin-top: var(--space-4); }
.section--dark .lead { color: var(--color-ink-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: .8rem 1.25rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 24px -8px rgb(37 99 235 / .7); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--color-border); background: var(--color-surface); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-text-faint); }
.btn--ghost-dark { border-color: rgb(255 255 255 / .18); color: var(--color-ink-text); }
.btn--ghost-dark:hover { border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .05); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgb(11 20 36 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgb(255 255 255 / .07); color: var(--color-ink-text); }
.header__inner { display: flex; align-items: center; gap: var(--space-8); height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .02em; box-shadow: 0 6px 16px -6px rgb(37 99 235 / .8); }
.brand small { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; color: var(--color-ink-muted); letter-spacing: .1em; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; font-size: var(--text-sm); }
.nav a { text-decoration: none; color: var(--color-ink-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header__cta { margin-left: var(--space-2); padding: .6rem 1rem; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: var(--radius-md); border: 1px solid rgb(255 255 255 / .15); color: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 4.25rem 0 auto 0; flex-direction: column; gap: 0; background: var(--color-ink); border-bottom: 1px solid var(--color-ink-border); padding: var(--space-2) var(--gutter) var(--space-6); transform: translateY(-120%); transition: transform 260ms cubic-bezier(.16,1,.3,1); }
  .nav.is-open { transform: none; }
  .nav a { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-ink-border); font-size: var(--text-base); color: var(--color-ink-text); }
  .nav .btn { margin-top: var(--space-5); border: none; color: #fff; }
}
@media (min-width: 901px) { .nav .nav__cta-mobile { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% -10%, rgb(37 99 235 / .32), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgb(56 189 248 / .10), transparent 60%), var(--color-ink); color: var(--color-ink-text); padding-top: clamp(var(--space-16), 8vw, var(--space-24)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); pointer-events: none; }
.hero__copy { position: relative; max-width: 880px; text-align: center; margin-inline: auto; }
.hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin-top: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--color-primary-on-dark); }
.hero__lead { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-muted); max-width: 46ch; margin: var(--space-6) auto 0; }
.hero__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-8); }
.hero__meta { display: flex; gap: var(--space-6); justify-content: center; flex-wrap: wrap; margin-top: var(--space-8); font-size: var(--text-xs); color: var(--color-ink-muted); font-family: var(--font-mono); }
.hero__meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta svg { width: 14px; height: 14px; color: #4ade80; }
.hero__shot { position: relative; margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.hero__shot .frame { max-width: 1120px; margin-inline: auto; transform: perspective(2200px) rotateX(6deg); transform-origin: 50% 0; margin-bottom: -6%; }
@media (max-width: 700px) { .hero__shot .frame { transform: none; margin-bottom: -10%; } }

/* Browser frame */
.frame { border-radius: var(--radius-lg); overflow: hidden; background: #0e1828; box-shadow: var(--shadow-shot); border: 1px solid rgb(255 255 255 / .08); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: #131f33; border-bottom: 1px solid rgb(255 255 255 / .06); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3a52; }
.frame__url { margin-inline: auto; transform: translateX(-24px); font-family: var(--font-mono); font-size: 11px; color: #8796ae; background: #0c1626; padding: 3px 14px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 6px; }
.frame__url svg { width: 10px; height: 10px; color: #4ade80; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.frame--light { background: #fff; border-color: var(--color-border); box-shadow: var(--shadow-lg); }
.frame--light .frame__bar { background: #f1f4f8; border-color: var(--color-border); }
.frame--light .frame__bar i { background: #d3dae5; }
.frame--light .frame__url { background: #fff; color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* Trust strip */
.strip { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding-top: calc(6% + var(--space-12)); padding-bottom: var(--space-12); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat dt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -.02em; }
.stat dd { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
@media (max-width: 800px) { .strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); } }

/* Split (text + image) */
.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
.split--rev { grid-template-columns: 1.15fr 1fr; }
.split--rev .split__media { order: -1; }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.photo { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); font-size: var(--text-base); }
.checklist svg { width: 22px; height: 22px; color: var(--color-primary); margin-top: 2px; }
.checklist strong { font-weight: 600; }
.checklist span { color: var(--color-text-muted); }
.section--dark .checklist span { color: var(--color-ink-muted); }
.section--dark .checklist svg { color: var(--color-primary-on-dark); }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.compare > div { padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface); }
.compare h3 { font-size: var(--text-sm); font-weight: 600; display: flex; align-items: center; gap: var(--space-2); }
.compare ul { list-style: none; margin-top: var(--space-3); display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.compare .is-before h3 { color: var(--color-danger); }
.compare .is-after { border-color: rgb(37 99 235 / .35); background: var(--color-primary-soft); }
.compare .is-after h3 { color: var(--color-primary); }
.compare .is-after ul { color: var(--color-text); }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }

/* Lifecycle */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--color-ink-border); border-radius: var(--radius-xl); overflow: hidden; }
.lifecycle__step { padding: var(--space-8) var(--space-6); border-right: 1px solid var(--color-ink-border); position: relative; background: var(--color-ink-2); }
.lifecycle__step:last-child { border-right: none; }
.lifecycle__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink-muted); }
.lifecycle__step h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-top: var(--space-4); }
.lifecycle__step p { font-size: var(--text-sm); color: var(--color-ink-muted); margin-top: var(--space-2); }
.lifecycle__badge { display: inline-block; margin-top: var(--space-5); font-size: var(--text-xs); font-weight: 600; padding: .2rem .65rem; border-radius: var(--radius-full); }
.b-ready { background: #0c4a6e; color: #bae6fd; }
.b-deployed { background: #14532d; color: #bbf7d0; }
.b-service { background: #713f12; color: #fde68a; }
.b-disposed { background: #334155; color: #e2e8f0; }
@media (max-width: 900px) { .lifecycle { grid-template-columns: 1fr 1fr; } .lifecycle__step:nth-child(2) { border-right: none; } .lifecycle__step:nth-child(-n+2) { border-bottom: 1px solid var(--color-ink-border); } }
@media (max-width: 520px) { .lifecycle { grid-template-columns: 1fr; } .lifecycle__step { border-right: none; border-bottom: 1px solid var(--color-ink-border); } .lifecycle__step:last-child { border-bottom: none; } }

/* Tour (tabbed gallery) */
.tour { display: grid; grid-template-columns: 300px 1fr; gap: clamp(var(--space-8), 4vw, var(--space-12)); align-items: start; }
.tour__tabs { display: grid; gap: var(--space-1); position: sticky; top: 6rem; }
.tour__tab { text-align: left; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; display: grid; gap: 2px; color: var(--color-ink-muted); }
.tour__tab strong { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-text); }
.tour__tab span { font-size: var(--text-xs); line-height: 1.45; display: none; }
.tour__tab:hover { background: rgb(255 255 255 / .04); }
.tour__tab[aria-selected="true"] { background: var(--color-ink-2); border-color: var(--color-ink-border); box-shadow: inset 3px 0 0 var(--color-primary-on-dark); }
.tour__tab[aria-selected="true"] span { display: block; }
.tour__panel[hidden] { display: none; }
.tour__panel .frame { cursor: zoom-in; }
.tour__caption { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-ink-muted); font-family: var(--font-mono); }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .tour__tabs { position: static; display: flex; overflow-x: auto; gap: var(--space-2); padding-bottom: var(--space-2); scrollbar-width: thin; }
  .tour__tab { flex: 0 0 auto; padding: var(--space-2) var(--space-4); border-color: var(--color-ink-border); border-radius: var(--radius-full); }
  .tour__tab[aria-selected="true"] { box-shadow: none; background: var(--color-primary); border-color: var(--color-primary); }
  .tour__tab[aria-selected="true"] span { display: none; }
  .tour__desc-mobile { display: block !important; }
}
.tour__desc-mobile { display: none; font-size: var(--text-sm); color: var(--color-ink-muted); margin-bottom: var(--space-4); }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.feature { background: var(--color-surface); padding: var(--space-8); }
.feature__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--text-base); font-weight: 650; margin-top: var(--space-5); }
.feature p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Mobile phones */
.phones { display: flex; justify-content: center; gap: clamp(var(--space-4), 3vw, var(--space-10)); align-items: flex-end; }
.phone { flex: 1 1 0; min-width: 0; max-width: 240px; border-radius: 34px; padding: 10px; background: #0b1424; box-shadow: var(--shadow-lg); border: 1px solid #26344d; }
.phone img { border-radius: 24px; width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; }
.phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 640px) { .phones { gap: var(--space-3); } .phone { border-radius: 20px; padding: 5px; } .phone img { border-radius: 15px; } .phone:nth-child(2) { transform: translateY(-14px); } }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.sec-item { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-ink-2); border: 1px solid var(--color-ink-border); }
.sec-item h3 { font-size: var(--text-sm); font-weight: 600; display: flex; gap: var(--space-3); align-items: center; }
.sec-item h3 svg { width: 18px; height: 18px; color: var(--color-primary-on-dark); flex: none; }
.sec-item p { font-size: var(--text-sm); color: var(--color-ink-muted); margin-top: var(--space-2); }
@media (max-width: 700px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-layout { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(var(--space-10), 5vw, var(--space-16)); align-items: start; }
.sec-layout .photo { margin-top: var(--space-10); aspect-ratio: 4 / 3; }
@media (max-width: 960px) { .sec-layout { grid-template-columns: 1fr; } .sec-layout .photo { display: none; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: step; }
.step { padding: var(--space-8); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-primary); font-weight: 500; }
.step h3 { font-size: var(--text-lg); font-weight: 650; margin-top: var(--space-4); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.step code, .guide code { font-family: var(--font-mono); font-size: .88em; background: var(--color-surface-2); padding: .1em .4em; border-radius: var(--radius-sm); border: 1px solid var(--color-border); white-space: nowrap; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Audience */
.audience { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.audience span { padding: .55rem 1rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); font-size: var(--text-sm); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-6) 0; display: flex; justify-content: space-between; gap: var(--space-4); font-weight: 600; font-size: var(--text-base); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; line-height: 1; color: var(--color-primary); transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); max-width: 68ch; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-20)); background: radial-gradient(700px 400px at 90% 0%, rgb(37 99 235 / .45), transparent 60%), var(--color-ink); color: var(--color-ink-text); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-10); align-items: center; }
.cta h2 { font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: -.02em; }
.cta p { color: var(--color-ink-muted); margin-top: var(--space-4); }
.cta__box { display: grid; gap: var(--space-3); }
.cta__box .btn { width: 100%; }
.cta__note { font-size: var(--text-xs); color: var(--color-ink-muted); text-align: center; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--color-ink); color: var(--color-ink-muted); font-size: var(--text-sm); padding-block: var(--space-16) var(--space-10); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: var(--space-10); }
.footer h4 { color: var(--color-ink-text); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-4); }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { color: var(--color-ink-text); }
.footer__about { margin-top: var(--space-4); max-width: 38ch; }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--color-ink-border); font-size: var(--text-xs); }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(5 10 20 / .92); display: none; align-items: center; justify-content: center; padding: var(--space-6); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1500px, 100%); max-height: 86vh; width: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-shot); }
.lightbox figcaption { position: absolute; bottom: var(--space-5); left: 0; right: 0; text-align: center; color: var(--color-ink-muted); font-size: var(--text-sm); padding-inline: var(--space-6); }
.lightbox__close { position: absolute; top: var(--space-4); right: var(--space-4); width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .1); display: grid; place-items: center; }
.lightbox__close svg { width: 22px; height: 22px; }
.zoomable { cursor: zoom-in; }

/* Reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Návody ---------- */
.page-hero { background: var(--color-ink); color: var(--color-ink-text); padding-block: clamp(var(--space-12), 7vw, var(--space-20)); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% -20%, rgb(37 99 235 / .35), transparent 60%); pointer-events: none; }
.page-hero h1 { position: relative; font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: -.02em; margin-top: var(--space-3); }
.page-hero p { position: relative; color: var(--color-ink-muted); margin-top: var(--space-4); max-width: 60ch; }
.guides { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.toc { position: sticky; top: 6rem; font-size: var(--text-sm); }
.toc h2 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-faint); font-weight: 500; margin: var(--space-6) 0 var(--space-2); }
.toc h2:first-child { margin-top: 0; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: .4rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-text-muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--color-text); background: var(--color-surface-2); }
.toc a.is-active { color: var(--color-primary); border-left-color: var(--color-primary); background: var(--color-primary-soft); font-weight: 600; }
@media (max-width: 960px) { .guides { grid-template-columns: minmax(0,1fr); } .guides > * { min-width: 0; } .toc { position: static; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); } }

.guide { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-12)); margin-bottom: var(--space-8); scroll-margin-top: 6rem; }
.guide__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.guide h2 { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -.015em; }
.guide__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }
.guide > p, .guide__intro { color: var(--color-text-muted); margin-top: var(--space-3); max-width: 70ch; }
.guide h3 { font-size: var(--text-base); font-weight: 650; margin-top: var(--space-8); }
.guide ol.steps-list { list-style: none; counter-reset: s; display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.guide ol.steps-list > li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-4); font-size: var(--text-sm); }
.guide ol.steps-list > li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); font-weight: 700; font-size: var(--text-xs); display: grid; place-items: center; font-family: var(--font-mono); }
.guide ol.steps-list strong { font-weight: 600; }
.guide ul.plain { margin-top: var(--space-4); padding-left: 1.2rem; display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.guide figure { margin-top: var(--space-8); }
.guide figure .frame img { cursor: zoom-in; }
.guide figcaption { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); }
.pre { margin-top: var(--space-4); background: var(--color-ink); color: #d6e2f5; border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.7; overflow-x: auto; white-space: pre; }
.pre .c { color: #7f8ea8; }
.callout { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid; font-size: var(--text-sm); display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); }
.callout svg { width: 20px; height: 20px; margin-top: 2px; }
.callout--info { background: var(--color-primary-soft); border-color: rgb(37 99 235 / .25); color: #1e3a8a; }
.callout--warn { background: #fef6e7; border-color: #f3d39a; color: #7a4a06; }
.table-wrap { overflow-x: auto; margin-top: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.table th { background: var(--color-surface-2); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.table tr:last-child td { border-bottom: none; }
.two-shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 700px) { .two-shots { grid-template-columns: 1fr; } }
