@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700i&subset=cyrillic');
* {
    padding: 0;
    margin: 0;
}
html,
body {
    width: 100%;
    height: auto;
    background-image: url(../img/bg.jpg);
    font-family: 'PT Sans', sans-serif; 
    color: #181818;
}

.content {
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-image: url(../img/f.jpg);
    border: 2px solid #d3c5b7;
    box-shadow:0px 2px 10px 0px rgba(0,0,0,0.20);
    position: relative;
}
box-sizing: border-box;

/*index*/ 
.page-index {
    flex: 1;
    margin: 20px 30px 0 30px; 
}
.header-index {
    padding: 0;
    border-bottom: 2px solid #d3c5b7;
    background:  linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.2)), url(../img/top_fon.jpg) no-repeat fixed top center;
    height: 350px;
    position: relative;
}
.nav-index {
    width: auto;
    list-style-type: none; 
    display: flex;
    flex-direction: row;
    position: absolute;
    right: 30px;
    top: 20px;
}
.nav-index li {
    display: block;
    flex-direction: row;
    font-size: 13px;
    text-align: right;
    margin-left: 20px;
}
.nav-index a:link {
    color: #fff;
    font-weight: normal;
}
.nav-index a:hover {
    color: #c30;    
}
.nav-index a:visited {
    color: #e5e0dc;    
} 

.header {
    padding: 0;
    background-color: #fdfcfa;
    border-bottom: 2px solid #d3c5b7;
}
.header-top {
    height: 100px;
    padding: 0;
}
.logo-img {
    padding: 10px 20px;   
}
/*top menu*/
.nav {
    width: auto;
    list-style-type: none; 
    margin: 0 0 10px 30px;
    display: flex;
    flex-direction: row;
}
.nav li {
    display: block;
    flex-direction: row;
    width: 100px;
    color: #993300;
    font-size: 12px;
    text-align: left;
}
.nav a {
    font-weight: normal;
}
.portret {
    float: left;
}

.card {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
    flex-wrap: wrap;
    margin: 20px 0;
}


.card li {
    width: 29%;

    height: auto;
    display: block;
    text-align: center;
    padding: 10px;
    margin-bottom: 30px;
    border: 2px solid #dcd2c3;
    border-radius: 5px;
}
.card h2  {
     font-size: 18px;
     margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    text-align: left;
    text-indent: 0px;
    margin: 10px;
   }
p.right-i {
    text-align: right;
    font-size: 11px;
    font-style: italic;
    margin: 20px;
    vertical-align: bottom;
}
.right-i a {
    font-weight: normal;
} 

.card img {
    margin: 0 auto 20px auto;

}  

/*txt*/

/*horizontal menu*/
.menu {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    margin: 0 25px;
}

.menu li {
    display: block;
    text-align: center;
    margin: 10px 5px 0 5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
}
.menu li:hover {
    border-bottom: 2px solid #b58f6a;
} 
.menu li a {
    font-size: 14px;
    text-decoration: none;
}
/*menu-vertic*//*
.menu-vertic {
    display: block;
    flex-direction: column;
    margin: 20px;
    background-color: #fdfcfa;
    border: 2px solid #e9e2d8;
    border-radius: 5px;
    height: auto;
    align-content: center;
}
.menu-vertic p {
    width: 250px;
    display: block;
    font-size: 11px;
    font-style: italic;
    margin: 10px 10px 10px 40px;
 text-indent: 0;
    text-align: left;
}
p.menu-nazv {
    font-size: 12px;
    text-align: left;
    text-indent: 0;
    margin-left: 20px;
}
p.menu-razd {
    font-size: 8px;
    font-style: italic;
    text-align: right;
    margin-bottom: 25px;
}*/
/*
.page {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}*/
.txt, .page-index  {
    display: block;
    margin: 30px;
}
p {
    font-size: 15px;
    text-align: justify;
    line-height: 20px;
    margin: 12px 0;
}
h1 {
    font-size: 20px;
    text-align: center;
    margin: 5px 10px 10px 10px;
}
h2 {
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;

}
h3 {
    font-size: 15px;
    text-align: left;
    font-weight: bold;
    margin: 10px 0 10px 25px;
}
h4 {
    font-size: 13px;
    text-align: left;
    font-weight: bold;
    margin: 10px 0;
}
h5 {
    font-size: 12px;
    padding: 10px;
    text-align: center;
    clear: both;
    margin: 0 20px;
}

