/* =============================================
   ABOUT — page-specific styles
   ============================================= */

main.blocks.about-page {
  gap: 56px !important;
}

.ab-hero,
.ab-dirs,
.ab-team,
.ab-aud,
.ab-reviews,
.ab-docs {
  padding: 0 32px;
}

.ab-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ab-back__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 6px;
  background: var(--color-white-second);
  border-radius: 50px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-grey);
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}

.ab-back__link:hover {
  color: var(--color-grey);
}

.ab-hero__title,
.ab-section__title {
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0;
}

.ab-hero__desc,
.ab-section__desc {
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #5C5A63;
  margin: 0;
  max-width: 860px;
}

.ab-hero__image {
  width: 100%;
  min-height: 400px;
  border-radius: 40px;
  overflow: hidden;
}

.ab-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.ab-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ab-stat {
  background: var(--color-white-second, #F3F3F3);
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}

.ab-stat strong {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.ab-stat span {
  font-size: 14px;
  line-height: 20px;
  color: #5C5A63;
}

.ab-dirs,
.ab-team,
.ab-reviews {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ab-dirs {
  padding-right: 0;
}

.ab-dirs__head,
.ab-team__head,
.ab-reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.ab-dirs__head {
  padding-right: 32px;
}

.ab-dirs__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.ab-slider__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ab-slider__btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white-second, #F3F3F3);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ab-slider__btn:hover {
  background: var(--color-black);
  color: #fff;
}

.ab-dirs__viewport,
.ab-team__viewport,
.ab-reviews__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.ab-dirs__viewport::-webkit-scrollbar,
.ab-team__viewport::-webkit-scrollbar,
.ab-reviews__viewport::-webkit-scrollbar {
  display: none;
}

.ab-dirs__track,
.ab-team__track,
.ab-reviews__track {
  display: flex;
  gap: 20px;
}

.ab-dirs__track {
  padding-right: 32px;
}

.ab-dirs__card {
  flex: 0 0 calc((100% - 50px) / 3.28);
  min-width: 280px;
  background: var(--color-white-second);
  border-radius: 32px;
  border: 0.3px solid var(--color-secondary-grey);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ab-dirs__card-img {
  width: 100%;
  height: 280px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
}

.ab-dirs__card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}

.ab-dirs__card-title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0;
}

.ab-dirs__card-desc {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #5C5A63;
  margin: 0;
  flex: 1;
}

.ab-dirs__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  min-height: 44px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  transition: background 0.25s ease;
}

.ab-dirs__card-btn:hover {
  background: var(--color-accent, #FDA206);
  color: #fff;
}

.ab-team .ab-slider__nav {
  display: none;
}

.ab-team__viewport {
  overflow: visible;
}

.ab-team__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.ab-team__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-team__photo-wrap {
  position: relative;
}

.ab-team__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  background: #e7e7ea;
  display: block;
}

.ab-team__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--color-accent, #FDA206);
  color: #2B2A32;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ab-team__name {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--color-black);
}

.ab-team__role {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: #918F99;
}

.ab-team__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-team__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-black);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  word-break: break-word;
}

.ab-team__contact:hover {
  color: var(--color-accent, #FDA206);
}

.ab-aud {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ab-aud__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.ab-aud__card {
  background: var(--color-white-second, #F3F3F3);
  border-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.ab-aud__card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-black);
}

.ab-aud__card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #5C5A63;
}

.ab-reviews__card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 260px;
  background: var(--color-white-second, #F3F3F3);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}

.ab-reviews__stars {
  margin: 0;
  color: var(--color-accent, #FDA206);
  letter-spacing: 2px;
  font-size: 16px;
}

.ab-reviews__text {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 24px;
  color: #3A3940;
}

.ab-reviews__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-reviews__meta strong {
  font-size: 16px;
  color: var(--color-black);
}

.ab-reviews__meta span {
  font-size: 14px;
  color: #918F99;
}

.ab-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ab-reviews__dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #D9D9DB;
  cursor: pointer;
}

.ab-reviews__dot.is-active {
  background: var(--color-accent, #FDA206);
}

.ab-docs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ab-docs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ab-docs__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ab-docs__card:hover {
  border-color: #C8C8CC;
  box-shadow: 0 6px 18px rgba(43, 42, 50, 0.06);
}

.ab-docs__info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-black);
}

.ab-docs__info span {
  font-size: 13px;
  color: #918F99;
}

.ab-docs__open {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
}

.about-page .cta__title {
  line-height: 1.15;
}

/* contacts duplicate */
.about-page .ct2-cards {
  padding: 0 32px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.about-page .ct2-card {
  flex: 1;
  background: var(--color-white-second);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-page .ct2-card__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.about-page .ct2-card__icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--color-secondary-grey);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-page .ct2-card__icon-wrap img {
  width: 24px;
  height: 24px;
}

.about-page .ct2-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-page .ct2-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-grey);
  line-height: 16px;
}

