/* Naše company · homepage podle Figmy „Homepage 2“ (uzel 3010:635)
   Rozměry při 1440 px: kontejner 1152 px, okraje 144 px. Tokeny jsou v tokens.css. */

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: clip;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
mark { background: none; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-ink-lightest); margin: 0; width: 100%; }

:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
}
.services :focus-visible,
.site-footer :focus-visible,
.project--all :focus-visible { outline-color: var(--c-menthol); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--site-gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

/* ---------- Typografie (Poppins Bold / Archivo / Space Mono) ---------- */
.t-hero,
.t-64, .t-54, .t-40, .t-28,
.footer__claim {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.t-hero { font-size: clamp(36px, 3.75vw, 54px); }
.t-64 { font-size: clamp(38px, 4.45vw, 64px); }
.t-54 { font-size: clamp(34px, 3.75vw, 54px); }
.t-40 { font-size: clamp(26px, 2.78vw, 40px); }
.t-28 { font-size: clamp(22px, 1.95vw, 28px); }

.c-mint { color: var(--c-menthol); }
.c-lila { color: var(--c-lila); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--c-menthol);
}
.eyebrow--dark { color: var(--c-ink-lightest); }

.sq { position: absolute; display: block; pointer-events: none; }
.sq--mint { background: var(--c-menthol); }
.sq--lila { background: var(--c-lila); }
.sq--yellow { background: var(--c-yellow); }

/* ---------- Tlačítka a odkazy ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 16px 24px;
  border: 0;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--mint { background: var(--c-menthol); color: var(--c-ink); }
.btn--mint:hover { background: #a3d6cb; box-shadow: inset 0 -3px 0 var(--c-ink); }
.btn--yellow { background: var(--c-yellow); color: var(--c-ink); }
.btn--yellow:hover { box-shadow: inset 0 -3px 0 var(--c-ink); }
.btn--outline {
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--c-ink);
  background: transparent;
  color: var(--c-ink);
}
.btn--outline:hover { background: var(--c-ink); color: var(--c-white); }

.i-arrow {
  width: 22px;
  height: 13px;
  flex: none;
  stroke-width: 2;
  overflow: visible;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid var(--c-menthol);
  background: none;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--c-ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.link-arrow .i-arrow { transition: transform .2s ease; }
.link-arrow:hover .i-arrow,
.btn:hover .i-arrow { transform: translateX(4px); }

.square-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-ink);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.square-btn .i-arrow { width: 21px; height: 12px; stroke-width: 1; }
.square-btn:hover:not(:disabled) { background: var(--c-ink); color: var(--c-white); }
.square-btn:disabled { opacity: .3; cursor: default; }
.square-btn--prev .i-arrow { transform: scaleX(-1); }
.square-btn--light { border-color: var(--c-white); color: var(--c-white); }

.badge {
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid var(--c-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-lila);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding-block: 12px;
  gap: 32px;
}
.logo { display: block; flex: none; height: 48px; }
.logo img { height: 48px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 32px;
}
.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--c-ink);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(var(--c-menthol), var(--c-menthol));
  background-size: 0 2px;
  background-position: 0 calc(100% - 8px);
  background-repeat: no-repeat;
  transition: background-size .2s ease;
}
.nav-link:hover { background-size: 100% 2px; }

.nav-disclosure {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 44px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-caret { width: 12px; height: 8px; transition: transform .2s ease; }
.nav-disclosure[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.services-menu {
  display: none;
}
.js .services-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -24px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(2, minmax(240px, auto));
  gap: 32px;
  padding: 32px;
  background: var(--c-white);
  border: 1px solid var(--c-lila);
  box-shadow: 0 16px 40px rgba(16, 14, 28, .12);
}
.js .services-menu.is-open { display: grid; }
.services-menu__title {
  display: block;
  text-decoration: none;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--c-ink-lightest);
  text-align: left;
  cursor: pointer;
}
.services-menu__title:hover { color: var(--c-ink); }
.services-menu li a {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.services-menu li a:hover,
.services-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--c-menthol); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.nav-actions { display: flex; align-items: center; gap: 32px; }
.nav-phone {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  color: var(--c-ink-lighter);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--c-ink); text-decoration: underline; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--c-menthol);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Hero ---------- */
.hero { padding-block: 64px; }
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 413px;
  flex: none;
}
.hero__lead { font-size: 16px; line-height: 1.8; }
.hero__ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.cta-with-dog { display: flex; flex-direction: column; align-items: flex-end; }

