.about {
  padding-block: 20px;
}

.about__head {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.851cqw, 16px);
  margin-bottom: clamp(20px, 2.128cqw, 40px);
}

.about__subtitle {
  max-width: 62%;
  font-size: var(--fs-text);
  line-height: 1.6;
  color: var(--color-gray-1);
}

.about__title-muted {
  color: var(--color-gray-2);
}

.about__tabs {
  display: flex;
  gap: var(--gap-cards);
  margin-bottom: var(--gap-cards);
}

.about__tab {
  flex: 1 1 0;
  min-width: min-content;
  padding: clamp(10px, 0.745cqw, 14px) clamp(16px, 1.596cqw, 30px);
  border: 1px solid var(--color-light-blue);
  border-radius: var(--radius-pill);
  font-size: var(--fs-btn);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--color-blue-2);
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.about__tab:not(.about__tab--active):hover {
  border-color: var(--color-blue-2);
  color: var(--color-blue);
}

.about__tab--active {
  border-color: var(--color-blue);
  color: var(--color-white);
  background: var(--color-blue);
}

.about__card {
  display: grid;
  grid-template-columns:
    107.22fr
    70.85fr
    minmax(0, 472.04fr)
    49.89fr
    360fr
    69fr
    minmax(0, 545.91fr)
    85.09fr;
  grid-template-rows: auto auto;
  row-gap: var(--gap-cards);
  align-items: center;
  padding: var(--card-pad);
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.about__nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 0.851cqw;
  height: clamp(242px, 18.617cqw, 350px);
}

.about__scrollbar {
  position: relative;
  flex: none;
  width: clamp(6px, 0.585cqw, 11px);
  height: 100%;
  background: var(--color-light-blue);
  border-radius: 22px;
}

.about__scrollbar-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  background: var(--color-blue-2);
  border-radius: 22px;
  transition: top 0.25s ease;
}

.about__thumbs {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.532cqw, 10px);
  flex: 1;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.about__thumbs::-webkit-scrollbar {
  display: none;
}

.about__thumb {
  position: relative;
  flex: none;
  width: clamp(56px, 4.255cqw, 80px);
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface);
  transition: background-color 0.25s ease;
}

.about__thumb img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.about__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--color-light-blue);
  pointer-events: none;
}

.about__thumb:not(.about__thumb--active):hover {
  background: var(--color-light-blue);
}

.about__thumb--active {
  background: var(--color-blue);
}

.about__info {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.about__name {
  max-width: 83%;
  margin-top: 0.213cqw;
  margin-bottom: 0.798cqw;
  font-size: var(--fs-h3);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.9167;
  color: var(--color-black);
}

.about__lead {
  max-width: 98%;
  font-size: var(--fs-text);
  line-height: 1.4;
  color: var(--color-gray-2);
}

.about__lead .accent,
.about__text .accent {
  color: var(--color-gray-1);
}

.about__photo {
  grid-column: 5;
  grid-row: 1 / span 2;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface);
}

.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.about__photo-empty {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-gray-2);
}

.about__photo--empty .about__photo-img {
  display: none;
}

.about__photo--empty .about__photo-empty {
  display: flex;
}

.about__about {
  grid-column: 7;
  grid-row: 1 / span 2;
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 0.532cqw, 10px);
  margin-bottom: clamp(20px, 2.128cqw, 40px);
}

.about__badge {
  display: inline-flex;
  align-items: center;
  padding: clamp(6px, 0.532cqw, 10px) clamp(12px, 1.064cqw, 20px);
  border-radius: var(--radius-pill);
  font-size: var(--fs-text);
  line-height: 1.4;
  background: var(--color-blue-chip-bg);
  color: var(--color-blue-chip);
}

.about__badge--solid {
  background: var(--color-blue-chip);
  color: var(--color-blue-chip-bg);
}

.about__text {
  max-width: 98%;
  font-size: var(--fs-text);
  line-height: 1.4;
  color: var(--color-gray-2);
}

.about__arrows {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: clamp(6px, 0.532cqw, 10px);
}

.about__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: clamp(40px, 2.66cqw, 50px);
  height: clamp(40px, 2.66cqw, 50px);
  border: 1px solid var(--color-light-blue);
  border-radius: var(--radius-pill);
  color: var(--color-blue-2);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.about__arrow:hover:not(:disabled) {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.about__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.about__card--single .about__nav,
.about__card--single .about__arrows {
  display: none;
}

.about__card--single {
  grid-template-columns:
    minmax(0, 472.04fr)
    49.89fr
    360fr
    69fr
    minmax(0, 545.91fr)
    263.16fr;
}

.about__card--single .about__info { grid-column: 1; }
.about__card--single .about__photo { grid-column: 3; }
.about__card--single .about__about { grid-column: 5; }

@media (max-width: 1280px) {
  .about__tabs {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-gap));
    padding-inline: var(--page-gap);
  }

  .about__tabs::-webkit-scrollbar { display: none; }

  .about__tab { flex: 0 0 auto; }
}

