tml, body{
    background: #fffdf4;
    font-family: Comfortaa, sans-serif;
    color: #5a5d59;
}
.container{
    position: relative;
    max-width: 1360px;
    box-sizing: border-box;
    padding: 10px;
    display: block;
    margin: 0 auto;
}
.fixed {
    position: fixed;
    top: 0;
    transition:all 3s ease;
    z-index: 102;
    animation: slidetop 1s 3s ease-out forwards;
}
.hide{
    display: none;
}

#logo-show {
    margin: 0 auto;
    background: url(/images/logo.png) center no-repeat;
    width: 500px;
    height: 320px;
    background-size: cover;

    -webkit-animation-duration: 5s;
    animation-duration: 5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}
@-webkit-keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

a{
    color: #39b95f;
    text-decoration: none;
    transition: all 0.8s;
}
a:hover{
    color: #31ff6e;
    text-decoration: none;
    transition: all 0.8s;
}
.link {
    position: relative;
}
.link::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 1px;
    background: #39b95f;;
}
.link::after {
    width: 0;
    transition: 0.3s;
}
.link:hover:after {
    width: 100%;
}
.top-line {
    width: 100%;
    background: #c4c4c4;
    box-sizing: border-box;
    padding: 10px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 102;
    color: #2d2d2d;
}
.top-line a{
    color: #2d2d2d;;
}
.top-line a:hover{
    color: #000;
}

.top-line .container{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.top-contact{
    text-align: right;
}
.mobile-nav{
    display: none;
}
#about .about{
    font-size: 20px;
}
.about{
    text-align: center;
    line-height: 2;
    background: #fffdf4;
}
.top_margin{
    margin-top:60px;
}
.b-block{
    position: relative;
    margin: 0 auto;
    height: 600px;
    color: #fff;
}
.b-block-1{
    background: url(/images/block1.jpg) center no-repeat;
    background-size: cover;
}
.b-block-2{
    background: url(/images/block2.jpg) center no-repeat;
    background-size: cover;
}
.back-black{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
    z-index: 100;
}
.back-black .container{
    position: relative;
}
.desc{
    display: block;
    padding: 15px;
    position: absolute;
    z-index: 101;
    color: #fffdf4;
    border: 1px solid #fffdf4;
    border-radius: 5px;
    width: 50%;
    margin: 9% 25%;
    line-height: 2;
    text-align: center;
    font-size: 19px;
}
.b-footer {
    box-sizing: border-box;
    padding: 15px 0;
    background: #3c3c3c;
    color: #fff;
    line-height: 2;
}

.line {
    overflow: hidden;
    text-align: center;
    font-size: 25px;
    margin: 10px 0;
}
.line:before,
.line:after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 2px;
    background-color: #39b95f;
    position: relative;
}
.line:before {
    margin-left: -100%;
    left: -14px;
}
.line:after {
    margin-right: -100%;
    right: -14px;
}
.b-footer .container{
    display: flex;
}
.b-footer .half{
    width: 50%
}
.b-footer .contacts{
    text-align: right;
}
.vozm{
    text-align: center;
}
.vozm-flex{
    display: flex;
    flex-wrap: wrap;
}
.vozm-item h2{
    color: #39b95f;
}
.vozm-item{
    box-sizing: border-box;
    padding: 10px;
    width: 50%;
    line-height: 1.5;
    border-bottom: 1px dashed #39b95f;
}
.vozm-item table{
    border: 0;
    margin: 0 auto;
}
.vozm-item p {
    margin-bottom: 10px;
}
.route{
    line-height: 1.5;
}
.route p{
    text-indent: 20px;
}
/*Форма обратной связи*/

.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    z-index: 103;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}
.popup {
    background-color: #fff;
    border: 3px solid #fff;
    display: inline-block;
    left: 50%;
    opacity: 0;
    padding: 15px;
    position: fixed;
    text-align: justify;
    font-size: 14px;
    top: 40%;
    visibility: hidden;
    z-index: 10;
    width: 400px;

    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;

    -webkit-transition: opacity .5s, top .5s;
    -moz-transition: opacity .5s, top .5s;
    -ms-transition: opacity .5s, top .5s;
    -o-transition: opacity .5s, top .5s;
    transition: opacity .5s, top .5s;
}
.overlay:target+.popup {
    top: 50%;
    opacity: 1;
    visibility: visible;
    z-index: 103;
}
.close {
    height: 24px;
    line-height: 24px;
    position: absolute;
    right: -28px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    top: -6px;
    width: 24px;
}
.close:before {
    color: rgba(255, 255, 255, 0.9);
    content: url('/blocks/images/close.png');
    font-size: 14px;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
}
.btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 24px;
    margin: 0 15px 15px 0;
    outline: none;
    border: none;
    border-radius: 3px;
    height: 37px;
    line-height: 37px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: normal;
    text-decoration: none;
    color: #fff;
    background-color: #39b95f;
    cursor: pointer;
    user-select: none;
    appearance: none;
    touch-action: manipulation;
    transition: box-shadow .18s ease-out,background .18s ease-out,color .18s ease-out;
}
.btn:focus-visible {
    box-shadow: 0 0 0 3px lightskyblue;
}
.btn:hover {
    box-shadow: 0 1px 1px 0  #cfcfcf, 0 2px 5px 0  #cfcfcf;
}
.btn:active {
    background-color: #efefef !important;
}
.btn:disabled {
    background-color: #eee;
    color: #444;
    pointer-events: none;
}
.price{
    font-weight: bold;
}
p.small{
    font-size: 14px;
    font-weight: bold;
}
.services{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.services .item{
    width: 300px;
    text-align: center;
    line-height: 1.5;
}
.services .item img {
    display: block;
    margin: 0 auto;
}

.services .item h3 {
    color: #39b95f;
    margin-bottom: 5px;
}

.btn-up {
    position: fixed;
    background-color: #117930;
    right: 75px;
    bottom: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    z-index: 103;
}

.btn-up::before {
    content: "";
    width: 40px;
    height: 40px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}

.btn-up_hide {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn-up:hover {
        background-color: #149639;
    }
}

/*Мобильная верстка*/
@media (min-width: 320px) and (max-width : 815px){
    .top-line .container{
        display: block;
    }
    .top-contact{
        text-align: left;
        margin-bottom: 10px;
    }
    .desktop-nav{
        display: none;
    }
    .mobile-nav{
        display: block;
        text-align: right;
    }
    .desc{
        width: 80%;
        margin: 15% 10%;
        font-size: 16px;
        line-height: 1.5;
    }
    .services{
        justify-content: center;
        flex-wrap: wrap;
    }
    .b-footer .half {
        width: 100%;
    }
    .half.service{
        display: none;
    }
    .vozm-item{
        width: 100%;
    }
}
@media (min-width: 320px) and (max-width : 520px){
    #logo-show{
        width: 320px;
        height: 205px;
    }
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .popup {
        width: 300px;
    }
    .close {
        right: 5px;
        top: 1px;
    }
    .btn-up{
        left: 15px;
        width: 45px;
        height: 32px;
    }
    .line{
        font-size: 16px;
    }
    .route{
        font-size: 14px;
    }
}