.category_blocks {
  display: flex;
  justify-content: space-evenly;
  max-width: 1480px;
  margin: 40px auto 30px auto;
  flex-wrap: wrap;
  flex-direction: column;
}

/* .category_block {
  max-width: 50%;
} */

.category_block_content {
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* max-width: 500px; */
  /* max-width: 600px; */
  overflow: hidden;
  /* max-height: 0; */
  transition: 0.3s all;
  margin-bottom: 24px;
  gap: 24px;
}

.descr_img_title {
  width: 380px;
  text-align: center;
}

.category_block_content_desc {
  /* height: 110px; */
  text-align: left;
  margin-bottom: 5px;
  margin-top: 10px;
}

.category_block_more_button_container {
  text-align: center;
  margin-bottom: 36px;
}

.descr_price {
  flex-grow: 1;
}

.descr_price h2 {
  text-align: right;
  font-size: 36px;
  font-family: "UniNeueRegular";
  text-transform: uppercase;
  line-height: 1;
}

.descr_price h2.category_block_header_left {
  text-align: left;
}

.descr_price h2 span {
  font-size: 24px;
}

.descr_price table {
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.fs24 {
  font-size: 24px;
}

.descr_price table td {
  vertical-align: top;
}

.uppercase {
  text-transform: uppercase;
  font-family: "UniNeueRegular";
}

.mb-40 {
  margin-bottom: 40px;
}

.descr_price table tr td:first-child {
  border-right: 2px solid black;
  max-width: 340px;
  min-width: 315px;
}

.descr_price table tr td:last-child {
  width: 180px;
  text-align: center;
}

.category_block_content_title {
  margin-bottom: 5px;
}

.category_block_content_text {
  margin-top: 5px;
  text-align: left;
}

.category_block_img_container {
  width: 380px;
  height: 460px;
  background-size: cover;
  background-position: center;
}

.category_block_img_container_clothes {
  background-image: url(/assets/img/clothes_catalog_cat.jpg)
}
.category_block_img_container_image {
  background-image: url(/assets/img/image_catalog_cat.jpg)
}
.category_block_img_container_catalog_subject {
  background-image: url(/assets/img/catalog_subject_cat.jpg)
}
.category_block_img_container_image_subject {
  background-image: url(/assets/img/image_subject_cat.jpg)
}
.category_block_img_container_beauty {
  background-image: url(/assets/img/beauty.jpg)
}
.category_block_img_container_individual {
  background-image: url(/assets/img/individual.jpg)
}
.category_block_img_container_content {
  background-image: url(/assets/img/content.jpg)
}
.category_block_img_container_corp {
  background-image: url(/assets/img/corp.jpg)
}
.category_block_img_container_reportage {
  background-image: url(/assets/img/reportage.jpg)
}

.category_block_img {
  max-width: 550px;
}

.category_ul {
  list-style: none;
  margin: 0;
  margin-top: 10px;
  padding-left: 20px;
}

.category_ul li:before {
  content: '—';
  position: relative;
  left: -5px;
}

.categiry_subtitle {
  margin-bottom: 0;
}

.after_subtitle {
  font-size: 18px;
  text-align: center;
  /* color: #717171; */
  color: #fff;
  margin: 0;
}

.category_last {
  margin-bottom: 0;
}

.category_block_button_full {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.43) 40.45%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 10px 0;
  margin-bottom: 10px;
  cursor: pointer;
}

.category_block_button_full h2 {
  color: #fff;
  margin: 0;
}

.category_block_button_full::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: 20px;
  top: 19px;
  background-image: url(../img/up-arrow.svg);
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.category_block_button_two_lines::before {
  top: 30px;
}

.category_block_content_full {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s all;
}

.category_block_content_full_active {
  max-height: 2000px;
  margin-bottom: 20px;
}

.retouching_block {
  flex-wrap: nowrap; 
  gap: 48px;
}

@media (max-width: 1000px) {
  .category_block_content {
    /* max-height: 0; */
  }

  .category_block_content_active {
    max-height: 1500px;
    margin-bottom: 20px;
  }


  .category_block_header {
    /* color: #fff; */
    margin-bottom: 3px;
  }

  .category_block_button {
    position: relative;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.43) 40.45%,
      rgba(0, 0, 0, 0) 100%
    );
    padding: 10px 0;
    margin: 0 20px 10px 20px;
  }

  .category_block_button::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: 20px;
    top: 19px;
    background-image: url(../img/up-arrow.svg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
  }

  .header_retouching {
  color:#717171;
}
}

