@font-face {
  font-family: "Open Sans";
  src: url("https://netology-code.github.io/html-2-diploma/sources/fonts/OpenSans-Regular.woff") format("woff");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url("https://netology-code.github.io/html-2-diploma/sources/fonts/OpenSans-Bold.woff") format("woff");
  font-style: normal;
  font-weight: bold;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  min-width: 1660px;
}

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

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.header {
  color: white;
  background-color: black;
  min-height: 450px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px;
  box-sizing: border-box;
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/banner-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  position: relative;
  z-index: 0;
}

.header::after {
  content: "";
  position: absolute;
  background-color: black;
  inset: 0;
  opacity: 0.6;
  z-index: -1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.logo-img {
  width: 180px;
  height: auto;
}

.menu {
  font-weight: normal;
  font-size: 13px;
}

.menu-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 35px;
}

.menu-item {
  text-transform: uppercase;
}

.header-title {
  max-width: 720px;
  font-weight: bold;
  font-size: 45px;
  line-height: 1.67;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  text-transform: uppercase;
}

.trends-content {
  color: white;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: space-evenly;
}

.trends-content::after {
  content: "";
  position: absolute;
  background-color: rgb(0, 0, 0);
  inset: 0;
  opacity: 0.6;
  z-index: -1;
}

.trends-title {
  font-size: 20px;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  line-height: 1;
  margin: 60px 0 50px 0;
}

.trends-title::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 3px;
  background-color: #e1d9bd;
}

.main {
  display: flex;
  justify-content: space-between;
  column-gap: 120px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.img-container {
  min-width: 381px;
  height: 294px;
  background-color: #f4f7f6;
}

.article-item {
  display: flex;
  column-gap: 30px;
  width: 776px;
  margin-bottom: 60px;
}

.article-item:last-child {
  margin-bottom: 0;
}

.article-img {
  background-color: #f4f7f6;
  width: 381px;
  height: 294px;
}

.article-category {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  color: #b59f5b;
  display: flex;
  flex-wrap: wrap;
  column-gap: 19px;
  line-height: 1;
}

.article-title {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.2;
}

.article-info {
  display: flex;
  font-size: 12px;
  column-gap: 13px;
  margin-top: 27px;
  margin-bottom: 45px;
}

.article-time {
  color: #888888;
}

.article-author {
  font-weight: bold;
  font-style: normal;
}

.article-text {
  max-width: 367px;
  font-size: 15px;
  line-height: 1.46;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.news {
  width: 272px;
  margin-bottom: 41px;
}

.news-title {
  font-size: 14px;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  margin-bottom: 40px;
  margin-top: 0;
  line-height: 1;
}

.news-title::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 3px;
  background-color: #e1d9bd;
}

.news-article {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.news-img-container {
  min-width: 71px;
  max-width: 71px;
  height: 71px;
  background-color: #f4f7f6;
  font-size: 9px;
}

.news-img {
  width: 71px;
  height: 71px;
  background-color: #f4f7f6;
}

.news-article-content {
  display: flex;
  flex-direction: column;
}

.news-time {
  font-size: 12px;
  line-height: 1;
  color: #9a9a9a;
}

.news-article-title {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 5px;
  margin-bottom: 0px;
}

.search {
  display: flex;
  margin-bottom: 55px;
}

.search-text {
  width: 222px;
  height: 49px;
  border: none;
  background-color: #f4f7f6;
  padding: 18px;
  font-size: 13px;
}

.search-button {
  width: 49px;
  height: 49px;
  box-sizing: border-box;
  border: none;
  background-color: #b59f5b;
  padding: 18px;
  margin: 0;
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/search.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.form {
  margin-bottom: 55px;
}

.form-title {
  font-size: 14px;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  margin-bottom: 39px;
  margin-top: 0;
}

.form-title::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 3px;
  background-color: #e1d9bd;
  margin-top: 6px;
}

.form-elements {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-email {
  width: 272px;
  height: 49px;
  box-sizing: border-box;
  border: none;
  background-color: #f4f7f6;
  padding: 18px;
  font-size: 13px;
}

.form-button {
  width: 272px;
  height: 49px;
  border: none;
  background-color: #b59f5b;
  padding: 18px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

.tegs {
  margin-bottom: 57px;
}

.tegs-title {
  font-size: 14px;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  margin-bottom: 36px;
  margin-top: 0;
}

.tegs-title::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 3px;
  background-color: #e1d9bd;
  margin-top: 6px;
}

.tegs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tegs-item {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: bold;
  border: 3px solid #eeeeee;
  padding: 4px 12px;
  box-sizing: border-box;
  display: flex;
}

.thems-title {
  font-size: 14px;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  margin-bottom: 35px;
  margin-top: 0;
}

.thems-title::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 3px;
  background-color: #e1d9bd;
  margin-top: 6px;
}

.thems-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.thems-item {
  font-size: 14px;
  font-weight: bold;
  padding-bottom: 13px;
  border-bottom: 1px solid #eeeeee;
}

.thems-item-xs {
  color: #b59f5b;
  font-size: 12px;
  vertical-align: super;
}

.footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 58px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  background-color: #f4f7f6;
  padding: 31px;
}

.list-socials {
  display: flex;
  flex-direction: row;
  gap: 27px;
}

.list-socials-item {
  display: flex;
  position: relative;
}

.list-social-dribble {
  width: 20px;
  height: 20px;
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/social/001-dribbble.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.list-social-printerest {
  width: 20px;
  height: 20px;
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/social/002-pinterest.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.list-social-tumblr {
  width: 20px;
  height: 20px;
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/social/003-tumblr.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.footer-copyrights {
  color: #999999;
  font-size: 12px;
  font-weight: bold;
}

.hover-inline:hover {
  text-decoration: underline;
}

.hover-color:hover {
  color: #b59f5b;
}

.hover-btn:hover {
  background-color: #323232;
  cursor: pointer;
}

.hover-border:hover {
  border: 3px solid #b59f5b;
}

.form-focus:focus {
  outline: 1px solid #b59f5b;
  outline-offset: -1px;
}

/* Медиазапросы для адаптивности */
@media (max-width: 1200px) {
  .container {
    max-width: 90%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  body {
    min-width: auto;
  }
  .main {
    flex-direction: column;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .article-item {
    width: 100%;
    flex-direction: column;
  }
  .img-container, .article-img {
    width: 100%;
    height: auto;
    min-width: auto;
  }
  .sidebar {
    width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .menu-list {
    flex-direction: column;
    gap: 15px;
  }
  .header-title {
    font-size: 28px;
    margin-top: 60px;
  }
  .search-text, .form-email {
    width: 100%;
  }
  .form-button {
    width: 100%;
  }
}
