:root {
  color-scheme: dark;
  background: #0c1120;
  color: #f2f5ff;
  font: 100%/1.4 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #a8c0ff; outline-offset: 3px; }

.shell {
  width: min(440px, calc(100% - 24px));
  margin-inline: auto;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.phone, .icon-link, .review-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #33445e;
  border-radius: 9px;
  background: #141e34;
  font-weight: 650;
}

.phone:hover, .icon-link:hover, .review-links a:hover {
  background: #1c2b46;
  border-color: #7089ba;
}

.phone { padding-inline: 12px; white-space: nowrap; }
.icon-link { width: 44px; }

h1 {
  margin: 10px 0;
  text-align: center;
  font-size: clamp(1.25rem, 4.2vw, 1.5rem);
  line-height: 1.2;
}

.price {
  display: block;
  border-radius: 9px;
}

.price img {
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.reviews {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-block: 12px 0;
  padding-bottom: 12px;
}

.reviews h2 {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

.review-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.review-links a {
  gap: 6px;
  padding-inline: 8px;
  font-size: .875rem;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .contacts {
    gap: 10px;
    padding-top: 32px;
  }

  main.shell {
    display: grid;
    grid-template-columns: minmax(0, 26fr) minmax(0, 19fr);
    align-items: center;
    gap: 20px 36px;
    width: min(936px, calc(100% - 64px));
    padding-bottom: 24px;
  }

  h1 {
    grid-column: 1 / -1;
    margin: 20px 0 0;
    font-size: clamp(2rem, 3vw, 2.5rem);
  }

  .reviews {
    gap: 16px;
    margin: 0;
    padding: 24px 12px;
    border: 1px solid #33445e;
    border-radius: 9px;
    background: #10192c;
  }

  .reviews h2 { font-size: 1.25rem; }
  .review-links { gap: 8px; }
  .review-links a { padding-inline: 10px; }
}

@media (max-width: 660px) {
  .reviews { padding-bottom: 56px; }
}
