/* Existing CSS (unchanged) */
@font-face {
    font-family: 'Cascadia Code';
    src: url('../fonts/CascadiaCode-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 700;
    font-style: normal;
}

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

body {
    font-family: "Inter", sans-serif;
    background-color: #0B1D29;
    color: #D9D9D9;
}

.container {
    width: 100%;
    max-width: 2500px;
    margin: 0 auto;
    padding: 0 15px;
}

/*шапка*/
header {
    width: 100%;
    background-color: #B2BBB3;
    padding: 10px 0 0 0;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1.5s ease-out forwards;
}



nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-left: 0;
    /* убирает возможный отступ */
    padding-left: 15px;
    /* небольшой отступ от левого края */
    justify-content: flex-start;
    /* прижимает к левому краю */
}

nav ul li img {
    width: 40px;
    height: 40px;
}

.account-icon {
    width: 50px;
    height: 50px;
}

/*основная инфа*/
.first {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 60px;
    justify-content: flex-start;
    padding: 0 30px;
    margin-top: 0;



}

.logo {
    margin-top: 30px;
    max-width: 100%;
    height: auto;
    flex-shrink: 1;
    padding: 0 30px;

    opacity: 0;
    animation: slideInRight 1.5s ease-out forwards;
}

.card {
    position: relative;

    color: #fff;
    transition: 0.5s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-20px);
}

.card::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;

}

.card::after {
    content: '';
    position: absolute;

    width: 100%;
    height: 100%;

}




.backimg {
    width: 100%;
    display: block;

}

.plate {
    position: relative;
    /* не используйте padding-left для смещения всей plate */

    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out 0.5s forwards;
}

.first h1 {
    width: 16ch;
    /* достаточно для самого длинного текста */
    position: absolute;
    top: 59%;
    left: 60%;
    transform: translate(-50%, -50%);
    font-family: 'Cascadia Code', monospace;
    font-size: 100px;
    color: #fff;
    text-align: left;
    /* <-- чтобы текст не был по центру */
    white-space: nowrap;
    z-index: 1;
    min-height: 1.2em;
    /* предотвращает схлопывание высоты */
    white-space: pre;

}

.first h1::after {
    content: "";
    display: block;
    position: absolute;
    left: 60px;
    /* смещение линии влево */
    top: 100%;
    /* сразу под текстом */
    margin-top: 20px;
    /* отступ вниз */
    width: 60%;
    /* ширина линии, подберите под макет */
    height: 6px;
    background: #fff;
    border-radius: 3px;
    z-index: 1;
}

#typed {
    font-family: 'Cascadia Code', monospace;
    font-size: 100px;
    color: #fff;
    white-space: nowrap;
    display: inline;
}

#cursor {
    display: inline-block;
    font-family: 'Cascadia Code', monospace;
    font-size: 100px;
    color: #fff;
    animation: blink 1s step-end infinite;
}


/*описание*/
.line {
    width: 100%;
    height: 6px;
    background-color: #fff;
    margin: 60px 0;
}


.about {
    font-size: 40px;
    margin: 40px 0 20px 0;
}

.discription {
    display: flex;
    flex-wrap: wrap;
    padding: 0 40px;
    gap: 20px;
}

pre code {
    background: none;
    color: #62A5CA;
    font-size: 20px;
    white-space: pre-wrap;
    font-family: 'Cascadia Code', monospace;
}

.keyword {
    color: #DEBF6B;
    font-weight: bold;
}


.PerposeUp {
    list-style: none;
    display: flex;
    justify-content: space-between;
    /* равномерно по ширине */
    align-items: center;
    /* по центру по вертикали */
    height: 70px;
    text-align: center;
    width: 100%;
    background-color: #B2BBB3;

    /* небольшой отступ по краям */
    box-sizing: border-box;
}

.btn {
    background-color: #B2BBB3;
    font-size: 40px;
    color: #0B1D29;
    font-weight: 600;
    margin: 0;
    padding: 15px 0;
    width: 100%;
    height: 100%;
}

.btn:hover {
    background-color: #7fa485;
    transition: background-color 0.3s ease;
}


/* New CSS for the "Поставленные цели" section */

/* Header for the section */
.PurposeBG {
    background-color: #D9D9D9;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0;
}

/* Container for the content */
.content-container {
    background-color: #498052;
    padding: 50px;
    border-radius: 0 0 5px 5px;

}

/* List of goals */
ul.goals {
    list-style: none;
    padding: 30px;
    margin: 0;
}

ul.goals li {
    font-size: 30px;
    color: #0d0d0d;
    margin-bottom: 10px;
}

.final {
    padding: 0 30px;
    list-style: none;
    font-size: 30px;
    color: #575656;
    margin-bottom: 10px;
}

.btn {
    box-sizing: border-box;
    /* учитывает padding */

    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    background-color: #D9D9D9;

}

.content-block {
    display: none;
}

.content-block.active {
    display: block;
}

.btn.active {
    background-color: #498052;
    /* Цвет активной кнопки */
}

@media (max-width: 1200px) {
    .first h1 {
        width: 16ch;

        font-family: 'Cascadia Code', monospace;
        font-size: 60px;
        color: #fff;
        text-align: center;
        /* было left */

    }

    .backimg {
        display: none;
    }

    .first {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .logo {
        display: block;
        margin: 30px auto 0 auto;
        max-width: 30%;
        height: auto;

    }

    #typed {
        font-size: 58px;
    }

    .about {
        font-size: 28px;
    }

    pre code {
        font-size: 18px;
    }

    ul.goals li {
        font-size: 20px;
    }

    ul.final li {
        font-size: 20px;
    }
}

@media (max-width: 700px) {
    body {
        width: 100%;
    }

    .container {
        padding: 0 10px;
    }

    * {
        margin: 0 0;
    }

    .first h1 {
        width: auto;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        font-family: 'Cascadia Code', monospace;
        font-size: 38px;
        color: #fff;
        text-align: left;
        white-space: nowrap;
        z-index: 1;
        min-height: 1.2em;
        white-space: pre;
    }

    .logo {
        display: block;
        margin: 30px auto 0 auto;
        max-width: 50%;
        height: auto;
    }

    .first h1 {
        font-size: 60px;

    }

    #typed {
        font-size: 48px;
    }

    .about {
        font-size: 24px;
    }

    pre code {
        font-size: 16px;
    }

    ul.goals li {
        font-size: 18px;
    }

    ul.final li {
        font-size: 18px;
    }
}

/* Media queries for responsiveness */




@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    50.1%,
    100% {
        opacity: 0;
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}