/* ABOUT: V16-inspired independent component; desktop and mobile in one file. */
.about .section-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #505950; font-family: "Onest", Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.about .section-label__dot { display: block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* About */
.about {
  background: #fbfaf8;
  color: #262c28;
  padding: clamp(76px, 8.5vw, 128px) 0;
  scroll-margin-top: 65px;
}

.about__container {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(38px, 4.7vw, 74px);
  align-items: start;
  width: min(90%, 1240px);
  margin-inline: auto;
}

.about__header {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.about__visuals {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  grid-template-rows: 176px minmax(360px, 1fr);
  gap: 18px;
  min-height: 574px;
}

.about__rating {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(168, 170, 153, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f6f2 0%, #f1f0eb 100%);
  box-shadow: 0 20px 46px rgba(23, 30, 24, 0.05);
}

.about__stars {
  color: #c69a36;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.about__rating-caption {
  margin: 0;
  color: #727871;
  font-size: 13px;
  line-height: 1.6;
}

.about__rating-caption strong {
  color: #2d332e;
  font-weight: 600;
}

.about__rating-people img {
  display: block;
  width: min(100%, 160px);
  height: auto;
}

.about__photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d8ded4;
  box-shadow: 0 24px 54px rgba(23, 30, 24, 0.08);
}

.about__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__photo--portrait {
  grid-column: 2;
  grid-row: 1 / 3;
  border-radius: 30px;
}

.about__photo--portrait::after {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(252, 251, 248, 0) 0%,
    rgba(252, 251, 248, 0.08) 50%,
    rgba(252, 251, 248, 0.2) 100%
  );
  pointer-events: none;
}

.about__photo--portrait img {
  object-position: 52% 50%;
}

.about__photo--session {
  grid-column: 1;
  grid-row: 2;
  border-radius: 24px;
}

.about__photo--session img {
  object-position: center center;
}

.about__content {
  min-width: 0;
  padding-top: 6px;
}

.about__title {
  max-width: 660px;
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(40px, 4.05vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #767c75;
  font-size: 16px;
  line-height: 1.7;
}

.about__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
  padding: 30px 0 32px;
  border-top: 1px solid #e4e6df;
  border-bottom: 1px solid #e4e6df;
  scroll-margin-top: 95px;
}

.about__detail {
  min-width: 0;
}

.about__detail-title {
  margin: 0 0 18px;
  color: #232824;
  font-family: "Lora", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.22;
}

.about__detail-text {
  margin: 0;
  color: #777d76;
  font-size: 16px;
  line-height: 1.7;
}

.about__values {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__values li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #777d76;
  font-size: 16px;
  line-height: 1.7;
}

