/* WiseBit – IT správa pro firmy */
:root {
  --navy: #003049;
  --navy-deep: #001C2B;
  --navy-mid: #00263A;
  --line-dark: #0E3A52;
  --line-dark-2: #1D4E68;
  --ink: #0B1F2A;
  --text: #33505F;
  --muted: #4A6170;
  --muted-2: #8FA8B6;
  --muted-3: #8FA0A9;
  --ground: #F3F5F6;
  --white: #FFFFFF;
  --border: #D5DCE0;
  --border-soft: #E3E8EB;
  --border-input: #A9B7BF;
  --red: #C8102E;
  --red-bright: #ED1B2F;
  --green: #3DDC84;
  --comment: #6A9955;
  --term-text: #C9D6DD;
  --sub-light: #B9CBD5;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
section[id] { scroll-margin-top: 16px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 16px; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { max-width: 1200px; margin: 0 auto; }
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--red); color: var(--white); border: 0; }
.btn-primary:hover { color: var(--white); filter: brightness(0.92); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-ghost {
  border: 2px solid var(--navy); color: var(--navy); padding: 14px 26px; font-size: 17px;
  background: transparent; transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Code tag (01 // ...) */
.tag {
  align-self: flex-start; display: inline-flex; align-items: stretch;
  font-family: var(--mono); font-size: 14px; line-height: 1;
  background: var(--navy-deep); border-radius: 4px; overflow: hidden;
}
.tag__num { padding: 9px 10px; background: var(--navy-mid); color: #4A6878; border-right: 1px solid var(--line-dark); }
.tag__label { padding: 9px 12px; color: var(--comment); }
.tag--lg { font-size: 15px; }
.tag--lg .tag__num { padding: 11px 12px; }
.tag--lg .tag__label { padding: 11px 14px; display: flex; align-items: center; }
.tag--onnavy { border: 1px solid var(--line-dark-2); }
.tag--onnavy .tag__num { border-right-color: var(--line-dark-2); }
.tag--ondeep { background: var(--navy-mid); border: 1px solid var(--line-dark-2); }
.tag--ondeep .tag__num { background: var(--navy-deep); border-right-color: var(--line-dark-2); }

.caret { display: inline-block; width: 9px; height: 17px; background: var(--red-bright); margin-left: 5px; }
.blink { animation: wbblink 1.1s steps(1) infinite; }
@keyframes wbblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* Headings */
.h1, .h2 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 900; color: var(--navy); }
.h1 { font-size: clamp(44px, 9vw, 68px); line-height: 1.0; letter-spacing: -0.02em; }
.h2 { font-size: clamp(34px, 6.4vw, 48px); line-height: 1.05; }
.h2--sm { font-size: clamp(32px, 6vw, 44px); }
.h3 { margin: 0; font-family: var(--display); font-stretch: 105%; font-weight: 800; color: var(--navy); }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text); }

/* Top strip */
.topstrip { background: var(--navy-deep); color: var(--term-text); font-family: var(--mono); font-size: 13px; }
.topstrip .container {
  padding: 10px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.topstrip a { color: inherit; text-decoration: none; }
.topstrip a:hover { color: var(--white); }
.status-dot { display: flex; align-items: center; gap: 8px; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Header / nav */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.nav {
  padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.nav a { text-decoration: none; }
.nav__logo { display: flex; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 500; font-size: 16px; }
.nav__links a:not(.btn) { color: var(--navy); padding: 12px 0; }
.nav__links a:not(.btn):hover { color: var(--red); }
.nav__links .btn { padding: 12px 20px; }

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--border); }
.hero .container { padding: 88px 24px 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__accent { color: var(--red-bright); }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--text); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__checks {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 14px; color: var(--text);
}

/* Terminal */
.term { background: var(--navy-deep); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 28, 43, 0.25); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--navy-mid); border-bottom: 1px solid var(--line-dark); }
.term__dot { width: 11px; height: 11px; border-radius: 50%; background: #4A6878; flex-shrink: 0; }
.term__dot--red { background: var(--red-bright); }
.term__title { margin-left: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__term { flex: 1 1 420px; min-width: 0; }
.status { padding: 22px 22px 26px; font-family: var(--mono); font-size: 14px; line-height: 2; color: var(--term-text); }
.status__row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line-dark); }
.status__kind { color: var(--muted-2); }
.status__ok { color: var(--green); font-weight: 600; white-space: nowrap; }
.status__meta { color: var(--muted-2); }
.status__meta:first-of-type { margin-top: 14px; }
.status__meta b { color: var(--white); font-weight: 400; }
.status__cursor { display: inline-block; width: 9px; height: 16px; background: var(--red-bright); margin-left: 6px; vertical-align: -2px; }

