:root {
  --light-gray: #d9d9d9;
  --gray: #707070;
  --purple: #6657c2;
  --light: #e8e9ef;
  --black: #1a1a1a;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: sans-serif;
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

@media (max-width: 480px) {
  .kh-case br {
    display: none;
  }
  .kh-case .case__banner-overlay {
    padding: 3.75rem 1rem 6.25rem 1rem;
  }
  .kh-case .case__title {
    font-size: 3rem;
  }
}
.kh-wrapper {
  max-width: 120rem;
  margin: 0 auto;
}
.kh-gray-color {
  color: var(--gray);
}
/* kh-title */
.kh-title {
  margin: 0;
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 400;
}
.kh-title_bold {
  font-weight: 500;
}

@media (max-width: 1366px) {
  .kh-title {
    font-size: 2.5rem;
  }
}
@media (max-width: 768px) {
  .kh-title {
    font-size: 2rem;
  }
}
/* kh-title */

/* k-sub-title */
.kh-sub-title {
  width: 100%;
  flex-shrink: 0;

  font-size: 1.75rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--gray);
  margin: 0;
}
.kh-sub-title_my {
  margin: 2.5rem 0 1.5rem 0;
}
.kh-sub-title_black {
  color: var(--black);
}
@media (max-width: 920px) {
  .kh-sub-title {
    font-size: 1.5rem;
  }
}
/* k-sub-title */

.kh-section {
  padding: 5rem 3.75rem 3.75rem 3.75rem;
}
@media (max-width: 1280px) {
  .kh-section {
    padding: 5rem 2rem;
  }
}
@media (max-width: 768px) {
  .kh-section {
    padding: 3.75rem 1rem;
  }
}
@media (max-width: 480px) {
  .kh-section {
    padding: 3.75rem 1rem 0 1rem;
  }
  .kh-section_pb {
    padding-bottom: 3.75rem;
  }
}

.kh-gray {
  background-color: var(--light);
}

.kh-text {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  font-size: 1.25rem;
  font-family: "Inter", sans-serif;
}
@media (max-width: 480px) {
  .kh-text {
    font-size: 1.125rem;
  }
}

.kh-text + .kh-text {
  margin-top: 0.625rem;
}

.kh-text + .kh-list {
  margin-top: 0.625rem;
}

.kh-text + .kh-points {
  margin-top: 2.5rem;
}

.kh-button {
  display: inline-block;
  padding: 0.875rem 1.875rem;
  background-color: var(--purple);
  border-radius: 2.5rem;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}
.kh-button:hover {
  transform: scale(1.05);
}
.kh-button:active {
  transform: scale(0.95);
}

