/**
 * Front page sections. Hero first; the remaining sections land here as they
 * are built. Breakpoints follow the design's own @media block (900px).
 */

/* ---------- hero ---------- */

/*
 * The hero sits below the 78px fixed header, so its own height must be the
 * viewport MINUS that header — `height:100vh` plus `margin-top:78px` made the
 * first screen 78px taller than the window and pushed the audit CTA out of
 * sight. `min-height` is capped rather than fixed at 720px for the same
 * reason: on a short laptop window a 720px floor reintroduced the overflow.
 *
 * dvh accounts for mobile browser chrome that appears and disappears while
 * scrolling; vh is kept first as the fallback for browsers without dvh.
 */
.tim-hero {
  --tim-header-h: 78px;

  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr 420px;
  height: calc(100vh - var(--tim-header-h));
  height: calc(100dvh - var(--tim-header-h));
  min-height: min(720px, calc(100vh - var(--tim-header-h)));
  margin-top: var(--tim-header-h);
  overflow: hidden;
  background: var(--tim-cream);
  color: var(--tim-ink);

  /* A grid row's implicit minimum is its content, so on a short window the
     row grew past the hero and the CTA fell below the fold even though the
     hero itself measured correctly. Let the row shrink instead. */
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}

/* The panel scrolls its own overflow rather than pushing the layout, so the
   audit CTA stays reachable on laptop-height windows. */
.tim-hero > * {
  min-height: 0;
}


.tim-hero__ghost {
  position: absolute;
  right: -30px;
  bottom: -60px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 340px;
  line-height: 1;
  letter-spacing: -10px;
  color: rgba(20, 18, 22, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ---------- left rail ---------- */

.tim-hero__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--tim-line-light);
}

.tim-hero__vertical {
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 150px;
  line-height: 0.9;
  letter-spacing: -4px;
  color: var(--tim-ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.tim-hero__dot {
  position: absolute;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tim-magenta);
  animation: tim-pulse-dot 2.4s ease-in-out infinite;
}

.tim-hero__place {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--tim-ink-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
}

/* ---------- stage ---------- */

.tim-hero__stage {
  position: relative;
  overflow: hidden;
  background: var(--tim-dark);
}

.tim-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s var(--tim-ease);
}

.tim-scene.is-active {
  opacity: 1;
}

.tim-scene video,
.tim-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tim-hero__meta {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.tim-hero__index {
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 17px;
}

.tim-hero__scene-title {
  color: var(--tim-magenta-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tim-hero__progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.tim-hero__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--tim-magenta), var(--tim-magenta-light));
  box-shadow: 0 0 14px rgba(230, 0, 126, 0.7);
}

/* ---------- right panel ---------- */

.tim-hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  /* On a short window the panel is the tallest column; scroll it internally
     instead of letting it decide the hero's height. */
  overflow-y: auto;
  scrollbar-width: thin;
}

.tim-hero__title {
  margin: 0 0 10px;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--tim-ink);
  text-wrap: pretty;
}

/* ---------- tabs ---------- */

.tim-hero__tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tim-tab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(20, 18, 22, 0.07);
  border-radius: 14px;
  background: rgba(20, 18, 22, 0.03);
  font-family: var(--tim-font-body);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.tim-tab:hover {
  background: rgba(230, 0, 126, 0.07);
}

.tim-tab.is-active {
  background: rgba(230, 0, 126, 0.1);
  border-color: rgba(230, 0, 126, 0.45);
}

.tim-tab__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tim-tab__name {
  color: var(--tim-ink);
  font-size: 17px;
  font-weight: 600;
}

.tim-tab__num {
  color: var(--tim-magenta);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 14px;
}

