@import 'font.css';

:root {
  --color1: #7d8080;
  --color2: #59585a;
  --color3: rgb(207, 201, 201);  
}

body {
  font-family: 'Open Sasn';
  margin: 0;
  padding: 0;
}
header, footer, section {
  padding: 0;
}

.navbar-brand {
  font-family: 'Pacifico', cursive;
  font-size: 48px;
  display: block;  
}
.logo_1 {  
  color: black;  
}
.logo_2 {  
  color: white;  
}
.nav-link {
  font-family: 'Open Sasn Smibold';    
  font-size: 24px;
  color: #212121;    
}
.nav-link:hover {    
  color: #a19c9c;
  text-decoration: none;
  
}

.header {
  margin: 80px 0 0;
  padding-top: 60px;
  background: url(../img/background_1.png), var(--color1);
  background: url(../img/background_1.png),
    -moz-linear-gradient(left, var(--color1) 0%, var(--color2) 100%);
  background: url(../img/background_1.png),
    -webkit-linear-gradient(left, var(--color1) 0%, var(--color2) 100%);
  background: url(../img/),
    linear-gradient(to right, var(--color1) 0%, var(--color2) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=var(--color1), endColorstr=var(--color2),GradientType=1 );
  background-size: contain;
}

.header h1{
  font-size: 56px;
  font-weight: bold;    
}
.header h2{
  margin-top: 10px;  
  font-family: 'Open Sasn Smibold';
  font-size: 36px;
}
.header h4{
  color: #212121;    
  font-size: 24px;
  margin-bottom: 20px;
}
.icon {    
  transition: 0.3s;
  padding-top: 60px;  
}
.icon a {    
  padding-right: 20px;  
}
.icon_img {
  width: 48px;
  height: 48px;
}
.header .my_img {
  opacity: 0.3;
}
.btn-itd {
  display: block;
  max-width: 200px;
  margin: 60px 10px;
  padding: 8px 30px;
  color: var(--bs-white);
  background-color: var(--color2);
}
.btn-itd:hover {
  color: var(--bs-white);
  background-color: var(--color1);
}


/*О себе */
.about, .competencies {  
  padding-top: 100px;
  padding-bottom: 30px;
  background-color: var(--color3);
}
.about h2 {
  margin-top: 10px;  
  font-family: 'Open Sasn Smibold';
  font-size: 32px;
  font-weight: bold;
  text-align: start;
}
.about .accordion-body h4 {
  font-size: 20px;  
}
.about i {
  font-size: 16px;
  color: var(--color2);
}
.about img {
  width: 50%;
}
.accordion {  
  --bs-accordion-bg: transition;      
}
.accordion-item {
  border: var(--bs-accordion-border-width) solid var(--color1);
}
.accordion-button:not(.collapsed) {
  color: var(--bs-white); 
  background-color: var(--color1); 
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white '%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");   
}
.accordion-button {  
  font-size: 1.5rem;
}
.line_1 {
  width: 100%;
  height: 3px;
  background-color: var(--color1);
  margin: 5px 0 15px;
}
.line_2 {
  width: 100%;
  height: 3px;
  background-color: var(--bs-white);
  margin: 5px 0 15px;
}
.line_3 {
  width: auto;
  height: 3px;
  background-color: var(--color1);
  margin: 5px 0 15px;
}

/* Портфолио */
.portfolio, .footer {
  padding-top: 100px;  
  background-color: var(--color1);
}
.portfolio h2{
  color: var(--bs-white);
}
.portfolio .filter {
  margin-top: 40px;
  padding-bottom: 60px;  
}
.portfolio .btn-itd {  
  margin: 25px 10px;  
}

.portfolio img {
  max-width: 100%;
  margin-bottom: 30px;  
}
div[filter]:hover img {
  filter: brightness(50%);
  transition: 0.3s;    
}
div[filter]:hover .text {
  display: block; 
  width: 80%;  
  top: -55%;
  left: 15px;
  color: #fff;
  z-index: 1;
  text-align: center;
  position: relative;    
}
.portfolio .text {
  display: none; 
}
.portfolio .filter a {
  text-decoration: none;  
}

/* Компетенции */
.competencies {  
  padding-bottom: 60px; 
}

.competencies .list-group-item {  
  background-color: var(--color3);  
}
.competencies .text-title {  
  padding-bottom: 10px; 
}
.competencies .card_group {
  margin-top: 40px;
  margin-bottom: 40px;
}
.competencies_item{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
}
.icon-box{
  display: flex;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);   
}
.icon-box:hover{   
  border: 1px solid rgba(27, 63, 110, 0.3);
  background: var(--color1);
}
.icon-box h3{
  color: #000;
  font-weight: 700;
  margin: 0;
  padding: 0;    
  font-size: 16px;       
  line-height: 1;       
}
.icon-box i {    
  padding-right: 10px;
  line-height: 1;  
}

