@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-Regular.ttf") format("truetype"),
    url("../fonts/OpenSans-Regular.woff") format("woff"),
    url("../fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-Bold.ttf") format("truetype"),
    url("../fonts/OpenSans-Bold.woff") format("woff"),
    url("../fonts/OpenSans-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

body {
  font-family: "Open Sans", "Arial", sans-serif;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  z-index: 10;
  position: relative;
}

.header {
  background-image: url("../images/banner-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-position: center;
  margin-bottom: 64px;
  padding-top: 28px;
  padding-bottom: 146px;
}

.header::after {
  content: "";
  background-color: rgba(0, 0, 0, 0.6);
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
  position: absolute;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 179px;
  height: 41px;
  display: block;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  color: #fff;
  font-size: 17px;
  text-transform: uppercase;
}

.nav-link:hover {
  box-shadow: 0 1px 0 0 #fff;
}

.burger-menu {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
}

.title {
  font-size: 45px;
  line-height: 75px;
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
  margin: 126px auto 0 auto;
  /* padding-bottom: 146px; */
  width: 679px;
  text-align: center;
}

/* MAIN  news*/

.trends {
  margin-bottom: 64px;
}

.main-title {
  font-weight: bold;
  font-size: 20px;
  color: #0f0d0e;
  margin-bottom: 28px;
  text-transform: uppercase;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.main-title::after {
  content: "";
  width: 66px;
  height: 3px;
  background-color: rgba(181, 159, 91, 0.4);
  display: block; 
}

.light-title .title-link {
  color: #fff;
}

.light-title .title-link:hover {
  color: #b59f5b;
}

.trend-list {
  display: flex;
  gap: 4px;
  justify-content: space-between;
}

.not-margin {
  margin: 0 !important;
}

.trend-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 320px;
  max-width: 25%;
  position: relative;
  display: flex;
  align-items: end;
  padding: 16px 21px 16px 21px;
}

.trend-text {
  /* margin: 158px 60px 11px 23px; */
  border: 3px solid rgba(181, 159, 91, 0.6);
  padding: 32px 40px 32px 40px;
  z-index: 2;
}

.trend-card:nth-child(1) {
  background-image: url("../images/trend1.jpg");
}

.trend-card:nth-child(2) {
  background-image: url("../images/trend2.jpg");
}

.trend-card:nth-child(3) {
  background-image: url("../images/trend3.jpg");
}

.trend-card:nth-child(4) {
  background-image: url("../images/trend4.jpg");
}

.trend-card::after {
  content: "";
  background-color: rgba(0, 0, 0, 0.6);
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
  position: absolute;
  z-index: 1;
}

.main-container {
  display: flex;
  gap: 120px;
}

.main {
  display: flex;
  gap: 59px;
  flex-direction: column;
  width: 778px;
}

.card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.new-img {
  width: 381px;
  object-fit: cover;
}

.new-text {
  display: flex;
  flex-direction: column;
}

.new-tags {
  display: flex;
  gap: 19px;
  text-transform: uppercase;
  color: #b59f5b;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 3px;
}

.link-tag:hover {
  box-shadow: 0 1px 0 0 #b59f5b;
}

.new-title {
  text-transform: uppercase;
  color: #000;
  font-size: 20px;
  line-height: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.new-title:hover {
  color: #b59f5b;
}

.new-meta {
  display: flex;
  gap: 15px;
}

.new-date {
  font-size: 12px;
  color: #888;
}

.new-author {
  font-size: 12px;
  color: #000;
  font-weight: bold;
}

.new-description {
  font-size: 15px;
  line-height: 22px;
  color: #000;
  position: relative;
}

.new-text p + p {
  margin-top: 12px;
}

/* SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  width: 272px;
  gap: 60px;
}

.sidebar-title {
  font-size: 14px;
  /*   line-height: 29px; */
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  margin-bottom: 46px;
}

.sidebar-title::after {
  content: "";
  width: 66px;
  height: 3px;
  background-color: rgba(181, 159, 91, 0.4);
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.posts {
  display: flex;
  gap: 22px;
  flex-direction: column;
}

.post {
  display: flex;
  gap: 19px;
}

.post-img {
  width: 70px;
  height: 70px;
}

.post-text {
  display: flex;
  flex-direction: column;
}

.post-date {
  font-size: 12px;
  color: #888;
}

.post-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 18px;
  color: #000;
  text-transform: uppercase;
}

.post-title:hover {
  color: #b59f5b;
}

/* SEARCH */

.search .sidebar-title {
  margin-bottom: 0;
}

.search-form {
  display: flex;
}

.search-input {
  width: 223px;
  height: 48px;
  background-color: #f4f7f6;
  color: rgba(0, 0, 0, 0.54);
  font-size: 13px;
  border: none;
  padding-left: 19px;
  margin-left: 1px;
  padding-right: 19px;
}

.search-input:focus {
  outline: 1px solid #b59f5b;
}

.search-button {
  width: 48px;
  height: 48px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #b59f5b url("../svg/search.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.search-button:hover {
  background-color: #323232;
  cursor: pointer;
}

/* SUBSCRIPTION */

.subscription-input {
  width: 100%;
  height: 48px;
  background-color: #f4f7f6;
  color: rgba(0, 0, 0, 0.54);
  font-size: 13px;
  border: none;
  padding-left: 19px;
  margin-left: 1px;
}

.subscription-input:focus {
  outline: 1px solid #b59f5b;
}

.subscription-button {
  width: 100%;
  height: 48px;
  background-color: #b59f5b;
  color: #fff;
  font-size: 13px;
  border: none;
  padding-left: 19px;
  margin-left: 1px;
  text-transform: uppercase;
  margin-top: 17px;
  font-weight: bold;
}

.subscription-button:hover {
  background-color: #323232;
  cursor: pointer;
}

/* TAGS */

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  color: #000;
  border: 3px solid #f4f3f1;
  padding: 7px 13px;
  display: inline-block;
}

.sidebar-tag:hover {
  color: #b59f5b;
}

/* TOPIC */

.topic-list {
  display: flex;
  flex-direction: column;
}

.topic {
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.topic-tag {
  color: #000;
  font-size: 14px;
  font-weight: bold;
  position: relative;
}

.topic-tag:hover {
  color: #b59f5b;
}

.topic-count {
  color: #b59f5b;
  position: relative;
  bottom: 4px;
  left: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* SHOP */

.shop {
  margin-top: 64px;
}

.shop-img {
  display: block;
  margin-bottom: -36px;
  margin-left: 24px;
  position: relative;
  z-index: 1;
}

.shop-card {
  /* border: 3px solid rgba(181, 159, 91, 0.6); */
  width: 30%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.shop-info {
  border: 3px solid rgba(181, 159, 91, 0.6);
  padding: 48px 20px 25px 21px;
  z-index: 2;
  position: relative;

  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-list {
  display: flex;
  justify-content: space-between;
}
.shop-title {
  margin-bottom: 2px;
}

.shop-text {
  font-size: 15px;
  margin-bottom: 24px;
}

.text-link {
  color: #b59f5b;
}

.text-link:hover {
  box-shadow: 0 1px 0 0 #b59f5b;
}

.price {
  display: flex;
  /* gap: 115px; */
  justify-content: space-between;
  align-items: end;
}

.price-text {
  font-weight: bold;
  font-size: 20px;
  margin: 0 0 9px 0;
}

.error {
  text-decoration: line-through;
  font-size: 14px;
  line-height: 10px;
  margin: 0;
}

.store-button {
  background-color: #b59f5b;
  padding: 15px 28px 19px 30px;
  color: #fff;
  font-size: 13px;
  border: none;
  text-transform: uppercase;
  font-weight: bold;
}

.store-button:hover {
  background-color: #323232;
  cursor: pointer;
}

/* FOOTER */

.footer {
  margin-top: 64px;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.background-footer {
  background-color: #f4f7f6;
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-list {
  display: flex;
  gap: 30px;
  margin: 31px auto;
}

.footer-link {
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  height: 20px;
}

.footer-list li:nth-child(1) .footer-link {
  background-image: url("../svg/001-dribbble.svg");
  width: 20px;
  height: 20px;
}

.footer-list li:nth-child(2) .footer-link {
  background-image: url("../svg/002-pinterest.svg");
  width: 20px;
  height: 20px;
}

.footer-list li:nth-child(3) .footer-link {
  background-image: url("../svg/003-tumblr.svg");
  width: 20px;
  height: 20px;
}

.copyright {
  color: #999999;
  font-size: 12px;
  padding-top: 73px;
  padding-bottom: 40px;
  display: block;
  width: 100%;
  text-align: center;
}

/* POPUP */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 1000;
}

.popup-close {
  position: absolute;
  top: -26px;
  right: -1px;
  width: 18px;
  height: 18px;

  background-image: url("../svg/form-x.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;

  border: none;
  z-index: 10;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
}

.popup {
  width: 390px;
  background-color: #fff;
  padding: 54px 30px;
  position: relative;
}

.popup-label {
  font-size: 13px;
  display: block;
}

.popup-toggle {
  display: none;
}

.popup-toggle:not(:checked) + .popup-overlay {
  display: none;
}

.time-people {
  font-family: inherit;
  color: rgba(0, 0, 0, 0.54);
  font-size: 13px;
  height: 48px;
  width: 100%;
  margin: 12px 0 34px 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 20px;
  background-color: #f4f7f6;
  border: none;

  background-image: url("../svg/form-arrows.svg");
  background-repeat: no-repeat;
  background-size: 10px;
  background-position: right 14px center;
}

.time-people:focus {
  outline: 1px solid #b59f5b;
}

.custom-radio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  cursor: pointer;

  background-image: url("../svg/form-empty-circle.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  vertical-align: middle;
  display: inline-block;
}

.radio-group {
  margin-top: 12px;
  margin-bottom: 33px;
}

.sub-popup {
  font-size: 13px;
  margin-right: 16px;
}

.custom-radio:checked {
  background-image: url("../svg/form-circle.svg");
}

.description-people {
  font-family: inherit;
  resize: none;
  width: 100%;
  height: 130px;
  margin-bottom: 27px;
  margin-top: 12px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #f4f7f6;
  border: none;
}

.description-people::placeholder {
  color: rgba(0, 0, 0, 0.54);
  padding-top: 20px;
  padding-left: 20px;
}

.description-people:focus {
  outline: 1px solid #b59f5b;
}

.popup-button {
  width: 100%;
  height: 48px;
  background-color: #b59f5b;
  color: #fff;
  font-size: 13px;
  border: none;
  text-transform: uppercase;
  font-weight: bold;
}

.popup-button:hover {
  background-color: #323232;
  cursor: pointer;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1199px) {
  .container {
    margin: 0 auto;
    padding: 0 35px;
  }

  .header {
    background-image: url("../images/banner-bg-tablet.jpg");
    margin-bottom: 46px;
  }

  .logo {
    width: 158px;
    height: 36px;
  }

  .burger-menu {
    display: block;
  }

  .nav-list {
    display: none;
  }

  .title {
    font-size: 40px;
    line-height: 55px;
    margin: 104px auto 0 auto;
    padding-bottom: 126px;
    width: 603px;
  }

  .main-title {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .trend-list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .trend-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 247px;
    min-width: calc(50% - 2px);
    padding: auto 20px 15px 19px;
  }

  .trend-text {
    padding: 15px 40px 0px 30px;
    z-index: 2;
  }

  /* MAIN */

  .new-title {
    font-size: 17px;
    line-height: 22px;
  }

  .main-container {
    gap: 35px;
    justify-content: center;
  }

  .card {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .new-title {
    font-size: 17px;
    line-height: 22px;
    margin-bottom: 30px;
  }

  .new-author {
    margin-bottom: 30px;
  }

  .last-p::after {
    content: "";
    width: 100%;
    height: 3px;
    background-color: #eeeeee;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .news {
    width: 390px;
  }

  /* STORE */

  .shop-img {
    margin-bottom: -41px;
    margin-left: 19px;
  }

  .shop-card {
    width: 330px;
  }

  .shop-info {
    padding: 54px 20px 25px 21px;
  }

  .shop-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 23px;
    row-gap: 28px;
  }

  .shop-title {
    margin-bottom: 3px;
  }

  .shop-text {
    font-size: 15px;
    margin-bottom: 24px;
  }
}

/* PHONE */

@media (min-width: 360px) and (max-width: 767px) {
  .container {
    margin: 0 auto;
    padding: 0 15px;
  }

  .header {
    background-image: url("../images/banner-mobile.jpg");
    margin-bottom: 40px;
  }

  .logo {
    width: 269px;
    height: 61px;
  }

  .header-container {
    flex-direction: column-reverse;
  }

  .burger-menu {
    display: flex;
    margin-bottom: 173px;
    align-self: flex-end;
  }

  .burger-menu {
    display: block;
    margin-left: auto;
  }

  .nav {
    display: contents;
  }

  .nav-list {
    display: none;
  }

  .title {
    font-size: 26px;
    line-height: 36px;
    margin: 43px auto 0 auto;
    padding-bottom: 218px;
    width: 280px;
  }

  .main-title {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .trend-list {
    flex-direction: column;
    gap: 3px;
  }

  .trend-card {
    height: 233px;
    min-width: 100%;
    /* padding: auto 40px 15px 15px; */
  }

  .trend-text {
    padding: 20px 25px 0px 20px;
    z-index: 2;
  }

  /* MAIN */

  .new-title {
    font-size: 16px;
    line-height: 20px;
  }

  .main-container {
    gap: 45px;
    flex-direction: column;
  }

  .card {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .new-title {
    font-size: 17px;
    line-height: 22px;
    margin-bottom: 25px;
  }

  .new-img {
    width: 330px;
  }

  .new-author {
    margin-bottom: 23px;
  }

  .last-p::after {
    content: "";
    width: 100%;
    height: 3px;
    background-color: #eeeeee;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .last-p-mobile::after {
    content: "";
    width: 100%;
    height: 3px;
    background-color: #eeeeee;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .news {
    width: 100%;
    display: flex;
  }

  .sidebar {
    width: 100%;
  }

  .search-form label {
    display: flex;
    flex: 1;
  }

  .search-input {
    flex: 1;
    min-width: 0;
  }

  /* STORE */

  .shop-img {
    margin: 0 auto -31px auto;
  }

  .shop-card {
    width: 100%;
  }

  .shop-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 23px;
    row-gap: 28px;
  }

  .shop-title {
    margin-bottom: 3px;
  }

  .shop-text {
    font-size: 15px;
    margin-bottom: 24px;
  }
}
