.content {
    justify-content: flex-start;
}

.all_left {
    width: clamp(280px, 80%, 900px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3vh;
}

.line {
    height: 5px;
    background: linear-gradient(90deg, #2269c5, #4a7ede);
    border-radius: 10px;
}

#text {
    color: #a6a6a6;
    font-size: clamp(13px, 1.5vw, 18px);
    margin-top: 6vh;
    line-height: 1.5;
}

#title {
    font-size: clamp(28px, 5vw, 64px);
    color: #ffffff;
    margin: 0;
}

#project_title {
    display: inline-block;
}

.photo {
    width: 25%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
}

.projects_blocks {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2vh;
}

.project_cards {
    display: flex;
    flex-direction: column;
}

.info_proj {
    display: flex;
    gap: 3%;
    width: 100%;
    height: 25vh;
    background-color: #2e3136;
    border-radius: 15px;
    padding: 2.5%;
    box-sizing: border-box;
    border:  1px solid #494949;
}

.base_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    height: 100%;
}

.count {
    padding: clamp(4px, 0.5vh, 8px) clamp(8px, 0.7vw, 14px);
    border-radius: 10px;
    background-color: rgba(34, 105, 197, 0.15);
    color: #a6a6a6;
    font-family: monospace;
    font-size: clamp(11px, 1.1vw, 15px);
    white-space: nowrap;
}

.title_elem {
    color: #ffffff;
    font-size: clamp(16px, 2vw, 28px);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.desc_elem {
    color: #a6a6a6;
    font-size: clamp(12px, 1.2vw, 16px);
    margin: 0;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more_btn {
    width: clamp(120px, 15vw, 200px);
    height: clamp(36px, 5vh, 50px);
    border-radius: 15px;
    font-size: clamp(13px, 1.2vw, 18px);
    background: linear-gradient(90deg, #2269c5, #4a7ede);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}

.more_btn:hover {
    box-shadow: 0 0 15px #4a7ede;
}

/* ── Планшеты (до 1024px) ── */
@media (max-width: 1024px) {
    .all_left {
        width: 85%;
    }

    #title {
        font-size: clamp(26px, 4.5vw, 48px);
    }

    .info_proj {
        height: 22vh;
    }
}

/* ── Мобильные (до 640px) ── */
@media (max-width: 640px) {
    .all_left {
        width: 90%;
        gap: 2vh;
    }

    #title {
        font-size: clamp(24px, 7vw, 36px);
    }

    #text {
        font-size: 13px;
        margin-top: 3vh;
    }

    .info_proj {
        flex-direction: column;
        height: auto;
        min-height: unset;
        padding: 14px;
        gap: 12px;
    }

    .photo {
        width: 100%;
        height: 180px;
        border-radius: 10px;
    }

    .base_info {
        gap: 10px;
        height: auto;
    }

    .title_elem {
        font-size: clamp(15px, 4.5vw, 20px);
    }

    .desc_elem {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }

    .more_btn {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }
}

/* ── Очень маленькие (до 360px) ── */
@media (max-width: 360px) {
    #title {
        font-size: 22px;
    }

    .title_elem {
        font-size: 14px;
    }

    .desc_elem,
    .count {
        font-size: 12px;
    }

    .more_btn {
        font-size: 13px;
        height: 38px;
    }
}

/* ── 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);
    }
}

/* ── Анимации элементов ── */
#project_title {
    animation: fadeLeft 0.5s cubic-bezier(.22,1,.36,1) both;
}

#text {
    animation: fadeLeft 0.5s 0.15s cubic-bezier(.22,1,.36,1) both;
}

.project_cards {
    animation: fadeUp 0.5s cubic-bezier(.22,1,.36,1) both;
}

.project_cards:nth-child(1) { animation-delay: 0.25s; }
.project_cards:nth-child(2) { animation-delay: 0.38s; }
.project_cards:nth-child(3) { animation-delay: 0.51s; }
.project_cards:nth-child(4) { animation-delay: 0.64s; }
.project_cards:nth-child(5) { animation-delay: 0.77s; }
.project_cards:nth-child(6) { animation-delay: 0.90s; }