input[type='submit'],
input[type='button'],
button {
	background:var(--color1);
	color:#fff;
}

input[type='submit']:active,
input[type='button']:active,
button:active {
	background:var(--color1-active);
}

input:not([type='radio'],[type='checkbox']):focus,
select:focus,
textarea:focus
{
	border-color:var(--color1);
	box-shadow:0 0 0 4px var(--color1-rgba);
}

fieldset{
	border:1px solid var(--color1);
}
legend{
	background:var(--color1-pale);
	color:var(--color1);
}

input[type=checkbox]
{
    background-color: #fff;
    border-color: gray;
    accent-color:  var(--color1);
}
input[type=checkbox]:checked {
    background-color: var(--color1);
}
input[type='checkbox']:checked:after {
    stroke: white !important;
}
input[type=radio]
{
    appearance: none;
    background-color: #fff;
    border-radius:50%;
    border:1px solid #d5d5d5;
}
input[type=radio]:checked {
    background-color: var(--color1);
}

.bg-slide{
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
    width:100%;
    height:100%;
    display:block;
    position:relative;
}

.bgtop-body{
    position:absolute;
    top:0;
    width:100%;
    height:380px;
    background:var(--color1);
    /*clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    background-image:url(../images/bgtop.png);*/
}

.site-line{
    font-size:14px;
    color:#999;
    padding:0 0 10px 0;
}

a.btn-site2{
	background-color:var(--color2);
	color:#fff;
}
a.btn-site2:hover{
	background-color:var(--color2-hover);
}
a.btn-site2:active{
	background-color:var(--color2-active);
}

.list-view > .item .text .title{
    font-size:14px;
}

.list-view > .item .text .sub-title{
    font-size:12px;
    color:#999;
}

.grid-view > .content  a.item {
    text-decoration: none !important;
}
.grid-view > .content {
    grid-auto-rows: auto;
    gap:24px;
}
.grid-view > .content .item {
    border-radius:0;
    overflow:hidden;
    background-color: #fff;
}

.grid-view > .content .item:hover {
    background-color: none;
}
.grid-view > .content .item:active {
    background-color: none;
}

.grid-view > .content a.item:hover{
    text-decoration: underline !important;
}
.grid-view > .content a.item:active{
    color:blue;
}

.grid-view > .content .item .thumb {
    border-radius:0;
    overflow: hidden;
}
.grid-view > .content .item .thumb img {
    transition: all ease-in-out 0.2s;
    transform: scale(1);
}
.grid-view > .content .item .text {
    padding:12px 0;
    text-align: left;
}
.grid-view > .content > .item .text .title{
    font-size:18px;
    padding:0 0 5px;
    line-height: 22px;
    font-weight:bold;
}
.grid-view > .content > .item .text .sub-title{
    font-size:12px;
}

.grid-view > .content > .item:hover .thumb {
    overflow: hidden;
}

.grid-view > .content > .item:hover .thumb img {
    transform: scale(1.1);
}

.grid-view > .items1 .item {
    align-items: center;
    justify-content: baseline;
}
.grid-view > .items1 {
    user-select: text;
}
.grid-view > .items1 > .item .text {
    padding:16px 16px 16px 24px;
    text-align: left;
}

/*
.grid-view > .flex-style
{
    display: flex;
    flex-wrap: wrap;
}
.grid-view > .flex-style .item:nth-child(1),
.grid-view > .flex-style .item:nth-child(2)
{
    display: flex;
    flex-wrap: wrap;
}
*/

.box-input{
    position:absolute;
    top: 100%;
    left:0;
    width:100%;
    border-radius:4px;
    box-shadow: 1px 1px 10px #888;
    z-index:10;
    display:none;
}
.box-input > .content{
    position:relative;
    padding:10px 0 0;
    height:150px;
    overflow: hidden;
    overflow-y:auto;
    background:#fff;
}
.box-input > .content .list-view *{
    font-size:14px !important;
}
.box-input > .content .list-view > .item{
    border-radius: 0;
}
.box-input-btn{
    position:absolute;
    top:5px;
    right:15px;
    z-index:100;
}

.page-w600{
    margin:0 auto;
    width:600px;
}
.page-w700{
    margin:0 auto;
    width:700px;
}
.page-w800{
    margin:0 auto;
    width:800px;
}
.page-w900{
    margin:0 auto;
    width:900px;
}
.page-w1000{
    margin:0 auto;
    width:1000px;
}

