* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body {
    background-image: url("images/traceOfWheel.webp");
    background-size: 50% auto;
    background-repeat: repeat;
    background-position: center;
}
html {
    font-size: 20px;
}
@media (max-width: 1200px) {
    html {
        font-size: 16px;
    }
}
@media (max-width: 600px) {
    html {
        font-size: 12px;
    }
}

.absoluteStyle {
    position: absolute;

}
/* Сообщение об ошибке */
.Wrong {
    color: white;
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 25px;
    padding: 15px 25px;
    z-index: 1000;
    background: #C81F00;
    animation: WrongAnimation 2.5s forwards;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.WrongGreen {
    background: #239906;
}
@keyframes WrongAnimation {
    0% { 
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

#blockAllInfo {
    background: white;
    margin: 10px 10%;
    padding: 1%;
    border-radius: 25px;
}
@media (max-width: 700px) {
    #blockAllInfo {
        margin: 10px 2%;
    }
}

.sizeImage {
    width: 100%;
    border-radius: 25px;
}
@font-face {
    font-family: "Russo";
    src: url("RussoOne/RussoOne-Regular.ttf");
}
.companyName {
    font-size: 3rem;
    font-family: "Russo";
    background: #222222;
    text-align: center;
    color: white;
    border-radius: 25px;
    padding: 20px 0;
    margin: 10px 0;
}
@media (max-width: 700px) {
    .companyName {
        font-size: 2rem;
    }
}

/* Slider */
.photo-banner {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;    
    overflow: hidden;
    background-color: #f5f5f5;
}
@media (max-width: 1200px) {
    .photo-banner {
        height: 300px;    
    }
}
@media (max-width: 600px) {
    .photo-banner {
        height: 150px;    
    }
}

.banner-slides {
    position: relative;
    height: 100%;
    width: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.slide.active {    
    z-index: 2;
    opacity: 1;
    animation: ShowAnimation 0.2s forwards;
}
@keyframes ShowAnimation {
    0% {        
        transform: translateX(-50%) translateY(0%);
    }
    100% {           
        transform: translateX(0%) translateY(0%);
    }
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 2%;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 20px;
    transition: background 0.3s;
}
.banner-prev:hover, .banner-next:hover {
    background: rgba(0,0,0,0.8);
}
.banner-prev { left: 20px; }
.banner-next { right: 20px; }


/* ----------- InfoBlock ----------- */
.infoBlock {
    display: flex;
    margin-bottom: 10px;
}
.leftSide {
    width: 30%;
    box-shadow: 0 2px 4px 0px #000000;
    border-radius: 25px;
    margin-right: 10px;
    padding: 1% 1% 15px 1%;
}
@media (max-width: 450px) {
    .leftSide {
        width: 130px;
    }
}
.leftSide p {
   text-align: center; 
   width: 100%;
   background: #222222;
   border-radius: 25px;
   color: white;
   padding: 15px 0;
   margin-bottom: 10px;
}
.leastPages > div {
    display: flex;    
}
#leftBlockColor {        
    background: #222222;    
    width: 10px;
}
.menu-link {       
    cursor: pointer;         
    padding: 3px 0 3px 5px;    
    width: 100%;
    transition: background 0.2s;
    color: #222222;
    text-decoration: none;
}
.menu-link:hover {
    background: #222222;
    color: white;    
}
.leastPages hr {
    border: 1px solid black;    
}

.rightSide {
    box-shadow: 0 2px 4px 0px #000000;
    width: 100%;
    border-radius: 25px;
    padding: 20px 15px;
}
.heading {    
    font-family: "Russo";
    font-size: 1.5rem;
    font-weight: normal;
}
.textContent {
    margin: 10px 0;    
}

/* Info from base */
.imgWidth {
    width: 100%;
}
.marginContent {
    margin-bottom: 10px;
    text-align: justify;
    white-space: break-spaces;
}
.centerLocation {
    text-align: center;   
}
.boldType {
    font-weight: bold;
}
.styleText {
    background: #222222;
    color: white;
    padding: 10px;
    border-radius: 25px;
    font-family: "Russo";
}
.position-relative {
    position: relative;
}
.delete-btn {
    width: 25px;    
    height: 25px;    
    background: red;
    text-align: center;
    padding: 5px 0;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 0.8rem;
    margin-left: auto;
    line-height: 1;
}
.delete-btn:hover {
    background: darkred;
}
.slide .delete-btn {
    top: 15px;
    right: 15px;
}
.position-select {
    width: 200px;    
}

/* ----------- Footer ----------- */
.footer {
    box-shadow: 0 2px 4px 0px #000000;
    border-radius: 25px;
    padding: 20px;
}
.location {
    text-align: right;
    font-size: 0.8rem;
    font-family: "Russo";
}

/* ----------- AuthForm ----------- */
.loginForm, .SendMessageForm {    
    width: 100%;
    margin: 0 auto;
}
.loginForm {
    max-width: 400px;
}
.SendMessageForm {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}
.loginForm div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
#sendPochta {
    display: flex;
    flex-direction: column;
}
.loginForm input, .SendMessageForm input, .SendMessageForm textarea {
    margin-bottom: 10px;
    height: 40px;
    font-size: 1rem;
    padding-left: 10px;
    box-shadow: 0 1px 2px 1px #000000;
    border-radius: 25px;
    border: none;
}
.SendMessageForm textarea {
    width: 100%;
    height: 300px;
    padding-top: 5px;
}
@media (max-width: 800px) {
    .loginForm input, .SendMessageForm input, .SendMessageForm textarea {
        height: 25px;
    }
    .SendMessageForm textarea {
        height: 150px;
    }
}
.buttonStyle {
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 auto 10px auto;
    border-radius: 25px;    
    background: #222222;
    color: white;
    font-size: 1rem;
    transition: background 0.2s;
    border: 1px solid #222222;
}
.buttonStyle:hover {
    background: white;
    color: #222222;
}

/* ----------- ChangeContent ----------- */
.changeForm {
    display: flex;
    flex-direction: column;
}
.changeForm textarea {
    height: 300px;
    font-size: 1rem;
    box-shadow: 0 1px 2px 1px #000000;
    border: none;
    border-radius: 25px;
    padding: 5px 0 0 10px;
    margin-bottom: 10px;
}
#saveButton:hover {
    background: #239906;
    color: white;
}
#cancelButton:hover {
    background: #C81F00;
    color: white;
}