/* WebStra – hlavní styly
   Paleta: kobalt (inkoust výkresu), papír, noc (text), rastr (mřížka), zvýrazňovač, korektura. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --cobalt: #2433D1;
  --cobalt-deep: #18238F;
  --paper: #F3F5FB;
  --white: #FFFFFF;
  --ink: #0D1240;
  --ink-soft: #464C78;
  --grid: #D8DCEF;
  --marker: #FFD23F;
  --red: #C4321C;
  --ok: #0E7C4A;

  --bg: var(--white);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --line: var(--grid);
  --surface: var(--paper);

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  --step-4: clamp(2.8rem, 1.2rem + 6.2vw, 5.4rem);

  --wrap: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 3px;
  --blueprint:
    linear-gradient(rgb(255 255 255 / .09) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, rgb(255 255 255 / .09) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px) 0 0 / 24px 24px;
  --graph:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1036;
    --fg: #E7EAF8;
    --fg-soft: #AEB4D8;
    --line: #232B66;
    --surface: #0F1645;
    --cobalt: #5B6BFF;
    --red: #FF7A63;
    --ok: #4FD69A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.05; margin: 0 0 .5em; font-weight: 800; font-stretch: 78%; letter-spacing: -.01em; word-spacing: .1em; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-stretch: 88%; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--fg-soft); max-width: 36em; }
.muted { color: var(--fg-soft); }
.small { font-size: var(--step--1); }
.nowrap { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-small { font-size: var(--step-1); }
code, pre { font-family: var(--mono); font-size: .88em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--marker); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { left: .5rem; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 750; font-stretch: 85%; letter-spacing: .01em;
  padding: .8em 1.35em; border: 2px solid var(--cobalt); border-radius: var(--radius);
  background: var(--cobalt); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { padding: .45em .95em; font-size: var(--step--1); }
.btn-light { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--cobalt); }
.btn-ghost:hover { background: var(--cobalt); color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font-weight: 850; font-stretch: 70%; font-size: 1.55rem; letter-spacing: -.01em; margin-right: auto; }
.logo svg { color: var(--cobalt); }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { color: var(--fg); text-decoration: none; font-weight: 600; font-stretch: 90%; padding: .5rem .6rem; border-radius: var(--radius); }
.nav-item > a:hover, .nav-item > a[aria-current] { color: var(--cobalt); }
.nav-item > a[aria-current] { box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }
.sub-toggle { width: 1.5rem; height: 2rem; border: 0; background: none; color: var(--fg); cursor: pointer; margin-left: -.35rem; padding: 0; }
.sub-toggle::before { content: ""; display: block; width: .45rem; height: .45rem; margin: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.sub { list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 17rem; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--cobalt); box-shadow: 0 18px 40px -20px rgb(13 18 64 / .45); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .sub.open { display: block; }
.sub a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; text-decoration: none; color: var(--fg); border-radius: var(--radius); }
.sub a:hover, .sub a[aria-current] { background: var(--surface); color: var(--cobalt); }
.sub a span { font-weight: 650; }
.sub a small { color: var(--fg-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-extra { display: flex; align-items: center; gap: .75rem; }
.botview-btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--fg-soft); background: none; border: 1px dashed var(--line); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; }
.botview-btn:hover { color: var(--cobalt); border-color: var(--cobalt); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 4.25rem); overflow: auto; }
  .nav.open { display: flex; }
  .no-js .nav { display: flex; position: static; padding-inline: 0; }
  .no-js .head-row { flex-wrap: wrap; }
  .nav-list { flex-direction: column; }
  .nav-item { flex-wrap: wrap; }
  .nav-item > a { flex: 1; font-size: 1.15rem; padding: .6rem 0; }
  .sub-toggle { width: 2.75rem; height: 2.75rem; }
  .sub { position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--cobalt); margin-bottom: .5rem; }
  /* Na mobilu jen klikáním: hover/focus nesmí přebít otevřené podmenu. */
  .has-sub:hover .sub:not(.open), .has-sub:focus-within .sub:not(.open) { display: none; }
  .sub.open { display: block; }
  .nav-extra { flex-wrap: wrap; }
}

