/* Kontakt — čtyři samostatné bubliny. Fotky: shared/images/team/. */

body.is-home #cta { padding: 40px 0 80px; background: transparent; }
#cta .wrap { width: calc(100% - 24px); max-width: none; }

.ct {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 5.5vw, 96px) clamp(56px, 6vw, 88px);
  border-radius: var(--radius, 32px);
  background:
    radial-gradient(45% 70% at 92% 0%, rgba(46, 74, 205, .28), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(46, 74, 205, .12), transparent 70%),
    var(--ink, #041827);
  color: #fff;
}
.ct-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  max-width: 1500px;
  margin: 0 auto 120px;
  padding-inline: clamp(0px, 9vw, 190px) 0;
}
.ct-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#cta .ct-title {
  margin: 0;
  max-width: 14ch;
  font-family: Satoshi, "Space Grotesk", sans-serif;
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
  white-space: normal;
}
.ct-cta.btn {
  flex: none;
  height: 58px;
  min-height: 0;
  padding: 0 32px;
  margin-top: 8px;
  background: #fff;
  color: var(--ink, #041827);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 36px);
  max-width: 1500px;
  margin: 0 auto;
}
.ct-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 560px;
  min-height: 0;
  padding: 34px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .025);
  outline: none;
}
.ct-card:focus-visible { border-color: #8fa2ff; }
.ct-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ct-card .ct-name {
  margin: 0;
  font-family: Satoshi, "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.ct-ico { flex: none; width: 30px; height: 30px; color: #fff; }
.ct-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-desc {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}
.ct-desc a { color: #fff; }
.ct-desc a:hover { text-decoration: underline; }
.ct-role {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.4;
}

.ct-media {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 96px;
  margin: 16px -28px -26px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(80% 90% at 30% 20%, rgba(143, 162, 255, .55), transparent 70%),
    linear-gradient(160deg, #2e4acd, #0b1f5c);
  transition: margin-top 650ms cubic-bezier(.22, .8, .2, 1);
}
.ct-media:has(img)::before { content: none; }
.ct-media img.is-david { object-position: 50% 28%; }
.ct-media img.is-ales { object-position: 58% 12%; }
.ct-media img.is-tobias { object-position: 42% 22%; }
.ct-media::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Satoshi, "Space Grotesk", sans-serif;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .22);
}
.ct-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 650ms ease, transform 900ms cubic-bezier(.22, .8, .2, 1);
}
.ct-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #2e4acd;
  mix-blend-mode: multiply;
  opacity: .75;
  transition: opacity 650ms ease;
  pointer-events: none;
}
.ct-card:hover .ct-media,
.ct-card:focus-within .ct-media,
.ct-grid:not(:hover) .ct-card.is-active .ct-media { margin-top: -36px; }
.ct-card:hover .ct-media::after,
.ct-card:focus-within .ct-media::after,
.ct-grid:not(:hover) .ct-card.is-active .ct-media::after { opacity: 0; }
.ct-card:hover .ct-media img,
.ct-card:focus-within .ct-media img,
.ct-grid:not(:hover) .ct-card.is-active .ct-media img { filter: none; transform: scale(1.03); }

.ct-address { background: transparent; border-color: rgba(255, 255, 255, .28); }
.ct-lines {
  display: grid;
  gap: 10px;
  margin-top: auto;
  font-size: 15px;
}
.ct-lines a,
.ct-cookie { color: #fff; width: fit-content; }
.ct-lines a:hover,
.ct-cookie:hover { text-decoration: underline; }
.ct-map,
.ct-cookie {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #c5d0ff !important;
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.footer-cookie {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .ct-head { padding-inline: 0; }
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.is-home #cta { padding: 24px 0 64px; }
  #cta .wrap { width: calc(100% - 16px); }
  .ct { padding: 48px 16px 16px; border-radius: 24px; }
  .ct-head { flex-direction: column; gap: 24px; margin-bottom: 64px; padding-inline: 8px; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-card { height: 510px; max-height: 510px; padding: 28px; }
  .ct-media { margin: 16px -20px -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-media, .ct-media img, .ct-media::after { transition: none; }
}
