:root {
    --bg-color: #0c0c0c;
    --text-color: #e0e0e0;
    --gold-color: #d4af37;
    --frame-bg-color: #121212;
    --frame-border-color: rgba(212, 175, 55, 0.2);
    --frame-border-hover-color: rgba(212, 175, 55, 0.7);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --modal-bg-color: #1a1a1a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU5LDAuMDIpIiBkPSJNMCAyMCBDIDEwIDAgMTAgNDAgMjAgNDAgQyAzMCA0MCAzMCAwIDQwIDIwIj48L3BhdGg+PC9zdmc+');
    transition: overflow 0.3s;
}
body.no-scroll { overflow: hidden; }
body.modal-is-open { overflow: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb { background-color: var(--gold-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: #eabf4e; }

#splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-color); display: flex; align-items: center; justify-content: center; z-index: 1000; transition: opacity 0.7s ease-out, visibility 0.7s ease-out; opacity: 1; visibility: visible; }
#splash-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { text-align: center; animation: fadeInContent 1.5s ease-out forwards; }
.splash-title { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 700; color: var(--gold-color); line-height: 1.1; letter-spacing: 2px; text-shadow: 0 0 25px rgba(212, 175, 55, 0.2); margin-bottom: 2rem; }
#enter-gallery-btn { opacity: 0; animation: fadeInButton 1s ease-out 1s forwards; }

@keyframes fadeInContent { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInButton { from { opacity: 0; } to { opacity: 1; } }

.content-wrapper { opacity: 0; transition: opacity 0.5s ease-in; }
.container { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.header { text-align: center; padding: 5rem 0; margin-bottom: 3rem; }
.header h1 { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 700; color: var(--gold-color); line-height: 1.1; letter-spacing: 2px; text-shadow: 0 0 25px rgba(212, 175, 55, 0.2); }
.header p { font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem); max-width: 550px; margin: 2rem auto 0; opacity: 0.8; }
.art-piece { margin-bottom: 5rem; opacity: 0; transform: translateY(50px); transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.art-piece:last-child { margin-bottom: 0; }
.art-piece.is-visible { opacity: 1; transform: translateY(0); }
.art-piece-title-wrapper { text-align: center; margin-bottom: 2rem; }
.art-piece-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 1.5vw + 1.5rem, 2.2rem); font-weight: 700; margin-bottom: 0.5rem; }
.art-piece-artist { font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1.1rem); opacity: 0.6; }
.art-piece-frame { position: relative; background-color: var(--frame-bg-color); padding: 15px; border: 1px solid var(--frame-border-color); border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--frame-border-color), 0 20px 40px -10px rgba(0, 0, 0, 0.8); transition: border-color 0.4s ease; }
.art-piece-frame:hover { border-color: var(--frame-border-hover-color); }
.art-piece-image-container { position: relative; border-radius: 2px; overflow: hidden; cursor: pointer; }
.art-piece-image { display: block; width: 100%; height: auto; transform: scale(1.0); transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
.art-piece-image-container:hover .art-piece-image { transform: scale(1.05); }
.art-piece-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    overflow-y: auto;
}
.art-piece-image-container:hover .art-piece-info-overlay,
.art-piece-image-container.overlay-visible .art-piece-info-overlay {
    opacity: 1;
    pointer-events: auto;
}
.art-piece-info-text {
    color: #fff;
    font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1.1rem);
    line-height: 1.6;
    transform: translateY(15px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
    overflow-wrap: break-word;
    margin: auto;
}
.art-piece-image-container:hover .art-piece-info-text,
.art-piece-image-container.overlay-visible .art-piece-info-text {
    transform: translateY(0);
    opacity: 1;
}

.action-wrapper { text-align: center; margin-top: 2rem; }
.action-button, .instruction-trigger-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: transparent; color: var(--gold-color); border: 2px solid var(--gold-color); font-family: var(--font-sans); font-size: clamp(0.9rem, 0.2vw + 0.8rem, 1rem); font-weight: 700; padding: 12px 30px; border-radius: 50px; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s, color 0.3s; min-width: 280px; cursor: pointer; }
.action-button:hover, .instruction-trigger-btn:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); background-color: var(--gold-color); color: #000; }
.art-divider {
    height: 50px;
    width: 100%;
    max-width: 300px;
    background-image: url('img/line.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 3rem auto 5rem;
}
.footer-section { padding: 3rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-section h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 1.5vw + 1.5rem, 2.2rem); color: var(--gold-color); margin-bottom: 1rem; text-align: center; }
.footer-section p { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); letter-spacing: 2px; color: #fff; }
.bonus-subtext { font-size: 0.7em; font-weight: 400; letter-spacing: normal; opacity: 0.8; }

.floating-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
    min-width: auto;
    width: auto;
    padding: 12px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float-pulse 3s ease-in-out infinite;
}
.floating-trigger.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.floating-trigger span { display: block; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    /* модальные окошки */
    text-align: center; 
    background: linear-gradient(145deg, #222, #111);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.75), 0 0 0 1px rgba(212, 175, 55, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.is-open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 1.5vw + 1.5rem, 2.2rem);
    color: var(--gold-color);
    margin: 0 0 1rem;
    text-align: center;
}
.modal-content p {
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1rem);
    opacity: 0.7;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}
.modal-content .action-button {
    width: auto;
    margin: 0 auto;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#recruitment-modal .modal-content {
    max-width: 550px;
}
#recruitment-modal .art-divider {
    margin: 1.5rem auto;
}

.instruction-modal .modal-content {
    max-width: 420px;
    padding: 2rem 1rem;
}
.instruction-modal h2 {
    margin-bottom: 2rem;
}

@media (min-width: 601px) {
    .instruction-modal .modal-content {
        max-width: 700px;
    }
}

.swiper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 60px 50px 60px;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slide-title {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--gold-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.slide-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

.slide-image-placeholder {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: #080808;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.instruction-screenshot {
    display: block;
    width: 100%;
    height: auto;
    background-color: #111;
}

.slide-action-button {
    margin-top: 1.5rem;
    width: auto;
    min-width: unset;
    padding: 10px 24px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-color);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.3);
    top: 45%;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}
.swiper-button-next:after,
.swiper-button-prev:after { font-size: 1.2rem !important; font-weight: 900; }
.swiper-button-prev { left: 5px; }
.swiper-button-next { right: 5px; }

.swiper-pagination {
    position: absolute;
    bottom: 15px !important;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.swiper-pagination-bullet { background: rgba(212, 175, 55, 0.4); opacity: 1; width: 8px; height: 8px; transition: all 0.3s ease; }
.swiper-pagination-bullet-active { background: var(--gold-color); width: 24px; border-radius: 5px; }

@media (max-width: 600px) {
    .floating-trigger { bottom: 20px; right: 20px; padding: 10px; width: 50px; height: 50px; border-radius: 50%; }
    .floating-trigger span { display: none; }
    
    .modal-content {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    .modal-content .action-button {
        width: 100%;
    }
    
    .slide-action-button {
        width: 100%;
    }

    .instruction-modal .modal-content {
        padding-left: 0;
        padding-right: 0;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .swiper-slide {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* Анимация для плавающей кнопки */
@keyframes float-pulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(212, 175, 55, 0.3);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(212, 175, 55, 0);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(212, 175, 55, 0.3);
  }
}