/* main.css */
* {
  box-sizing: border-box;
}

.body {
  width: 100%;
  min-height: 100svh;
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0px 0;
}

.main__title {
  text-align: center;
  color: lightgray;
  font-size: 2rem;
  margin: 2% 0px 0px 0px;
}

.main__info {
  display: flex;
  flex-direction: column;
  height: 100svh;
  color: white;
}

.main__info-content {
  display: block;
  height: 100%;
}

.info-content__grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  color: gray;
}

.info-content__list-item {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  margin-top: 1%;
}

.info-content__list-item-icon {
  width: 24px;
  height: 24px;
  color: green;
}

.info-content__list-item-text {
  font-size: 1.5rem;
}

.title {
  text-align: left;
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.main__info-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin: 16px 0;
}

.main__info-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main__info-description {
  text-align: left;
  margin: 0;
  line-height: 1.6;
  color: #bbbbbb;
}

.main__info-about {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.main__info-about-location {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 0.95rem;
}

.main__info-about-location_icon {
  width: 24px;
  height: 24px;
  color: #64b5f6;
}

.main__info-about-adress {
  margin-left: 6px;
  color: #90caf9;
  text-decoration: none;
  font-weight: 500;
}

.main__info-about-adress:hover {
  text-decoration: underline;
}

.main__info-about-working-hours {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 0.95rem;
}

.main__info-about-clock_icon {
  width: 24px;
  height: 24px;
  color: #64b5f6;
}

.main__info-about-hours_desktop {
  margin-left: 6px;
  color: #90caf9;
  text-decoration: none;
  font-weight: 500;
}

.main__info-about-hours_mobile {
  display: none;
}

.main__contact-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 2%;
}

/* Кнопки — исправлены для мобильных устройств */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #1976d2;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  
  /* Убираем "залипание" на мобильных */
  -webkit-tap-highlight-color: transparent; /* убирает вспышку при нажатии */
  touch-action: manipulation; /* улучшает отклик тача */
}

.button:hover {
  background-color: #1565c0;
}

.button:active {
  background-color: #1565c0; /* фиксированный цвет при нажатии */
}

.button__icon {
  width: 20px;
  height: 20px;
  fill: white;
}

.main__services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.main__services-item {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-content {
  flex: 1;
  margin-right: 20px;
}

.service-name {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: left;
}

.service-description {
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
  color: #aaaaaa;
  line-height: 1.5;
}

.service-price {
  margin: 0;
  text-align: right;
  font-weight: bold;
  color: #64b5f6;
  font-size: 1.1rem;
  white-space: nowrap;
}

.footer {
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
}

.developer-link {
  color: #90caf9;
  text-decoration: none;
}

.developer-link:hover {
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 1024px) {
  .main__info-about-hours_desktop {
    margin-left: 6px;
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
  }

  .main__info-about-hours_mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .main__info-about-adress {
    max-width: 13ch;
  }

  .main__info-about-hours_mobile {
    max-width: 12ch;
  }

  .main__contact-buttons {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 1.5rem;
  }

  .info-content__list-item-text {
  font-size: 1rem;
}

  .main__info-about-hours_mobile {
    margin-left: 6px;
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
    display: block;
  }

  .main__info-about-hours_desktop {
    display: none;
  }

  .main__services-item {
    flex-direction: column;
    align-items: stretch;
  }

  .service-content {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .service-price {
    text-align: right;
  }
}
