:root {
  --color-primary: #a5121a;
  --color-bg-gray: #a1a1a1;
  --color-number: rgba(250,250,250,0.7);
  --gap: 24px;
  --item-height-desktop: 310px;
  --max-width: 1300px;
}


.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.client-service {
  width: 100%;
  padding: 40px 0 0 0;
}

.header { margin-bottom: 30px; }
.heading-left { display: flex; flex-direction: column; }
.client-service_title {
  font-size: clamp(18px, 5vw, 24px);
  color: var(--color-primary);
  margin: 5px 0 0;
}

/* === ГРИД === */
.grid_service {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: var(--item-height-desktop) var(--item-height-desktop);
  gap: var(--gap);
  margin-bottom: 30px;
  grid-template-areas:
    "a b c d"
    "e e f f";
}
.item-1 { grid-area: a; }
.item-2 { grid-area: b; }
.item-3 { grid-area: c; }
.item-4 { grid-area: d; }
.item-5 { grid-area: e; }
.item-6 { grid-area: f; }

/* --- Стили блоков --- */
.item {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--color-bg-gray);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  height: var(--item-height-desktop) !important;
  min-height: 0;
  box-sizing: border-box;
}
.item.image { padding: 0; background: none; justify-content: stretch; }
.item.image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item h3 {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-primary);
  z-index: 2;
  position: relative;
}
.item p {
  font-size: clamp(16px, 2.3vw, 17px);
  line-height: 1.3;
  color: #141414;
  z-index: 2;
  position: relative;
  font-weight: 600;
}
.item .number {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(320px, 18vw, 320px);
  font-family: sans-serif;
  font-weight: 700;
  color: var(--color-number);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
  text-align: center;
}
.item.orange { background: var(--color-primary); }
.item.orange p, .item.orange h3 { color: #ccc; }

/* --- Адаптив --- */
@media (max-width: 1300px) and (min-width: 901px) {
  .container { padding: 0 12px; }
  .grid_service {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: var(--item-height-desktop) var(--item-height-desktop); /* ОСТАЁТСЯ desktop */
    gap: 16px;
  }
  .item { padding: 14px; }
}
/* Мобильные */
@media (max-width: 900px) {
  .container { padding: 0 5px; }
  .grid_service {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, var(--item-height-desktop)); /* все 6 одинаковой высоты */
    gap: 14px;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f";
  }
  .item, .item.image {
    height: var(--item-height-desktop) !important; /* !ВАЖНО! */
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
/* Extra small devices */
@media (max-width: 500px) {
  .item, .item.image {
    min-height: 80px;
    height: var(--item-height-desktop) !important;
  }
}
