/* ==========================================================================
   ITCommunity s.r.o. – „Řešení nejen IT problematiky“
   Navazuje na původní web: tmavě modrá, proudy binárního kódu, logo uprostřed.
   ========================================================================== */

:root {
  --bg: #040b1a;
  --bg-2: #061227;
  --bg-3: #0a1a36;
  --panel: rgba(120, 175, 255, .045);
  --panel-2: rgba(120, 175, 255, .08);
  --line: rgba(120, 175, 255, .14);
  --line-2: rgba(120, 175, 255, .24);
  --text: #eaf2ff;
  --muted: #93a7c8;
  --muted-2: #6b81a6;
  --blue: #0a91dc;
  --cyan: #3fd0ff;
  --glow: 0 0 40px rgba(10, 145, 220, .45);

  --f-display: "Outfit", "Century Gothic", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(18px, 4vw, 48px);
  --max: 1240px;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
svg[viewBox="0 0 24 24"] { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; transition: top .2s; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hl { color: var(--blue); background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 99px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--f-display); letter-spacing: .01em; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: linear-gradient(135deg, #18a6f0, var(--blue) 55%, #0670b0); color: #fff; box-shadow: 0 10px 30px -10px rgba(10, 145, 220, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(10, 145, 220, 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--outline { border: 1.5px solid rgba(234, 242, 255, .35); color: var(--text); background: rgba(4, 11, 26, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--outline:hover { border-color: var(--cyan); color: #fff; background: rgba(63, 208, 255, .08); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .4s, border-color .4s, transform .5s var(--ease), height .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  --header-h: 66px;
  background: rgba(4, 11, 26, .78); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.header__logo img { height: 40px; width: auto; transition: height .4s; }
.header.is-scrolled .header__logo img { height: 34px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  position: relative; display: block; padding: 10px 14px;
  font: 500 .82rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.nav .nav__phone { display: none; }
.header__call {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--line-2); font: 600 .92rem/1 var(--f-display); color: #fff;
  transition: background .3s, border-color .3s;
}
.header__call svg { color: var(--cyan); }
.header__call:hover { background: rgba(10, 145, 220, .18); border-color: var(--blue); }
.burger { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(4, 11, 26, .4); cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
  background: radial-gradient(120% 90% at 78% 30%, #0b2a5c 0%, #071735 35%, var(--bg) 75%);
  text-align: center;
}
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 50% 46%, rgba(4, 11, 26, .75), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero__content { display: grid; justify-items: center; gap: 22px; max-width: 900px; }
.hero__logo { position: relative; width: min(560px, 82vw); }
.hero__logo::before {
  content: ""; position: absolute; left: -2%; top: 50%; width: 26%; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(10, 145, 220, .55), transparent 65%);
  filter: blur(18px); animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; transform: translateY(-50%) scale(1.15); } }
.hero__logo img { position: relative; width: 100%; filter: drop-shadow(0 6px 30px rgba(10, 145, 220, .35)); }
.hero__title {
  font: 300 clamp(1.35rem, 3vw, 2.2rem)/1.2 var(--f-display); letter-spacing: .04em; color: #fff;
}
.hero__title [data-decrypt] { display: inline-block; min-height: 1.2em; }
.hero__title .scr { color: var(--cyan); opacity: .8; }
.hero__rule { width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.hero__lead { max-width: 640px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

.hero__down { position: absolute; left: 50%; bottom: 34px; display: grid; gap: 2px; justify-items: center; padding: 8px; transform: translateX(-50%); }
.hero__down i { width: 16px; height: 16px; border: solid rgba(234, 242, 255, .85); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: chev 1.8s infinite; opacity: 0; }
.hero__down i:nth-child(2) { animation-delay: .18s; } .hero__down i:nth-child(3) { animation-delay: .36s; }
@keyframes chev { 0% { opacity: 0; transform: translateY(-6px) rotate(45deg); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(6px) rotate(45deg); } }

/* hero entrance */
.js .hero__content > * { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.js .is-loaded .hero__content > * { opacity: 1; transform: none; filter: none; transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); }
.js .is-loaded .hero__content > *:nth-child(2) { transition-delay: .25s; }
.js .is-loaded .hero__content > *:nth-child(3) { transition-delay: .45s; }
.js .is-loaded .hero__content > *:nth-child(4) { transition-delay: .55s; }
.js .is-loaded .hero__content > *:nth-child(5) { transition-delay: .7s; }
.js .hero__logo { transform: scale(.9) !important; }
.js .is-loaded .hero__logo { transform: none !important; }

/* ==========================================================================
   Sections, headings
   ========================================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.head--center .eyebrow::after { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.head h2 { font: 600 clamp(2.4rem, 5.4vw, 4.2rem)/1.02 var(--f-display); letter-spacing: -.025em; }
.head__lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 620px; }

/* ---------- O nás ---------- */
.about { background: linear-gradient(to bottom, var(--bg), var(--bg-2)); }
.about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(120, 175, 255, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.values { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value {
  position: relative; display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 44px 30px 38px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(120, 175, 255, .07), rgba(120, 175, 255, .02));
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.value:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(10, 145, 220, .5); }
.value__icon {
  display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 145, 220, .22), rgba(10, 145, 220, .03) 70%);
  border: 1px solid var(--line-2); color: var(--cyan);
}
.value__icon svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value__icon .fill { fill: currentColor; stroke: none; }
.value__icon .draw { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 1.2s var(--ease) .4s; }
.value.is-in .draw { stroke-dashoffset: 0; }
.value__icon .steam { opacity: .8; animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(-2px); opacity: .9; } }
.value h3 { font: 500 1.5rem/1.2 var(--f-display); }
.value p { color: var(--muted); font-size: 1rem; max-width: 30ch; }

.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
}
.stats li { display: grid; gap: 4px; padding: 28px 26px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-display); letter-spacing: -.02em; color: #fff; }
.stats li > span { font-size: .92rem; color: var(--muted); }

/* ---------- Klienti ---------- */
.clients { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 10vw, 120px) 0; background: var(--bg-3); }
.clients__bg {
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  background:
    linear-gradient(90deg, var(--bg-3), transparent 30%, transparent 70%, var(--bg-3)),
    repeating-linear-gradient(-14deg, transparent 0 22px, rgba(63, 208, 255, .07) 22px 23px),
    radial-gradient(80% 120% at 80% 0%, rgba(10, 145, 220, .45), transparent 60%);
}
.clients .head { margin-bottom: 48px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-left: 10%;
}
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 110s linear infinite; }
.js .marquee__track:not(.is-running) { animation-play-state: paused; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.marquee li {
  flex: none; display: grid; place-items: center; width: 230px; height: 120px; padding: 22px 30px;
  border-radius: 18px; background: rgba(4, 11, 26, .55); border: 1px solid var(--line);
  transition: border-color .3s, background .3s, transform .5s var(--ease);
}
.marquee li:hover { border-color: var(--blue); background: rgba(10, 145, 220, .12); transform: translateY(-4px); }
.marquee img { max-height: 58px; max-width: 100%; height: auto; width: auto; object-fit: contain; opacity: .8; transition: opacity .3s; }
.marquee li:hover img { opacity: 1; }

/* ---------- Služby ---------- */
.services { background: linear-gradient(to bottom, var(--bg-2), var(--bg)); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 34px 30px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(120, 175, 255, .06), rgba(120, 175, 255, .015));
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(63, 208, 255, .14), transparent 60%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(63, 208, 255, .8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 145, 220, .55); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__num { position: absolute; top: 26px; right: 28px; font: 500 .8rem/1 var(--f-mono); color: var(--muted-2); }
.card__icon {
  display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 8px; border-radius: 18px;
  background: linear-gradient(140deg, rgba(10, 145, 220, .3), rgba(10, 145, 220, .06)); border: 1px solid var(--line-2); color: var(--cyan);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-4deg); box-shadow: var(--glow); }
