*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background: #f3f4f6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

.site-wrapper {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #111827;
    border-bottom: 1px solid #1f2937;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    color: #d1d5db;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: #1f2937;
    color: #ffffff;
}

.nav-link.active {
    background: #2563eb;
    color: #ffffff;
}

.site-main {
    padding: 40px 0 60px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card + .card {
    margin-top: 24px;
}

.card-header {
    margin-bottom: 24px;
}

.card-header h1,
.card-header h2 {
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.2;
}

.card-header p {
    margin: 0;
    color: #6b7280;
}

.lead-form {
    width: 100%;
}

.form-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.form-row + .form-row {
    margin-top: 20px;
}

.form-group {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
}

.form-group label span {
    color: #dc2626;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-reset {
    background: #6b7280;
}

.btn-reset:hover {
    background: #4b5563;
}

.response-box {
    padding: 18px;
    border-radius: 12px;
    background: #111827;
    overflow-x: auto;
}

.response-box pre {
    margin: 0;
    color: #d1fae5;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.status-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.status-table th,
.status-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

.status-table th {
    background: #f9fafb;
    color: #111827;
    font-weight: 700;
}

.status-table td {
    color: #374151;
}

.status-table tbody tr:hover {
    background: #f9fafb;
}

.pagination {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    transition: 0.2s ease;
}

.pagination-link:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination-link.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 12px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        padding: 20px;
    }

    .site-main {
        padding: 24px 0 40px;
    }

    .btn {
        width: 100%;
        min-width: 100%;
    }
}