.carousell {
    margin-bottom: 230px;
}
@media (max-width: 1024px) {
.carousell {
    height: 650px;
    width: 358px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
	}
#drag-container, #spin-container {
    top: 8px;
	}
}

#carousel  {
    touch-action: none;
    display: flex;
    height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
}
#drag-container,
#spin-container {
    position: relative;
    display: flex;
    margin: auto;
    transform-style: preserve-3d;
    transform: rotateX(-10deg);
}
#drag-container a {
    transform-style: preserve-3d;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 16px rgba(0,0,0,0.1);
    border: 8px solid #5a7853;
}
#drag-container img {
    width: 100%;
    height: 100%;
    filter: grayscale(50%) contrast(0.8);
    transition: filter 0.3s;
}     
#drag-container a:hover img{
    filter: grayscale(0) contrast(1);
}          
#drag-container p {
    line-height: 1;
    font-size: 50px;
    font-weight: bold;
    text-align: center;      
    font-family: Serif;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    color: #5a7853;
    font-family: Verdana, sans-serif; 
}
#ground {
    width: 900px;
    height: 900px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
}
@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}
@keyframes spinRevert {
    from {
        transform: rotateY(360deg);
    }
    to {
        transform: rotateY(0deg);
    }
}  

figure.card a {
color: #eeeeee;
}
.tabblock {
    position: relative;
    top: 54px;
}
.paddingl {
    padding-left: 10px;
}
.figurege {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

figure.card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}            
figure.card {
    border-radius: 10px;
    position: relative;
    max-width: 100%;
    display: inline-block;
    border: 14px solid #5a7853;
    background: #5a7853;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    margin: 15px 0;
    font-size: 0;
}
figure.card img {
    max-width: 259px;
    transition: all 300ms;
    position: relative;
    top: 0;
    left: 0;
}
figure.card:hover img {
    transition: all 700ms;
    transform: scale(1.1);
}
figure.card figcaption {
    position: absolute;
    background: #5a7853;
    transition: transform 300ms;
    padding: 12px;
}
figure.card:hover figcaption {
    transform: translateY(0);
}
figure.info-bottom:hover img {
    top: -40px;
}
figure.info-bottom figcaption {
    bottom: 0;
    transform: translateY(100%);
    border-top: 6px solid #5a7853;
}
figure.info-top:hover img {
    top: 40px;
}
figure.info-top figcaption {
    top: 0;
    transform: translateY(-100%);
    border-bottom: 6px solid #BFE2FF;
}
figure.info-bottom figcaption, 
figure.info-top figcaption {
    width: 100%;
}
figure.info-left:hover img {
    left: 90px;
}
figure.info-left figcaption {
    left: 0;
    top: 0;
    transform: translateX(-180px);
    border-right: 6px solid #BFE2FF;
}
figure.info-right:hover img {
    left: -90px;
}
figure.info-right figcaption {
    right: 0;
    top: 0;
    transform: translateX(180px);
    border-left: 6px solid #BFE2FF;
}
figure.info-left figcaption, 
figure.info-right figcaption {
    width: 180px;
    height: 100%;
}
figure.card figcaption .info span {
    font-size: 13px;
    font-family: Verdana, sans-serif;  
    display: block;
}
figure.card figcaption .info h3 {
    font-size: 18px;
    display: inline-block;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eeeeee;
}


//3D ТЕКСТ

.text3d-wrap-2 {    
    background-color: #337AB7;  
    height: 260px;
    overflow: hidden;
} 
.text3d-2 {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 160px;
    perspective: 2000px;
    transform-style: preserve-3d;  
}
.text3d-layer-2 {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: rotateY(20deg) rotateX(35deg) translateZ(0);
    animation: text3d-anim-2 2s infinite alternate linear;
    animation-fill-mode: forwards;  
    animation-play-state: paused;
}
.text3d-layer-2:after {
    font-family: Impact, Charcoal, sans-serif;
    font-size: 70px;
    content: 'ОСЕНЬ 2022';
    letter-spacing: 2px;
    text-align: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 58px;
    color: #3f543b;
    text-shadow: 4px 0 10px rgba(0, 0, 0, 0.13);
}
.text3d-layer-2:nth-child(1):after {
    transform: translateZ(0px);
}
.text3d-layer-2:nth-child(2):after {
    transform: translateZ(-1.5px);
}
.text3d-layer-2:nth-child(3):after {
    transform: translateZ(-3px);
}
.text3d-layer-2:nth-child(4):after {
    transform: translateZ(-4.5px);
}
.text3d-layer-2:nth-child(5):after {
    transform: translateZ(-6px);
}
.text3d-layer-2:nth-child(6):after {
    transform: translateZ(-7.5px);
}
.text3d-layer-2:nth-child(7):after {
    transform: translateZ(-9px);
}
.text3d-layer-2:nth-child(8):after {
    transform: translateZ(-10.5px);
}
.text3d-layer-2:nth-child(9):after {
    transform: translateZ(-12px);
}
.text3d-layer-2:nth-child(10):after {
    transform: translateZ(-13.5px);
}
.text3d-layer-2:nth-child(11):after {
    transform: translateZ(-15px);
}
.text3d-layer-2:nth-child(12):after {
    transform: translateZ(-16.5px);
}
.text3d-layer-2:nth-child(13):after {
    transform: translateZ(-18px);
}
.text3d-layer-2:nth-child(14):after {
    transform: translateZ(-19.5px);
}
.text3d-layer-2:nth-child(15):after {
    transform: translateZ(-21px);
}
.text3d-layer-2:nth-child(16):after {
    transform: translateZ(-22.5px);
}
.text3d-layer-2:nth-child(17):after {
    transform: translateZ(-24px);
}
.text3d-layer-2:nth-child(18):after {
    transform: translateZ(-25.5px);
}
.text3d-layer-2:nth-child(19):after {
    transform: translateZ(-27px);
}
.text3d-layer-2:nth-child(20):after {
    transform: translateZ(-28.5px);
}
.text3d-layer-2:nth-child(n+10):after {
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.25);
}
.text3d-layer-2:nth-child(n+11):after {
    -webkit-text-stroke: 15px #BFE2FF;
    text-shadow: 6px 0 6px #00366b, 5px 5px 5px #002951, 0 6px 6px #00366b;
}
.text3d-layer-2:nth-child(n+12):after {
    -webkit-text-stroke: 15px #68baff;
}
.text3d-layer-2:last-child:after {
    -webkit-text-stroke: 17px rgba(0, 0, 0, 0.1);
}
.text3d-layer-2:first-child:after {
    color: #5a7853;
    text-shadow: none;
}
.text3d-wrap-2:hover .text3d-layer-2 {
    animation-play-state: running;
}
@media (max-width:767px) {
    .text3d-2 .text3d-layer-2:after{
        font-size: 40px;
    }
}
@keyframes text3d-anim-2 {
    0 {
        transform: rotateY(20deg) rotateX(35deg) translateZ(0);
    }
    50% {
        transform: rotateY(0) rotateX(-20deg) translateZ(0);
    }
    100% {
        transform: rotateY(-20deg) rotateX(35deg) translateZ(0);
    }
}
