/* Studio Demo Weby – stavebnice: stránky produktu, přihlášení, dashboard, editor.
   Čistý světlý vzhled: bílá a teplá šedá, jemně zaoblené prvky, hodně prostoru. */
:root {
  --bg: #d9d8d5; --bg2: #cecdc9; --bg3: #c3c2bd; --fg: #191918; --fg2: #373634; --mute: #4f4e4b;
  --surface: #e3e2df; --on-fg: #e3e2df;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --line: #c1c0bb; --line2: #abaaa4; --brand: #b8360f; --sel: #2f5bff; --sel-soft: rgba(47, 91, 255, .09);
  --danger: #c4321c; --ok: #1f7a45;
  --r: 10px; --r2: 16px; --r3: 22px;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .07);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.b-noscript { padding: 24px; }

/* ---------- Tlačítka ---------- */
.p-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r);
  background: var(--fg); color: var(--on-fg); border: 1px solid var(--fg); font: 500 15px/1.2 var(--sans); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.p-btn:hover, .btn:hover { background: var(--fg2); border-color: var(--fg2); }
.p-btn:disabled, .btn:disabled { background: var(--line2); border-color: var(--line2); color: var(--on-fg); cursor: not-allowed; }
.p-btn-lg { padding: 14px 22px; font-size: 16px; }
.p-btn-block { width: 100%; }
.p-btn-ghost { background: transparent; color: var(--fg); border-color: var(--line2); }
.p-btn-ghost:hover { background: var(--bg2); border-color: var(--line2); }
.p-btn-inv { background: var(--surface); color: var(--fg); border-color: var(--surface); }
.p-btn-inv:hover { background: var(--bg3); border-color: var(--bg3); }
.p-btn-ghost-inv { background: transparent; color: var(--on-fg); border-color: rgba(255, 255, 255, .35); }
.p-btn-ghost-inv:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.p-btn-danger { background: var(--danger); border-color: var(--danger); }
.p-btn-danger:hover { background: var(--danger); border-color: var(--danger); }
.p-link { color: var(--fg2); font-size: 15px; font-weight: 500; transition: color .2s; }
.p-link:hover { color: var(--fg); }

