/* ERRIO & TAXES — styl webu */
:root {
  --gold: #e0a021;
  --gold-soft: #f6e3b4;
  --gold-line: #ead9b0;
  --brown: #5a2a0a;
  --brown-2: #7a3d12;
  --ink: #2a2420;
  --muted: #6b625a;
  --cream: #fbf6ec;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 35, 10, .08);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown-2); }
a:hover { color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brown); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--gold-line); box-shadow: 0 4px 18px rgba(60, 35, 10, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--cream); color: var(--brown); }
.nav a[aria-current="page"] { color: var(--brown); background: var(--gold-soft); }
.nav .btn { margin-left: 8px; }
.nav .btn[aria-current="page"] { background: var(--brown); color: #fff; box-shadow: 0 0 0 3px var(--gold-soft); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brown); color: #fff !important; }
.btn-primary:hover { background: var(--brown-2); }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: #ebb23a; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--brown); color: var(--brown) !important; background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff !important; }
.nav .btn { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero { padding: 18px 0 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 26px;
  min-height: 440px; display: flex; align-items: center;
  background: var(--brown) center / cover no-repeat;
  color: #fff;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42, 20, 5, .92) 0%, rgba(58, 28, 8, .78) 45%, rgba(58, 28, 8, .25) 100%);
}
.hero-content { position: relative; padding: 56px clamp(24px, 6vw, 72px); max-width: 720px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 560px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero { padding: 18px 0 0; }
.page-hero .hero-card { min-height: 260px; }
.page-hero .hero-content { padding-block: 44px; }

/* ---------- Facts strip ---------- */
.facts { margin-top: -1px; padding: 34px 0 10px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact {
  background: var(--cream); border-radius: var(--radius); padding: 22px 22px;
  border: 1px solid var(--gold-line);
}
.fact strong { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--brown); line-height: 1.2; }
.fact span { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.rule { width: 56px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 0 18px; }
.center .rule { margin-inline: auto; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid #f1e8d6;
  display: flex; flex-direction: column;
}
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 26px 26px 30px; }
.card-body h3 { margin-bottom: .7em; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 0 0 8px; color: #3d3630; font-size: .98rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-list { display: grid; gap: 16px; }
.about-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid var(--gold-line); }
.about-item .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--brown); display: grid; place-items: center; }
.about-item h3 { font-size: 1.08rem; margin: 2px 0 2px; font-family: var(--sans); font-weight: 650; }
.about-item p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--brown) 0%, #3b1a05 100%);
  color: #fff; border-radius: 26px; padding: 48px clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 560px; }

/* ---------- References ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ref {
  background: #fff; border: 1px solid #efe6d4; border-radius: 16px; padding: 14px;
  display: grid; place-items: center; transition: box-shadow .2s, transform .2s;
}
.ref:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ref img { width: 100%; max-width: 220px; aspect-ratio: 280 / 200; object-fit: contain; }
.ref-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ref-strip .ref { padding: 8px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #f1e8d6; padding: 32px; }
.panel h3 { margin-bottom: 1em; }
.field { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--gold-line); }
.field:last-of-type { border-bottom: 0; }
.field label { font-weight: 550; }
.field small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border-radius: 12px; border: 1.5px solid #e2d6bf; background: #fffdf8;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 160, 33, .18); }
input[type="number"] { text-align: right; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #ece2cf; cursor: pointer; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--gold); }
.check input { margin-top: 5px; accent-color: var(--brown); width: 18px; height: 18px; flex: 0 0 auto; }
.check:has(input:checked) { background: var(--cream); border-color: var(--gold); }
.result { position: sticky; top: 108px; background: linear-gradient(160deg, var(--brown) 0%, #3b1a05 100%); color: #fff; border: 0; }
.result h3 { color: #fff; }
.price { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--gold); line-height: 1.1; margin: 4px 0 6px; }
.price-note { color: rgba(255, 255, 255, .78); font-size: .95rem; }
.price-extra { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .98rem; }
.result .btn { margin-top: 22px; width: 100%; justify-content: center; }
.hint { background: var(--cream); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 12px 12px 0; color: #4a423b; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 32px; border: 1px solid var(--gold-line); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--gold-line); }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brown); display: grid; place-items: center; border: 1px solid var(--gold-line); }
.contact-line b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.contact-line a { text-decoration: none; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 550; }
.alert-ok { background: #eaf6ea; color: #1f5a24; border: 1px solid #bfe0c1; }
.alert-err { background: #fdecea; color: #8a1f17; border: 1px solid #f3c2bd; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #2a1606; color: rgba(255, 255, 255, .78); margin-top: 24px; padding: 56px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.2rem; margin: 0 0 12px; font-weight: 600; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 8px; letter-spacing: .02em; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .86rem; color: rgba(255, 255, 255, .55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services .card:last-child { grid-column: 1 / -1; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .about, .calc, .contact { grid-template-columns: 1fr; }
  .result { position: static; }
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 22px; border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 16px 30px rgba(60, 35, 10, .08); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .logo img { height: 50px; }
  .nav { top: 72px; }
  .hero-card { min-height: 0; border-radius: 20px; }
  .hero-card::before { background: linear-gradient(180deg, rgba(42, 20, 5, .86), rgba(58, 28, 8, .8)); }
  .hero-content { padding: 40px 24px; }
  .section { padding: 56px 0; }
  .services { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact { padding: 16px; }
  .fact strong { font-size: 1.25rem; }
  .ref-grid, .ref-strip { grid-template-columns: 1fr 1fr; }
  .field { grid-template-columns: 1fr 150px; }
  .form-row { grid-template-columns: 1fr; }
  .panel, .contact-card { padding: 22px; }
  .cta { border-radius: 20px; }
}

/* ---------- Poděkování po odeslání ---------- */
.thanks { text-align: center; padding: 48px 32px; }
.thanks:focus { outline: none; }
.thanks-ic {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: #eaf6ea; color: #1f6a2a; display: grid; place-items: center;
}
.thanks h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4em; }
.thanks p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.section .thanks.panel { max-width: 720px; margin: 0 auto; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo .logo-coin { width: 58px; height: 58px; }
.logo .logo-text { width: auto; height: 25px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img:first-child { width: 48px; height: 48px; }
.footer-brand img:last-child { width: auto; height: 18px; }

/* ---------- Reference: skupiny ---------- */
.ref-feature {
  background: linear-gradient(160deg, #f1f7f5 0%, #fbf6ec 100%);
  border: 1px solid #d8e6e1; border-radius: 24px; padding: 32px; margin-bottom: 36px;
}
.ref-feature-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.ref-feature-head h3 { margin: 4px 0 4px; font-size: 1.45rem; }
.ref-feature-head p { margin: 0; color: var(--muted); }
.ref-feature-ic { flex: 0 0 48px; height: 48px; border-radius: 14px; background: #fff; color: #2f6f63; display: grid; place-items: center; border: 1px solid #d8e6e1; }
.ref-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ref-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ref-group h3 { font-size: 1.1rem; margin-bottom: 14px; font-family: var(--sans); font-weight: 650; color: var(--brown); letter-spacing: .02em; }
.ref-grid-sm { grid-template-columns: 1fr 1fr; gap: 12px; }
.ref-grid-sm .ref { padding: 8px; }
@media (max-width: 1000px) {
  .ref-groups { grid-template-columns: 1fr; }
  .ref-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .ref-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .logo .logo-coin { width: 46px; height: 46px; }
  .logo .logo-text { height: 16px; }
  .ref-feature { padding: 22px; }
  .ref-grid-sm { grid-template-columns: 1fr 1fr; }
}
