

  /* свойства модального окна по умолчанию */
  .modal_info {
    position: fixed;
    /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    /* цвет фона */
    z-index: 1050;
    opacity: 0;
    /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    /* анимация перехода */
    pointer-events: none;
    /* элемент невидим для событий мыши */
  }

  /* при отображении модального окно */
  .modal_info:target {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  /* ширина модального окна и его отступы от экрана */
  .modal_info-dialog {
    position: relative;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    top: 60px;
  }

  @media (max-width: 480px) {
    .modal_info-dialog {
      max-width: 90%;
      
    }
  }
  .modal_info_photo {
    width: 49.333%;
    padding-bottom: 90px;
    display: flex;
    justify-content: center;
}


  


.modal_info_photo2 {
  width: 49.333%;
  padding-bottom: 90px;
  display: flex;
    justify-content: center;
}




  


  .plan_auto{
      width: 50%;
  }

  .modal_info_photoplan{
      width: 35.333%;
  }
  .modal_info_photo img {
    width: 250px;
   
  }
  @media (max-width: 480px) {
    .modal_info_photo {
        width: 100%;
        padding-bottom: 15px;
    }
  }
  @media (max-width: 480px) {
    .modal_info_photo img {
        width: 300px;
        height: auto;
        
    }
  }

  .modal_info_photo2 img {
    width: 400px;
   
  }
  @media (max-width: 480px) {
    .modal_info_photo2 {
        width: 80%;
        padding-bottom: 15px;
    }
  }
  @media (max-width: 480px) {
    .modal_info_photo2 img {
        width: 300px;
        height: auto;
        
    }
  }

  .modal_info_info {
    width: 49.333%;
    padding-bottom: 15px;
}
@media (max-width: 480px) {
    .modal_info_info {
        width: 100%;
        padding-bottom: 15px;
    }
  }

  .modal_info_info img {
    width: 100%;
    padding-bottom: 15px;
}
  
  @media (max-width: 480px) {
    .modal_info_info img {
        width: 300px;
        height: auto;
        
    }
  }



  /* свойства для блока, содержащего контент модального окна */
  .modal_info-content {
    width: auto;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
    min-height: 700px;
  }

  @media (min-width: 768px) {
    .modal_info-content {
      -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
      box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    }
  }

  /* свойства для заголовка модального окна */
  .modal_info-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eceeef;
  }

  .modal_info-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
  }

  /* свойства для кнопки "Закрыть" */
  .close_info {
    float: right;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    text-decoration: none;
  }

  /* свойства для кнопки "Закрыть" при нахождении её в фокусе или наведении */
  .close_info:focus,
  .close_info:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .75;
  }

  /* свойства для блока, содержащего основное содержимое окна */
  .modal_info-body {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 15px;
    overflow: auto;
    width: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    
    justify-content: center;
    align-items: center;


}

.modal_info-body h5 {
    border-bottom: 1px solid crimson;
    padding-bottom: 10px;
   
}


@media (max-width: 480px) {
    .modal_info-body {
        position: relative;
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 15px;
        overflow: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        
        
    }
  }
  

.cont_modal {
    width: 100%;
    display: flex;
    
}



.rectangle {
    counter-reset: li; 
    list-style: none; 
    font: 14px "Trebuchet MS", "Lucida Sans";
    padding: 0;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
    width: 50%
    }
    @media (max-width: 480px) {
        .rectangle {
            counter-reset: li; 
            list-style: none; 
            font: 14px "Trebuchet MS", "Lucida Sans";
            padding: 0;
            text-shadow: 0 1px 0 rgba(255,255,255,.5);
            width: auto
            }
      }


    .rectangle a {
    position: relative;
    display: block;
    padding: .4em .4em .4em .8em;
    margin: .5em 0 .5em 2.5em;
   
    color: #444;
    text-decoration: none;
    transition: all .3s ease-out;
    }

    @media (max-width: 480px) {
        .rectangle a {
            position: relative;
            display: block;
           
          
           
            color: #444;
            text-decoration: none;
            transition: all .3s ease-out;
            }
      }

    .rectangle a:hover {background: #DCDDE1;}       
    .rectangle a:before {
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -2.5em;
    top: 50%;
    margin-top: -1em;
    background: #9097A2;
    height: 2em;
    width: 2em;
    line-height: 2em;
    text-align: center;
    font-weight: bold;
    }
    .rectangle a:after {
    position: absolute;
    content: "";
    border: .5em solid transparent;
    left: -1em;
    top: 50%;
    margin-top: -.5em;
    transition: all .3s ease-out;
    }
    .rectangle a:hover:after {
    left: -.5em;
    border-left-color: #9097A2;
    }


    .rectangle2 {
      counter-reset: li; 
      list-style: none; 
      font: 14px "Trebuchet MS", "Lucida Sans";
      padding: 0;
      text-shadow: 0 1px 0 rgba(255,255,255,.5);
      width: 100%;
      }
      @media (max-width: 480px) {
          .rectangle2 {
              counter-reset: li; 
              list-style: none; 
              font: 14px "Trebuchet MS", "Lucida Sans";
              padding: 0;
              text-shadow: 0 1px 0 rgba(255,255,255,.5);
              width: auto
              }
        }
  
  
      .rectangle2 a {
      position: relative;
      display: block;
      padding: .4em .4em .4em .8em;
      margin: .5em 0 .5em 2.5em;
     
      color: #444;
      text-decoration: none;
      transition: all .3s ease-out;
      }
  
      @media (max-width: 480px) {
          .rectangl2e a {
              position: relative;
              display: block;
             
            
             
              color: #444;
              text-decoration: none;
              transition: all .3s ease-out;
              }
        }
  
      .rectangle2 a:hover {background: #DCDDE1;}       
      .rectangle2 a:before {
      content: counter(li);
      counter-increment: li;
      position: absolute;
      left: -2.5em;
      top: 50%;
      margin-top: -1em;
      background: #9097A2;
      height: 2em;
      width: 2em;
      line-height: 2em;
      text-align: center;
      font-weight: bold;
      }
      .rectangle2 a:after {
      position: absolute;
      content: "";
      border: .5em solid transparent;
      left: -1em;
      top: 50%;
      margin-top: -.5em;
      transition: all .3s ease-out;
      }
      .rectangle2 a:hover:after {
      left: -.5em;
      border-left-color: #9097A2;
      }
  


      @import url(http://fonts.googleapis.com/css?family=Fredericka+the+Great|EB+Garamond);
.older {
  list-style: none;
  margin: 0 auto;
  width: 100%;
  counter-reset: li;
}
.older p {
  padding-bottom: 25px;
  padding-top: 25px;
}
.older li {
  border-bottom: dashed 1px #006699;
  margin-top: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  padding: 5px;
}
.older a {
  text-decoration: none;
  padding: 10px;
  display: block;
  line-height: 30px;
  color: #3A3A3A;
  font-family: 'EB Garamond', serif;
  font-size: 20px;
}
.older a:before {
  display: inline-block;
  content: counter(li);
  counter-increment: li;
  height: 30px;
  width: 30px;
  text-align: center;
  border: solid 1px #dedede;
  margin-right: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 0, 0, 0.1) inset;
  font-family: 'Fredericka the Great', cursive;
  font-size: 24px;
  -webkit-transition: .4s linear;
  transition: .4s linear;
}
.older a:hover:before {
  color:#D72F2C;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}