.tim-tab__desc {
  color: var(--tim-ink-400);
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- panel foot ---------- */

.tim-hero__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tim-hero__stats {
  display: flex;
  gap: 26px;
}

.tim-stat {
  color: var(--tim-ink);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.tim-stat--accent {
  color: var(--tim-magenta);
}

.tim-stat__label {
  display: block;
  color: var(--tim-ink-400);
  font-family: var(--tim-font-body);
  font-size: 12px;
  font-weight: 400;
}

.tim-hero__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border-radius: var(--tim-radius-pill);
  background: var(--tim-magenta);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  animation: tim-cta-pulse 2.6s ease-out infinite;
}

.tim-hero__cta:hover {
  background: var(--tim-magenta-hover);
  color: #fff;
}

.tim-hero__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  animation: tim-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.tim-hero__partners {
  text-align: center;
  color: var(--tim-ink-400);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- mobile (design: max-width 900px) ---------- */

@media (max-width: 900px) {
  .tim-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  /* The vertical T.I.M rail is dropped entirely on mobile. */
  .tim-hero__rail {
    display: none;
  }

  /* 62vh of video plus the full panel pushed the audit CTA to ~1200px — three
     screens down on a phone. Give the stage a smaller share so the headline,
     tabs and CTA all land within the first scroll. */
  .tim-hero__stage {
    min-height: 42vh;
  }

  .tim-hero__panel {
    padding: 18px 20px 26px;
    gap: 16px;
  }

  .tim-hero__stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Four tabs with descriptions ran to 371px and pushed the audit CTA a full
     screen below the fold. The name and number identify the scene well enough
     on a phone; the description is what the video is already showing. */
  .tim-tab__desc {
    display: none;
  }

  .tim-tab {
    padding: 10px 14px;
    gap: 0;
  }

  .tim-hero__tabs {
    gap: 6px;
  }
}

/* ---------- manifest ---------- */

.tim-manifest {
  position: relative;
  padding: 160px 64px 140px;
  overflow: hidden;
  background: var(--tim-cream);
  color: var(--tim-ink);
}

.tim-manifest__ghost {
  position: absolute;
  left: -20px;
  top: 40px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 260px;
  line-height: 1;
  letter-spacing: -8px;
  white-space: nowrap;
  color: rgba(20, 18, 22, 0.04);
  pointer-events: none;
  user-select: none;
}

.tim-manifest__inner {
  position: relative;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
}

.tim-manifest__label {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}

.tim-manifest__label .tim-kicker {
  color: var(--tim-magenta);
}

.tim-manifest__rule {
  width: 44px;
  height: 2px;
  background: var(--tim-magenta);
}

.tim-manifest__text {
  margin: 0;
  max-width: 760px;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.35;
  text-wrap: pretty;
}

/* Words start dimmed and are lit one by one as the section scrolls. */
.tim-manifest__word {
  color: rgba(20, 18, 22, 0.22);
  transition: color 0.35s ease;
}

.tim-manifest__word.is-lit {
  color: var(--tim-ink);
}

.no-js .tim-manifest__word {
  color: var(--tim-ink);
}

.tim-manifest__figure {
  flex: none;
  width: 280px;
  margin: 8px 0 0;
}

.tim-manifest__figure img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(20, 18, 22, 0.18);
  transform: rotate(2deg);
}

.tim-manifest__figure figcaption {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--tim-ink-400);
  font-family: var(--tim-font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
}

.tim-manifest__values {
  position: relative;
  display: flex;
  gap: 64px;
  margin-top: 70px;
  margin-left: 204px;
}

.tim-value {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 240px;
  padding-top: 14px;
  border-top: 2px solid var(--tim-magenta);
}

.tim-value__title {
  color: var(--tim-ink);
  font-size: 18px;
  font-weight: 600;
}

.tim-value__text {
  color: var(--tim-ink-500);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- magenta CTA strip ---------- */

.tim-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 64px;
  overflow: hidden;
  background: var(--tim-magenta);
  transition: background 0.3s;
}

.tim-strip:hover {
  background: var(--tim-magenta-hover);
}

.tim-strip__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  animation: tim-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.tim-strip__title {
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 24px;
}

.tim-strip__cta {
  padding: 13px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--tim-radius-pill);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tim-manifest {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tim-manifest__inner {
    flex-direction: column;
    gap: 40px;
  }

  .tim-manifest__text {
    font-size: 26px;
    line-height: 1.4;
  }

  .tim-manifest__values {
    margin-left: 0;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 28px;
  }

  .tim-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
  }

  .tim-strip__title {
    font-size: 19px;
  }
}

/* ---------- služby: video accordion ---------- */

