/* Daniel Haviar — IT služby. Flyer-matched dark navy + circuit theme. */
:root {
  --bg: #001129;
  --bg-soft: #041830;
  --bg-card: rgba(7, 30, 59, 0.72);
  --bg-header: rgba(0, 17, 41, 0.92);
  --accent: #7cc8fb;
  --accent-dim: #4aa6e0;
  --bar: #238add;
  --bar-text: #001129;
  --text: #ffffff;
  --muted: #c5d6ea;
  --faint: rgba(124, 200, 251, 0.22);
  --line: rgba(124, 200, 251, 0.35);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --max: 1120px;
  --font: "Montserrat", "Segoe UI", Calibri, "Trebuchet MS", Arial, sans-serif;
  --header-h: 4.5rem;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400.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: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400.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: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600.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: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-600.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: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-700.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: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-700.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: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-800.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: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-800.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; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("../img/circuits.svg") right top / min(52vw, 720px) auto no-repeat,
    radial-gradient(900px 500px at 80% 0%, rgba(35, 138, 221, 0.16), transparent 60%),
    var(--bg);
  opacity: 1;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--faint);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; color: #fff; }
.brand-tag { font-size: 0.68rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 0.2rem 1.15rem; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.lang a, .lang span { color: var(--muted); text-decoration: none; }
.lang a:hover { color: #fff; }
.lang [aria-current="true"] { color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  padding: 3.4rem 0 3.6rem;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--accent);
  text-transform: uppercase;
}
.hero .name {
  margin: 0.85rem 0 0;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.15rem auto 1.25rem;
  max-width: 28rem;
  color: var(--accent);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.divider i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: block;
}
.tagline {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary {
  background: var(--bar);
  color: var(--bar-text);
  border-color: var(--bar);
}
.btn-primary:hover { background: #3b9eef; color: var(--bar-text); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: rgba(124, 200, 251, 0.12); color: #fff; }

/* Sections */
section { padding: 3.4rem 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.section-head p {
  margin: 0.7rem auto 0;
  max-width: 40rem;
  color: var(--muted);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  background: var(--accent);
  margin: 0.85rem auto 0;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.3rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.95rem;
  color: var(--accent);
}
.icon svg { width: 100%; height: 100%; display: block; }
.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.card h3::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  margin: 0.65rem auto 0;
  opacity: 0.8;
}
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Split / prose sections */
.grid-2 {
  display: grid;
  gap: 1.1rem;
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.panel p { margin: 0 0 0.75rem; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.prose { max-width: 46rem; margin-inline: auto; color: var(--muted); }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.certs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; }
.certs li {
  list-style: none;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.certs { padding: 0; }


/* Main offer */
.offer-lead { max-width: 44rem; margin: 0 auto 1.6rem; text-align: center; color: var(--muted); }
.offer-lead p { margin: 0 0 0.8rem; }
.offer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.offer-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--faint);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.offer-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 200, 251, 0.18);
}
.audience-intro { max-width: 44rem; margin: -0.4rem auto 1.6rem; text-align: center; color: var(--muted); }
.audience-grid { display: grid; gap: 1rem; }
.also {
  margin-top: 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.25rem;
}
.also h3 { margin: 0 0 0.4rem; color: var(--accent); font-size: 1.05rem; letter-spacing: 0.04em; }
.also p { margin: 0 0 0.9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
}
.subhead {
  margin: 2.4rem 0 1.1rem;
  text-align: center;
}
.subhead h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.subhead h3::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  margin: 0.7rem auto 0;
}
.subhead p { margin: 0.7rem auto 0; max-width: 40rem; color: var(--muted); }
@media (min-width: 640px) {
  .offer-list { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .audience-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.1rem;
}
.contact-list { display: grid; gap: 0.8rem; }
.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
}
.contact-item:hover { border-color: var(--line); color: inherit; }
.contact-item .ic {
  width: 42px; height: 42px; flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item strong { display: block; color: #fff; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-item span { color: var(--muted); }

form {
  background: var(--bg-card);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  display: grid;
  gap: 0.85rem;
}
form .field, form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.86rem; color: #fff; }
form .field label { display: block; }
form input, form textarea {
  font: inherit;
  color: var(--text);
  background: #051a33;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  min-height: 2.8rem;
  appearance: none;
  -webkit-appearance: none;
  opacity: 1;
  -webkit-text-fill-color: var(--text);
  color-scheme: dark;
}
form input:focus, form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
form textarea { min-height: 8rem; resize: vertical; }
form .hint { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
form button { justify-self: start; cursor: pointer; font-family: inherit; }

/* CTA bar — flyer bottom stripe */
.cta-bar {
  background: var(--bar);
  color: var(--bar-text);
}
.cta-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  padding: 1rem 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
}
.cta-bar a { color: var(--bar-text); text-decoration: none; }
.cta-bar a:hover { text-decoration: underline; }
.cta-bar .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bar-text);
  color: var(--bar);
  display: grid; place-items: center;
}
.cta-bar .ic svg { width: 18px; height: 18px; }

/* Footer */
.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.legal { margin: 0.4rem 0 0; max-width: 40rem; font-size: 0.8rem; line-height: 1.5; }

/* Subpages */
.page { padding: 2.8rem 0 4rem; }
.page h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: 0.06em; text-transform: uppercase; }
.page .prose { margin: 0; }

/* 404 */
.notfound { text-align: center; padding: 5rem 0 6rem; }
.notfound h1 { font-size: 4rem; color: var(--accent); margin: 0; letter-spacing: 0.08em; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .hero { padding: 4.6rem 0 5rem; }
  section { padding: 4.2rem 0; }
}
@media (max-width: 819px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 22rem; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    backdrop-filter: blur(14px);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--faint); }
  .lang {
    margin: 0.7rem 0 0;
    padding: 0.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--faint);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { transition: none; }
}

@media (min-width: 700px) {
  #sluzby .cards + .subhead + .cards,
  #services .cards + .subhead + .cards {
    grid-template-columns: 1fr 1fr;
  }
}
