.content {
    justify-content: flex-start;
}

.button-back {
    color: #a6a6a6;
    transition: color 0.2s ease;
}

.button-back:hover {
    color: #eaeaea;
}

.project-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2vh;
    width: clamp(300px, 80%, 1400px);
}

.title {
    color: #ffffff;
    font-size: clamp(28px, 5vw, 64px);
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1vw, 20px);
    flex-wrap: wrap;
}

.site-btn {
    background: linear-gradient(90deg, #2269c5, #4a7ede);
    width: clamp(130px, 12vw, 180px);
    height: clamp(42px, 5vh, 55px);
    border-radius: 15px;
    font-size: clamp(13px, 1.2vw, 16px);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.site-btn:hover {
    box-shadow: 0 0 15px #4a7ede;
}
.site-github {
    width: clamp(120px, 10vw, 150px);
    height: clamp(40px, 5vh, 50px);
    border-radius: 15px;
    border: 3px solid rgba(34, 105, 197, 0.38);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 0.3vw, 8px);
    font-size: clamp(13px, 1.2vw, 18px);
    transition: background-color 0.2s ease;
}

.site-github:hover {
    background-color: #6a6a6a;
}

.github-icon {
    font-size: clamp(16px, 1.5vw, 24px);
}

.carousel {
    width: 100%;
    height: 70vh;
}

.carousel-photo {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #323232;
    border-radius: 15px;
    border: 1px solid rgba(34, 105, 197, 0.38);
}

.carousel-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    border-radius: 15px;
    object-fit: contain
}

.prev-btn, .next-btn {
    position: absolute;
    z-index: 11;
    top: 50%;
    width: clamp(32px, 3vw, 56px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.09);
    border: 0;
    font-size: clamp(12px, 1vw, 18px);
    color: #a1a1a1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.prev-btn { left: 1%; }
.next-btn  { right: 1%; }

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(129, 129, 129, 0.6);
}

.photo-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 14px);
    width: 100%;
    position: absolute;
    bottom: 4%;
    z-index: 11;
}

.circle {
    background-color: rgba(255, 255, 255, 0.09);
    width: clamp(7px, 0.7vw, 12px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid #6a6a6a;
}

.circle.active {
    background-color: #4a7ede;
    border: 0;
}

.about-project {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(34, 105, 197, 0.38);
    padding: clamp(12px, 2vh, 24px) clamp(14px, 2vw, 32px);
    background-color: #323232;
}

.about-title {
    color: #ffffff;
    margin: 0;
    font-size: clamp(16px, 1.8vw, 24px);
}

.about {
    color: #a6a6a6;
    font-size: clamp(13px, 1.3vw, 17px);
    line-height: 1.6;
}

.tech-stack-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(34, 105, 197, 0.38);
    padding: clamp(12px, 2vh, 24px) clamp(14px, 2vw, 32px);
    background-color: #323232;
}

.title-stack {
    color: #ffffff;
    margin: 0;
    font-size: clamp(16px, 1.8vw, 24px);
}

.tech-list {
    margin-top: clamp(10px, 2vh, 24px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 16px);
}

.elem-tech {
    border-radius: 10px;
    border: 1px solid rgba(34, 105, 197, 0.15);
    padding: clamp(4px, 0.5vh, 8px) clamp(8px, 0.5vw, 14px);
    font-size: clamp(12px, 1.1vw, 15px);
    color: rgb(87, 159, 251);
    background-color: rgba(34, 105, 197, 0.15);
    transition: background-color 0.2s ease;
}

.elem-tech:hover {
    background-color: rgba(34, 105, 197, 0.4);
}

/* ── Планшеты (до 1024px) ── */
@media (max-width: 1024px) {
    .project-wrapper {
        width: 88%;
    }

    .carousel {
        height: 55vh;
    }
}

/* ── Мобильные (до 640px) ── */
@media (max-width: 640px) {
    .project-wrapper {
        width: 92%;
    }

    .carousel {
        height: 40vh;
    }

    .buttons {
        width: 100%;
    }

    .site-btn,
    .site-github {
        flex: 1;
        width: auto;
    }
}

/* ── Очень маленькие (до 360px) ── */
@media (max-width: 360px) {
    .buttons {
        flex-direction: column;
    }

    .site-btn,
    .site-github {
        width: 100%;
        height: 44px;
    }
}

/* ── Keyframes ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Анимации элементов ── */
.button-back {
    animation: fadeLeft 0.4s cubic-bezier(.22,1,.36,1) both;
}

.title {
    animation: fadeLeft 0.5s 0.10s cubic-bezier(.22,1,.36,1) both;
}

.buttons {
    animation: fadeUp 0.5s 0.20s cubic-bezier(.22,1,.36,1) both;
}

.carousel {
    animation: fadeUp 0.5s 0.30s cubic-bezier(.22,1,.36,1) both;
}

.about-project {
    animation: fadeUp 0.5s 0.40s cubic-bezier(.22,1,.36,1) both;
}

.tech-stack-block {
    animation: fadeUp 0.5s 0.50s cubic-bezier(.22,1,.36,1) both;
}