/* Cardly — about.css («О нас») */

.about-hero {
  padding-top: clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
/* soft hue in the lower part of the hero, well clear of the header */
.about-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -18%;
  height: 72%;
  background:
    radial-gradient(38% 45% at 30% 55%, rgba(245, 170, 66, 0.18), transparent 70%),
    radial-gradient(38% 45% at 70% 50%, rgba(80, 188, 255, 0.2), transparent 70%),
    radial-gradient(30% 40% at 50% 72%, rgba(235, 98, 78, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.about-hero__icon {
  display: inline-block;
  margin-bottom: 32px;
}
.about-hero__icon img {
  width: clamp(96px, 14vw, 132px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 18px 50px rgba(80, 140, 180, 0.35);
}
.about-hero .headline { max-width: 900px; margin-inline: auto; }
.about-hero__copy {
  max-width: 720px;
  margin: 28px auto 0;
}

/* Story beats */
.beats {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
}
@media (min-width: 1068px) {
  .beats { grid-template-columns: repeat(3, 1fr); }
}
.beat { background: var(--surface) !important; }
.beat__num {
  display: block;
  margin-bottom: 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}
.beat .h3 { margin-bottom: 12px; }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  list-style: none;
  padding: 0;
}
@media (min-width: 734px) {
  .team { grid-template-columns: repeat(5, 1fr); }
}
.person {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.person:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 734px) {
  .person:last-child:nth-child(odd) { grid-column: auto; }
}
.person__avatar {
  display: grid;
  place-items: center;
  width: clamp(96px, 12vw, 128px);
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.person b { font-size: 17px; letter-spacing: -0.02em; }
.person span:not(.person__avatar) { color: var(--text-2); font-size: 14px; }

/* Partners */
.partners {
  display: grid;
  gap: 20px;
}
@media (min-width: 734px) {
  .partners { grid-template-columns: repeat(3, 1fr); }
}
.partner {
  display: grid;
  gap: 4px;
  padding: 20px 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.partner__logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: #ffffff; /* logos are made for white — keep it in dark mode too */
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.partner__logo img { width: 62%; max-height: 70%; object-fit: contain; }
.partner__logo--fill { background: #05040c; }
.partner__logo--fill img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 22%; }
@media (max-width: 733px) {
  .partner {
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    padding: 14px 18px 14px 14px;
  }
  .partner__logo {
    grid-row: span 2;
    aspect-ratio: 1;
    margin: 0;
    border-radius: var(--radius-xs);
  }
  .partner__logo img { width: 80%; }
  .partner__role { align-self: end; }
  .partner b { align-self: start; }
}
.partner__role { color: var(--text-2); font-size: 14px; }
.partner b { font-size: 19px; letter-spacing: -0.02em; }

/* Contacts */
.contacts {
  display: grid;
  gap: 20px;
}
@media (min-width: 734px) {
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .contact--primary { grid-column: 1 / -1; }
}
@media (min-width: 1068px) {
  .contacts { grid-template-columns: repeat(3, 1fr); }
  .contact--primary { grid-column: auto; }
}
.contact {
  container-type: inline-size;
  display: grid;
  align-content: start;
  gap: 6px;
  transition: transform 0.3s var(--ease);
}
a.contact:hover { transform: translateY(-3px); }
.contact__label { color: var(--text-2); font-size: 14px; font-weight: 500; }
/* Emails and domains never break mid-word: the size follows the card's width
   ("contact@cardlyapp.ru" is ≈10.3em wide in Inter). */
.contact__value {
  margin-bottom: 18px;
  font-size: clamp(15px, 9cqi, 23px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.contact--primary { background: var(--grad) !important; color: #0b2233; }
.contact--primary .contact__label { color: rgba(11, 34, 51, 0.7); }
.contact--primary .link-arrow { color: #0b2233; }

.about-close__cta { margin-top: 32px; }

/* 404 */
.notfound { min-height: calc(100svh - var(--header-h) - 200px); display: grid; align-content: center; }
.notfound__cta { margin-top: 32px; }
