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

@font-face {
    src: url("../fonts/disney.woff2");
    font-family: 'Inter', sans-serif;
}

@font-face {
    src: url("../fonts/pacifico-regular.ttf");
    font-family: pacifico-regular, sans-serif;
}

@font-face {
    src: url("../fonts/comfortaa-regular.ttf");
    font-family: comfortaa-regular, sans-serif;
}

.hero {
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.container {
    max-width: 1200px;
}

.moving-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.image-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

.animated-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    transform: translate(-50%, -50%);
    height: auto;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: floatImage 40s ease-in-out infinite;
    z-index: 2;
}

.animated-image.visible {
    opacity: 1;
    z-index: 2;
}

@keyframes floatImage {
    0%   { transform: translate(-50%, -50%) scale(1.1); }
    25%  { transform: translate(-55%, -45%) scale(1.1); }
    50%  { transform: translate(-45%, -40%) scale(1.1); }
    75%  { transform: translate(-55%, -45%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes moveImage {
    0%   { transform: translate(-55%, -55%); }
    25%  { transform: translate(-50%, -45%); }
    50%  { transform: translate(-45%, -50%); }
    75%  { transform: translate(-50%, -55%); }
    100% { transform: translate(-55%, -55%); }
}

.glass-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.hero-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: black;
    position: relative;
    justify-content: center;
    align-items: center;
}

.hero-card p {
    color: white;
}

.artist {
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border: 2px solid white;
    width: 95%;
    height: 60px;
    position: absolute;
    bottom: 200px;
}

.artist p {
    text-align: center;
    color: white;
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    line-height: 60px;
    letter-spacing: 22px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000, 2px 2px 5px rgba(246, 246, 246, 0.5);
}

.language {
    position: absolute;
    z-index: 3;
    top: 25px;
    right: 3%;
}

.language p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Great Vibes', cursive;
    font-size: 25px;
    line-height: 0;
    letter-spacing: 0;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000, 2px 2px 5px rgba(246, 246, 246, 0.5);
}

.card-button {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* основная тень */
    background-color: rgba(255, 255, 255, 0.05); /* полупрозрачный фон */
    width: 170px;
    align-items: flex-end;
    justify-content: flex-end;
}

.card-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.card-button img {
    width: 100%;
}

.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* гарантирует стабильную высоту, заменяет height */
    overflow: hidden;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
}

.img-hover {
    opacity: 0;
    z-index: 1;
}

.card-button:hover .img-hover {
    opacity: 1;
}

.card-button:hover .img-default {
    opacity: 0;
}

.card-button p {
    padding: 10px;
    font-weight: bold;
    position: absolute;
    padding-right: 5px;
    color: #d4af37; /* классический золотой */
    text-shadow:
            1px 1px 1px #aaa,
            2px 2px 2px rgba(0, 0, 0, 0.76),
            3px 3px 5px rgba(0,0,0,0.3);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 3;
}

.hero-card-button {
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    z-index: 1;
    position: absolute;
    bottom: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.image-polina {
    padding: 15px;
    align-self: center;
    max-width: 300px;
}

.image-polina img {
    max-width: 100%;
    border-radius: 7px;
}

.main-name {
    position: absolute;
    left: -69px;
    bottom: 64px;
    display: flex;
    flex-direction: column;
    background: rgba(197, 212, 201);
    padding: 24px;
    align-items: center;
    margin-top: 60px;
    z-index: 10;
    width: 470px;
    border-radius: 7px;
}

.light-glow {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 200, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.light-glow.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 1.2s ease forwards;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;
    border-bottom: solid 1px #aaa;
    background-color: #eee;
}

nav a {
    display: inline-block;
    min-width: 9rem;
    padding: 0.5rem;
    border-radius: 0.2rem;
    border: solid 1px #aaa;
    text-align: center;
    text-decoration: none;
    color: #555;
}

nav a[aria-current='page'] {
    color: #000;
    background-color: #d4d4d4;
}

main {
    padding: 1rem;
}

h1 {
    font-weight: bold;
    font-size: 1.5rem;
}

.gallery-item img {
    margin-bottom: 15px;
}

.carousel {
    position: relative;
    width: 40%; /* Ограничиваем ширину карусели до 60% */
    margin: 25px auto; /* Выравниваем карусель по центру */
    overflow: hidden; /* Скрываем лишние элементы */
}

.carousel-inner {
    display: flex;
    transition: transform 1s ease-in-out;
}

.carousel-item {
    min-width: 100%; /* Каждый слайд будет занимать 100% от ширины карусели */
    height: 400px; /* Устанавливаем фиксированную высоту для слайдов */
    overflow: hidden; /* Скрываем части изображений, выходящие за пределы */
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображения, чтобы они заполнили слайд */
}

.carousel-item:first-child {
    opacity: 1; /* Делаем первый слайд видимым */
}

.order {
    display: flex;
    flex-direction: column;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-140px) scale(1.02) rotate(-1deg);
    }
    50% {
        transform: translateY(-380px) scale(1.03) rotate(1deg);
    }
    75% {
        transform: translateY(-340px) scale(1.02) rotate(-1deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

#order .image {
    display: flex;
    justify-content: center;
    animation: floatUp 8s ease-in-out infinite;
    transition: transform 0.3s ease-in-out;
}
