:root {
  --bg: #f3efe6;
  --bg-2: #e8e0d0;
  --paper: #faf7f0;
  --ink: #161410;
  --muted: #5b554b;
  --line: #d5ccba;
  --accent: #1f5c56;
  --accent-dark: #163f3b;
  --gold: #b5792e;
  --gold-soft: #ead9bc;
  --shadow: 0 16px 40px rgba(22, 20, 16, 0.08);
  --radius: 18px;
  --max: 1120px;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scroll-padding-bottom: 5.5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7efe8 0%, transparent 50%),
    var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--accent);
  color: #f6f1e8;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 0.95rem;
}
.brand-name {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.nav-links {
  display: none;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }
/* nav-cta visibility is set after .btn to win specificity */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #f6f1e8; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a6423; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.nav-cta { display: none; }
html { scroll-padding-top: 0.5rem; }

/* Hero */
.hero {
  padding: 1.5rem 0 3rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0.6rem 0 1rem;
}
.hero-role {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
  max-width: 36rem;
  font-weight: 500;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
}
.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
section { padding: 3.2rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}
.num {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.3rem 0 0.7rem;
}
.section-head p { margin: 0; color: var(--muted); }

.about-grid, .process-grid, .faq-grid, .contact-grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.card p:last-child { margin-bottom: 0; }

/* Services */
.services { background: linear-gradient(180deg, transparent, rgba(31,92,86,.05) 20%, transparent); }
.svc-grid {
  display: grid;
  gap: 1rem;
}
.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.svc .icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: #e4efe9;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.svc h3 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.svc p { margin: 0; color: var(--muted); }

/* Pricing */
.price-grid {
  display: grid;
  gap: 1rem;
}
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
}
.price.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #eef5f3, var(--paper) 40%);
}
.price h3 { margin: 0; font-size: 1.15rem; }
.amount {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
}
.amount span { font-size: 1rem; font-family: var(--sans); color: var(--muted); }
.price p { margin: 0; color: var(--muted); flex: 1; }
.price-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; }

/* Process */
.steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.15rem 4.2rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #f6f1e8;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.step h3 { margin: 0 0 0.25rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); }

/* X card */
.x-card {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.x-profile {
  background: var(--ink);
  color: #f3efe6;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.x-handle { color: #c9c2b4; font-size: 0.95rem; }
.x-profile h3 { margin: 0.15rem 0 0.7rem; font-size: 1.35rem; }
.x-bio { color: #ddd6c8; margin: 0 0 1.1rem; }
.x-also {
  margin: 1.05rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #3a352c;
  color: #ddd6c8;
  font-size: 0.95rem;
}
.x-also a { color: #ead9bc; font-weight: 600; text-decoration: none; }
.x-also a:hover { color: #fff; }

/* Certificates */
.certs-wrap { margin-top: 2.4rem; }
.certs-wrap h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 0.45rem;
  font-weight: 650;
}
.certs-wrap > p { margin: 0 0 1.15rem; color: var(--muted); max-width: 42rem; }
.certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.certs figure { margin: 0; }
.cert-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cert-link:hover, .cert-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(22, 20, 16, 0.12);
}
.certs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.certs figcaption {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}
.certs time { color: var(--ink); font-weight: 600; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 14, 10, 0.88);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: min(1600px, 100%);
  max-height: calc(100vh - 2.5rem);
  display: grid;
  justify-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  background: #111;
}
.lightbox figcaption {
  margin-top: 0.7rem;
  color: #f3efe6;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #f3efe6;
  color: #161410;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: #fff; }
body.lightbox-open { overflow: hidden; }
.x-quotes { display: grid; gap: 0.8rem; }
blockquote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.95rem 1.05rem;
}
blockquote p { margin: 0 0 0.4rem; }
blockquote a { font-size: 0.88rem; text-decoration: none; font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
}
.faq details + details { margin-top: 0.6rem; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--muted); }

/* Form */
form { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 600; }
input, select, textarea {
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea { min-height: 8rem; resize: vertical; }
.gdpr { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.form-status {
  display: none;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}
.form-status.show { display: block; }
.form-status.ok { background: #e6f3ee; color: #16463f; }
.form-status.err { background: #f8e7e2; color: #6b2a1c; }
.composed {
  white-space: pre-wrap;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  margin: 0.7rem 0;
  font-size: 0.9rem;
}

.disclaimer {
  background: #efe6d4;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  font-size: 0.95rem;
}
.disclaimer strong { display: block; margin-bottom: 0.25rem; }

footer {
  padding: 2.5rem 0 7rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Mobile sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  z-index: 20;
}
.sticky-cta .btn { flex: 1; }

@media (min-width: 720px) {
  html { scroll-padding-bottom: 0; }
  .nav-links { display: flex; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .svc-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .steps, .x-card, .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3rem; padding-bottom: 4.5rem; }
  .sticky-cta { display: none; }
  footer { padding-bottom: 2.5rem; }
  .nav-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .certs { grid-template-columns: 1fr 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 1.4rem; }
}


/* Homepage vizitka */
.viz-home-grid {
  display: grid;
  gap: 1.3rem;
  align-items: center;
}
.viz-home-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.viz-home-card img {
  display: block;
  width: 100%;
  height: auto;
}
.viz-home-qrs {
  display: none;
}
.viz-home-qr-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.viz-home-actions {
  align-items: center;
}
.viz-home-save {
  flex: 1 1 12rem;
}

@media (min-width: 720px) {
  .viz-home-grid { grid-template-columns: 1.15fr 0.85fr; gap: 1.6rem; }
  .viz-home-qrs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
  }
  .viz-home-qrs figure { margin: 0; text-align: center; }
  .viz-home-qrs img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.35rem;
    display: block;
  }
  .viz-home-qrs figcaption {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
  }
  .viz-home-qr-note { display: none; }
}

@media (min-width: 720px) and (max-width: 1240px) {
  .nav-links { gap: 0.7rem; font-size: 0.84rem; flex-wrap: wrap; justify-content: flex-end; }
}


/* BizonApps cross-link */
.bizon-band { padding: 1.2rem 0 0.4rem; }
.bizon-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.35rem 1.4rem;
  display: grid;
  gap: 1.15rem;
}
.bizon-panel h2 { margin-bottom: 0.65rem; }
.bizon-panel > div > p { margin: 0 0 0.85rem; color: var(--muted); }
.bizon-examples-label {
  margin: 0 0 0.45rem !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.bizon-panel .pills { margin: 0; }
.bizon-cta .btn { width: 100%; }
@media (min-width: 720px) {
  .bizon-band { padding: 1.6rem 0 0.6rem; }
  .bizon-panel {
    grid-template-columns: 1.35fr auto;
    align-items: center;
    gap: 1.8rem;
    padding: 1.7rem 1.8rem;
  }
  .bizon-cta .btn { width: auto; }
}