.hero__media {
  position: relative;
  width: 607px;
  max-width: 100%;
  aspect-ratio: 607 / 440;
  flex: none;
}
.hero__photo {
  position: absolute;
  inset: 0;
  -webkit-mask: url("../img/hero-mask.svg") 0 0 / 100% 100% no-repeat;
  mask: url("../img/hero-mask.svg") 0 0 / 100% 100% no-repeat;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__sq-mint { left: 89.6%; top: -5.45%; width: 17.8%; aspect-ratio: 1; }
.hero__sq-lila { left: -3.95%; top: 82.5%; width: 8.9%; aspect-ratio: 1; }
.hero__sq-yellow { left: -15.65%; top: 0; width: 8.9%; aspect-ratio: 1; }
/* mentolový čtverec je ve Figmě pod fotografií */
.hero__sq-mint { z-index: 0; }
.hero__photo { z-index: 1; }
.hero__sq-lila, .hero__sq-yellow { z-index: 2; }

/* ---------- Fotografický statement se schodovým zakončením ---------- */
.statement {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 38.9vw, 560px);
  padding-block: 64px;
  color: var(--c-white);
  isolation: isolate;
}
.statement__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Přesná původní maska Rectangle 87 z Figmy (1440 × 560). */
  -webkit-mask: url('../img/statement-mask.svg') 0 0 / 100% 100% no-repeat;
  mask: url('../img/statement-mask.svg') 0 0 / 100% 100% no-repeat;
}
.statement__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.statement__photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.statement__text { display: flex; flex-direction: column; gap: 24px; }
.statement__text h2 { max-width: 1010px; }
.statement__text p { font-weight: 500; font-size: clamp(17px, 1.39vw, 20px); line-height: 1.8; }

/* ---------- Důvěra ---------- */
.trust { padding-block: var(--section-pad); }
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px 80px;
}
.trust__title { max-width: 568px; }
.trust__members { display: flex; flex-direction: column; gap: 12px; }
.members__label {
  font-family: var(--f-mono-alt);
  font-size: 16px;
  line-height: 1.5;
  opacity: .6;
}
.members { display: flex; flex-direction: column; gap: 8px; }
.members li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}
.members li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--c-menthol);
}

/* ---------- Služby ---------- */
.services {
  padding-block: var(--section-pad);
  background: var(--c-ink);
  color: var(--c-white);
}
.services > .wrap { display: flex; flex-direction: column; gap: 80px; }
.services__intro { display: flex; flex-direction: column; gap: 32px; }
.services__head { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.services__head h2 .c-mint { display: block; }
.services__photo { position: relative; width: 180px; height: 180px; flex: none; margin-right: 0; }
.services__photo .sq { left: -26px; top: -21px; width: 154px; height: 154px; }
.services__photo picture { position: relative; width: 100%; height: 100%; }
.services__photo img { width: 100%; height: 100%; object-fit: cover; }
.services__why { font-weight: 500; font-size: clamp(17px, 1.39vw, 20px); line-height: 1.8; }
.services__why .dim { color: rgba(255, 255, 255, .5); }
.services__why mark {
  padding: 0 4px;
  background: var(--c-lila);
  color: var(--c-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.service-group {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--c-ink-lightest);
}
.service-group--reverse { flex-direction: row-reverse; justify-content: flex-end; }
.service-group__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 409px;
  flex: none;
}

.track { position: relative; width: 100%; max-width: 409px; height: 44px; }
.track .dog-station { position: absolute; left: var(--dog-x, 45px); top: 0; }
.track__bar {
  position: absolute;
  left: 0;
  top: 32px;
  display: flex;
  gap: 8px;
  width: 100%;
  height: 12px;
}
.track__bar span { flex: 1; height: 100%; }
.track__bar--solid span { background: var(--c-ink-lighter); }
.track__bar--outline span { border: 2px solid var(--c-ink-lighter); }
.track__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 12px;
  width: var(--fill, 73px);
  background: var(--c-menthol);
}