.tim-sluzby {
  position: relative;
  padding: 120px 64px 0;
  overflow: hidden;
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

.tim-sluzby__ghost {
  position: absolute;
  left: -40px;
  bottom: -60px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 280px;
  line-height: 1;
  letter-spacing: -10px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}

.tim-sluzby__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.tim-sluzby__heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tim-sluzby__title {
  margin: 0;
  max-width: 820px;
  font-size: 58px;
  line-height: 1.1;
  color: #fff;
}

.tim-accent {
  color: var(--tim-magenta);
}

.tim-sluzby__lede {
  max-width: 280px;
  color: var(--tim-on-dark-dim);
  font-size: 16px;
  line-height: 1.5;
  text-align: right;
}

.tim-panels {
  position: relative;
  display: flex;
  gap: 14px;
  height: 620px;
}

.tim-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tim-radius-card);
  overflow: hidden;
  background: var(--tim-dark-panel);
  cursor: pointer;
  transition: flex 0.9s cubic-bezier(0.25, 0.9, 0.25, 1), border-color 0.5s ease;
}

.tim-panel.is-active {
  flex: 3.6;
  border-color: rgba(230, 0, 126, 0.55);
}

.tim-panel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35) brightness(0.55);
  transition: filter 0.7s ease;
}

.tim-panel.is-active .tim-panel__video {
  filter: saturate(1.1) brightness(1);
}

.tim-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(13, 11, 15, 0.94) 0%,
    rgba(13, 11, 15, 0.25) 45%,
    rgba(13, 11, 15, 0) 65%
  );
  pointer-events: none;
}

.tim-panel__num {
  position: absolute;
  left: 24px;
  top: 20px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 40px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
  transition: -webkit-text-stroke 0.5s;
}

.tim-panel.is-active .tim-panel__num {
  -webkit-text-stroke: 1.5px rgba(230, 0, 126, 0.95);
}

/* Collapsed label, swapped for the full content when the panel opens. */
.tim-panel__collapsed {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.4s;
}

.tim-panel.is-active .tim-panel__collapsed {
  opacity: 0;
}

.tim-panel__name-sm {
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 20px;
}

.tim-panel__chanline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.tim-panel__content {
  position: absolute;
  left: 30px;
  bottom: 28px;
  width: 470px;
  max-width: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity 0.55s ease 0.25s,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}

.tim-panel.is-active .tim-panel__content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tim-panel__name {
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 32px;
}

.tim-panel__motto {
  color: var(--tim-magenta-light);
  font-family: var(--tim-font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
}

.tim-panel__chans {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tim-chip {
  padding: 11px 20px;
  border: 1.5px solid var(--chip, #fff);
  border-radius: var(--tim-radius-pill);
  background: rgba(13, 11, 15, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 20px var(--chip-glow, transparent);
}

.tim-panel__cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 14px 30px;
  border-radius: var(--tim-radius-pill);
  background: var(--tim-magenta);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(230, 0, 126, 0.45);
}

.tim-panel__cta:hover {
  background: var(--tim-magenta-hover);
  color: #fff;
}

/* Two actions per panel: the primary one opens that direction's services,
   the ghost one still goes to the contact form. */
.tim-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.tim-panel__actions .tim-panel__cta {
  margin-top: 0;
}

.tim-panel__cta--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
  padding: 12px 24px;
  font-size: 15px;
}

.tim-panel__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.tim-panel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.tim-panel__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--tim-magenta);
}

/* ---------- client marquee ---------- */

.tim-marquee {
  margin-top: 56px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tim-marquee__track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: tim-marquee 26s linear infinite;
}

.tim-marquee__item {
  color: var(--tim-ink-500);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tim-sluzby {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tim-sluzby__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tim-sluzby__title {
    font-size: 34px;
  }

  .tim-sluzby__lede {
    max-width: none;
    text-align: left;
  }

  /* Panels stack vertically; the design fixes the column at 1040px. */
  .tim-panels {
    flex-direction: column;
    height: 1040px;
  }

  .tim-panel__content {
    width: auto;
    right: 30px;
  }

  .tim-panel__name {
    font-size: 26px;
  }

  .tim-chip {
    font-size: 14px;
    padding: 9px 16px;
  }
}

/* ---------- projekty ---------- */

.tim-projekty {
  position: relative;
  padding: 130px 64px 120px;
  overflow: hidden;
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

.tim-projekty__ghost {
  position: absolute;
  right: -50px;
  bottom: -70px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 320px;
  line-height: 1;
  letter-spacing: -10px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}

.tim-projekty__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 900px 560px at 85% 50%,
    rgba(230, 0, 126, 0.13) 0%,
    rgba(230, 0, 126, 0) 70%
  );
  pointer-events: none;
}

.tim-projekty__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}

