/* =========================================================
   Anna Mariya Borodina - Professional Profile
   Safi Miran Denver page style
   ========================================================= */

.amb-page {
  --amb-dark: #2f2521;
  --amb-text: rgba(47, 37, 33, .84);
  --amb-muted: rgba(47, 37, 33, .74);
  --amb-soft: #f7f3f1;
  --amb-cream: #f7f3f1;
  --amb-line: rgba(47, 37, 33, .12);
  --amb-gold: #b08a6a;
  --amb-white: #ffffff;
  --amb-shadow: 0 24px 70px rgba(47, 37, 33, .10);
  color: var(--amb-text);
  background: #fff;
}

.amb-page * {
  box-sizing: border-box;
}

.amb-page img {
  max-width: 100%;
  height: auto;
}

.amb-section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.amb-section--soft {
  background: var(--amb-soft);
}

.amb-kicker {
  color: var(--amb-gold);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 16px;
}

.amb-title {
  color: var(--amb-dark);
  font-size: clamp(34px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
  margin: 0;
}

.amb-copy {
  color: var(--amb-text);
  font-size: 17px;
  line-height: 1.78;
}

.amb-copy p {
  margin: 0 0 18px;
}

.amb-copy p:last-child {
  margin-bottom: 0;
}

.amb-section-head {
  max-width: 880px;
  margin: 0 auto 46px;
  text-align: center;
}

/* HERO */
.amb-hero {
  background: var(--amb-cream);
  padding: clamp(54px, 7vw, 92px) 0;
}

.amb-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
}

.amb-hero__content {
  max-width: 610px;
}

.amb-hero__serif {
  color: var(--amb-gold);
  font-size: 16px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
}

.amb-hero__location {
  color: var(--amb-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.amb-hero__title {
  color: var(--amb-dark);
  font-size: clamp(44px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 800;
  margin: 0;
}

.amb-hero__rule {
  width: 74px;
  height: 2px;
  background: var(--amb-gold);
  margin: 26px 0;
}

.amb-hero__subtitle {
  color: var(--amb-text);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  margin: 0;
}

.amb-hero__proof {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.amb-hero__proof li {
  padding: 15px 16px;
  border: 1px solid var(--amb-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: var(--amb-dark);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.amb-hero__image {
  position: relative;
  margin: 0;
}

.amb-hero__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--amb-shadow);
}

.amb-hero__image::before {
  content: "";
  position: absolute;
  inset: 26px -20px -20px 26px;
  border: 1px solid rgba(176, 138, 106, .42);
  border-radius: 34px;
  z-index: 0;
}

.amb-hero__image img {
  position: relative;
  z-index: 1;
}

/* STATEMENT */
.amb-statement {
  background: #fff;
}

.amb-statement__wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.amb-statement .amb-title {
  margin-bottom: 30px;
}

.amb-statement__quote {
  color: var(--amb-dark);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0;
}

/* INTRO */
.amb-intro {
  background: var(--amb-soft);
}

.amb-intro__wrap {
  max-width: 960px;
  margin: 0 auto;
}

.amb-intro .amb-title {
  text-align: center;
  margin-bottom: 32px;
}

.amb-intro .amb-copy {
  max-width: 880px;
  margin: 0 auto;
}

/* GLANCE */
.amb-glance {
  background: var(--amb-dark);
  color: #fff;
}

.amb-glance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, .16);
}

.amb-glance__item {
  background: var(--amb-dark);
  padding: clamp(24px, 3vw, 38px);
  min-height: 150px;
}

.amb-glance__item strong {
  display: block;
  color: #fff;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin-bottom: 12px;
}

.amb-glance__item span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.5;
}

/* MEDIA */
.amb-media {
  background: #fff;
}

.amb-media__grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 24px;
}

.amb-media__row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.amb-media-card,
.amb-gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background: #eee;
  box-shadow: var(--amb-shadow);
}

.amb-media__row .amb-media-card {
  min-height: 380px;
}

.amb-media-card img,
.amb-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .45s ease;
}

.amb-media-card:hover img,
.amb-gallery-card:hover img {
  transform: scale(1.035);
}

.amb-media-card::after,
.amb-gallery-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
}

.amb-media-card__caption,
.amb-gallery-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  z-index: 2;
  color: #fff;
}

