@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  color: #171713;
  background: #f4f2ed;
  font-family: 'Manrope', Arial, sans-serif;
  font-synthesis: none;
  --orange: #f04a19;
  --ink: #171713;
  --muted: #68665f;
  --line: #d9d6ce;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: #f4f2ed;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f4f2ed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 237, 0.94);
}

.brand {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 23px;
  line-height: 1;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-link {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

main {
  width: min(1320px, calc(100% - clamp(36px, 8vw, 128px)));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 100px) 0 clamp(72px, 9vw, 120px);
}

.card__type {
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(24, 23, 19, 0.05);
  animation: enter 520ms ease-out both;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.card:nth-child(2) {
  animation-delay: 70ms;
}

.card:nth-child(3) {
  animation-delay: 140ms;
}

.card:hover,
.card:focus-within {
  border-color: #bdb9ae;
  box-shadow: 0 18px 48px rgba(24, 23, 19, 0.11);
  transform: translateY(-5px);
}

.card__preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #151513;
}

.card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:nth-child(1) .card__preview img {
  object-position: 67% center;
}

.card:nth-child(2) .card__preview img {
  object-position: 63% center;
}

.card:nth-child(3) .card__preview img {
  object-position: 68% center;
}

.card:hover .card__preview img,
.card:focus-within .card__preview img {
  transform: scale(1.04);
}

.card__number {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.4vw, 32px);
}

.card__type {
  margin-bottom: 9px;
  font-size: 10px;
}

h2 {
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1;
}

.card__description {
  margin: 18px 0 0;
  color: #4f4d47;
  font-size: 14px;
  line-height: 1.65;
}

.card__best {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.card__best strong {
  color: var(--ink);
}

.card__button {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.card__button span {
  color: var(--orange);
  font-size: 20px;
}

.card__button:hover,
.card__button:focus-visible {
  background: var(--orange);
}

.card__button:hover span,
.card__button:focus-visible span {
  color: #fff;
}

footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a {
  color: var(--ink);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  }

  .card__preview {
    min-height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 74px;
  }

  .contact-link {
    font-size: 10px;
  }

  main {
    width: min(100% - 32px, 560px);
    padding-top: 46px;
  }

  .card {
    display: flex;
  }

  .card__preview {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
