:root {
  --bg: #ffffff;
  --text: #111114;
  --muted: #676b72;
  --line: #e2e3e6;
  --soft: #f6f6f2;
  --dark: #0d0d10;
  --accent: #d94732;
  --green: #127360;
  --container: min(calc(100vw - 1.25rem), 1160px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: 4.25rem;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
p,
a,
span {
  overflow-wrap: break-word;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  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 {
  position: fixed;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #fff;
  border: 1px solid var(--line);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.75rem;
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 0.15rem;
  line-height: 1.05;
}

.brand__name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand__tagline {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 1;
  padding-left: 0.55rem;
}

.desktop-nav {
  display: none;
}

.nav-button {
  padding: 0.62rem 0.82rem;
  border: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
}

.hero--compact {
  min-height: 84svh;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.06));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 7rem 0 2.2rem;
}

.hero h1 {
  max-width: 15ch;
  margin: 0.9rem 0 0;
  font-size: clamp(2.7rem, 13vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.hero__text {
  max-width: 42ch;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.55;
}


.hero-spacer {
  height: 4.5rem;
  background: var(--bg);
}

.topic-strip {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar {
  display: none;
}

.topic-strip a {
  flex: 0 0 auto;
  padding: 0.6rem 0.72rem;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.trust-strip {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.trust-strip__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 1.15rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-router {
  width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 0 1rem;
}

.router-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.router-head h2 {
  max-width: 13ch;
}

.category-list {
  display: grid;
  gap: 0.75rem;
}

.category-card {
  position: relative;
  display: grid;
  min-height: min(74svh, 38rem);
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.category-card__shade {
  display: none;
}

.category-card__copy {
  display: grid;
  align-self: end;
  gap: 0.75rem;
  padding: 1rem;
}

.category-list .section-number {
  grid-column: 1 / -1;
  margin: 3rem 0 0.2rem 0;
  color: var(--accent);
  font-size: clamp(1.2rem, 4vw, 1.44rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-list .section-number:first-of-type {
  margin-top: 0;
}

.category-card__copy strong {
  max-width: 12ch;
  font-size: clamp(2rem, 10vw, 3.6rem);
  font-weight: 950;
  line-height: 0.98;
}

.category-card__copy > span:last-child {
  justify-self: end;
  width: fit-content;
  border-bottom: 2px solid currentColor;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 950;
}

/* Přepínač pro karty se světlým pozadím (např. Produkty) */
.category-card--light .category-card__copy strong,
.category-card--light .category-card__copy > span:last-child {
  color: var(--text);
  border-bottom-color: var(--text);
}

.category-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.detail-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero--light img {
  object-fit: contain;
  padding: 4.5rem 0.75rem 12rem;
  background: var(--soft);
}

.detail-hero__shade {
  display: none;
}

.detail-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: var(--container);
  margin: 0 auto;
  padding: 7rem 0 2rem;
}

.detail-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 13vw, 5.8rem);
  line-height: 0.92;
}

.detail-hero p:not(.section-number) {
  max-width: 43ch;
  color: rgba(255, 255, 255, 0.86);
}

.detail-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tabs a {
  flex: 0 0 auto;
  padding: 0.6rem 0.72rem;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.detail-tabs a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.detail-copy,
.detail-cta {
  width: var(--container);
  margin: 0 auto;
}

.detail-copy {
  display: grid;
  gap: 1rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-copy p:not(.section-number),
.detail-cta p:not(.section-number) {
  max-width: 43ch;
  color: var(--text);
}

.detail-gallery {
  display: grid;
  gap: 0.75rem;
  width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 0 4rem;
}

.detail-gallery figure {
  min-height: min(74svh, 42rem);
  overflow: hidden;
  background: var(--dark);
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery__contain {
  background: var(--soft);
}

.detail-gallery__contain img {
  object-fit: contain;
  padding: 1rem;
}

.detail-cta {
  display: grid;
  gap: 1rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.detail-cta .button {
  width: fit-content;
}

.intro-panel,
.about-band,
.portfolio-band {
  width: var(--container);
  margin: 0 auto;
}

.intro-panel {
  display: grid;
  gap: 1rem;
  padding: 3.5rem 0 2rem;
}

.service-grid {
  display: grid;
  gap: 0.7rem;
}

.service-card {
  display: grid;
  gap: 0.7rem;
  min-height: 14rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
}

.service-card span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 950;
}

.service-card h2 {
  max-width: 11ch;
  font-size: clamp(1.55rem, 8vw, 2.2rem);
}

.service-card p {
  align-self: end;
  max-width: 27ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature {
  padding: 1.4rem 0 4.2rem;
}

.feature-stage {
  position: relative;
  overflow: hidden;
}

.feature-stage::before,
.feature-stage::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.feature-stage::before {
  content: "";
  inset: 0 0 0 auto;
  width: 4.8rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.54));
}

.feature-stage::after {
  content: "›";
  top: 50%;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-50%);
}

.feature-gallery {
  display: grid;
  grid-auto-columns: 84vw;
  grid-auto-flow: column;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0 8vw 1rem;
  scroll-padding-inline: 8vw;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feature-gallery::-webkit-scrollbar {
  display: none;
}

.feature-slide {
  height: min(72svh, 620px);
  min-height: 410px;
  overflow: hidden;
  background: var(--dark);
  scroll-snap-align: center;
}

.feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-slide--contain {
  background: var(--soft);
}

.feature-slide--contain img {
  object-fit: contain;
  padding: 1rem;
}

.swipe-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  min-width: 2.8rem;
  min-height: 1.05rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.swipe-cue span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.feature-copy,
.text-block,
.contact-strip,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.feature-copy,
.text-block {
  display: grid;
  gap: 1rem;
}

.feature-copy {
  padding-top: 1.2rem;
}

.section-number {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 10.2vw, 3.35rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-copy p:not(.section-number),
.text-block p:not(.section-number),
.form-intro p {
  max-width: 42ch;
  color: var(--text);
  font-size: 1rem;
}

.text-block {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-block__note {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-strip {
  display: grid;
  gap: 0.65rem;
  padding: 4rem 0 2rem;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
}

.contact-strip a,
.direct-contact a {
  width: fit-content;
  color: var(--text);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 5.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 900;
}

.mobile-cta {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem 1rem;
  background: rgba(13, 13, 16, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-cta__actions {
  display: flex;
  align-items: center;
  gap: 2.85rem;
}

.mobile-cta__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
}

.mobile-cta__circle:active {
  filter: brightness(1.2);
}

.mobile-cta__pill {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  padding: 0 1.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 950;
  font-size: 0.91rem;
  letter-spacing: 0.02em;
  border: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.contact-page {
  min-height: 100svh;
  background: var(--dark);
  color: #ffffff;
}

.form-shell {
  width: var(--container);
  max-width: 760px;
  margin: 0 auto;
  padding: 7.4rem 0 6rem;
}

.form-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-intro h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 14vw, 5rem);
  line-height: 0.92;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.9rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(217, 71, 50, 0.9);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-weight: 950;
  cursor: pointer;
}

.button--accent {
  background: var(--accent);
  color: #ffffff;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.about-band {
  display: grid;
  gap: 1rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-band p:last-child {
  max-width: 46ch;
  color: var(--muted);
}

.portfolio-band {
  padding: 4rem 0 1rem;
}

.portfolio-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.portfolio-grid {
  display: grid;
  gap: 0.65rem;
}

.portfolio-grid figure {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  background: var(--dark);
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-grid figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.42rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 950;
}

.hp-field {
  position: absolute;
  left: -10000px;
}

.direct-contact {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}

.direct-contact a {
  color: #ffffff;
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    padding: 1rem 1.2rem;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.84rem;
    font-weight: 900;
  }

  .nav-button {
    margin-left: 0.2rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero--compact {
    min-height: 76svh;
  }

  .hero__content {
    padding-bottom: 3rem;
  }

  .topic-strip {
    justify-content: center;
  }

  .category-router {
    padding: 5rem 0 2rem;
  }

  .router-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }

  .router-head .section-number {
    grid-column: 1 / -1;
  }

  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .category-card {
    min-height: 34rem;
  }

  .category-card:first-child {
    grid-column: 1 / -1;
  }

  .category-card:hover img {
    transform: scale(1.035);
  }

  .category-card__copy {
    padding: 1.35rem;
  }

  .detail-hero {
    min-height: 86svh;
  }

  .detail-hero__copy {
    padding-bottom: 3rem;
  }

  .detail-tabs {
    justify-content: center;
  }

  .detail-copy,
  .detail-cta {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }

  .detail-copy .section-number,
  .detail-cta .section-number {
    grid-column: 1 / -1;
  }

  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding-top: 2rem;
  }

  .detail-gallery figure {
    min-height: 34rem;
  }

  .detail-gallery figure:nth-child(1),
  .detail-gallery figure:nth-child(4) {
    grid-column: 1 / -1;
    min-height: 42rem;
  }

  .intro-panel {
    padding: 4.5rem 0 3rem;
  }

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

  .service-card {
    min-height: 18rem;
    padding: 1.1rem;
  }

  .feature {
    padding: 2rem 0 5.5rem;
  }

  .feature-copy,
  .text-block {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }

  .feature-copy .section-number,
  .text-block .section-number {
    grid-column: 1 / -1;
  }

  .feature-copy p:not(.section-number),
  .text-block p:not(.section-number) {
    padding-top: 0.2rem;
  }

  .feature-gallery {
    grid-auto-columns: minmax(28rem, 48vw);
    gap: 0.9rem;
    padding-inline: max(7vw, calc((100% - 1160px) / 2));
    scroll-padding-inline: max(7vw, calc((100% - 1160px) / 2));
  }

  .feature-slide {
    height: 74svh;
    min-height: 34rem;
  }

  .contact-strip {
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    column-gap: 2rem;
  }

  .about-band {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
    padding: 5rem 0;
  }

  .about-band .section-number {
    margin-bottom: 1rem;
  }

  .portfolio-band {
    padding-top: 5rem;
  }

  .portfolio-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }

  .portfolio-head .section-number {
    grid-column: 1 / -1;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-grid figure {
    min-height: 22rem;
  }

  .portfolio-grid figure:nth-child(2),
  .portfolio-grid figure:nth-child(6) {
    min-height: 30rem;
  }

  .site-footer {
    padding-bottom: 1.25rem;
  }

  .mobile-cta {
    display: none;
  }

  .form-shell {
    padding-top: 8.5rem;
  }
}

@media (min-width: 1080px) {
  .hero h1 {
    font-size: 5.8rem;
    max-width: 16ch;
  }

  .hero__text {
    font-size: 1.08rem;
  }

  .feature-gallery {
    grid-auto-columns: minmax(31rem, 36vw);
  }
}