.amb-media-card__caption span,
.amb-gallery-card__caption span {
  display: block;
  margin-bottom: 9px;
  color: #d8c1ad;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}

.amb-media-card__caption strong,
.amb-gallery-card__caption strong {
  display: block;
  color: #fff;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

/* EDUCATION */
.amb-education {
  background: var(--amb-soft);
}

.amb-education__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.amb-education-card {
  background: #fff;
  border: 1px solid var(--amb-line);
  border-radius: 28px;
  padding: clamp(26px, 3vw, 36px);
  min-height: 240px;
  box-shadow: 0 18px 50px rgba(47, 37, 33, .055);
}

.amb-education-card__type {
  color: var(--amb-gold);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 26px;
}

.amb-education-card h3 {
  color: var(--amb-dark);
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 12px;
}

.amb-education-card p {
  color: var(--amb-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* TIMELINE */
.amb-timeline {
  background: #fff;
}

.amb-timeline__list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--amb-line);
}

.amb-timeline__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--amb-line);
}

.amb-timeline__item strong {
  color: var(--amb-gold);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}

.amb-timeline__item span {
  color: var(--amb-dark);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 800;
}

/* CERTIFICATE SECTIONS */
.amb-dev {
  background: var(--amb-soft);
}

.amb-dev__group {
  margin-top: 56px;
}

.amb-dev__group:first-of-type {
  margin-top: 0;
}

.amb-dev__group-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--amb-line);
}

.amb-dev__group-head h3 {
  color: var(--amb-dark);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
  margin: 0;
}

.amb-dev__group-head p {
  color: var(--amb-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.amb-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.amb-cert {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--amb-line);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(47, 37, 33, .06);
}

.amb-cert--wide {
  grid-column: span 2;
}

.amb-cert__head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--amb-line);
}

.amb-cert__head h4 {
  color: var(--amb-dark);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0;
}

.amb-cert__head span {
  display: block;
  margin-top: 8px;
  color: var(--amb-muted);
  font-size: 14px;
  line-height: 1.45;
}

.amb-cert img {
  display: block;
  width: 100%;
  background: #f7f3f1;
}

/* GALLERY */
.amb-gallery {
  background: #fff;
}

.amb-gallery__grid {
  columns: 3 280px;
  column-gap: 24px;
}

.amb-gallery-card {
  display: block;
  min-height: auto;
  break-inside: avoid;
  margin: 0 0 24px;
}

.amb-gallery-card img {
  min-height: 0;
  height: auto;
}

.amb-gallery-card::after {
  inset: 55% 0 0;
}

/* FAQ */
.amb-faq {
  background: var(--amb-soft);
}

.amb-faq__items {
  max-width: 900px;
  margin: 0 auto;
}

.amb-faq__item {
  border-bottom: 1px solid var(--amb-line);
}

.amb-faq__question {
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--amb-dark);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.amb-faq__answer {
  display: none;
  padding: 0 0 24px;
}

.amb-faq__answer p {
  margin: 0;
  color: var(--amb-muted);
  font-size: 16px;
  line-height: 1.72;
}

.amb-faq__item.is-open .amb-faq__answer {
  display: block;
}

/* CTA */
.amb-cta {
  background: #fff;
}

.amb-cta__inner {
  text-align: center;
}

.amb-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 30px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--amb-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: .25s ease;
}

.amb-cta__button:hover {
  color: #fff;
  transform: translateY(-2px);
  opacity: .92;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .amb-hero__grid,
  .amb-glance__grid,
  .amb-media__grid,
  .amb-media__row,
  .amb-education__grid,
  .amb-cert-grid,
  .amb-dev__group-head {
    grid-template-columns: 1fr;
  }

  .amb-hero__image {
    order: -1;
  }

  .amb-hero__proof {
    grid-template-columns: 1fr;
  }

  .amb-cert--wide {
    grid-column: span 1;
  }

  .amb-media-card,
  .amb-media__row .amb-media-card {
    min-height: 420px;
  }

  .amb-timeline__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 575px) {
  .amb-hero {
    padding-top: 34px;
  }

  .amb-hero__title {
    font-size: 48px;
  }

  .amb-title {
    font-size: 40px;
  }

  .amb-section-head {
    text-align: left;
  }

  .amb-media-card,
  .amb-media__row .amb-media-card {
    min-height: 360px;
  }

  .amb-media-card__caption,
  .amb-gallery-card__caption {
    padding: 22px;
  }
}