html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-align: justify;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Exo 2", sans-serif;
  background: url("../img/bg-pattern.png") repeat;
}

button {
  display: inline-block;
  border: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button:focus {
  outline: 1px solid #0069ed;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 95vw;
  min-height: 101vh;
  margin: 0 auto;
  padding: 20px 5vw 0;
  background-color: #d4cac5;
}
@media screen and (min-width: 48em) {
  .wrapper {
    width: 75vw;
  }
}

.content {
  margin-top: 20px;
  margin-bottom: 20px;
}

.content-text {
  position: relative;
}
.content-text::before {
  position: absolute;
  top: -15px;
  content: "";
  width: 100%;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  border-top: 1px dashed rgba(0, 0, 0, 0.35);
}
.content-text p {
  text-indent: 1.5em;
  margin-bottom: 5px;
}
.content-text img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 15px;
  object-fit: cover;
}
.content-text h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.videos-list {
  display: grid;
  grid-template-columns: 1fr;
}
@media screen and (min-width: 52em) {
  .videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px 15px;
    margin-bottom: 30px;
  }
}
@media screen and (min-width: 52em) {
  .videos-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 20px;
  }
}
@media screen and (min-width: 85.375em) {
  .videos-list {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    column-gap: 60px;
  }
}
.videos-list__item {
  margin-bottom: 20px;
}
@media screen and (min-width: 52em) {
  .videos-list__item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
  }
}
.videos-list__item-title {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #544943;
  font-family: "Roboto Slab", serif;
  text-align: center;
}
.videos-list__item-link {
  max-width: 100%;
  width: 100%;
}
.videos-list__item-link iframe {
  width: 100%;
}

.photos {
  position: relative;
}
.photos__title {
  margin-bottom: 20px;
  font-size: 2rem;
  font-family: "Roboto Slab", serif;
  font-weight: bold;
  color: #544943;
  text-align: center;
}

