/* ==========================================
   MATCHMAKING COMPANIES PAGE

   CONTENTS
   01. Matchmaking Companies Hero
   02. Featured Companies
   03. Service Categories
   04. Company Comparison
   05. Editorial Notice
   06. Featured Resources

   BREAKPOINTS
   1100px / 900px / 600px / 480px / 400px
========================================== */


/* ==========================================
   01. MATCHMAKING COMPANIES HERO
========================================== */

.matchmaking-companies-hero__panel {
  display: grid;
  grid-template-columns:
    minmax(0, 0.98fr)
    minmax(0, 1.02fr);
  align-items: stretch;
  gap: 28px;

  padding: 16px;
}

.matchmaking-companies-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
  padding: 54px 28px 54px 44px;
}

.matchmaking-companies-hero__title {
  max-width: 13ch;
}

.matchmaking-companies-hero__description {
  max-width: 650px;
  margin: 0;

  font-size: 18px;
  line-height: 1.7;

  color: var(--color-text-soft);
}

.matchmaking-companies-hero__description
  + .matchmaking-companies-hero__description {
  margin-top: 14px;
}

.matchmaking-companies-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;

  margin-top: 30px;
}

.matchmaking-companies-hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-size: 14px;
  font-weight: 800;

  color: var(--color-text);
  text-decoration: none;

  transition:
    color var(--transition),
    gap var(--transition);
}

.matchmaking-companies-hero__text-link span {
  color: var(--color-accent);
}

.matchmaking-companies-hero__text-link:hover {
  gap: 13px;

  color: var(--color-accent);
}

.matchmaking-companies-hero__note {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 10px;

  max-width: 620px;
  margin-top: 28px;
  padding-top: 20px;

  border-top: 1px solid rgba(99, 119, 242, 0.14);
}

.matchmaking-companies-hero__note svg {
  display: block;

  width: 23px;
  height: 23px;
  margin-top: 1px;

  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.matchmaking-companies-hero__note p {
  margin: 0;

  font-size: 12px;
  line-height: 1.55;

  color: var(--color-text-soft);
}

.matchmaking-companies-hero__media {
  position: relative;
  overflow: hidden;

  width: 100%;
  min-width: 0;
  min-height: 620px;

  border-radius: 28px;
}

.matchmaking-companies-hero__media::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;

  height: 28%;

  content: "";

  background:
    linear-gradient(
      to top,
      rgba(17, 19, 24, 0.22),
      transparent
    );

  pointer-events: none;
}

.matchmaking-companies-hero__media img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* MATCHMAKING COMPANIES HERO. RESPONSIVE - 1100px */

@media (max-width: 1100px) {
  .matchmaking-companies-hero__panel {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(360px, 0.92fr);
    gap: 24px;
  }

  .matchmaking-companies-hero__content {
    padding: 44px 20px 44px 32px;
  }

  .matchmaking-companies-hero__description {
    font-size: 17px;
  }

  .matchmaking-companies-hero__media {
    min-height: 570px;
  }
}


/* MATCHMAKING COMPANIES HERO. RESPONSIVE - 900px */

@media (max-width: 900px) {
  .matchmaking-companies-hero__panel {
    grid-template-columns: 1fr;
    gap: 24px;

    padding: 34px;
  }

  .matchmaking-companies-hero__content {
    padding: 0;
  }

  .matchmaking-companies-hero__title {
    max-width: 17ch;
  }

  .matchmaking-companies-hero__description {
    max-width: 760px;
  }

  .matchmaking-companies-hero__media {
    height: 520px;
    min-height: 0;
  }

  .matchmaking-companies-hero__media img {
    object-position: center 28%;
  }
}


/* MATCHMAKING COMPANIES HERO. RESPONSIVE - 600px */

@media (max-width: 600px) {
  .matchmaking-companies-hero__panel {
    padding: 26px;
  }

  .matchmaking-companies-hero__description {
    font-size: 15px;
  }

  .matchmaking-companies-hero__actions {
    gap: 18px;
  }

  .matchmaking-companies-hero__note {
    margin-top: 24px;
  }

  .matchmaking-companies-hero__media {
    height: 420px;

    border-radius: 24px;
  }
}


/* MATCHMAKING COMPANIES HERO. RESPONSIVE - 480px */

