:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #87c9e1;
  color: #102027;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05)),
    url("./assets/sunny-field.png") center / cover fixed;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px 0 26px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-name {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 470px;
  margin: 14px 0 0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.38;
  font-weight: 750;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(16, 32, 39, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 30px);
  align-items: end;
  margin-top: 26px;
}

.phone {
  min-height: 488px;
  border: 9px solid #111a1e;
  border-radius: 36px;
  overflow: hidden;
  background: #b9dfed;
  box-shadow: 0 26px 70px rgba(16, 32, 39, 0.2);
}

.phone:nth-child(2) {
  transform: translateY(-20px);
}

.phone-screen {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16)),
    url("./assets/sunny-field.png") center / cover;
}

.screen-topline {
  font-size: 13px;
  font-weight: 850;
  color: rgba(16, 32, 39, 0.72);
}

.temperature {
  font-size: 78px;
  line-height: 0.95;
  font-weight: 900;
}

.screen-title {
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.screen-copy {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
  color: rgba(16, 32, 39, 0.72);
}

.mini-panel {
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-label {
  font-size: 12px;
  font-weight: 850;
  color: rgba(16, 32, 39, 0.65);
}

.metric-value {
  font-size: 24px;
  font-weight: 900;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 32, 39, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.rule-row:last-child {
  border-bottom: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 850;
}

.document {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 44px 0;
}

.document article {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(16, 32, 39, 0.16);
  backdrop-filter: blur(14px);
}

.document h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.document h2 {
  margin-top: 30px;
  font-size: 22px;
}

.document p,
.document li {
  font-size: 16px;
  line-height: 1.6;
}

.document ul {
  padding-left: 22px;
}

.document nav {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 860px) {
  .page-shell {
    padding: 18px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .phones {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .phone:nth-child(2) {
    transform: none;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
