:root {
  --heightOfHeader: 252px;
  --dotSize: 16px;
}

html, body {
  width: 100%;
  height: 100%;
}

*, ::after, ::before {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* Colours for different status */

.status__waiting .status__colored { /* Waiting status */
  color: #EB7060;
}

.status__waiting .followMeMarker:after {
  border-color: #EB7060 transparent;
}

.status__waiting .coverDot {
  border-color: #EB7060;
}

.status__recording .status__colored { /* Recording status */
  color: #2C9F3E;
}

.status__recording .followMeMarker:after {
  border-color: #2C9F3E transparent;
}

.status__recording .coverDot {
  border-color: #2C9F3E;
}

.status__paused .status__colored { /* Paused status */
  color: #E39426;
}

.status__paused .followMeMarker:after {
  border-color: #E39426 transparent;
}

.status__paused .coverDot {
  border-color: #E39426;
}

.status__finished .status__colored { /* Finished status */
  color: #ADB5BD;
}

.status__finished .followMeMarker:after {
  border-color: #ADB5BD transparent;
}

.status__finished .coverDot {
  border-color: #ADB5BD;
}

/* Colours for different status */

.coverDot {
  height: var(--dotSize);
  width: var(--dotSize);
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  margin: 0;
  border: 4px solid #2C9F3E;
  box-shadow: 0 0 8px rgba(149, 91, 251, 0.5);
}

.blob {
  background: #fff;
  border-radius: 50%;
  margin: -10px;
  height: 20px;
  width: 20px;

  box-shadow: 0 0 0 0 #2C9F3E;
  transform: scale(1);
  animation: pulse 4s infinite;

  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #9654FFB3;
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 92px #9654FF00;
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #9654FF00;
  }
}

.followMeMarker {
  position: absolute;
  cursor: pointer;
  background: #fff;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  margin-top: -97px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.followMeMarker:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 36px;
  border-width: 6px 8px 0;
  border-style: solid;
  border-color: #2C9F3E transparent;
  display: block;
  width: 0;
}

.followMeMarker img {
  width: 80px;
  height: 80px;
  flex: none;
  border-radius: 50%;
}

.row-flex {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}


.block__info {
  height: var(--heightOfHeader);
  background: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-style: normal;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  padding: 9px 24px 24px 24px;
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
}

.map__block {
  height: calc(100vh - var(--heightOfHeader));
  max-width: 100%;
  overflow: hidden;
}

.map__block img.map__tested {
  min-width: calc(100% + 80px);
  margin-left: -80px;
}

#map {
  height: 100%;
}

.card__app {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  -ms-flex: 0 0 58.333333%;
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.card__app p {
  margin: 0;
  font-size: 18px;
  line-height: 21px;
}

.card__app p + p {
  margin-top: 4px;
}

.card__app p strong {
  font-weight: 700;
}

.card__top {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  order: 2;
}

.img__app {
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  flex: none;
}

.img__app img {
  display: block;
}

.stores__links {
  display: flex;
  justify-content: flex-end;
  -ms-flex: 0 0 41.666667%;
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.stores__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background-color: #293134;
  border-radius: 8px;
  overflow: hidden;
  width: 48px;
  height: 48px;
}

.stores__links a + a {
  margin-left: 12px;
}

.not__mobile {
  display: none;
}

.col-pad {
  padding-left: 15px;
  padding-right: 15px;
}

.main__info {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #464646;
  padding-top: 0;
  padding-bottom: 25px;
  margin-bottom: 24px;
  order: 1;
}

.main__info::after {
  content: '';
  position: absolute;
  left: -9px;
  bottom: 0;
  width: calc(100% + 18px);
  height: 1px;
  background: #293134;
  opacity: 0.2;
}

.time__block {
  width: 100%;
  text-align: center;
}

.time__block span {
  display: block;
  font-weight: 700;
  font-size: 40px;
  line-height: 47px;
  color: #121212;
  margin-bottom: 4px;
}

.distance__block {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
}

.distance__block span {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
  color: #121212;
  margin-bottom: 4px;
}

.distance__item {
  text-align: center;
  width: calc(100% / 3);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.distance__item p {
  margin: 0;
  padding: 0;
}

.distance__item:first-child {
  justify-content: flex-start;
}

.distance__item:last-child {
  justify-content: flex-end;
}

.stores__title {
  display: none;
}


@media (min-width: 640px) {
  :root {
    --heightOfHeader: 199px;
  }

  .stores__title {
    display: flex;
  }

  .card__app {
    -ms-flex: 40%;
    flex: 0 0 40%;
    max-width: 40%;
  }

  .stores__links {
    -ms-flex: 60%;
    flex: 0 0 60%;
    max-width: 60%;
  }

  .stores__links a {
    width: 180px;
  }

  .stores__links a img {
    display: none;
  }

  .stores__links a img.not__mobile {
    display: block;
  }

  .main__info {
    flex-wrap: nowrap;
    padding-top: 9px;
  }

  .time__block,
  .distance__block,
  .distance__item {
    width: auto;
  }

  .distance__item:not(:last-child) {
    margin-right: 49px;
  }
}

@media (min-width: 1200px) {
  :root {
    --heightOfHeader: 113px;
  }

  .block__info {
    padding: 26px 32px 32px;
  }

  .card__app,
  .stores__links,
  .main__info,
  .card__top {
    -ms-flex: auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }

  .row-flex {
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .card__app {
    margin-right: 23px;
  }

  .main__info,
  .distance__block {
    padding-top: 0;
  }

  .time__block {
    margin-right: 48px;
  }

  .time__block span {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 0;
  }

  .card__top {
    padding-top: 6px;
  }

  .card__top {
    order: 1;
  }

  .main__info {
    order: 2;
    margin-bottom: 0;
  }

  .main__info::after {
    content: none;
  }
}