a {
    color: #836446;
    font-weight: bold;
}
a:link {
    color: #947250;
    text-decoration: none;
}
a:active {
    color: #c30;
    text-decoration: underline;
}
a:visited {
    color: #c0a388;
    text-decoration: none;
}
a:hover {
    color: #c30;
    text-decoration: underline;
}
.center {
    text-align: center;
        font-size: 12px;
}
.txt img {
    float: right;
    margin: 5px 0 25px 25px;
}
.card img, .txt a img {
    display: block;
    opacity: 1;
    -webkit-transform: scale(1,1);
    -webkit-transition-timing-function: ease-out;
    -webkit-transition-duration: 550ms;
    -moz-transform: scale(1,1);
    -moz-transition-timing-function: ease-out;
    -moz-transition-duration: 550ms;
}
.card img:hover, .txt a img:hover {
    box-shadow: 1px 2px 12px 2px rgba(0,0,0,0.30);
    -webkit-transform: scale(1.2,1.2);
    -webkit-transition-timing-function: ease-out;
    -webkit-transition-duration: 550ms;
    -moz-transform: scale(1.2,1.2);
    -moz-transition-timing-function: ease-out;
    -moz-transition-duration: 550ms;
}
.quoter {
    font-style: italic;
    padding: 10px 20px;
    margin: 0 0 0 25px;
    background-color: #f7f6f6;
    border-left: 2px solid #d3c5b7;
}
.autor {
    text-align: right;
    padding: 10px 20px;
    margin: 0 0 0 25px; 
    font-size: 11px;
    background-color: #f7f6f6;
    border-left: 2px solid #d3c5b7;
}
.right {
    text-align: right;
    margin-top: 6px;
    font-size: 15px;
}
.group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0 10px 0;
}
.group img {
    align-items: center;
    margin: 0 20px;
    float: none;
}
.publ {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

.links-bott {
    font-size: 12px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 15px;
    clear: both;
}
.links-bott a {
    font-weight: normal;
}
.preview {
    width: 94%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 auto;
}

/*arts*/
.arts {
    padding: 60px 20px 60px 20px;
}
.arts p {
    font-size: 15px;
    text-align: center;
    margin: 10px 0;
    text-indent: 0px;
}
.arts img {
    display: block;
    margin: 0 auto;
    padding: 20px 5px;
    float: none;
}

h5 {
    font-size: 14px;
    padding: 10px;
    text-align: center;
    clear: both;
    font-weight: normal;
    margin-top: 20px;
    margin-bottom: 5px; 
}
/*links*/
.links {
    display: block;
    margin: 20px;
    padding: 5px;
}
.links img {
    text-align: left;
}
.links p {
    text-align: left;
    text-indent: 0;
    margin: 30px;

}
.links p a {
    font-weight: normal;    
}

/*footer*/
.footer {
    display: block;
    height: 30px;
    background-color: #d9d3c9;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    
}
.footer p {
    font-size: 12px;
    color: #fff;
    margin: 5px;
    text-align: center;
}
/*links*/

.links {
    padding: 60px 20px 60px 20px;
    
    }
    
.links p {
    font-size: 15px;
    text-align: left;
    font-weight: 400;
    margin: 30px 40px;
    text-indent: 0px;
}
.links h1, .links h2, .links h3, .links p, .links a img {
    text-align: left;
}
/*map*/
.col {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 0;
}
.col-txt {
    width: 47%;
}

.col-txt h3 {
    text-align: left;
}
.col-txt p {
    text-align: left;

}
.list-map {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 50px 0;
    background-color: #fdfcfa;
    border: 2px solid #d3c5b7;
    border-radius: 5px;
    margin: 40px 10px;
    padding: 10px 20px;
}
.list-map p {
    font-size: 13px; 
    font-weight: normal;

}
.list-map a {
    font-size: 13px; 
    font-weight: normal;
    margin: 0 5px;
    text-indent: 0px;
}

@media screen and (max-width: 800px) {
 p {

   text-align: left;
}
.page {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    }
.txt, .arts, .page-index {
     width: 95%;
    margin: 10px 10px 20px 10px;
    padding: 0;
    }
.txt img {
    width: 40%;
    height: auto;

}
   .group img, .arts img {
    width: 96%;
    align-items: center;
    }
.header, .header-top, .menu-top {
    width: 100%;
    height: auto;
}
.top {
     width: 10px;
    }

.card {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    
    }
.card li {
    width: 60%;
    min-width: 300px;
    
    }

 .preview img {
    width: 94%;

} 
}

@media screen and (max-width: 550px) {
     p {
    text-align: left;
    }
    .menu-top li {
    text-align: center;
    }
     .menu-vertic {
    width: 100%;
    }
    .header-top-index img, .header-top img {
     align-items: left;
    } 
    
    .header {
    width: 100%; 
    height: auto;
    text-align: center;    
    }
    .nav {
     margin-top: 20px;
    }
    .header-index {
        height: 300px;
    }
    .nav-index {
        left: 20px;
        bottom: 10px;
        right: auto;
        top: auto;
    }
    .menu {
    width: auto;
    display: block;
    justify-content: space-between;
        margin-top: 20px;
    }
    .menu li {
     display: inline-block;
    min-width: 50%;
    text-align: left;
    margin: 5px 10px;
    border-bottom: 0;
}
.menu li:hover {
    border-bottom: 0;
     text-decoration: underline;
} 
.card { 
    width: 100%;    
    }
.card li {
    width: 100%;
    }

    
    
     .preview a img {
     width: 100%;
     justify-content: center;
    }
    .txt img {
    width: 100%;
    flex-wrap: nowrap;
    text-align: center;
}
    .arts {
        margin: 0 auto;
    }
   .group img, .arts img {
        width: 96%;
        margin: 0;
        padding: 0;
    }

    .col {
    width: 100%;
    display: flex;
    flex-direction: column;
 }
    .col-txt {
      width: 100%;      
    }
    
    
}