/* ── FONTY (self-host, latin + latin-ext pro češtinu) ─────────── */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #fafaf9;
  --surface:    #ffffff;
  --ink:        #111110;
  --ink-2:      #3a3a38;
  --ink-3:      #7a7a76;
  --accent:     #506AA5;
  --accent-dim: #3d5385;
  --border:     #e8e8e4;
  --border-2:   #d4d4ce;
  --max-w:      1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0d0d0c;
    --surface:    #161614;
    --ink:        #f0efec;
    --ink-2:      #c8c7c2;
    --ink-3:      #7a7a76;
    --accent:     #7a97d4;
    --accent-dim: #506AA5;
    --border:     #242422;
    --border-2:   #2e2e2b;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
}

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Geist', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}

.nav__links a:hover { color: var(--ink); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  padding: 140px 2rem 100px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__kicker {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__heading {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: var(--ink);
  max-width: 820px;
}

.hero__heading em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--ink-3);
  max-width: 480px;
  line-height: 1.6;
  font-weight: 300;
}

.hero__cta {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: gap .2s, color .2s;
}

.hero__cta:hover { gap: .85rem; color: var(--accent-dim); }

.hero__cta svg { width: 14px; height: 14px; transition: transform .2s; }
.hero__cta:hover svg { transform: translateX(3px); }

/* ── DIVIDER ──────────────────────────────────── */
.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  border-top: 1px solid var(--border);
}

/* ── SECTION ──────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 2rem;
}

.section + .section { border-top: 1px solid var(--border); }

.section__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3rem;
}

.section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section__title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.section__title em {
  font-style: normal;
  color: var(--accent);
}

.section__desc {
  font-size: .95rem;
  color: var(--ink-3);
  margin-top: .75rem;
  font-weight: 300;
  line-height: 1.7;
}

/* První popis bez horní mezery (nemá nad sebou titulek) */
.section__desc:first-child { margin-top: 0; }

/* ── SERVICE LIST ─────────────────────────────── */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.service-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--ink-2);
  transition: color .15s;
}

.service-list__item:first-child { border-top: 1px solid var(--border); }

.service-list__num {
  font-size: .7rem;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: .06em;
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.service-list__name { flex: 1; }

.service-list__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: background .15s;
}

.service-list__item:hover .service-list__dot { background: var(--accent); }
.service-list__item:hover { color: var(--ink); }

/* ── CONTACT ──────────────────────────────────── */
.contact-block { max-width: 640px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.contact-cell {
  background: var(--bg);
  padding: 1.75rem 2rem;
}

.contact-cell__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .4rem;
}

.contact-cell__value {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
}

.contact-cell__value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 1px;
  transition: border-color .15s, color .15s;
}

.contact-cell__value a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── CONTACT FORM ─────────────────────────────── */
.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-field__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: .7rem .85rem;
  transition: border-color .15s;
  resize: vertical;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: 2px;
  padding: .7rem 1.4rem;
  cursor: pointer;
  transition: background .2s, gap .2s;
}

.form-submit:hover { background: var(--accent-dim); gap: .85rem; }
.form-submit svg { width: 14px; height: 14px; }

.form-note {
  font-size: .8rem;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── IKONY ────────────────────────────────────── */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── FOOTER ───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: 'Geist', sans-serif;
  font-size: .95rem;
  color: var(--ink-3);
}

.footer__brand span { color: var(--accent); }

.footer__copy {
  font-size: .8rem;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 720px) {
  .nav__links { display: none; }

  .hero { padding: 110px 1.25rem 70px; }

  .section { padding: 60px 1.25rem; }

  .section__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
}

/* ── SCROLL FADE IN ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Postupné odhalení – schodek mezi prvky (dříve inline styly) */
.hero__heading.reveal { transition-delay: .07s; }
.hero__sub.reveal     { transition-delay: .14s; }
.hero__cta.reveal     { transition-delay: .21s; }
.section__layout > .reveal:nth-child(1) { transition-delay: .05s; }
.section__layout > .reveal:nth-child(2) { transition-delay: .1s; }
.contact-block.reveal { transition-delay: .05s; }

/* Bez JavaScriptu se obsah zobrazí rovnou (jinak by .reveal zůstalo skryté) */
.no-js .reveal { opacity: 1; transform: none; }

/* Respektovat volbu omezeného pohybu v systému */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.visible { opacity: 1; transform: none; transition: none; }
}