@media (max-width: 480px) {
  .matchmaking-companies-hero__panel {
    padding: 20px;
  }

  .matchmaking-companies-hero__actions {
    align-items: flex-start;
  }

  .matchmaking-companies-hero__actions .btn {
    width: 100%;
  }

  .matchmaking-companies-hero__text-link {
    padding: 4px 2px;
  }

  .matchmaking-companies-hero__note {
    grid-template-columns: 21px minmax(0, 1fr);
  }

  .matchmaking-companies-hero__note svg {
    width: 21px;
    height: 21px;
  }

  .matchmaking-companies-hero__media {
    height: 360px;

    border-radius: 22px;
  }
}


/* MATCHMAKING COMPANIES HERO. RESPONSIVE - 400px */

@media (max-width: 400px) {
  .matchmaking-companies-hero__panel {
    padding: 16px;
  }

  .matchmaking-companies-hero__description {
    font-size: 14px;
  }

  .matchmaking-companies-hero__note p {
    font-size: 11px;
  }

  .matchmaking-companies-hero__media {
    height: 330px;

    border-radius: 20px;
  }
}

/* ==========================================
   02. FEATURED COMPANIES
========================================== */

.featured-companies__panel {
  padding-top: 82px;
  padding-bottom: 82px;
}

.featured-companies__group {
  margin-top: 58px;
}

.featured-companies__group + .featured-companies__group {
  margin-top: 76px;
  padding-top: 68px;

  border-top: 1px solid rgba(99, 119, 242, 0.14);
}

.featured-companies__group-heading {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 820px;
  margin: 0 auto 42px;

  text-align: center;
}

.featured-companies__eyebrow {
  display: block;
  margin-bottom: 10px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--color-accent);
}

.featured-companies__group-title {
  margin: 0;

  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.03em;

  color: var(--color-text);
}

.featured-companies__group-text {
  max-width: 530px;
  margin: 0;
  justify-self: end;

  font-size: 15px;
  line-height: 1.65;

  color: var(--color-text-soft);
}

.featured-companies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}


/* COMPANY PROFILE CARD */

.company-profile-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 390px;
  padding: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 1),
      rgba(247, 248, 255, 0.97)
    );

  border: 1px solid rgba(99, 119, 242, 0.15);
  border-radius: 24px;

  box-shadow:
    0 16px 38px rgba(42, 52, 101, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.company-profile-card:hover {
  transform: translateY(-5px);

  border-color: rgba(99, 119, 242, 0.28);

  box-shadow:
    0 22px 46px rgba(42, 52, 101, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.company-profile-card__type {
  align-self: flex-start;

  margin-bottom: 22px;
  padding: 7px 11px;

  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
}

.company-profile-card__title {
  margin: 14px 0;

  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;

  color: var(--color-text);

  text-wrap: balance;
}

.company-profile-card__description {
  margin: 0 0 24px;

  font-size: 14px;
  line-height: 1.65;

  color: var(--color-text-soft);
}

.company-profile-card__details {
  display: grid;
  gap: 11px;

  margin: auto 0 0;
  padding: 18px 0;

  border-top: 1px solid rgba(99, 119, 242, 0.12);
  border-bottom: 1px solid rgba(99, 119, 242, 0.12);
}

.company-profile-card__details div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
}

.company-profile-card__details dt {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  color: var(--color-accent);
}

.company-profile-card__details dd {
  min-width: 0;
  margin: 0;

  font-size: 12px;
  line-height: 1.45;

  color: var(--color-text-soft);
}

.company-profile-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;

  margin-top: 20px;

  font-size: 13px;
  font-weight: 800;

  color: var(--color-text);
  text-decoration: none;

  transition:
    color var(--transition),
    gap var(--transition);
}

.company-profile-card__link span {
  color: var(--color-accent);
}

.company-profile-card__link:hover {
  gap: 12px;

  color: var(--color-accent);
}


/* EDITORIAL NOTICE */

.featured-companies__notice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;

  /* max-width: 900px; */
  margin: 42px auto 0;
  padding: 20px 22px;

  background: rgba(244, 246, 255, 0.72);
  border: 1px solid rgba(99, 119, 242, 0.12);
  border-radius: 18px;
}