.tim-projekty__heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tim-projekty__title {
  margin: 0;
  max-width: 900px;
  font-size: 58px;
  line-height: 1.12;
  color: #fff;
}

.tim-projekty__lede {
  max-width: 260px;
  color: var(--tim-on-dark-dim);
  font-size: 16px;
  line-height: 1.5;
  text-align: right;
}

.tim-projekty__body {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

/* ---------- project list ---------- */

.tim-projlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tim-projlist__item {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  font-family: var(--tim-font-body);
  text-align: left;
  cursor: pointer;
}

.tim-projlist__num {
  width: 30px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 13px;
  transition: color 0.3s;
}

.tim-projlist__name {
  flex: 1;
  color: rgba(255, 255, 255, 0.45);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  transition: color 0.3s, letter-spacing 0.3s;
}

.tim-projlist__arrow {
  color: var(--tim-magenta);
  font-size: 17px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.tim-projlist__item.is-active .tim-projlist__num {
  color: var(--tim-magenta-light);
}

.tim-projlist__item.is-active .tim-projlist__name {
  color: #fff;
  letter-spacing: 1px;
}

.tim-projlist__item.is-active .tim-projlist__arrow {
  opacity: 1;
}

.tim-projekty__controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.tim-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--tim-magenta);
  color: #fff;
  font-family: var(--tim-font-body);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.tim-round:hover {
  background: var(--tim-magenta-hover);
}

.tim-round--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.tim-round--ghost:hover {
  background: transparent;
  border-color: var(--tim-magenta);
  color: var(--tim-magenta-light);
}

.tim-projekty__counter {
  margin-left: 6px;
  color: var(--tim-ink-500);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ---------- browser mock-up ---------- */

.tim-projekty__stage {
  position: relative;
}

.tim-projekty__stage-glow {
  position: absolute;
  inset: 40px -30px -30px 40px;
  background: radial-gradient(
    ellipse,
    rgba(230, 0, 126, 0.28) 0%,
    rgba(230, 0, 126, 0) 70%
  );
  pointer-events: none;
}

.tim-browser {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: var(--tim-ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  animation: tim-chip-float 9s ease-in-out infinite;
}

.tim-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tim-browser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, #fff);
}

.tim-browser__url {
  flex: 1;
  margin: 0 40px;
  padding: 5px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--tim-on-dark-dim);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.tim-browser__shot {
  position: relative;
  height: 460px;
}

.tim-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.tim-shot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tim-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tim-shot__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--tim-ink-500);
  font-size: 15px;
}

.tim-projekty__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tim-projekty__meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.tim-projekty__name {
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 26px;
}

