/* Písma uložená přímo u webu (licence OFL ve složce fonts) */
@font-face { font-family: "Bangers"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bangers-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bangers"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bangers-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: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/instrument-sans-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; }

:root {
  --bg: #0e0e0e;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --panel: #1a1a1a;
  --line: #2a2a2a;
  --glass: rgb(30 30 30 / .75);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font: 400 1rem/1.55 "Instrument Sans", "Segoe UI", sans-serif; background: var(--bg); color: var(--fg); }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }

/* Floating navigation */
.bar { position: fixed; z-index: 10; inset: 1rem 0 auto; display: flex; justify-content: center; align-items: center; gap: .5rem; padding-inline: .5rem; }
.pill { background: var(--glass); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgb(0 0 0 / .1); border: 1px solid var(--line); }
.pill { display: flex; gap: .15rem; padding: .3rem; border-radius: 99px; }
.pill a { padding: .45rem .9rem; border-radius: 99px; color: var(--muted); font-size: .95rem; }
.pill a:hover, .pill a.active { background: var(--bg); color: var(--fg); }

.button { display: inline-block; padding: .75rem 1.4rem; border-radius: 99px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); font-weight: 500; transition: transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.ghost { background: var(--bg); color: var(--fg); border-color: var(--line); }

/* Hero */
.hero { position: relative; min-height: max(100svh, 40rem); display: grid; grid-template: "title art" 1fr "intro art" auto / 1fr 1fr; column-gap: 2rem; padding: 6rem clamp(1rem, 6vw, 6rem) 0; overflow: hidden; color: #fff; background: linear-gradient(#4b2a6e 0%, #a4508b 38%, #f27d72 68%, #ffc46b 100%); }
.hero h1 { grid-area: title; align-self: end; margin-bottom: 1.5rem; }
.hero .art { grid-area: art; align-self: end; }
.hero .intro { grid-area: intro; align-self: start; padding-bottom: 4rem; max-width: 30rem; text-shadow: 0 1px 8px rgb(30 10 45 / .8); }
.hero .muted { color: #ffe3b0; }
.hero .button { background: #ffb02e; border-color: #ffb02e; color: #111; text-shadow: none; }
.hero .button.ghost { background: rgb(40 15 60 / .55); border-color: rgb(255 255 255 / .6); color: #fff; }
.hero > .city { position: absolute; left: 0; bottom: 0; width: 100%; height: 45%; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > :not(canvas) { position: relative; }
h1 { font: 400 clamp(3.2rem, 7.5vw, 7rem)/.98 Bangers, Impact, sans-serif; letter-spacing: .02em; transform: rotate(-3deg); text-shadow: .07em .07em 0 #2a1040; max-width: 8ch; }
.intro { font-size: 1.15rem; display: grid; gap: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; font-size: 1rem; }
/* Komiksový hrdina */
.art { display: flex; flex-direction: column; align-items: center; }
.superhero { width: 100%; max-width: min(36rem, 72svh); margin-bottom: -.5rem; background: none; border: 0; cursor: pointer; }
.superhero svg { display: block; width: 100%; overflow: visible; stroke: #111; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.bubble { position: relative; z-index: 1; max-width: 20rem; min-height: 4.6rem; display: grid; place-items: center; padding: .6rem 1.2rem; background: #fff; color: #111; border: 3px solid #111; border-radius: 50% / 40%; box-shadow: 5px 5px 0 #111; font: 400 1.35rem/1.15 Bangers, Impact, sans-serif; letter-spacing: .03em; text-align: center; }
.bubble::after { content: ""; position: absolute; left: 45%; bottom: -13px; width: 20px; height: 20px; background: #fff; border: solid #111; border-width: 0 3px 3px 0; transform: rotate(45deg) skew(10deg, 10deg); }

.brand { color: #fff; position: absolute; z-index: 9;top: 1.25rem; left: clamp(1rem, 3vw, 2rem); display: flex; align-items: center; gap: .6rem; font: 400 2.1rem/1 Bangers, Impact, sans-serif; letter-spacing: .04em; }
.mark { width: 4.2rem; height: auto; overflow: visible; }
.wordmark-top { display: inline-block; transform: rotate(-5deg); text-shadow: 2px 2px 0 #12081f, 4px 4px 0 #12081f; }
.wordmark-top b { font-weight: 400; color: #ffd21f; }

.art { position: relative; }
.pow { position: absolute; top: 28%; left: 4%; z-index: 2; opacity: 0; pointer-events: none; font: 400 3.5rem/1 Bangers, Impact, sans-serif; color: #ffd21f; -webkit-text-stroke: 2px #12081f; text-shadow: 5px 5px 0 #e5323b; }

/* Large statements */
.statement { padding-block: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); }
.statement p { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }

h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1.5rem; }
#sluzby, #technologie { padding-bottom: clamp(4rem, 8vw, 7rem); }

/* Service panels */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.visual, .text { border-radius: 24px; background: var(--panel); }
.visual { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 26rem; padding: 1.75rem; background: #141414; color: #fff; border: 1px solid var(--line); }
.visual h3 { font-size: 1.6rem; }
.text { padding: clamp(1.5rem, 3vw, 2.25rem); }
.big { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.25; margin-bottom: 1.75rem; }
dt { font-weight: 600; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
dd { color: var(--muted); }

.net { width: 100%; margin-block: auto; overflow: visible; }
.net-lines path { stroke: #fff; stroke-width: 1.2; opacity: .35; }
.net-nodes circle { fill: #ffd21f; }
.steps { display: grid; gap: .6rem; margin-block: auto; }
.steps li { width: 60%; padding: .8rem 1.1rem; border-radius: 14px; background: #fff; color: #111; font-weight: 500; }
.steps li:nth-child(2) { margin-left: 13%; }
.steps li:nth-child(3) { margin-left: 26%; }
.steps li:nth-child(4) { margin-left: 40%; }
pre { margin-block: auto; padding: 1.25rem; border-radius: 16px; background: #fff; color: #111; font: .9rem/1.8 Consolas, monospace; overflow-x: auto; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: .75rem; min-height: 14rem; }
.bars i { flex: 1; height: var(--h); border-radius: 10px; background: #fff; transform-origin: bottom; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tiles li { padding: 2.5rem 1.5rem; border-radius: 24px; background: var(--panel); font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 500; }

/* Contact and footer */
.contact { padding: clamp(2rem, 6vw, 4.5rem); border-radius: 32px; background: #141414; color: #fff; border: 1px solid var(--line); }
.contact h2 { max-width: 18ch; }
.contact .invert { background: #fff; border-color: #fff; color: #111; margin-block: 2rem 1rem; }
footer { padding-top: 4rem; overflow: hidden; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.wordmark { font-size: 20.5vw; font-weight: 600; letter-spacing: -.05em; line-height: .8; text-align: center; white-space: nowrap; color: var(--panel); margin-top: 3rem; padding-bottom: 3vw; }

@media (min-width: 601px) and (max-width: 1000px) {
  .brand span { display: none; }
  .bar { padding-left: 5rem; }
}
@media (max-width: 860px) {
  .hero { grid-template: "title" auto "art" auto "intro" auto / 1fr; align-content: start; text-align: center; row-gap: 1rem; }
  .hero h1 { justify-self: center; margin-bottom: 0; }
  .hero .intro { justify-self: center; }
  .superhero { max-width: 20rem; margin-bottom: 0; }
  .actions { justify-content: center; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .visual { min-height: 20rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* Navigace dolů, ať se na mobil vejde */
  .bar { inset: auto 0 .75rem; gap: .35rem; }
  .pill a { padding: .4rem .55rem; font-size: .85rem; }
  .pill a[href="#uvod"], .pill a[href="#technologie"] { display: none; }
  .bar > .button { padding: .6rem .9rem; font-size: .85rem; }
    pre { font-size: .75rem; padding: 1rem .75rem; }
  .hero { padding-top: 5rem; }
  .hero .intro { padding-bottom: 6rem; }
  footer { padding-bottom: 4.5rem; }
}

/* ===== Komiksový styl pro obsah pod hero (stačí smazat tento blok a vrátí se černobílá verze) ===== */
:root {
  --bg: #24123d;
  --fg: #ffffff;
  --muted: #d9c9ee;
  --panel: #3b1c4f;
  --line: #12081f;
  --glass: rgb(36 18 61 / .85);
  --ink: #12081f;
  --paper: #fff4de;
  --yellow: #ffd21f;
  --coral: #f27d72;
  --blue: #2457d6;
}
/* Navazuje na barvu siluety města v hero */
main { background: linear-gradient(#3b1c4f, #24123d 18%, #4b2a6e 50%, #24123d 82%); }
footer { background: #24123d; }

h2, .visual h3 { font-family: Bangers, Impact, sans-serif; font-weight: 400; letter-spacing: .03em; }
h2 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); transform: rotate(-2deg); text-shadow: .07em .07em 0 var(--ink); }
.visual h3 { font-size: 2.4rem; text-shadow: 3px 3px 0 var(--ink); }

.button { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.pill { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.pill a.active, .pill a:hover { background: var(--yellow); color: var(--ink); }

/* Velké texty jako popisky v komiksu */
.statement { border-top: 0; }
.statement p { text-shadow: 3px 3px 0 var(--ink); }

/* Panely */
.visual, .text, .tiles li, .refs li, .contact { border: 4px solid var(--ink); border-radius: 14px; box-shadow: 9px 9px 0 var(--ink); }
.feature { gap: 1.75rem; margin-bottom: 2rem; }
.text { background: var(--paper); color: var(--ink); }
.text dt { border-top: 2px dashed rgb(18 8 31 / .3); }
.text dd { color: #4a3a60; }
.visual { background: radial-gradient(rgb(255 255 255 / .16) 2px, transparent 2.5px) 0 0 / 14px 14px, linear-gradient(160deg, #4b2a6e, #a4508b 55%, #f27d72); }
.feature:nth-of-type(even) .visual { background: radial-gradient(rgb(255 255 255 / .16) 2px, transparent 2.5px) 0 0 / 14px 14px, linear-gradient(160deg, #17358f, #2457d6 60%, #a4508b); }
.steps li, pre, .bars i { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bars i { background: var(--yellow); }
.net-lines path { opacity: .6; }
.net-nodes circle { stroke: var(--ink); stroke-width: 4; }

/* Technologie */
.tiles { gap: 1.5rem; }
.tiles li { font: 400 clamp(1.5rem, 3.4vw, 2.6rem)/1.1 Bangers, Impact, sans-serif; letter-spacing: .03em; background: var(--paper); color: var(--ink); }
.tiles li:nth-child(3n+1) { background: var(--yellow); transform: rotate(-1.5deg); }
.tiles li:nth-child(3n+2) { background: var(--coral); transform: rotate(1deg); }
.tiles li:nth-child(3n) { background: var(--blue); color: #fff; transform: rotate(-.5deg); }

/* Kontakt a patička */
.contact { background: radial-gradient(rgb(255 255 255 / .18) 2px, transparent 2.5px) 0 0 / 14px 14px, linear-gradient(#4b2a6e, #a4508b 45%, #f27d72 80%, #ffc46b); text-shadow: 0 1px 8px rgb(30 10 45 / .8); }
.contact .invert { background: var(--yellow); border-color: var(--ink); color: var(--ink); text-shadow: none; }
.wordmark { font-family: Bangers, Impact, sans-serif; font-weight: 400; letter-spacing: .01em; color: #3b1c4f; text-shadow: .03em .03em 0 var(--ink); }


/* Hero na širokých obrazovkách: text a hrdina drží pohromadě uprostřed */
@media (min-width: 861px) {
  .hero { grid-template-columns: minmax(0, 31rem) minmax(0, 40rem); grid-template-rows: 1fr 1fr; justify-content: center; column-gap: clamp(0rem, 2vw, 2rem); padding-inline: 2rem; }
  .hero .intro { padding-bottom: 2rem; }
  .superhero { max-width: min(40rem, 78svh); }
}
@media (min-width: 1500px) and (min-height: 850px) {
  .hero { grid-template-columns: minmax(0, 38rem) minmax(0, 52rem); }
  .hero h1 { font-size: 9.5rem; }
  .hero .intro { max-width: 36rem; font-size: 1.4rem; }
  .superhero { max-width: min(52rem, 80svh); }
  .bubble { font-size: 1.8rem; max-width: 26rem; }
}

/* Údaje o firmě: záměrně drobné a nenápadné */
.company h2 { margin-bottom: .9rem; font: 600 1rem/1.4 "Instrument Sans", "Segoe UI", sans-serif; letter-spacing: normal; transform: none; text-shadow: none; }
.company dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem 1.5rem; padding-top: .9rem; border-top: 1px solid rgb(255 255 255 / .25); font-size: .9rem; }
.company .wide { grid-column: span 2; }
.company dt { margin: 0; padding: 0; border: 0; color: rgb(255 255 255 / .7); font-size: .8rem; font-weight: 400; }
.company dd { color: #fff; font-size: inherit; font-weight: 400; }
@media (max-width: 860px) { .company dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .company dl { grid-template-columns: 1fr; } .company .wide { grid-column: auto; } }
.contact .invert { max-width: 100%; overflow-wrap: anywhere; margin-bottom: 0; }

/* Reference */
#reference { padding-bottom: clamp(4rem, 8vw, 6rem); }
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.refs li { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); overflow: hidden; }
.refs h3 { min-height: 7rem; display: grid; place-items: center; padding: 1rem; text-align: center; font: 400 2.2rem/1.05 Bangers, Impact, sans-serif; letter-spacing: .03em; color: #fff; text-shadow: 3px 3px 0 var(--ink); border-bottom: 4px solid var(--ink); background: radial-gradient(rgb(255 255 255 / .18) 2px, transparent 2.5px) 0 0 / 14px 14px, linear-gradient(160deg, #4b2a6e, #a4508b 55%, #f27d72); }
.refs li:nth-child(even) h3 { background: radial-gradient(rgb(255 255 255 / .18) 2px, transparent 2.5px) 0 0 / 14px 14px, linear-gradient(160deg, #17358f, #2457d6 60%, #a4508b); }
.refs p { padding: 1rem 1.2rem; font-weight: 600; text-align: center; }
@media (max-width: 860px) { .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .refs { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 860px) { .pill a[href="#uvod"] { display: none; } .pill a { padding-inline: .6rem; font-size: .85rem; } }

/* Kontakt je před údaji o firmě */
#kontakt { padding-bottom: clamp(4rem, 8vw, 6rem); }
.company { padding-bottom: 1rem; }
