* {font-family: 'Montserrat', sans-serif;
color: #213534;
}
div {border: 1px #ff070000 solid;}

.bg-1 {background-color: #213534;
}

.bg-2 
    {background: url(picture/fon2%201.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.bg-3 
    {background: url(picture/fon3%201.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;}


h1 {color: white;
margin-top: 80px;}
h2 {color: #D3ACA7;}
.title {color: aliceblue;}

img {margin-left: -50px;
    width: 100%;
    padding: 20px 30px 40px 20px;
    margin-top: 50px;}

.fotofon-1 
        {height: 410px;
        width: 400px;
        color: #D3ACA7;
        border: 10px solid #D3ACA7;}

.fotofon-2 
    {height: 350px;
    width: 320px;
    color: #213534;
    border: 10px solid #213534;
    margin-top: -30px;
    margin-left: 150px;
z-index: -99;}




.aboutme img {width: 33%;}

.text-light {color: #D3ACA7 !important}

li 
    {list-style: none;
     padding: 10px;}   

i {margin-right: 8px;}

form 
    {background-color: #D3ACA7;
    border: 3px solid #213534;
    height: 350px;
    width: 350px;
    margin-left: -150px;
    margin-top: 20px;
}


.footer {color: #D3ACA7;}
.footer a:active,
        a:visited,
        a:link 
    {text-decoration: none;
        color: #D3ACA7;
        text-align: center;
}

.footer a:hover {color: #8bab94;}

.footer span {color: #D3ACA7;}

.footer li {color: #D3ACA7;}

.footer i {color: #D3ACA7;}

.myproject {padding-left: 30px;}

 .footer .fa:hover {color: #8bab94;} 




.socseti 
    {display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: nowrap;}

input {
width: 300px;
border-bottom: 4px solid #213534;
border-top: #ff070000;
border-right: #ff070000;
border-left: #ff070000;
}
.contact-forma {
    text-decoration-color: #213534;
    font-size: 12px;
}

 .sub {
   width: 120px;
    height: 40px;
    border: 2px solid #213534;
    background-color: #213534;
    color: #d3ada7;
    font-size: 14px;
    margin-top: 50px;
    
}
.sub:hover {background-color: #d3ada7;
    color: #213534;
}

.name {margin-top: 30px;
background-color: #D3ACA7;
color: grey;}
.tel {margin-top: 30px;
background-color: #D3ACA7;}
.msg {margin-top: 100px;
background-color: #D3ACA7;}


.btn-primary {background-color: #213534;
color: #D3ACA7;
border: 1px solid #213534;}
.btn-primary:hover {background-color: #D3ACA7;
color: #213534;
border: 1px solid #213534;;}



:root{
  --background-dark: #213534;
  --text-light: rgba(255,255,255,0.6);
  --text-lighter: rgba(255,255,255,0.9);
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --width-container: 1200px;
}

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

html{
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

body{
  height: 100%;
}

.card-section{
  align-items: flex-start;
  background-color: #213534;
  display: flex;
  min-height: 100%;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-l);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--spacing-l);
  grid-row-gap: var(--spacing-l);
  max-width: var(--width-container);
  width: 100%;
}

@media(min-width: 540px){
  .card-grid{
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(min-width: 960px){
  .card-grid{
    grid-template-columns: repeat(4, 1fr); 
  }
}

.card{
  list-style: none;
  position: relative;
}

.card:before{
  content: '';
  display: block;
  padding-bottom: 150%;
  width: 100%;
}

.card__background{
  background-color:white;
  background-size: cover;
  background-position: center;
  border-radius: var(--spacing-l);
  bottom: 0;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  transform: scale(1) translateZ(0);
  transition: 
    filter 200ms linear,
    transform 200ms linear;
}

.card:hover .card__background{
  transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card__content{
  text-align: left;
  left: 0;
  padding: var(--spacing-l);
  position: absolute;
  top: 0;
}

.card__category{
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-s);
  text-transform: uppercase;
}

.card__heading{
  color: ghostwhite !important;
  font-size: 16px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
  line-height: 1.4;
  
}

.card__opisanie {
  color: var(--text-light);
  font-size: 14px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
  }





@media only screen and (max-width: 960px)
{.aboutme img {width: 33%;}
   
}

@media only screen and (max-width: 720px)
{.footer ul {display: none;}
.myproject {padding-left: 0px;
    }
.aboutme img {width: 33%;
    }
    
}
    


@media only screen and (max-width: 540px)
{.myproject {padding-left: 0px;}
    .fotofon-1 {margin-left: -40px;
        height: 350px;
    width: 340px;}
    .fotofon-2 {margin-left: -50px;
        padding-left: 10px;}
    .footer ul {display: none;}
.aboutme img {width: 33%;}
 .contact-forma {margin-left: 0px;}
    img {margin-left: -30px;}
    .socseti {justify-content: flex-start;}}


@media only screen and (max-width: 390px)
{.fotofon-1 {
        margin-left: -40px;
    height: 350px;
    width: 340px;}

    form {margin-left: -200px;}
    .fotofon-2 {padding-left: 10px;}
     img {margin-left: -30px;}
    .socseti {justify-content: flex-start;}
    }
    