/* Footer */
.footer {
  padding-bottom: 60px;
}
.footer h2, h3 {
  color: var(--bs-white);
}
.footer h3 {
  font-size: 30px;
  padding-top: 30px;
  color: var(--bs-white);
  font-family: 'Zen Antique', serif;
}

.footer input, .footer textarea {
  font-family: 'Zen Antique', serif;
  padding: 30px;
  width: 100%;
  border-radius: 10px;
  border: none;
}
.footer input:focus, .footer textarea:focus {
  outline: none;
}
.footer textarea {
  margin-top: 30px;
  margin-bottom: 30px;
  resize: none;
}
.footer button {
  font-size: 20px;
  font-family: 'Zen Antique', serif;
  text-transform: uppercase;
  color: #212121;
  padding: 20px 80px;
  border-radius: 10px;  
  transition: 0.3s;
  border: none;
}
.footer button:hover {
  opacity: 0.6;
}
.form {
  margin-top: 70px;
}
.footer .btn {  
  border: none;
}

/* Страница Портфолио */
.group_card {
  max-width: 100%;
  margin-top: 40px;
  margin-left: 0;
  padding-bottom: 80px; 
  
}
.card {
  margin: 20px 40px;
}
.card img {
  height: 200px;
}



@media screen and (max-width: 1200px) {  
  .navbar-brand {    
    font-size: 40px;      
  }  
  .nav-link {        
    font-size: 22px;        
  }
  .header h1{
    font-size: 40px;       
  }
  .header h2{
    margin-top: 10px;
    font-size: 30px;
  }
  .about img {
    width: 40%;
  } 
}


@media screen and (max-width: 991px) { 
  .header h1{
    font-size: 32px;       
  }
  .header h2{
    margin-top: 10px;
    font-size: 20px;
  }
  .header h4{        
    font-size: 16px;
    margin-bottom: 20px;
  }
  .about .accordion-body h4 {
    font-size: 18px;  
  }  
  .icon {    
    transition: 0.3s;
    padding-top: 30px;  
  }
  .icon a {    
    padding-right: 14px;  
  }
  .icon_img {
    width: 40px;
    height: 40px;
  }
  
  .btn-itd {
    display: block;
    max-width: 150px;
    margin: 60px 10px;
    padding: 8px 10px;
    color: var(--bs-white);
    background-color: var(--color2);
  }
  .about h2 {
    margin-top: 10px;
    font-size: 28px;
  }
  .about img {
    width: 50%;
  } 
  .accordion-button {  
    font-size: 1.3rem;
  }
  .about h4 {
    margin-top: 10px;
    font-size: 20px;
  }
  .portfolio .btn-itd {  
    margin: 25px 10px;  
  } 
  div[filter]:hover .text {    
    left: 10px;        
  }
  .footer h3 {
    font-size: 26px;   
  }
  .footer input, .footer textarea {    
    padding: 20px;
    width: 100%;    
  }
  .footer .row {
    width: 100%;    
  }
  .footer button {
    font-size: 16px;        
  }

}


@media screen and (max-width: 767px) {
 
  .header h1, h2, h4 {
    text-align: center;           
  }
  .header {
    margin-top: 60px;   
  } 
  .icon {    
    text-align: center;   
  }
  .header .btn_group {
    padding: 0 90px;
  }
  .btn-itd {        
    margin: 30px auto;    
    justify-content: center;   
  }
  .header .my_img {
    width: 60%;
  }
  .about, .portfolio, .competencies, .footer {  
    padding-top: 100px;      
  }
  .about h2, h4 {
    text-align: center;
    margin-top: 10px;
  }
  .about img {
    width: 40%;     
  }  
  .portfolio .btn-itd {  
    margin: 15px 40px;  
  }
  .portfolio .filter {  
    margin-top: 20px;  
  }
  div[filter]:hover .text {    
    left: -15px;        
  }
  .footer input {    
    width: 235px;        
  }
  .footer .offset-sm-9 {
    margin-left: 50%;
  }

}


