/* =========================================================
   CEDARPAY APP - MAIN STYLESHEET
   ========================================================= */


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f3f7fb;
    color: #263b52;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ---------- COMMON CONTAINER ---------- */

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e4ebf2;

    box-shadow:
        0 2px 12px rgba(20, 52, 80, 0.06);
}

.header-inner {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* ---------- LOGO ---------- */

.logo-area {
    display: flex;
    align-items: center;

    gap: 11px;

    flex-shrink: 0;
}

.logo-area img {
    width: 45px;
    height: 45px;

    object-fit: contain;

    border-radius: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;

    color: #183b5d;

    letter-spacing: -0.4px;
}

.logo-text span {
    color: #f4b400;
}


/* ---------- DESKTOP NAV ---------- */

.desktop-nav {
    display: flex;
    align-items: center;

    gap: 5px;
}

.desktop-nav a {
    position: relative;

    padding: 9px 11px;

    color: #344e68;

    font-size: 14px;
    font-weight: 600;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.desktop-nav a:hover {
    color: #0d67a5;
    background: #eef7fd;
}


/* ---------- MENU BUTTON ---------- */

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    border: 1px solid #dbe5ed;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 21px;
    height: 2px;

    background: #183b5d;

    border-radius: 10px;

    transition: 0.25s ease;
}


/* =========================================================
   MOBILE SLIDE MENU
   ========================================================= */

.mobile-menu {
    position: fixed;

    top: 0;
    right: -310px;

    z-index: 10001;

    width: min(300px, 85vw);
    height: 100vh;

    background: #ffffff;

    box-shadow:
        -8px 0 30px rgba(20, 50, 80, 0.18);

    transition: right 0.3s ease;

    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    min-height: 74px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e6edf3;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 800;

    color: #183b5d;
}

.mobile-close {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 8px;

    background: #f2f6fa;

    color: #183b5d;

    font-size: 25px;

    cursor: pointer;
}

.mobile-nav {
    padding: 15px;
}

.mobile-nav a {
    display: block;

    padding: 13px 14px;

    margin-bottom: 5px;

    border-radius: 8px;

    color: #304b65;

    font-size: 15px;
    font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: #edf7fd;
    color: #0b69a6;
}


/* ---------- MENU OVERLAY ---------- */

.menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    background: rgba(10, 30, 50, 0.45);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    padding: 78px 0 85px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #edf7fd 0%,
            #ffffff 52%,
            #fff8e7 100%
        );

    border-bottom: 1px solid #e6edf3;
}

.hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -150px;
    right: -100px;

    border-radius: 50%;

    background: rgba(244, 180, 0, 0.08);
}

.hero-content {
    position: relative;

    max-width: 850px;

    text-align: center;

    margin: auto;
}

.hero-badge {
    display: inline-block;

    padding: 6px 14px;

    margin-bottom: 18px;

    border: 1px solid #d8e8f2;
    border-radius: 30px;

    background: #ffffff;

    color: #0c6b9f;

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 850px;

    margin: 0 auto 18px;

    color: #173b5d;

    font-size: clamp(34px, 5vw, 56px);

    line-height: 1.14;

    letter-spacing: -1.5px;
}

.hero p {
    max-width: 760px;

    margin: 0 auto 30px;

    color: #587087;

    font-size: 17px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 20px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #0d6ea8;

    color: #ffffff;

    box-shadow:
        0 6px 18px rgba(13, 110, 168, 0.18);
}

.btn-primary:hover {
    background: #095d91;
}

.btn-secondary {
    background: #f4b400;

    color: #172f43;

    box-shadow:
        0 6px 18px rgba(244, 180, 0, 0.18);
}

.btn-secondary:hover {
    background: #e4a700;
}

.btn-row {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

    margin-top: 20px;
}


/* =========================================================
   TELEGRAM SECTION
   ========================================================= */

.telegram-section {
    padding: 25px 0;

    background: #ffffff;
}

.telegram-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 26px;

    border: 1px solid #dceaf3;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f3faff,
            #ffffff
        );

    box-shadow:
        0 5px 20px rgba(20, 50, 80, 0.05);
}

.telegram-box h2 {
    margin-bottom: 3px;

    color: #173b5d;

    font-size: 20px;
}

.telegram-box p {
    color: #63788c;

    font-size: 14px;
}

.telegram-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 10px 18px;

    flex-shrink: 0;

    border-radius: 8px;

    background: #168dcc;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s ease;
}

.telegram-btn:hover {
    background: #087bb8;

    transform: translateY(-1px);
}


/* =========================================================
   REFER CODE SECTION
   ========================================================= */

.refer-section {
    padding: 45px 0;

    background: #f3f7fb;
}

.refer-box {
    max-width: 720px;

    margin: auto;

    padding: 34px 25px;

    text-align: center;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid #dfe9f0;

    box-shadow:
        0 8px 28px rgba(30, 55, 80, 0.07);
}

