/* About page — /pro-nas/ */

.about-page {
  overflow-x: clip;
}

.about-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 80% at 8% 20%, rgba(181, 0, 0, 0.07), transparent 55%),
    linear-gradient(165deg, #F7F9FB 0%, var(--color-bg-light) 48%, #E8EEF2 100%);
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 156, 163, 0.55), transparent);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.about-hero__card {
  position: relative;
}

.about-hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    linear-gradient(145deg, var(--color-deep-steel) 0%, #2C3842 55%, #1E272E 100%);
  box-shadow:
    0 24px 48px rgba(44, 56, 66, 0.22),
    8px 8px 0 0 rgba(181, 0, 0, 0.28);
  overflow: hidden;
}

.about-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  -webkit-user-select: none;
  user-select: none;
}

.about-hero__frame::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, var(--color-accent-red), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.about-hero__mark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem;
  text-align: center;
}

.about-hero__initials {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: -0.03em;
}

.about-hero__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-muted);
}

.about-hero__glass {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.about-hero__frame:has(.about-hero__photo) .about-hero__glass {
  background: rgba(30, 39, 46, 0.58);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
}

.about-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--color-accent-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-kicker::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--color-accent-red);
  flex-shrink: 0;
}

.about-hero__copy h1 {
  margin: 0 0 0.75rem;
  color: var(--color-deep-steel);
  max-width: 18ch;
}

.about-hero__subtitle {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--color-muted-text);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-body {
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.about-body__inner > *:first-child {
  margin-top: 0;
}

/* CMS-editable blocks */
.about-lead {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.about-lead p {
  margin: 0 0 1rem;
  color: var(--color-text-main);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-lead p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--color-card-bg);
  border: 1px solid rgba(140, 156, 163, 0.4);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow-soft);
}

.about-stat {
  text-align: center;
  padding: 0.5rem 0.35rem;
}

.about-stat:not(:last-child) {
  border-right: 1px solid rgba(140, 156, 163, 0.35);
}

.about-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent-red);
  margin-bottom: 0.4rem;
}

.about-stat__label {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-muted-text);
  max-width: 18ch;
  margin-inline: auto;
}

.about-block {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--color-bg-light);
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid rgba(140, 156, 163, 0.28);
}

.about-block h2 {
  margin: 0 0 0.65rem;
  color: var(--color-deep-steel);
}

.about-block > p {
  margin: 0 0 1.15rem;
  color: var(--color-muted-text);
  max-width: 44rem;
}

.about-block > p:last-child {
  margin-bottom: 0;
}

.about-principles__grid {
  --grid-cols: 1;
  --grid-gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--grid-gap);
  width: 100%;
  margin-top: 1.25rem;
}

.about-principles__grid > .about-principle {
  width: calc((100% - (var(--grid-cols) - 1) * var(--grid-gap)) / var(--grid-cols));
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .about-principles__grid {
    --grid-cols: 3;
  }
}

.about-principle {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem;
  background: var(--color-card-bg);
  border: 1px solid rgba(140, 156, 163, 0.35);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.about-principle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.about-principle__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-accent-red);
  margin-bottom: 0.55rem;
  line-height: 1;
}

.about-principle h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--color-deep-steel);
}

.about-principle p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted-text);
  line-height: 1.55;
  flex: 1 1 auto;
}

.about-certs {
  --grid-cols: 1;
  --grid-gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--grid-gap);
  width: 100%;
  margin-top: 1.15rem;
}

.about-certs > .about-cert {
  width: calc((100% - (var(--grid-cols) - 1) * var(--grid-gap)) / var(--grid-cols));
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .about-certs {
    --grid-cols: 2;
  }
}

.about-cert {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: var(--color-card-bg);
  border: 1px solid rgba(140, 156, 163, 0.35);
  border-radius: var(--radius);
}

.about-cert__icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--color-accent-red-soft);
  color: var(--color-accent-red);
}

.about-cert > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.about-cert h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--color-deep-steel);
}

.about-cert p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted-text);
  line-height: 1.5;
  flex: 1 1 auto;
}

/* Reveal — reuse data-reveal from main.js */
.about-page [data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--about-delay, 0ms);
}

.about-page [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes aboutFadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero__copy {
  animation: aboutFadeInUp 0.85s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .about-page [data-reveal],
  .about-hero__copy,
  .about-principle {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-hero__frame {
    min-height: 0;
    max-width: 22rem;
    margin-inline: auto;
    box-shadow:
      0 18px 36px rgba(44, 56, 66, 0.18),
      6px 6px 0 0 rgba(181, 0, 0, 0.24);
  }

  .about-hero__copy h1 {
    max-width: none;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem 0.85rem;
  }

  .about-stat {
    padding: 1rem 0.5rem;
  }

  .about-stat:not(:last-child) {
    border-right: 0;
  }

  .about-stat:nth-child(odd) {
    border-right: 1px solid rgba(140, 156, 163, 0.35);
  }

  .about-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(140, 156, 163, 0.35);
  }

  .about-stat__label {
    max-width: 22ch;
  }
}

@media (max-width: 767.98px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.35rem 1rem;
  }

  .about-stat {
    padding: 1.1rem 0.25rem;
  }

  .about-stat:not(:last-child),
  .about-stat:nth-child(odd),
  .about-stat:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 0;
  }

  .about-stat:not(:last-child) {
    border-bottom: 1px solid rgba(140, 156, 163, 0.35);
  }

  .about-stat__label {
    max-width: none;
  }

  .about-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-block {
    padding: 1.25rem 1.1rem;
  }
}

@media (max-width: 479.98px) {
  .about-hero__glass {
    font-size: 0.75rem;
    padding: 0.6rem 0.75rem;
  }
}