@media (max-width: 760px) {
  .retouching_block {
    flex-wrap: wrap;
  }
  .retouching_block_wrap {
    order: -1;
  }
}

@media (max-width: 600px) {
  .category_block {
    max-width: 100%;
  }

  .category_block_img_container {
  }
  
  .category_block_img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  .category_block_content {
    max-width: 100%;
    padding: 2%;
  }
}

/* .catalog_block_img {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.43) 40.45%,
      rgba(0, 0, 0, 0) 100%),
    url(../img/clothes_catalog_cat.jpg) no-repeat center / cover;
    width: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
} */

/* .category_block:first-child {
  border-right: 1px solid #ccc;
} */

.catalog_block_desc {
  text-align: center;
  justify-content: center;
}

.test_card {
  display: flex;
  flex-direction: column;
  width: 390px;
  margin: 5px 5px 20px 5px;
  background-color: #fff;
  padding: 0.25em;
  box-shadow: 0 0 10px rgb(0 0 0 / 20%);
  text-align: center;
  font-weight: 100;
  text-decoration: none;
  color: #717171;
  font-size: 1.2em;
}

.test_card p {
  line-height: 1em;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0.7em 0;
  font-family: 'UniNeueLigh', 'Roboto Condensed', sans-serif;
  color: #414243;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 1px;
}

.test_card img {
  width: 100%;
  height: auto;
}

.test_card:hover {
  color: #4f4f4f;
}

/* SWIPER */
.my-gallery {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.my-gallery img {
  /*width: 100%;
  height: auto;*/
  height: 360px;
}

.my-gallery figure {
  display: block;
  float: left;
  width: 150px;
  margin: 0 5px 0 5px;
}

.scrollup {
  width: 40px;
  height: 40px;
  opacity: 0.3;
  position: fixed;
  /*bottom: 20px;*/
  right: 20px;
  /*display: none;*/
  /* z-index: 1000; */
}

.scrollup img {
  width: 40px;
  height: 40px;
}

.scrollup:hover {
  opacity: 0.4;
}

.test {
  animation-duration: 1s;
  animation-delay: 0.5s;
  animation-iteration-count: 1;
}

.test a {
  color: #afa3a5;
  text-decoration: none;
}

/* ОБЩИЕ СТИЛИ */
html,
body {
  font-family: 'UniNeueLigh', 'Roboto Condensed', sans-serif;
  color: #333;
  font-size: 20px;
  line-height: 1.5;
  min-width: 280px;
  height: 100%;
  letter-spacing: 1px;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a {
  transition: 0.2s ease-out;
}

* {
  box-sizing: border-box;
}

main {
  /* z-index: 500; */
}

.directory {
  color: #717171;
  display: flex;
  flex-wrap: wrap;
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 16px;
}

.directory a,
.directory p,
.other_cat a {
  /* font-family: 'Montserrat', sans-serif; */
  color: #717171;
  text-decoration: none;
  font-size: 1em;
  background-color: rgba(122, 122, 122, 0.1);
  border-radius: 9px;
  padding: 2px 16px;
}

.directory a:hover,
.other_cat a:hover {
  color: #353434;
}

.directory p {
  margin: 0;
  white-space: nowrap;
}

#directory_spacer {
  background: none;
  padding: 2px 10px;
}

/*Запрет на выделение текста*/
p,
h1,
.copyright,
ul,
label {
  /* * Для эксплорера */
  -ms-user-select: none;
  /* * Для мозилы */
  -moz-user-select: none;
  /* * Для конкверора */
  -khtml-user-select: none;
  /* * Для Сафари и Хрома */
  -webkit-user-select: none;
}

/* HEADER */
header {
  /*background-image: url(../img/header_bg.jpg);*/
  /*background-size: cover;*/
}

.header_background {
  /*background-color: rgba(122, 122, 122, 0.5);*/
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 25%) 0%,
    rgb(255 255 255 / 0%) 100%
  );
}

.logo {
  width: 300px;
}

.main_menu a {
  font-weight: 100;
  font-size: 1.7em;
  position: relative;
}

header .wrapper span {
  font-size: 0.7em;
  font-family: 'Dancing Script', cursive;
}