.cards { display: flex; flex-direction: column; gap: 29px; width: 679px; max-width: 100%; }
.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px;
  color: var(--c-ink);
  filter: drop-shadow(0 -4px 16px rgba(0, 0, 0, .15));
}
@media (min-width: 1024px) {
  /* karty se při rolování skládají na sebe jako ve Figmě (karta 02 překrývá 01) */
  .card { position: sticky; top: calc(var(--header-h) + 40px + var(--i, 0) * 24px); }
}
.card[data-i="1"] { --i: 1; }
.card[data-i="2"] { --i: 2; }
.card[data-i="3"] { --i: 3; }
.card__no {
  width: 26px;
  flex: none;
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 50px;
  color: var(--c-ink-lightest);
}
.card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.8; }
.card__body p { font-weight: 500; font-size: 16px; line-height: 1.8; max-width: 430px; }
.card__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--c-ink);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.card__go .i-arrow { width: 21px; height: 12px; stroke-width: 1; }
/* celá karta je klikací přes tlačítko se šipkou */
.card__go::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__go { background: var(--c-ink); color: var(--c-white); }
.card--white { background: var(--c-white); }
.card--lila-soft { background: var(--c-lila-soft); }
.card--lila { background: var(--c-lila); }
.card--mint { background: var(--c-menthol); }
.card--d1, .card--d2, .card--d3, .card--d4 { color: var(--c-white); border: 1px solid var(--c-ink-lighter); }
.card--d1 { background: var(--c-dark-1); }
.card--d2 { background: var(--c-dark-2); }
.card--d3 { background: var(--c-dark-3); }
.card--d4 { background: var(--c-dark-4); border-color: var(--c-dark-4); }
.service-group--dark .card[data-i="1"] { --i: 1; }
.card[data-i="2"] { --i: 2; }
.card[data-i="3"] { --i: 3; }
.card__no { color: var(--c-menthol); }
.service-group--dark .card__go { border-color: var(--c-menthol); color: var(--c-menthol); }
.service-group--dark .card:hover .card__go { background: var(--c-menthol); color: var(--c-ink); }

.services__outro { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px 64px; }
.services__outro .t-28 { max-width: 300px; }
.services__outro-text { width: 679px; max-width: 100%; font-weight: 500; font-size: clamp(17px, 1.39vw, 20px); line-height: 1.65; color: var(--c-lila); }

/* ---------- Přechodový nadpis (tmavá → bílá) ---------- */
.sliding {
  position: relative;
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 4.45vw, 64px);
  line-height: 1.25;
  overflow: hidden;
}
.sliding__band { position: relative; display: block; }
.sliding__band--dark { height: 2.406em; background: var(--c-ink); color: var(--c-white); }
.sliding__band--light { height: 3.11em; background: var(--c-white); color: var(--c-ink); }
.sliding__line {
  position: absolute;
  white-space: nowrap;
  transform: translate3d(calc(var(--slide, 0) * 1px), 0, 0);
  will-change: transform;
}
.sliding__line--1 { left: 12.2%; top: 1.156em; }
.sliding__line--2 { left: 9.86%; top: 0; }
.sliding__line--3 { left: 63.6%; top: 1.156em; }
.sliding .dog-station--md { margin-left: .4em; vertical-align: -0.02em; }

/* ---------- Tým ---------- */
.team__inner {
  display: flex;
  align-items: center;
  gap: 120px;
  padding-block: 64px;
}
.team__text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; min-width: 0; }
.team__text p { font-weight: 500; font-size: 16px; line-height: 1.8; }
.team__text u {
  text-decoration: underline;
  text-decoration-color: var(--c-menthol);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}
.team__strong { font-family: var(--f-display); font-weight: 700; font-size: 20px !important; line-height: 1.25 !important; max-width: 400px; }
.team__media { position: relative; width: 515px; aspect-ratio: 515 / 345; flex: none; }
.team__sq { left: -7.2%; top: -10.1%; width: 39.4%; aspect-ratio: 1; }
.team__photo { position: absolute; inset: 0; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__inset {
  position: absolute;
  left: 80.6%;
  top: 57.1%;
  width: 26.6%;
  aspect-ratio: 137 / 177;
  border: 16px solid var(--c-white);
  background: var(--c-white);
}
.team__inset img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 0; }

