/* Additional Theme Styles */

/* Loading Animation */
/*img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}*/

/* Sticky Header */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #282828;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Back to Top Button */
#back-to-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
}

#back-to-up.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-up:hover {
    background-color: #282828;
    transform: translateY(-5px);
}

#back-to-up svg {
    width: 20px;
    height: 20px;
}

/* Form Styles */
input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: var(--body-font-family);
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(247,190,78,0.2);
}

/* Animation Classes */
[reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*
.comparison-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: ew-resize;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: auto;
    display: block;
}

.comparison-after {
    width: 50%;
    border-right: 3px solid var(--primary);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.comparison-slider::before,
.comparison-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2px;
    height: 20px;
    background: white;
    transform: translateY(-50%);
}

.comparison-slider::before {
    left: 15px;
}

.comparison-slider::after {
    right: 15px;
}
*/

/* Slideshow fixes */
.slideshow {
    position: relative;
    overflow: hidden;
}

.slideshow__slide {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: none;
}

.slideshow__slide.active {
    display: block;
}

.slideshow__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Если изображение не загрузилось - показываем цвет */
.slideshow__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #282828;
    z-index: -1;
}

.slideshow__text-wrapper {
    position: relative;
    z-index: 2;
    height: 700px;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .slideshow__slide {
        min-height: 600px;
    }
    
    .slideshow__text-wrapper {
        height: 600px;
    }
}

/* Убедимся что контент поверх изображения */
.slideshow__text-wrapper .container {
    position: relative;
    z-index: 2;
}

/* Затемнение для лучшей читаемости текста если нужно */
.slideshow__slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}