.wrapper {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

nav {
  display: flex;
}

nav ul {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  align-items: center;
}

nav ul li {
  display: inline-block;
  list-style: none;
  min-width: 204px;
}

nav ul li a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  line-height: 30px;
  padding: 5px 10px 5px 10px;
  font-weight: 300;
  color: #3d3e3f;
  letter-spacing: 3px;
  cursor: pointer;
  /* font-family: 'Montserrat', sans-serif; */
  font-size: 23px;
}

nav ul li a:hover {
  color: #6c6d6e;
}

header .wrapper h1:hover {
  color: #a5a2a1;
}

/* MAIN (PORTFOLIO) */
.main_contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 50px 100px;
  justify-content: space-around;
}

.main_photo img {
  border-radius: 50%;
  width: 300px;
  /* height: 300px; */
  margin: 0;
}

.main_contacts_text {
  display: flex;
  flex-direction: column;
  flex-basis: 400px;
  flex-grow: 4;
  font-size: 18px;
  margin: 0 40px 0 40px;
}

.main_contacts_text p {
  max-width: 900px;
  font-family: 'UniNeueLigh', 'Roboto Condensed', sans-serif;
  color: #414243;
  font-size: 22px;
  letter-spacing: 1px;
}

h1 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #717171;
  font-weight: 100;
}

.main_h1 {
  font-family: 'UniNeueLigh', 'Roboto Condensed', sans-serif;
  color: #414243;
  text-transform: uppercase;
  font-size: 32px;
  letter-spacing: 3px;
}

h2 {
  text-align: center;
  margin-top: 0;
  color: #717171;
  font-weight: 100;
}

.h2_retouching {
  border-top: 1px solid rgba(201, 201, 201, 0.8);
  margin-bottom: 20px;
  margin-top: 50px;
}

.main_content {
  background-color: rgb(255, 255, 255);
  padding-top: 20px;
  padding-bottom: 20px;
}

.main_portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 0;
  margin: 0 30px;
}

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

.order_desc,
.order_desc_wedding {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.main_border {
  /* border-bottom: 1px solid rgba(201, 201, 201, 0.8); */
  padding-bottom: 40px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.main_block {
  max-width: 1550px;
  margin-left: auto;
  margin-right: auto;
}

.main_portfolio_img {
  overflow: hidden;
  max-height: 290px;
}

.main_portfolio_img img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  transition: all 20s;
}

.main_portfolio_img img:hover {
  transform: scale(1.2);
}

.main_portfolio section,
.order_desc section,
.order_desc_wedding section,
.order_desc_other section {
  margin: 10px;
  width: 390px;
  margin: 5px 5px 20px 5px;
  background-color: #fff;
  padding: 7px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.main_portfolio section:hover .name_gallery {
  color: #a5a2a1;
}

.main_portfolio section article p,
.name_gallery {
  text-align: center;
  margin: 5px 0;
  line-height: 1.15;
  font-size: 1.2em;
  color: grey;
}

.main_portfolio section article {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main_portfolio section article .color_2 {
  text-align: center;
  font-weight: 100;
  text-decoration: none;
  color: #717171;
  display: inline-block;
  transition: 0.2s ease-out;
}

/* CONTACTS */
main {
  height: auto;
}

.contacts_wrap {
  margin-top: 40px;
}

#contacts {
  display: flex;
  flex-wrap: wrap;
}

#photo {
  display: flex;
  flex-grow: 1;
  justify-content: center;
}

#photo img {
  border-radius: 50%;
  width: 300px;
  height: 300px;
  margin: 30px 15px 20px 15px;
}

.contacts {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  flex-basis: 461px;
  flex-grow: 4;
  font-size: 20px;
}

.contacts p,
#about_me p,
#about_my_aducation p,
#about_photography p {
  margin: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#about_me,
#about_my_aducation,
#about_photography {
  margin-bottom: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
}

#about_me p,
#about_my_aducation p,
#about_photography p {
  max-width: 100%;
}

#about_me h2,
#about_photography h2 {
  margin-top: 30px;
}

a.social_contacts,
span.bold a {
  /* color: #5d5050e0; */
  color: #f59b28;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 2px 4px;
}

.social_contacts:hover,
span.bold a:hover {
  /* color: #a5a2a1; */
  color: #fab561;
  background: #d3cfca24;
}

.contacts__social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
}

