* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f6f0e8;
    color: #2b2520;
}

.page {
    min-height: 100vh;
    padding: 24px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card,
.wide-card {
    width: 100%;
    max-width: 520px;
    background: #fffaf4;
    border: 1px solid #e7d8c7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(55, 43, 31, 0.08);
}

.wide-card {
    max-width: 1100px;
}

.brand {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h1 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0 0 14px;
}

h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.muted {
    color: #6f6258;
    font-size: 16px;
    line-height: 1.45;
}

.small {
    color: #7d7066;
    font-size: 13px;
}

.button-list,
.options {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-radius: 16px;
    background: #3a2d25;
    color: #fffaf4;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    cursor: pointer;
}

.btn.secondary {
    background: #efe3d5;
    color: #2b2520;
}

.submit {
    margin-top: 20px;
}

.question {
    padding: 20px 0;
    border-top: 1px solid #eadccb;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border: 1px solid #e2d2c0;
    border-radius: 14px;
    background: #fffdf9;
    cursor: pointer;
}

.option input {
    width: 18px;
    height: 18px;
}

label {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dccbb8;
    border-radius: 14px;
    background: #fffdf9;
    color: #2b2520;
    font: inherit;
}

.back {
    display: inline-block;
    margin-bottom: 18px;
    color: #6f6258;
    text-decoration: none;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.small-btn {
    max-width: 160px;
    padding: 12px 14px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.filter-btn {
    padding: 13px 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdf9;
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #eadccb;
    text-align: left;
    font-size: 14px;
}

th {
    background: #efe3d5;
}

td a {
    color: #2b2520;
    font-weight: bold;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #efe3d5;
    font-size: 12px;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lead-box {
    background: #fffdf9;
    border: 1px solid #eadccb;
    border-radius: 18px;
    padding: 16px;
}

.lead-box.full {
    grid-column: 1 / -1;
}

.admin-form {
    margin-top: 20px;
}

@media (max-width: 720px) {
    .filters,
    .lead-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 26px;
    }

    .card,
    .wide-card {
        padding: 20px;
    }
}

.status-new {
    background: #fee2e2;
    color: #991b1b;
}

.status-contacted {
    background: #fef3c7;
    color: #92400e;
}

.status-booked {
    background: #dbeafe;
    color: #1e40af;
}

.status-done {
    background: #dcfce7;
    color: #166534;
}

.status-lost {
    background: #e5e7eb;
    color: #374151;
}