/* ---------- Projekty ---------- */
.projects { position: relative; padding-block: var(--section-pad); background: var(--c-lila-wash); overflow: hidden; }
.projects__inner { display: flex; align-items: flex-start; gap: 80px; }
.projects__intro { display: flex; flex-direction: column; gap: 32px; width: 362px; flex: none; }
.projects__intro p { max-width: 345px; font-size: 16px; line-height: 1.5; }
.projects__controls { display: flex; gap: 12px; }
.projects__viewport {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  margin-right: calc(-1 * var(--site-gutter));
}
.projects__track {
  position: relative; /* drží i absolutně umístěné (visually-hidden) potomky uvnitř posuvníku */
  display: flex;
  gap: 32px;
  padding-right: var(--site-gutter);
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-lila) transparent;
}
.projects__track:focus-visible { outline-offset: -3px; }
.project {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 368px;
  flex: none;
  scroll-snap-align: start;
}
.project--lg { width: 582px; min-height: 522px; }
.project__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 252px;
  padding: 32px;
  overflow: hidden;
}
.project--lg .project__visual { flex: 1; height: auto; min-height: 300px; }
.pv-kicker { font-family: var(--f-mono); font-size: 12px; line-height: 1.25; text-transform: uppercase; }
.pv-name { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; }
.project--lg .pv-name { font-size: clamp(56px, 6vw, 88px); }
.project__visual--sobek { background: var(--c-ink); color: var(--c-white); }
.project__visual--sobek .pv-kicker { color: var(--c-menthol); }
.pv-sq1 { right: 40px; top: 40px; width: 64px; height: 64px; }
.pv-sq2 { right: 112px; top: 104px; width: 32px; height: 32px; }
.project__visual--kjk { background: var(--c-menthol); color: var(--c-ink); }
.project__visual--ladia { background: var(--c-lila); color: var(--c-ink); }
.project__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.project__meta p { font-size: 16px; line-height: 1.8; }
.project__title { margin-top: 0; }
.tag {
  display: inline-block;
  padding: 8px;
  border: 1px solid var(--c-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}
.tag--mint { border-color: var(--c-menthol); background: var(--c-menthol); }
.project--all { width: auto; }
.all-work {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  height: 252px;
  padding: 40px;
  border: 0;
  background: var(--c-ink);
  color: var(--c-white);
  text-align: left;
  cursor: pointer;
}
.all-work .t-28 { align-self: flex-start; }
.all-work:hover .square-btn--light { background: var(--c-white); color: var(--c-ink); }

/* ---------- Self-audit ---------- */
.audit { padding-block: var(--section-pad); background: var(--c-lila); }
.audit__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.audit__title { max-width: 470px; }
.audit__body { display: flex; flex-direction: column; gap: 32px; width: 409px; flex: none; }
.audit__body p { font-size: 16px; line-height: 1.5; }
.track--audit .dog-station { left: auto; right: -4px; top: -20px; }
.track__bar--audit span { background: var(--c-yellow); }
.track__bar--audit span:last-of-type { background: var(--c-ink-lighter); }
.track__bar--audit i { position: absolute; top: 0; left: calc(75% + 2px); width: 15%; height: 12px; background: var(--c-yellow); }
.audit__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Kontakt ---------- */
.contact__inner { display: flex; align-items: stretch; gap: 120px; padding-block: 64px; }
.contact__photo { flex: 1; min-width: 0; min-height: 320px; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.contact__body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 548px; flex: none; }
.contact__body > p:first-of-type { font-size: 16px; line-height: 1.8; }
.contact__body hr { margin-top: 8px; }
.contact__label { margin-top: 8px; margin-bottom: -24px; font-family: var(--f-mono); font-size: 14px; line-height: 1.5; color: var(--c-ink-lightest); }
.contact__phone {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 2.78vw, 40px);
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone:hover { text-decoration: underline; text-decoration-color: var(--c-menthol); text-decoration-thickness: 3px; }
.contact__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: -20px; font-size: 16px; line-height: 1.5; }

