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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-link {
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-link:hover { opacity: 0.5; }

.connect-btn {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.connect-btn:hover { opacity: 0.5; }

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
}

.header-nav a:hover { color: #111; }

.header-nav a.active {
    color: #111;
    font-weight: 600;
}

.home-nav-link {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
    padding: 0;
    align-items: center;
}

.hamburger:hover { opacity: 0.5; }

@media (max-width: 640px) {
    header {
        padding: 16px 20px;
    }

    .home-link {
        display: none;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 12px;
        z-index: 50;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav a {
        padding: 11px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 14px;
    }

    .header-nav a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .home-nav-link {
        display: block;
    }
}

main { flex: 1; }

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px;
    width: 100%;
}

.section { margin-bottom: 60px; }

.section-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 24px;
}

footer {
    text-align: left;
    padding: 20px 32px;
    font-size: 13px;
    color: #bbb;
    border-top: 1px solid #e5e5e5;
}

/* Modal */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.overlay.open { display: flex; }

.modal {
    background: #fff;
    border-radius: 18px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    margin: 20px;
}

.modal h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    outline: none;
    transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus { border-color: #111; }

.field textarea { height: 130px; resize: vertical; }

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.btn-cancel {
    background: none;
    border: none;
    font-size: 13px;
    color: #bbb;
    cursor: pointer;
    font-family: inherit;
}

.btn-cancel:hover { color: #111; }

.btn-send {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 12px 22px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-send:hover { background: #333; }

#form-status {
    margin-top: 6px;
    font-size: 13px;
    color: #888;
    min-height: 14px;
}
