/* COMPRAG, s.r.o. – hlavní styly */

:root {
  --red: #d7192a;
  --red-dark: #b0101f;
  --ink: #0f1724;
  --ink-2: #1b2536;
  --text: #2a3446;
  --muted: #5d6879;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 36, .06), 0 8px 24px rgba(15, 23, 36, .06);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c9d1de; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #9aa6b8; }

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* Hlavička */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.logo:hover { color: #fff; }
.logo__mark { width: 40px; height: 40px; }
.header.is-scrolled .logo, .header.is-scrolled .logo:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .95rem; }
.nav__list a:hover { color: #fff; }
.header.is-scrolled .nav__list a { color: var(--text); }
.header.is-scrolled .nav__list a:hover { color: var(--red); }
.nav .btn { padding: .6em 1.2em; font-size: .92rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  color: #fff;
}
.header.is-scrolled .nav-toggle, .header.is-open .nav-toggle { color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.header.is-open .nav-toggle span { background: transparent; }
.header.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.header.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Úvod */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(215, 25, 42, .28), transparent 60%),
              linear-gradient(160deg, #0b111c 0%, #141e2f 60%, #1a2539 100%);
  color: #c9d1de;
  padding: 180px 0 120px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff4b5a; }
.hero__lead { font-size: 1.2rem; max-width: 600px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 24px;
}
.stat__num { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat__label { font-size: .92rem; color: #9aa6b8; }

/* Služby */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(215, 25, 42, .08);
  color: var(--red);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .45em;
}
.card li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

/* Bezpečnostní otázky */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.questions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.questions li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #dfe5ee;
}
.questions svg { flex: 0 0 22px; width: 22px; height: 22px; color: #ff4b5a; margin-top: 2px; }

/* O společnosti */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -8px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red);
}
.timeline strong { display: block; color: var(--ink); font-size: 1.05rem; }
.timeline span { color: var(--muted); font-size: .96rem; }

.person {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.person__photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
}
.person strong { display: block; color: var(--ink); }
.person span { color: var(--muted); font-size: .95rem; }

/* Technologie */
.tech { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tech span {
  padding: .5em 1em;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-2);
}

/* Certifikace */
.certs-note { margin: 24px 0 0; }
.tech--certs span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Reference */
.refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ref {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.ref__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 8px; }
.ref h3 { margin: 0; }
.ref__since { flex: 0 0 auto; font-size: .85rem; font-weight: 600; color: var(--red); white-space: nowrap; }
.ref__meta { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: .82rem; font-weight: 500;
  padding: .3em .75em; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2);
}
.ref--cta {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink); border-color: var(--ink); color: #c9d1de;
  transition: background .2s;
}
.ref--cta:hover { background: var(--ink-2); color: #c9d1de; }
.ref--cta h3 { color: #fff; }
.ref--cta p { margin-bottom: 12px; }
.ref__link { display: inline-flex; align-items: center; gap: .4em; color: #ff4b5a; font-weight: 600; }
.refs-more { margin-top: 32px; color: var(--muted); }

/* Vzdálená podpora */
.support {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(120deg, var(--red) 0%, #a10d1b 100%);
  color: #ffe4e6;
  border-radius: 20px;
  padding: 48px;
}
.support h2 { color: #fff; margin-bottom: .3em; }
.support p { margin: 0; max-width: 620px; }
.support .btn { background: #fff; color: var(--red); flex: 0 0 auto; }
.support .btn:hover { background: var(--ink); color: #fff; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact__items { display: grid; gap: 20px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__item .card__icon { margin: 0; flex: 0 0 auto; }
.contact__item small { display: block; color: var(--muted); font-size: .85rem; }
.contact__item a, .contact__item strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.contact__item a:hover { color: var(--red); }

.company {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.company dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; }
.company dt { color: var(--muted); font-size: .92rem; }
.company dd { margin: 0; color: var(--ink); font-weight: 500; }
.company p { margin: 20px 0 0; font-size: .88rem; color: var(--muted); }

.map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* Patička */
.footer { background: var(--ink); color: #8a96a8; padding: 40px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { font-size: 1.1rem; }
.footer .logo__mark { width: 32px; height: 32px; }
.footer a { color: #c9d1de; }
.footer a:hover { color: #fff; }

/* Animace při posunu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responzivita */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .checklist, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 16px 24px 24px;
    box-shadow: 0 12px 24px rgba(15, 23, 36, .1);
    display: none;
  }
  .header.is-open { background: #fff; }
  .header.is-open .logo { color: var(--ink); }
  .header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 80px; }
  .services, .refs { grid-template-columns: 1fr; }
  .card, .ref { padding: 24px; }
  .support { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .company dl { grid-template-columns: 1fr; gap: 2px; }
  .company dd { margin-bottom: 10px; }
  .stat__num { font-size: 2rem; }
}
