/* *{
    border: solid red;

}   */


body {
    margin: 0;
    padding: 0; 
    font-family: Arial, Helvetica, sans-serif;
}

/* Верхний фиксированный блок */
/* ===== TOP BAR ===== */

.block0 a {
    background-color: rgba(218, 216, 216, 0.9); 
    width: 100%;
    position: fixed; 
    top: 0; 
    left: 0;
    text-decoration: none; 
    color: rgb(0, 0, 0); 
    line-height: 1.5;   
    font-size: clamp(14px, 2vw, 18px);    
    
    font-weight: bold;
    text-transform: uppercase;  
    z-index: 10;
    text-align: center;
}

/* Блок с изображениями и заголовком */
.block1 { 
    position: relative;
    width: 100%;
    height: 450px;
    display: grid;
    place-items: center; 
    overflow: hidden; 
    background-image: url('../img/block1/1.JPG');
    background-position: center center;
     z-index: -2;
       font-weight: bold;
}

.b1 {
    position: absolute;
    z-index: -1;
}

/* Изображения в блоке1 */
.img1{
    width: 55%;
    top: -2%;
    left: -1%;
}
.img2{
    width: 65%;
    top: -5%;
    left: 40%;
}
.img3{
    width: 50%;
    top: 40%;
    left: 1%;
}
.img4{
    width: 60%;
    top: 20%;
    left: 50%;
}
.img5{
    width: 55%;
    top: 65%;
    left: -3%;
}
.img6{
    width: 45%;
    top: 45%;
    left: 30%;
}
.img7{
    width: 65%;
    top: 50%;
    left: 40%;
}
.img11{
    width: 45%;
    top: -2%;
    left: 25%;
}
.img9{
    width: 45%;
    top: 50%;
    left: 60%;
}
.img10{
    width: 35%;
    top: 5%;
    left: 50%;
}
.img8{
    width: 55%;
    top: 70%;
    left: 5%;
}
.img12{
    width: 45%;
    top: 70%;
    left: 60%;
}


/* Заголовок и подзаголовок */
.block11{ 
    width: 90%;
    height: 90%;
    display: grid;
    place-items: center; 
    background-color: rgba(255, 255, 255); 
    /* border-radius: 5px;  */
    animation: fadeIn 3s forwards;
}

@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 0.9;
    }
}

.title{

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 2vw, 300px); 
    font-weight: 900; 
    letter-spacing: 2px;
    transform: rotateX(90deg); 
    opacity: 0;
    animation: fadeIn2 5s forwards, fadeIn3 2s forwards;
    animation-delay: 3s, 8s;
}

@keyframes fadeIn2{
    0%{
        transform: rotateX(90deg);
        opacity: 0; 
    }
    100%{
        transform: rotateX(0deg); 
        opacity: 1;
        font-size: clamp(24px, 8vw, 300px);
    }
 }


@keyframes fadeIn3{
    0%{
    }
    100%{
     background-image: url('../img/block1/f5.gif');
    background-clip: text;
    color: transparent;  

    }

}



.block13 {
    width: 80%;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    margin-top: 10px;
    padding: 10px;
    text-align: center;
}

.title3 {    
    color: #000;
    font-size: clamp(12px, 2vw, 24px); 
}

/* Блоки с текстом на сером фоне */
.b2 {
    width: 100%;
    background-color: rgba(218, 216, 216, 0.9); 
    color: #000;
    font-size: clamp(12px, 2vw, 24px); 
    border-top: 2px solid #000;
    border-bottom: 2px solid #000; 
    padding: 10px 0;
      font-weight: bold;
}

/* Блоки Top 10, Calendar, Search */
.block2, .block3, .block4 {
    position: relative; /* теперь относительно потока */
    margin: 20px 0;
    width: 100%;
}

.block21 {
    position: relative; /* чтобы шли друг за другом */
    margin: 20px 5%;
    width: 90%;
    background-color: rgba(255, 255, 255, 0.8);
    /* box-shadow: 5px 5px 5px 10px rgba(0, 0, 0, 0.5); */
    /* padding: 1%; */
    /* overflow: auto; */
    /* border-radius: 5px; */
}




/* Карусель */
#carousel {
    touch-action: none;
    display: flex;
    height: 500px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

#drag-container,
#spin-container {
    position: relative;
    display: flex;
    margin: auto;
    transform-style: preserve-3d;
    transform: rotateX(0deg);
}

#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: 2px solid #acacac;
    /* border-radius: 5px; */

    background-color:  rgb(218, 216, 216); 
    text-align: center;
}

#drag-container img {
    width: 70%;
    /* height: 80%; */
    height: auto;
    filter: grayscale(50%) contrast(0.8);
    transition: filter 0.3s;
    
    background-color: rgba(255, 255, 255); 
}

#drag-container a:hover img {
    filter: grayscale(0) contrast(1);
}

#drag-container .carousel-text {

    /* margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333; */

    padding: 2px;
    background-color: rgba(255, 255, 255, 0.8); 
    text-decoration: none; 
color: rgb(0, 0, 0); 

font-family: Arial, Helvetica, sans-serif;
font-size: clamp(10px, 0.7vw, 12px);    
font-weight: bold;
text-transform: uppercase;  
position: absolute;
    top: -5%;
    left: -2%;




}