/* k-grid */
.kh-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;

  padding-top: 1.875rem;
  border-top: 0.0625rem solid var(--light-gray);
  padding-bottom: 3.75rem;
}
@media (max-width: 1024px) {
  .kh-grid {
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .kh-grid {
    padding-bottom: 2.5rem;
  }
}
.kh-grid__item {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .kh-grid__item {
    font-size: 1.125rem;
  }
}
.kh-grid__item:first-child {
  grid-column: span 4;
}
.kh-grid__item:last-child {
  grid-column: span 8;
}
@media (max-width: 768px) {
  .kh-grid__item:first-child {
    grid-column: span 12;
  }
  .kh-grid__item:last-child {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .kh-grid__item + .kh-grid__item_mt {
    margin-top: 2.5rem;
  }
}
/* k-grid */

.kh-hero__title {
  margin-top: auto;
  font-size: 5rem;
  font-weight: 400;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}

/* k-list */
.kh-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.kh-list_my {
  margin: 1.5rem 0;
}
.kh-list__item {
  position: relative;
  padding-left: 1.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.kh-list__item + .kh-list__item {
  margin-top: 0.625rem;
}
.kh-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4375rem;
  border-radius: 100%;
  background-color: var(--purple);
  width: 0.625rem;
  height: 0.625rem;
}
/* k-list */

/* k-card */
.kh-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.kh-cards_lg {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1280px) {
  .kh-cards_lg {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .kh-cards {
    grid-template-columns: repeat(1, 1fr);
  }
}

.kh-cards + .kh-card__title {
  margin-top: 2.5rem;
}
.kh-cards + .kh-text {
  margin-top: 2.5rem;
}

.kh-text + .kh-card {
  margin-top: 1.5rem;
}
.kh-cards .kh-card + .kh-card {
  margin-top: 0;
}
.kh-cards .kh-card__icon {
  margin-bottom: 1rem;
}

.kh-card {
  background-color: white;
  padding: 2.5rem;
}

.kh-card_gray {
  background-color: var(--light);
}

.kh-card-title {
  margin-top: 2.5rem;
  margin-bottom: 0.625rem;
}
.kh-card_light {
  background-color: var(--light);
}
.kh-card_purple {
  background-color: var(--purple);
  color: white;
}
.kh-card_purple .kh-sub-title {
  color: white;
}
@media (max-width: 768px) {
  .kh-card {
    padding: 1.5rem;
  }
}
.kh-card + .kh-card {
  margin-top: 0.5rem;
}

.kh-card_flex {
  display: flex;
  gap: 11.6875rem;
}

@media (max-width: 1024px) {
  .kh-card_flex {
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .kh-card_flex {
    flex-direction: column;
  }
}

.kh-card__icon {
  flex-shrink: 0;
}
.kh-card__icon img {
  display: block;
}
.kh-card__number {
  font-size: 3rem;
  color: var(--gray);
  line-height: 1.4;
  font-weight: 400;
}
@media (max-width: 480px) {
  .kh-card__number {
    font-size: 2rem;
  }
}
.kh-card__content {
  flex: 1;
}
.kh-card__content_mt {
  margin-top: 2.5rem;
}

.kh-card__title {
  font-size: 1.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.0313rem;
}

@media (max-width: 768px) {
  .kh-card__title {
    font-size: 1.5rem;
  }
}

.kh-card__title + .kh-text {
  margin-top: 1.5rem;
}

/* k-card */
.kh-card__box {
  background-color: var(--purple);
  color: white;
  padding: 1.5rem;
}
.kh-card__box:has(.kh-card__box-content) {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
@media (max-width: 768px) {
  .kh-card__box:has(.kh-card__box-content) {
    flex-direction: column;
  }
}
.kh-card__box .kh-title {
  color: white;
}
.kh-card__list {
  padding-left: 1.5rem;
}
.kh-card__list-item {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

.kh-card__flex {
  display: flex;
  gap: 4rem;
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}
@media (max-width: 768px) {
  .kh-card__flex {
    flex-direction: column;
    gap: 1rem;
  }
}
.kh-card__flex-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  margin: 0;
}

/* kh-points */
.kh-points {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 1024px) {
  .kh-points {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .kh-points {
    grid-template-columns: repeat(1, 1fr);
  }
}
.kh-point__number {
  color: var(--purple);
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 400;
}
@media (max-width: 768px) {
  .kh-point__number {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  .kh-point__number {
    font-size: 2rem;
  }
}
.kh-point__text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray);
}
.kh-points + .kh-text {
  margin-top: 2.5rem;
}
/* kh-points */

@media (max-width: 480px) {
  .kh-projects {
    padding-bottom: 6.25rem;
  }
}
.kh-projects__head {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--light-gray);
  padding-top: 1.875rem;
}
.kh-projects__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
}
@media (max-width: 1280px) {
  .kh-projects__list {
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .kh-projects__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .kh-projects__list {
    margin-top: 3.75rem;
    grid-template-columns: repeat(1, 1fr);
  }
}
.kh-projects__item {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .kh-projects__item:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .kh-projects__item:last-child {
    grid-column: 1;
  }
}
.kh-projects__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #707070;
  background: linear-gradient(
      0deg,
      rgba(49, 49, 49, 0.7),
      rgba(49, 49, 49, 0.7)
    ),
    linear-gradient(180deg, rgba(39, 36, 46, 0) 46%, #27242e 106.2%);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.kh-projects__item:hover {
  transform: scale(1.05);
}
.kh-projects__item:hover::before {
  background-color: var(--purple);
  opacity: 0.9;
}
.kh-projects__item:active {
  transform: scale(1.075);
}
.kh-projects__link {
  text-decoration: none;
  position: relative;
  z-index: 1;
  display: block;
  padding: 2.5rem;
  min-height: 31.25rem;
  display: flex;
  flex-direction: column;
  color: white;
}
@media (max-width: 1280px) {
  .kh-projects__link {
    padding: 1.25rem;
  }
}
@media (max-width: 768px) {
  .kh-projects__link {
    min-height: 28.125rem;
  }
}
.kh-projects__title {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.0156rem;
}
.kh-projects__text {
  margin-top: 0.625rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}
.kh-projects__bottom {
  margin-top: auto;
}
.kh-prejects__descr {
  font-size: 1.75rem;
  line-height: 1.4;
  font-weight: 500;
}
@media (max-width: 1024px) {
  .kh-projects__title {
    font-size: 1.5rem;
  }
  .kh-prejects__descr {
    font-size: 1.5rem;
  }
}

.kh-projects__btn_mobile {
  display: none;
}
@media (max-width: 480px) {
  .kh-projects__btn_desctop {
    display: none;
  }
  .kh-projects__btn_mobile {
    display: block;
    margin-top: 2.5rem;
  }
  .kh-projects__btn_mobile .kh-button {
    width: 100%;
    text-align: center;
  }
}

.kh-info {
  display: flex;
  justify-content: space-between;
  gap: 10rem;
  background-color: var(--light);
  padding: 2.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 1366px) {
  .kh-info {
    gap: 1rem;
    padding: 1rem;
  }
  .kh-info__right,
  .kh-info__left {
    flex: 1;
  }
  .kh-info__right img {
    max-width: 100%;
  }
}
.kh-info__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 480px) {
  .kh-info {
    flex-direction: column-reverse;
  }
  .kh-info__left .kh-button {
    width: 100%;
    text-align: center;
  }
}
.kh-info__left .kh-sub-title {
  color: var(--black);
}
.kh-info__left .kh-text {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.kh-info__left .kh-button {
  margin-top: auto;
}

/* CASE */
.kh-case-omni .case__banner {
  --omni: url("/img/our-works/omni/hero.jpg");
}
.kh-case-audit .case__banner {
  --audit: url("/img/our-works/audit/hero.jpg");
}
.kh-case-luxury-car {
  --luxury-car: url("/img/our-works/luxury-car/hero.jpg");
}
.kh-case-web-app {
  --web-app: url("/img/our-works/web-app/hero.jpg");
}
.kh-case-healthcare {
  --healthcare: url("/img/our-works/healthcare/hero.jpg");
}
.kh-case-ppc {
  --ppc: url("/img/our-works/ppc/hero.jpg");
}
.kh-case-healthcare .case__banner-overlay {
  background: transparent;
}
@media (max-width: 480px) {
  .kh-case .case__banner .wrap_container {
    width: 100%;
  }
  .kh-case .case__banner {
    min-height: 95vh;
  }
  .kh-case .wrap_container:last-child {
    margin-top: auto;
  }
  .kh-case .case__banner-overlay {
    display: flex;
    flex-direction: column;
  }
  .kh-case-omni .case__banner {
    --omni: url("/img/our-works/omni/hero_m.jpg");
  }
  .kh-case-audit .case__banner {
    --audit: url("/img/our-works/audit/hero_m.jpg");
  }
  .kh-case-luxury-car {
    --luxury-car: url("/img/our-works/luxury-car/hero_m.jpg");
  }
  .kh-case-web-app {
    --web-app: url("/img/our-works/web-app/hero_m.jpg");
  }
  .kh-case-healthcare {
    --healthcare: url("/img/our-works/healthcare/hero_m.jpg");
  }
  .kh-case-ppc {
    --ppc: url("/img/our-works/ppc/hero_m.jpg");
  }
}
/* CASE */