.photos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 20px;
}
.photos-list__item-pic {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

.delimiter {
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  border-top: 1px dashed rgba(0, 0, 0, 0.35);
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}
@media screen and (min-width: 52em) {
  .page-header {
    flex-direction: row;
    justify-content: space-between;
  }
}
.page-header__logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  padding: 15px 20px;
  border: 2px solid black;
  background-color: #a99e98;
  box-shadow: 0 0 7px 0;
}
@media screen and (min-width: 52em) {
  .page-header__logo {
    margin-left: 18px;
  }
}
.page-header__logo:before {
  position: absolute;
  content: "";
  z-index: -1;
  top: 9px;
  left: -36px;
  width: 0;
  height: 0;
  border-top: 30px solid #544943;
  border-bottom: 30px solid #544943;
  border-right: 17px solid #544943;
  border-left: 17px solid transparent;
}
.page-header__logo:after {
  position: absolute;
  content: "";
  z-index: -1;
  top: 9px;
  right: -36px;
  width: 0;
  height: 0;
  border-top: 30px solid #544943;
  border-bottom: 30px solid #544943;
  border-left: 17px solid #544943;
  border-right: 17px solid transparent;
}
.page-header__title {
  font-family: "Roboto Slab", serif;
  color: #413f35;
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
}
.page-header__phone {
  position: relative;
  top: -6px;
  padding: 10px 10px 7px;
  color: white;
  text-shadow: 1px 1px 0 black;
  background-color: #6291E4;
  background-image: linear-gradient(#6291E4, #84acf1, #6291E4);
  border: 1px solid #657081;
  border-radius: 3px;
  box-shadow: 0 -1px 10px -2px black;
  cursor: pointer;
}
.page-header__description {
  font-size: 0.9rem;
  color: #796c63;
}

.main-menu__list {
  display: flex;
  flex-wrap: wrap;
  flex-basis: max-content;
}
.main-menu__item {
  flex-grow: 1;
}
.main-menu__item a {
  display: block;
  width: 100%;
  padding: 5px 5px;
  color: #555346;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  background-color: #b5aaa4;
  background-image: linear-gradient(#b5aaa4, #ccbfb9, #b5aaa4);
  border: 1px solid black;
}
.main-menu__item_active a {
  color: #25241e;
  background-image: linear-gradient(#7b6f68, #ccbfb9, #7b6f68);
}

.page-footer {
  padding: 20px 5vw;
  margin-right: -5vw;
  margin-left: -5vw;
  margin-top: auto;
  background-color: #b7b7b7;
}
.page-footer .main-menu {
  margin-bottom: 15px;
}
@media screen and (min-width: 52em) {
  .page-footer .main-menu {
    display: none;
  }
}
.page-footer__additional-info {
  display: grid;
  grid-template-columns: 3fr 2fr;
  justify-items: end;
  gap: 10px;
}
@media screen and (min-width: 52em) {
  .page-footer__additional-info {
    display: flex;
    justify-content: space-between;
  }
}
@media screen and (min-width: 52em) {
  .page-footer__years {
    margin-left: auto;
  }
}
.page-footer__homepage-link {
  grid-column: span 2;
}
@media screen and (min-width: 52em) {
  .page-footer__homepage-link {
    margin-left: 15px;
  }
}

.goods-categories__item {
  position: relative;
  display: block;
  align-items: center;
  margin-bottom: 25px;
  text-decoration: none;
  text-transform: uppercase;
  color: #544943;
  font-size: 1.2rem;
  font-family: "Roboto Slab", serif;
  font-weight: bold;
  line-height: 1.3;
  border: 1px solid rgba(128, 106, 106, 0.35);
}
@media screen and (min-width: 52em) {
  .goods-categories__item {
    display: flex;
    margin-bottom: 6px;
    border: none;
  }
}
@media screen and (min-width: 52em) {
  .goods-categories__item::after {
    position: absolute;
    content: "";
    width: 100%;
    bottom: -4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    border-top: 1px dashed rgba(0, 0, 0, 0.35);
  }
}
.goods-categories__item-img {
  width: 100%;
  margin-right: 20px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(128, 106, 106, 0.35);
}
@media screen and (min-width: 52em) {
  .goods-categories__item-img {
    min-width: 180px;
    width: 180px;
  }
}
.goods-categories__info-container {
  padding: 10px;
}
.goods-categories__item-title {
  text-align: center;
}
@media screen and (min-width: 52em) {
  .goods-categories__item-title {
    text-align: left;
    font-size: 1.5rem;
  }
}
@media screen and (min-width: 85.375em) {
  .goods-categories__item-title {
    font-size: 2rem;
  }
}
.goods-categories__item-add-info {
  color: black;
  text-transform: initial;
}

.goods-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 5px;
  margin-bottom: 30px;
}
@media screen and (min-width: 52em) {
  .goods-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 50px 100px;
  }
}
.goods-list__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.goods-list__item-img {
  min-width: 200px;
  width: 200px;
  margin-bottom: 7px;
  object-fit: cover;
  object-position: center;
}
@media screen and (min-width: 52em) {
  .goods-list__item-img {
    min-width: 210px;
    width: 210px;
  }
}
.goods-list__item-title {
  margin-bottom: 3px;
  color: #544943;
  font-size: 1.6rem;
  font-family: "Roboto Slab", serif;
  font-weight: bold;
  text-align: center;
}
.goods-list__item-price {
  color: black;
  font-size: 1.3rem;
  line-height: 1.1;
  font-family: "Roboto Slab", serif;
  font-weight: bold;
  text-align: center;
}
.goods-list__item-status {
  margin-left: -5px;
  color: #544943;
}

.files-list__item {
  display: grid;
  grid-template-columns: 1fr 4fr;
  margin-bottom: 25px;
  border: 1px solid rgba(128, 106, 106, 0.35);
}
@media screen and (min-width: 52em) {
  .files-list__item {
    display: flex;
    flex-direction: row;
    border: none;
  }
}
.files-list__item-img {
  grid-column: 1;
  justify-self: start;
}
@media screen and (min-width: 52em) {
  .files-list__item-img {
    margin-right: 10px;
  }
}
.files-list__item-name {
  grid-column: 2;
  align-self: center;
  font-size: 1.1rem;
  text-align: center;
  color: #544943;
}
@media screen and (min-width: 52em) {
  .files-list__item-name {
    margin-right: 30px;
    font-size: 1.5rem;
    text-align: left;
  }
}
.files-list__item-file {
  grid-column: span 2;
  padding: 10px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.5rem;
  text-align: center;
  color: #d4cac5;
  background-image: linear-gradient(to bottom, #c8c0bc, #7f6e64 50%);
  border-top: 1px solid #b3aaa6;
}
.files-list__item-file:hover {
  background-image: linear-gradient(to bottom, #c8c0bc, #928379 50%);
}
@media screen and (min-width: 52em) {
  .files-list__item-file {
    align-self: center;
    margin-right: 2vw;
    margin-left: auto;
    padding: 40px 3vw;
    border-radius: 5px;
    box-shadow: 0 0 5px -1px black;
  }
}

.contacts {
  font-size: 1.6rem;
  color: #544943;
}
@media screen and (min-width: 85.375em) {
  .contacts {
    display: grid;
    grid-template-columns: 3fr 4fr;
    column-gap: 5vw;
    align-items: start;
  }
}
.contacts__person-info {
  padding: 15px;
  border: 1px solid rgba(128, 106, 106, 0.35);
}
.contacts__person-title {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #222222;
}
.contacts__person-phone {
  margin-bottom: 8px;
}
.contacts__person-phone-number {
  color: #222222;
}
.contacts__person-skype {
  margin-bottom: 8px;
}
.contacts__person-skype-login {
  color: #222222;
}
.contacts__person-email-login {
  color: #222222;
}

.shipping-companies {
  flex-basis: 2;
  padding: 15px;
  border: 1px solid rgba(128, 106, 106, 0.35);
}
.shipping-companies__text {
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.1;
}
.shipping-companies__list {
  padding-left: 10vw;
  list-style-type: square;
  color: #222222;
}
@media screen and (min-width: 52em) {
  .shipping-companies__list {
    padding-left: 60px;
  }
}
.shipping-companies__item {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.description {
  font-size: 15px;
  line-height: 1.2;
  text-indent: 1.5em;
}
@media screen and (min-width: 52em) {
  .description {
    font-size: 20px;
  }
}

.package {
  margin-left: 20px;
  list-style-type: square;
  font-size: 16px;
}
@media screen and (min-width: 52em) {
  .package {
    font-size: 20px;
  }
}
.package-item:not(:last-of-type) {
  margin-bottom: 10px;
}

.photos {
  margin-bottom: -20px;
}
@media screen and (min-width: 52em) {
  .photos {
    columns: 2;
  }
}
.photos-item img {
  max-width: 100%;
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}
@media screen and (min-width: 52em) {
  .photos-item img {
    height: auto;
  }
}

.specs {
  font-size: 16px;
}
@media screen and (min-width: 52em) {
  .specs {
    font-size: 22px;
  }
}
.specs td {
  padding: 5px 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.photos {
  margin-bottom: -20px;
}
@media screen and (min-width: 52em) {
  .photos {
    columns: 2;
  }
}
.photos-item img {
  max-width: 100%;
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}
@media screen and (min-width: 52em) {
  .photos-item img {
    height: auto;
  }
}