html {
    background-image: url(src/img/BGBlur.svg);
    background-color: #0A0B0F;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: unset;
    color: white;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #f5f5f5;
    line-height: 1.6;

}

header {

    padding: 25px 10%;
    border-bottom: 1px solid #ffffff29;
}

nav {

    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.social {
    display: flex;
    gap: 15px;
}

.left_header {
    display: flex;
    align-items: center;
    gap: 60px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}


nav a {
    text-decoration: none;
    color: #A3A3A3;
    font-weight: 400;
}

.hero {
    text-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 70px;
    padding: 15vh 10% 28vh 10%;
}

.hero img {
    width: 100%;
}


.hero .content {
    max-width: 600px;
    margin: 0;
    display: grid;
    grid-template-rows: 1fr 120px 60px;
}

.hero h1 {
    margin: 0;
    background: linear-gradient(169deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 115%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    text-align: left;
    letter-spacing: -1px;
    line-height: 38px;
    font-size: 43px;
    align-self: center;

}

p {
    align-self: center;
    margin: 0;
    color: #909090;
    text-align: left;
    line-height: 16px;
    font-weight: 500;
}

.arrow-down {
    bottom: 6vh;
    left: 50%;
    position: absolute;
}

.cta-button {
    align-self: self-end;
    height: 45px;
    width: 95px;
    display: flex;
    padding: 10px 20px;
    background: #5F54DC;
    color: #ffffff;
    text-decoration: none;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.cta-button>img {
    width: 7px;
}

.panel-image {
    background: url('panel.png') no-repeat center;
    background-size: cover;
    height: 300px;
    margin-top: 20px;
}

#features>div:first-child, #difficulties>div:first-child, #faq>div:first-child {
    width: 50%;
}

.features-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 40px;

}

.feature {
    padding: 50px;
    border: 2px solid #ffffff1e;
    border-radius: 50px;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: linear-gradient(0deg, #2c2f39a1 0%, #2c2f3900 100%);
}

.difficulties-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
}

.difficulty {
    padding: 50px 30px;
    border: 2px solid #ffffff1e;
    border-radius: 38px;
    display: flex;
    gap: 20px;
    background: linear-gradient(0deg, #2c2f39a1 0%, #2c2f3900 100%);
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.difficulty-title {
    display: flex;
    gap: 10px
}

.difficulty-title>h4 {
    font-weight: 500;
    margin: 0;
}

.difficulty>p {
    color: #B3BCD0;
    font-size: 14px;
    font-weight: 500;
    line-height: 15px;
    margin-bottom: 170px;
}

.difficulty>img {
    position: absolute;
    bottom: -30px;
    right: -14%;
}

.box {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 50px 100px;
    justify-content: center;
}

.feature>div {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.feature ul {
    list-style-type: disc;
    color: #B3BCD0;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 15px;
}

.feature-block-title {
    display: flex;
    border: 2px solid #ffffff1e;
    border-radius: 36px;
    background-color: #ffffff0f;
    gap: 10px;
    align-items: center;
    padding: 7px 19px 7px 7px;
    width: fit-content;
}

.feature-block-title>img {
    background-color: #ffffff1e;
    padding: 5px 10px;
    border-radius: 36px;
}


.feature h4 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    margin: 0;
}

.feature h3, .difficulty h3 {
    margin: 0;
    background: linear-gradient(169deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 115%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    text-align: left;
    letter-spacing: -1px;
    line-height: 25px;
    font-size: 22px;

}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul li {}

details {
    width: 100%;
    color: #B3BCD0;
    margin: 0;
    background: #ffffff13;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
}

details p {
    color: #8A8791;
    margin-top: 20px;
    font-size: 15px;
}

summary {
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    background-color: #efefef52;
    padding: 9px 15px;
    border-radius: 15px;
    content: url(src/img/arrow.svg);
    float: right;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(-180deg);
}

summary:focus {
    outline: none;
}

footer {
    display: flex;
    align-items: center;
    gap: 70px;
    justify-content: center;
}

footer p {
    text-align: center;
    margin: 20px 0;
    color: #7f7f7f;
    text-align: center;
}

h2 {
    margin: 0;
    background: linear-gradient(169deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 115%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    text-align: left;
    letter-spacing: -1px;
    line-height: 38px;
    font-size: 35px;
    margin-bottom: 20px;
}

#difficulties, #features {
    padding: 25px 10%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 120px;
}

#faq {
    display: flex;
    flex-direction: column;
    padding: 25px 10%;
    gap: 10px;
    margin-bottom: 120px;
}

#faq>div {
    margin-bottom: 50px;
}

.box>p, .box>h3 {
    text-align: center;
}


.hr-feature {
    width: 100%;
    height: 2px;
    border: none;
    background: radial-gradient(circle, #a59feb46, #5f54dc1f);
    margin: 75px 0;
}

.features-dop {
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
}

.features-dop>div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-dop>div>p {
    color: #B3BCD0;
    font-size: 14px;
    font-weight: 500;
    line-height: 15px;

}

.features-dop>div>div {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.features-dop>div>div>h4 {
    font-weight: 500;
    margin: 0;
}


.social-footer {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {

    header {
        padding: 25px 5%;
    }

    #difficulties, #features {
        padding: 25px 5%;
    }

    #faq {
        padding: 25px 5%;
    }

    .hero {
        text-align: center;
        justify-content: center;
        align-items: center;
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0;
        padding: 11vh 10%;
    }

    .left_header {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    nav {
        justify-content: space-around;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 20px;
    }


    nav a {
        text-decoration: none;
        color: #A3A3A3;
        font-weight: 400;
        font-size: 10px;
    }

    .social {
        display: none;
    }

    #features>div:first-child, #difficulties>div:first-child, #faq>div:first-child {
        width: 100%;
    }

    .feature {
        padding: 20px;
        border-radius: 20px;
        display: grid;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        grid-template-columns: auto;
        gap: 30px;

    }

    .features-container {
        flex-direction: column;
    }

    .box {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 50px 50px;
        width: 100%;
        justify-content: center;
    }

    .hr-feature {
        margin: 25px 0;
    }

    .features-dop {
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-columns: auto;
        gap: 20px;
    }

    .difficulties-container {

        grid-template-columns: auto;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }

    .hero .content {
        max-width: 600px;
        margin: 0;
        display: grid;
        grid-template-rows: 1fr 120px 60px;
    }

    .cta-button {
        font-size: 12px;
        height: 25px;
    }

    .arrow-down {
        left: 45%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .features-container, .difficulty, .box {
    animation: fadeInUp 0.8s ease-out;
}

.hero {
    animation-delay: 0.3s;
}

.features-container {
    animation-delay: 0.6s;
}

.difficulty {
    animation-delay: 0.9s;
}

.box {
    animation-delay: 1.2s;
}

details {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

details[open] {
    max-height: 500px;
    /* Примерное значение, регулируйте в зависимости от контента */
}

details summary {
    cursor: pointer;
    list-style: none;
}

summary::after {

    float: right;
    transition: transform 0.4s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details p {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

details[open] p {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feature>div, .difficulty>p, .features-dop>div {
    transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
    transform-origin: center;
    z-index: 1;
    will-change: transform;
    /* Подсказка для браузера о предстоящем изменении */
}

.feature>div:hover, .difficulty>p:hover, .features-dop>div:hover {
    transform: scale(1.05);
    z-index: 1000;

    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); */
}

.hero-img {
    transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
    transform-origin: center;
    z-index: 1;
    will-change: transform;
    /* Подсказка для браузера о предстоящем изменении */
}

.hero-img:hover {
    transform: scale(1.1);
    z-index: 1000;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}