@font-face {
  font-family: "HP Cases TT Norms";
  src: url("./assets/fonts/tt-norms-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HP Cases TT Norms";
  src: url("./assets/fonts/tt-norms-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "HP Cases TT Norms";
  src: url("./assets/fonts/tt-norms-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.hpcases {
  --hpc-yellow: #ffff00;
  --hpc-black: #202020;
  --hpc-gray: #e4e4e4;
  --hpc-text: #202020;
  --hpc-gap: 31px;
  --hpc-radius: 9px;
  --hpc-max-width: 1073px;
  --hpc-zoom: 1.09;
  --hpc-duration: 500ms;
  width: 100%;
  max-width: var(--hpc-max-width);
  margin-inline: auto;
  color: var(--hpc-text);
  font-family: "HP Cases TT Norms", "TT Norms Regular", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.hpcases,
.hpcases * {
  box-sizing: border-box;
}

.hpcases .hpcases__heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 34px;
  align-items: center;
  margin: 0 0 50px;
}

.hpcases .hpcases__marks {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.hpcases .hpcases__title {
  margin: 0;
  padding: 0;
  color: var(--hpc-text);
  font: 700 34px/1.15 "HP Cases TT Norms", "TT Norms Bold", Arial, sans-serif;
  letter-spacing: -0.5px;
  text-transform: none;
}

.hpcases .hpcases__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--hpc-gap);
}

.hpcases .hpc-card {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--hpc-radius);
  background: var(--hpc-gray);
  color: var(--hpc-text);
  text-decoration: none;
  box-shadow: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.hpcases .hpc-card:hover {
  color: inherit;
  text-decoration: none;
}

.hpcases .hpc-card:focus-visible {
  outline: 3px solid #333;
  outline-offset: 5px;
}

.hpcases .hpc-card--wide {
  grid-column: span 2;
}

.hpcases .hpc-card--geo {
  min-height: 392px;
}

.hpcases .hpc-card--central {
  background: var(--hpc-black);
  color: #f4f4f4;
}

.hpcases .hpc-card--central:hover {
  color: #f4f4f4;
}

.hpcases .hpc-card__main-link {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--hpc-radius);
  color: inherit;
  text-decoration: none;
}

.hpcases .hpc-card__main-link:hover {
  color: inherit;
  text-decoration: none;
}

.hpcases .hpc-card__main-link:focus-visible {
  outline: 3px solid var(--hpc-yellow);
  outline-offset: -4px;
}

.hpcases .hpc-award {
  position: absolute;
  z-index: 3;
  top: 125px;
  left: 35px;
  display: flex;
  width: 240px;
  max-width: calc(100% - 70px);
  flex-direction: column;
  gap: 5px;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 2px solid var(--hpc-yellow);
  background: transparent;
  color: var(--hpc-yellow);
  text-decoration: none;
}

.hpcases .hpc-award:hover {
  color: var(--hpc-yellow);
  text-decoration: none;
}

.hpcases .hpc-award:focus-visible {
  outline: 2px solid var(--hpc-yellow);
  outline-offset: 4px;
}

.hpcases .hpc-award__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 1.2;
}

.hpcases .hpc-award__heading strong {
  color: inherit;
  font-weight: 700;
}

.hpcases .hpc-award__icon {
  position: static;
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  border: 0;
}

.hpcases .hpc-award__category {
  color: #d7d7d7;
  font-size: 11px;
  line-height: 1.3;
}

.hpcases .hpc-card--glaz {
  background: var(--hpc-gray);
}

.hpcases .hpc-card--vertical {
  background: var(--hpc-yellow);
}

.hpcases .hpc-card__image {
  position: absolute;
  z-index: 0;
  display: block;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  transition: transform var(--hpc-duration) cubic-bezier(0, 0, 0.44, 1.18);
  transform: scale(1);
  transform-origin: center;
  pointer-events: none;
}

.hpcases .hpc-card__image--central {
  right: -26%;
  bottom: -1%;
  width: 96%;
  height: auto;
  transform-origin: right bottom;
}

.hpcases .hpc-card__image--glaz {
  right: -2%;
  bottom: -1px;
  width: 104%;
  height: auto;
  transform-origin: center bottom;
}

.hpcases .hpc-card__image--vertical {
  right: -31%;
  bottom: -5%;
  width: 101%;
  height: auto;
  transform-origin: right bottom;
}

.hpcases .hpc-card__body {
  position: relative;
  z-index: 1;
  padding: 24px 26px;
}

.hpcases .hpc-card--central .hpc-card__body {
  padding: 28px 35px;
}

.hpcases .hpc-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.hpcases .hpc-card__tag {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.7px;
}

.hpcases .hpc-card__period {
  font-size: 12px;
  line-height: 1.3;
}

.hpcases .hpc-card__title {
  margin: 0;
  padding: 0;
  color: inherit;
  font: 400 24px/1.1 "HP Cases TT Norms", "TT Norms Regular", Arial, sans-serif;
  letter-spacing: -0.25px;
  text-transform: none;
}

.hpcases .hpc-card--central .hpc-card__title {
  font-size: 34px;
}

.hpcases .hpc-card__result {
  margin-top: 26px;
}

.hpcases .hpc-card__result-label {
  display: block;
  max-width: 190px;
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.35;
}

.hpcases .hpc-card__value {
  display: block;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.5px;
  white-space: nowrap;
}

.hpcases .hpc-card--central .hpc-card__value {
  font-size: 62px;
}

.hpcases .hpc-card__baseline {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.3;
}

