/* Shared layout, header, nav, buttons */

:root {
    --bg: #0b1420;
    --bg-2: #101b28;
    --surface: #152536;
    --surface-2: #1c3348;
    --line: rgba(244, 196, 90, 0.16);
    --gold: #f4c45a;
    --gold-2: #e8b84a;
    --teal: #2dd4bf;
    --success: #2ec27e;
    --text: #f3f6fb;
    --muted: #b7c3d4;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    --bs-primary: #152536;
    --bs-success: #2ec27e;
    --bs-warning: #f4c45a;
    --bs-dark: #0b1420;
    --bs-white: #fff;
}

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(45, 212, 191, 0.12), transparent 50%),
        radial-gradient(900px 420px at 100% 0%, rgba(244, 196, 90, 0.08), transparent 46%),
        var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 auto; width: 33.333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
}

.g-3 { --g: 0.75rem; }
.g-4 { --g: 1rem; }
.row.g-3, .row.g-4 { margin: 0; }
.row.g-3 > *, .row.g-4 > * { padding: 0.5rem; }

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #132033;
    box-shadow: 0 8px 20px rgba(244, 196, 90, 0.28);
}

.btn-primary:hover {
    color: #132033;
    box-shadow: 0 12px 26px rgba(244, 196, 90, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #26a96d);
    color: #062016;
    box-shadow: 0 8px 20px rgba(46, 194, 126, 0.28);
}

.btn-success:hover {
    color: #062016;
    box-shadow: 0 12px 26px rgba(46, 194, 126, 0.4);
}

.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; min-height: 38px; }

.rounded-2 { border-radius: 10px; }
.rounded-5 { border-radius: 1.5rem; }
.text-center { text-align: center; }
.text-white { color: var(--text); }
.text-decoration-none { text-decoration: none; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-3 { margin-left: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.py-2 { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.bg-primary { background: var(--surface); }
.img-fluid { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-weight: 750;
    line-height: 1.2;
    color: inherit;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-top: 0; margin-bottom: 1rem; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }

img { vertical-align: middle; max-width: 100%; }

header {
    position: sticky;
    top: 0;
    z-index: 1200;
    padding: 0.7rem 0;
    background: rgba(11, 20, 32, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

header .d-flex {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

header img {
    width: 86px;
    height: auto;
}

header .btn {
    min-height: 40px;
    padding: 0.55rem 1rem;
}

.hero-section {
    padding: 2rem 1rem;
    margin: 1rem 0;
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(244, 196, 90, 0.04));
    border: 1px solid var(--line);
    border-radius: 24px;
}

.hero-section h1 {
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero-section .btn {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #132033;
}

.hero-section .btn:hover { color: #132033; }

.section-title {
    color: var(--text);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--muted);
}

footer {
    padding: 2rem 0 1.25rem;
    background: rgba(16, 27, 40, 0.88);
    border-top: 1px solid var(--line);
    margin-top: 2.5rem;
}

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

footer a:hover { color: var(--gold); }

.nav-menu {
    background: rgba(21, 37, 54, 0.92);
    margin: 0.65rem 0 0.85rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
    border: 1px solid var(--line);
}

.nav-menu .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.35rem 0.6rem;
}

.nav-menu .nav-item {
    position: relative;
    display: inline-block;
}

.nav-menu .nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.7rem 1rem;
    display: block;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.78rem;
}

.nav-menu .nav-link:hover {
    background: rgba(45, 212, 191, 0.12);
    color: var(--gold);
}

.nav-menu .dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #152536;
    min-width: 210px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s ease;
    z-index: 1001;
    border: 1px solid var(--line);
    padding: 0.4rem;
}

.nav-menu .nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .dropdown-item {
    color: var(--muted);
    text-decoration: none;
    padding: 0.7rem 0.9rem;
    display: block;
    font-size: 0.9rem;
    border-radius: 10px;
}

.nav-menu .dropdown-item:hover {
    background: rgba(45, 212, 191, 0.12);
    color: var(--gold);
}

@media (min-width: 769px) {
    .nav-menu .nav-link.has-dropdown::after {
        content: "▼";
        margin-left: 0.4rem;
        font-size: 0.65rem;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    background: rgba(244, 196, 90, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(244, 196, 90, 0.28);
    width: 42px;
    height: 42px;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: var(--gold);
    margin: 2px 0;
    border-radius: 2px;
    transition: 0.25s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-4px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-4px, -5px); }

.mobile-nav-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.75rem;
}

.mobile-nav-toggle span {
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
}

.mobile-nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .mobile-nav-toggle { display: none !important; }
    .mobile-nav-content { display: flex !important; }
}

@media (max-width: 768px) {
    header img { width: 68px; }

    header .btn {
        min-height: 38px;
        padding: 0.45rem 0.8rem;
        font-size: 0.82rem;
    }

    .nav-menu { border-radius: 14px; }

    .mobile-nav-toggle {
        display: flex;
        background: rgba(45, 212, 191, 0.08);
        border-radius: 12px;
    }

    .hamburger { display: flex; }

    .mobile-nav-content {
        display: none;
        width: 100%;
        background: #122033;
        border-top: 1px solid var(--line);
        padding: 0.35rem 0 0.6rem;
    }

    .mobile-nav-content.show { display: block; }

    .mobile-nav-content .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-nav-content .nav-link {
        display: block;
        padding: 0.95rem 1.1rem;
        color: var(--text);
        font-size: 1rem;
        text-transform: none;
        border-radius: 0;
    }

    .mobile-nav-content .nav-link.has-dropdown {
        position: relative;
        padding-right: 2.6rem;
    }

    .mobile-nav-content .nav-link.has-dropdown::after {
        content: "▼";
        position: absolute;
        right: 1.1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gold);
        font-size: 0.7rem;
    }

    .mobile-nav-content .nav-item.active .nav-link.has-dropdown::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .mobile-nav-content .dropdown {
        display: none;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: rgba(0, 0, 0, 0.18);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.2rem 0 0.45rem;
    }

    .mobile-nav-content .nav-item.active .dropdown { display: block; }

    .mobile-nav-content .dropdown-item {
        padding: 0.85rem 1.1rem 0.85rem 1.8rem;
        color: var(--muted);
        font-size: 0.95rem;
    }

    .hero-section {
        text-align: center;
        padding: 1.4rem 0.9rem;
        border-radius: 18px;
    }

    .hero-section .img-fluid { margin-top: 1rem; }

    .col-6 { width: 100%; }

    footer .me-3 {
        display: inline-block;
        margin: 0.35rem 0.7rem 0.35rem 0;
    }
}

@media (min-width: 992px) {
    .hero-section .btn { margin-right: 0.8rem; }
}

section.container,
.container.py-5 {
    background: rgba(21, 37, 54, 0.42);
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.container [style*="overflow-x"] {
    border-radius: 14px;
}

table {
    min-width: 620px;
}
