/* Страница «Знакомство с нами». */

.about__head {
  display: flex;
  align-items: center;
  padding: clamp(24px, 2.6vw, 44px) clamp(22px, 3.6vw, 50px);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  background: var(--wine);
  animation: pop-in 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: auto;
}

.about__head h1 {
  font-size: var(--title-lg);
  line-height: 1;
  color: var(--cream);
}

.problem {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: var(--pad-card);
  border-radius: clamp(28px, 2.6vw, 48px);
  border: 2px solid var(--ink);
  background: var(--blue);
  overflow: hidden;
}

.problem__body {
  position: relative;
  max-width: 830px;
}

.problem__title {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

.problem__text {
  margin-top: clamp(22px, 3vw, 66px);
  font-family: var(--font-hand);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--gray);
}

.problem .btn {
  min-width: 299px;
  margin-top: clamp(24px, 3vw, 58px);
}

.problem__art {
  position: relative;
  min-height: 200px;
}

.problem__art img {
  position: absolute;
  right: -10%;
  top: -8%;
  width: 92%;
  animation: drift-right 1.1s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.benefits__title {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(220px, 20vw, 453px);
  padding: clamp(24px, 2.4vw, 42px);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  overflow: hidden;
}

.benefits__title img {
  position: absolute;
  left: 4%;
  bottom: -16%;
  width: 38%;
  pointer-events: none;
  animation: drift-left 1.1s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 25%;
}

.benefits__title h2 {
  position: relative;
  max-width: 380px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.15;
  text-align: right;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 48px);
}

.benefit {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(100px, 8vw, 119px);
  padding: 22px clamp(22px, 3vw, 60px) 22px clamp(110px, 16vw, 285px);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: transform 0.25s, background 0.25s;
  animation: rise 0.7s both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

.benefit:hover {
  transform: scale(1.02);
  background: var(--cream);
}

.benefit img {
  position: absolute;
  left: 5%;
  top: 8%;
  width: clamp(64px, 7vw, 120px);
  pointer-events: none;
}

.benefit p {
  font-family: var(--font-hand);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--gray);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 48px);
  scroll-margin-top: 110px;
}

.stats__pie {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 32px);
  padding: var(--pad-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  background: var(--blue);
}

.stats__pie .pie {
  width: min(100%, 546px);
}

.stats__pie .pie span {
  font-size: clamp(20px, 2.6vw, 40px);
}

.stats__pie p {
  font-family: var(--font-hand);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--gray);
}

.stats__cards {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 48px);
}

.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 48px);
  min-height: clamp(220px, 18vw, 354px);
  padding: var(--pad-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: transform 0.25s, background 0.25s;
  animation: zoom-in 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 55%;
}

.fact:hover {
  transform: translateY(-6px);
  background: var(--cream);
}

.fact img {
  position: absolute;
  pointer-events: none;
}

.fact__number {
  position: relative;
  max-width: 62%;
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1;
  color: var(--gray);
}

.fact__text {
  position: relative;
  /* рисунок занимает правую часть карточки — текст туда не заходит */
  max-width: min(369px, 62%);
  font-family: var(--font-hand);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--gray);
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 48px);
  scroll-margin-top: 110px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(360px, 28vw, 529px);
  padding: var(--pad-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
  animation: zoom-in 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

.step:hover {
  transform: translateY(-8px) scale(1.015);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--blue);
}

/* Рисунок занимает отдельную строку-подложку под текстом: так тёмная
   фигура никогда не оказывается под тёмными буквами. */
.step__art {
  position: relative;
  flex: 1;
  min-height: 90px;
  margin-top: 18px;
}

.step img {
  position: absolute;
  bottom: -18%;
  max-width: 100%;
  max-height: 132%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}

.step__title {
  position: relative;
  max-width: 420px;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.15;
}

.step__text {
  position: relative;
  margin-top: 18px;
  max-width: 330px;
  font-size: var(--text);
  line-height: 1.25;
}

.step .btn {
  position: relative;
  align-self: flex-start;
  min-width: 230px;
  margin-top: auto;
}

.quote {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(220px, 18vw, 331px);
  padding: clamp(28px, 3vw, 40px) clamp(22px, 3vw, 115px);
  /* справа оставляем место под рисунок, иначе текст уходит под него */
  padding-right: calc(18% + clamp(22px, 3vw, 40px));
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  background: var(--blue);
  overflow: hidden;
}

.quote img {
  position: absolute;
  right: 2%;
  top: -30%;
  width: 18%;
  max-height: 160%;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  animation: drift-right 1.1s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 25%;
}

.quote p {
  position: relative;
  max-width: 1110px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.25;
  text-align: right;
}