.about__values li::before {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 10.5L7.1 14.4L17 4.8' stroke='%23959a81' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  content: "";
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.about__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 27px;
  border: 1px solid #3a4138;
  border-radius: 999px;
  font-family: "Onest", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.about__button:hover { transform: translateY(-2px); }
.about__button:focus-visible { outline: 2px solid #65735b; outline-offset: 3px; }

.about__button--primary {
  background: transparent;
  color: #383f37;
}

.about__button--primary:hover { background: #e4e4dc; }

.about__button--secondary {
  background: #414943;
  border-color: #414943;
  color: #fbfaf5;
}

.about__button--secondary:hover { background: #515e50; border-color: #515e50; }

@media (max-width: 1100px) and (min-width: 901px) {
  .about__container {
    width: 92%;
    gap: 30px;
  }

  .about__visuals {
    grid-template-rows: 176px minmax(330px, 1fr);
    min-height: 520px;
    gap: 14px;
  }

  .about__rating {
    padding: 18px 18px 16px;
    border-radius: 20px;
  }

  .about__rating-caption {
    font-size: 12px;
  }

  .about__photo--portrait {
    border-radius: 24px;
  }

  .about__photo--session {
    border-radius: 20px;
  }

  .about__title {
    font-size: clamp(36px, 3.6vw, 43px);
  }

  .about__detail-title {
    font-size: 25px;
  }

  .about__button {
    padding-inline: 9px;
    font-size: 14px;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .about {
    padding: 76px 0 82px;
    scroll-margin-top: 60px;
  }

  .about__container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    width: min(calc(100% - 36px), 650px);
  }

  .about__header {
    margin-bottom: 2px;
  }

  .about__visuals {
    order: 2;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    grid-template-rows: clamp(170px, 30vw, 195px) clamp(252px, 60vw, 395px);
    gap: 12px;
    min-height: 0;
  }

  .about__content {
    order: 3;
    padding-top: 0;
  }

  .about__rating {
    padding: 14px 14px 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .about__stars {
    font-size: clamp(16px, 3.7vw, 19px);
  }

  .about__rating-caption {
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.45;
  }

  .about__rating-people img {
    width: min(100%, 148px);
  }

  .about__photo--portrait {
    border-radius: 22px;
  }

  .about__photo--portrait img {
    object-position: 54% center;
  }

  .about__photo--session {
    border-radius: 18px;
  }

  .about__title {
    max-width: 640px;
    font-size: clamp(38px, 5.5vw, 45px);
    line-height: 1.05;
  }

  .about__lead {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.78;
  }

  .about__details {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
    padding: 28px 0 30px;
  }

  .about__detail-title {
    margin-bottom: 14px;
    font-size: 26px;
  }

  .about__detail-text,
  .about__values li {
    font-size: 15px;
    line-height: 1.78;
  }

  .about__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: none;
    margin-top: 26px;
  }

  .about__button,
  .about__button--primary,
  .about__button--secondary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 64px 0 76px;
  }

  .about__container {
    width: calc(100% - 32px);
    gap: 28px;
  }

  .about__visuals {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    grid-template-rows: 175px clamp(220px, 65vw, 290px);
  }

  .about__rating {
    border-radius: 16px;
  }

  .about__photo--portrait {
    border-radius: 20px;
  }

  .about__photo--session {
    border-radius: 16px;
  }

  .about__title {
    font-size: clamp(34px, 8.7vw, 40px);
  }

  .about__button {
    min-height: 56px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__button {
    transition: none;
  }
}


/* Entrance motion: opt-in, stable grid geometry, transforms and opacity only. */
.about.about--motion .about__header,
.about.about--motion .about__rating,
.about.about--motion .about__photo,
.about.about--motion .about__content { opacity: 0; transform: translateY(18px); transition: opacity .78s ease, transform .78s cubic-bezier(.22,1,.36,1); }
.about.about--motion.about--visible .about__header,
.about.about--motion.about--visible .about__rating,
.about.about--motion.about--visible .about__photo,
.about.about--motion.about--visible .about__content { opacity: 1; transform: translateY(0); }
.about.about--motion .about__rating { transition-delay: .08s; }
.about.about--motion .about__photo--session { transition-delay: .18s; }
.about.about--motion .about__photo--portrait { transition-delay: .28s; }
.about.about--motion .about__content { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .about.about--motion .about__header,
  .about.about--motion .about__rating,
  .about.about--motion .about__photo,
  .about.about--motion .about__content { opacity: 1; transform: none; transition: none; }
}

/* Narrow screens: keep rating content inside its own card. */
.about__rating { min-width: 0; }
.about__rating-caption { overflow-wrap: break-word; }
.about__rating-people { min-width: 0; }
@media (max-width: 480px) {
  .about__rating { justify-content: space-between; gap: 8px; padding: 15px 12px; }
  .about__rating-people img { width: min(100%, 130px); }
  .about__rating-caption { font-size: 12px; line-height: 1.4; }
  .about__stars { letter-spacing: .075em; }
}
@media (max-width: 350px) {
  .about__visuals { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 186px 220px; gap: 9px; }
  .about__rating { padding: 12px 10px; }
  .about__stars { font-size: 15px; letter-spacing: .05em; }
}
