:root {
    --thumb-width: 114px;
    --thumb-height: 180px;
    --thumb-gap: 20px;
    --thumb-position: calc(50% - var(--thumb-width) / 2);
    --thumb-top: 85%;
    --animation: 12000ms cubic-bezier(0.25, 0.1, 0.25, 1) 0s infinite normal none running pan-zoom-in-left;
    --slider-color: rgba(95, 75, 32);
    --shadow-gradient: linear-gradient(to right, var(--slider-color), rgba(0, 0, 0, 0))
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    background: var(--slider-color);
    overflow: hidden;
}

.ms-1 {
    margin-left: 10px;
}

.me-1 {
    margin-right: 10px;
}
.mt-1 {
    margin-top: 10px;
}
.mb-1 {
    margin-bottom: 10px;
}
.me-1 {
    margin-right: 10px;
}

.d-none {
    display: none;
}
.backdropImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(80px);
    opacity: 0.5;
}
.logo {
    position: absolute;
    top: 50px;
    left: 100px;
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1440px;
    height: 800px;
    border-radius: 15px;
    background: #f5f5f5;
}

.container .slide .item {
    width: var(--thumb-width);
    height: var(--thumb-height);
    position: absolute;
    top: var(--thumb-top);
    transform: translate(var(--thumb-position), -50%);
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    transition: 0.5s;
    overflow: hidden;
}

.container .slide .item .content {
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.container .slide .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}
.slide .item:nth-child(2):before {
    background: var(--shadow-gradient);
    opacity: 0.5;
}
.slide .item:nth-child(1):before {
    background: var(--shadow-gradient);
    opacity: 0.5;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    width: 100%;
    height: 100%;
    border-radius: 15px;
    animation: var(--animation);
}

.slide .item:nth-child(2) .content {
    display: block;
}

.slide .item:nth-child(3) {
    left: 50%;
}

.slide .item:nth-child(4) {
    left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)));
}

.slide .item:nth-child(5) {
    left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)) * 2);
}

.slide .item:nth-child(6) {
    left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)) * 3);
}

.slide .item:nth-child(7) {
    left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)) * 4);
}

.slide .item:nth-child(n + 8) {
    left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)) * 5);
    box-shadow: none;
    overflow: hidden;
}

.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 400px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}

.content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    animation: animate 1s ease-in-out 1 forwards;
}

.content .subtitle-wrapper {
    height: 60px;
    position: relative;
}

.content .subtitle {
    font-size: 40px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    font-family: Pacifico;
    -webkit-text-stroke: 3px #fff;
    -webkit-text-fill-color: var(--slider-color);
    animation: animate 1s ease-in-out 0.2s 1 forwards;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.content .subtitle-stroke {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 40px;
    opacity: 0;
    font-family: Pacifico;
    color: var(--slider-color);
    animation: animate 1s ease-in-out 0.2s 1 forwards;
    
}

.content .description {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .contact {
    margin-top: 10px;
    font-size: 32px;
    opacity: 0;
    font-weight: bold;
    color: #fff;
    animation: animate 1s ease-in-out 0.8s 1 forwards;
}

.sliderButtons {
    width: 100%;
    /* text-align: center; */
    margin-left: 100px;
    bottom: 50px;
    position: absolute;
}

.sliderButtons button {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #fff;
    transition: 0.3s;
    color: #fff;
}

.btn.btn-primary {
    background: var(--slider-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.btn.btn-secondary {
    border: 1px solid var(--slider-color);
}

.sliderButtons button:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}



/* Стили для баннера согласия на включение музыки */
.consent-banner {
    font-family: system-ui;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out forwards;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.consent-content p {
    margin: 0;
    font-size: 16px;
    padding: 10px 0;
}

.consent-buttons {
    display: flex;
    gap: 10px;
}

.consent-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.consent-btn.accept {
    background-color: #af814c;
    color: white;
}

.consent-btn.decline {
    background-color: transparent;
    border: 1px solid #999;
    color: #ccc;
}

.consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.consent-btn.decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    :root {
        --thumb-width: 80px;
        --thumb-height: 120px;
        --thumb-gap: 10px;
        --thumb-position: calc(50% - var(--thumb-width) / 2);
        --thumb-top: 75%;
    }

    .container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .container .slide .item {
        border-radius: 12px;
    }

    .item .content {
        left: 20px;
        width: calc(100vw - 40px);
        max-width: 300px;
    }

    .content .name {
        font-size: 24px;
        line-height: 1.1;
    }



    .content .description {
        font-size: 14px;
        margin-top: 8px;
        margin-bottom: 15px;
    }

    .content .contact {
        font-size: 18px;
        margin-top: 8px;
    }

    .content button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .sliderButtons {
        margin: 20px auto;
        bottom:100px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .sliderButtons button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* Hide thumbnails that don't fit on mobile */
    .slide .item:nth-child(n + 6) {
        display: none;
    }

    .slide .item:nth-child(5) {
        left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)) * 2);
    }

    .slide .item:nth-child(4) {
        left: calc(50% + calc(var(--thumb-gap) + var(--thumb-width)) * 1);
    }
}
