
/* =========================================
   98PAY WEBSITE
   File: css/style.css
========================================= */

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ROOT VARIABLES */
:root {
    --primary: #2459e8;
    --primary-dark: #1743bd;
    --primary-light: #edf3ff;
    --secondary: #12a878;
    --dark: #172033;
    --text: #465168;
    --muted: #718096;
    --white: #ffffff;
    --background: #f5f7fb;
    --border: #e5eaf2;
    --shadow: 0 8px 30px rgba(23, 42, 90, 0.07);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* MAIN WRAPPER */
.main-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(20, 35, 70, 0.04);
}

/* =========================================
   HEADER
========================================= */

.top-header {
    width: 100%;
    min-height: 76px;
    padding: 12px 5%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(20, 35, 70, 0.04);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

.brand-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-logo span {
    color: var(--primary);
}

/* NAVIGATION */
.navigation-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.navigation-menu a {
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.navigation-menu a:hover {
    color: var(--primary);
}

/* HAMBURGER */
.menu-toggle {
    width: 43px;
    height: 43px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    background: var(--dark);
    border-radius: 5px;
    transition: 0.25s ease;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    padding: 65px 25px 55px;
    text-align: center;
    background:
        radial-gradient(circle at top right, #e5edff 0, transparent 38%),
        linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.hero-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
    margin: 0 auto 22px;
    border-radius: 25px;
    background: var(--white);
    padding: 8px;
    box-shadow: var(--shadow);
}

.hero-section h1 {
    max-width: 850px;
    margin: 0 auto 17px;
    color: var(--dark);
    font-size: clamp(28px, 5vw, 43px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.hero-section p {
    max-width: 720px;
    margin: 0 auto 15px;
    color: var(--text);
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin: 27px auto 18px;
}

.primary-btn,
.secondary-btn,
.telegram-btn {
    min-height: 52px;
    padding: 13px 24px;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.primary-btn {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 7px 18px rgba(36, 89, 232, 0.20);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-btn {
    color: var(--primary);
    background: var(--white);
    border: 1px solid #cbd8f7;
}

.secondary-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.telegram-btn {
    color: var(--white);
    background: #229ed9;
}

.telegram-btn:hover {
    background: #1688c1;
    transform: translateY(-2px);
}

.hero-note {
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px !important;
}

/* =========================================
   TABLE OF CONTENTS
========================================= */

.toc-section {
    margin: 25px 5%;
    padding: 25px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.toc-section h2 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 21px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 18px;
}

.toc-grid a {
    display: block;
    padding: 9px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s ease;
}

.toc-grid a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

/* =========================================
   CONTENT SECTIONS
========================================= */

.content-section {
    margin: 25px 5%;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(20, 35, 70, 0.025);
}

.content-section h2 {
    margin-bottom: 17px;
    color: var(--dark);
    font-size: 25px;
    line-height: 1.4;
    font-weight: 800;
}

.content-section h3 {
    margin: 23px 0 10px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
}

.content-section p {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 14px;
}

.content-section ul,
.content-section ol {
    margin: 12px 0 18px 22px;
    padding-left: 5px;
}

.content-section li {
    margin-bottom: 9px;
    padding-left: 3px;
    color: var(--text);
    font-size: 14px;
}

.content-section strong {
    color: var(--dark);
}

.content-section a {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.content-section a:hover {
    text-decoration: underline;
}

/* =========================================
   INFO BOXES
========================================= */

.info-box,
.notice-box,
.warning-box {
    margin: 18px 0;
    padding: 17px 19px;
    border-radius: 11px;
    font-size: 13px;
}

.info-box {
    background: #eff5ff;
    border-left: 4px solid var(--primary);
}

.notice-box {
    background: #effaf5;
    border-left: 4px solid #16a36c;
}

.warning-box {
    background: #fff8eb;
    border-left: 4px solid #e6a23c;
}

/* =========================================
   FAQ SECTION
========================================= */

.faq-item {
    margin: 12px 0;
    padding: 17px 19px;
    background: #f9faff;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.faq-item h3 {
    margin: 0 0 9px;
    color: var(--dark);
    font-size: 16px;
}

.faq-item p {
    margin: 0;
    font-size: 13px;
}

/* =========================================
   RELATED LINKS
========================================= */

.related-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.related-links a {
    padding: 13px 15px;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid #dbe5ff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.related-links a:hover {
    background: #e0eaff;
}

/* =========================================
   FINAL BUTTONS
========================================= */

.final-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    margin-top: 45px;
    padding: 45px 5% 20px;
    background: #111d35;
    color: #dce4f4;
}

.footer-container {
    width: 100%;
}

.footer-brand {
    max-width: 650px;
    margin-bottom: 30px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--white);
    font-size: 23px;
    font-weight: 800;
}

.footer-logo {
    width: 43px;
    height: 43px;
    object-fit: contain;
    border-radius: 9px;
}

.footer-brand p,
.footer-disclaimer p {
    color: #b7c3d8;
    font-size: 13px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.footer-column h3,
.footer-social h3,
.footer-disclaimer h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 16px;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin: 9px 0;
    color: #c4cfe1;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #8eafff;
}

.footer-social {
    margin: 28px 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    padding: 9px 14px;
    color: var(--white);
    background: #263a5d;
    border: 1px solid #35496c;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.footer-disclaimer {
    margin-top: 30px;
    padding: 20px;
    background: #1a2a49;
    border-radius: 12px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #30415f;
    text-align: center;
}

.footer-bottom p {
    color: #c4cfe1;
    font-size: 12px;
}

.footer-note {
    margin-top: 5px;
    color: #8fa0bd !important;
}

/* =========================================
   TABLES
========================================= */

.content-section table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.content-section th,
.content-section td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border);
}

.content-section th {
    color: var(--dark);
    background: #f2f5fc;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 900px) {

    .navigation-menu {
        gap: 13px;
    }

    .navigation-menu a {
        font-size: 12px;
    }

    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section {
        padding: 25px;
    }

}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 75px;
    }

    .top-header {
        min-height: 66px;
        padding: 9px 16px;
    }

    .brand-logo {
        font-size: 21px;
    }

    .brand-logo img {
        width: 41px;
        height: 41px;
    }

    .menu-toggle {
        display: flex;
    }

    .navigation-menu {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 16px 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 20px rgba(20, 35, 70, 0.08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.22s ease,
                    transform 0.22s ease,
                    visibility 0.22s ease;
    }

    .navigation-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navigation-menu a {
        padding: 12px 10px;
        font-size: 14px;
        border-bottom: 1px solid #f0f2f7;
    }

    .navigation-menu a:last-child {
        border-bottom: none;
    }

    .hero-section {
        padding: 45px 18px 38px;
    }

    .hero-logo {
        width: 105px;
        height: 105px;
        border-radius: 21px;
    }

    .hero-section h1 {
        font-size: 29px;
        letter-spacing: -0.8px;
    }

    .hero-section p {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
    }

    .primary-btn,
    .secondary-btn,
    .telegram-btn {
        width: 100%;
        min-height: 50px;
    }

    .toc-section {
        margin: 18px 14px;
        padding: 19px;
    }

    .toc-section h2 {
        font-size: 19px;
    }

    .toc-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .content-section {
        margin: 18px 14px;
        padding: 21px 17px;
        border-radius: 13px;
    }

    .content-section h2 {
        font-size: 21px;
    }

    .content-section h3 {
        font-size: 16px;
    }

    .content-section p,
    .content-section li {
        font-size: 13px;
    }

    .related-links {
        grid-template-columns: 1fr;
    }

    .final-buttons {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .site-footer {
        padding: 35px 18px 18px;
    }

    .footer-disclaimer {
        padding: 16px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .hero-section h1 {
        font-size: 25px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 18px 14px;
    }

    .brand-logo {
        font-size: 19px;
    }

}

/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #8eafff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}