p.contacts__social-icons {
  margin-top: 30px;
  margin-bottom: 10px;
}

.contacts__social-icons span {
  display: flex;
  flex-wrap: nowrap;
}

.contacts__social-icons a img {
  height: 64px;
  padding: 5px;
  transition: 0.3s;
}

.contacts__social-icons a img:hover {
  padding: 0;
}

.contacts__social-icons a {
  text-decoration: none;
}

.main_price_wrapper {
  flex-grow: 1;
  background-color: #fff;
  background-size: 100%;
  padding-bottom: 20px;
}

.container_title p {
  font-size: 1.6em;
  padding: 5px;
  margin: 0;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  color: #e4896e;
}

.container_list ul {
  list-style: none;
  margin-top: 0;
  padding: 0;
  padding-left: 5px;
}

.container_list ul li {
  font-size: 0.9em;
  margin: 5px 0 5px 0;
}

.container_list ul li:before {
  content: '—';
  padding-right: 10px;
}

.order_button {
  display: inline-block;
  border-radius: 4px;
  margin-top: 100px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  transition: 0.2s ease-out;
  background-color: #9c9c9c;
  display: flex;
  justify-content: center;
  width: 290px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.order_button a {
  font-weight: 100;
  text-decoration: none;
  color: #fff;
  padding: 10px 40px;
  cursor: pointer;
}

.order_button:hover {
  background-color: #6e6e6e;
}

.photo_gallery a,
.my-gallery figure {
  text-decoration: none;
  box-shadow: 0 0 7px rgb(0 0 0 / 10%);
  display: flex;
  height: 355px;
  width: 240px;
  align-items: center;
  overflow: hidden;
  margin-top: 5px;
  margin-bottom: 5px;
  justify-content: center;
}

.pswp__bg {
  background: #fff !important;
}

/* OTHER */
.order_desc {
  margin-bottom: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.category_after_blocks {
  margin-top: 30px;
}

.order_desc_wedding {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
}

.order_desc_other {
  margin-bottom: 10px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

.order_desc section,
.order_desc_wedding section,
.order_desc_other section {
  background-color: rgb(0 0 0 / 5%);
  box-shadow: 0 0 7px rgb(0 0 0 / 10%);
  border-radius: 2px;
}

.container_title p.portrait_miny {
  color: #838181;
  font-size: 1.6em;
}

.price {
  text-align: right;
  padding-right: 10px;
}

.order_desc_wedding section {
  margin: 3px 2px 20px 2px;
  padding: 7px;
  width: 235px;
}

.other_cat_wrap {
  margin-top: 100px;
  flex-direction: column;
}

.other_cat {
  color: #5d5050e0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.other_cat a {
  margin-left: 10px;
  white-space: nowrap;
  font-size: 0.8em;
}

.form-captcha {
  margin-bottom: 15px;
  margin-left: -1px;
}

.mail_answer {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.mail_answer p a {
  font-size: 18px;
  color: #5d5050e0;
  font-weight: bold;
  text-decoration: none;
}

/* FOOTER */
.wrapper_footer {
  max-width: 1500px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 40px auto 5px auto;
}

.footer-block {
  min-width: 310px;
  margin-bottom: 20px;
}

footer {
  background-color: rgba(110, 110, 110, 0.7);
  background-blend-mode: multiply;
  position: relative;
}

.item1 {
  padding-left: 10px;
}

.item2 {
  flex-grow: 1;
}

p.footer__social {
  /* font-family: 'Montserrat', sans-serif; */
  color: white;
  text-align: center;
  padding-bottom: 25px;
  margin-top: 0;
  margin-bottom: 0;
}

p.footer__social-icons {
  text-align: center;
  margin-bottom: 0;
  display: flex;
  justify-content: space-around;
  max-width: 450px;
  margin: 0 auto;
}

p.footer__social-icons a {
  color: white;
  font-size: 32px;
  text-decoration: none;
}

p.footer__social-icons a:last-child {
  margin-right: 0px;
}

p.footer__social-icons a:hover {
  color: #fff;
}

p.footer__et {
  /* font-family: 'Montserrat', sans-serif; */
  color: white;
  padding-top: 10px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
  -ms-user-select: text;
  -moz-user-select: text;
  -khtml-user-select: text;
  -webkit-user-select: text;
}

p.footer__social {
  text-align: center;
  margin-top: 20px;
}

p.footer__social a {
  text-decoration: none;
  font-size: 21px;
  color: white;
}

.copyright {
  position: absolute;
  top: 2px;
  left: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 100;
  /* font-family: sans-serif; */
  font-size: 0.8em;
}

/* MEDIA */
@media (max-width: 1260px) {

  .main_portfolio {
    grid-template-columns: 1fr 1fr;
  }
  /* .category_blocks {
    display: flex;
    justify-content: space-evenly;
    max-width: 1480px;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .category_block {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    max-width: 630px;
  } */

  /* .category_block:first-child {
    border-right: none;
  } */

  /* 
  .catalog_block_img {
    max-width: 550px;
  }

  .catalog_block_desc {
    text-align: center;
    justify-content: center;
  } */
}

@media (max-width: 1196px) {
  .order_desc_wedding section {
    width: 280px;
  }
}

@media (max-width: 1136px) {
  .order_desc_wedding section {
    width: 340px;
  }

  .order_desc_wedding {
    align-items: stretch;
  }
}

@media (max-width: 1100px) {
  .wrapper {
    width: 90%;
  }

  .main_contacts {
    margin: 0 50px;
  }

  .main_photo img {
    margin-top: 30px;
  }
}

@media (max-width: 1033px) {
  .order_desc_wedding section {
    width: 440px;
  }
}

@media (max-width: 989px) {
  .wrapper_footer {
    justify-content: space-around;
  }

  .item1 {
    order: 1;
  }

  .item2 {
    order: 3;
    width: 100%;
  }

  .item3 {
    order: 2;
  }
}

@media (max-width: 890px) {
  .main_portfolio {
    grid-template-columns: 1fr;
    margin: 1%;
  }
  .contacts {
    margin-left: 10px;
    margin-right: 10px;
  }

  .order_desc_wedding section {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .photo_gallery a,
  .my-gallery figure {
    /*height: 200px;
    width: 290px;*/
  }

  .main_portfolio_img img:hover {
    transform: none;
  }

  .main_portfolio section:hover .name_gallery {
    color: #5d5050e0;
  }

  .main_portfolio section,
  .order_desc section,
  .test_card {
    /* width: 49%; */
    margin: 0 2px 5px 0;
  }

  .order_desc_other section {
    width: 100%;
  }

  .test_card:hover {
    color: #5d5050e0;
  }
}

@media (max-width: 790px) {
  .wrapper {
    width: 100%;
  }
}

@media (max-width: 750px) {
  .photo_gallery a,
  .my-gallery figure {
    width: 30%;
  }
}

@media (max-width: 700px) {
  .display_none {
    display: none;
  }

  .wrapper {
    width: 100%;
  }

  #photo img {
    margin-top: 0;
  }

  .main_contacts {
    margin: 0;
  }

  .main_contacts_text {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .category_after_blocks {
    margin-top: 30px;
  }

  .wrapper_footer {
    flex-direction: column;
  }

  .item3 {
    order: 2;
    min-width: 220px;
  }

  .scrollup {
    position: absolute;
    top: 30px;
    opacity: 0.3;
  }

  .scrollup:hover {
    opacity: 0.3;
  }

  .main_portfolio_img {
    max-height: 240px;
  }

  .photo_gallery a,
  .my-gallery figure {
    height: 290px;
  }

  .my-gallery img {
    height: 315px;
  }
}

@media (max-width: 638px) {
  .order {
    flex-wrap: wrap;
    padding-top: 20px;
  }
}

@media (max-width: 630px) {
  h1 {
    /* font-size: 1.4em; */
  }

  h2 {
    font-size: 1.25em;
  }

  .contacts__social-icons {
    padding: 0px;
    flex-wrap: wrap;
  }

  .main_portfolio section article .color_2,
  .test_card {
    font-size: 1.1em;
  }

  .order_wrapper {
    margin: 20px 0 20px 0;
  }

  .h2_retouching:first-of-type {
    margin-top: 0px;
  }

  .logo {
    width: 210px;
    height: 101px;
  }
}

@media (max-width: 600px) {
  .photo_gallery a,
  .my-gallery figure {
    /*height: 160px;
    width: 230px;*/
  }
}

@media (max-width: 570px) {
  .wrapper_footer {
    justify-content: space-around;
  }

  .footer-block {
    margin-bottom: 0px;
  }

  .item1 {
    padding-left: 0;
  }

  .item2 {
    margin-top: 0px;
    margin-bottom: 10px;
  }

  .item3 {
    margin-top: 10px;
  }

  .main_portfolio_img {
    max-height: 190px;
  }

  .category_block_button_full {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.43) 69.45%,
      rgba(0, 0, 0, 0) 110%
    );
  }
  .category_block_button_full h2,
  .after_subtitle {
    padding-right: 35px;
    /* color: #717171; */
  }
  .category_block_button_full::before {
    right: 8px;
  }
}

@media (max-width: 500px) {
  .photo_gallery a,
  .my-gallery figure {
    height: 225px;
    /*width: 190px;*/
  }

  .my-gallery img {
    height: 230px;
  }
}

@media (max-width: 480px) {
  .photo_gallery a,
  .my-gallery figure {
    /*height: 130px;
    width: 190px;*/
  }

  .main_portfolio_img {
    max-height: 170px;
  }
}

@media (max-width: 455px) {
  .main_content {
    padding-top: 20px;
    padding-bottom: 0;
  }

  .main_contacts {
    margin: 0 5px 30px 5px;
  }

  .main_contacts_text {
    margin-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .category_block_button {
    margin-left: 10px;
    margin-right: 10px;
  }

  .main_border {
    padding-bottom: 30px;
  }

  .test {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }

  .other_cat a {
    white-space: normal;
  }
}

@media (max-width: 400px) {
  .main_h1 {
    margin-top: 0;
    font-size: 20px;
  }

  .my-gallery figure {
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 0;
  }

  .photo_gallery a,
  .my-gallery figure {
    /*height: auto;*/
    /*width: 100%;*/
  }

  .photo_gallery a,
  .my-gallery figure {
    box-shadow: none;
    height: 190px;
    width: 32%;
  }

  .my-gallery img {
    /*height: auto;*/
    height: 200px;
  }

  .main_portfolio_img {
    max-height: 140px;
  }

  h2.header_retouching {
    font-size: 26px;
  }
}

@media (max-width: 375px) {
  .test_card {
    width: 85%;
  }

  .main_contacts_text,
  .contacts p,
  section p {
    font-size: 1em;
  }

  .main_contacts_text p {
    margin: 5px 0;
  }

  .main_photo img,
  #photo img {
    width: 280px;
    height: 280px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 330px) {
  nav ul li {
    margin-left: 0;
  }

  .contacts__social-icons span {
    justify-content: space-around;
    flex-grow: 1;
  }

  .contacts__social-icons a img {
    height: 64px;
  }

  .contacts__social-icons span:first-child {
    margin-bottom: 30px;
  }

  .item1 {
    padding-left: 10px;
  }

  p.footer__et {
    font-size: 14px;
  }
}

/*......................................................
                      Аккордеон
......................................................*/
/* * {
  padding: 0;
  margin: 0;
} */
.container_accordion {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 20px;
}

.panel {
  margin-bottom: 5px;
}

.panel-title {
  width: 393px;
  padding: 3px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 16px;
  color: #333;
  /* border-radius: 4px; */
  font-family: 'Helvetica';
  font-weight: 300;
  cursor: pointer;
  margin-bottom: 2px;
  margin-top: 10px;
  color: #838181;
  font-size: 1.7em;
}

.panel-body {
  /* padding: 15px; */
  border: 1px solid #ddd;
  /* border-top: none; */
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  display: none;
  margin-bottom: 10px;
  background: #fff;
  /* height: 0px;
  transition: 0.3s all;
  overflow: hidden; */
}

.panel-active {
  margin-bottom: 0;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  /* text-decoration: underline; */
  color: #e4896e;
}

.active {
  display: block;
  /* height: 300px;
  transition: 0.3s all;
  padding: 15px;
  border: 1px solid #ddd;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px; */
}

.panel-body section {
  margin: 0 !important;
  box-shadow: none !important;
}

/*......................................................
                        Шрифты
......................................................*/
@font-face {
  font-family: "UniNeueLigh";
  src: url("/assets/fonts/UniNeueLight.woff2") format("woff2");
}

@font-face {
  font-family: "UniNeueRegular";
  src: url("/assets/fonts/UniNeueRegular.woff2") format("woff2");
}

@font-face {
  font-family: "UniNeueHeavy";
  src: url("/assets/fonts/UniNeueHeavy.woff2") format("woff2");
}