/* Sections */
.section { padding: 104px 24px; }
.section__inner { display: flex; flex-direction: column; gap: 48px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.section__title { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section__head .lead { max-width: 420px; }

/* Services */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; transition: border-color .15s; }
.card:hover { border-color: var(--navy); }
.service { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__icon { width: 56px; height: 56px; border-radius: 6px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; }
.service__num { font-family: var(--mono); font-size: 15px; color: var(--muted-3); font-weight: 600; }
.service .h3 { font-size: 23px; line-height: 1.2; }
.service p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.service ul {
  margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--ink);
}
.service li { display: flex; gap: 10px; }
.service li::before { content: '›'; color: var(--red); }

/* Process */
.process { background: var(--navy); color: var(--white); }
.process .section__inner { gap: 56px; }
.process .section__title { max-width: 700px; }
.process .h2 { color: var(--white); }
.process__body { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.process__term { flex: 1.5 1 520px; min-width: 0; border: 1px solid var(--line-dark-2); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; }
.process__term .term__bar { border-bottom-color: var(--line-dark-2); }
.shell { padding: 22px 24px 26px; min-height: 440px; font-family: var(--mono); font-size: 15px; line-height: 28px; flex-grow: 1; }
.shell__line { white-space: pre-wrap; word-break: break-word; min-height: 28px; color: #D4D4D4; }
.shell__user { color: var(--green); }
.shell__path { color: #569CD6; }
.shell__out { color: var(--sub-light); }
.shell__ok { color: var(--green); }
.shell__caret { display: inline-block; width: 9px; height: 18px; background: var(--red-bright); margin-left: 2px; vertical-align: -3px; }

.steps { flex: 1 1 340px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: 6px;
  background: transparent; border: 1px solid var(--line-dark-2); transition: background .3s, border-color .3s;
}
.step__badge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 4px; border: 2px solid #4A7590; color: #4A7590;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 15px;
}
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step .h3 { font-size: 21px; color: var(--muted-2); }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-2); }
.step.is-done .step__badge { border-color: var(--green); color: var(--green); }
.step.is-done .h3, .step.is-current .h3 { color: var(--white); }
.step.is-current { background: var(--navy-mid); border-color: var(--red-bright); }
.step.is-current .step__badge { border-color: #FF6B78; color: #FF6B78; }
.step.is-current p { color: #D7E2E8; }

/* Principles */
.principles { background: var(--white); border-bottom: 1px solid var(--border); }
.principles .container { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.principles__intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.principles__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 36px 40px; }
.principle { display: flex; flex-direction: column; gap: 10px; }
.principle::before { content: ''; width: 32px; height: 4px; background: var(--red-bright); }
.principle .h3 { font-size: 20px; }
.principle p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }

/* References */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.logos a {
  height: 140px; background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; padding: 24px; transition: border-color .15s;
}
.logos a:hover { border-color: var(--navy); }
.logos img { width: auto; max-width: 100%; }
.logos li:nth-child(1) img { height: 44px; }
.logos li:nth-child(2) img { height: 56px; }
.logos li:nth-child(3) img { height: 36px; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.case { overflow: hidden; display: flex; flex-direction: column; }
.case__head { background: var(--navy); color: var(--white); padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case__head > div { display: flex; flex-direction: column; gap: 4px; }
.case__head .h3 { font-size: 21px; color: var(--white); }
.case__meta { font-family: var(--mono); font-size: 13px; color: var(--sub-light); }
.case__tag { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--red-bright); color: var(--white); padding: 5px 10px; border-radius: 3px; white-space: nowrap; }
.case__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.case__block { display: flex; flex-direction: column; gap: 6px; }
.case__label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--red); letter-spacing: 0.04em; }
.case__block p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.case blockquote { margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }
.case blockquote p { margin: 0; font-size: 16px; line-height: 1.55; font-style: italic; color: var(--ink); }
.case blockquote footer { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Contact */
.contact { background: var(--navy-deep); color: var(--white); }
.contact .container { display: flex; flex-wrap: wrap; gap: 56px 72px; }
.contact__intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.contact .h2 { color: var(--white); }
.contact .lead { color: var(--sub-light); }
.contact__list { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 0; font-family: var(--mono); font-size: 15px; }
.contact__list div { display: flex; flex-direction: column; gap: 2px; }
.contact__list dt { color: var(--muted-2); font-size: 13px; }
.contact__list dd { margin: 0; }
.contact__list a { color: var(--white); text-decoration: none; }
.contact__list a:hover { color: var(--red-bright); }

.form {
  flex: 1.3 1 460px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 8px; padding: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px 20px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  border: 1px solid var(--border-input); border-radius: 4px; font: inherit; font-weight: 400; font-size: 16px;
  color: var(--ink); background: var(--white); width: 100%;
}
.form input, .form select { height: 48px; padding: 0 14px; }
.form select { padding: 0 12px; }
.form textarea { padding: 12px 14px; resize: vertical; }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--red); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { font-size: 15px; font-weight: 600; margin: 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #12703F; }
.form__status.is-err { color: var(--red); }
.form button[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--white); border-top: 4px solid var(--red-bright); }
.site-footer .container { padding: 40px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer img { height: 36px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.footer-nav a { color: var(--text); padding: 12px 0; text-decoration: none; }
.footer-nav a:hover { color: var(--red); }
.copyright { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Phone */
@media (max-width: 640px) {
  .hero .container { padding: 56px 20px 64px; gap: 40px; }
  .section { padding: 72px 20px; }
  .topstrip .container, .nav, .site-footer .container { padding-left: 20px; padding-right: 20px; }
  .nav__links { gap: 0 20px; }
  .hero__lead { font-size: 18px; }
  .form { padding: 24px 20px; }
  .shell { min-height: 0; font-size: 13px; line-height: 24px; padding: 18px 16px 22px; }
  .shell__line { min-height: 24px; }
  .status { font-size: 13px; padding: 18px 16px 22px; }
  .case__head, .case__body { padding-left: 22px; padding-right: 22px; }
}