@media(min-width: 768px){
    .page-wrapper{
        margin:0 auto;
        width:100%;
        min-height:1000px;
        border-radius: 0;
        background:#fff;
        overflow:hidden;
        position:relative;
    }

    .page-wrapper .page-header{
        height:100px;
        display:flex;
        column-gap: 20px;
        align-items: center;
        background-color: #fff;
        border-bottom:1px solid #e5e5e5;
    }

    .page-wrapper .page-header .span-logo{
        flex-basis:200px;
        display: flex;
        align-items: center;
        padding:0 0 0 10px;
    }
    .page-wrapper .page-header .span-buttons{
        flex-basis:200px;
        padding:0 20px;
        display: flex;
        column-gap: 8px;
        align-items: center;
        justify-content: right;
    }
    .page-wrapper .page-header .span-menu{
        flex:1;
        align-items: center;
        height:100%;
        text-align: center;
    }

    .page-wrapper .page-body{
       padding:16px 25px;
    }

    .page-wrapper .page-header .span-logo a{
        display:block;
    }
    .page-wrapper .page-header .span-logo a img{
        height:70px;
        margin:0 0 0 10px;
        max-width:auto;
    }

    .posts-list .grid-view{
        gap:20px;
        grid-template-columns: repeat(3, 1fr);
    }
    .posts-list .grid-view > .item{
        border-radius:8px;
        text-decoration: none;
    }
    .posts-list .grid-view > .item .thumb{
        width:100%;
    }
    .posts-list .grid-view > .item .thumb img{
        width:100%;
    }

    .posts-home .grid-view{
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .posts-menu .grid-view{
        gap:20px;
        grid-template-columns: repeat(1, 1fr);
    }
    .posts-menu .grid-view > .item{
        border-radius:8px;
        text-decoration: none;
    }
    .posts-menu .grid-view > .item .title{
        font-size:14px;
    }
    .posts-menu .grid-view > .item .thumb{
        width:100%;
    }
    .posts-menu .grid-view > .item .thumb img{
        width:100%;
    }

    .galerie-grid .grid-view{
        gap:20px;
        grid-template-columns: repeat(3, 1fr);
    }
}

.split-panel{
	display:flex;
    column-gap:24px;
}
.split-panel > .body{
	flex:1;
    background:#fff;
}
.split-panel > .aside {
    flex:0 0 360px;
}

.flex-gap32 {
    column-gap: 32px;
}

.photosSlider{
    background:#111;
}

.panel-contacts{
    display:flex;
    gap:30px;
}
.panel-contacts > .item{
    flex:1;
}

.contacts-list{
    display:flex;
    flex-direction: column;
    gap:12px;
}
.contacts-list > .item{
    flex:1;
}

a.btn-tiny,
a.btn-small,
a.btn-medium,
a.btn-large
{
    border-radius:4px;
}

@media(max-width:768px){
    .bgtop-body{
        display:none;
    }

    .page-w600,
    .page-w700,
    .page-w800,
    .page-w900,
    .page-w1000
    {
        margin:0;
        float: left;
        clear: both;
        width: 100%;
    }

    .page-wrapper{
        margin:0;
        float:left;
        clear: both;
        width:100%;
        height:auto;
        background-color: #fff;
        border-radius: 0;
    }

    .page-body{
        float:left;
        clear: both;
        width:100%;
        padding:8px 16px 20px;
    }

    .split-panel{
        flex-direction: column;
        row-gap: 16px;
    }

    .posts-top{
        flex-direction: column;
        gap:10px;
    }
    .posts-top .post-sub{
        flex-direction: row;
        gap:10px;
    }

    .panel-contacts{
        flex-direction: column;
        gap:20px;
    }

    .posts-top .post-main{
        height:auto;
    }
}

@media(max-width:480px){
    .posts-top .post-sub{
        flex-direction: column;
        gap:10px;
    }

    .grid-view > .items1 > .item {
        flex-direction: column !important;
    }
}

.illus-page{
    height:350px;
    background:#111;
}

/******/
.slide-text{
    position:absolute;
    padding:0 0 40px 40px;
    bottom:0;
    width:100%;
    text-align: left;
    min-height:100px;
    background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
}
.slide-text .title {
    font-size:20px;
    font-weight:bold;
    color:#fff;
    margin:0 0 10px;
}
.slide-text .title span {
    background:var(--color2);
    padding:4px 10px;
}
.slide-text .sub-title {
    color:#fff;
    font-size:28px;
    font-weight:bold;
    width:400px;
}

@media(max-width:768px){
}

.form-section > .item{
    padding:6px 0;
}

.paging-items{
    display:block;
    margin:20px 0 0;
    text-align: center;
}
.paging-items .content{
    display:inline-flex;
    align-items: center;
    gap:4px;
}
.paging-items .content .item{
    flex:0 0 1;
    display:flex;
    align-items: center;
    justify-items: baseline;
    text-decoration: none;
}
.paging-items .content .label{
    padding:0 5px;
}

@media(max-width:480px){
    .slide-text{
        padding:0 0 20px 20px;
        min-height:100px;
    }
    .slide-text .title {
        font-size:16px;
    }
    .slide-text .sub-title {
        font-size:20px;
        width:80%;
    }
}