.crumbs { padding-top: 1.25rem; font-size: var(--step--1); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; color: var(--fg-soft); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--fg-soft); }

/* ---------------------------------------------------------------- Hero */
.hero { background: var(--cobalt-deep); background: var(--blueprint), #2433D1; color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-title {
  font-size: var(--step-4); line-height: .92; font-weight: 850; letter-spacing: -.02em; word-spacing: .08em; margin: 0;
  font-stretch: 86%;
}
.hero-side .lede { color: rgb(255 255 255 / .86); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0; }
.link-light { color: #fff; font-weight: 650; }
@media (max-width: 800px) { .hero-top { grid-template-columns: minmax(0, 1fr); } }

.drafting { position: relative; }
.pipeline { list-style: none; display: flex; gap: .5rem; margin: 0 0 1.25rem; padding: 0; font-weight: 750; font-stretch: 80%; font-size: var(--step--1); letter-spacing: .02em; }
.pipeline li { display: flex; align-items: baseline; gap: .4rem; padding: .3rem .7rem; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; color: rgb(255 255 255 / .55); transition: color .3s, background-color .3s, border-color .3s; }
.pipeline li span { font-weight: 450; font-stretch: 100%; }
.pipeline li.on { color: var(--ink); background: var(--marker); border-color: var(--marker); }

.dim { position: relative; height: 2rem; width: var(--fw, 100%); max-width: 100%; }
.dim-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(255 255 255 / .7); }
.dim-line::before, .dim-line::after { content: ""; position: absolute; top: -7px; width: 1px; height: 15px; background: #fff; }
.dim-line::before { left: 0; } .dim-line::after { right: 0; }
.dim-val { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #2433D1; padding: 0 .6rem; font-family: var(--mono); font-size: .8rem; color: var(--marker); white-space: nowrap; }

.frame-stage { position: relative; }
.frame { position: relative; width: var(--w); max-width: 100%; min-width: 200px; background: #fff; color: #1d1a16; border-radius: 6px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .4); container-type: inline-size; container-name: frame; }
.frame.dragging { user-select: none; }
.frame.animate { transition: width .6s cubic-bezier(.3,.8,.2,1); }
.frame-bar { display: flex; align-items: center; gap: .35rem; height: 2rem; padding: 0 .75rem; background: #EDEEF3; border-bottom: 1px solid #DADCE6; border-radius: 6px 6px 0 0; font-family: var(--mono); font-size: .72rem; color: #6A6F87; }
.frame-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #C9CCDA; }
.frame-bar span { margin-left: .75rem; background: #fff; border-radius: 999px; padding: .1rem .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Úchyt pro změnu šířky: leží mimo rám, aby se nepletl s posuvníkem ukázky. */
.grip { position: absolute; top: 0; right: -26px; width: 26px; height: 100%; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
.grip::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 12px; border-left: 2px dashed rgb(255 210 63 / .55); }
.grip span { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px #2433D1, 0 6px 14px rgb(0 0 0 / .3); transition: transform .15s; }
.grip svg, .presets-hint svg { fill: none; stroke: #0D1240; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.grip:hover span, .grip:focus-visible span, .frame.dragging .grip span { transform: scale(1.2); }
.presets-hint b { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--marker); color: #0D1240; vertical-align: -.25em; }
.grip:focus-visible { outline: none; box-shadow: none; }
.grip:focus-visible span { box-shadow: 0 0 0 3px #fff; }

.presets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.presets-hint { margin: 0 .5rem 0 0; color: rgb(255 255 255 / .75); font-size: var(--step--1); }
.presets button { font: inherit; font-size: var(--step--1); font-weight: 650; color: #fff; background: transparent; border: 1px solid rgb(255 255 255 / .45); border-radius: var(--radius); padding: .35rem .75rem; cursor: pointer; }
.presets button span { font-family: var(--mono); font-size: .75rem; opacity: .7; margin-left: .25rem; }
.presets button:hover, .presets button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* Ukázkový klientský web uvnitř rámu – reaguje na šířku rámu (container queries). */
.mock { position: relative; height: clamp(340px, 42vw, 440px); overflow: hidden; display: flex; flex-direction: column; font-family: Georgia, "Times New Roman", serif; --m-accent: #B5541B; --m-cream: #FBF4EA; background: var(--m-cream); border-radius: 0 0 6px 6px; }
.m-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #C9B79D transparent; }
.m-scroll:focus { outline: none; }
.m-nav { position: sticky; top: 0; z-index: 1; background: var(--m-cream); display: flex; align-items: center; gap: 1rem; padding: .8rem 1.25rem; border-bottom: 1px solid #EADFCF; }
.m-logo { font-size: 1.3rem; font-style: italic; color: var(--m-accent); margin-right: auto; }
.m-links { display: flex; gap: 1.25rem; font-family: var(--font); font-size: .85rem; color: #5E4B3A; }
.m-burger { display: none; flex-direction: column; gap: 4px; }
.m-burger i { width: 20px; height: 2px; background: #5E4B3A; }
.m-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; padding: 1.5rem 1.25rem 1rem; align-items: center; }
.m-h { font-size: 2rem; line-height: 1.05; margin: 0 0 .5rem; color: #2A1D12; }
.m-p { font-family: var(--font); font-size: .9rem; margin: 0 0 .9rem; color: #5E4B3A; }
.m-btn { display: inline-block; font-family: var(--font); font-weight: 700; font-size: .8rem; background: var(--m-accent); color: #fff; padding: .5rem .9rem; border-radius: 999px; }
.m-img { aspect-ratio: 4/3; background: #EBDDC8; border-radius: 10px; overflow: hidden; }
.m-img svg { width: 100%; height: 100%; }
.m-img line { stroke: #C9B79D; stroke-width: .6; vector-effect: non-scaling-stroke; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 0 1.25rem 1.25rem; font-family: var(--font); }
.m-cards div { background: #fff; border-radius: 8px; padding: .6rem; display: grid; gap: .1rem; font-size: .8rem; color: #2A1D12; }
.m-thumb { display: block; height: 48px; background: #F1E6D6; border-radius: 6px; margin-bottom: .35rem; }
.m-cards small { color: var(--m-accent); font-weight: 700; }
.m-sec { padding: 1.25rem 1.25rem .5rem; border-top: 1px solid #EADFCF; }
.m-h2 { font-size: 1.3rem; margin: 0 0 .4rem; color: #2A1D12; }
.m-hours .m-p { display: flex; justify-content: space-between; max-width: 18rem; margin: 0 0 .3rem; }
.m-hours b { color: #2A1D12; }
.m-foot { margin-top: 1rem; padding: 1rem 1.25rem; background: #2A1D12; color: #EADFCF; font-family: var(--font); font-size: .75rem; }
.m-call { display: none; position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); font-family: var(--font); font-weight: 700; font-size: .85rem; background: var(--m-accent); color: #fff; padding: .55rem 1.2rem; border-radius: 999px; box-shadow: 0 6px 16px rgb(0 0 0 / .3); z-index: 2; }
.m-watch { display: none; position: absolute; inset: 2.6rem 0 0; background: #111; color: #fff; place-items: center; text-align: center; font-family: var(--font); font-size: .95rem; font-weight: 700; line-height: 1.2; }

@container frame (max-width: 760px) {
  .m-hero { grid-template-columns: minmax(0, 1fr); }
  .m-img { aspect-ratio: 16/7; order: -1; }
  .m-h { font-size: 1.6rem; }
  .m-cards { grid-template-columns: repeat(3, 1fr); }
}
@container frame (max-width: 520px) {
  .m-links { display: none; }
  .m-burger { display: flex; }
  .m-h { font-size: 1.4rem; }
  .m-cards { grid-template-columns: minmax(0, 1fr); }
  .m-cards div { grid-template-columns: 48px 1fr auto; align-items: center; column-gap: .6rem; }
  .m-thumb { height: 36px; margin: 0; }
  .m-call { display: block; }
  .m-scroll { padding-bottom: 3.2rem; }
  .m-foot { margin-bottom: -3.2rem; padding-bottom: 4.2rem; }
}
@container frame (max-width: 250px) {
  .m-watch { display: grid; }
}

/* Fáze „jen HTML“: bez stylů, jako by se CSS ještě nenačetlo. */
.js .mock[data-stage="html"] { background: #fff; font-family: "Times New Roman", Times, serif; }
.js .mock[data-stage="html"] * { background: transparent !important; color: #000 !important; font-family: inherit !important; border-radius: 0 !important; box-shadow: none !important; }
.js .mock[data-stage="html"] .m-nav, .js .mock[data-stage="html"] .m-hero, .js .mock[data-stage="html"] .m-cards { display: block; position: static; }
.js .mock[data-stage="html"] .m-sec, .js .mock[data-stage="html"] .m-foot { outline: 1px dashed #9AA3E8; margin: 4px; }
.js .mock[data-stage="html"] .m-nav > *, .js .mock[data-stage="html"] .m-cards > div { display: block; outline: 1px dashed #9AA3E8; margin: 4px; }
.js .mock[data-stage="html"] .m-links span { color: #00E !important; text-decoration: underline; margin-right: .5em; }
.js .mock[data-stage="html"] .m-btn { color: #00E !important; text-decoration: underline; padding: 0; }
.js .mock[data-stage="html"] .m-img { outline: 1px dashed #9AA3E8; aspect-ratio: auto; height: 60px; }
.js .mock[data-stage="html"] .m-burger, .js .mock[data-stage="html"] .m-call, .js .mock[data-stage="html"] .m-thumb { display: none; }
.js .mock[data-stage="css"] .m-call { opacity: .4; }
.mock.painting * { transition: background-color .5s, color .5s, border-radius .5s; }

/* ---------------------------------------------------------------- Sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-paper { background: var(--graph), var(--surface); background-position: -1px -1px; }
.section-ink { background: var(--blueprint), #2433D1; color: #fff; }
.section-ink a { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--fg-soft); max-width: 38em; }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Postup – skutečná posloupnost, proto čísla. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-weight: 850; font-stretch: 62%; font-size: 3.4rem; line-height: 1; color: var(--cobalt); }
.steps li::after { content: ""; position: absolute; top: 1.7rem; left: 2.8rem; right: -2.5rem; height: 1px; background: repeating-linear-gradient(90deg, var(--cobalt) 0 6px, transparent 6px 11px); }
.steps li:last-child::after { right: 0; background: var(--cobalt); }
.steps p { color: var(--fg-soft); }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps li { padding: 0 0 0 4rem; }
  .steps li::before { font-size: 2.8rem; }
  .steps li::after { display: none; }
}

/* Ceník jako výkaz – tabulka, protože jde o srovnání. */
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--bg); border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: var(--step--1); font-weight: 650; color: var(--fg-soft); border-bottom: 2px solid var(--fg); padding-block: .8rem; }
.price-table tbody th a { word-spacing: .1em; font-size: var(--step-1); font-weight: 800; font-stretch: 80%; text-decoration: none; color: var(--fg); }
.price-table tbody th a:hover { color: var(--cobalt); }
.price-table tbody th small { display: block; font-weight: 400; color: var(--fg-soft); font-size: var(--step--1); margin-top: .2rem; max-width: 26em; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table td.num { font-size: var(--step-1); font-weight: 800; font-stretch: 85%; color: var(--cobalt); }
.price-table .from, .price-table .per { font-size: var(--step--1); font-weight: 500; color: var(--fg-soft); }
.price-table .service-row { border-top: 3px double var(--fg); }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--marker) 14%, transparent); }
.table-note { margin-top: .75rem; }
@media (max-width: 700px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { border: 0; padding: .15rem 0; }
  .price-table td { display: flex; justify-content: space-between; gap: 1rem; }
  .price-table td::before { content: attr(data-label); color: var(--fg-soft); font-size: var(--step--1); font-weight: 500; font-stretch: 100%; }
  .price-table .num { text-align: left; }
  .price-table td.num { margin-top: .4rem; }
}

/* Služby s malými živými ukázkami */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--fg); }
.svc { padding: 1.75rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.svc:nth-child(even) { padding: 1.75rem 0 2rem 2rem; border-left: 1px solid var(--line); }
.svc h3 a { color: var(--fg); text-decoration: none; }
.svc h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.svc > p { color: var(--fg-soft); max-width: 34em; }
@media (max-width: 760px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
}
.serp { display: grid; gap: .15rem; padding: 1rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-family: Arial, sans-serif; max-width: 32rem; }
.serp-url { font-size: .8rem; color: #4D5156; }
.serp-title { font-size: 1.15rem; color: #1A0DAB; line-height: 1.3; }
.serp-desc { font-size: .85rem; color: #4D5156; }
@media (prefers-color-scheme: dark) { .serp-url, .serp-desc { color: #BDC1C6; } .serp-title { color: #8AB4F8; } }
.svc-design { --accent: #2433D1; }
.svc-design h3 { box-shadow: inset 0 -.35em 0 color-mix(in srgb, var(--accent) 22%, transparent); display: inline; }
.svc-design h3 a { color: var(--accent); transition: color .3s; }
.swatches { display: flex; gap: .6rem; margin-top: 1rem; }
.swatches button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid var(--bg); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fg); }
.seg { display: inline-flex; border: 1px solid var(--fg); border-radius: var(--radius); overflow: hidden; }
.seg button { font: inherit; font-weight: 700; font-size: var(--step--1); padding: .35rem .9rem; background: transparent; color: var(--fg); border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
[data-lang-text] { min-height: 4.8em; }
/* Pozor: .bars je ikonka hamburgeru, proto tady jiný název. */
.speed-bars { display: grid; gap: .6rem; max-width: 32rem; }
.speed-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; font-size: var(--step--1); }
.speed-bar::after { content: ""; grid-column: 1 / -1; height: .7rem; width: calc(var(--v) * 100%); min-width: 6px; background: var(--red); border-radius: 2px; }
.speed-bar-good::after { background: var(--ok); }
.speed-bar b { font-variant-numeric: tabular-nums; }

/* Pohled robota */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split p { color: rgb(255 255 255 / .85); max-width: 34em; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.code-fig { margin: 0; }
.code-fig figcaption { font-size: var(--step--1); color: rgb(255 255 255 / .7); margin-bottom: .6rem; }
.code-fig pre { margin: 0; padding: 1.25rem 1.4rem; background: #0D1240; color: #DDE1FF; border-radius: 6px; overflow-x: auto; line-height: 1.55; border-left: 4px solid var(--marker); }

/* Reference */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2.5rem 2rem; }
.refs h3 { margin: 1rem 0 .1rem; }
.ref-type { font-size: var(--step--1); font-weight: 650; color: var(--cobalt); margin-bottom: .4rem; }
.refs li > p:last-child { color: var(--fg-soft); }

/* Obrázky a výkresové placeholdery */
.pic img { width: 100%; height: 100%; object-fit: cover; }
.ref-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ref-pic img { display: block; object-position: top; }
.ph { position: relative; margin: 0; display: grid; place-items: center; background: var(--graph), var(--surface); border: 1.5px dashed var(--cobalt); overflow: hidden; }
.ph-x { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-x line { stroke: var(--cobalt); stroke-width: 1; opacity: .35; vector-effect: non-scaling-stroke; }
.ph figcaption { position: relative; display: grid; gap: .15rem; text-align: center; padding: .75rem 1rem; margin: 1rem; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; line-height: 1.35; max-width: 22rem; color: var(--fg-soft); }
.ph figcaption strong { font-family: var(--mono); color: var(--cobalt); font-size: .85rem; }

.about-teaser { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-teaser > div p { max-width: 38em; }
.portrait { border-radius: 4px; overflow: hidden; }
@media (max-width: 760px) { .about-teaser { grid-template-columns: minmax(0, 1fr); } .about-teaser .portrait { max-width: 16rem; } }

/* ---------------------------------------------------------------- Dokumenty (podstránky) */
.doc { padding-bottom: clamp(3rem, 7vw, 6rem); }
.doc-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.doc-head h1 { font-size: var(--step-4); font-stretch: 72%; line-height: .95; max-width: 14em; }
.prose { max-width: 42rem; margin-bottom: 2rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.doc-body { margin-top: 1rem; }
.aside-note { border-left: 4px solid var(--marker); padding: .5rem 0 .5rem 1rem; font-weight: 600; }

/* Razítko výkresu: metadata balíčku */
.spec { display: inline-grid; grid-auto-flow: column; margin: .5rem 0 2rem; border: 2px solid var(--fg); }
.spec div { padding: .55rem 1.1rem .65rem; min-width: 8.5rem; }
.spec div + div { border-left: 1px solid var(--fg); }
.spec dt { font-size: .72rem; font-weight: 600; color: var(--fg-soft); }
.spec dd { margin: 0; font-weight: 800; font-stretch: 85%; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .spec { grid-auto-flow: row; display: grid; } .spec div + div { border-left: 0; border-top: 1px solid var(--fg); } }

.procon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-block: 2rem 3rem; }
.procon-single { grid-template-columns: minmax(0, 1fr); }
.procon-single .pc-list { columns: 2 18rem; column-gap: 3rem; }
.procon h2, .procon h3 { font-size: var(--step-1); padding-bottom: .5rem; border-bottom: 2px solid var(--fg); }
@media (max-width: 760px) { .procon { grid-template-columns: minmax(0, 1fr); } }
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { position: relative; padding: .75rem 0 .75rem 2.25rem; border-bottom: 1px solid var(--line); break-inside: avoid; }
.pc-list li::before { position: absolute; left: 0; top: .6rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; font-weight: 800; border-radius: 50%; line-height: 1; }
.pc-pro li::before { content: "+"; color: #fff; background: var(--cobalt); }
.pc-con li::before { content: "−"; color: var(--red); border: 2px solid var(--red); }
.pc-list strong { display: block; font-stretch: 88%; word-spacing: .08em; }

.siblings { border-top: 1px solid var(--line); padding-top: 2rem; }
.siblings ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.siblings a { display: grid; padding: .75rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); min-width: 11rem; }
.siblings a:hover { border-color: var(--cobalt); }
.siblings a span { font-weight: 750; font-stretch: 85%; word-spacing: .08em; }
.siblings a small { color: var(--fg-soft); }

.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 2rem; margin: 0 0 3rem; }
.traits div { border-top: 2px solid var(--fg); padding: .8rem 0 1.4rem; }
.traits dt { font-weight: 800; font-stretch: 85%; word-spacing: .08em; font-size: 1.1rem; }
.traits dd { margin: .25rem 0 0; color: var(--fg-soft); }

.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.toc a { font-size: var(--step--1); font-weight: 600; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.toc a:hover { border-color: var(--cobalt); }

.url-tree { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: .9rem; max-width: 42rem; overflow-x: auto; }
.url-tree code { font-size: 1em; }
.url-tree .root { color: var(--fg-soft); }
.url-tree ul { list-style: none; margin: 0; padding-left: 1.2rem; }
.url-tree li { position: relative; padding: .2rem 0 .2rem 1.1rem; }
.url-tree li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid var(--cobalt); }
.url-tree li:last-child::before { bottom: 50%; }
.url-tree li::after { content: ""; position: absolute; left: 0; top: 50%; width: .8rem; border-top: 1px solid var(--cobalt); }
.url-tree li > code { color: var(--cobalt); font-weight: 600; }
.inline-trigger { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted var(--fg-soft); text-underline-offset: .2em; }
.inline-trigger:hover { text-decoration-color: var(--cobalt); color: var(--cobalt); }
.no-js .inline-trigger { cursor: text; text-decoration: none; }

.legal { font-size: .98rem; }
.legal h2 { font-size: var(--step-1); font-stretch: 88%; }

/* O nás */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(2rem, 5vw, 4rem); }
.about-title { font-size: var(--step-4); font-stretch: 72%; line-height: .95; }
.about-title span { display: inline-block; color: var(--cobalt); }
.about-side { display: grid; gap: 1.5rem; align-content: start; }
.facts { margin: 0; border-top: 2px solid var(--fg); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.facts dt { color: var(--fg-soft); }
.facts dd { margin: 0; font-weight: 650; }
@media (max-width: 820px) { .about { grid-template-columns: minmax(0, 1fr); } .about-side { grid-template-columns: minmax(0, 14rem) 1fr; align-items: start; } }
@media (max-width: 480px) { .about-side { grid-template-columns: minmax(0, 1fr); } }

/* Výběr balíčku */
.picker { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 4vw, 2.5rem); border: 2px solid var(--fg); background: var(--graph), var(--surface); }
.picker fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.picker legend { font-weight: 750; margin-bottom: .5rem; }
.picker label { display: inline-flex; align-items: center; gap: .45rem; margin: 0 1.25rem .4rem 0; cursor: pointer; }
.picker input { accent-color: var(--cobalt); width: 1.1rem; height: 1.1rem; }
.picker-out { font-size: var(--step-1); font-weight: 650; margin: 0; padding-top: 1rem; border-top: 1px solid var(--fg); }

/* ---------------------------------------------------------------- Kontakt */
.contact { background: var(--blueprint), #18238F; color: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.contact a { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-info > p { color: rgb(255 255 255 / .82); max-width: 30em; }
.contact .muted { color: rgb(255 255 255 / .7); }
.contact-list { margin: 1.5rem 0; }
.contact-list div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .55rem 0; border-top: 1px solid rgb(255 255 255 / .2); }
.contact-list dt { color: rgb(255 255 255 / .65); font-size: var(--step--1); padding-top: .15rem; }
.contact-list dd { margin: 0; font-weight: 650; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form { background: var(--bg); color: var(--fg); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 4px; box-shadow: 0 30px 60px -35px rgb(0 0 0 / .7); }
.form a { color: var(--cobalt); }
.form .muted { color: var(--fg-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.field > span { font-size: var(--step--1); font-weight: 650; }
.field abbr { text-decoration: none; color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--bg); width: 100%;
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); border-radius: var(--radius); padding: .65rem .8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: 2px solid color-mix(in srgb, var(--cobalt) 35%, transparent); outline-offset: 0; box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form-foot p { margin: 0; }
.form-msg { padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-left: 4px solid var(--ok); }
.form-msg.err { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); border-left: 4px solid var(--red); }

/* ---------------------------------------------------------------- Patička */
.site-foot { background: #0D1240; color: #C9CDEB; padding-top: 3rem; font-size: var(--step--1); }
.site-foot a { color: #fff; }
.year-egg { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; font-variant-numeric: tabular-nums; }
.year-egg:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-brand { font-weight: 850; font-stretch: 70%; font-size: 1.5rem; color: #fff; margin-bottom: .4rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.egg-hint { color: var(--marker); }
.foot-base { display: flex; justify-content: space-between; padding-block: 1rem 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); }
.foot-base p { margin: 0; }

/* ---------------------------------------------------------------- Chybové stránky */
.error-page { padding-block: clamp(3rem, 8vw, 6rem); }
.err-code { font-size: clamp(6rem, 25vw, 16rem); font-weight: 900; font-stretch: 62%; line-height: .8; margin: 0 0 1rem; color: transparent; -webkit-text-stroke: 2px var(--cobalt); }
.err-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.err-game { margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-head, .contact, .site-foot, .hero .drafting, .botview-btn { display: none !important; }
  .hero, .section-ink { background: none; color: #000; }
}
