:root {
  --ink: #0d1b2a;
  --muted: #5b6b7c;
  --line: #e3e8ee;
  --accent: #0077cc;
  --accent-dark: #005a9c;
  --night: #030912;
  --sale: #c62828;
  --surface: #f5f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--night);
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__note {
  color: #7aa8d0;
  font-size: 13px;
  font-weight: 600;
}

.hero {
  padding: 48px 24px 24px;
  text-align: center;
  background: var(--night);
  color: #f2f6fa;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
}

.hero p {
  margin: 0 auto;
  max-width: 560px;
  color: #b8cde0;
  line-height: 1.6;
}

.shop {
  padding: 32px 16px 48px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card__image {
  position: relative;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f6;
  aspect-ratio: 1;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sale);
  color: #fdf3f3;
  font-size: 12px;
  font-weight: 700;
}

.card__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.card__text {
  flex: 1;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card__price {
  margin: 0 0 14px;
  font-size: 20px;
}

.card__price s {
  margin-right: 6px;
  color: var(--muted);
  font-size: 15px;
}

.card__button {
  display: block;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #f7fbff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.card__button:hover {
  background: var(--accent-dark);
}

.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.perks div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}

.perks span {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer__legal {
  max-width: 720px;
  margin: 8px auto 0;
  line-height: 1.5;
}

.card--picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
