:root {
  --orange: #d95b00;
  --orange-dark: #a84400;
  --ink: #171815;
  --text: #3e403a;
  --muted: #74776f;
  --pale: #f7f4ef;
  --pale-2: #ebe6dd;
  --line: #dfd9cf;
  --white: #fffdf9;
  --shadow: 0 18px 46px rgb(35 31 25 / 10%);
  --radius: 8px;
  --container: min(1220px, calc(100vw - 44px));
  --display: "Rajdhani", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --quote: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--orange);
  text-decoration-color: rgb(217 91 0 / 32%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

a:hover {
  color: var(--orange-dark);
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 1120px;
  font-size: clamp(2.65rem, 5.2vw, 4.65rem);
  line-height: 1.02;
}

h2 {
  max-width: 660px;
  font-size: clamp(2rem, 3.6vw, 3.55rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  line-height: 1.12;
}

::selection {
  background: rgb(217 91 0 / 18%);
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 1000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--white);
  background: var(--ink);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1220px, calc(100vw - 32px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 22px;
  border: 1px solid rgb(255 255 255 / 44%);
  border-radius: var(--radius);
  background: rgb(255 253 249 / 78%);
  box-shadow: 0 10px 36px rgb(23 24 20 / 7%);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-color: rgb(63 64 57 / 12%);
  background: rgb(255 253 249 / 94%);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 0;
}

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

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

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #5e625c;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--orange);
  background: rgb(217 91 0 / 8%);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(23 24 21 / 10%);
  border-radius: var(--radius);
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 20px;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  height: calc(100svh - 26px);
  min-height: 620px;
  max-height: 780px;
  align-items: center;
  overflow: hidden;
  padding: 112px max(24px, calc((100vw - 1220px) / 2)) 42px;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--white) 0%, rgb(255 253 249 / 98%) 18%, rgb(255 253 249 / 68%) 42%, rgb(255 253 249 / 0%) 66%),
    linear-gradient(90deg, rgb(255 253 249 / 96%) 0%, rgb(255 253 249 / 82%) 46%, rgb(255 253 249 / 26%) 100%);
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-content {
  width: min(70vw, 1120px);
  max-width: 70%;
  padding-top: 34px;
}

.hero-content h1 {
  max-width: none;
}

.eyebrow,
.section-kicker,
.contact-label {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 610px;
  margin-top: 22px;
  color: #373a34;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

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

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.button::after {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  content: "→";
  font-family: var(--body);
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.button:hover::after {
  transform: translateX(2px);
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 28px rgb(217 91 0 / 18%);
}

.button.primary::after {
  color: var(--orange);
  background: var(--white);
}

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

.button.secondary {
  color: var(--ink);
  border-color: rgb(23 24 21 / 14%);
  background: rgb(255 253 249 / 82%);
}

.button.secondary::after {
  color: var(--white);
  background: var(--ink);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 108px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: start;
}

.split > *,
.contact-row > * {
  min-width: 0;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading > p,
.contact-heading > p,
.compact-split > p,
.text-stack {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 350;
}

.text-stack {
  display: grid;
  gap: 18px;
  padding-top: 30px;
}

.profile-quote {
  position: relative;
  max-width: 500px;
  padding: 0;
  border: 0;
  color: #4f524b;
  font-family: var(--quote);
  font-size: clamp(1.28rem, 1.55vw, 1.65rem);
  font-style: italic;
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.profile-quote::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--orange);
  content: "";
}

.profile-quote p {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.section-heading > p,
.contact-heading > p,
.compact-split > p {
  padding-top: 30px;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 26px;
  margin-top: 46px;
}

.value-row span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-left: 18px;
  color: #4f524b;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.value-row span::before {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.services,
.timeline-section,
.contact {
  width: 100%;
  padding-right: max(22px, calc((100vw - 1220px) / 2));
  padding-left: max(22px, calc((100vw - 1220px) / 2));
  background: var(--pale);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  min-height: 318px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgb(83 84 76 / 13%);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgb(23 24 20 / 4%);
}

.service-card.featured {
  color: rgb(255 253 249 / 78%);
  background: var(--ink);
}

.service-card.featured h3,
.service-card.featured a {
  color: var(--white);
}

.service-card.muted {
  background: var(--pale-2);
}

.logo-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  overflow: hidden;
}

.logo-heading img {
  width: auto;
  max-width: 190px;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.logo-heading img[src$="3mk.svg"] {
  filter: grayscale(1) brightness(0);
}

.logo-heading img[alt="Ajax"] {
  max-width: 220px;
  transform: scale(2.55);
}

.logo-heading img[alt="BlackBerry"] {
  max-width: 242px;
  filter: grayscale(1) brightness(0);
  opacity: 0.9;
  transform: scale(1.28);
  transform-origin: left center;
}

.service-card p {
  margin-top: 16px;
  color: inherit;
}

.service-card a {
  margin-top: auto;
  padding-top: 26px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 600;
  text-decoration: none;
}

.service-card a::after {
  content: " →";
}

.brands {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.brands .section-heading {
  width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.logo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--white);
}

.logo-carousel::before,
.logo-carousel::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: min(150px, 18vw);
  height: 100%;
  pointer-events: none;
  content: "";
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, rgb(255 253 249 / 0%) 100%);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, rgb(255 253 249 / 0%) 100%);
}

