@font-face {
  font-family: Averta;
  src: url('/assets/averta-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Averta, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.67;
  color: #4f4f4f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #c93c46; outline-offset: 5px; }
.container { width: 100%; padding: 0 15px; margin: 0 auto; }
header {
  padding: 70px 0;
  background: #fbfbfb url('/assets/rocket.svg') no-repeat 85vw 50% / 111px 112px;
}
.logo { width: 168px; height: 50px; margin: 0 auto 30px; line-height: 0; }
.logo img { width: 100%; height: 100%; }
.intro { max-width: 855px; padding: 0 15px; margin: 0 auto; text-align: center; }
.companies { margin-top: 80px; margin-bottom: 80px; }
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.brand { min-width: 0; position: relative; font-size: 1rem; }
.brand summary {
  display: block;
  list-style: none;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgb(204 204 204 / 68%);
  transition: box-shadow .1s ease-in;
  aspect-ratio: 1;
}
.brand summary::-webkit-details-marker { display: none; }
.brand summary::marker { content: ''; }
.brand summary img { width: 100%; height: 100%; object-fit: contain; }
.brand summary:hover, .brand[open] summary { box-shadow: 0 1px 10px 0 rgb(204 204 204 / 68%); }
.brand summary:active { box-shadow: 0 1px 4px 1px rgb(204 204 204 / 68%); }
.brand-detail {
  position: relative;
  width: calc(200% + 30px);
  margin-top: 30px;
  padding: 40px 20px;
  background: #fbfbfb;
  text-align: center;
}
.brand-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 20px;
  height: 20px;
  background: #fbfbfb;
  transform: translateY(-50%) rotate(45deg);
}
.brand:nth-child(even) .brand-detail { left: 100%; transform: translateX(-100%); }
.brand:nth-child(even) .brand-detail::before { left: auto; right: 30px; }
.brand-detail p { margin: 0 0 20px; }
.button {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #4f4f4f;
  background: transparent;
  color: #4f4f4f;
  font-size: .875rem;
  line-height: 1.67;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .1s ease-in;
}
.button:hover { background: #4f4f4f; color: #fff; text-decoration: none; }
footer { font-size: .875rem; text-align: center; }
footer::before {
  display: block;
  content: '';
  width: 100%;
  height: 1.1875vw;
  min-height: 19px;
  background: url('/assets/footer-line.svg') no-repeat 0 0 / cover;
}
.contact { margin: 30px auto; font-style: normal; }
.contact p { margin: 0; }
.contact-line { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.contact-line li:not(:last-child)::after { content: '-'; margin: 0 5px; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 576px) {
  .container { max-width: 540px; }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-detail, .brand:nth-child(even) .brand-detail { width: 470px; max-width: 80vw; left: 50%; transform: translateX(-50%); }
  .brand-detail::before, .brand:nth-child(even) .brand-detail::before { left: 50%; right: auto; transform: translate(-50%, -50%) rotate(45deg); }
  .brand:nth-child(3n+1) .brand-detail { left: 0; transform: none; }
  .brand:nth-child(3n+1) .brand-detail::before { left: 30px; transform: translateY(-50%) rotate(45deg); }
  .brand:nth-child(3n) .brand-detail { left: 100%; transform: translateX(-100%); }
  .brand:nth-child(3n) .brand-detail::before { left: auto; right: 30px; transform: translateY(-50%) rotate(45deg); }
}
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) {
  .container { max-width: 960px; }
  .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brand-detail, .brand:nth-child(n) .brand-detail { left: 50%; transform: translateX(-50%); }
  .brand-detail::before, .brand:nth-child(n) .brand-detail::before { left: 50%; right: auto; transform: translate(-50%, -50%) rotate(45deg); }
  .brand:first-child .brand-detail { left: 0; transform: none; }
  .brand:first-child .brand-detail::before { left: 30px; transform: translateY(-50%) rotate(45deg); }
  .brand:last-child .brand-detail { left: 100%; transform: translateX(-100%); }
  .brand:last-child .brand-detail::before { left: auto; right: 30px; transform: translateY(-50%) rotate(45deg); }
}
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (max-width: 991.98px) {
  header { background-position: 80vw 15%; background-size: 70px 70px; }
  .logo { width: 135px; height: 40px; }
  .intro { max-width: 91.666667%; }
}
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  header { padding: 40px 0; }
  .logo { margin-bottom: 26px; }
  .intro { padding: 0; }
  .companies { margin-top: 40px; margin-bottom: 40px; }
  .brand-detail { padding: 35px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
