.features {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.features-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}

.features-head-art svg {
  width: 100%;
  height: auto;
  max-width: 380px;
  display: block;
  margin: 0 auto 35px;
}

.features h2 {
  margin-bottom: 25px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(120px, auto));
  gap: 15px;
}

.feat:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
.feat:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.feat:nth-child(3) { grid-area: 1 / 4 / 2 / 5; }
.feat:nth-child(6) { grid-area: 2 / 1 / 3 / 2; }
.feat:nth-child(7) { grid-area: 2 / 2 / 3 / 3; }
.feat:nth-child(4) { grid-area: 2 / 3 / 4 / 5; }
.feat:nth-child(5) { grid-area: 3 / 1 / 5 / 3; }
.feat:nth-child(8) { grid-area: 4 / 3 / 5 / 4; }
.feat:nth-child(9) { grid-area: 4 / 4 / 5 / 5; }

.feat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  transition: border-color 0.2s ease;
}

.feat:hover {
  border-color: var(--blue);
}

.feat.feat-lg {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.feat.feat-lg h3 {
  font-size: 22px;
}

.feat.feat-lg p {
  font-size: 16px;
}

.feat:not(.feat-lg) h3 {
  font-size: 15px;
}

.feat:not(.feat-lg) p {
  font-size: 13px;
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue-light);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feat.feat-lg .feat-icon {
  background: #fff;
}

.feat h3 {
  margin-bottom: 9px;
}

.feat p {
  color: var(--ink-2);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .features-head {
    grid-template-columns: 1fr;
  }

  .features-head-art {
    order: -1;
    max-width: 260px;
    margin: 0 auto 24px;
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(140px, auto);
  }

  .feat {
    grid-area: auto !important;
  }

  .feat.feat-lg {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .feat.feat-lg {
    grid-column: span 1;
  }
}
