:root {
    color-scheme: light;
    --ink: #15171d;
    --muted: #667085;
    --line: #e7e8ee;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --gold: #d49a38;
    --rose: #d95568;
    --shadow: 0 20px 50px rgba(21, 23, 29, .09);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
    color: #343842;
}

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

.nav-pill, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 750;
    cursor: pointer;
}

.btn:hover, .nav-pill:hover { background: var(--accent-dark); }

.btn.secondary {
    color: var(--ink) !important;
    background: #fff;
    border: 1px solid var(--line);
}

.btn.secondary:hover { border-color: var(--accent); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(120deg, rgba(15, 118, 110, .1), transparent 36%),
        radial-gradient(circle at 92% 8%, rgba(212, 154, 56, .14), transparent 32%),
        #fff;
}

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}

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

h1 {
    max-width: 780px;
    margin-top: 14px;
    font-size: clamp(2.35rem, 6vw, 5.2rem);
}

.hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.7;
}

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

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.metric {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 8px;
    background: var(--soft);
}

.metric strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.metric span:first-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e2f3f1;
    color: var(--accent);
    font-weight: 900;
}

.section {
    padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section h2 { font-size: clamp(1.8rem, 3vw, 3rem); }

.section p, .card p, .form-note {
    color: var(--muted);
    line-height: 1.65;
}

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

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(21, 23, 29, .04);
}

.card h3 { font-size: 1.2rem; }

.price {
    display: inline-flex;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 800;
}

.auth-wrap, .panel-wrap {
    width: min(1120px, calc(100% - 36px));
    margin: 42px auto 72px;
}

.auth-card {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card h1, .panel-title h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 7px;
    color: #303440;
    font-weight: 650;
}

input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d7d9e2;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
}

textarea { min-height: 130px; resize: vertical; }

input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(15, 118, 110, .15);
    border-color: var(--accent);
}

.alert {
    margin: 16px 0;
    padding: 13px 15px;
    border-radius: 8px;
    background: #fff3f4;
    color: #9f1d33;
    border: 1px solid #ffd1d8;
}

.success {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #475467;
    background: #fafbfc;
    font-size: .9rem;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6ff;
    color: #175cd3;
    font-size: .82rem;
    font-weight: 800;
}

.badge.done { background: #ecfdf5; color: #047857; }
.badge.waiting { background: #fff7ed; color: #c2410c; }
.badge.cancelled { background: #fff1f2; color: #be123c; }

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

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer p { margin: 6px 0 0; color: var(--muted); }

.footer-links {
    display: grid;
    gap: 8px;
    text-align: right;
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }

    .nav {
        position: absolute;
        inset: 74px 18px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav.open { display: flex; }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .grid { grid-template-columns: 1fr; }

    .section-head, .panel-title, .site-footer {
        align-items: start;
        flex-direction: column;
    }

    .footer-links { text-align: left; }
}