/* ---------- Patička ---------- */
.site-footer { padding-block: 64px; background: var(--c-ink); color: var(--c-white); }
.site-footer > .wrap { display: flex; flex-direction: column; gap: 64px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer__claim { max-width: 700px; font-size: clamp(36px, 4.45vw, 64px); }
.cta-with-dog--footer { flex: none; }
.footer__cols { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer__logo { display: block; width: 160px; flex: none; }
.footer__head {
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--c-menthol);
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col li,
.footer__col a,
.footer__col button { font-size: 16px; line-height: 1.8; white-space: nowrap; }
.site-footer a:not(.btn),
.site-footer button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.site-footer a:not(.btn):hover,
.site-footer button:hover { text-decoration: underline; text-decoration-color: var(--c-menthol); text-underline-offset: 4px; }
.site-footer .btn--mint { color: var(--c-ink); }
.site-footer .btn--mint:hover { text-decoration: none; }
.footer__members { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--c-ink-lightest); }
.members--light { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; }
.footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-top: -40px; font-weight: 500; font-size: 16px; line-height: 1.5; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 32px; opacity: .6; }
.footer__legal li { font: inherit; }
.footer__social { display: flex; gap: 32px; }
.footer__registry { margin-top: -40px; font-size: 13px; line-height: 1.5; opacity: .45; }

/* ---------- Pejsek (jedna instance pro celou stránku) ---------- */
.dog-station { position: relative; display: inline-block; flex: none; pointer-events: none; }
.dog-station--sm { width: 47px; height: 32px; }
.dog-station--md { width: 58px; height: 40px; }
.dog-station--lg { width: 80px; height: 54px; }

.dog {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 47px;
  height: 32px;
  color: var(--c-ink);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) rotate(var(--rot, 0deg));
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.dog.is-visible { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }
/* Dotyk / úzké okno: pejsek je přímo v DOM stanoviště a roluje s dokumentem nativně
   (žádné fixed souřadnice doháněné skriptem). */
.dog.dog--docked { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); }
.dog[data-tone="white"] { color: var(--c-white); }
.dog__inner {
  width: 100%;
  height: 100%;
  transform: translateY(var(--hop, 0px)) scaleX(var(--face, 1));
  transition: transform .28s cubic-bezier(.3, 1.4, .5, 1);
}
.dog:not(.is-visible) .dog__inner { --hop: 10px; }
/* Na dotyku jen prolnutí bez poskoku: pejsek roluje se stránkou a poskok při rolování působil jako skákání. */
.dog.dog--docked .dog__inner { transition: none; }
.dog.dog--docked:not(.is-visible) .dog__inner { --hop: 0px; }
.dog__svg { display: block; width: 100%; height: 100%; fill: currentColor; overflow: visible; }
.dog__tail { transform-box: view-box; transform-origin: 7.3px 15.8px; }
.dog__head {
  transform-box: view-box;
  transform-origin: 31px 12px;
  transform: rotate(var(--head, 0deg));
  transition: transform .18s ease-out;
}
.dog__legs { transform-box: view-box; }
.dog__legs--back { transform-origin: 11.7px 20.5px; }
.dog__legs--front { transform-origin: 30.3px 20.5px; }

@media (prefers-reduced-motion: no-preference) {
  .dog__tail { animation: dog-wag var(--wag, 1.1s) ease-in-out infinite alternate; }
  .dog.is-walking .dog__legs--back { animation: dog-step .3s ease-in-out infinite alternate; }
  .dog.is-walking .dog__legs--front { animation: dog-step .3s ease-in-out infinite alternate-reverse; }
}
@keyframes dog-wag {
  from { transform: rotate(-16deg); }
  to { transform: rotate(20deg); }
}
@keyframes dog-step {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}

/* ---------- Responzivita ---------- */
@media (max-width: 1099px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 24px var(--site-gutter) 32px;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-lila);
    box-shadow: 0 16px 32px rgba(16, 14, 28, .1);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .js .nav-item { flex-wrap: wrap; }
  .js .nav-link { font-size: 20px; }
  .js .nav-disclosure { margin-left: auto; width: 44px; }
  .js .services-menu {
    position: static;
    flex-basis: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 0 16px 16px;
    border: 0;
    border-left: 2px solid var(--c-menthol);
    box-shadow: none;
  }
  .js .nav-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .js .nav-phone { font-size: 18px; }
  /* bez JavaScriptu zůstane menu jako zalomený řádek odkazů */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* 1024–1339 px: hero, tým, kontakt a služby se vejdou bez vodorovného přetečení (opraveno 19. 11., na 1440 beze změny) */