.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 54px;
  padding: 20px 54px 54px;
  animation: logoRail 38s linear infinite;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-mark {
  display: inline-grid;
  width: 136px;
  height: 62px;
  align-items: center;
  justify-content: center;
  opacity: 0.48;
  overflow: hidden;
}

.logo-mark.logo-wide {
  width: 188px;
}

.logo-mark img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.logo-mark img[src$="3mk.svg"],
.logo-mark img[src$="sony.svg"] {
  filter: grayscale(1) brightness(0);
}

.logo-mark img[src$="ajax.avif"] {
  transform: scale(2.7);
}

.logo-mark img[src$="blackberry.webp"] {
  filter: grayscale(1) brightness(0);
}

@keyframes logoRail {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(83 84 76 / 14%);
  border-radius: var(--radius);
  background: rgb(83 84 76 / 14%);
}

.timeline article {
  min-height: 245px;
  padding: 28px;
  background: var(--white);
}

.timeline time {
  display: block;
  margin-bottom: 48px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.timeline p {
  margin-top: 12px;
  color: var(--muted);
}

blockquote {
  margin: 18px 0 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--orange);
}

.wide-quote {
  max-width: 820px;
  margin: 72px auto 0;
  padding: 0;
  border-top: 0;
  text-align: center;
}

.wide-quote p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: var(--ink);
  font-family: var(--quote);
  font-size: clamp(1.15rem, 2.1vw, 2.05rem);
  font-style: italic;
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.32;
}

.wide-quote cite {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

blockquote p {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.18;
}

blockquote cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.careers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compact-split {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: center;
}

.contact-list {
  border-top: 1px solid rgb(83 84 76 / 18%);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 6vw, 82px);
  padding: 30px 0;
  border-bottom: 1px solid rgb(83 84 76 / 18%);
}

.contact-row h3 {
  max-width: 420px;
}

.contact-detail,
.contact-people {
  display: grid;
  gap: 9px;
  color: var(--muted);
}

.contact-detail a,
.contact-people a {
  color: var(--orange);
  font-weight: 350;
}

.contact-people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-people p {
  display: grid;
  gap: 4px;
}

.contact-people strong {
  color: var(--ink);
  font-weight: 650;
}

.site-footer {
  padding: 54px max(22px, calc((100vw - 1220px) / 2)) 60px;
  background: var(--ink);
  color: rgb(255 253 249 / 68%);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgb(255 253 249 / 13%);
}

.site-footer img {
  width: 134px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal {
  padding-top: 34px;
}

.footer-legal h2 {
  max-width: none;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.footer-legal dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 48px;
  margin: 0;
}

.footer-legal dt {
  color: rgb(255 253 249 / 44%);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-legal dd {
  margin: 4px 0 0;
  color: rgb(255 253 249 / 76%);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

  .logo-track {
    animation: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 12px;
    width: calc(100vw - 24px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 86px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgb(83 84 76 / 14%);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    min-height: 48px;
    border-radius: var(--radius);
  }

  .hero {
    height: auto;
    min-height: 680px;
    max-height: none;
    padding-top: 132px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, var(--white) 0%, rgb(255 253 249 / 96%) 15%, rgb(255 253 249 / 62%) 42%, rgb(255 253 249 / 28%) 100%),
      linear-gradient(90deg, rgb(255 253 249 / 96%) 0%, rgb(255 253 249 / 22%) 100%);
  }

  .hero-media img {
    object-position: 64% top;
  }

  .split,
  .compact-split,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .timeline,
  .footer-legal dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-people {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1120px, calc(100vw - 28px));
  }

  h1 {
    max-width: 390px;
    font-size: clamp(2.15rem, 10.5vw, 2.9rem);
    line-height: 1.04;
  }

  h2 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(1.72rem, 7.4vw, 2.08rem);
    line-height: 1.08;
  }

  .brand img {
    width: 140px;
  }

  .site-header {
    left: 12px;
    width: calc(100% - 24px);
    max-width: 366px;
    transform: none;
  }

  .hero {
    min-height: 620px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-content {
    width: 100%;
    max-width: 390px;
    padding-top: 6px;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .section,
  .services,
  .timeline-section,
  .contact {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .service-grid,
  .timeline,
  .footer-legal dl {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline article {
    min-height: auto;
  }

  .logo-track {
    gap: 30px;
    padding: 26px 28px;
    animation-duration: 28s;
  }

  .logo-mark {
    width: 108px;
    height: 54px;
  }

  .split > p,
  .text-stack,
  .section-heading > p,
  .contact-heading > p,
  .compact-split > p {
    padding-top: 0;
  }

  .profile-quote {
    max-width: 100%;
    font-size: clamp(1.22rem, 6vw, 1.42rem);
    line-height: 1.18;
  }

  .value-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .value-row p {
    grid-column: 1 / -1;
  }

  .wide-quote {
    max-width: 100%;
    margin-top: 52px;
  }

  .wide-quote p {
    font-size: clamp(1rem, 4.8vw, 1.45rem);
    line-height: 1.34;
  }

  .timeline time {
    margin-bottom: 26px;
  }

  .contact-row {
    padding: 26px 0;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* Upravy 2026-06-10 */
.profile-quote {
  margin-top: 0;
}

.profile-quote p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

@media (max-width: 640px) {
  .wide-quote p {
    max-width: 100%;
  }
}