/* ---------- Hlavička a patička produktu ---------- */
.p-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.p-top-min { position: static; background: transparent; border-bottom: 0; }
.p-top-min .p-top-in { justify-content: space-between; }
.p-top-in { max-width: 1240px; height: 64px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.p-logo { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.p-logo span { padding: 4px 8px; border-radius: 999px; background: var(--bg3); color: var(--fg2); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.p-main { min-height: 50vh; }
.p-flash { max-width: 1192px; margin: 24px auto 0; padding: 14px 18px; border-radius: 12px; background: var(--bg2); color: var(--ok); }

/* ---------- Úvod ---------- */
.p-hero { max-width: 1240px; margin: 0 auto; padding: 104px 24px 64px; }
.p-hero h1 { font-size: clamp(44px, 6.6vw, 96px); font-weight: 600; letter-spacing: -.048em; line-height: .98; }
.p-lead { margin-top: 24px; max-width: 34em; color: var(--fg2); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.p-hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Ukázka editoru – scéna 1600×900 zmenšená na šířku stránky */
.p-shot-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.p-shot { position: relative; overflow: hidden; border-radius: 22px; background: #1d1d20; box-shadow: 0 30px 80px rgba(0, 0, 0, .16); }
.p-shot-stage { position: absolute; top: 0; left: 0; width: 1600px; height: 900px; transform-origin: 0 0; font-family: var(--sans); }
.ps-bar { position: absolute; inset: 0 0 auto; height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: #141416; color: #b7b7bd; font-size: 15px; }
.ps-crumbs i { font-style: normal; opacity: .45; margin: 0 6px; }
.ps-crumbs b { color: #fff; font-weight: 500; }
.ps-dev { display: flex; gap: 12px; margin-left: auto; }
.ps-dev i { width: 24px; height: 17px; border: 1.5px solid #66666c; border-radius: 3px; }
.ps-dev i:nth-child(2) { width: 15px; } .ps-dev i:nth-child(3) { width: 11px; }
.ps-dev i.on { border-color: #fff; }
.ps-zoom { color: #85858b; }
.ps-save { color: #85858b; } .ps-save::before { content: '● '; color: #3fbf73; }
.ps-tools { position: absolute; left: 18px; top: 92px; width: 44px; padding: 14px 0; display: grid; gap: 16px; justify-items: center; background: #2a2a2e; border-radius: 14px; }
.ps-tools i { width: 18px; height: 18px; border: 1.6px solid #9b9ba1; border-radius: 4px; }
.ps-tools i:nth-child(3) { border-radius: 50%; }
.ps-page { position: absolute; left: 420px; top: 76px; width: 1160px; height: 824px; overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; }
.ps-page iframe { width: 1440px; height: 1023px; border: 0; transform: scale(.80556); transform-origin: 0 0; pointer-events: none; }
.ps-panel { position: absolute; left: 80px; top: 230px; width: 300px; background: #fff; color: #161616; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); overflow: hidden; }
.ps-panel-h { height: 56px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid #eee; color: #74746f; font-size: 14px; font-weight: 600; }
.ps-row { height: 62px; display: grid; align-content: center; gap: 3px; padding: 0 20px; border-bottom: 1px solid #f1f1ef; }
.ps-row:last-child { border-bottom: 0; }
.ps-row span { color: #8b8b86; font-size: 12.5px; }
.ps-row b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-thumb { display: block; width: 46px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #e2cfae, #8c6a48); }
.ps-sw { display: flex; gap: 6px; }
.ps-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.ps-sw i:nth-child(1) { background: #f3ece0; } .ps-sw i:nth-child(2) { background: #2a1d13; } .ps-sw i:nth-child(3) { background: #7a5536; } .ps-sw i:nth-child(4) { background: #e8ece4; }
.ps-lines { position: absolute; inset: 0; width: 1600px; height: 900px; pointer-events: none; }
.ps-chip { position: absolute; padding: 9px 16px; border-radius: 999px; color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Sekce */
.p-sec { max-width: 1240px; margin: 0 auto; padding: 112px 24px 0; }
.p-sec-tight { padding-top: 32px; }
.p-h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.038em; line-height: 1.05; margin-bottom: 32px; }
.p-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.p-more { display: inline-flex; align-items: center; gap: 6px; color: var(--fg2); font-weight: 500; white-space: nowrap; }
.p-more:hover { color: var(--fg); }

.p-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-steps li { padding: 32px; border-radius: var(--r3); background: var(--bg2); }
.p-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--on-fg); font-weight: 600; font-size: 15px; }
.p-steps h3 { margin: 22px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.p-steps p { color: var(--mute); }

.p-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-card { display: grid; align-content: space-between; overflow: hidden; border-radius: 24px; background: var(--bg2); }
.p-card-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.15fr; align-items: center; }
.p-card-text { padding: 48px; }
.p-card h2 { font-size: clamp(28px, 3.1vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
.p-card-text p { margin-top: 16px; max-width: 28em; color: var(--mute); font-size: 17px; }
.p-card-vis { position: relative; padding: 0 48px 48px; }
.p-card-wide .p-card-vis { padding: 48px; }
.pv-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pv-tile { display: grid; align-content: end; gap: 8px; aspect-ratio: 4 / 3; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pv-tile b { width: 34%; height: 14px; justify-self: end; border-radius: 4px; background: var(--fg); }
.pv-tile em { position: absolute; }
.pv-tile.on { border: 2px solid var(--sel); box-shadow: 0 0 0 4px var(--sel-soft); }
.pv-dark { background: #161616; border-color: #161616; }
.pv-pals { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 6px; }
.pv-pals span { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.pv-thumbs { height: 300px; }
.pv-thumbs span { position: absolute; width: 66%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.pv-thumbs span:nth-child(1) { left: 48px; top: 0; transform: rotate(-3deg); }
.pv-thumbs span:nth-child(2) { left: 22%; top: 44px; }
.pv-thumbs span:nth-child(3) { left: 32%; top: 92px; transform: rotate(3deg); }
.pv-thumbs iframe, .p-tthumb iframe, .a-shot iframe, .pk-shot iframe { position: absolute; top: 0; left: 0; width: 1440px; border: 0; transform-origin: 0 0; pointer-events: none; }
.pv-zip { margin: 0 48px 48px; padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pv-zip p { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); font: 14px/1.3 var(--mono); color: var(--fg2); }
.pv-zip p:first-child { font-family: var(--sans); background: var(--bg2); }
.pv-zip p:last-child { border-bottom: 0; }
.pv-zip span { margin-left: auto; color: var(--mute); }
.pv-zip i { width: 13px; height: 16px; border: 1.5px solid var(--line2); border-radius: 2px; }
.pv-zip i.d { background: var(--bg3); }

.p-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-feats li { padding: 26px; border-radius: 18px; border: 1px solid var(--line); }
.p-feats h3 { margin: 20px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.p-feats p { color: var(--mute); font-size: 15px; }
.p-ic { display: block; width: 40px; height: 40px; border-radius: 11px; background: var(--bg2) center / 22px no-repeat; }
.p-ic-type { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Cpath d='M5 6V4h14v2M12 4v16M9 20h6'/%3E%3C/svg%3E"); }
.p-ic-photo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m4 17 5-4 4 3 3-2 4 3'/%3E%3C/svg%3E"); }
.p-ic-layers { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Cpath d='m12 3 9 5-9 5-9-5Z'/%3E%3Cpath d='m3 12 9 5 9-5M3 16l9 5 9-5'/%3E%3C/svg%3E"); }
.p-ic-pages { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Cpath d='M8 3h8l4 4v12H8Z'/%3E%3Cpath d='M4 7v14h12'/%3E%3C/svg%3E"); }
.p-ic-device { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Crect x='2' y='4' width='14' height='11' rx='1.5'/%3E%3Crect x='16' y='9' width='6' height='11' rx='1.5'/%3E%3Cpath d='M6 19h7'/%3E%3C/svg%3E"); }
.p-ic-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"); }
.p-ic-undo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Cpath d='M7 9h8a4.5 4.5 0 0 1 0 9h-4'/%3E%3Cpath d='M10 5 6 9l4 4'/%3E%3C/svg%3E"); }
.p-ic-zip { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.6'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }

/* Karty šablon */
.p-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 20px; }
.p-tgrid-4 { grid-template-columns: repeat(4, 1fr); }
.p-tgrid li[hidden] { display: none; }
.p-tcard { display: grid; gap: 8px; }
.p-tthumb { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); transition: box-shadow .25s, transform .25s var(--ease); }
.p-tthumb-tall { aspect-ratio: 4 / 5; }
.p-tcard:hover .p-tthumb { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-tname { margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.p-tmeta { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 14px; }
.p-tmeta b { color: var(--fg); font-weight: 500; }

/* FAQ */
.p-faq { border-top: 1px solid var(--line); max-width: 880px; }
.p-faq details { border-bottom: 1px solid var(--line); }
.p-faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: '+'; flex: none; color: var(--mute); font-size: 24px; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq p { padding: 0 0 24px; max-width: 46em; color: var(--mute); font-size: 16.5px; }

.p-final { padding: 80px 64px; border-radius: 28px; background: var(--fg); color: var(--on-fg); }
.p-final h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; max-width: 14em; }
.p-final p { margin-top: 16px; color: color-mix(in srgb, var(--on-fg) 70%, transparent); font-size: 18px; }

/* ---------- Podstránky ---------- */
.p-page-head { max-width: 1240px; margin: 0 auto; padding: 72px 24px 8px; }
.p-page-head h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.p-center { text-align: center; }
.p-center .p-lead { margin-inline: auto; }
.p-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--mute); font-size: 14px; }
.p-crumbs a:hover { color: var(--fg); }
.p-crumbs i { font-style: normal; opacity: .5; }

.p-gallery { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.p-filters { position: sticky; top: 96px; align-self: start; }
.p-filters h3 { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.p-filters h3 + .p-fl { margin-bottom: 28px; }
.p-fl { display: grid; gap: 2px; }
.p-fl button { padding: 8px 12px; border-radius: 8px; color: var(--fg2); text-align: left; font-size: 15px; transition: background-color .15s; }
.p-fl button:hover { background: var(--bg2); }
.p-fl button[aria-pressed="true"] { background: var(--bg3); color: var(--fg); font-weight: 500; }
.p-count { margin-bottom: 18px; color: var(--mute); font-size: 14px; }

.p-detail-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.p-detail-acts { display: flex; align-items: center; gap: 16px; }
.p-free { color: var(--mute); font-size: 15px; }
.p-viewer { border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.p-viewer-bar { display: flex; justify-content: center; padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.p-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg3); }
.p-seg button { padding: 7px 16px; border-radius: 8px; color: var(--fg2); font-size: 14px; font-weight: 500; }
.p-seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.p-viewer-stage { display: flex; justify-content: center; padding: 24px; }
.p-viewer-frame { height: 720px; max-width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: width .35s var(--ease); }
.p-viewer-frame iframe { display: block; border: 0; transform-origin: 0 0; }
.p-detail-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.p-detail-info > div { padding: 26px; border-radius: 18px; background: var(--bg2); }
.p-detail-info h3 { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.p-detail-info h3:not(:first-child) { margin-top: 22px; }
.p-detail-info li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.p-detail-info p { color: var(--fg2); font-size: 15px; }
.p-swatches { display: flex; align-items: center; gap: 6px; }
.p-swatches i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.p-swatches i:last-of-type { margin-right: 8px; }

/* Ceník */
.p-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 24px; }
.p-plan { position: relative; display: grid; gap: 18px; padding: 32px; border-radius: var(--r3); border: 1px solid var(--line); background: var(--surface); }
.p-plan-hi { border: 2px solid var(--fg); }
.p-badge { position: absolute; top: -13px; left: 30px; padding: 5px 11px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font-size: 12.5px; font-weight: 500; }
.p-plan h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.p-plan-desc { color: var(--mute); min-height: 3em; }
.p-price b { font-size: 40px; font-weight: 600; letter-spacing: -.035em; }
.p-price span { margin-left: 8px; color: var(--mute); }
.p-plan ul { display: grid; gap: 11px; padding-top: 8px; border-top: 1px solid var(--line); }
.p-plan li { display: flex; gap: 10px; padding-top: 4px; font-size: 15px; }
.p-plan li svg { flex: none; margin-top: 3px; color: var(--ok); }
.p-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.p-tr { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.p-tr:first-child { border-top: 0; }
.p-tr > :not(:first-child) { text-align: center; display: flex; justify-content: center; }
.p-th { background: var(--bg2); font-weight: 600; }
.p-yes { color: var(--ok); }
.p-no { color: var(--line2); }

/* Návody */
.p-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.p-guides a { display: grid; gap: 8px; }
.p-guide-vis { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: 18px; transition: transform .3s var(--ease); }
.p-guides a:hover .p-guide-vis { transform: translateY(-3px); }
.p-guide-vis-0 { background: var(--surface); } .p-guide-vis-1 { background: var(--bg3); } .p-guide-vis-2 { background: var(--surface); }
.p-guide-vis b { font-size: 68px; font-weight: 600; letter-spacing: -.05em; color: rgba(0, 0, 0, .16); }
.p-guide-cat { color: var(--mute); font-size: 14px; }
.p-guides h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.p-guides a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.p-guides p { color: var(--mute); }
.p-guides-sm a { padding: 24px; border-radius: 18px; border: 1px solid var(--line); }
.p-article { max-width: 760px; margin: 0 auto; padding: 64px 24px 0; }
.p-article h1 { font-size: clamp(36px, 4.8vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.p-meta { margin-top: 12px; color: var(--mute); font-size: 14px; }
.p-video { width: 100%; margin-top: 32px; border-radius: 18px; background: #000; }
.p-article-body { display: grid; gap: 30px; margin-top: 44px; }
.p-article-body li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.p-article-body span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg3); font-weight: 600; font-size: 15px; }
.p-article-body h2 { margin-bottom: 6px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.p-article-body p { color: var(--fg2); font-size: 17px; line-height: 1.65; }
.p-article-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding: 28px; border-radius: 18px; background: var(--bg2); }
.p-article-cta p { font-size: 18px; font-weight: 500; }

/* ---------- Přihlášení a registrace ---------- */
.p-auth { max-width: 460px; margin: 0 auto; padding: 56px 24px 96px; }
.p-auth h1 { text-align: center; font-size: clamp(34px, 4.4vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.p-auth-sub { margin-top: 12px; text-align: center; color: var(--mute); }
.p-auth form { display: grid; gap: 22px; margin-top: 44px; }
.p-field { display: grid; gap: 8px; }
.p-field > span:first-child { font-size: 15px; font-weight: 500; }
.p-field input, .p-field textarea, .p-field select {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.p-field input::placeholder { color: var(--mute); }
.p-field input:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 4px var(--sel-soft); }
.p-field input:disabled { background: var(--bg2); color: var(--mute); }
.p-pass { position: relative; display: block; }
.p-pass input { padding-right: 52px; }
.p-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--mute); }
.p-eye:hover, .p-eye.on { color: var(--fg); background: var(--bg2); }
.p-forgot { justify-self: end; margin-top: -10px; color: var(--fg2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.p-auth form .p-btn { margin-top: 6px; height: 54px; }
.p-auth-err { padding: 13px 16px; border-radius: var(--r); background: var(--bg2); color: var(--danger); font-size: 15px; }
.p-auth-legal { margin-top: 28px; color: var(--mute); font-size: 14px; line-height: 1.6; }
.p-auth-legal a { color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; }
.p-auth-switch { margin-top: 44px; text-align: center; font-weight: 600; }
.p-auth-switch a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Aplikace: dashboard a účet ---------- */
.a-body { background: var(--bg2); }
.a-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); min-height: 100vh; }
.a-top { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.a-user { display: flex; align-items: center; gap: 12px; }
.a-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fg); color: var(--on-fg); font-size: 13px; font-weight: 600; }
.a-email { color: var(--fg2); font-size: 14px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-out { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--fg2); font-size: 14px; }
.a-out:hover { background: var(--bg2); color: var(--fg); }
.a-side { position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.a-side > a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--fg2); font-size: 15px; font-weight: 500; }
.a-side > a:hover { background: var(--bg2); color: var(--fg); }
.a-side > a[aria-current] { background: var(--bg3); color: var(--fg); }
.a-side-pro { margin-top: auto; padding: 18px; border-radius: 14px; background: var(--bg2); color: var(--fg2); font-size: 14px; }
.a-side-pro a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--fg); font-weight: 600; }
.a-main { padding: 40px 48px 96px; min-width: 0; }
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.a-head h1 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; }
.a-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.a-site { display: grid; align-content: start; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: box-shadow .25s; }
.a-site:hover { box-shadow: var(--shadow); }
.a-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); border-bottom: 1px solid var(--line); }
.a-meta { display: grid; gap: 3px; padding: 16px 18px 2px; }
.a-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.a-when { color: var(--mute); font-size: 14px; }
.a-acts { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 10px 12px; }
.a-acts a, .a-acts button { padding: 6px 9px; border-radius: 8px; color: var(--fg2); font-size: 14px; }
.a-acts a:hover, .a-acts button:hover { background: var(--bg2); color: var(--fg); }
.a-acts [data-act="del"]:hover { color: var(--danger); }
.a-site-new { border: 1.5px dashed var(--line2); background: transparent; }
.a-site-new:hover { box-shadow: none; border-color: var(--fg); background: var(--surface); }
.a-site-new button { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; height: 100%; min-height: 300px; color: var(--fg2); text-align: center; padding: 24px; }
.a-site-new strong { color: var(--fg); font-size: 17px; font-weight: 600; }
.a-site-new span:last-child { font-size: 14px; color: var(--mute); }
.a-plus { position: relative; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--bg3); }
.a-plus::before, .a-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin: -.8px 0 0 -8px; background: var(--fg); }
.a-plus::after { transform: rotate(90deg); }
.a-empty { display: grid; justify-items: center; gap: 14px; padding: 80px 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.a-empty-art { display: flex; gap: 10px; margin-bottom: 10px; }
.a-empty-art i { width: 64px; height: 46px; border-radius: 10px; background: var(--bg3); }
.a-empty-art i:nth-child(2) { background: var(--fg); transform: translateY(-8px); }
.a-empty h2 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.a-empty p { max-width: 30em; color: var(--mute); }
.a-empty .p-btn { margin-top: 10px; }
.a-narrow { max-width: 640px; }
.a-card { display: grid; gap: 18px; margin-bottom: 20px; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.a-card h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.a-card h2:not(:first-of-type) { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.a-card .p-field input { height: 46px; }
.a-danger h2 { color: var(--danger); }
.a-danger p { color: var(--mute); }
.a-ok, .a-err { margin-bottom: 16px; padding: 13px 16px; border-radius: 12px; }
.a-ok { background: var(--bg2); color: var(--ok); }
.a-err { background: var(--bg2); color: var(--danger); }

/* Výběr šablony (okno přes dashboard) */
.pk { position: fixed; inset: 0; z-index: 50; overflow: auto; padding: 40px 24px; background: rgba(20, 20, 20, .45); backdrop-filter: blur(4px); }
.pk[hidden] { display: none; }
.pk-in { max-width: 1180px; margin: 0 auto; padding: 36px 40px 40px; border-radius: 24px; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.pk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pk-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.pk-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); }
.pk-close:hover { background: var(--bg3); }
.pk-lead { margin-top: 8px; max-width: 40em; color: var(--mute); font-size: 16.5px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; margin-top: 30px; }
.pk-grid button { display: grid; gap: 5px; width: 100%; text-align: left; }
.pk-shot { position: relative; display: block; aspect-ratio: 16 / 11; margin-bottom: 8px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); transition: box-shadow .2s; }
.pk-grid button:hover .pk-shot { box-shadow: 0 0 0 2px var(--sel); }
.pk-grid strong { font-size: 16px; font-weight: 600; }
.pk-d { color: var(--mute); font-size: 14px; }
.pk-grid .is-busy { opacity: .5; cursor: progress; }
.pk-pro { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: 15px; }
.pk-pro a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Editor ---------- */
.ed-body { overflow: hidden; background: var(--bg2); }
.ed .mono, .ed-toast { font-family: var(--sans); }
.ed .mono { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ed .idx { color: var(--mute); font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.ed { height: 100dvh; display: grid; grid-template-columns: 272px minmax(0, 1fr) 312px; grid-template-rows: 56px minmax(0, 1fr); font-size: 14px; }
.ed-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--mute); transition: color .15s, background-color .15s; }
.ed-ic:not(:disabled):hover { color: var(--fg); background: var(--bg2); }
.ed-ic:disabled { opacity: .35; }
.ed-danger:not(:disabled):hover { color: var(--danger); }

.ed-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 14px; min-width: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.ed-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); }
.ed-back:hover { background: var(--bg2); }
.ed-title { display: grid; min-width: 0; }
.ed-name { width: 240px; max-width: 100%; padding: 2px 6px; margin-left: -6px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ed-name:hover { border-color: var(--line); }
.ed-name:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.ed-status { color: var(--mute); font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
.ed-status[data-state="error"], .ed-status[data-state="login"] { color: var(--danger); }
.ed-status[data-state="saved"]::before { content: '● '; color: #2fae64; }
.ed-bp { display: flex; gap: 2px; margin-left: auto; padding: 3px; border-radius: 10px; background: var(--bg2); }
.ed-bp button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--mute); font-size: 13px; font-weight: 500; }
.ed-bp button:hover { color: var(--fg); }
.ed-bp button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ed-zoom { min-width: 112px; margin-right: auto; color: var(--mute); font-family: var(--mono) !important; font-weight: 400 !important; }
.ed-hist { display: flex; gap: 2px; }
.ed-link { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); font-weight: 500; }
.ed-link:hover { background: var(--bg2); }
.ed-export { padding: 9px 14px; font-size: 14px; }
.ed-toggle { display: none; }

.ed-left, .ed-right { min-height: 0; overflow: auto; background: var(--surface); }
.ed-left { border-right: 1px solid var(--line); }
.ed-right { border-left: 1px solid var(--line); }
.ed-sec { padding: 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ed-sec-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 8px 8px; color: var(--mute); }
.ed-sec-h-big { padding: 16px 12px 6px 18px; color: var(--fg); font-size: 16px; font-weight: 600; }
.ed-pages button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--fg2); text-align: left; }
.ed-pages button:hover { background: var(--bg2); color: var(--fg); }
.ed-pages .on button { background: var(--sel-soft); color: var(--fg); font-weight: 500; }
.ed-pname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-pages .mono { color: var(--mute); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ed-layer-list { display: grid; gap: 2px; }
.ed-layer-list li { display: flex; align-items: center; gap: 2px; padding-right: 4px; border-radius: 9px; border: 1px solid transparent; }
.ed-layer-list li:hover { background: var(--bg2); }
.ed-layer-list li.on { background: var(--sel-soft); border-color: rgba(47, 91, 255, .25); }
.ed-layer-list li.off .ed-layer { opacity: .45; }
.ed-layer-list li.drag { opacity: .4; }
.ed-layer-list li.drop-before { box-shadow: 0 -2px 0 var(--sel); }
.ed-layer-list li.drop-after { box-shadow: 0 2px 0 var(--sel); }
.ed-grip { padding-left: 4px; color: var(--mute); cursor: grab; opacity: .5; }
.ed-layer { flex: 1; display: grid; grid-template-columns: 26px 1fr; column-gap: 2px; padding: 8px 0; text-align: left; min-width: 0; }
.ed-layer .idx { font-size: 11px; padding-top: 2px; }
.ed-lname { font-weight: 500; }
.ed-lsub { grid-column: 2; color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line2); color: var(--fg2); font-weight: 500; transition: border-color .15s, color .15s, background-color .15s; }
.ed-add:hover { border-color: var(--sel); color: var(--sel); background: var(--sel-soft); }
.ed-add.ed-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--bg2); }
.ed-hint { padding: 12px 18px; color: var(--mute); font-size: 13px; line-height: 1.5; }
.ed-keys { font-size: 11px !important; font-weight: 500 !important; padding-top: 16px; }

.ed-schema { display: block; color: var(--fg); }
.ed-schema svg { width: 100%; height: auto; }
.ed-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 24px; }
.ed-blocks button { display: grid; align-content: start; gap: 4px; width: 100%; height: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-align: left; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ed-blocks button:hover { border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.ed-blocks .ed-schema { padding: 6px 4px 10px; margin-bottom: 4px; border-radius: 8px; background: var(--bg2); opacity: .9; }
.ed-blocks strong { font-size: 13.5px; font-weight: 600; }
.ed-blocks span:last-child { color: var(--mute); font-size: 12px; line-height: 1.35; }

.ed-canvas { position: relative; display: grid; place-items: start center; padding: 24px; min-height: 0; overflow: hidden; background: var(--bg3); }
.ed-frame { position: relative; overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 12px 40px rgba(0, 0, 0, .08); transition: width .35s var(--ease); }
.ed-frame iframe { display: block; border: 0; transform-origin: 0 0; }

.ed-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 2px; margin: 12px 12px 0; padding: 3px; border-radius: 10px; background: var(--bg2); }
.ed-tabs { box-shadow: 0 -12px 0 var(--surface), 0 6px 0 var(--surface); }
.ed-tabs button { flex: 1; padding: 7px 6px; border-radius: 8px; color: var(--mute); font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; }
.ed-tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ed-pad { padding: 4px 18px 28px; }
.ed-empty { display: grid; gap: 16px; padding: 32px 22px; color: var(--mute); }
.ed-empty .ed-schema { width: 120px; opacity: .45; }
.ed-shead { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; align-items: center; margin: 12px 12px 0; padding: 14px; border-radius: 14px; background: var(--bg2); }
.ed-shead .ed-schema { padding: 4px; border-radius: 8px; background: var(--surface); }
.ed-shead strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ed-shead .mono { color: var(--mute); }
.ed-sacts { grid-column: 1 / -1; display: flex; gap: 2px; margin-top: 4px; }
.ed-sacts .ed-ic:not(:disabled):hover { background: var(--surface); }
.ed-right > .ed-field { padding: 20px 18px 0; }
.ed-field { display: grid; gap: 9px; padding-top: 20px; }
.ed-flabel { color: var(--mute); }
.ed-sub { padding-top: 28px; margin-bottom: -6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ed-field input:not([type="color"]):not([type="checkbox"]), .ed-field select, .ed-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); font-size: 14px;
}
.ed-field input:focus, .ed-field select:focus, .ed-field textarea:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.ed-field input:disabled { background: var(--bg2); color: var(--mute); }
.ed-field textarea { resize: vertical; }
.ed-slug { display: flex; align-items: center; gap: 4px; }
.ed-slug .mono { color: var(--mute); font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: none; }
.ed-seg { display: flex; gap: 2px; width: max-content; max-width: 100%; padding: 3px; border-radius: 10px; background: var(--bg2); }
.ed-seg button { min-width: 40px; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--fg2); }
.ed-seg button:hover { color: var(--fg); }
.ed-seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ed-variants, .ed-bgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-variants button, .ed-bgs button { display: grid; gap: 7px; padding: 9px 7px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--fg2); font-size: 12px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.ed-variants button:hover, .ed-bgs button:hover { border-color: var(--line2); color: var(--fg); }
.ed-variants button[aria-pressed="true"], .ed-bgs button[aria-pressed="true"] { border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); color: var(--fg); }
.ed-variants .ed-schema { padding: 2px; }
.ed-bgs i { display: grid; place-items: center; height: 36px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .08); font: 600 14px/1 var(--sans); font-style: normal; }
.ed-photo { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.ed-photo img, .ed-photo-ph { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.ed-photo-ph { background: var(--bg2) linear-gradient(to top right, transparent calc(50% - .5px), var(--line2) 50%, transparent calc(50% + .5px)); }
.ed-items { display: grid; gap: 4px; }
.ed-items li { border-radius: 10px; background: var(--bg2); }
.ed-items li.open { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
.ed-ihead { display: flex; align-items: center; gap: 2px; padding: 5px 4px 5px 8px; }
.ed-ihead .idx { flex: none; }
.ed-iname { padding: 4px 6px; border-radius: 6px; text-align: left; }
.ed-iname:hover { background: var(--bg3, var(--bg2)); }
.ed-iname em { color: var(--sel); font-style: normal; font-size: 12px; }
.ed-ibody { display: grid; gap: 10px; padding: 4px 12px 14px; }
.ed-ibody .ed-field { padding-top: 4px; }
.ed-ifield { display: grid; gap: 5px; }
.ed-ifield > span { color: var(--mute); font-size: 12px; font-weight: 500; }
.ed-ifield input, .ed-ifield textarea, .ed-ifield select { width: 100%; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); font: inherit; font-size: 13.5px; resize: vertical; }
.ed-ifield input:focus, .ed-ifield textarea:focus, .ed-ifield select:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.ed-items .idx { width: 22px; font-size: 11px; }
.ed-iname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-items .ed-ic:not(:disabled):hover { background: var(--surface); }
.ed-ithumb { display: grid; place-items: center; width: 40px; height: 30px; overflow: hidden; border-radius: 6px; border: 1px dashed var(--line2); color: var(--mute); background: var(--surface); }
.ed-ithumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-ithumb:hover { border-color: var(--sel); color: var(--sel); }
.ed-pals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.ed-pals button { display: grid; gap: 6px; color: var(--mute); font-size: 12px; text-align: center; }
.ed-pals i { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); font: 600 15px/1 var(--sans); font-style: normal; }
.ed-pals b { position: absolute; right: 6px; bottom: 6px; width: 8px; height: 8px; border-radius: 50%; }
.ed-pals button[aria-pressed="true"] { color: var(--fg); font-weight: 500; }
.ed-pals button[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sel); }
.ed-color { display: flex; align-items: center; gap: 10px; }
.ed-color input { width: 42px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface); cursor: pointer; }
.ed-color .mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.ed-link-btn { margin-left: auto; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--fg2); font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
.ed-link-btn:hover { background: var(--bg2); }
.ed-fonts { display: grid; gap: 6px; }
.ed-fonts button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); text-align: left; transition: border-color .15s, box-shadow .15s; }
.ed-fonts button span:first-child { font-size: 22px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-fonts .mono { flex: none; color: var(--mute); }
.ed-fonts button:hover { border-color: var(--line2); }
.ed-fonts button[aria-pressed="true"] { border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.ed-check { display: flex; align-items: flex-start; gap: 10px; padding-top: 20px; cursor: pointer; }
.ed-check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--sel); }
.ed-pacts { display: grid; padding-top: 18px; }
.ed-pro { display: grid; gap: 8px; margin-top: 28px; padding: 18px; border-radius: 14px; background: var(--bg2); color: var(--fg2); }
.ed-pro a { justify-self: start; color: var(--fg); font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: underline; text-underline-offset: 3px; }

.ed-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--fg); color: var(--on-fg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.ed-toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Menší obrazovky ---------- */
@media (max-width: 1180px) {
  .ed { grid-template-columns: 248px minmax(0, 1fr); }
  .ed-right { position: fixed; top: 56px; right: 0; bottom: 0; z-index: 20; width: 312px; box-shadow: -20px 0 40px rgba(0, 0, 0, .08); transform: translateX(105%); transition: transform .3s var(--ease); }
  .ed[data-panel="right"] .ed-right { transform: none; }
  .ed-toggle[data-toggle="right"] { display: grid; }
  .ed-bp span { display: none; }
}
@media (max-width: 1000px) {
  .p-feats { grid-template-columns: repeat(2, 1fr); }
  .p-tgrid-4 { grid-template-columns: repeat(2, 1fr); }
  .p-plans, .p-detail-info { grid-template-columns: 1fr; }
  .p-card-wide { grid-template-columns: 1fr; }
  .p-gallery { grid-template-columns: 1fr; gap: 20px; }
  .p-filters { position: static; display: grid; gap: 10px; }
  .p-fl { display: flex; flex-wrap: wrap; gap: 6px; }
  .p-fl button { padding: 7px 12px; border: 1px solid var(--line); }
  .p-filters h3 + .p-fl { margin-bottom: 8px; }
}
@media (max-width: 820px) {
  .p-top-in { gap: 16px; padding: 0 16px; }
  .p-hero { padding: 56px 16px 40px; }
  .p-shot-wrap, .p-sec, .p-page-head { padding-left: 16px; padding-right: 16px; }
  .p-shot { border-radius: 14px; }
  .p-sec { padding-top: 80px; }
  .p-steps, .p-bento { grid-template-columns: 1fr; }
  .p-card-text { padding: 32px 28px; }
  .p-card-vis, .p-card-wide .p-card-vis { padding: 0 28px 32px; }
  .pv-zip { margin: 0 28px 32px; }
  .p-final { padding: 48px 28px; }
  .p-tr { grid-template-columns: 1.2fr repeat(3, 1fr); padding: 14px 12px; font-size: 13px; }
  .p-viewer-frame { height: 560px; }
  .a-app { grid-template-columns: 1fr; grid-template-rows: 60px auto 1fr; }
  .a-side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .a-side > a { padding: 8px 12px; white-space: nowrap; }
  .a-side-pro { display: none; }
  .a-email { display: none; }
  .a-main { padding: 24px 16px 64px; }
  .a-sites { grid-template-columns: 1fr; }
  .pk { padding: 12px; }
  .pk-in { padding: 24px 18px; }
  .ed { grid-template-columns: minmax(0, 1fr); }
  .ed-left { position: fixed; top: 56px; left: 0; bottom: 0; z-index: 20; width: 286px; box-shadow: 20px 0 40px rgba(0, 0, 0, .08); transform: translateX(-105%); transition: transform .3s var(--ease); }
  .ed[data-panel="left"] .ed-left { transform: none; }
  .ed-toggle[data-toggle="left"] { display: grid; }
  .ed-canvas { padding: 0; }
  .ed-frame { border-radius: 0; box-shadow: none; }
  .ed-zoom, .ed-link, .ed-status, .ed-bp { display: none; }
  .ed-title { flex: 1; }
  .ed-name { width: 100%; }
  .ed-export span { display: none; }
  .ed-top { gap: 6px; padding: 0 10px; }
}
@media (max-width: 560px) {
  .p-feats, .p-tgrid-4 { grid-template-columns: 1fr; }
  .p-hero-acts .p-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }


/* ukázky stylů: krátký skutečný text v písmu šablony */
.pv-tile strong { font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; line-height: 1; letter-spacing: -.035em; color: var(--fg); }
.pv-tile small { font: 400 11px/1.2 var(--mono); color: var(--mute); text-transform: uppercase; }
.pv-tile .pv-serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; font-size: clamp(20px, 1.8vw, 26px); }
.pv-tile .pv-grot { font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; }
.pv-dark strong { color: #f3f2ee; } .pv-dark small { color: #9b9b97; }

/* ---------- Sjednocená navigace s hlavním webem ----------
   Nahoře je hlavička hlavního webu (pevná, výška --hd-h), pod ní podmenu stavebnice ve stejné šířce obsahu. */
.p-body:not(.p-min) .p-main { padding-top: var(--hd-h, 64px); }
.p-subnav {
  max-width: min(1192px, calc(100% - 48px)); margin: 0 auto; min-height: 56px;
  display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line);
}
.p-subnav > a { align-self: stretch; display: flex; align-items: center; color: var(--fg2); font-size: 15px; font-weight: 500; transition: color .2s, box-shadow .2s; }
.p-subnav > a:hover { color: var(--fg); }
.p-subnav > a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }
.p-subnav-acts { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.p-subnav-acts > a:not(.p-btn) { color: var(--fg2); font-size: 15px; font-weight: 500; }
.p-subnav-acts > a:not(.p-btn):hover { color: var(--fg); }
@media (max-width: 720px) {
  .p-subnav { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .p-subnav > a, .p-subnav-acts > a:not(.p-btn) { white-space: nowrap; font-size: 14px; }
  .p-subnav-acts { gap: 14px; }
  .p-subnav-acts > a.p-btn:not(:only-child) { display: none; }
  .p-subnav-acts > a:not(.p-btn) { white-space: nowrap; }
}

/* ---------- Bez černých ploch: závěrečná výzva a ukázka editoru jsou krémové ---------- */
.p-final { background: var(--bg2); color: var(--fg); }
.p-final p { color: var(--mute); }
.p-final .p-btn-inv { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.p-final .p-btn-inv:hover { background: var(--fg2); border-color: var(--fg2); }
.p-final .p-btn-ghost-inv { color: var(--fg); border-color: var(--line2); }
.p-final .p-btn-ghost-inv:hover { background: var(--bg3); border-color: var(--line2); }
.p-shot { background: var(--bg2); }
.ps-bar { background: var(--bg3); color: var(--fg2); }
.ps-crumbs b { color: var(--fg); }
.ps-dev i { border-color: var(--fg2); }
.ps-dev i.on { border-color: var(--fg); }
.ps-zoom, .ps-save { color: var(--fg2); }
.ps-tools { background: var(--surface); }
.ps-tools i { border-color: var(--fg2); }
.ps-panel { background: var(--surface); color: var(--fg); }

/* Návody v aplikaci (po přihlášení): bez okrajů produktové stránky */
.a-guides .p-page-head, .a-guides .p-sec, .a-guides .p-article { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
.a-guides .p-page-head { padding-top: 0; }
.a-guides .p-sec { padding-top: 56px; }
.a-guides .p-article { max-width: 760px; padding-top: 0; }

/* ---------- Ceník: modernější vzhled ---------- */
.p-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg2); font-size: 14px; font-weight: 500; }
.p-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.p-center h1 { line-height: 1.02; }
.p-plans { gap: 16px; align-items: stretch; margin-top: 48px; }
.p-plan { align-content: start; padding: 32px 30px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 70%, transparent); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.p-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-plan-hi { border: 1px solid var(--fg); background: var(--surface); box-shadow: var(--shadow); }
.p-plan-hi:hover { transform: translateY(-4px); }
.p-badge { position: absolute; top: 28px; right: 26px; left: auto; padding: 5px 12px; font-size: 12px; }
.p-plan h2 { font-size: 26px; letter-spacing: -.03em; }
.p-price { display: flex; flex-direction: column; gap: 2px; }
.p-price b { font-size: clamp(40px, 4.2vw, 56px); letter-spacing: -.045em; line-height: 1; }
.p-price span { margin-left: 0; font-size: 14px; font-weight: 500; color: var(--fg2); }
.p-price-note { margin-top: -8px; color: var(--mute); font-size: 13px; }
.p-plan ul { gap: 10px; padding-top: 18px; }
.p-plan li { padding-top: 0; }
.p-plan li svg { color: var(--fg); }
.p-paysteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.p-paysteps li { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: 22px; background: var(--bg2); }
.p-paysteps span { font: 400 12px/1 var(--mono); color: var(--mute); }
.p-paysteps h3 { margin-top: 26px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.p-paysteps p { color: var(--fg2); font-size: 15px; }
.p-custom { margin-top: 32px; padding: 24px 28px; border: 1px dashed var(--line2); border-radius: 22px; align-items: center; }
@media (max-width: 860px) { .p-paysteps { grid-template-columns: 1fr; } }

/* ---------- Úvod editoru: animace podle studio.design ---------- */
.l-hero { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 150px) 24px clamp(24px, 4vw, 56px); display: grid; justify-items: start; }
.l-title { font-size: clamp(46px, 7.4vw, 116px); font-weight: 600; letter-spacing: -.055em; line-height: .96; }
.l-soft { color: var(--mute); }
.l-ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.l-ln > span { display: block; }
.l-hero .p-lead { margin: 32px 0 0; max-width: 34em; }
.l-hero .p-hero-acts { justify-content: flex-start; }
.l-note { margin-top: 18px; color: var(--mute); font-size: 14px; }
/* načtení: řádky nadpisu vyjedou, zbytek se objeví postupně */
.js .l-ln > span { animation: l-up 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.js .l-in { animation: l-fade .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes l-up { from { transform: translateY(105%); } }
@keyframes l-fade { from { opacity: 0; transform: translateY(16px); } }

/* okno editoru se při scrollu zvětší z karty přes celou šířku */
.l-zoom { position: relative; height: 230vh; }
/* přiblížení šablon (scale 1.1) nesmí roztáhnout stránku; clip nezruší sticky */
.p-home .p-main { overflow-x: clip; }
.l-zoom-pin { position: sticky; top: var(--hd-h, 64px); height: calc(100vh - var(--hd-h, 64px)); display: grid; place-items: center; overflow: hidden; }
.l-zoom .p-shot { width: min(1192px, calc(100vw - 48px)); transform-origin: 50% 50%; transform: scale(var(--zs, 1)); border-radius: var(--zr, 22px); will-change: transform; }

/* sekce s kartami */
.l-h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin-bottom: 36px; }
.l-bento { gap: 16px; }
.l-bento .p-card { position: relative; }
.l-more {
  position: absolute; right: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font-size: 13px; font-weight: 500;
  transition: transform .4s var(--ease), background-color .2s;
}
.l-more:hover { background: var(--fg2); transform: translate(2px, -2px); }
.l-wall { gap: 28px 16px; }

/* příjezd prvků: karty vyjedou šikmo zespodu, šablony se zmenší z přiblížení */
.l-anim [data-appear] { opacity: 0; transform: translate(-16px, 24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.l-anim [data-appear].is-in { opacity: 1; transform: none; }
.l-anim [data-zoomin] .p-tcard { opacity: 0; transform: scale(1.1) translateY(32px); transition: opacity 1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.l-anim [data-zoomin].is-in .p-tcard { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .l-ln > span, .js .l-in { animation: none; }
  .l-zoom { height: auto; } .l-zoom-pin { position: static; height: auto; padding: 0 24px; } .l-zoom .p-shot { transform: none; }
}
@media (max-width: 720px) { .l-zoom { height: auto; } .l-zoom-pin { position: static; height: auto; padding: 8px 16px 0; } .l-more { right: 14px; bottom: 14px; } }

/* ---------- Úvodní dotazník po registraci (inspirace studio.design) ---------- */
.ob-body { background: var(--bg); }
.ob { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.ob-form { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: clamp(32px, 7vh, 88px) 0 64px; }
.ob-step { border: 0; margin: 0; padding: 0; display: grid; justify-items: center; text-align: center; }
.ob-step + .ob-step { margin-top: 96px; }
.ob-js .ob-step { display: none; }
.ob-js .ob-step.is-on { display: grid; animation: ob-in .6s var(--ease) both; }
.ob-js .ob-step + .ob-step { margin-top: 0; }
@keyframes ob-in { from { opacity: 0; transform: translateY(14px); } }
.ob-step legend { padding: 0; width: 100%; }
.ob-step h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.ob-tags { display: flex; gap: 6px; margin-top: 18px; }
.ob-tags b, .ob-tags span { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.ob-tags b { background: var(--fg); color: var(--on-fg); }
.ob-tags span { background: var(--surface); color: var(--fg2); }
.ob-sub { margin-top: 16px; color: var(--mute); font-size: 17px; }
.ob-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.ob-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ob-card { position: relative; display: grid; justify-items: center; gap: 8px; padding: 32px 20px; border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .3s var(--ease); }
.ob-card:hover { border-color: var(--fg2); transform: translateY(-2px); }
.ob-card input { position: absolute; opacity: 0; pointer-events: none; }
.ob-card svg { margin-bottom: 8px; }
.ob-card b { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.ob-card span { color: var(--mute); font-size: 14.5px; }
.ob-card:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.ob-card:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.ob-chip { padding: 30px 14px; align-content: center; }
.ob-chip b { font-size: 18px; font-weight: 600; }
.ob-time { margin-top: 36px; font-weight: 600; font-size: 15px; }
.ob-next { width: min(520px, 100%); margin-top: 12px; }
.ob-progress { display: grid; justify-items: center; gap: 18px; margin: 0 0 48px; }
.ob-progress[hidden] { display: none; }
.ob-progress i { width: 100%; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ob-progress b { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--fg); transition: width .6s var(--ease); }
.ob-progress span { color: var(--mute); font-size: 17px; font-variant-numeric: tabular-nums; }
.ob-nav { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 44px; }
.ob-back { display: inline-flex; gap: 12px; align-items: center; padding: 12px 8px; font-size: 18px; font-weight: 500; color: var(--fg); }
.ob-back span { font-size: 22px; line-height: 1; }
.ob-back:hover { color: var(--fg2); }
.ob-field { width: min(520px, 100%); margin-top: 32px; text-align: left; }
.ob-custom { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: var(--surface); color: var(--fg2); font-size: 15px; }
.ob-custom a { color: var(--fg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ob-skip { margin-top: 28px; text-align: center; }
.ob-skip button { color: var(--mute); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.ob-skip button:hover { color: var(--fg); }
@media (max-width: 720px) { .ob-grid { grid-template-columns: 1fr; } .ob-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ob-card { padding: 22px 16px; } }

/* ---------- Inspirace (inspirace showcase.studio.design) ---------- */
.sc-hero { position: relative; height: min(86vh, 880px); min-height: 560px; overflow: hidden; margin: 0 0 8px; background: var(--bg3); }
.sc-cols { position: absolute; inset: -40px -20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sc-col { display: grid; gap: 14px; align-content: start; animation: sc-up var(--dur, 60s) linear infinite; animation-direction: var(--dir, normal); }
.sc-col img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; }
.sc-col:nth-child(even) img { aspect-ratio: 4 / 5; }
@keyframes sc-up { to { transform: translateY(-50%); } }
.sc-center {
  position: absolute; left: 50%; top: 0; bottom: 0; width: min(520px, 92vw); transform: translateX(-50%);
  display: grid; align-content: center; justify-items: center; gap: 18px; padding: 0 36px; text-align: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sc-center h1 { font-size: clamp(46px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.sc-center p { color: var(--fg2); font-size: 17px; line-height: 1.6; }
.sc-filters {
  position: sticky; top: calc(var(--hd-h, 64px) + 12px); z-index: 5; width: max-content; max-width: 100%; margin: 0 auto 32px;
  display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sc-filters button { flex: none; padding: 10px 18px; border-radius: 999px; color: var(--fg2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .25s, color .25s; }
.sc-filters button:hover { color: var(--fg); }
.sc-filters button[aria-pressed="true"] { background: var(--fg); color: var(--on-fg); }
.sc-grid li { animation: sc-in .45s var(--ease) both; }
@keyframes sc-in { from { opacity: 0; transform: translateY(10px); } }
.sc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 18px; scroll-margin-top: 140px; }
.sc-grid li[hidden] { display: none; }
.sc-card { display: grid; gap: 12px; }
.sc-img, .sc-card .p-tthumb { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); transition: transform .35s var(--ease), box-shadow .35s; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sc-card:hover .sc-img, .sc-card:hover .p-tthumb { transform: translateY(-3px); box-shadow: var(--shadow); }
.sc-meta { display: grid; gap: 2px; }
.sc-meta b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.sc-meta i { font-style: normal; color: var(--mute); font-size: 14px; }
.sc-empty { color: var(--mute); padding: 40px 0; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sc-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sc-col:nth-child(n+4) { display: none; } }
@media (max-width: 600px) { .sc-grid { grid-template-columns: 1fr; } .sc-center { width: 100%; padding: 0 24px; } }
@media (prefers-reduced-motion: reduce) { .sc-col, .sc-grid li { animation: none; } }

/* ---------- Nápověda (inspirace help.studio.design) ---------- */
.hp-band { display: grid; gap: 22px; padding: 40px 36px; margin-bottom: 36px; border-radius: 24px; background: var(--bg3); }
.hp-band h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.hp-search { display: flex; align-items: center; gap: 14px; padding: 0 22px; height: 64px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); color: var(--mute); }
.hp-search:focus-within { border-color: var(--fg); }
.hp-search input { flex: 1; border: 0; background: none; outline: none; font-size: 18px; color: var(--fg); }
.hp-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-cats a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .3s var(--ease); }
.hp-cats a:hover { border-color: var(--fg2); transform: translateY(-2px); }
.hp-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--bg2); }
.hp-cats b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.hp-cats i { font-style: normal; color: var(--mute); font-size: 14px; }
.hp-h2 { margin-top: 56px; }
.hp-crumbs { margin-bottom: 14px; }
.hp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hp-list li { border-bottom: 1px solid var(--line); }
.hp-list a { display: grid; gap: 4px; padding: 18px 4px; transition: background-color .2s; }
.hp-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hp-list b { font-size: 17px; font-weight: 600; }
.hp-list span { color: var(--fg2); font-size: 15px; }
.hp-list i { font-style: normal; color: var(--mute); font-size: 13px; }
.hp-none { padding: 22px 4px; color: var(--mute); }
.hp-results { margin-bottom: 40px; }
@media (max-width: 900px) { .hp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hp-cats { grid-template-columns: 1fr; } .hp-band { padding: 28px 20px; } }

/* ---------- Ověření e-mailu ---------- */
.p-code { font: 600 28px/1 var(--mono); letter-spacing: .4em; text-align: center; }
.p-auth-ok { padding: 13px 16px; border-radius: var(--r); background: var(--bg2); color: var(--ok); font-size: 15px; }
.p-resend { margin-top: 18px; text-align: center; color: var(--mute); font-size: 15px; }
.p-resend button { color: var(--fg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Videa ---------- */
.vd-head { padding-top: 0; }
.vd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; }
.vd-cats button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--fg2); font-size: 14px; font-weight: 500; }
.vd-cats button[aria-pressed="true"] { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.vd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 18px; }
.vd-grid li[hidden] { display: none; }
.vd-card { margin: 0; display: grid; gap: 12px; }
.vd-play, .vd-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: 14px; background: var(--bg3); cursor: pointer; }
.vd-play img { width: 100%; height: 100%; object-fit: cover; }
.vd-ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg2), var(--bg3)); }
.vd-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--fg); transition: transform .3s var(--ease); }
.vd-btn::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--on-fg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vd-play:hover .vd-btn { transform: scale(1.08); }
.vd-len { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--fg); font-size: 11px; }
.vd-card figcaption { display: grid; gap: 3px; }
.vd-card b { font-size: 17px; font-weight: 600; }
.vd-card span { color: var(--fg2); font-size: 15px; }
.vd-card i { font-style: normal; color: var(--mute); font-size: 13px; }
.vd-empty { position: relative; display: grid; justify-items: center; gap: 14px; padding: 140px 32px 72px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.vd-empty .vd-btn { top: 72px; margin-top: 0; }
.vd-empty h2 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.vd-empty p { color: var(--fg2); max-width: 30em; }

/* ---------- Úvodní průlet před dotazníkem ---------- */
.ob-intro-on, .ob-intro-on body { overflow: hidden; }
.ob-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); cursor: pointer; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.ob-intro[hidden] { display: none; }
.ob-intro canvas { position: absolute; inset: 0; }
.ob-intro-text { position: relative; text-align: center; pointer-events: none; }
.ob-intro-kicker { margin: 0 0 18px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ob-intro h2 { margin: 0; font-size: clamp(40px, 6vw, 88px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.ob-intro h2 span { display: block; overflow: hidden; }
.ob-intro h2 span::before { content: none; }
.ob-intro h2 span { opacity: 0; transform: translateY(40%); filter: blur(8px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.ob-intro h2 span + span { color: var(--mute); transition-delay: .14s; }
.ob-intro.is-text .ob-intro-kicker, .ob-intro.is-text h2 span { opacity: 1; transform: none; filter: none; }
.ob-intro-skip { position: absolute; right: 24px; bottom: 22px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--fg2); font-size: 14px; }
.ob-intro.is-out { opacity: 0; transform: scale(1.06); pointer-events: none; }
/* po průletu: karty dotazníku naskočí jedna po druhé */
.ob-enter .ob-step.is-on > * { animation: ob-rise .7s var(--ease) both; }
.ob-enter .ob-step.is-on .ob-card { animation: ob-rise .7s var(--ease) both; }
.ob-enter .ob-step.is-on .ob-card:nth-child(2) { animation-delay: .07s; } .ob-enter .ob-step.is-on .ob-card:nth-child(3) { animation-delay: .14s; } .ob-enter .ob-step.is-on .ob-card:nth-child(4) { animation-delay: .21s; }
@keyframes ob-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Tarify Free / Pro / Max, přihlášení přes Google ----------
   Štítek Pro (galerie, detail, výběr šablony), tlačítko aktuálního tarifu, odkaz na web na míru pod tarify,
   karta tarifu v účtu, upozornění na limit tarifu, Google tlačítko s oddělovačem „nebo“. */
.p-tag { display: inline-block; padding: 3px 6px 2px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); color: var(--fg); font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.p-tthumb > .p-tag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.p-tmeta b.p-tag { font-weight: 400; }
.pk-grid strong .p-tag { margin-left: 6px; }
.p-detail-acts .p-free a { color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; }
.p-lock, .a-note { padding: 13px 16px; border-radius: var(--r); background: var(--bg2); color: var(--fg2); font-size: 15px; }
.p-lock a, .a-note a { color: var(--fg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.p-detail-top .p-lock { flex: 1 0 100%; }
.a-note { margin-bottom: 24px; }
.pk-in .a-note { margin: 18px 0 0; }
.pk-pro + .pk-pro { margin-top: 10px; padding-top: 0; border-top: 0; }
.p-faq p a { color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; }

/* Ceník: tlačítko aktuálního tarifu, formulář přechodu, řádek „Web na míru“ */
.p-plan form { display: grid; }
.p-btn-cur, .p-btn-cur:hover { background: transparent; color: var(--mute); border-color: var(--line); cursor: default; }
.p-custom { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line2); }
.p-custom p { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; color: var(--mute); }
.p-custom b { color: var(--fg); font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.p-custom a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font: 400 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.p-custom a:hover { color: var(--fg2); }

/* Přihlášení přes Google */
.p-google { margin-top: 44px; height: 54px; }
.p-auth .p-google + .p-or + form { margin-top: 22px; }
.p-or { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--mute); font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.p-or::before, .p-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* Dashboard a účet */
.a-head .a-plan { margin-left: auto; color: var(--mute); font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.a-head .a-plan:hover { color: var(--fg); }
.a-plan-now { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.a-plan-now .mono { color: var(--mute); font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.a-plan-now b { font-size: 28px; font-weight: 500; letter-spacing: -.045em; }
.a-plan-now span:last-child { color: var(--mute); }
.a-plan-facts { display: grid; border-top: 1px solid var(--line); }
.a-plan-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.a-plan-facts li span { color: var(--mute); }
.a-plan-up { display: flex; gap: 10px; flex-wrap: wrap; }
.a-plan-more { color: var(--mute); font-size: 14px; }
.a-plan-more a { color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; }
.a-plan-card .a-ok, .a-plan-card .a-note { margin: 0; }

/* Editor: zamčený odkaz v patičce (Free) */
.ed-check input:disabled { opacity: .5; }
.ed-check:has(input:disabled) { cursor: default; }
.ed-lock { margin-top: 8px; padding-left: 27px; color: var(--mute); font-size: 13px; }
.ed-lock a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Editor – plovoucí lišta formátování, Co ukázat, položky, fotka s bodem ořezu, náhled v Googlu */
.ed-tb { position: absolute; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 11px; background: #161616; color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); transform: translateX(-50%); font-size: 13px; }
.ed-tb[hidden] { display: none; }
.ed-tb button { display: flex; align-items: center; gap: 6px; min-width: 30px; height: 30px; justify-content: center; padding: 0 8px; border-radius: 8px; color: rgba(255, 255, 255, .86); font-size: 14px; }
.ed-tb button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ed-tb button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
.ed-tb button span { font-size: 13px; }
.ed-tb b { font-weight: 800; }
.ed-tb i { font-family: Georgia, serif; font-size: 15px; }
.ed-tb-mark { padding: 0 3px; border-bottom: 2px solid #ff7a45; font-weight: 600; }
.ed-tb-sep { width: 1px; height: 18px; margin: 0 3px; background: rgba(255, 255, 255, .18); }
.ed-tb-link { display: flex; align-items: center; gap: 6px; padding: 2px; }
.ed-tb-link select, .ed-tb-link input { height: 30px; max-width: 220px; padding: 0 8px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 13px; }
.ed-tb-link input { width: 200px; }
.ed-tb-link input::placeholder { color: rgba(255, 255, 255, .5); }
.ed-tb-link select option { color: #161616; }
.ed-tb-link .ed-tb-ok { background: #fff; color: #161616; font-weight: 600; }
.ed-tb-link .ed-tb-ok:hover { background: #e9e9e9; color: #161616; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-chips button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mute); font-size: 12.5px; font-weight: 500; transition: background-color .15s, color .15s, border-color .15s; }
.ed-chips button::before { content: '+ '; }
.ed-chips button:hover { color: var(--fg); border-color: var(--fg2); }
.ed-chips button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.ed-chips button[aria-pressed="true"]::before { content: '✓ '; }
.ed-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--mute); font-size: 12.5px; line-height: 1.45; }
.ed-note svg { flex: none; }
.ed-note.bad { color: var(--danger); }
.ed-count { float: right; color: var(--mute); font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.ed-count.over { color: var(--danger); }
.ed-focal { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); cursor: crosshair; }
.ed-focal img { display: block; width: 100%; max-height: 180px; object-fit: contain; background: var(--bg2); }
.ed-focal i { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }
.ed-photo-big { display: block; width: 100%; height: 96px; }
.ed-check-sm { padding-top: 4px; font-size: 13px; }
.ed-colors { display: grid; gap: 8px; }
.ed-color-l { display: grid; font-size: 13px; }
.ed-color-l .mono { color: var(--mute); font-size: 11px !important; }
.ed-social { display: grid; gap: 6px; }
.ed-social label { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--fg2); }
.ed-serp { display: grid; gap: 3px; margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); font-family: Arial, sans-serif; }
.ed-serp-url { color: #4d5156; font-size: 12px; }
.ed-serp-t { color: #1a0dab; font-size: 17px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.ed-serp-d { color: #4d5156; font-size: 13px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ed-serp-d i { color: var(--mute); }
.ed-blocks em { color: var(--sel); font-size: 11.5px; font-style: normal; font-weight: 500; }
.ed-presets { display: grid; gap: 6px; padding: 4px 14px 24px; }
.ed-presets button { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--line); text-align: left; transition: border-color .15s, box-shadow .15s; }
.ed-presets button:hover { border-color: var(--sel); box-shadow: 0 0 0 3px var(--sel-soft); }
.ed-presets .ed-schema { padding: 3px; border-radius: 7px; background: var(--bg2); }
.ed-presets strong { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-presets span span { color: var(--mute); font-size: 12px; }
.ed-presets li > button > span:last-child { min-width: 0; }
.ed-sec-h-big .ed-ic:first-child { margin-left: -8px; }
.ed-sec-h-big span { flex: 1; }
.ed-off { display: grid; color: var(--mute); opacity: .7; }
.ed-hint-in { padding: 22px 0 0; }
.ed-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ed-seg button:disabled { opacity: .4; }

/* ---------- Tarif Free v editoru: zamčené sekce, stránky a vlastní vzhled ---------- */
.ed-blocks button.is-locked { opacity: .55; }
.ed-blocks button.is-locked:hover { border-color: var(--line2); box-shadow: none; }
.ed-pro { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font: 500 10px/1.5 var(--mono); vertical-align: 1px; }
.ed-lock-box { margin: 6px 14px 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); }
.ed-free .ed-field:has(.ed-colors, .ed-fonts, [data-key="radius"]) { display: none; }
