/* nacenimeto.cz – mobil první */
:root {
  --bg: #f5f6f8;
  --card: #fff;
  --text: #1d2330;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #6d3fd0;
  --brand-soft: #f1ebfd;
  --accent: #ffd400;
  --accent-text: #1d2330;
  --ok: #157f3c;
  --ok-soft: #e7f6ec;
  --warn: #9a6400;
  --warn-soft: #fff5db;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); line-height: 1.5; }
.page-calc { padding-bottom: 96px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 20px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.account { display: flex; align-items: center; gap: 10px; font-size: .9rem; min-width: 0; }
.account__email { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45vw; }

.link { background: none; border: 0; padding: 4px; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.panel__head h2 { margin: 0; }

.notice { border-radius: var(--radius); padding: 12px 14px; margin: 16px 0 0; font-weight: 500; }
.notice--info { background: var(--brand-soft); }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--error { background: var(--err-soft); color: var(--err); }
.editing { color: var(--brand); font-weight: 600; }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.field span { color: var(--muted); }
input { font: inherit; color: inherit; }
.field input, .row-form input {
  width: 100%; padding: 11px 12px; border: 1px solid #cfd4dc; border-radius: 10px; background: #fff; font-size: 1rem;
}
input:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; }
input.invalid { border-color: var(--err); background: var(--err-soft); }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; }
.row-form input { flex: 1 1 220px; }

.btn {
  font: inherit; font-weight: 600; border: 1px solid var(--brand); background: var(--brand); color: #fff;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
}
.btn--ghost { background: transparent; color: var(--brand); padding: 7px 12px; }
.btn--primary { background: var(--accent); border-color: #e6bf00; color: var(--accent-text); font-size: 1.05rem; padding: 12px 26px; }
.btn:disabled { opacity: .6; cursor: progress; }

.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 0; }
.item--on .item__name { color: var(--brand); }
.item__name { font-size: 1rem; font-weight: 600; }
.item__desc { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.item__price { font-size: .9rem; margin-top: 4px; }
.item__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.item__sum { font-weight: 600; color: var(--brand); white-space: nowrap; }

.toggle { position: relative; display: inline-flex; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui {
  width: 52px; height: 30px; border-radius: 999px; background: #d0d5dd; position: relative; transition: background .15s;
}
.toggle__ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s;
}
.toggle input:checked + .toggle__ui { background: var(--ok); }
.toggle input:checked + .toggle__ui::after { transform: translateX(22px); }
.toggle input:focus-visible + .toggle__ui { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); }

.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer;
  background: var(--err-soft); color: var(--err); font-weight: 700;
}
.qty__btn--plus { background: var(--ok-soft); color: var(--ok); }
.qty__input {
  width: 64px; padding: 8px 4px; text-align: center; border: 1px solid #cfd4dc; border-radius: 8px; font-size: 1rem;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__unit { font-size: .8rem; color: var(--muted); min-width: 22px; }

.summary { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16,24,40,.08); z-index: 10; }
.summary__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.summary__price { display: flex; flex-direction: column; }
.summary__price strong { font-size: 1.45rem; }
.summary__price span { font-size: .8rem; color: var(--muted); }

.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.project {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: #fafbfc;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
}
.project:hover { border-color: var(--brand); }
.project__title { font-weight: 600; }
.project__meta { color: var(--muted); font-size: .85rem; grid-column: 1; }
.project__price { font-weight: 600; grid-column: 2; grid-row: 1; text-align: right; }
.badge { grid-column: 2; grid-row: 2; font-size: .75rem; padding: 2px 8px; border-radius: 999px; justify-self: end; align-self: center; }
.badge--unverified { background: var(--warn-soft); color: var(--warn); }
.badge--sent { background: var(--ok-soft); color: var(--ok); }
.badge--quoted { background: var(--brand-soft); color: var(--brand); }

