:root {
  --ink: #17191b;
  --muted: #666a6d;
  --surface: #f3f1ec;
  --paper: #fffefb;
  --line: #d8d5ce;
  --accent: #cc3c2d;
  --container: min(1280px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.5;
}

html[data-template-loading="true"] body {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.chooser-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 236, 0.94);
}

.chooser-header__inner,
.chooser-footer__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.back-link,
.contact-link {
  font-size: 14px;
  font-weight: 800;
}

.contact-link {
  justify-self: end;
  color: var(--accent);
}

.chooser-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.chooser-brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.chooser-hero {
  padding: 86px 0 72px;
}

.chooser-hero__grid {
  display: grid;
  grid-template-columns: 0.3fr 1.35fr 0.75fr;
  gap: 38px;
  align-items: end;
}

.eyebrow,
.chooser-hero p {
  margin: 0;
}

.eyebrow {
  align-self: start;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  font-size: 5.2rem;
  line-height: 0.98;
}

.chooser-hero__grid > p:last-child {
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
}

.designs {
  padding: 0 0 104px;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.design-card {
  min-width: 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.design-card__preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9d9d5;
}

.design-card__preview img {
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.design-card:hover .design-card__preview img {
  transform: scale(1.018);
}

.design-card__body {
  min-height: 286px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  grid-template-rows: auto auto 1fr;
  gap: 10px 18px;
  padding: 30px;
}

.design-card__number {
  grid-row: 1 / 4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.design-card__name {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.design-card h2 {
  grid-column: 2 / 4;
  font-size: 3rem;
  line-height: 1;
}

.design-card__description {
  grid-column: 2;
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--muted);
}

.design-card__action {
  grid-column: 3;
  align-self: end;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.chooser-footer {
  background: var(--ink);
  color: var(--paper);
}

.chooser-footer__inner p {
  grid-column: 1 / 3;
  max-width: 620px;
  color: #b8b9b6;
}

.chooser-footer__inner a {
  justify-self: end;
  font-weight: 800;
}

@media (max-width: 900px) {
  .chooser-hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .design-card__body {
    grid-template-columns: 42px 1fr;
  }

  .design-card h2,
  .design-card__description,
  .design-card__action {
    grid-column: 2;
  }

  .design-card__action {
    margin-top: 18px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(1280px, calc(100% - 28px));
  }

  .chooser-header__inner {
    grid-template-columns: 1fr auto;
  }

  .chooser-brand {
    justify-self: end;
  }

  .chooser-brand strong,
  .contact-link {
    display: none;
  }

  .chooser-hero {
    padding: 56px 0 46px;
  }

  h1 {
    font-size: 3rem;
  }

  .design-grid {
    grid-template-columns: 1fr;
  }

  .design-card__body {
    min-height: 260px;
    padding: 22px 18px;
  }

  .design-card__number {
    grid-row: auto;
  }

  .design-card h2,
  .design-card__description,
  .design-card__action {
    grid-column: 1 / 3;
  }

  .design-card h2 {
    font-size: 2rem;
    overflow-wrap: normal;
  }

  .chooser-footer__inner {
    min-height: 130px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .chooser-footer__inner p,
  .chooser-footer__inner a {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }
}