@media screen and (max-width: 575px) {
  .header h1{
    font-size: 36px;       
  }
  .header .my_img {
    width: 60%;
  }
  .about, .portfolio, .competencies, .footer {  
    padding: 100px 50px;      
  }
  .portfolio .btn-itd {  
    margin: 15px 10px 10px 20px;     
  }
  .portfolio .filter {
    width: 100%;
  }   
  .portfolio img {
    width: 100%;           
    margin-bottom: 30px;
  }
  div[filter]:hover .text {
    left: 0;
    font-size: 16px;        
  }
  div[filter]:hover .text h5 {
    font-size: 16px;        
  }

  .footer h3 {
    font-size: 24px;   
  }   
  .footer input, textarea {    
    margin: 10px;
    width: 100%;        
  }
  .footer .btn {
    margin-left: 0;
  }

}


@media screen and (max-width: 501px) {
  .header h1{
    font-size: 42px;       
  }
  .header h2{   
    font-size: 32px;
  }
  .header h4{        
    font-size: 24px;    
  }
  .about h2{  
    font-size: 24px;          
  } 
  .accordion-button {  
    font-size: 1.1rem;
  }
  .about .accordion-body h4 {
    font-size: 16px;  
  } 
  .about h4 {
    margin-top: 10px;
    font-size: 18px;
  } 
  .header .btn-itd {    
    max-width: 150px;
    margin: 30px 10px 10px 80px;
    padding: 8px 30px;
    width: 100%;    
  }
  .portfolio .btn_group {  
    width: 100%;     
  }
  .portfolio .btn-itd {
    margin: 10px 20px;
    max-width: 60%;
  } 
  .portfolio .col-6 {    
    width: 100%;
  }
  .footer .btn {
    margin-left: 40px;
  }
}

@media screen and (max-width: 480px) {
  .header h1{
    font-size: 32px;       
  }
  .header h2{   
    font-size: 24px;
  }  
  .header h4{        
    font-size: 16px;    
  } 
  .about h2{  
    font-size: 22px;          
  }
  .about h4{  
    font-size: 18px;         
  }
  .footer .btn {
    margin-left: 30px;
  }
  .footer button {
    font-size: 16px;    
    padding: 10px 40px;   
  }
}

@media screen and (max-width: 414px) {
  .header h1{
    font-size: 30px;       
  }
  .header .btn_group {
    padding: 0 auto;
  }
  .header .btn-itd {
    margin: 30px 10px 10px 40px;
    padding: 8px auto;
    width: 100%;    
  }
  .about img {
    width: 40%;   
  }
  .accordion-item h3 {
    font-size: 24px;
  } 
  .portfolio .btn_group {
    margin-left: 20px;
    width: 85%;
  }
  .portfolio .btn-itd {   
    max-width: 85%;
  }
  .portfolio img {
    margin-left: 12px;
  }  
}


@media screen and (max-width: 390px) {
  .header h1{
    font-size: 28px;
    padding: 5px 25px;       
  }
  .header h2{   
    font-size: 20px;
  }  
  .header .btn-itd {
    margin: 30px 10px 10px 25px;      
  }
  .about h2{  
    font-size: 20px;          
  }
}


@media screen and (max-width: 375px) {
  .about h2{  
    font-size: 18px;
    padding-top: 0;      
  }
  .accordion-button {  
    font-size: 1rem;
  }
  .about .accordion-body h4 {
    font-size: 14px;  
  } 
  .about h4 {
    margin-top: 10px;
    font-size: 14px;
  }
  .portfolio h2{  
    font-size: 18px;
    padding-top: 0;      
  }  
  .competencies h2{  
    font-size: 18px;
    padding-top: 0;      
  }
  .footer h2{  
    font-size: 18px; 
    padding-top: 0;     
  }
  .footer h3 {
    font-size: 14px;   
  } 
  .footer button {
    font-size: 12px;
  } 
}


@media screen and (max-width: 350px) { 
  .header .btn-itd {
    margin: 30px 10px 10px 10px;      
  }
  .header .my_img {
    width: 0%;
    margin-bottom: 30px;    
  }
  .about, .portfolio, .competencies, .footer {  
    padding: 85px 30px;      
  }
  .accordion-header {
    font-size: 16px;
  }
  .portfolio .btn-itd {
    margin: 15px 40px;
    max-width: 80%;
  }      
  .footer .form {
    margin-top: 50px;
    margin-left: 0;    
  }  
  .footer input, textarea {    
    margin: 10px 0;
    padding: 12px 15px;
    width: 100%;        
  }
  .footer .btn {
    margin-left: 0;    
  }
}



/*Цвет*/
.color1 {
    color: var(--color1);
}
.color2 {
    color: var(--color2);
}
.color3 {
  color: var(--color3);
}
.bg1 {
    background-color: var(--color1);
}
.bg2 {
    background-color: var(--color2);
}
