/* Блок «Тихая улица, развитая инфраструктура…» (только русская версия): заголовок на бордовой подложке,
   8 пунктов в 2 ряда по 4, между пунктами фигура. Шрифты как на сайте:
   заголовок LiteratureDecor 52 / 40 / 25px, цифры LiteratureDecor 80 / 70 / 31px, подписи Raleway 500 18 / 18 / 14px.
   Размеры в масштабе сетки (--hh-s из grid.js). */
.hh-quiet {
  --s: var(--hh-s, 1);
  background: #fff;
  padding: calc(140px * var(--s)) var(--hh-m, max(20px, calc((100% - 1160px) / 2))) calc(100px * var(--s));
}
.hh-quiet__panel {
  background: #6b151d;
  color: #fff;
  padding: calc(80px * var(--s)) calc(60px * var(--s));
}
.hh-quiet__title {
  margin: 0 0 calc(60px * var(--s));
  font-family: 'LiteratureDecor', Arial, sans-serif;
  font-weight: 400;
  font-size: calc(52px * var(--s));
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.hh-quiet__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: calc(80px * var(--s));
  row-gap: calc(60px * var(--s));
}
.hh-quiet__item { position: relative; }
.hh-quiet__num {
  display: flex;
  align-items: center;
  height: calc(80px * var(--s));
  font-family: 'LiteratureDecor', Arial, sans-serif;
  font-weight: 400;
  font-size: calc(80px * var(--s));
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.hh-quiet__num svg { width: calc(60px * var(--s)); height: calc(60px * var(--s)); }
.hh-quiet__cap {
  margin-top: calc(12px * var(--s));
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 500;
  font-size: calc(18px * var(--s));
  line-height: 1.1;
  color: #fff;
}
/* фигура между пунктами ряда — по центру промежутка, на уровне цифр */
.hh-quiet__item:not(:nth-child(4n))::after {
  content: '';
  position: absolute;
  top: calc(40px * var(--s));
  right: calc(-40px * var(--s));
  width: calc(40px * var(--s));
  height: calc(40px * var(--s));
  transform: translate(50%, -50%);
  background: url('../static.tildacdn.com/tild3637-6631-4432-a261-336338663536/Union.svg') center / contain no-repeat;
}

/* Планшет: 2 пункта в ряд */
@media (max-width: 959px) {
  .hh-quiet { padding-top: calc(78px * var(--s)); padding-bottom: calc(58px * var(--s)); }
  .hh-quiet__panel { padding: calc(40px * var(--s)); }
  .hh-quiet__title { font-size: calc(40px * var(--s)); margin-bottom: calc(40px * var(--s)); }
  .hh-quiet__grid { grid-template-columns: repeat(2, 1fr); row-gap: calc(40px * var(--s)); }
  .hh-quiet__num { height: calc(70px * var(--s)); font-size: calc(70px * var(--s)); }
  .hh-quiet__num svg { width: calc(52px * var(--s)); height: calc(52px * var(--s)); }
  .hh-quiet__item:not(:nth-child(4n))::after { display: none; }
  .hh-quiet__item:nth-child(odd)::after { display: block; top: calc(35px * var(--s)); }
}
/* Телефон */
@media (max-width: 639px) {
  .hh-quiet { padding-top: calc(50px * var(--s)); padding-bottom: calc(51px * var(--s)); }
  .hh-quiet__panel { padding: calc(20px * var(--s)); }
  .hh-quiet__title { font-size: calc(25px * var(--s)); margin-bottom: calc(24px * var(--s)); }
  .hh-quiet__grid { column-gap: calc(40px * var(--s)); row-gap: calc(24px * var(--s)); }
  .hh-quiet__num { height: calc(31px * var(--s)); font-size: calc(31px * var(--s)); }
  .hh-quiet__num svg { width: calc(26px * var(--s)); height: calc(26px * var(--s)); }
  .hh-quiet__cap { font-size: calc(14px * var(--s)); margin-top: calc(6px * var(--s)); }
  .hh-quiet__item:nth-child(odd)::after { top: calc(15.5px * var(--s)); right: calc(-20px * var(--s)); width: calc(20px * var(--s)); height: calc(20px * var(--s)); }
}

/* Подложка во всю ширину экрана (по просьбе); содержимое остаётся на прежнем месте */
.hh-quiet { padding-left: 0 !important; padding-right: 0 !important; }
.hh-quiet__panel {
  --gm: var(--hh-m, max(20px, calc((100% - 1160px) / 2)));
  padding-left: calc(var(--gm) + 60px * var(--s));
  padding-right: calc(var(--gm) + 60px * var(--s));
}
@media (max-width: 959px) {
  .hh-quiet__panel { padding-left: calc(20px + 40px * var(--s)); padding-right: calc(20px + 40px * var(--s)); }
}
@media (max-width: 639px) {
  .hh-quiet__panel { padding-left: calc(20px + 20px * var(--s)); padding-right: calc(20px + 20px * var(--s)); }
}

/* Фигура — по центру между цифрой/иконкой пункта и следующим пунктом ряда (положение считает quiet.js);
   между «2025» и «2028» фигуры нет (по просьбе) */
.hh-quiet__item::after { left: var(--em-x, auto); right: auto !important; transform: translate(-50%, -50%) !important; }
.hh-quiet__item:nth-child(7)::after { display: none !important; }

/* Без белого промежутка между подложкой и следующим (зелёным) блоком — по просьбе */
.hh-quiet { padding-bottom: 0 !important; }

/* Подложка выше на 20px сверху и снизу (по просьбе) */
.hh-quiet__panel { padding-top: calc(100px * var(--s)); padding-bottom: calc(100px * var(--s)); }
@media (max-width: 959px) { .hh-quiet__panel { padding-top: calc(60px * var(--s)); padding-bottom: calc(60px * var(--s)); } }
@media (max-width: 639px) { .hh-quiet__panel { padding-top: calc(40px * var(--s)); padding-bottom: calc(40px * var(--s)); } }

/* Содержимое подложки — по сетке меню (поля как у шапки), без дополнительного отступа (по просьбе) */
.hh-quiet__panel { padding-left: var(--gm) !important; padding-right: var(--gm) !important; }
@media (max-width: 959px) { .hh-quiet__panel { padding-left: 20px !important; padding-right: 20px !important; } }

/* фон как на главном экране (#ece5db), текст чёрный как там (по просьбе) */
.hh-quiet__panel { background: #ece5db !important; color: #000 !important; }
.hh-quiet__title, .hh-quiet__num, .hh-quiet__cap { color: #000 !important; }

/* цифры бежевые, как «Ваша история начинается здесь» и иконки (по просьбе) */
.hh-quiet__num { color: #bb9775 !important; }
.hh-quiet__num svg { color: #bb9775 !important; }

/* фигуры между пунктами — бежевые, как цифры и иконки (по просьбе) */
.hh-quiet__item::after { background-image: url('union-beige.svg') !important; }

/* фигуры — контурные (Union-1.svg), бежевая линия как у фигуры в отзывах (по просьбе) */
.hh-quiet__item::after { background-image: url('union-outline-beige.svg') !important; }

/* фигура целиком, без обрезки краёв линии (по просьбе) */
.hh-quiet__item::after { background-image: url('union-outline-quiet.svg') !important; }
