/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section {
    scroll-margin-top: 80px;
}

#about, #contacts {
    padding: 40px 0;
}

#hero {
    padding-top: 40px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* Шапка */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    text-align: center;
}

.logo-sub {
    color: #000;
    font-size: 1em;
    font-weight: normal;
    font-family: 'Allura', cursive;
    font-style: italic;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e91e63;
}

/* Секция карусели */
.css-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-input {
    display: none;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    width: 80%;
    max-width: 800px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Управление каруселью */
.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 4;
    text-decoration: none;
    border: none;
    user-select: none;
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

/* Навигационные точки */
.carousel-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 4;
    gap: 10px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Логика переключения слайдов */
#slide1:checked ~ .carousel-slides .carousel-slide:nth-child(1),
#slide2:checked ~ .carousel-slides .carousel-slide:nth-child(2),
#slide3:checked ~ .carousel-slides .carousel-slide:nth-child(3),
#slide4:checked ~ .carousel-slides .carousel-slide:nth-child(4),
#slide5:checked ~ .carousel-slides .carousel-slide:nth-child(5),
#slide6:checked ~ .carousel-slides .carousel-slide:nth-child(6) {
    opacity: 1;
    z-index: 2;
}

/* Активная точка навигации */
#slide1:checked ~ .carousel-nav .carousel-dot:nth-child(1),
#slide2:checked ~ .carousel-nav .carousel-dot:nth-child(2),
#slide3:checked ~ .carousel-nav .carousel-dot:nth-child(3),
#slide4:checked ~ .carousel-nav .carousel-dot:nth-child(4),
#slide5:checked ~ .carousel-nav .carousel-dot:nth-child(5),
#slide6:checked ~ .carousel-nav .carousel-dot:nth-child(6) {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Показываем соответствующие кнопки для каждого слайда */
#slide1:checked ~ .carousel-controls .carousel-next:nth-child(2),
#slide2:checked ~ .carousel-controls .carousel-next:nth-child(4),
#slide3:checked ~ .carousel-controls .carousel-next:nth-child(6),
#slide4:checked ~ .carousel-controls .carousel-next:nth-child(8),
#slide5:checked ~ .carousel-controls .carousel-next:nth-child(10),
#slide6:checked ~ .carousel-controls .carousel-next:nth-child(12) {
    display: flex;
}

#slide1:checked ~ .carousel-controls .carousel-prev:nth-child(11),
#slide2:checked ~ .carousel-controls .carousel-prev:nth-child(1),
#slide3:checked ~ .carousel-controls .carousel-prev:nth-child(3),
#slide4:checked ~ .carousel-controls .carousel-prev:nth-child(5),
#slide5:checked ~ .carousel-controls .carousel-prev:nth-child(7),
#slide6:checked ~ .carousel-controls .carousel-prev:nth-child(9) {
    display: flex;
}

/* Скрываем все кнопки по умолчанию */
.carousel-controls .carousel-prev,
.carousel-controls .carousel-next {
    display: none;
}

/* Секция "О нас" */
#about {
    /* padding: 40px 0; */
    text-align: center;
}

#about h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* Секция контактов */
#contacts {
    /* padding: 80px 0; */
    background: #f8f8f8;
    text-align: center;
}

#contacts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.contact-info {
    margin-bottom: 40px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #e91e63;
}

.map-placeholder {
    background: #ddd;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Подвал */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p:nth-child(1) {
    font-size: 1.1em;
}



/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo h1 {
        align-items: center;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .css-carousel {
        height: 400px;
        margin-top: 100px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .css-carousel {
        height: 300px;
    }
    
    .slide-content {
        bottom: 60px;
        width: 90%;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-nav {
        bottom: 15px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-sub {
        font-size: 1em;
    }
}