/* ===================== */
/* === Reset & Base ==== */
/* ===================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #1a1a2e;
    background: #f0f2f5;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================== */
/* === Layout ========== */
/* ===================== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===================== */
/* === Header ========== */
/* ===================== */

.header {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo img {
    width: 40px;
    height: auto;
}

.header__logo span {
    font-weight: 700;
    font-size: 20px;
    color: #4a9eff;
    letter-spacing: 0.5px;
}

/* ===================== */
/* === Main ============ */
/* ===================== */

.main {
    flex: 1;
    padding: 60px 0 80px;
    background-image: url('../images/candels.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 35% auto;
}

.main__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    text-align: center;
}

.main__title span {
    color: #4a9eff;
}

/* ===================== */
/* === Success page ==== */
/* ===================== */

.main__wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.main__item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 36px 30px;
    flex: 1;
    min-width: 320px;
    max-width: 520px;
    min-height: 340px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.main__item > span {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4a9eff;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
}

.main__item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 60%;
}

.main__item p {
    font-size: 15px;
    color: rgba(26, 26, 46, 0.6);
    line-height: 1.6;
    max-width: 60%;
}

.main__item .highlight {
    color: #4a9eff;
    font-weight: 500;
}

/* Decorative icons via background */
.main__item.calling {
    background-image: url('../images/main/calling.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 210px auto;
}

.main__item.trading {
    background-image: url('../images/main/trading.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 240px auto;
}

/* ===================== */
/* === Policy page ===== */
/* ===================== */

.policy-content {

}

.policy-content p {
    font-size: 14px;
    color: rgba(26, 26, 46, 0.75);
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-content p:nth-child(1),
.policy-content p:nth-child(9),
.policy-content p:nth-child(17),
.policy-content p:nth-child(25),
.policy-content p:nth-child(29),
.policy-content p:nth-child(31),
.policy-content p:nth-child(36) {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 16px;
}

.policy-content p:first-child {
    margin-top: 0;
}

/* ===================== */
/* === Footer ========== */
/* ===================== */

.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.footer__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 30px;
    text-align: center;
}

.footer__links a {
    font-size: 13px;
    color: rgba(26, 26, 46, 0.5);
    text-decoration: underline;
}

.footer__links a:hover {
    color: rgba(26, 26, 46, 0.8);
    opacity: 1;
}

.footer__copyright {
    font-size: 13px;
    color: rgba(26, 26, 46, 0.5);
}

.footer__contact a {
    font-size: 13px;
    color: rgba(26, 26, 46, 0.5);
    text-decoration: underline;
}

.footer__contact a:hover {
    color: rgba(26, 26, 46, 0.8);
    opacity: 1;
}

.footer__warning-text {
    width: 100%;
    font-size: 11px;
    color: rgba(26, 26, 46, 0.3);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

/* ===================== */
/* === Responsive ====== */
/* ===================== */

@media (max-width: 768px) {
    .main {
        padding: 40px 0 60px;
        background-image: url('../images/candels-mobile.png');
        background-size: 50% auto;
    }

    .main__title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .main__wrapper {
        flex-direction: column;
        align-items: center;
    }

    .main__item {
        max-width: 100%;
        min-height: auto;
        padding: 28px 20px 220px;
    }

    .main__item h3 {
        max-width: 70%;
    }

    .main__item p {
        max-width: 70%;
    }

    .main__item.calling {
        background-position: right -10px bottom -10px;
        background-size: 200px auto;
    }

    .main__item.trading {
        background-position: right -10px bottom -10px;
        background-size: 220px auto;
    }
}

@media (max-width: 480px) {
    .main__title {
        font-size: 20px;
    }

    .main__item {
        padding: 24px 18px 200px;
    }

    .main__item h3 {
        font-size: 16px;
        max-width: 65%;
    }

    .main__item p {
        max-width: 65%;
        font-size: 14px;
    }

    .main__item.calling {
        background-size: 180px auto;
    }

    .main__item.trading {
        background-size: 200px auto;
    }

    .footer__wrapper {
        flex-direction: column;
        gap: 10px;
    }
}