@media (min-width: 720px) {
  h1 { font-size: 1.9rem; }
  .grid { grid-template-columns: 2fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .item { flex-direction: row; align-items: center; justify-content: space-between; }
  .item__ctrl { flex: 0 0 auto; min-width: 270px; justify-content: flex-end; }
  .item__sum { min-width: 90px; text-align: right; }
}

/* ---------- layout: hlavička, patička ---------- */
a { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.small { font-size: .85rem; margin-top: 8px; }
.wrap--narrow { max-width: 760px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; line-height: 1.2; }
.btn:hover { filter: brightness(1.05); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--sm { padding: 7px 12px; font-size: .9rem; }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; }
.btn--primary:hover { background: #ffdc2e; }
.ico { width: 24px; height: 24px; flex: none; }
.ico--sm { width: 18px; height: 18px; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word span { color: var(--brand); }
.brand--light { color: #fff; }
.brand--light .brand__word span { color: var(--accent); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg); }
.topbar__in > .account, .topbar__in > .btn { margin-left: auto; }
.account { display: flex; align-items: center; gap: 10px; font-size: .9rem; min-width: 0; }
.account__email { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }

.footer { background: #1b1433; color: #d6d0e8; padding: 40px 0 0; margin-top: 48px; font-size: .95rem; }
.page-home .footer { margin-top: 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer__brand p { margin-top: 12px; max-width: 34ch; color: #b9b1d3; }
.footer__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #b3a8d6; margin-bottom: 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__soon { color: #b9b1d3; }
.footer__soon small { font-size: .72rem; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.1); color: #d6d0e8; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .82rem; color: #b3a8d6; }

/* ---------- homepage ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e6dafd 0, transparent 60%), linear-gradient(180deg, #fff 0, var(--bg) 100%); padding: 32px 0 40px; overflow: hidden; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; }
.hero h1 { font-size: 2.1rem; line-height: 1.12; letter-spacing: -.025em; margin: 16px 0 14px; }
.hl { color: var(--brand); background: linear-gradient(transparent 62%, #ffe866 62%); }
.hero__lead { font-size: 1.1rem; color: #475467; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #475467; font-size: .92rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .ico { color: var(--ok); }
.hero__art svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(77,45,160,.14)); }

.section { padding: 48px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__h { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.section__lead { color: var(--muted); max-width: 60ch; margin-bottom: 24px; }

.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.module { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.module__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg); color: #667085; margin-bottom: 6px; }
.module__name { font-size: 1.1rem; }
.module__name a { color: inherit; text-decoration: none; }
.module__name a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.module__name a:focus-visible { outline: none; }
.module__tag { font-weight: 600; color: #475467; font-size: .95rem; }
.module__desc { color: var(--muted); font-size: .9rem; }
.module__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.module__meta { font-size: .85rem; color: var(--muted); }
.module__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); margin-top: 4px; }
.module:not(.module--live) { background: #fafbfc; }
.module:not(.module--live) .module__name { color: #475467; }
.module--live { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(109,63,208,.14); transition: transform .15s, box-shadow .15s; }
.module--live:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(109,63,208,.2); }
.module--live:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.module--live .module__ico { background: var(--accent); color: #2b1470; }
.pill { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #eaecf0; color: #475467; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; background: var(--bg); border-radius: 16px; padding: 20px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 16px; right: 18px; font-size: 2rem; font-weight: 800; color: #ddd2f7; line-height: 1; }
.step__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .93rem; }

.benefits { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.benefits li > .ico { color: var(--brand); background: var(--brand-soft); padding: 9px; width: 42px; height: 42px; border-radius: 12px; }
.benefits h3 { font-size: 1rem; margin-bottom: 2px; }
.benefits p { color: var(--muted); font-size: .93rem; }

.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 18px 16px; color: #475467; }

.cta-box { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; background: linear-gradient(120deg, #6d3fd0, #4a22a8); color: #fff; border-radius: 22px; padding: 28px; }
.cta-box h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 6px; }
.cta-box p { color: #ece5ff; }

/* ---------- kalkulačka, textové stránky ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.crumbs a { color: var(--muted); }
.intro { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 8px; }
.intro summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--brand); }
.intro__body { padding: 0 16px 14px; color: #475467; font-size: .95rem; display: grid; gap: 8px; }
.prose { padding-top: 8px; padding-bottom: 16px; }
.prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose ul { color: #344054; }
.prose li { margin: 6px 0; }
.notfound { text-align: center; padding-top: 48px; padding-bottom: 32px; }
.notfound__code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; }
.notfound__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .topbar__in > .nav + .account, .topbar__in > .nav + .btn { margin-left: 8px; }
  .hero { padding: 64px 0 72px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 72px 0; }
  .section__h { font-size: 2rem; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
}
@media (min-width: 1000px) {
  .modules { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.page-calc main .wrap, .page-calc .summary .wrap { max-width: 960px; }
