@font-face {
	font-family: OpenSans;
	src: url(../fonts/OpenSans-Regular.woff);
  
    font-weight: 400;
    font-style: normal;
}

@font-face {
	font-family: OpenSans;
    src: url(../fonts/OpenSans-Bold.woff);
    font-weight: bold;
    font-style: normal;
}

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

body {
  font-family: OpenSans, Arial, sans-serif;
}

/* close-btn */

.close-btn {
  position: absolute;
  top: -25px;
  right: 0;

  width: 20px;
  height: 20px;
}

/* popup */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5;

  display: flex;
  justify-content: center;
  align-items: center;
}


.popup-content {
  width: 400px;
  height: 600px;
  background: #ffffff;
  z-index: 6;
  padding: 50px 40px;

  position: relative;
  
}

.popup-content .popup-title {
  font-size: 20px;
}

.popup-card {
  width: 100%;
  margin-bottom: 39px;
}

.popup-text {
  font-size: 14px;
  color: #000;
  display: block;
  margin-bottom: 10px;
}

.popup-card-list {
  width: 100%;
  padding: 10px 20px;
  background-color: #f3f7f6;
  color: #828282;
  border: none;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url(../svg/form-arrows.svg);
  background-repeat: no-repeat;
  background-size: 10px;
  background-position: right 10px center;
  cursor: pointer;
}

.popup-card-list:hover {
  border: 2px solid #b59f5b;
}

/* radio */
.email-group {
  margin-bottom: 25px;
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-option{
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.custom-radio {
display: none;
}

.radio-text{
  font-size: 14px;
}

.radio-image {
  display: flex;
  width: 20px;
  height: 20px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.image-popup-first,
.image-popup-second {
  background-image: url(../svg/form-empty-circle.svg);
}

.radio-yes .custom-radio:checked ~ .image-popup-first {
  background-image: url(../svg/form-circle.svg);
}

.radio-no .custom-radio:checked ~ .image-popup-second {
  background-image: url(../svg/form-circle.svg);
}

/* textarea */

.popup-form-group {
  width: 100%;
  margin-bottom: 20px;
 
}

.popup-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 100px;

  padding: 10px;
  box-sizing: border-box;
  border: none;
  background-color: #f3f7f6;

  max-height: 130px;
  min-height: 130px;

  font-family: OpenSans, sans-serif;

}

.popup-textarea:hover {
  border: 2px solid #b59f5b;
}

/* button */

.popup-button {
  width: 100%;
  padding: 18px;
  border: none;
  background-color: #b59f5b;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

/* header */

.header {
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/banner-bg.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #555555;
  width: 100%;
  padding: 27px 0;
  padding-bottom: 122px;
  position: relative;
  z-index: 0;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000;
  opacity: 0.6;
  z-index: -1;
}

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

.header-logo {
  width: 180px;
}

.navigation-list {
  display: flex;
  list-style: none;
  gap: 35px;
  font-size: 13px;
  text-transform: uppercase;
}

.menu-burger {
  display: none;
}

.link {
  text-decoration: none;
  color: #ffffff;
}

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

.intro {
  max-width: 690px;
  margin: 0 auto;
  margin-top: 100px;
}

.title {
  text-align: center;
  font-size: 45px;
  line-height: 1.7;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 auto;
}

/* section 1 */

.trends {
  max-width: 100%;
  margin: 60px 0 10px 0;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  color: #161516;
}

.section-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 3px;
  background: #ae9e5f;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 30px;
}

.section-block {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

.trend-article{
    position: relative;
    z-index: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #555555;
   
    width: 100%;
    min-height: 320px;
    box-sizing: border-box;
    
    padding: 15px 25px;
  }

.trend-article::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    opacity: 0.6;
    z-index: -1;
}

.trend-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    min-width: 0;
   
}

.content-wrapper {
    box-sizing: border-box;
    border: 2px solid #b59f5b;
    padding: 25px;
    width: 100%;
    min-width: 0;
  }

.image-first {
    background-image: url(../img/trend1.jpg);
   
}

.image-second {
    background-image: url(../img/trend2.jpg);
}

.image-third {
    background-image: url(../img/trend3.jpg);
}

.image-fourth {
    background-image: url(../img/trend4.jpg);
}

.trend-article .trend-title {
    display: inline;
    line-height: 1.2;
    color: #ffffff;
    word-break: break-word;
}

     /* блок маин */
.main-conteiner {
   max-width: 1200px;
   margin: auto;
    
    box-sizing: border-box;
    padding: 50px 15px 60px 15px;
  }

.shared-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    
}

