:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #eef4f8;
    --text: #172033;
    --muted: #5d6b82;
    --line: #dce4ee;
    --primary: #0b5c75;
    --primary-dark: #083949;
    --accent: #2f8f6f;
    --warning: #b7791f;
    --shadow: 0 18px 50px rgba(23, 32, 51, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
}

.brand span:last-child {
    max-width: 210px;
    line-height: 1.15;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--surface-muted);
    color: var(--primary-dark);
}

.hero {
    background:
        linear-gradient(135deg, rgba(8, 57, 73, 0.96), rgba(11, 92, 117, 0.9)),
        url("../../pay/assets/logo.png") center right 10% / 220px no-repeat;
    color: #fff;
}

.hero-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 76px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #d4f4e8;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #45d196;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.16;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    font-size: clamp(36px, 7vw, 66px);
}

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dcebf0;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
}

.button.secondary {
    background: transparent;
    color: #fff;
}

.main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 64px;
    flex: 1;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: var(--shadow);
}

.panel h2 {
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: clamp(26px, 4vw, 38px);
}

.panel h3 {
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 20px;
}

.panel p {
    margin: 0 0 16px;
    color: var(--muted);
}

.panel ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.panel li {
    margin: 8px 0;
}

.notice {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #bfe4d3;
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    background: #eefaf5;
    color: #204e3d;
    font-weight: 700;
}

.side-panel {
    position: sticky;
    top: 96px;
    background: var(--primary-dark);
    color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.side-panel h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.side-panel p,
.side-panel a {
    color: #dcebf0;
}

.side-panel a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.side-panel a:last-child {
    border-bottom: 0;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.contact-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.contact-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-value {
    display: block;
    margin-top: 5px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.legal-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.legal-links a {
    min-height: 92px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
}

.legal-links a:hover {
    border-color: #9fc6d4;
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 860px) {
    .nav,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        background: linear-gradient(135deg, rgba(8, 57, 73, 0.97), rgba(11, 92, 117, 0.94));
    }

    .hero-inner {
        padding: 62px 0 56px;
    }

    .grid,
    .content-layout,
    .legal-links {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 520px) {
    .nav,
    .main,
    .hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1120px);
    }

    .nav-links a {
        padding: 0 10px;
        font-size: 13px;
    }

    h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }
}
