/* =============================================
   HERO
   ============================================= */

.about-hero {
  padding: 148px 0 104px;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-hero__content {
  
}

.about-hero__description {
  margin-top: 20px;
}

.about-hero__cta {
  margin-top: 40px;
}

.about-hero__image {
  height: 100%;
  position: relative;
  width: 100%;
}

.about-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

/* =============================================
   КТО МЫ
   ============================================= */

.about-who {
  margin-bottom: 120px;
}

.about-who__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.about-who__description {
  margin-top: 20px;
  color: var(--color-muted);
}

.about-who__quote {
  position: relative;
  height: max-content;
  padding: 86px 32px;
  font-style: italic;
}

.about-who__quote * {
  font-size: 26px;
}

.about-who__quote > span:nth-child(odd) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1px;
  width: calc(100% + 12px);
  left: -6px;
  background-color: var(--accent);
  position: absolute;
}

.about-who__quote > span:nth-child(even) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 1px;
  height: calc(100% + 12px);
  top: -6px;
  background-color: var(--accent);
  position: absolute;
}

.about-who__quote > span:nth-child(even)::before {
  content: "";
  bottom: calc(100%);
  border-left: 4px solid transparent;
  border-top: 5px solid #b38642;
  border-right: 4px solid transparent;
}

.about-who__quote > span:nth-child(even)::after {
  content: "";
  bottom: calc(100%);
  border-left: 4px solid transparent;
  border-bottom: 5px solid #b38642;
  border-right: 4px solid transparent;
}

.about-who__quote > span:nth-child(odd)::before {
  content: "";
  bottom: calc(100%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #b38642;
}

.about-who__quote > span:nth-child(odd)::after {
  content: "";
  bottom: calc(100%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 5px solid #b38642;
}

.about-who__quote > span:nth-child(1) {
  top: 0;
}
.about-who__quote > span:nth-child(2) {
  left: 0;
}
.about-who__quote > span:nth-child(3) {
  bottom: 0;
}
.about-who__quote > span:nth-child(4) {
  right: 0;
}

.about-who__wrapper {
  display: flex;
  gap: 10px;
  height: 100%;
  margin-left: 52px;
}

.about-who__wrapper > span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 1px;
  height: 100%;
  background-color: var(--accent);
}

.about-who__wrapper > span:nth-child(2) {
  height: calc(100% - 40px);
}

.about-who__wrapper > span:nth-child(3) {
  height: calc(100% - 100px);
}


.about-who__wrapper > span::before {
  content: "";
  
  bottom: calc(100%);
  

  border-left: 4px solid transparent;
  border-top: 5px solid #b38642;
  border-right: 4px solid transparent;
}

.about-who__wrapper > span::after {
  content: "";
  
  bottom: calc(100%);
  

  border-left: 4px solid transparent;
  border-bottom: 5px solid #b38642;
  border-right: 4px solid transparent;
}

.about-who__content {
  padding-bottom: 40px;
}

.about-who__line {
  display: flex;
  position: absolute;
  content: '';
  width: 100%;
  height: 1px;
  justify-content: space-between;
  align-items: center;
  background-color: var(--accent);
  top: 100%;
  left: 0;
}

.about-who__line::before {
  content: "";
  bottom: calc(100%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #b38642;
}

.about-who__line::after {
  content: "";
  bottom: calc(100%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 5px solid #b38642;
}

/* =============================================
   КОМАНДА
   ============================================= */

.about-team {
  padding-bottom: 60px;
}

.team-slider {
  margin-top: 40px;
  padding-bottom: 8px;
  position: relative;
}

.about-team__line {
  display: flex;
  content: '';
  width: 100%;
  height: 1px;
	    margin-top: -1px;
  justify-content: space-between;
  align-items: center;
  background-color: var(--accent);
}

.about-team__line::before {
  content: "";
  bottom: calc(100%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #b38642;
}

.about-team__line::after {
  content: "";
  bottom: calc(100%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 5px solid #b38642;
}


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



.team__photo {
  height: 300px;
  width: 100%;
}

.team__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__info {
  height: 200px;
  text-align: center;
  padding:20px 16px;
  position: relative;
	display: grid;
	grid-template-rows: 70px 1fr;
}

.team__name {
	align-self: center;
}

@media (max-width: 768px) {
	.team__info {
		display: flex;
		flex-direction: column;
	}
}

.team__info > span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 1px;
  height: calc(100%);
  top: 0;
  background-color: var(--accent);
  position: absolute;
}

.team__info > span::before {
  content: "";
  bottom: calc(100%);
  border-left: 4px solid transparent;
  border-top: 5px solid #b38642;
  border-right: 4px solid transparent;
}

.team__info > span::after {
  content: "";
  bottom: calc(100%);
  border-left: 4px solid transparent;
  border-bottom: 5px solid #b38642;
  border-right: 4px solid transparent;
}

.team__info > span:nth-child(1) {
  left: 0;
}
.team__info > span:nth-child(2) {
  right: 0;
}


.team__position {
  margin-top: 20px;
	align-self: center;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--secondary);
}

.team-slider__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.team-slider__nav:has(.swiper-button-lock) {
  margin-top: 0px;
}

.team-slider .swiper-button-prev,
.team-slider .swiper-button-next {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  width: 52px;
  height: 52px;
  color: var(--secondary);
}

.team-slider .swiper-button-prev svg,
.team-slider .swiper-button-next svg {
  width: 24px;
  height: 24px;
}

.team-slider .swiper-button-prev::before,
.team-slider .swiper-button-next::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  z-index: -1;
}

.team-slider .swiper-button-prev::after,
.team-slider .swiper-button-next::after {
  display: none;
}

.team-slider .swiper-button-lock {
  display: none !important;
}

/* =============================================
   ПРИНЦИПЫ
   ============================================= */

.principles {
  padding-bottom: 60px;
}

.principles__steps {
  position: relative;
  display: flex;
  margin-top: 40px;
  gap: 20px 6px;
}

.principles__step {
  position: relative;
  flex: 1;
  padding: 18px 15px 16px;
  border: 1px solid var(--accent);
}

.principles__step::before {
  display: block;
  content: '';
  pointer-events: none;
  width: calc(100% - 10px);
  height: calc(100% - 16px);
  border: 1px solid var(--accent);
  position: absolute;
  left: 5px;
  top: 8px;
}

.principles__index {
  display: inline-block;
  font-family: 'EdgeLine', var(--font);
  padding-bottom: 4px;
  font-size: 30px;
  line-height: 100%;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.principles__title {
  margin-top: 20px;
}

.principles__description {
  margin-top: 20px;
  color: var(--color-muted);
}

.principles__sep {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  max-height: 192px;
}

.principles__sep span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 30px;
  border: 1px solid var(--accent);
}

.principles__sep span::before {
  display: block;
  content: '';
  height: 70%;
  width: 78%;
  background-color: var(--secondary);
}

/* =============================================
   ОТЗЫВЫ
   ============================================= */

.reviews {
  position: relative;
  padding: 60px 0;
}

.reviews__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.reviews__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.reviews__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews .container {
  position: relative;
  z-index: 1;
}

.reviews__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.reviews__heading {
  flex: 1;
  order: 1;
}

.reviews-slider__nav {
  flex-shrink: 0;
  order: 2;
}

.reviews-slider {
  width: 100%;
  flex-basis: 100%;
  order: 3;
  margin-top: 40px;
}

.reviews-slider__card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--accent);
}

