/*---Шрифт---*/
@font-face {
  font-family: 'Lato';
  src: url(../fonts/Lato-Regular.woff) format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url(../fonts/Lato-Medium.woff) format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url(../fonts/Lato-SemiBold.woff) format('woff');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url(../fonts/Lato-ExtraBold.woff) format('woff');
  font-weight: 800;
  font-display: swap;
}


/*---Общие---*/
:root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #151515;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* div {background-color: rgba(255, 0, 0, 0.1);} */

body {  
  font-family: 'Lato','Helvetica Neue', system-ui, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  max-width: 1000px;
  min-width: 320px;
  color: #FAE9CD;
  font-size: 18px;
  padding: 27px 29px 32px 29px;
  margin: 0 auto; 
}

a {
  color: #C53FFF;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(197, 63, 255, 0.5);
}

a:hover {
  text-decoration: none;
}

h1{
  color: #C53FFF;
}

h2{
  margin-top: 12px;
  margin-bottom: 0;
  padding: 0;
  color: #C53FFF;
}


h3{
  margin: 0;
  padding: 0;
  font-weight: 600;
}


.case{
  padding-top: 20px;
}

.description_case{
  margin-bottom: 80px;
}

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

.image_gallery{
  width: 100%;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.image_gallery:hover{
  box-shadow: 0 0 5px 1px #C53FFF;
}

.case_gallery{
  width: 20%; 
  transition: transform 0.3s ease;
}

.case_gallery:hover{
  width: 20%; 
  transform: scale(1.1);
}



.paragraph{
  margin: 0;
  margin-bottom: 12px;
  padding-left: 24px;
  list-style-type:none;
}

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

/*---Контент---*/
.main_content {
  width: 100%;
}

.portfolio{
  width: 100%;  
}

.lettering {
  display: flex;
  align-items:  flex-start;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.name_module {
  display: flex; 
  align-items: flex-end;
  gap: 4px;
}

.picture {
  display: flex; 
  align-items: flex-end;
  background-image: url('../svg/rectangle.svg');
  background-repeat: no-repeat;
  background-position: bottom left; 
  background-size: auto 100%;
}

.natasha, .kostenyukova {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.picture_text {
  display: flex;
  align-items: flex; 
  margin-left: auto;
  height: 100%;
}

.text {
  margin-left: -90px;
}
.about {
  width: 168px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.links {
  display: flex;
  align-items:  flex-start;
  flex-direction: column;
  gap: 2x;
}

.portrait_mobile {
  display: none;
}

.portrait {
  width: 346px;
  height: 438px;
  margin-top: 30px;
}
/*---Модуль---*/



/*---Adaptive---*/
@media (max-width: 800px) {

body {  
  font-size: 14px;
  padding: 6px 6px 8px 6px;
}

.vanish {
 display: none;
}


}

@media (max-width: 600px) {

body {  
  font-size: 14px;
  padding: 6px 6px 8px 6px;
}

.vanish {
 display: none;
}

.picture_text {
  display: flex;
  align-items: flex; 
  flex-direction: column-reverse;
  margin-left: auto;
  height: 100%;
}

.portrait {
  width: 180px;
  height: 224px;
  margin-top: 10px;
}

.text {
  margin-left: 0;
  margin-bottom: 20px;
}

.about {
  width: 128px;
}

.portrait_mobile {
  display: block;
  width: 168px;
  margin-top: 8px;
}

.portrait {
  display: none;
}

}