.article {
  display: flex;
  box-sizing: border-box;
  max-width: 778px;
  margin-right: 45px;
  margin-bottom: 55px;
}

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

.main-img {
  flex: 0 0 380px;
  height: auto;
  background-color: #555555;
  margin-top: 3px;
  margin-bottom: 5px;
  overflow: hidden;

}

.main-img-link {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-content {
  margin-left: 30px;
}

.list-link {
  display: flex;
  list-style: none;
  text-transform: uppercase;
}

.link-article {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #b59f5b;
  margin-right: 20px;
}

.link-article:hover {
  text-decoration: underline;
}

.news-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
}

.news-link {
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.5;
  color: #161515;
}

.news-link:hover {
  text-decoration: underline;
}

.news-data {
  display: flex;
  margin-bottom: 48px;
  margin-top: 20px;
}

.data {
  margin-right: 12px;
  font-size: 12px;
  color: #989898;
}

.news-author {
  font-size: 12px;
  font-weight: bold;
  color: #000;
}

.news-text {
  font-size: 15px;
  color: #161516;
  display: inline-block;
  line-height: 1.5;
}

.one-text {
  margin-top: 8px;
}

/* sidebar */

.sidebar{
  width: 270px;
  display: flex;
  flex-direction: column;
}

.sidebar-section {
  width: 100%;
}
  
.post-title {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  color: #161516;
}

.post-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 3px;
  background: #ae9e5f;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 24px;
}

.bar-article {
  display: flex;
  margin-bottom: 18px;
}

.bar-news-img {
  flex-shrink: 0;
  width: 67px;
  height: 70px;
  background-color: #555555;
  margin-top: 4px;
}

.bar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

.bar-content {
  margin-left: 20px;
}

.bar-time {
  display: flex;
  font-size: 12px;
  color: #989898;
}

.bar-link {
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}

.bar-title-text {
  line-height: 18px;
}


.bar-link:hover {
  text-decoration: underline;
}

/* поиск */

.form {
  display: flex;
  margin-top: 40px;
  box-sizing: border-box;
}

.form-search:hover {
  outline: 2px solid #ae9e5f;
}

.search-query {
  width: 220px;
  height: 45px;
  padding: 0 16px;
  font-size: 13px;
  background: #f5f7f6;
  color: #a1a2a2;
  border: none;
}

.search-query:focus {
  outline: 2px solid #ae9e5f;
}

/* form */