.reviews-slider__card img {
  display: block;
  max-width: 100%;
  height: 475px;
  object-fit: contain;
}

.reviews-slider__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.reviews-slider__nav .swiper-button-prev,
.reviews-slider__nav .swiper-button-next {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 0;
  width: 52px;
  height: 52px;
  color: var(--secondary);
}

.reviews-slider__nav .swiper-button-prev svg,
.reviews-slider__nav .swiper-button-next svg {
  width: 24px;
  height: 24px;
}

.reviews-slider__nav .swiper-button-prev::before,
.reviews-slider__nav .swiper-button-next::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  z-index: -1;
}

.reviews-slider__nav .swiper-button-prev::after,
.reviews-slider__nav .swiper-button-next::after {
  display: none;
}

@media (max-width: 1080px) {
  .reviews__inner {
    flex-direction: column;
  }

  .reviews-slider {
    order: 2;
    margin-top: 0;
  }

  .reviews-slider__nav {
    order: 3;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .reviews {
    padding: 22px 0;
  }

  .reviews-slider {
    margin-top: 24px;
  }

  .reviews-slider__card {
    padding: 10px;
  }

  .reviews-slider__card img {
    background-color: #fff;
  }
}

/* =============================================
   АДАПТИВ
   ============================================= */

@media (max-width: 1280px) {
  .principles__steps {
    flex-wrap: wrap;
    gap: 0;
  }

  .principles__step {
    min-width: 300px;
  }

  .principles__sep:nth-child(even) {
    display: none;
  }
}

@media (max-width: 1080px) {
  .about-hero__inner {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .about-hero__description {
    margin-top: 10px;
  }

  .about-hero {
    padding: 79px 0 60px;
  }

  .about-hero__image {
    height: 300px;
    width: calc(100% + 20px);
    margin-left: -10px;
  }

  .about-who {
    margin-bottom: 60px;
  }

  
  
  .about-who__inner {
    flex-direction: column;
    gap: 32px;
  }

  .about-hero__content {
    max-width: 560px;
  }
  
.about-who__quote * {
  font-size: 24px;
}

.about-who__quote {
  padding: 40px

}

.about-who__wrapper {
  margin-left: 0;
  padding-bottom: 23px;
  height: auto;
}

.about-who__content {
  padding-bottom: 0;
}

.about-who__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.about-who__wrapper > span:first-child {
  display: none;
}

.about-who__wrapper > span:nth-child(2) {
  height: calc(100% + 23px);
}
.about-who__wrapper > span:nth-child(3) {
  height: calc(100% + 10px);
}

.about-who__quote > span:nth-child(4) {
  display: none;
}

.about-who__line {
  display: none;
}

  .principles__step {
    flex: 1 1 33%;
  }

}

@media (max-width: 768px) {
  .about-hero__cta {
    max-width: 100%;
    margin-top: 10px;
  }

  .about-hero__content {
    max-width: 100%;
  }

  .team__info {
    height: 100px;
    padding-top: 0;
  }

  .team__photo {
            width: 100%;
        aspect-ratio: 3 / 4;
        height: 100%;
  }

  .team__card {
    gap: 10px;
  }

  .team-slider__nav {
    margin-top: 10px;
  }

  .principles {
    padding: 0 0 60px;
  }

  .principles__steps {
    flex-direction: column;
  }

  .principles__step {
    padding: 15px;
  }

  .principles__step::before {
    height: calc(100% + -10px);
    top: 5px;
  }

  .principles__title,
  .principles__description {
    margin-top: 10px;
  }
}
