/*
 * www.datari.eu, shared by index.html (Czech) and en/index.html (English).
 * A light page broken by dark ("night") bands; gold marks the one thing to notice in each view.
 * Colours, type and spacing follow the Datari design system.
 */
:root {
  --surface: #f8f8f8;
  --surface-raised: #ffffff;
  --ink: #242424;
  --ink-muted: #706f6b;
  --ink-subtle: #565552;
  --gold: #e0bd6a;
  --gold-soft: rgba(224, 189, 106, 0.2);
  --gold-ink: #82641d;
  --line: #dedbdb;
  --line-dotted: #bfbcbc;
  --night: #242424;
  --night-line: #3a3937;
  --night-line-strong: #4a4946;
  --on-night: #f8f8f8;
  --on-night-muted: #bfbcbc;
  --on-night-subtle: #a9a7a2;
  --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.07);
  --shadow-card-night: 0 5px 15px rgba(0, 0, 0, 0.4);

  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --content-max: 1200px;
  --gutter: 24px;
  color-scheme: light;
}
@media (max-width: 480px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.wrap { position: relative; width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* type */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; color: var(--gold-ink); }
.night .eyebrow { color: var(--gold); }
.h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 300; line-height: 1.3; text-wrap: balance; }
.h2 strong { font-weight: 700; }
.night .h2 strong { color: var(--gold); }
.intro { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--ink-muted); }
.night .intro { color: var(--on-night-muted); }
.note { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 16px 26px; border-radius: var(--radius);
  background: var(--gold); color: var(--ink);
  font-size: 16px; font-weight: 600; line-height: 1; text-align: center; text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--on-night); }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.ext { flex: none; margin-left: 8px; }

/* sections and decoration */
.section { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 100px); }
.night { background: var(--night); color: var(--on-night); }
.deco { position: absolute; pointer-events: none; }
.ring { width: 940px; height: 940px; border-radius: 50%; border: 140px solid var(--surface-raised); }
.night .ring { border-color: rgba(248, 248, 248, 0.04); }
.dots {
  background-image: radial-gradient(circle, rgba(36, 36, 36, 0.07) 4.3px, transparent 4.8px);
  background-size: 20px 20px; transform: rotate(45deg);
}
.night .dots { background-image: radial-gradient(circle, rgba(248, 248, 248, 0.09) 4.3px, transparent 4.8px); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(36, 36, 36, 0.97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--night-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.logo { display: inline-flex; color: var(--on-night); }
.logo svg { width: 112px; height: 26px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--on-night-muted); text-decoration: none; }
.nav-link:hover { color: var(--on-night); }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 8px;
  border: 1px solid var(--night-line-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--on-night-muted); text-decoration: none;
  transition: color .3s ease, border-color .3s ease;
}
.lang:hover { color: var(--on-night); border-color: var(--on-night-muted); }
@media (max-width: 880px) { .nav-link { display: none; } }

/* hero */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8vw, 112px); }
.hero .ring { right: -260px; top: -300px; }
.hero-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); right: 300px; bottom: 90px; }
@media (max-width: 720px) { .hero-dot { right: 32px; bottom: 40px; } }
.hero-body { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.hero-rot { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { display: grid; font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; overflow-wrap: break-word; }
@media (max-width: 360px) { .hero h1 { font-size: 32px; } }
.hero h1 > .slide { text-wrap: balance; }
.hero-lead { display: grid; max-width: 620px; }
.hero-lead p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }
.mark { text-decoration: underline 0.14em var(--gold); text-underline-offset: 0.12em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Three headlines take turns (site.js); the dots pick one. Without JS only the first shows and the dots stay hidden. */
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; }
.slide.is-active { opacity: 1; visibility: visible; }
/* Each dot button is 24px wide and 44px tall around a 10px dot; the negative margins keep the dots where the text column starts. */
.hero-dots { display: flex; margin: -17px 0 -17px -7px; }
.hero-dots[hidden] { display: none; }
.hero-dots button { display: flex; align-items: center; padding: 17px 7px; border: 0; background: none; cursor: pointer; }
.hero-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--ink-muted);
  transition: width .3s ease, background-color .3s ease;
}
.hero-dots button:hover::before { background: var(--ink); }
.hero-dots button[aria-current="true"]::before { width: 28px; background: var(--gold); }

/* key facts band */
.band { padding-block: clamp(48px, 6vw, 72px); }
.band .dots { width: 520px; height: 520px; left: -200px; top: -220px; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding-inline: 32px; border-left: 1px dotted var(--night-line-strong); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; line-height: 1.2; color: var(--gold); }
.facts span { font-size: 16px; line-height: 1.5; color: var(--on-night-muted); }
@media (max-width: 720px) {
  .band .dots { left: -400px; top: -420px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 20px 0; border-left: 0; }
  .facts li:first-child { padding-top: 0; }
  .facts li:last-child { padding-bottom: 0; }
  .facts li + li { border-top: 1px dotted var(--night-line-strong); }
}

