* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterRegular.woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "PT Serif";
  src: url("../fonts/PTSerifBold.woff2");
  font-display: swap;
  font-weight: 700;
}

body {
  margin: 0;
  padding: 20px;
  background: #ece3d5;
  font-family: "Inter", sans-serif;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  max-width: 1200px;
  border: 1px solid #d8c8b0;
  padding: 40px;
  background: #f8f2e8;
}

.content__title {
  margin: 0;
  font-family: "PT Serif", sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 120%;
  color: #2f2922;
}

.content__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
}

.content__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdbca5;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #2f2922;
  background: #efe5d6;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.content__btn:hover {
  border-color: #3d3127;
  color: #fff;
  background: #3d3127;
}

.content__btn--active {
  border-color: #3d3127;
  color: #fff;
  background: #3d3127;
  pointer-events: none;
}

.content__inner {
  display: none;
  gap: 28px;
}

.content__inner--active {
  display: flex;
}

.content__image {
  flex: 1;
}

.content__pic {
  display: block;
  border-radius: 12px;
  max-width: 100%;
  object-fit: cover;
}

.content__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #d8c8b0;
  border-radius: 12px;
  padding: 24px;
  flex-shrink: 0;
  width: 418px;
  background: #f3ebdf;
}

.content__subtitle {
  margin: 0;
  font-family: "PT Serif", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 120%;
  color: #2f2922;
}

.content__subdescr {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #2f2922;
}

.content__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8c8b0;
  border-radius: 8px;
  padding: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #000;
}

.content__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  text-decoration: none;
  color: #fff;
  background: #3d3127;
  transition: background 0.3s;
}

.content__link:hover {
  background: #584739;
}
