html {
    scroll-behavior: smooth;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}
.logo-wrapper{
    display: flex;
    align-items: center;
    gap: 8px;
    img{
        width: 56px;
        border-radius: 50%;
    }
}
.gradient-text{
    color: #9c67a7;
    background-image: radial-gradient(circle, #9c67a7, #988ff0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}
h1{
    font-size: 56px;
}
h2{
    font-size: 44px;
}
h3{
    font-size: 24px;
}
p{
    font-size: 16px;
}
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    .section-wrapper{
        max-width: 950px;
        width: 100%;
    }
    h2{
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Виправлення для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}
.section-1 {
    background-image: url('../img/hands.min.avif');
    h1{
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
    p{
        max-width: 700px;
        font-size: 1.2em;
        margin-inline: auto;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}
.section-3 {
    background-image: url('../img/umbrella.avif');
}
.section-2{
    background: #020024;
    background: linear-gradient(156deg, rgba(2, 0, 36, 1) 0%, rgba(152, 143, 240, 1) 49%, rgba(156, 103, 167, 1) 100%);
}
.section-4 {
    background-image: url('../img/handshake.min.avif');
}
.section-5 {
    background-image: linear-gradient(-45deg, #d946ef, #8a48ec, #b300e0, #0ea5e9);
}
.content-container {
    display: flex;
    /*max-width: 1000px;*/
    background: #ffffffd1;
    color: #313131;
    border-radius: 16px;
    padding: 40px;
    gap: 20px;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    width: 100%;
    box-sizing: border-box;
}
.content-text {
    flex: 3;
    text-align: left;
}
footer {
    background: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}
.section-wrapper{
    h2{
        margin-top: -20px;
        margin-bottom: 30px;
    }
}
.step-container{
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    .step-item{
        flex-basis: 33%;
        background: #fff;
        border-radius: 24px;
        color: #000;
        padding: 24px;
        max-width: 380px;
        text-align: left;
        display: flex;
        flex-direction: column;
        /*box-shadow: 0 0 5px 10px rgba(0, 0, 0, 0.1);*/
        opacity: 0;
        transition: all 0.8s ease;

        &:first-child {
            transform: translateX(-100px);
        }

        &:nth-child(2) {
            transform: translateY(50px);
        }

        &:nth-child(3) {
            transform: translateX(100px);
        }

        &.visible {
            opacity: 1;
            transform: translateX(0) translateY(0);
        }

        p{
            /*margin-top: auto;*/
            color: #313131;
            min-height: 100px;
            margin-bottom: 0;
        };
        .fas{
            font-size: 56px;
            color: #4668e0;
        }
    }
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
    text-align: left;
}
.contact-item.visible {
    opacity: 1;
    transform: translateX(0);
}
.contact-item i {
    font-size: 1.3em;
    margin-right: 15px;
    color: #4668e0;
    width: 25px;
    text-align: center;
}
.contact-item a {
    color: #333;
    text-decoration: none;
}
.contact-item a:hover {
    text-decoration: underline;
}
.section-faq .section-wrapper{
    width: 100%;
}
/* Стилі для FAQ акордеону */
.faq-container {
    width: 100%;
    margin: 0 auto;
}

details {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

summary {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    line-height: 1.4;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #4668e0;
    transition: transform 0.3s ease;
    font-size: 16px;
    margin-left: 10px;
    flex-shrink: 0;
}

details[open] summary:after {
    transform: rotate(180deg);
}

details:hover summary {
    background-color: #f8f8ff;
    transition: background-color 0.3s ease;
}

.faq-content {
    padding: 0 24px;
    color: #555;
    text-align: left;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
    padding-bottom: 0;
    font-size: 16px;
}

.faq-content p {
    margin-top: 12px;
    margin-bottom: 12px;
}

.faq-content ul,
.faq-content ol {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.faq-content li {
    margin-bottom: 8px;
}

.faq-content ul li {
    list-style-type: disc;
}

.faq-content ol li {
    list-style-type: decimal;
}

.section-faq {
    background: linear-gradient(180deg, #8a48ec 0%, #1a1a1a 100%);
}

.section-faq .content-container {
    background: rgba(255, 255, 255, 0.95);
}

/* Покращення читабельності FAQ */
.faq-content strong,
.faq-content b {
    color: #333;
    font-weight: 600;
}

.faq-content a {
    color: #4668e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-content a:hover {
    color: #2a4bb9;
    text-decoration: underline;
}
.section-5{
    .content-container{
        padding: 40px;
        flex-direction: column;
        min-width: 500px;
    }
}

@media screen and (max-width: 800px) {
    header {
        padding: 8px 15px;
    }

    nav a {
        margin: 0 5px;
        font-size: 14px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
    }

    .neon-text {
        font-size: 3rem;
    }

    .step-container {
        gap: 20px;
    }

    .step-item .fas {
        font-size: 46px;
    }

    .content-container {
        padding: 30px;
    }

    .section-5 .content-container {
        min-width: auto;
        /*width: 90%;*/
    }

    /* FAQ адаптація */
    summary {
        font-size: 17px;
        padding: 16px 20px;
    }

    .faq-content {
        font-size: 15px;
        padding: 0 20px;
    }

    .faq-content ul,
    .faq-content ol {
        padding-left: 18px;
    }
}

/* Адаптивні стилі для екранів шириною до 500px */
@media screen and (max-width: 500px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    .logo-wrapper {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav a {
        margin: 5px;
        font-size: 13px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .section-1 p {
        font-size: 1em;
    }

    .neon-text {
        font-size: 2.2rem;
    }

    .step-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .step-item {
        /*width: 100%;*/
        /*max-width: 100%;*/
    }

    .step-item p {
        min-height: auto;
    }

    .step-item:first-child,
    .step-item:nth-child(2),
    .step-item:nth-child(3) {
        transform: translateY(50px);
    }

    .content-container {
        padding: 20px;
        flex-direction: column;
    }

    .section-5 .content-container {
        min-width: auto;
        /*width: 85%;*/
    }

    .contact-item i {
        font-size: 1.1em;
    }

    /* FAQ адаптація для мобільних */
    .faq-container {
        margin: 0;
    }

    details {
        margin-bottom: 10px;
        border-radius: 6px;
    }

    summary {
        font-size: 15px;
        padding: 14px 16px;
        line-height: 1.3;
    }

    summary:after {
        font-size: 14px;
        margin-left: 8px;
    }

    .faq-content {
        font-size: 14px;
        padding: 0 16px;
        line-height: 1.5;
    }

    .faq-content p {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .faq-content ul,
    .faq-content ol {
        padding-left: 16px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .faq-content li {
        margin-bottom: 6px;
    }
}
