@font-face {
  font-family: "CeraRoundPro";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/TypeMates\ -\ CeraRoundPro-Regular.otf") format("opentype");
}

.page {
  max-width: 1200px;
  padding: 60px 0 120px 0;
  margin: auto;
  font-family: "CeraRoundPro", Arial, sans-serif;
}

h1,
h2,
p {
  margin: 0;
}

button {
  font-family: "CeraRoundPro", Arial, sans-serif;
}

.header {
  margin: auto;
  padding: 0 50px;
}

.header__heading {
  color: #f6463d;
  font-size: 26px;
  line-height: 30px;
  margin: 0 0 40px 0;
}

.header__text {
  font-size: 22px;
  line-height: 26px;
  font-weight: bold;
  margin: 0;
}

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

.main-image-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 100px;
  gap: 35px;
}

.main-image {
  /* max-width: 440px; */
  max-height: 420px;
  object-fit: contain;
}

.main-container {
  max-width: 523px;
  display: flex;
  flex-direction: column;
}

.main-text-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 25px;
}

.main-text {
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 15px;
}

.main-text:last-of-type {
  margin: 0;
}

.main-list {
  margin: 0;
  padding: 0;
  list-style: none;
  padding-top: 30px;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 5px;
  align-items: center;
  justify-items: start;
}

.main-list .list-item:nth-of-type(1),
.main-list .list-item:nth-of-type(2) {
  margin-bottom: 10px;
}

.list-item__city {
  font-weight: bold !important;
  color: #f6463d;
}

.list-item__city,
.list-item__phone {
  font-size: 16px;
}

.list-item__list-phone {
  font-size: 14px;
  white-space: nowrap;
  text-align: end;
}

.list-item__list-city {
  font-size: 14px;
}

.list-item__city,
.list-item__phone,
.list-item__list-phone,
.list-item__list-city {
  font-weight: 400;
  line-height: 22px;
}

.list-item__phone {
  padding-left: 4px;
  text-align: end;
}

.main-list .list-item:nth-of-type(-n + 2) .list-item__city,
.main-list .list-item:nth-of-type(-n + 2) .list-item__phone {
  font-size: 20px;
  line-height: 22px;
  white-space: nowrap;
}

.list-item__button {
  border: none;
  background-color: #fff;
  color: #f6463d;
  cursor: pointer;
  font-size: 10px;
  line-height: 26px;
  text-decoration: underline;
  white-space: nowrap;
  text-align: end;
}

.app-links {
  display: flex;
  gap: 10px;
  margin-top: 45px;
}

.app-link {
  width: 125px;
  height: 37px;
  text-indent: -9999999px;
  background-size: cover;
}

.google-play {
  background-image: url("./google-play.svg");
}

.app-store {
  background-image: url("./app-store.svg");
}

.city-list-section {
  padding: 100px 15px 0 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  flex-wrap: wrap;
}

.city-list-1,
.city-list-2,
.city-list-3 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100vw;
  height: 100vh;
  visibility: hidden;
}

.modal_opened {
  visibility: visible;
}
.modal__close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.modal__container {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 45px 60px;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  max-width: 950px;
  border: 1px solid #dfe3e6;
  border-radius: 10px;
  z-index: 3;
}

.modal__heading {
  display: flex;
  width: 100%;
}

.modal__heading-section {
  width: 200px;
  padding-right: 40px;
  color: #bcbcbc;
  font-size: 14px;
  line-height: 24px;
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 15px 0 0 0;
  padding: 0;
  width: 100%;
  height: 400px;
  overflow-y: auto;
}

.shop {
  display: flex;
  align-items: center;
}

.shop__section {
  width: 200px;
  padding-right: 40px;
  font-size: 20px;
  line-height: 24px;
}

.shop__section_hours {
  white-space: nowrap;
  padding-right: 80px;
}

.modal__overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

@media screen and (max-width: 1280px) {
  .city-list-section {
    grid-template-columns: repeat(2, 1fr);
    padding: 50px 28px 0 28px;
  }

  .city-list-section > ul {
    min-width: 45%;
  }

  .modal__container {
    padding: 25px 30px;
  }

  .shop__section {
    font-size: 18px;
  }

  .shop__section,
  .modal__heading-section {
    padding-right: 15px;
  }

  .modal__heading-section:last-of-type {
    padding-right: 80px;
  }

  .main-image-section {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  .header__heading,
  .header__text {
    text-align: center;
  }

  .main-image-section {
    padding-top: 48px;
    flex-direction: column;
    align-items: center;
  }

  .main-image {
    /* width: 300px; */
    height: 320px;
  }

  .main-text-container {
    display: none;
  }

  .main-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  .main-list .list-item {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    display: flex;
  }

  .main-list .list-item__button,
  .main-list .list-item__city,
  .main-list .list-item__phone {
    align-self: center;
    padding: 0;
  }

  .city-list-section {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }

  .city-list-section > ul {
    min-width: 75%;
    display: flex;
  }

  .modal__container {
    padding: 40px 45px;
  }

  .modal__heading {
    display: none;
  }

  .modal__list {
    margin: 0;
  }

  .shop {
    flex-direction: column;
  }

  .shop__section {
    padding: 0;
    width: 260px;
  }

  .shop__section_phone {
    color: #f6463d;
  }
}

@media screen and (max-width: 515px) {
  .page {
    padding-bottom: 40px;
  }

  .header {
    padding: 0 10px;
  }

  .city-list-section > ul {
    min-width: 90%;
    display: flex;
  }

  .list-item__list-phone {
    font-size: 14px;
  }
  .list-item__list-city {
    font-size: 14px;
  }
}

a {
  /* text-decoration: none; */
  color: black;
}
