/* Карточка заходит на нижний край hero: секция поднимается вверх, а её фон начинается ниже */
.intro {
  margin-top: -63px;
  background: linear-gradient(transparent 63px, #fff 63px);
  position: relative;
}

.intro__card {
  position: relative;
  margin: 0 32px;
  padding: 27px 27px 41px;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  line-height: 23.8px;
}

.intro__highlight {
  margin-top: 24px;
}

.intro__highlight mark {
  background: #fce93d;
  color: #000;
  font-size: 18px;
  font-weight: 700;
}

.intro__text {
  margin-top: 28px;
}

.intro__row {
  display: flex;
  align-items: center;
  margin-top: 19px;
}

.intro__row .countdown {
  margin-left: 15px;
}

.intro__phone {
  margin-left: 69px;
  color: var(--color-red);
  font: 700 40px/56px var(--font-plain);
  letter-spacing: 0;
  text-decoration: none;
}

/* Без таймера телефон остаётся на том же месте */
.intro__phone--alone {
  margin-left: 357px;
}

.intro__arrow {
  position: absolute;
  left: 778px;
  top: 146px;
  width: 34px;
  height: 106px;
  transform: rotate(72.8deg);
}

/* Таймер: пластины с цифрами */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-plain);
  letter-spacing: 0;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__digits {
  display: flex;
  gap: 3px;
}

.countdown__digit {
  position: relative;
  width: 36px;
  height: 57px;
  border-radius: 10px;
  background: #efefef;
  color: #000;
  font-size: 43px;
  line-height: 57px;
  text-align: center;
}

.countdown__digit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
}

.countdown__sep {
  font-size: 43px;
  line-height: 54px;
}

.countdown__label {
  margin-top: 3px;
  color: #666;
  font-size: 13px;
  line-height: 16px;
}

@media (max-width: 979px) {
  .intro {
    margin-top: 0;
    background: #fff;
  }

  .intro__card {
    margin: 0 6px;
    padding: 17px 9px 40px;
    font-size: 15px;
    line-height: 21px;
    text-align: center;
  }

  .intro__highlight {
    margin-top: 26px;
  }

  .intro__highlight mark {
    font-size: 16px;
  }

  .intro__text {
    margin-top: 27px;
  }

  .intro__row {
    display: block;
    margin-top: 33px;
  }

  .countdown {
    display: none;
  }

  /* Страницы услуг: таймер остаётся и на телефоне, под номером */
  .intro--timer-mobile .intro__row {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
  }

  .intro--timer-mobile .countdown {
    display: flex;
    margin: 0;
    transform: scale(0.8);
  }

  .intro__phone {
    margin: 0;
    font-size: 28px;
    line-height: 39px;
  }

  .intro__arrow {
    left: auto;
    right: 36px;
    top: 208px;
    width: 19px;
    height: 58px;
  }
}
