body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0; /* Важно! */
}

.content {
    flex: 1;
}

.content {
    width: 100%;
}
main {
    margin-bottom: 50px;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slideshow img {
    filter: blur(5px);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: block;
    text-decoration: none;
    color: inherit;
    background: white; /* Белый фон */
}

.slide img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    /* Маска для плавного появления изображения */
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
}

/* Дополнительное размытие границ */
.image-blur-edges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    backdrop-filter: blur(20px);
    mask-image: linear-gradient(
        to bottom,
        white 0%,
        transparent 10%,
        transparent 90%,
        white 100%
    );
    pointer-events: none;
    z-index: 1;
}



.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 30px 50px;
    border-radius: 15px;
    max-width: 80%;
    transition: transform 0.3s ease;
    transition: background 1s ease;
    font-size: 25px;
    color: rgb(253, 212, 76);
}

.text-content:hover {
    background: rgba(0,0,0,0.8);

}

.slide:hover .text-content {
    transform: translateX(-50%) scale(1.05);
}

.cta-button {
    display: inline-block;
    background: rgb(139, 107, 0);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.slide:hover .cta-button {
    background: rgb(139, 107, 0);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    background-color: transparent ;
}

.prev:hover, .next:hover {
    background-color: black;
    transition: background 1s ease;
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    outline: none;
    transition: color 0.5s ease;
}

a:hover {
     color:rgb(139, 107, 0);
}



.functions-diagram {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    flex-direction: column;
}

.functions-list {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: auto;
    align-items: center;
    justify-content: center;
}

.function-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    width: 100px;
    height: 100px;
    
}

.function-item:hover {
    background: #e9ecef;
}

.function-item.active {
    background: #e9ecef;
    border-color: #0056b3;
}

.function-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.function-description {
    flex: 2;
    background: white;
    text-align: center;
    border-radius: 10px;
    padding: 30px;
    min-height: 300px;
}

.function-description p{
color:rgb(139, 107, 0);
font-size: 20px;
font-weight: 600;
}

.description-content {
    display: none;
}

.description-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.description-content h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 24px;
}

.description-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.description-content ul {
    list-style-type: none;
    padding: 0;
}

.description-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.description-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}


h1 {
    text-align: center;
}

h2 {
    text-align: center;
}
.zavodi {
    width: 100%;
}

.Zavod2 {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 80%;
    border-top: 2px solid rgb(139, 107, 0);
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-around;
    gap: 30px;
    font-size: 25px;
}

.Zavod2 img {
    width: 40%;
    border-radius: 15px;
}

.Zavod2 h2 {
    color:rgb(139, 107, 0);
}

.Zemlya {

    display: flex;
    align-items: center;
    flex-direction: row;
    width: 80%;
    justify-content: space-around;
}

#picture8 {
    width: 40%;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .slideshow {
        height: 400px;
    }
    
    .slide img {
        height: 400px;
    }
    
    .text-content {
        bottom: 50px;
        padding: 15px 25px;
        font-size: 18px;
        width: 90%;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .prev, .next {
        padding: 10px;
        font-size: 18px;
    }
    
    .functions-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .function-item {
        width: auto;
        height: auto;
        padding: 10px;
        justify-content: center;
    }
    
    .Zavod2 {
        flex-direction: column;
        width: 90%;
        text-align: center;
    }
    
    .Zavod2 img {
        width: 100%;
        max-width: 400px;
    }
    
    .Zemlya {
        flex-direction: column;
        gap: 20px;
    }
    
    #picture8 {
        width: 100%;
        max-width: 400px;
    }
    
    .function-description {
        padding: 20px 15px;
        min-height: auto;
    }
}


@media (max-width: 480px) {
    .slideshow {
        height: 300px;
    }
    
    .slide img {
        height: 300px;
    }
    
    .text-content {
        font-size: 16px;
        padding: 10px 15px;
        bottom: 30px;
    }
    
    .dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .Zavod2 {
        font-size: 18px;
        gap: 15px;
    }
    
    .function-description p {
        font-size: 16px;
    }
}
/* Обновленные медиа-запросы для body.css */

/* Планшеты и небольшие ноутбуки (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .slideshow {
        height: 500px;
    }
    
    .slide img {
        height: 500px;
    }
    
    .text-content {
        font-size: 22px;
        padding: 25px 40px;
        bottom: 70px;
    }
    
    .Zavod2 {
        width: 85%;
        font-size: 22px;
    }
    
    .Zavod2 img {
        width: 45%;
    }
    
    #picture8 {
        width: 45%;
    }
}

/* Ноутбуки (1025px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
    .slideshow {
        height: 550px;
    }
    
    .slide img {
        height: 550px;
    }
    
    .Zavod2 {
        width: 85%;
        gap: 25px;
    }
    
    .functions-diagram {
        max-width: 900px;
    }
}

/* Мониторы 4:3 (до 1600px) */
@media (max-width: 1600px) and (min-aspect-ratio: 4/3) {
    .slideshow {
        height: 500px;
    }
    
    .text-content {
        font-size: 22px;
        padding: 20px 35px;
    }
    
    .functions-diagram {
        padding: 15px;
    }
    
    .function-description {
        padding: 25px;
    }
}

/* Старые ноутбуки (до 1280px) */
@media (max-width: 1280px) {
    .slideshow {
        height: 450px;
    }
    
    .slide img {
        height: 450px;
    }
    
    .Zavod2 {
        width: 90%;
    }
    
    .prev, .next {
        padding: 12px;
    }
}

/* Небольшие планшеты (до 920px) */
@media (max-width: 920px) and (min-width: 769px) {
    .functions-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .function-item {
        width: 90px;
        height: 90px;
    }
    
    .Zemlya {
        width: 90%;
    }
}