/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключаем шрифты */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');

/* Стили для меню */
.main-menu {
    background: #2d4a2d;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portrait {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.name {
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.menu-links {
    display: flex;
    gap: 10px;
}

.menu-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.menu-links a:hover {
   background: #3d6a3d;
}

/* Гамбургер-иконка */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* Стили для слайдера */
.cb-slideshow {
    position: fixed;
    width: 100%;
    height: calc(100% - 80px);
    top: 0;
    left: 0;
    z-index: 1;
}

.cb-slideshow li {
    list-style: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.cb-slideshow li span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: imageAnimation 36s linear infinite 0s;
}

.cb-slideshow li div {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
   animation: titleAnimation 36s linear infinite 0s;
    z-index: 2;
}

.cb-slideshow li div h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Анимации */
@keyframes imageAnimation {
    0% { opacity: 0; }
    5% { opacity: 1; }
    15% { opacity: 1; }
    16.67% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes titleAnimation { 
    0% { opacity: 0; }
    5% { opacity: 1; }
    15% { opacity: 1; }
    16.67% { opacity: 0; }
    100% { opacity: 0; }
}

/* Задержки для слайдов */
.cb-slideshow li:nth-child(1) span { 
    background-image: url('../images/sliders/3.jpg');
    animation-delay: 0s; 
}
.cb-slideshow li:nth-child(2) span { 
    background-image: url('../images/sliders/8.jpg');
    animation-delay: 6s; 
}
.cb-slideshow li:nth-child(3) span { 
    background-image: url('../images/sliders/7.jpg');
    animation-delay: 12s; 
}
.cb-slideshow li:nth-child(4) span { 
    background-image: url('../images/install/Bomj.jpg');
    animation-delay: 18s; 
}
.cb-slideshow li:nth-child(5) span { 
    background-image: url('../images/sliders/9.jpg');
    animation-delay: 24s; 
}
.cb-slideshow li:nth-child(6) span { 
    background-image: url('../images/sliders/10.jpg');
    animation-delay: 30s; 
}

.cb-slideshow li:nth-child(1) div { animation-delay: 0s; }
.cb-slideshow li:nth-child(2) div { animation-delay: 6s; }
.cb-slideshow li:nth-child(3) div { animation-delay: 12s; }
.cb-slideshow li:nth-child(4) div { animation-delay: 18s; }
.cb-slideshow li:nth-child(5) div { animation-delay: 24s; }
.cb-slideshow li:nth-child(6) div { animation-delay: 30s; }

@media screen and (max-width: 900px) {
    .menu-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(45, 74, 45, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        z-index: 9998;
        overflow-y: auto; /* Добавляем скролл */
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    }
    
    .menu-links.active {
        display: flex;
    }
    
    .menu-links a {
        display: block;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        font-size: 18px;
        color: white;
        text-decoration: none;
        width: 100%;
        flex-shrink: 0; /* Запрещаем сжиматься */
    }
    
    /* Остальные стили остаются как были */
    .menu-links a:hover {
        background: #3d6a3d;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 10000;
        background: #2d4a2d;
        border: none;
        padding: 10px;
        cursor: pointer;
    }
}
@media screen and (max-width: 600px) {
    .cb-slideshow li div h3 {
        font-size: 40px;
    }
    
    .portrait {
        width: 40px;
        height: 40px;
    }
    
    .name {
        font-size: 16px;
    }
    
    .main-menu {
        height: 60px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 480px) {
    .cb-slideshow li div h3 {
        font-size: 32px;
    }
    
    .portrait {
        width: 35px;
        height: 35px;
    }
    
    .name {
        font-size: 14px;
    }
    
    .menu-links a {
        padding: 15px;
    }
}

/* Стили для футера */
.site-footer {
    background: rgba(51, 51, 51, 0.9);
    color: white;
    padding: 10px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

/* Стили для иконок в шапке */
.header-social {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon img {
    width: 20px;
    height: 20px;
}

/* Адаптивность для иконок */
@media screen and (max-width: 900px) {
    .header-social {
        margin-left: 10px;
        gap: 8px;
    }
     .menu-links {
        padding-bottom: 60px; /* Добавляем отступ снизу на высоту футера */
    }
	
    .social-icon img {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 600px) {
    .header-social {
        margin-left: 8px;
        gap: 6px;
    }
    
    .social-icon img {
        width: 16px;
        height: 16px;
    }
}

/* Стили для контента страниц */
.page-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 80px auto 60px auto;
    min-height: 60vh;
}

.main-menu {
    flex-wrap: nowrap !important;
    height: 70px !important;
}