@media (max-width: 1024px) {
  .about__subtitle { max-width: none; }

  .about__card,
  .about__card--single {
    grid-template-columns: minmax(0, 1fr) 49.89px 280px;
    grid-template-rows: auto auto auto auto;
    row-gap: 30px;
    padding: 40px;
  }

  .about__nav {
    grid-column: 1 / -1;
    grid-row: 1;
    height: auto;
  }

  .about__scrollbar { display: none; }

  .about__thumbs {
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .about__thumb {
    width: 80px;
    height: 80px;
  }

  .about__info,
  .about__card--single .about__info { grid-column: 1; grid-row: 2; }
  .about__photo,
  .about__card--single .about__photo { grid-column: 3; grid-row: 2 / span 2; width: 280px; height: 280px; }
  .about__about,
  .about__card--single .about__about { grid-column: 1; grid-row: 3; margin-top: 0; }
  .about__arrows { grid-column: 1 / -1; grid-row: 4; }

  .about__name { font-size: 32px; }
}

@media (max-width: 768px) {
  .about__card,
  .about__card--single {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px;
  }

  .about__info,
  .about__card--single .about__info { grid-column: 1; grid-row: 2; }
  .about__photo,
  .about__card--single .about__photo {
    grid-column: 1;
    grid-row: 3;
    width: 240px;
    height: 240px;
    justify-self: center;
  }
  .about__about,
  .about__card--single .about__about { grid-column: 1; grid-row: 4; }
  .about__arrows { grid-column: 1; grid-row: 5; justify-content: center; }

  .about__name { font-size: 28px; }
  .about__badges { margin-bottom: 24px; }
}

@media (max-width: 767px) {
  .about { padding-block: 50px; }

  .about__title,
  .about__tabs {
    padding-inline: 10px;
  }

  .about__title { margin-bottom: 20px; }

  .about__tabs {
    flex-direction: column;
    gap: 10px;
    margin-inline: 0;
    margin-bottom: 20px;
    overflow: visible;
  }

  .about__tab {
    flex: none;
    padding: 14px 30px;
    white-space: normal;
    text-align: center;
  }

  .about__card,
  .about__card--single {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }

  .about__nav { order: 1; }
  .about__arrows { order: 2; }
  .about__info { order: 3; }
  .about__photo { order: 4; }
  .about__about { order: 5; }

  .about__arrows,
  .about__card--single .about__arrows {
    margin-top: 5px;
    margin-bottom: 15px;
    justify-content: flex-start;
  }

  .about__arrow {
    width: 40px;
    height: 40px;
  }

  .about__nav {
    gap: 0;
    margin-inline: -20px;
  }

  .about__thumbs {
    gap: 10px;
    padding-inline: 20px;
    scroll-padding-inline: 20px 56px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l, 20px), #000 calc(100% - var(--fade-r, 56px)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l, 20px), #000 calc(100% - var(--fade-r, 56px)), transparent 100%);
  }

  .about__info,
  .about__card--single .about__info { margin-top: 0; }

  .about__name {
    max-width: none;
    margin-bottom: 20px;
  }

  .about__lead { max-width: none; }

  .about__photo,
  .about__card--single .about__photo {
    width: 220px;
    height: 220px;
    align-self: center;
  }

  .about__about,
  .about__card--single .about__about { margin-top: 0; }

  .about__badges {
    justify-content: center;
    margin-bottom: 20px;
  }

  .about__badge { font-size: 12px; }

  .about__text { max-width: none; }
}

.about__mascot { display: none; }

@media (min-width: 1281px) {
  .about__card,
  .about__card--single {
    position: relative;
    overflow: hidden;
    grid-template-columns:
      53fr 123fr 32fr 360fr 37fr
      minmax(0, 834fr) 441fr;
    grid-template-rows: 4.787cqw 10.851cqw 13.138cqw;
    row-gap: 0;
    column-gap: 0;
    align-items: start;
    padding: 0;
  }

  .about__card .about__nav,
  .about__card .about__arrows,
  .about__card .about__photo { grid-row: 1 / span 3; }

  .about__card .about__nav { grid-column: 2; width: 6.543cqw; min-width: 0; margin-top: 4.362cqw; }

  .about__card .about__arrows {
    grid-column: 2;
    margin-top: 24.68cqw;
    min-width: 0;
    position: relative;
    left: 1.49cqw;
    margin-left: 0;
  }

  .about__card .about__photo { grid-column: 4; margin-top: 3.883cqw; }

  .about__card .about__info {
    grid-column: 6 / 8;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
    padding-left: 0.9cqw;
  }

  .about__card .about__about {
    position: relative;
    z-index: 1;
    grid-column: 6;
    grid-row: 3;
    align-self: start;
  }

  .about__name {
    max-width: none;
    margin: 0 0 0.798cqw;
    font-size: var(--fs-h3);
    line-height: 0.9167;
  }

  .about__lead {
    max-width: 41cqw;
    margin-left: 0.43cqw;
    font-size: clamp(18px, 1.702cqw, 32px);
    line-height: 1.06;
  }

  .about__badges { margin-bottom: 0.37cqw; }

  .about__text {
    max-width: none;
    min-height: 9.255cqw;
    padding: 1.6cqw 1.22cqw 1.6cqw 4.68cqw;
    border-radius: 20px;
    background:
      url('../assets/img/about/quote.webp') 0.64cqw 1.01cqw / 1.755cqw 2.234cqw no-repeat,
      url('../assets/img/about/quote.webp') 1.97cqw 1.01cqw / 1.755cqw 2.234cqw no-repeat,
      var(--tint-cream-3);
    font-size: clamp(16px, 1.436cqw, 27px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
  }

  .about__mascot {
    display: block;
    position: absolute;
    z-index: 0;
    left: 75.32cqw;
    top: 14.36cqw;
    width: 22.82cqw;
    height: auto;
    pointer-events: none;
  }
}
