* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fafafa;
    --color-text: #1a1a1a;
    --color-border: #e0e0e0;
    --color-accent: #333;
    --color-hover: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

header {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

header p {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
}

.carousel-wrapper {
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 1rem;
    position: relative;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    background: var(--color-bg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.carousel-item img {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.carousel-item:hover img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.carousel-controls {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.2rem;
    pointer-events: all;
    font-weight: 300;
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.carousel-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(250, 250, 250, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    pointer-events: none;
    z-index: 5;
}

.carousel-counter {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.carousel-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.carousel-description {
    font-size: 0.8rem;
    color: #666;
    max-width: 300px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
}

.dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: #999;
}

.carousel-thumbnails {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-x: auto;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    border: 2px solid var(--color-border);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: #888;
    margin-top: 3rem;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .carousel-item {
        padding: 0 1rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-info {
        padding: 0.8rem 1.2rem;
        bottom: 1rem;
    }

    .carousel-title {
        font-size: 1rem;
    }

    .carousel-dots {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .carousel-thumbnails {
        padding: 1.5rem 0.5rem;
        gap: 0.6rem;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    header p {
        font-size: 0.8rem;
    }

    .carousel-wrapper {
        margin: 1.5rem auto;
    }

    .carousel-item {
        padding: 0 0.5rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .carousel-controls {
        left: 0.5rem;
        right: 0.5rem;
    }

    .carousel-info {
        padding: 0.6rem 1rem;
        bottom: 0.8rem;
        font-size: 0.9rem;
    }

    .carousel-counter {
        font-size: 0.75rem;
    }

    .carousel-title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .carousel-description {
        font-size: 0.7rem;
    }

    .carousel-dots {
        margin-top: 1rem;
        gap: 0.4rem;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 20px;
    }

    .carousel-thumbnails {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }

    .thumbnail {
        width: 45px;
        height: 45px;
    }

    footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}