.section-label {
    display: inline-block;

    margin-bottom: 7px;

    color: #0b76af;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.refer-box h2 {
    margin-bottom: 8px;

    color: #173b5d;

    font-size: 29px;
}

.refer-box p {
    max-width: 600px;

    margin: 0 auto 20px;

    color: #64788a;

    font-size: 15px;
}

.code-wrapper {
    max-width: 460px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 8px;

    border: 1px solid #d7e3eb;

    border-radius: 9px;

    background: #f7fafc;
}

.refer-code {
    padding-left: 12px;

    color: #183b5d;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 1px;
}

.copy-btn {
    min-height: 40px;

    padding: 8px 16px;

    border: 0;
    border-radius: 7px;

    background: #173f60;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.copy-btn:hover {
    background: #0c5d8f;
}

.copy-message {
    display: block;

    margin-top: 10px;

    color: #168452;

    font-size: 13px;
    font-weight: 600;

    opacity: 0;

    visibility: hidden;

    transition: 0.2s ease;
}

.copy-message.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-head {
    padding: 55px 0;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #edf7fd,
            #ffffff
        );

    border-bottom: 1px solid #e4edf4;
}

.page-head h1 {
    margin-bottom: 8px;

    color: #173b5d;

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.2;
}

.page-head p {
    max-width: 700px;

    margin: auto;

    color: #64798c;

    font-size: 15px;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.content {
    padding: 55px 0 70px;

    background: #f3f7fb;
}

.article {
    max-width: 900px;

    margin: auto;

    padding: 35px;

    border: 1px solid #e1eaf0;
    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        0 5px 22px rgba(25, 55, 80, 0.04);
}

.article h2 {
    margin-top: 32px;
    margin-bottom: 12px;

    color: #173b5d;

    font-size: 27px;

    line-height: 1.3;
}

.article h2:first-child {
    margin-top: 0;
}

.article h3 {
    margin-top: 25px;
    margin-bottom: 9px;

    color: #1b4669;

    font-size: 20px;
}

.article p {
    margin-bottom: 15px;

    color: #526a7e;

    font-size: 15px;
}

.article strong {
    color: #254d6d;
}

.article ol,
.article ul {
    margin: 10px 0 20px;

    padding-left: 25px;
}

.article li {
    margin-bottom: 8px;

    color: #526a7e;

    font-size: 15px;
}


/* =========================================================
   INFO CARDS
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin: 22px 0 30px;
}

.info-card {
    padding: 20px;

    border: 1px solid #dfe9f0;
    border-radius: 10px;

    background: #fbfdff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(20, 50, 80, 0.08);
}

.info-card h3 {
    margin: 0 0 7px;

    color: #164a70;

    font-size: 18px;
}

.info-card p {
    margin: 0;

    font-size: 14px;
}


/* =========================================================
   CONTACT BOX
   ========================================================= */

.contact-box {
    margin: 25px 0;

    padding: 25px;

    border: 1px solid #dbe8f0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #f3faff,
            #ffffff
        );

    text-align: center;
}

.contact-box h2 {
    margin-top: 0;

    font-size: 24px;
}

.contact-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 19px;

    border-radius: 8px;

    background: #168dcc;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s ease;
}

.contact-link:hover {
    background: #087bb8;

    transform: translateY(-1px);
}


/* =========================================================
   WARNING / NOTE
   ========================================================= */

.warning {
    margin: 25px 0;

    padding: 18px 20px;

    border-left: 4px solid #e2a600;

    border-radius: 7px;

    background: #fff9e8;

    color: #67551d;

    font-size: 14px;
}

.warning strong {
    color: #735a00;
}

.note {
    margin: 25px 0;

    padding: 18px 20px;

    border-left: 4px solid #168dcc;

    border-radius: 7px;

    background: #eef8fd;

    color: #49687e;

    font-size: 14px;
}

