/* Strona /o-firmie/ */

.site-main--o-firmie {
  max-width: none;
  width: 100%;
  padding: 0;
  background: #fbfbfc;
}

.a-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px var(--page-gutter) 90px;
}

.a-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 26px;
}

.a-crumbs a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.a-crumbs a:hover {
  color: #18181b;
}

.a-crumbs svg {
  width: 14px;
  height: 14px;
  color: #c4c4c9;
  flex: none;
}

.a-crumbs [aria-current] {
  color: #18181b;
  font-weight: 600;
}

.a-title {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 24ch;
  color: #18181b;
}

.a-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #52525b;
  margin: 0 0 48px;
  max-width: 64ch;
}

.a-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
}

.a-profile {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e7e7ea;
  box-shadow: 0 22px 50px -34px rgba(24, 24, 27, 0.5);
  background: linear-gradient(160deg, #ececef, #e2e2e6);
}

.a-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.a-photo__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(24, 24, 27, 0.04) 0%,
      transparent 28%,
      transparent 58%,
      rgba(24, 24, 27, 0.28) 100%
    ),
    linear-gradient(
      135deg,
      rgba(168, 85, 247, 0.12) 0%,
      transparent 42%,
      transparent 70%,
      rgba(99, 102, 241, 0.1) 100%
    );
}

.a-info {
  background: #fff;
  border: 1px solid #e7e7ea;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 18px 44px -36px rgba(24, 24, 27, 0.45);
}

.a-profile__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: #18181b;
}

.a-profile__role {
  font-size: 14px;
  font-weight: 600;
  color: #3f3f46;
  margin: 5px 0 0;
}

.a-profile__craft {
  font-size: 13px;
  color: var(--color-muted);
  margin: 3px 0 0;
}

.a-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e7e7ea;
  display: flex;
  flex-direction: column;
}

.a-crow {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  text-decoration: none;
}

.a-crow svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #a1a1aa;
  transition: color 0.15s;
}

.a-crow span {
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
  transition: color 0.15s;
}

a.a-crow:hover svg,
a.a-crow:hover span {
  color: var(--color-accent);
}

.a-social {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e7e7ea;
}

.a-soc {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #3f3f46;
  background: #f4f4f5;
  border: 1px solid #e7e7ea;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}

.a-soc:hover {
  background: #ececed;
  color: #18181b;
}

.a-soc svg {
  width: 18px;
  height: 18px;
}

.a-story h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 34px 0 12px;
  color: #18181b;
}

.a-story h2:first-child {
  margin-top: 0;
}

.a-story p {
  font-size: 16.5px;
  line-height: 1.72;
  color: #52525b;
  margin: 0 0 16px;
}

.a-story p strong {
  color: #18181b;
  font-weight: 600;
}

.a-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 52px 0 0;
}

.a-card {
  background: #fff;
  border: 1px solid #e7e7ea;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 16px 40px -36px rgba(24, 24, 27, 0.5);
}

.a-card__ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #52525b;
  background: #f4f4f5;
  border: 1px solid #e7e7ea;
  margin-bottom: 15px;
}

.a-card__ic svg {
  width: 21px;
  height: 21px;
}

.a-card h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 700;
  color: #18181b;
}

.a-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #52525b;
}

.a-cta-band {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid #e7e7ea;
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 18px 44px -36px rgba(24, 24, 27, 0.5);
}

.a-cta-band__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #18181b;
}

.a-cta-band p {
  margin: 0;
  font-size: 14.5px;
  color: #52525b;
  line-height: 1.5;
  max-width: 560px;
}

.a-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  padding: 13px 20px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.a-cta:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.a-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s;
}

.a-cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 860px) {
  .a-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .a-profile {
    position: static;
    max-width: 420px;
  }

  .a-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .a-wrap {
    padding: 28px var(--page-gutter) 64px;
  }

  .a-lead {
    font-size: 16.5px;
    margin-bottom: 34px;
  }

  .a-story p {
    font-size: 16px;
  }

  .a-profile {
    max-width: none;
  }

  .a-cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }

  .a-cta {
    width: 100%;
    justify-content: center;
  }
}
