:root {
  --text: #333333;
  --muted: #999999;
  --line: #d8d8d8;
  --blue: #34aaf2;
  --bg: #ffffff;
  --header-h: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Abel, "Abel Fallback", Arial, sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(989px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 79px;
}

.logo img {
  width: 184px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
}

.nav__link:hover {
  background: #f6f8fa;
}

.nav__link.is-active {
  color: #fff;
  background: var(--blue);
}

.main {
  padding: calc(var(--header-h) + 32px) 0 64px;
}

.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
}

.feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  min-width: 0;
}

.card__image {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
}

.card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.card__info {
  flex: 1 1 0%;
  padding: 15px 15px 18px;
  border-radius: 12px;
  box-shadow: 0 20px 18px rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s;
}

.card:hover .card__info {
  background-color: #d8d8d8;
}

.card__tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__tag-list {
  display: flex;
  align-items: center;
  column-gap: 8px;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
}

.card__details {
  display: flex;
  align-items: center;
  column-gap: 21px;
}

.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}

.date {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  height: 24px;
  padding: 0 8px 0 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.card__title {
  margin: 12px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__lead {
  font-size: 12px;
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card--banner .card__image {
  height: auto;
  background: #00c853;
  border-radius: 12px;
  overflow: hidden;
}

.card--banner .card__image img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 15px;
}

.article__image {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.article__image img {
  width: 100%;
  max-height: 457px;
  object-fit: cover;
}

.article__title {
  margin: 16px 0 25px;
  font-size: 28px;
  line-height: 28px;
  font-weight: 400;
}

.article__lead {
  font-size: 15px;
  line-height: 24px;
  max-width: 680px;
}

@media (min-width: 768px) {
  .container {
    width: min(989px, calc(100% - 88px));
  }

  .page-title {
    font-size: 38px;
    line-height: 36px;
  }

  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1372px) {
  .card__image {
    height: 260px;
  }

  .card__info {
    padding: 20px 20px 28px;
  }

  .card__tag-list {
    position: static;
  }

  .card__title {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (max-width: 720px) {
  .logo img {
    width: 148px;
  }

  .article__title {
    font-size: 24px;
    line-height: 26px;
  }
}