.about-page .ct2-card__value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 20px;
  text-decoration: none;
}

a.about-page .ct2-card__value:hover,
.about-page a.ct2-card__value:hover {
  color: var(--color-accent);
}

.about-page .ct2-map {
  padding: 0 32px;
}

.about-page .ct2-map__frame {
  width: 100%;
  height: 520px;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

.about-page .ct2-map__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

.about-page .ct2-map__frame.active iframe {
  pointer-events: auto;
}

.about-page .ct2-map__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.about-page .ct2-map__hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(43, 42, 50, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.about-page .ct2-map__frame.active .ct2-map__hint,
.about-page .ct2-map__frame.active .ct2-map__overlay {
  display: none;
}

.about-page .ct2-map__route {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  display: none;
  background: var(--color-black);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .ab-hero__stats,
  .ab-aud__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-dirs__card {
    flex-basis: calc((100% - 20px) / 2.35);
  }

  .ab-reviews__card {
    flex-basis: calc((100% - 20px) / 2.15);
  }

  .about-page .ct2-cards {
    flex-wrap: wrap;
  }

  .about-page .ct2-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }
}

@media (max-width: 900px) {
  main.blocks.about-page {
    gap: 36px !important;
  }

  .ab-hero,
  .ab-dirs,
  .ab-team,
  .ab-aud,
  .ab-reviews,
  .ab-docs,
  .about-page .ct2-cards,
  .about-page .ct2-map {
    padding: 0 16px;
  }

  .ab-dirs {
    padding-right: 16px;
  }

  .ab-dirs__head,
  .ab-dirs__track {
    padding-right: 0;
  }

  .ab-hero__title,
  .ab-section__title {
    font-size: 32px;
    line-height: 38px;
  }

  .ab-hero__desc,
  .ab-section__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .ab-hero__image,
  .ab-hero__image img {
    min-height: 240px;
    border-radius: 24px;
  }

  .ab-dirs__head,
  .ab-team__head,
  .ab-reviews__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ab-dirs .ab-slider__nav {
    display: none;
  }

  .ab-dirs__viewport,
  .ab-dirs__track {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 16px;
  }

  .ab-dirs__card {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 12px;
    gap: 16px;
  }

  .ab-dirs__card-img {
    height: 200px;
    border-radius: 16px;
  }

  .ab-dirs__card-title {
    font-size: 18px;
    line-height: 22px;
  }

  .ab-team .ab-slider__nav {
    display: flex;
  }

  .ab-team__viewport {
    overflow-x: auto;
  }

  .ab-team__track {
    display: flex;
    gap: 16px;
  }

  .ab-team__card {
    flex: 0 0 78%;
    min-width: 240px;
  }

  .ab-team__name {
    font-size: 20px;
    line-height: 26px;
  }

  .ab-aud__grid {
    grid-template-columns: 1fr;
  }

  .ab-aud__card {
    min-height: 0;
  }

  .ab-reviews__card {
    flex-basis: 86%;
    min-height: 240px;
  }

  .ab-docs__grid {
    grid-template-columns: 1fr;
  }

  .about-page .ct2-cards {
    flex-direction: column;
    gap: 12px;
  }

  .about-page .ct2-map__frame {
    height: 420px;
    border-radius: 24px;
  }

  .about-page .ct2-map__route {
    display: block;
  }
}

@media (max-width: 480px) {
  main.blocks.about-page {
    padding-top: 8px;
    gap: 28px !important;
  }

  .ab-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ab-stat {
    min-height: 96px;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .ab-stat strong {
    font-size: 16px;
    line-height: 22px;
  }

  .ab-hero__title,
  .ab-section__title {
    font-size: 26px;
    line-height: 32px;
  }

  .ab-team__card {
    flex-basis: 82%;
  }

  .ab-reviews__card {
    padding: 20px 16px;
    min-height: 0;
  }
}

/* align-20261008 */
.ab-hero__desc,
.ab-section__desc,
.ab-dirs__intro,
.ab-dirs__card-desc,
.ab-reviews__text,
.ab-aud__card p,
.about-page .ct2-card__text {
  max-width: none;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ab-dirs__intro {
  flex: 1 1 auto;
}