@media (min-width: 1024px) and (max-width: 1339px) {
  .hero__media { flex: 1 1 auto; width: auto; min-width: 0; }
  .hero__text { flex: 0 1 413px; }
  .team__inner { gap: 64px; }
  .team__media { flex: 0 1 515px; width: auto; min-width: 0; }
  .contact__inner { gap: 64px; }
  .contact__body { flex: 0 1 548px; width: auto; }
  .service-group { gap: 40px; }
  .service-group__aside { flex: 0 1 409px; width: auto; }
}

@media (max-width: 1023px) {
  .hero__inner { flex-direction: column; align-items: stretch; gap: 64px; }
  .hero__text { width: auto; max-width: 560px; }
  .hero__media { width: calc(100% - 9%); margin-left: 9%; }

  .services__head { align-items: flex-end; }
  .service-group,
  .service-group--reverse { flex-direction: column; gap: 32px; }
  .service-group__aside { position: static; width: 100%; }
  .cards { width: 100%; }
  .services__outro { flex-direction: column; }

  .team__inner { flex-direction: column; align-items: stretch; gap: 72px; }
  .team__media { width: calc(100% - 20%); margin-left: 7%; }

  .projects__inner { flex-direction: column; gap: 40px; }
  .projects__intro { width: auto; max-width: 560px; }

  .audit__inner { flex-direction: column; }
  .audit__body { width: 100%; max-width: 480px; }

  .contact__inner { flex-direction: column-reverse; gap: 48px; }
  .contact__body { width: auto; }
  .contact__photo { min-height: 0; aspect-ratio: 4 / 3; flex: none; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .cta-with-dog--footer { align-items: flex-start; }
  .cta-with-dog--footer .dog-station { align-self: flex-end; }
  .footer__cols { flex-wrap: wrap; }
  .footer__logo { flex-basis: 100%; }
}

@media (max-width: 767px) {
  .trust__inner { flex-direction: column; align-items: flex-start; }
  .card {
    display: grid;
    grid-template-columns: 1fr 44px;
    grid-template-areas: "no go" "body body";
    gap: 4px 16px;
    padding: 24px;
  }
  .card[data-i="1"] { --i: 1; }
.card[data-i="2"] { --i: 2; }
.card[data-i="3"] { --i: 3; }
.card__no { grid-area: no; width: auto; line-height: 44px; }
  .card__go { grid-area: go; }
  .card__body { grid-area: body; }
  .card__title { line-height: 1.3; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 48px; }
  .services__photo { width: 140px; height: 140px; margin-left: 26px; }
  .services__photo .sq { width: 120px; height: 120px; }

  /* přechodový nadpis: na mobilu běžný tok místo absolutních pozic */
  .sliding { font-size: clamp(28px, 8.6vw, 44px); }
  .sliding__band--dark { height: auto; padding: 1.2em var(--site-gutter) 0; }
  .sliding__band--light { height: auto; padding: 0 var(--site-gutter) .6em; }
  .sliding__line { position: static; display: block; white-space: normal; }
  .sliding__line--3 { text-align: right; margin-top: .2em; }

  .project { width: min(80vw, 368px); }
  .project--lg { width: min(86vw, 582px); min-height: 0; }
  .project--lg .project__visual { min-height: 260px; }
  .pv-name { font-size: 44px; }
  .project--lg .pv-name { font-size: 52px; }
  .pv-kicker { max-width: 62%; }
  .pv-sq1 { right: 24px; top: 24px; width: 48px; height: 48px; }
  .pv-sq2 { right: 72px; top: 72px; width: 24px; height: 24px; }
  .team__media { width: 84%; margin-left: 7%; }

  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
  .footer__col li, .footer__col a, .footer__col button { white-space: normal; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 479px) {
  .header-inner { gap: 16px; }
  .logo, .logo img { height: 40px; }
  .hero { padding-top: 40px; }
  .hero__media { width: 100%; margin-left: 0; margin-top: 8px; }
  .hero__sq-yellow { left: auto; right: 2%; top: -14%; }
  .btn { white-space: normal; }
  .contact__phone { white-space: normal; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__members .members--light { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .sliding__line { transform: none !important; }
}