.hpcases .hpc-card__business {
  max-width: 190px;
  margin: 25px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.hpcases .hpc-card--central .hpc-card__result {
  max-width: 52%;
  margin-top: 92px;
}

.hpcases .hpc-card--central .hpc-card__business {
  margin-top: 18px;
}

.hpcases .hpc-card--vertical .hpc-card__result-label {
  max-width: 146px;
}

.hpcases .hpc-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: #202020;
  font: 400 21px/1 Arial, sans-serif;
}

.hpcases .hpc-card--central .hpc-card__arrow {
  background: rgb(32 32 32 / 80%);
  color: #fff;
}

.hpcases .hpc-card--seo-tall {
  min-height: 360px;
}

.hpcases .hpc-card--seo-tall:not(.hpc-card--nuw) .hpc-card__title {
  font-size: 20px;
  line-height: 1.2;
}

.hpcases .hpc-card--seo-tall .hpc-card__description {
  font-size: 13px;
}

.hpcases .hpc-card--seo-small {
  min-height: 156px;
}

.hpcases .hpc-card__image--seo {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hpcases .hpc-card--nuw {
  background: var(--hpc-yellow);
}

.hpcases .hpc-card--nuw .hpc-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 36px;
}

.hpcases .hpc-card--nuw .hpc-card__title {
  max-width: 430px;
  font-size: 32px;
  line-height: 1.2;
}

.hpcases .hpc-card__description {
  margin: 12px 0 0;
  padding: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.hpcases .hpc-card--dark {
  background: #202020;
  color: #ccc;
}

.hpcases .hpc-card--dark:hover {
  color: #ccc;
}

.hpcases .hpc-card--light {
  background: #e1e1e1;
  color: #202020;
}

.hpcases .hpc-card--seo-small .hpc-card__body {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 18px;
}

.hpcases .hpc-card--seo-small .hpc-card__title {
  font-size: 18px;
  line-height: 1.3;
}

.hpcases .hpc-card--seo-small .hpc-card__description {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.4;
}

.hpcases .hpcases__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.hpcases .hpcases__all {
  color: var(--hpc-text);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .hpcases .hpc-card:hover .hpc-card__image {
    transform: scale(var(--hpc-zoom));
  }
}

@media (max-width: 1023px) {
  .hpcases {
    --hpc-gap: 24px;
  }

  .hpcases .hpcases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hpcases .hpcases__heading {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 34px;
  }

  .hpcases .hpcases__title {
    font-size: 31px;
  }

  .hpcases .hpcases__marks {
    gap: 18px;
    font-size: 34px;
  }

  .hpcases .hpc-card__image--central {
    right: -8%;
    width: 70%;
  }

  .hpcases .hpc-card__image--glaz {
    right: 0;
    width: 100%;
    max-height: 204px;
    object-fit: contain;
    object-position: center bottom;
  }

  .hpcases .hpc-card__image--vertical {
    right: -8%;
    width: 70%;
    max-height: 270px;
    object-fit: contain;
    object-position: right bottom;
  }
}

@media (max-width: 600px) {
  .hpcases {
    --hpc-gap: 20px;
  }

  .hpcases .hpcases__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hpcases .hpcases__heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 28px;
  }

  .hpcases .hpcases__marks {
    gap: 10px;
    font-size: 25px;
    padding-top: 3px;
  }

  .hpcases .hpcases__title {
    font-size: 27px;
    line-height: 1.15;
  }

  .hpcases .hpc-card--wide {
    grid-column: auto;
  }

  .hpcases .hpc-card--geo {
    min-height: 400px;
  }

  .hpcases .hpc-card--central {
    min-height: 510px;
  }

  .hpcases .hpc-card__body,
  .hpcases .hpc-card--central .hpc-card__body {
    padding: 25px;
  }

  .hpcases .hpc-card__topline {
    margin-bottom: 22px;
  }

  .hpcases .hpc-card__title {
    font-size: 28px;
  }

  .hpcases .hpc-card--central .hpc-card__title {
    font-size: 32px;
  }

  .hpcases .hpc-card__result {
    margin-top: 22px;
  }

  .hpcases .hpc-card--central .hpc-card__result {
    max-width: 65%;
  }

  .hpcases .hpc-award {
    top: 118px;
    left: 25px;
    width: 240px;
    max-width: calc(100% - 50px);
    min-height: 44px;
  }

  .hpcases .hpc-award__category {
    font-size: 12px;
  }

  .hpcases .hpc-card__image--central {
    right: -29%;
    bottom: -1%;
    width: 110%;
  }

  .hpcases .hpc-card__business {
    max-width: 140px;
    margin-top: 18px;
    font-size: 14px;
  }

  .hpcases .hpc-card__image--glaz {
    width: 100%;
    max-height: 205px;
  }

  .hpcases .hpc-card__image--vertical {
    right: -16%;
    bottom: -5%;
    width: 78%;
    max-height: 280px;
  }

  .hpcases .hpc-card--seo-tall {
    min-height: 370px;
  }

  .hpcases .hpc-card--nuw .hpc-card__body {
    padding: 27px;
  }

  .hpcases .hpc-card--nuw .hpc-card__title {
    font-size: 29px;
  }

  .hpcases .hpc-card--seo-small,
  .hpcases .hpc-card--seo-small .hpc-card__body {
    min-height: 180px;
  }

  .hpcases .hpc-card--seo-small .hpc-card__body {
    padding: 25px;
  }

  .hpcases .hpc-card--seo-small .hpc-card__title {
    font-size: 21px;
  }

  .hpcases .hpc-card--seo-small .hpc-card__description {
    font-size: 15px;
  }
}

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

  .hpcases .hpc-card:hover .hpc-card__image {
    transform: none;
  }
}
