@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,800;0,900;1,400&display=swap');


*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}
section
{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: #2C525C;
   
    background-position: bottom;
    background-repeat: no-repeat;
    background-position-x: left;
    background-size: 50%;
}
header
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 100px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2C525C;
    border-bottom: 3px solid #e3b335;
    height: 100px;
    z-index: 1;
}
header .logo
{
    position: relative;

    fill: #fff;
}
.social_icon
{
    width: 130px;
    height: 130px;
}
header .logo:hover
{
    
    filter: drop-shadow(0px 0px 5px #fff);
}

header ul
{
    position: relative;
    display: flex;
}
header ul li 
{
    list-style: none;

}
header ul li a 
{
    display: inline-block;
    margin-left: 40px;
    text-decoration: none;
    font-size: 1.5em;
    color: #fff;
    font-weight: 700;
    padding-bottom: 10px;
    
}
header ul li a:hover
{
    
    text-shadow: 0px 0px 5px #fff;
}
  
  .container {
    
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    
    
  }
  .container h1 
  {
    max-width: 300px ;
    color: #fff;
    
  }
  .container h1 span 
  {
    color: #80b918;
  }
  .cards {
    display: flex;
   justify-content: space-between;
    
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .cards__item {
    height: 380px;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 0 5px #a8e063;
    margin: 0 20px;
  }
  
  .card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
}
.holder
{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  margin-top: 50px;
  
}
.holder__item
{
  height: 380px;
  width: 300px;

}
.holder h1
{
 color: #fff;
 font-size: 1.5em;
}
.holder h2 
{
  color: #80b918;
  text-decoration: underline;
}
.holder p
{
  padding-bottom: 50px;
  color: #fff;
  font-size: 1.3em;
  
}
.card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      z-index: 20;
      width: 50%;
      height: 100%;
      background-color: rgba(#ffffff, 0.1);
      pointer-events: none;
    }
    
    .card:nth-child(1) {
      background-image: url(img/flor_2.jpg);
      background-size: 100%;
    }
    
    .card:nth-child(2) {
      background-image: url(img/flor_1.jpg);
      background-size: cover;
    }
    
    .card:nth-child(3) {
      background-image: url(img/flor_3.jpg);
      background-size: 100%;
    }
    .card:nth-child(4) {
        background-image: url(img/flor_2.jpg);
        background-size: cover;
      }
  
  .card__frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .card__picture {
    margin-bottom: 12px;
    filter: invert(1);
}
.card__picture img {
      display: block;
      max-width: 100%;
      height: auto;
    }
 
  
  .card__title {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .card__overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(#000000, 0.2);
    transition: 0.5s;
    cursor: pointer;
}
.card__overlay::before {
      content: "Читать";
      padding: 5px;
      font-size: 12px;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    
    .card__overlay:hover,
    .card__overlay:focus {
      bottom: 0;
      right: 0;
      width: 100%;
      height: 100%;
      box-shadow: none;
      border-radius: 0;
      opacity: 0.9;
    }
    .card__overlay:hover:before {
        content: none;
    }
   
    
    .card:nth-child(1) .card__overlay {
      
      background-image: linear-gradient(#56ab2f , #a8e063);
      
    }
    
    .card:nth-child(2) .card__overlay {
      background-image: linear-gradient(#56ab2f , #a8e063);
    }
    
    .card:nth-child(3) .card__overlay {
      background-image: linear-gradient(#56ab2f , #a8e063);
    }
    .card:nth-child(4) .card__overlay {
      background-image: linear-gradient(#56ab2f , #a8e063);
      }
 
  
  .card__content {
    z-index: 1;
    padding: 10px;
    
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
    pointer-events: none;
    transition: 0s;
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    font-weight: 500;
    
} 
.card__content p span 
{
  font-weight: 700;
  font-size: 1.2em;
}
    .card__overlay:hover ~ .card__content {
      opacity: 1;
      visibility: visible;
      transition: 0.2s 0.3s;
    }
    
    h2 {
      margin: 0;
      margin-bottom: 16px;
    }
 
    .items {
      margin-top: 50px;
      width: 100%;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
    }
    
    .item {
      text-align: center;
      font-weight: 700;
      margin: 0 2% 30px 2%;
    }
    .item__number {
      color: #80b918;
      text-transform: uppercase;
      letter-spacing: 0.01em;
      font-size: 2.5em;
      margin-bottom: 5px;
    }
    .item__title {
      font-size: 1.3em;
      letter-spacing: 0.01em;
      margin-bottom: 5px;
      color: #fff;
    }
    .item__text {
      font-size: 1em;
      font-weight: normal;
      color: #fff;
    }

    @media screen and (max-width: 1500px) {
      .container
      {
        margin-top: 50px;
      }

    }

    @media screen and (max-width: 1350px) {
      header ul li a 
      {
          margin-left: 20px;
          font-size: 1.4em;
       
      }
      .holder__item {
        height: 300px;
        width: 280px;
    }
    .cards__item {
      height: 300px;
      width: 200px;

    }
    .holder h1 {
      font-size: 1.3em;
  }
  .holder h2 {
    font-size: 1.3em;
}
.holder p {
  
  font-size: 1.1em;
  text-align: justify;
}
.card__content p span 
{
  font-size: 1em;
}
.card__content p
{
  font-size: 0.7em;
}
.item__number {
 
  font-size: 2em;
 
}
.item__title {
  font-size: 1em;
}
.item__text {
  font-size: 0.8em;
  
    }
}
@media (max-width: 991px)
  {
    section
    {
        background-image: none;
        height: auto;
        
    }
    header
    {
        padding: 40px;
    }
    .social_icon
{
    width: 80px;
    height: 80px;
}
    section
    {
        padding: 100px 40px;
    }
   
    .content
    {
        flex-direction: column;
    }
    .content .textBox
    {
        width: 100%;
    }
    .content .imgBox
    {
        width: 100%;
    }
    
    header ul
    {
        display: none;
    }
    
    .tel_number
    {
        display: none;
    }
    .toggle
    {
        position: relative;
        width: 30px;
        height: 30px;
        background: url(img/menu.png);
        filter: invert(1);
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center ;
        cursor: pointer;
        z-index: 10000;
    }
    .toggle.active
    {
        position: fixed;
        right: 40px;
        background: url(img/cancel.png);
        background-size: 25px;
        background-repeat: no-repeat;
        background-position: center ;
    }
    header .navigation.active
    {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #2C525C;
        display: flex;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10;
        
    }
    header .navigation li a
{
    margin: 10px 0;
    font-size: 2em;
    font-weight: 400;
}
  .container
  {
    margin: 0;
    flex-wrap: wrap;
  }
  .cards
  {
    flex-direction: column;
   
  }
  .card
  {
    margin: 20px 0;
  }


.items {
  display: none;
}

  }