@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/schibsted-grotesk-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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/schibsted-grotesk-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 {
  color-scheme: light;
  --page: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #eef2f4;
  --ink: #26323a;
  --muted: #5b6870;
  --line: #d9e0e5;
  --primary-dark: #26323a;
  --accent: #ff881a;
  --accent-dark: #b04a0c;
  --on-dark-muted: #c3ccd2;
  --shadow: 0 18px 48px rgba(38, 50, 58, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) var(--page);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 25%, transparent);
  touch-action: manipulation;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 30;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--primary-dark);
  color: var(--surface);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Hlavička */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 144px;
  height: 43px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--surface-muted);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: var(--ink);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  background: var(--primary-dark);
  color: var(--surface);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Tlačítka a odkazy */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.button:hover {
  background: var(--primary-dark);
  color: var(--surface);
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent-dark);
}

/* Sekce */

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 92px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* Úvod a reference */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
  padding-top: 80px;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-facts dd {
  margin-left: 0;
  font-weight: 700;
}

.references {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

.references h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.references p {
  margin-bottom: 24px;
  color: var(--muted);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.reference-grid li {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.reference-grid li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.reference-grid li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.reference-grid img {
  max-width: min(150px, 100%);
  max-height: 64px;
  object-fit: contain;
}

.reference-grid .reference-okin img {
  max-width: min(180px, 100%);
}

/* O společnosti */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
}

.intro h2 {
  margin-bottom: 0;
}

.intro-copy {
  max-width: 62ch;
  padding-top: 6px;
}

.intro-copy p,
.section-heading p,
.split-heading > p,
.service-list p,
.benefit-list p,
.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.intro-copy p + p {
  margin-top: 1em;
}

/* Vývoj softwaru */

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  max-width: 62ch;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px 56px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.service-list p {
  max-width: 62ch;
}

/* Způsob práce */

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: krok;
}

.timeline li {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  counter-increment: krok;
}

.timeline li::before {
  content: counter(krok);
  display: block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Principy */

.benefits h2 {
  max-width: 760px;
  margin-bottom: 40px;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
}

/* Kontakt */

.contact {
  margin-bottom: 56px;
  padding: 72px 0;
  background: var(--primary-dark);
  color: var(--surface);
  scroll-margin-top: 76px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.contact h2 {
  color: var(--surface);
}

.contact-copy p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.contact-channels {
  display: grid;
  gap: 20px;
}

.contact-channel {
  display: grid;
  gap: 2px;
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-channel span {
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.contact-channel:hover {
  color: var(--accent);
}

.contact a:focus-visible {
  outline-color: var(--accent);
}

/* Patička */

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(180px, 0.85fr) minmax(180px, 0.85fr) minmax(220px, 1.15fr);
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto 34px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 4px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-brand img {
  width: 144px;
  height: 43px;
}

.footer-brand p {
  max-width: 280px;
  margin-bottom: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

.footer-legal p:last-child {
  margin-top: 14px;
  font-size: 0.875rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
  }

  .hero,
  .intro,
  .split-heading,
  .service-list article,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero,
  .intro,
  .split-heading {
    gap: 28px;
  }

  .timeline,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand img {
    width: 132px;
    height: auto;
  }

  .section,
  .site-footer,
  .contact-inner {
    width: min(100% - 24px, var(--max));
  }

  .section,
  .contact {
    padding: 56px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-facts,
  .timeline,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .references {
    padding: 20px;
  }

  .reference-grid li {
    min-height: 96px;
    padding: 14px;
  }
}