.note strong {
    color: #165b81;
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.quick-links {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin: 20px 0 30px;
}

.quick-links a {
    display: block;

    padding: 13px 16px;

    border: 1px solid #dce7ee;
    border-radius: 8px;

    background: #f8fbfd;

    color: #155e87;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s ease;
}

.quick-links a:hover {
    background: #edf7fc;

    border-color: #bddbea;

    transform: translateY(-1px);
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
    margin-top: 25px;
}

.faq-item {
    margin-bottom: 10px;

    border: 1px solid #dce7ee;

    border-radius: 9px;

    background: #ffffff;

    overflow: hidden;
}

.faq-item summary {
    position: relative;

    padding: 16px 45px 16px 17px;

    cursor: pointer;

    color: #173f60;

    font-size: 15px;
    font-weight: 700;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 17px;

    transform: translateY(-50%);

    color: #168dcc;

    font-size: 22px;
    font-weight: 400;
}

.faq-item[open] summary {
    border-bottom: 1px solid #e2ebf0;

    background: #f7fbfd;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0;

    padding: 15px 17px 18px;

    font-size: 14px;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-top {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 500;

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #173f60;

    color: #ffffff;

    font-size: 19px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-top:hover {
    background: #0c679e;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 45px 0 20px;

    background: #173b5d;

    color: #dbe9f3;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 35px;

    padding-bottom: 30px;
}

.footer-brand h2 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 23px;
}

.footer-brand p {
    max-width: 450px;

    color: #bfd0dc;

    font-size: 14px;
}

.footer-column h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 16px;
}

.footer-column a {
    display: block;

    width: fit-content;

    margin-bottom: 7px;

    color: #c8d9e5;

    font-size: 14px;

    transition: 0.2s ease;
}

.footer-column a:hover {
    color: #f4b400;

    transform: translateX(2px);
}

.footer-social {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.footer-social a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 7px 12px;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;

    color: #ffffff;

    background: rgba(255,255,255,0.06);
}

.footer-social a:hover {
    color: #ffffff;

    background: rgba(255,255,255,0.12);

    transform: none;
}

.footer-bottom {
    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,0.12);

    text-align: center;

    color: #aebfcb;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 950px) {

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: min(100% - 24px, 1120px);
    }


    /* HEADER */

    .header-inner {
        min-height: 65px;
    }

    .logo-area img {
        width: 39px;
        height: 39px;
    }

    .logo-text {
        font-size: 19px;
    }


    /* HERO */

    .hero {
        padding: 55px 0 60px;
    }

    .hero h1 {
        font-size: 34px;

        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 15px;

        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* TELEGRAM */

    .telegram-box {
        flex-direction: column;

        align-items: stretch;

        padding: 20px;
    }

    .telegram-box h2 {
        font-size: 18px;
    }

    .telegram-btn {
        width: 100%;
    }


    /* REFER CODE */

    .refer-section {
        padding: 32px 0;
    }

    .refer-box {
        padding: 27px 17px;
    }

    .refer-box h2 {
        font-size: 25px;
    }

    .code-wrapper {
        flex-direction: column;

        align-items: stretch;

        padding: 10px;
    }

    .refer-code {
        padding: 8px;

        text-align: center;
    }

    .copy-btn {
        width: 100%;
    }


    /* PAGE HEAD */

    .page-head {
        padding: 42px 0;
    }

    .page-head h1 {
        font-size: 30px;
    }


    /* CONTENT */

    .content {
        padding: 32px 0 50px;
    }

    .article {
        padding: 22px 17px;

        border-radius: 10px;
    }

    .article h2 {
        font-size: 24px;

        margin-top: 27px;
    }

    .article h3 {
        font-size: 19px;
    }

    .article p,
    .article li {
        font-size: 14px;
    }


    /* CARDS */

    .cards {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    /* QUICK LINKS */

    .quick-links {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .site-footer {
        padding-top: 35px;
    }


    /* BACK TOP */

    .back-top {
        right: 14px;
        bottom: 14px;

        width: 40px;
        height: 40px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 29px;
    }

    .logo-text {
        font-size: 17px;
    }

    .refer-code {
        font-size: 15px;
    }

}
/* =====================================================
   CEDARPAY SCREENSHOTS
===================================================== */

.screenshots-section {
    padding: 70px 0;
    background: #f7fafc;
}

.screenshots-heading {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.screenshots-heading h2 {
    margin: 10px 0 15px;
    font-size: 32px;
    color: #173b5d;
}

.screenshots-heading p {
    margin: 0;
    color: #617286;
    line-height: 1.7;
}


/* Screenshot Grid */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* Screenshot Card */

.screenshot-card {
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(23, 59, 93, 0.08);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(23, 59, 93, 0.14);
}


/* Image */

.screenshot-image {
    width: 100%;
    background: #eef4f8;
    padding: 15px;
    text-align: center;
}

.screenshot-image img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: contain;
    border-radius: 10px;
}


/* Screenshot Text */

.screenshot-info {
    padding: 20px;
    text-align: center;
}

.screenshot-info h3 {
    margin: 0 0 8px;
    color: #173b5d;
    font-size: 20px;
}

.screenshot-info p {
    margin: 0;
    color: #68798b;
    line-height: 1.6;
    font-size: 15px;
}


/* Tablet */

@media (max-width: 900px) {

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile */

@media (max-width: 600px) {

    .screenshots-section {
        padding: 50px 0;
    }

    .screenshots-heading h2 {
        font-size: 27px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshot-image img {
        height: auto;
        max-height: 500px;
    }

}
/* =====================================================
   HERO LOGO
===================================================== */

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}

.hero-logo img {
    width: 145px;
    height: 145px;
    object-fit: contain;
    display: block;
    border-radius: 28px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(23, 59, 93, 0.14);
}


/* Mobile */

@media (max-width: 600px) {

    .hero-logo {
        margin-bottom: 22px;
    }

    .hero-logo img {
        width: 105px;
        height: 105px;
        border-radius: 22px;
        padding: 6px;
    }

}