.form-button {
  display: block;
  width: 48px;
  height: 48px;
  background-image: url("https://netology-code.github.io/html-2-diploma/sources/images/search.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #ae9e5f;
  background-size: 17px;
  border: none;
  cursor: pointer;
}

.newsletter-title {
  margin-top: 60px;
}

.newsletter-mail-text {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #f5f7f6;
  font-size: 13px;
  color: #a1a2a2;
  border: none;
}

.newsletter-mail-text:focus {
  outline: 2px solid #ae9e5f;
}

.newsletter-button {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 15px;
  text-align: center;
  background-color: #ae9e5f;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px; 
  line-height: 48px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.newsletter-button:hover {
  background-color: #353535;
}

/* теги */

.teg-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
 
.teg-link{
  box-sizing: border-box;
  margin-right: 5px;
  margin-bottom: 6px;
  padding: 4px 14px;
  border: 3px solid #ededed;
  font-size: 12px;
}

.teg-link:hover {
  border: 3px solid #ae9e5f;
}

.teg-link-name{
  text-transform: uppercase;
  text-decoration: none;
  color: #161516;
  font-weight: bold;
}

/* тема */

.topic-list {
  list-style: none;
}

.newsletter-title-topic {
  margin-top: 50px;
}

.topic-name {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid #ededed;
}

.topic-name:nth-child(n+2) {
  padding-top: 15px;
}

.topic-link {
  text-decoration: none;
  text-transform: capitalize;
  font-weight: bold;
  font-size: 14px;
  color: #000000;
}

.topic-link:hover {
  color: #ae9e5f;
}

.number {
  display: inline-block;
  font-size: 12px;
  color: #ae9e5f;
  padding-left: 5px;
  font-weight: bold;
}

/* section 2 */

.conteiner-cadr {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 62px;
}

.shop-post-title {
  font-size: 20px;
}

.content-shop {
  width: calc((100% - 124px) / 3);
  display: flex;
  flex-direction: column;
}

.shop-img {
  padding: 0 23px;
}

.shop-image {
  width: 100%;
  height: auto;
  background: #989898 ;
}

.shop-title-link {
  font-size: 20px;
}

.shop-link-word {
  text-decoration: none;
  color: #b59f5b;
}

.shop-link-word:hover {
  text-decoration: underline;
}

.shop-border {
  box-sizing: border-box;
  flex-grow: 1;
  border: 3px solid #b59f5b;
  padding: 48px 20px 22px 20px;
  margin-top: -35px;
}

.shop-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.shop-prices {
  display: flex;
  flex-direction: column;
}

.shop-product__price {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.shop-product__price .price-old {
  text-decoration: line-through;
  font-size: 14px;
}

.shop-price-value {
  font-weight: 700;
  font-size: 20px;
}

.shop-button {
  width: 100%;
  max-width: 140px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  background: #b59f5b;
  border: none;
  padding: 18px 0 18px 0;
}




/* подвал  */

.content-footer {
  max-width: 1170px;
  margin: auto;
}

.footer-box {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  padding: 31px 0;
  gap: 30px;
  margin-top: 8px;
  background-color: #f4f7f6;
  margin-bottom: 63px;
}

.footer-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.footer-icon--dribbble {
  background-image: url(../svg/001-dribbble.svg);
}

.footer-icon--pinterest {
  background-image: url(../svg/001-pinterest.svg);
}

.footer-icon--tumblr {
background-image: url(../svg/003-tumblr.svg);
}

.copyright {
  text-align: center;
  margin: 0;
  
}

.copyright-link {
  font-size: 12px;
  text-decoration: none;
  color: #989898;
}

/* media 641-1200 header */

@media (max-width: 1200px) {

.header {
  background-image: url("../img/banner-bg-tablet.jpg");
  padding: 45px 37px;
  padding-bottom: 120px;
}

.header-logo {
  width: 158px;
}

.navigation-list {
  display: none;
}

.wrapper {
  padding: 0;
}


.menu-burger {
    display: block;
    position: relative;
    width: 23px;
    height: 19px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-burger-label {
    background-image: url(../svg/search.svg);
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
   
  
}
.menu-burger::before,
.menu-burger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    background-color: #ffffff;
  }

.menu-burger::before {
    top: 0;
  }

.menu-burger::after {
    bottom: 0;
  }


.intro {
  margin-top: 85px;
}

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

/* section 1 */

.trends {
    margin: 43px 0 10px 0;
  }

.section-title::after {
  margin-top: 9px;
  margin-bottom: 20px;
}

.section-title {
    font-size: 17px;
  }

.section-block {
    grid-template-columns: repeat(2, 1fr);
  }

.trend-article{
    min-height: 246px;
    padding: 60px 25px 12px 25px;
  }

.content-wrapper {
    padding: 23px 32px;
  }

  .trend-title {
    font-size: 17px;
  }

  /* main */

.article {
    flex-direction: column;
    flex-wrap: wrap;
    border-bottom: 3px solid #eeeeee;
    margin-bottom: 40px;
  }

.main-img {
    max-height: 305px;
    margin-bottom: 8px;
  }

.main-conteiner {
    padding: 35px 35px 45px;
    
  }

.shared-container {
    margin-bottom: 40px;
}

.article-content {
  margin-left: 0;
  margin-bottom: 16px;
}

.link-article {
  font-size: 14px;
}

.list-link {
  margin-bottom: 6px;
}

.news-title {
  font-size: 17px;
  line-height: 1.5;
}

.news-data {
  margin-bottom: 28px;
  margin-top: 25px;
}

.news-text {
  font-size: 15px;
  line-height: 1.5;
}

/* section 2 */

.conteiner-cadr {
  gap: 23px;
}
 
.content-shop {
  width: calc((100% - 23px) / 2);
}

.shop-post-title {
  font-size: 18px;
}

.shop-title-link {
  font-size: 17px;
}

.shop-price {
  margin-top: 20px;
}

.footer-box {
  margin-bottom: 45px;
}
}

@media (max-height: 1200px) and (orientation: landscape) {
  .section-block {
    grid-template-columns: repeat(4, 1fr);
    flex-shrink: 1;
}
}

     /* мобилка */


@media (max-width: 640px) {

.header{
  width: 100%;
  padding-top: 32px;
  padding-bottom: 215px;
}

.shared-container {
  margin-bottom: 45px;
}

.content {
  justify-content: center;
}

.wrapper {
  max-width: 610px;
  margin: 0 auto;
}

.header-logo {
  width: 271px;
  margin-top: 192px;
}

.menu-burger {
  position: absolute;
  right: 15px;
  top: 35px;
}

.link {
  display: none;
}

.intro {
  margin: 0 auto;
  margin-top: 30px;
}

.title {
  font-size: 26px;
}

.trends {
  margin-top: 37px;
  margin-bottom: 37px;
}
.section-block {
    grid-template-columns: repeat(1, 1fr);
    gap: 3px;
}

.trend-article {
    width: 100%;
    min-height: 232px;
    padding: 20px 15px;
}

.content-wrapper {
    padding-bottom: 20px;
}

.shared-container {
    flex-direction: column;
    align-items: center;
}
  
  .article {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-right: 0;
  margin-bottom: 35px;
}

.main-img {
  max-height: 250px;
  margin-bottom: 15px;
}

.post-title {
  margin-bottom: 7px;
}

.news-link {
  font-size: 16px;
  display: inline-block;
  line-height: 1.2;
}

.news-data {
  margin-bottom: 17px;
  margin-top: 15px;
}

.list-link {
  margin-bottom: 5px;
}

.news-text {
  font-size: 14px;
  display: inline-block;
  line-height: 1.4;
  
}

.main-conteiner {
  max-width: 610px;
  padding: 0 15px ;
}

.content-shop {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.bar-title {
    font-size: 16px;
  }

  .bar-link {
    font-size: 14px;
  }

  .sidebar {
    width: 100%;
    padding-top: 40px;
  }

  .form-search {
    width: 100%;
  }

  /* рассылки */

  .newsletter-title {
    font-size: 16px;
    margin-top: 40px;
  }

  .newsletter-title-topic {
    font-size: 16px;
   margin-top: 0;
  }

  /* shop */

  .conteiner-cadr {
    gap: 30px;
  }

  .post-title .shop-post-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .shop-price {
    margin-top: 25px;
  }

  /* footer */

  .footer-box {
    margin-top: 40px;
  }
}

@media (max-height: 640px) and (orientation: landscape) {

  .section-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .content-wrapper {
    padding: 10px;
  }
}




