// @process

@import './reset';

@font-face {
  font-weight: normal;
  font-family: 'JetBrainsMono';
  font-style: normal;
  src: url('../fonts/JetBrainsMono/JetBrainsMono-Regular.woff2') format('woff2'),
    url('../fonts/JetBrainsMono/JetBrainsMono-Regular.woff') format('woff');
}

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  font-family: 'JetBrainsMono', Helvetica, Arial, sans-serif;
  line-height: 1.25;
}

.header {
  padding: 5px 10px;
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: space-between;
  height: 31px;
  align-items: center;

  &__title {
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;

    & > * + * {
      margin-left: 10px;
    }
  }

  &__contacts {
    display: flex;

    & > * + * {
      position: relative;
      margin-left: 20px;

      &:before {
        content: '';
        position: absolute;
        width: 1px;
        height: 20px;
        background: #000;
        left: -10px;
      }
    }
  }

  &__logo {
    width: 16px;
    height: 16px;
    transition: color 0.2s linear;
  }

  &__name {
    color: #666;
  }
}

.content {
  height: calc(100% - 31px);
}

.catalogue {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: center;
  padding: 20px;
}

.item-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 1px solid #bfccd6;
  box-shadow: 0 2px 12px -2px rgb(0 0 0 / 15%);
  transition: all 0.16s linear;

  img {
    display: block;
  }

  &:hover {
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.5);
  }
}

a,
a:hover,
a:visited {
  color: #000;
  text-decoration: none;
}
