:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #667085;
    --line: #e4e7ec;
    --primary: #1570ef;
    --primary-dark: #175cd3;
    --accent: #12b76a;
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.top-menu {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 18px clamp(18px, 5vw, 72px);
}

.brand {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--text);
    font-weight: 900;
}

.login-link,
.logout-link,
.balance-chip,
.user-chip {
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--primary-dark) !important;
    padding: 8px 12px;
}

.balance-chip {
    color: var(--accent) !important;
    font-size: 14px;
    font-weight: 900;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-chip img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero,
.page-hero {
    padding: 72px 0 42px;
}

.hero-content {
    max-width: 780px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    max-width: 860px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.08;
}

h2 {
    font-size: 30px;
    line-height: 1.2;
}

h3 {
    font-size: 20px;
}

.hero-copy,
.page-hero p,
.section-header p,
.feature-card p,
.product-card p,
.info-panel p,
.form-card label {
    color: var(--muted);
}

.hero-copy {
    max-width: 700px;
    margin-top: 20px;
    font-size: 18px;
}

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

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 18px;
}

.button.primary,
button {
    background: var(--primary);
    color: #ffffff;
}

.button.primary:hover,
button:hover {
    background: var(--primary-dark);
}

.button.secondary {
    background: #eaf2ff;
    color: var(--primary-dark);
}

.section {
    padding: 34px 0 60px;
}

.section-header {
    margin-bottom: 22px;
}

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

.feature-card,
.product-card,
.info-panel,
.form-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.feature-card,
.info-panel {
    padding: 24px;
}

.feature-card p,
.product-card p,
.info-panel p {
    margin-top: 10px;
}

.two-column,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.clean-list {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--muted);
}

.product-card {
    overflow: hidden;
}

.product-media {
    display: grid;
    min-height: 150px;
    place-items: center;
    background: #101828;
    color: #ffffff;
    font-size: 54px;
    font-weight: 900;
}

.product-body {
    padding: 22px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.product-footer span {
    color: var(--accent);
    font-size: 22px;
    font-weight: 900;
}

.form-section {
    display: flex;
    justify-content: center;
}

.form-card {
    display: grid;
    width: min(100%, 560px);
    gap: 18px;
    padding: 24px;
}

.form-card.wide {
    width: min(100%, 720px);
}

.form-card label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 12px 14px;
}

textarea {
    resize: vertical;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 26px 18px;
    text-align: center;
}

.profile-section {
    display: flex;
    justify-content: center;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(100%, 520px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 24px;
}

.profile-card img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
}

@media (max-width: 760px) {
    .top-menu {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        gap: 12px 16px;
    }

    .hero,
    .page-hero {
        padding-top: 46px;
    }

    .feature-grid,
    .product-grid,
    .two-column,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