.card__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__icon .fill { fill: currentColor; stroke: none; }
.card__icon .fill-soft { fill: rgba(63, 208, 255, .25); }
.card__icon .scan { animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(10px); opacity: 1; } }
.card__icon .wave { animation: wave 2s ease-out infinite; }
.card__icon .wave--2 { animation-delay: .4s; }
@keyframes wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.card__icon .draw { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 1s var(--ease) .3s; }
.card.is-in .draw { stroke-dashoffset: 0; }
.card h3 { font: 500 1.55rem/1.15 var(--f-display); }
.card p { color: var(--muted); font-size: 1rem; }
.card p b { color: #fff; font-weight: 600; }
.card--featured { background: linear-gradient(160deg, rgba(10, 145, 220, .28), rgba(10, 145, 220, .05) 60%); border-color: rgba(63, 208, 255, .35); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags li { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 .74rem/1 var(--f-mono); color: var(--muted); }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font: 600 .95rem/1 var(--f-display); color: var(--cyan); }
.card__link svg { transition: transform .4s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* ---------- Naše weby ---------- */
.works { margin-top: clamp(80px, 10vw, 130px); }
.works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 36px; }
.works__head h3 { margin-top: 12px; font: 600 clamp(2rem, 4vw, 3rem)/1 var(--f-display); letter-spacing: -.02em; }
.works__head > p { max-width: 420px; color: var(--muted); }
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; perspective: 1200px; }
.work { display: grid; gap: 16px; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.work__screen {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--bg-3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.work__screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work:hover .work__screen img { transform: scale(1.04); }
.work__meta { display: grid; gap: 2px; }
.work__meta b { font: 500 1.2rem/1.2 var(--f-display); }
.work__meta span { color: var(--muted); font-size: .92rem; }
.work__meta i { font: 500 .8rem/1.6 var(--f-mono); font-style: normal; color: var(--cyan); }

.works__self {
  display: flex; align-items: center; gap: 18px 24px; margin-top: 32px; padding: 22px 26px;
  border-radius: var(--radius); border: 1px dashed var(--line-2);
  background: linear-gradient(90deg, rgba(10, 145, 220, .12), rgba(10, 145, 220, .02));
}
.works__self-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(10, 145, 220, .18); border: 1px solid var(--line-2); color: var(--cyan); font-size: 1.3rem; }
.works__self p { flex: 1; color: var(--muted); }
.works__self b { color: #fff; font-weight: 600; }
.works__self .btn { flex: none; min-height: 48px; padding: 0 24px; }
@media (max-width: 760px) {
  .works__self { flex-direction: column; align-items: flex-start; }
  .works__self .btn { width: 100%; }
}

/* ---------- Partneři ---------- */
.partners { background: var(--bg); }
.partners__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.partners__grid a {
  display: grid; justify-items: center; gap: 4px; padding: 20px 16px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); text-align: center;
  transition: transform .5s var(--ease), border-color .3s, background .3s;
}
.partners__grid a:hover { transform: translateY(-6px); border-color: var(--blue); background: var(--panel-2); }
.partners__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: 14px; background: #fff; overflow: hidden; }
.partners__logo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.partners__grid a:hover .partners__logo img { transform: scale(1.06); }
.partners__grid b { font: 500 1.02rem/1.25 var(--f-display); }
.partners__grid span:last-child { font-size: .84rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { background: radial-gradient(90% 70% at 50% 100%, rgba(10, 145, 220, .2), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form, .info { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); background: rgba(4, 11, 26, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; outline: none; resize: vertical;
  border: 1px solid var(--line-2); background: rgba(120, 175, 255, .04); color: #fff; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 170px; }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted-2); pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: rgba(10, 145, 220, .08); box-shadow: 0 0 0 4px rgba(10, 145, 220, .18); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--cyan); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .14); }
.cf-turnstile { min-height: 65px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { max-width: 320px; font-size: .85rem; color: var(--muted-2); }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form__status { min-height: 1.4em; font-weight: 500; }
.form__status.is-ok { color: #5ee08f; }
.form__status.is-err { color: #ff8a8a; }
.form.is-sending button[type="submit"] { opacity: .65; pointer-events: none; }

.info { display: grid; gap: 24px; }
.info h3 { font: 600 1.6rem/1 var(--f-display); }
.info__list { display: grid; gap: 18px; }
.info__list li { display: flex; gap: 14px; align-items: flex-start; }
.info__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(10, 145, 220, .14); border: 1px solid var(--line-2); color: var(--cyan); }
.info__list small { display: block; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.info__list div { font-weight: 500; line-height: 1.45; }
.info__list a { transition: color .2s; }
.info__list a:hover { color: var(--cyan); }
.info__list em { display: block; font-style: normal; font-weight: 400; font-size: .9rem; color: var(--muted); }
.info__company { display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--line); }
.info__company span { font-size: .9rem; color: var(--muted); }
.info__map {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(120, 175, 255, .07) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(120, 175, 255, .07) 19px 20px), rgba(10, 145, 220, .08);
  border: 1px solid var(--line-2); transition: border-color .3s;
}
.info__map:hover { border-color: var(--blue); }
.info__map b { display: block; font: 600 1.05rem/1.2 var(--f-display); }
.info__map span:last-child { font-size: .88rem; color: var(--cyan); }
.info__radar { position: relative; flex: none; width: 46px; height: 46px; }
.info__radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--cyan); animation: radar 2.4s ease-out infinite; opacity: 0; }
.info__radar i:nth-child(2) { animation-delay: .8s; } .info__radar i:nth-child(3) { animation-delay: 1.6s; }
.info__radar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
@keyframes radar { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 44px 0; background: #020713; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.footer__logo img { height: 46px; width: auto; }
.footer__copy { font-size: .86rem; color: var(--muted-2); line-height: 1.7; }
.footer__links { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.footer__links a:not(.footer__fb) { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: #fff; }
.footer__fb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.footer__fb:hover { background: var(--blue); border-color: var(--blue); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(10, 145, 220, .85); color: #fff; box-shadow: 0 10px 30px -8px rgba(10, 145, 220, .8);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in:hover, .js .value[data-reveal].is-in:hover { transform: translateY(-6px); }
.js .partners__grid [data-reveal].is-in a:hover { transform: translateY(-6px); }

/* ==========================================================================
   Podstránky (zásady, 404)
   ========================================================================== */
.page { padding: calc(var(--header-h) + 40px) 0 90px; background: radial-gradient(80% 50% at 80% 0%, rgba(10, 145, 220, .25), transparent 60%), var(--bg); min-height: 100svh; }
.page .container { max-width: 900px; }
.page__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--cyan); font-weight: 500; }
.page h1 { font: 600 clamp(2.2rem, 5.5vw, 3.6rem)/1.05 var(--f-display); letter-spacing: -.02em; margin-bottom: 10px; }
.page h2 { font: 500 1.45rem/1.2 var(--f-display); margin: 44px 0 14px; }
.page p, .page li, .page td { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page b { color: var(--text); }
.page ul.list { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin: 12px 0; }
.page a:not(.page__back):not(.btn):not(.work) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.page .meta { font: 500 .82rem/1 var(--f-mono); color: var(--muted-2); }
.box { padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.box p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .93rem; }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); background: rgba(10, 145, 220, .08); }
.table-wrap tr:last-child td { border-bottom: 0; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); background: radial-gradient(70% 60% at 50% 40%, #0b2a5c, var(--bg)); }
.notfound b { display: block; font: 700 clamp(7rem, 28vw, 14rem)/.85 var(--f-display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font: 500 clamp(1.5rem, 4vw, 2.2rem)/1.2 var(--f-display); margin: 20px 0 10px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header__call span { display: none; }
  .header__call { padding: 10px 12px; }
  .nav a { padding: 10px 10px; letter-spacing: .08em; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header__call { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 100px var(--gutter) 40px;
    background: rgba(4, 11, 26, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav li { overflow: hidden; }
  .nav a { padding: 10px 0; font: 500 clamp(1.8rem, 8vw, 2.6rem)/1.15 var(--f-display); letter-spacing: 0; text-transform: none; color: #fff; transform: translateY(100%); transition: transform .6s var(--ease), color .2s; }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--cyan); }
  .nav.is-open a { transform: none; }
  .nav.is-open li:nth-child(2) a { transition-delay: .05s; } .nav.is-open li:nth-child(3) a { transition-delay: .1s; }
  .nav.is-open li:nth-child(4) a { transition-delay: .15s; } .nav.is-open li:nth-child(5) a { transition-delay: .2s; }
  .nav.is-open li:nth-child(6) a { transition-delay: .25s; }
  .nav .nav__phone { display: inline-flex; padding: 0; letter-spacing: 0; transform: none; font: 600 1.1rem/1 var(--f-display); color: var(--cyan); }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter a transform by z hlavičky udělaly kontejner pro fixní menu */
  body.menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; background: transparent; border-color: transparent; }

  .values { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .works__grid { grid-template-columns: 1fr; max-width: 560px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 32px; }
  .hero { padding-bottom: 110px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hide-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .marquee li { width: 170px; height: 96px; padding: 16px 22px; }
  .marquee img { max-height: 44px; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .partners__grid li:last-child { grid-column: span 2; max-width: 50%; justify-self: center; width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (hover: none) {
  .card:hover, .value:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__content > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* logo v hlavičce se ukáže až po odjetí z úvodu (v úvodu je velké logo) */
.header__logo { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.header:not(.is-scrolled) .header__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
body.menu-open .header .header__logo { opacity: 1; transform: none; pointer-events: auto; }

/* Podstránka Naše weby */
.subpage .header .header__logo { opacity: 1; transform: none; pointer-events: auto; }
.page--works .container { max-width: var(--max); }
.works--page { margin-top: 0; }
.works--page .works__head h1 { margin: 12px 0 0; font: 600 clamp(2.4rem, 6vw, 4rem)/1 var(--f-display); letter-spacing: -.02em; }