.carousel-text2{
       background-color: rgba(255, 255, 255, 0.8); 

    text-decoration: none; 
    color: rgb(0, 0, 0); 
    padding: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(8px, 0.5vw, 10px);    

    font-weight: bold;
    /* text-transform: uppercase;   */
    position: absolute;

        bottom: -5%;
        right:  -5%;


}
.carousel-text3{
    background-color: rgba(255, 255, 255, 0.8); 
    padding: 2px;
 text-decoration: none; 
 color: rgb(0, 0, 0); 
 
 font-family: Arial, Helvetica, sans-serif;
 font-size: clamp(8px, 0.5vw, 10px);    

 font-weight: bold;
 /* text-transform: uppercase;   */
 position: absolute;

 top: 10%;
     right:  5%;


}

#ground {
    width: 100%;
    height: 100px;
    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);
    }
}

/* Подписи на изображениях */
.carousel-text, .carousel-text2, .carousel-text3 {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px;
    font-size: clamp(8px, 0.7vw, 12px);
    font-weight: bold;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
}




.block31 {
    position: relative; /* чтобы шли друг за другом */
    margin: 20px 5%;
    width: 90%;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    /* box-shadow: 5px 5px 5px 10px rgba(0, 0, 0, 0.5); */
    box-shadow: 5px 5px 5px 5px rgba(0,0,0,0.3);
    padding: 1%;
    overflow: auto;
    /* border-radius: 5px; */
}

.block41 {
    position: relative; /* чтобы шли друг за другом */
    margin: 20px 5%;
    width: 90%;
     background-color: rgba(255, 255, 255, 0.8);
box-shadow: 5px 5px 5px 5px rgba(0,0,0,0.3);
    padding: 1%;
    overflow: auto;
    /* border-radius: 5px; */
}


/* Ссылки в календаре */
.block31 a {
    text-decoration: none; 
    color: #000; 
    line-height: 1.5;
    font-size: clamp(10px, 5vw, 20px);    
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}


/* Поиск */
.t41 {
    width: 90%;
    margin: 20px auto;
    padding: 1%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
}



/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 15px;
    z-index: 1000;
    font-size: 18px;
    font-weight: bold;
}
.lang-switch a {
    text-decoration: none;
    color: #000;
    background: rgba(255,255,255,0.85);
    padding: 3px 6px;
    border-radius: 3px;
}
.lang-switch a:hover {
    background: #000;
    color: #fff;
}



/* ===== Language switch ===== */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #000;
    /* border-radius: 6px; */

    padding: 4px 10px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.lang-switch a {
    text-decoration: none;
    color: #000;
    padding: 2px 4px;
}

.lang-switch a.active {
    background: #000;
    color: #fff;
    /* border-radius: 3px; */
}

.lang-switch a:hover {
    background: rgba(0,0,0,0.1);
    /* border-radius: 3px; */
}

.lang-switch span {
    margin: 0 4px;
    color: #555;
}




.block99 {
    width: 100%;
    margin: 15px 0;
    padding-left: 10px;
}

.block99 a {
    display: inline-block;
    padding: 6px 14px;

    background-color: #e0e0e0;
    color: #000;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;

    text-decoration: none;

    border: 2px solid #000;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);

    transition: all 0.15s ease;
}

.block99 a:hover {
    background-color: #000;
    color: #fff;
}

.block99 a:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}





/* Адаптив */
/* ===================== MOBILE / TABLET ===================== */
@media (max-width: 1024px) {

    .block1 {
        height: auto;
        min-height: 300px;
    }

    .block11 {
        width: 95%;
        height: auto;
        padding: 20px 10px;
    }

    .title {
        font-size: clamp(22px, 8vw, 60px);
        animation: none;
        transform: none;
        opacity: 1;
    }

    .block13 {
        width: 100%;
        padding: 10px;
    }

    #carousel {
        height: 380px;
    }

    #drag-container img {
        width: 60%;
    }

    .carousel-text,
    .carousel-text2,
    .carousel-text3 {
        font-size: 10px;
    }

        .block99 {
        bottom: 10px;
        right: 10px;
    }

    .block99 a {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {

    /* .block0 a {
        font-size: 10px;
        padding: 5px;
    } */

    .lang-switch {
        top: 45px; /* чтобы не перекрывала верхнюю плашку */
        right: 10px;
        font-size: 10px;
    }

    .block21,
    .block31,
    .block41 {
        width: 95%;
        margin: 10px auto;
        
    }

    #carousel {
        height: 320px;
        perspective: 600px;
    }

    #drag-container img {
        width: 55%;
    }

    .carousel-text {
        top: 5%;
        left: 5%;
    }

    .carousel-text2 {
        bottom: 5%;
        right: 5%;
    }

    .carousel-text3 {
        top: 15%;
        right: 5%;
    }

    .block31 {
        height: auto;
        max-height: none;
            height: 500px;
    }

    .block31 img {
        width: 40px !important;
            height: 500px;
    }

    input[type="text"] {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
    }

        .block99 {
        bottom: 10px;
        right: 10px;
    }

    .block99 a {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ===================== SMALL MOBILE ===================== */
@media (max-width: 480px) {

    .title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .title3 {
        font-size: 14px;
    }

    #carousel {
        height: 260px;
    }

    #drag-container img {
        width: 50%;
    }

    .carousel-text,
    .carousel-text2,
    .carousel-text3 {
        font-size: 9px;
    }

        .block99 {
        bottom: 10px;
        right: 10px;
    }

    .block99 a {
        padding: 10px 16px;
        font-size: 12px;
    }
}