.featured-companies__notice svg {
  display: block;

  width: 24px;
  height: 24px;

  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-companies__notice p {
  margin: 0;

  font-size: 12px;
  line-height: 1.6;

  color: var(--color-text-soft);
}


/* FEATURED COMPANIES. RESPONSIVE - 1100px */

@media (max-width: 1100px) {
  .featured-companies__group-heading {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(280px, 0.65fr);
    gap: 30px;
  }

  .featured-companies__group-title {
    font-size: 31px;
  }

  .featured-companies__grid {
    gap: 18px;
  }

  .company-profile-card {
    min-height: 380px;
    padding: 25px;
  }

  .company-profile-card__title {
    font-size: 24px;
  }
}


/* FEATURED COMPANIES. RESPONSIVE - 900px */

@media (max-width: 900px) {
  .featured-companies__panel {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .featured-companies__group {
    margin-top: 50px;
  }

  .featured-companies__group + .featured-companies__group {
    margin-top: 64px;
    padding-top: 58px;
  }

  .featured-companies__group-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .featured-companies__group-text {
    max-width: 680px;
    justify-self: start;
  }

  .featured-companies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* FEATURED COMPANIES. RESPONSIVE - 600px */

@media (max-width: 600px) {
  .featured-companies__panel {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .featured-companies__group {
    margin-top: 42px;
  }

  .featured-companies__group + .featured-companies__group {
    margin-top: 52px;
    padding-top: 48px;
  }

  .featured-companies__group-title {
    font-size: 27px;
  }

  .featured-companies__group-text {
    font-size: 14px;
  }

  .featured-companies__grid {
    grid-template-columns: 1fr;
  }

  .company-profile-card {
    min-height: 0;
    padding: 26px;

    border-radius: 22px;
  }

  .company-profile-card__title {
    min-height: 0;

    font-size: 24px;
  }
}


/* FEATURED COMPANIES. RESPONSIVE - 480px */

@media (max-width: 480px) {
  .featured-companies__panel {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .featured-companies__group-title {
    font-size: 25px;
  }

  .company-profile-card {
    padding: 22px;
  }

  .company-profile-card__type {
    margin-bottom: 18px;
  }

  .company-profile-card__details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .featured-companies__notice {
    grid-template-columns: 21px minmax(0, 1fr);

    padding: 18px;
  }

  .featured-companies__notice svg {
    width: 21px;
    height: 21px;
  }
}


/* FEATURED COMPANIES. RESPONSIVE - 400px */

@media (max-width: 400px) {
  .featured-companies__panel {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .featured-companies__group-title {
    font-size: 23px;
  }

  .company-profile-card {
    padding: 19px;

    border-radius: 20px;
  }

  .company-profile-card__title {
    font-size: 22px;
  }

  .company-profile-card__description {
    font-size: 13px;
  }

  .featured-companies__notice p {
    font-size: 11px;
  }
}

.company-profile-card__media {
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 180px;

  /* background:
    linear-gradient(
      145deg,
      rgba(237, 240, 255, 0.98),
      rgba(247, 248, 255, 1)
    ); */
    border-radius: 28px;
}

.company-profile-card__media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition: transform var(--transition);
}

.company-profile-card:hover
  .company-profile-card__media:not(.company-profile-card__media--logo) img {
  transform: scale(1.035);
}


/* LOGO VARIANT */

.company-profile-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(99, 119, 242, 0.11),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(244, 246, 255, 1),
      rgba(252, 252, 255, 1)
    );
}

.company-profile-card__media--logo img {
  width: auto;
  max-width: min(78%, 230px);
  height: auto;
  max-height: 88px;

  object-fit: contain;
}


/* RESPONSIVE - 600px */

@media (max-width: 600px) {
  .company-profile-card__media {
    height: 210px;
  }

  .company-profile-card__media--logo {
    height: 170px;
  }
}


/* RESPONSIVE - 480px */

@media (max-width: 480px) {
  .company-profile-card__media {
    height: 190px;
  }

  .company-profile-card__media--logo {
    height: 150px;
    padding: 24px;
  }
}


/* RESPONSIVE - 400px */

@media (max-width: 400px) {
  .company-profile-card__media {
    height: 175px;
  }

  .company-profile-card__media--logo {
    height: 140px;
    padding: 20px;
  }
}