/* what we do */
.services .dots { width: 600px; height: 600px; right: -240px; bottom: -260px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(26px, 3vw, 36px); border-radius: var(--radius);
  background: var(--surface-raised); box-shadow: var(--shadow-card);
}
.card h3 { font-size: 22px; font-weight: 600; line-height: 1.35; }
.card dl { display: flex; flex-direction: column; gap: 14px; }
.card dl > div { display: flex; flex-direction: column; gap: 2px; }
.card dl > div + div { border-top: 1px dotted var(--line-dotted); padding-top: 14px; }
.card dt { color: var(--ink-muted); }
.card dd { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.card .after dt { color: var(--gold-ink); }
.card .after dd { color: var(--ink); }

/* calculator */
.calc .ring { left: -420px; bottom: -520px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.calc-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.calc-text .intro { font-size: clamp(17px, 1.6vw, 19px); }
.calc-text .fine { font-size: 15px; line-height: 1.6; color: var(--on-night-subtle); }
.calc-card {
  display: flex; flex-direction: column; gap: 22px; min-width: 0;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-card-night);
}
.calc-card :focus-visible { outline-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-size: 15px; font-weight: 500; line-height: 1.5; }
.field-val { font-size: 17px; font-weight: 700; white-space: nowrap; }
.field input[type="range"] { width: 100%; height: 32px; margin: 0; accent-color: var(--gold-ink); cursor: pointer; }
.calc-result {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--gold-soft);
}
.calc-result > div { display: flex; flex-direction: column; gap: 2px; }
.calc-result .label { color: var(--gold-ink); }
.calc-result .num { font-size: clamp(26px, 7vw, 30px); font-weight: 700; line-height: 1.25; white-space: nowrap; }
.calc-result p { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; }
.calc-cta {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: -8px;
  font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.calc-cta:hover { color: var(--gold-ink); }

/* how it works */
.process .ring { right: -420px; top: -420px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.step {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--radius);
  background: var(--surface-raised); box-shadow: var(--shadow-card);
}
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--gold); color: var(--ink); }
.step-num.outline { background: transparent; border: 2px solid var(--gold); }
.step-when { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.step h3 { margin-top: 8px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.step > p { color: var(--ink-muted); }
.step-out {
  display: flex; flex-direction: column; gap: 4px; margin-top: auto;
  padding: 14px 16px; border-radius: var(--radius); background: var(--gold-soft);
  font-size: 15px; line-height: 1.55;
}
.step-out .label { color: var(--gold-ink); }

/* terms */
.terms .dots { width: 560px; height: 560px; right: -200px; top: -240px; }
@media (max-width: 720px) { .terms .dots { right: -380px; top: -380px; } }
.terms .section-head { margin-bottom: 40px; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--night-line); }
.term { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 8px 0; }
.term h3 { font-size: 19px; font-weight: 600; line-height: 1.4; }
.term p { font-size: 15px; line-height: 1.65; color: var(--on-night-muted); }
@media (max-width: 520px) {
  .term { padding: 24px 0; }
  .term + .term { border-top: 1px solid var(--night-line); }
}

/* FAQ */
.faq-section .dots { width: 600px; height: 600px; right: -220px; bottom: -200px; }
.faq-section .section-head { margin-bottom: 40px; }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-ink); transition: transform .3s ease;
}
.faq details[open] .faq-toggle { transform: rotate(45deg); }
.faq details p { padding: 0 50px 26px 0; color: var(--ink-muted); }
@media (max-width: 480px) { .faq details p { padding-right: 0; } }

/* about */
.about .ring { right: -380px; top: -460px; }
.about .dots { width: 520px; height: 520px; left: -220px; bottom: -280px; }
@media (max-width: 720px) { .about .dots { display: none; } }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 64px; align-items: start; }
.about-person { display: flex; flex-direction: column; gap: 22px; }
.portrait { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: var(--night-line); }
.about h2 { font-size: 28px; font-weight: 400; line-height: 1.4; }
.about h2 .eyebrow { display: block; margin-top: 4px; }
.about-text { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.about-text p { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-night-muted); }
.about-text strong { font-weight: 600; color: var(--on-night); }

/* contact */
.contact .ring { left: -460px; bottom: -560px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: center; }
.contact-text { display: flex; flex-direction: column; gap: 18px; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 38px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2382641d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.contact-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--surface-raised); box-shadow: var(--shadow-card);
}
.contact-card .note { margin-top: -6px; text-align: center; }
.contact-person { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.contact-person img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.contact-person p { display: flex; flex-direction: column; line-height: 1.45; }
.contact-person strong { font-weight: 600; }
.contact-person span { font-size: 14px; color: var(--ink-muted); }
.contact-or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.contact-or::before, .contact-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* footer */
.site-footer { padding: 48px 0 40px; background: var(--surface-raised); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand svg { width: 94px; height: 22px; color: var(--ink); }
.legal { max-width: 640px; font-size: 15px; line-height: 1.8; color: var(--ink-subtle); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 500; }
.footer-nav a { padding-block: 10px; color: var(--ink-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