.tim-projekty__tag {
  color: var(--tim-magenta-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tim-projekty__result {
  color: var(--tim-magenta-light);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 22px;
}

.tim-projekty__link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.tim-projekty__link:hover {
  color: var(--tim-magenta-light);
}

@media (max-width: 900px) {
  .tim-projekty {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tim-projekty__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tim-projekty__title {
    font-size: 34px;
  }

  .tim-projekty__lede {
    max-width: none;
    text-align: left;
  }

  .tim-projekty__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .tim-browser__shot {
    height: 300px;
  }

  /* The caption leaves its absolute slot so it cannot overlap the mock-up. */
  .tim-projekty__caption {
    position: static;
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tim-projekty__meta {
    flex-wrap: wrap;
  }
}

/* ---------- kroky: scroll film ---------- */

.tim-kroky {
  position: relative;
  height: 460vh;
  background: var(--tim-dark);
}

.tim-kroky__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--tim-dark);
}

.tim-kroky__film {
  position: absolute;
  inset: -30px;
  transition: transform 0.7s var(--tim-ease);
}

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

.tim-kroky__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tim-kroky__scrim--x {
  background: linear-gradient(
    90deg,
    rgba(13, 11, 15, 0.92) 0%,
    rgba(13, 11, 15, 0.45) 48%,
    rgba(13, 11, 15, 0.08) 78%
  );
}

.tim-kroky__scrim--y {
  background: linear-gradient(0deg, rgba(13, 11, 15, 0.92) 0%, rgba(13, 11, 15, 0) 38%);
}

.tim-kroky__scrim--vignette {
  background: radial-gradient(
    ellipse 140% 100% at 50% 50%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.tim-kroky__head {
  position: absolute;
  left: 64px;
  top: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tim-kroky__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
}

.tim-kroky__panel {
  position: absolute;
  left: 64px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
}

.tim-kroky__panel.is-changing {
  animation: tim-title-in 0.6s var(--tim-ease) both;
}

.tim-kroky__num {
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 150px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(230, 0, 126, 0.9);
  text-shadow: 0 0 44px rgba(230, 0, 126, 0.3);
}

.tim-kroky__name {
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 38px;
}

.tim-kroky__motto {
  color: var(--tim-magenta-light);
  font-family: var(--tim-font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
}

.tim-kroky__desc {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
}

.tim-kroky__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tim-kroky__tag {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--tim-radius-pill);
  background: rgba(13, 11, 15, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- right rail ---------- */

.tim-kroky__rail {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.tim-krail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tim-krail__name {
  color: var(--tim-ink-500);
  font-family: var(--tim-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.3s;
}

.tim-krail.is-active .tim-krail__name {
  color: #fff;
}

.tim-krail__line {
  width: 0;
  height: 2px;
  background: var(--tim-magenta);
  transition: width 0.4s;
}

.tim-krail.is-active .tim-krail__line {
  width: 34px;
}

.tim-krail__thumb {
  width: 52px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: var(--tim-dark-panel);
  background-size: cover;
  background-position: center;
  transform: scale(0.92);
  transition: border-color 0.3s, transform 0.3s;
}

.tim-krail.is-active .tim-krail__thumb {
  border-color: var(--tim-magenta);
  transform: scale(1);
}

/* ---------- bottom bar ---------- */

.tim-kroky__bar {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tim-kroky__bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tim-kroky__index {
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 18px;
}

.tim-kroky__index-total {
  color: rgba(255, 255, 255, 0.4);
}

.tim-kroky__hint {
  color: var(--tim-magenta-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

.tim-kroky__cta {
  padding: 13px 30px;
  border-radius: var(--tim-radius-pill);
  background: var(--tim-magenta);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(230, 0, 126, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s, background 0.3s;
}

.tim-kroky__cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tim-kroky__cta:hover {
  background: var(--tim-magenta-hover);
  color: #fff;
}

.tim-kroky__track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.tim-kroky__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--tim-magenta), var(--tim-magenta-light));
  box-shadow: 0 0 14px rgba(230, 0, 126, 0.7);
}

@media (max-width: 900px) {
  /* The rail needs hover room and a wide stage; the design hides it. */
  .tim-kroky__rail {
    display: none;
  }

  .tim-kroky__head {
    left: 24px;
    top: 40px;
  }

  .tim-kroky__panel {
    left: 24px;
    right: 24px;
    bottom: 96px;
    max-width: none;
  }

  .tim-kroky__num {
    font-size: 84px;
  }

  .tim-kroky__name {
    font-size: 25px;
  }

  .tim-kroky__motto {
    font-size: 17px;
  }

  .tim-kroky__desc {
    font-size: 15px;
  }

  .tim-kroky__bar {
    left: 24px;
    right: 24px;
  }

  .tim-kroky__cta {
    display: none;
  }
}

/* ---------- reference: horizontal dolly ---------- */

.tim-reference {
  position: relative;
  height: 380vh;
  background: var(--tim-cream);
}

.tim-reference__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.tim-reference__quote-mark {
  position: absolute;
  left: 24px;
  top: 10px;
  font-family: var(--tim-font-quote);
  font-weight: 800;
  font-size: 300px;
  line-height: 1;
  color: rgba(230, 0, 126, 0.07);
  pointer-events: none;
}

.tim-reference__track {
  position: relative;
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.tim-reference__intro,
.tim-reference__outro {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--tim-ink);
}

.tim-reference__intro {
  width: 52vw;
  padding: 0 64px;
  gap: 22px;
}

.tim-reference__title {
  margin: 0;
  font-size: 60px;
  line-height: 1.08;
  color: var(--tim-ink);
}

.tim-reference__lede {
  max-width: 420px;
  color: var(--tim-ink-500);
  font-size: 18px;
  line-height: 1.6;
}

.tim-reference__cue {
  color: var(--tim-magenta);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

.tim-quote {
  position: relative;
  flex: none;
  width: 78vw;
  margin: 0;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.tim-quote__num {
  position: absolute;
  left: 1vw;
  top: 50%;
  transform: translateY(-56%);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 320px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(230, 0, 126, 0.16);
  pointer-events: none;
}

.tim-quote__text {
  position: relative;
  margin: 0;
  max-width: 58vw;
  color: var(--tim-ink);
  font-family: var(--tim-font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.45;
}

.tim-quote__foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tim-quote__rule {
  width: 54px;
  height: 2px;
  background: var(--tim-magenta);
}

.tim-quote__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tim-quote__name {
  color: var(--tim-ink);
  font-size: 20px;
  font-weight: 600;
}

.tim-quote__role {
  color: var(--tim-ink-400);
  font-size: 15px;
}

.tim-quote__badge {
  margin-left: 10px;
  padding: 8px 14px;
  border: 1.5px solid var(--accent, var(--tim-magenta));
  border-radius: var(--tim-radius-pill);
  color: var(--accent, var(--tim-magenta));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.tim-reference__outro {
  width: 58vw;
  padding: 0 64px;
  gap: 24px;
  align-items: flex-start;
}

.tim-reference__panther {
  width: 170px;
  border-radius: 16px;
  transform: rotate(-2deg);
  box-shadow: 0 16px 36px rgba(20, 18, 22, 0.16);
}

.tim-reference__outro-title {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  color: var(--tim-ink);
}

.tim-reference__partners {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tim-pill {
  padding: 10px 20px;
  border: 1px solid rgba(20, 18, 22, 0.12);
  border-radius: var(--tim-radius-pill);
  background: #fff;
  color: var(--tim-ink-700);
  font-size: 14px;
  font-weight: 600;
}

.tim-reference__bar {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tim-reference__bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tim-reference__index {
  color: var(--tim-ink);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 18px;
}

.tim-reference__index-total {
  color: rgba(20, 18, 22, 0.35);
}

.tim-reference__label {
  color: var(--tim-ink-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

.tim-reference__track-line {
  position: relative;
  height: 2px;
  background: rgba(20, 18, 22, 0.12);
}

.tim-reference__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--tim-magenta), var(--tim-magenta-light));
  box-shadow: 0 0 12px rgba(230, 0, 126, 0.5);
}

/* ---------- o nás ---------- */

.tim-onas {
  position: relative;
  padding: 130px 64px 120px;
  overflow: hidden;
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

.tim-onas__ghost {
  position: absolute;
  left: -40px;
  top: -60px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 300px;
  line-height: 1;
  letter-spacing: -10px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}

.tim-onas__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 900px 560px at 85% 20%,
    rgba(230, 0, 126, 0.1) 0%,
    rgba(230, 0, 126, 0) 70%
  );
  pointer-events: none;
}

.tim-onas__inner {
  position: relative;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 72px;
  align-items: center;
  max-width: var(--tim-container);
  margin: 0 auto;
}

.tim-onas__figure {
  position: relative;
  height: 540px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  overflow: hidden;
  background: var(--tim-dark-panel);
  box-shadow: var(--tim-shadow-dark);
}

.tim-onas__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tim-onas__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  color: var(--tim-ink-500);
  font-size: 15px;
  text-align: center;
}

.tim-onas__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(0deg, rgba(13, 11, 15, 0.92), rgba(13, 11, 15, 0));
  pointer-events: none;
}

.tim-onas__name {
  display: block;
  color: #fff;
  font-family: var(--tim-font-display);
  font-weight: 600;
  font-size: 20px;
}

.tim-onas__role {
  color: var(--tim-magenta-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tim-onas__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tim-onas__title {
  margin: 0;
  font-size: 54px;
  line-height: 1.1;
  color: #fff;
}

.tim-onas__lead {
  max-width: 560px;
  color: var(--tim-on-dark-muted);
  font-size: 18px;
  line-height: 1.65;
}

.tim-onas__secondary {
  max-width: 560px;
  color: var(--tim-on-dark-dim);
  font-size: 16px;
  line-height: 1.65;
}

.tim-onas__stats {
  display: flex;
  gap: 56px;
  margin-top: 10px;
}

.tim-onas__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tim-onas__stat-value {
  color: var(--tim-magenta);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 40px;
}

.tim-onas__stat-label {
  color: var(--tim-on-dark-dim);
  font-size: 14px;
}

.tim-onas__langs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tim-onas__langs-label {
  color: var(--tim-on-dark-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

.tim-onas__lang {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--tim-radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- faq ---------- */

.tim-faq {
  position: relative;
  padding: 130px 64px 120px;
  overflow: hidden;
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

.tim-faq__ghost {
  position: absolute;
  right: -30px;
  top: -60px;
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 320px;
  line-height: 1;
  letter-spacing: -10px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}

.tim-faq__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 900px 560px at 10% 80%,
    rgba(230, 0, 126, 0.1) 0%,
    rgba(230, 0, 126, 0) 70%
  );
  pointer-events: none;
}

.tim-faq__inner {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
  max-width: var(--tim-container);
  margin: 0 auto;
}

.tim-faq__aside {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.tim-faq__title {
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
  color: #fff;
}

.tim-faq__lede {
  color: var(--tim-on-dark-dim);
  font-size: 16px;
  line-height: 1.6;
}

.tim-faq__list {
  display: flex;
  flex-direction: column;
}

.tim-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tim-faq__q {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  transition: padding-left 0.3s;
}

.tim-faq__q::-webkit-details-marker {
  display: none;
}

.tim-faq__item:hover .tim-faq__q {
  padding-left: 10px;
}

.tim-faq__num {
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 14px;
  transition: color 0.3s;
}

.tim-faq__text {
  flex: 1;
  color: rgba(255, 255, 255, 0.65);
  font-size: 22px;
  font-weight: 600;
  transition: color 0.3s;
}

.tim-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  transition: transform 0.4s, border-color 0.4s, color 0.4s;
}

.tim-faq__item[open] .tim-faq__num {
  color: var(--tim-magenta-light);
}

.tim-faq__item[open] .tim-faq__text {
  color: #fff;
}

.tim-faq__item[open] .tim-faq__toggle {
  transform: rotate(45deg);
  border-color: var(--tim-magenta);
  color: var(--tim-magenta-light);
}

.tim-faq__a {
  padding: 0 0 26px 36px;
}

.tim-faq__a p {
  max-width: 640px;
  color: var(--tim-on-dark-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- seo copy ---------- */

.tim-seo {
  position: relative;
  padding: 90px 64px 80px;
  background: var(--tim-cream);
  color: var(--tim-ink);
}

.tim-seo__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tim-seo__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: var(--tim-ink);
}

.tim-seo__body {
  position: relative;
  max-height: 190px;
  overflow: hidden;
  transition: max-height 0.6s var(--tim-ease);
}

.tim-seo__body.is-open {
  max-height: 1200px;
}

.tim-seo__columns {
  columns: 2;
  column-gap: 48px;
  color: var(--tim-ink-500);
  font-size: 15px;
  line-height: 1.7;
}

.tim-seo__columns p {
  margin: 0 0 14px;
}

.tim-seo__toggle {
  align-self: flex-start;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(230, 0, 126, 0.4);
  background: transparent;
  color: var(--tim-magenta);
  font-family: var(--tim-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.tim-seo__toggle:hover {
  color: var(--tim-magenta-hover);
}

/* ---------- kontakt ---------- */

.tim-kontakt {
  position: relative;
  padding: 130px 64px 120px;
  overflow: hidden;
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

.tim-kontakt__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 1000px 560px at 50% 0%,
    rgba(230, 0, 126, 0.2) 0%,
    rgba(230, 0, 126, 0) 70%
  );
  pointer-events: none;
}

.tim-kontakt__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 72px;
  align-items: center;
  max-width: var(--tim-container);
  margin: 0 auto;
}

.tim-kontakt__pitch {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tim-kontakt__video {
  position: relative;
  width: 300px;
  height: 180px;
  border: 1.5px solid rgba(230, 0, 126, 0.5);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 46px rgba(230, 0, 126, 0.35);
}

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

.tim-kontakt__title {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  color: #fff;
}

.tim-kontakt__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
}

.tim-kontakt__lede {
  max-width: 520px;
  color: var(--tim-on-dark-muted);
  font-size: 18px;
  line-height: 1.6;
}

.tim-kontakt__benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tim-benefit {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.tim-benefit__num {
  font-family: var(--tim-font-display);
  font-weight: 800;
  font-size: 22px;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(230, 0, 126, 0.9);
}

.tim-benefit__title {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.tim-benefit__text {
  display: block;
  color: var(--tim-on-dark-dim);
  font-size: 15px;
}

.tim-kontakt__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--tim-glass-border);
  border-radius: 26px;
  background: var(--tim-glass-bg);
  backdrop-filter: var(--tim-glass-blur);
}

.tim-kontakt__label {
  color: var(--tim-on-dark-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tim-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tim-chip-btn {
  padding: 11px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--tim-radius-pill);
  background: transparent;
  color: var(--tim-on-dark-muted);
  font-family: var(--tim-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tim-chip-btn:hover {
  border-color: rgba(230, 0, 126, 0.5);
  color: #fff;
}

.tim-chip-btn.is-active {
  border-color: var(--tim-magenta);
  background: rgba(230, 0, 126, 0.12);
  color: #fff;
}

/* Contact Form 7 fields, restyled to match the glass panel. */
.tim-kontakt__form input[type="text"],
.tim-kontakt__form input[type="email"],
.tim-kontakt__form input[type="tel"],
.tim-kontakt__form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--tim-font-body);
  font-size: 16px;
}

.tim-kontakt__form input::placeholder,
.tim-kontakt__form textarea::placeholder {
  color: var(--tim-ink-500);
}

.tim-kontakt__form input:focus,
.tim-kontakt__form textarea:focus {
  outline: none;
  border-color: var(--tim-magenta);
  box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.35);
}

.tim-kontakt__form input[type="submit"],
.tim-kontakt__form .wpcf7-submit {
  width: 100%;
  margin-top: 14px;
  padding: 17px 32px;
  border: 0;
  border-radius: var(--tim-radius-pill);
  background: var(--tim-magenta);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(230, 0, 126, 0.4);
  transition: background 0.3s;
}

.tim-kontakt__form input[type="submit"]:hover,
.tim-kontakt__form .wpcf7-submit:hover {
  background: var(--tim-magenta-hover);
}

.tim-kontakt__note {
  text-align: center;
  color: var(--tim-ink-500);
  font-size: 13px;
}

.tim-kontakt__fallback {
  color: var(--tim-on-dark-muted);
  font-size: 15px;
}

/* ---------- mobile for the closing sections ---------- */

@media (max-width: 900px) {
  .tim-reference__intro,
  .tim-reference__outro {
    width: 86vw;
    padding: 0 24px;
  }

  .tim-reference__title {
    font-size: 32px;
  }

  .tim-quote {
    width: 86vw;
    padding: 0 24px;
  }

  .tim-quote__text {
    max-width: none;
    font-size: 22px;
  }

  .tim-reference__outro-title {
    font-size: 28px;
  }

  .tim-reference__bar {
    left: 24px;
    right: 24px;
  }

  .tim-onas,
  .tim-faq,
  .tim-kontakt,
  .tim-seo {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tim-onas__inner,
  .tim-faq__inner,
  .tim-kontakt__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .tim-onas__figure {
    height: 420px;
  }

  .tim-onas__title,
  .tim-faq__title,
  .tim-kontakt__title {
    font-size: 32px;
  }

  .tim-onas__stats {
    flex-wrap: wrap;
    gap: 28px;
  }

  /* Sticky would pin the aside over the questions on a narrow screen. */
  .tim-faq__aside {
    position: static;
  }

  .tim-faq__text {
    font-size: 17px;
  }

  .tim-seo__columns {
    columns: 1;
  }

  .tim-seo__title {
    font-size: 22px;
  }
}

/*
 * Short windows (laptops around 1280×620) fit the hero but not its content, so
 * "Audit projektu zdarma" fell below the panel's internal scroll. Tighten the
 * vertical rhythm rather than let the CTA scroll out of sight — it is the
 * point of the first screen.
 *
 * Placed last in the file deliberately: the 900px breakpoint block above also
 * sets .tim-hero__panel padding, and these must win at equal specificity.
 */
@media (min-width: 901px) and (max-height: 800px) {
  .tim-hero__panel {
    gap: 14px;
    padding: 18px 32px 22px;
  }

  .tim-hero__title {
    font-size: 22px;
    line-height: 1.25;
  }
}

@media (min-width: 901px) and (max-height: 680px) {
  .tim-hero__panel {
    gap: 8px;
    padding: 12px 28px 16px;
  }

  .tim-hero__title {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .tim-tab {
    padding: 8px 14px;
    gap: 4px;
  }

  .tim-tab__desc {
    display: none;
  }

  /* Decorative on a cramped screen; the CTA below it is not. */
  .tim-hero__stats,
  .tim-hero__partners {
    display: none;
  }

  .tim-hero__cta {
    padding: 13px 0;
  }
}
