/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #a1a1a1;
}

/* Контейнер для полноэкранных секций */
.fullpage-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

/* Каждая секция — полноэкранный блок */
.screen {
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ФОНЫ СЕКЦИЙ */
.screen-1 {
    background-image: url('../img/0.jpg');
    background-color: #a1a1a1;
}

.screen-2 {
    background-image: url('../img/1.jpg');
    background-color: #a1a1a1;
}

.screen-3 {
    background-image: url('../img/2.jpg');
    background-color: #a1a1a1;
}

.screen-3 .double-cards {
    margin-top: 20vh;  /* подвигает карточку вниз от центра */
}
/* НЕТ затемнения */

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 1.5rem;
    max-width: 90%;
    width: 100%;
}

/* АНИМАЦИИ */
.content h1, .content h2, .content p, .double-cards {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.screen.in-view .content h1,
.screen.in-view .content h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.screen.in-view .content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.screen.in-view .double-cards {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.double-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

/* Стиль карточки-ссылки — увеличенный */
.clickable-card {
    background: rgba(15, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 100vw;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.9, 0.9, 0.4, 1.1), box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 215, 150, 0.6);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 38px -12px rgba(0, 0, 0, 0.7);
    background: rgba(30, 35, 50, 0.9);
    border-color: rgba(255, 200, 100, 0.9);
}

/* Картинка — КВАДРАТНАЯ, увеличенная */
.card-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid #ffd966;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    background-color: #e9eef3;
    transition: transform 0.3s ease;
}

.clickable-card:hover .card-img {
    transform: scale(1.05);
}

.caption {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffefc0;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.desc {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 500;
}

.screen h1, .screen h2 {
    font-size: 3.2rem;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.screen p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.35);
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

/* Подсказка скролла */
.scroll-hint {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 8px 22px;
    border-radius: 60px;
    color: #ffecb3;
    font-size: 14px;
    font-family: monospace;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.2s;
    border: 1px solid rgba(255,215,0,0.5);
    white-space: nowrap;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

.scroll-hint.hidden {
    opacity: 0;
    visibility: hidden;
    animation: none;
}

/* Адаптив */
@media (max-width: 700px) {
    .double-cards {
        gap: 1.5rem;
    }
    .clickable-card {
        width: 260px;
        padding: 1.2rem;
    }
    .card-img {
        width: 150px;
        height: 150px;
    }
    .caption {
        font-size: 1.3rem;
    }
    .desc {
        font-size: 0.85rem;
    }
    .screen h1, .screen h2 {
        font-size: 2.2rem;
    }
    .scroll-hint {
        font-size: 10px;
        padding: 5px 16px;
    }
}

@media (max-width: 480px) {
    .clickable-card {
        width: 220px;
        padding: 1rem;
    }
    .card-img {
        width: 120px;
        height: 120px;
    }
    .caption {
        font-size: 1.1rem;
    }
}