:root {
    --ink: #12211f;
    --muted: #64748b;
    --line: #dbe5e1;
    --paper: #ffffff;
    --wash: #f5f7f4;
    --brand: #0f766e;
    --brand-2: #14b8a6;
    --amber: #b45309;
    --rose: #be123c;
    --blue: #2563eb;
    --slate: #334155;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

.shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(245, 247, 244, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-weight: 700;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 32px;
    align-items: center;
    padding: 56px 0 32px;
}

.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    color: #42526a;
    font-size: 19px;
}

.hero-visual {
    min-height: 520px;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.94), rgba(16, 42, 42, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Crect width='900' height='700' fill='%23102a2a'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2'%3E%3Cpath d='M80 120h740M80 240h740M80 360h740M80 480h740M180 60v580M360 60v580M540 60v580M720 60v580'/%3E%3C/g%3E%3Cg fill='%23fbbf24' fill-opacity='.72'%3E%3Ccircle cx='210' cy='170' r='8'/%3E%3Ccircle cx='392' cy='290' r='8'/%3E%3Ccircle cx='574' cy='410' r='8'/%3E%3C/g%3E%3Cg fill='%2314b8a6'%3E%3Crect x='112' y='92' rx='8' width='204' height='64'/%3E%3Crect x='472' y='212' rx='8' width='238' height='64'/%3E%3Crect x='282' y='452' rx='8' width='260' height='64'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(18, 33, 31, 0.22);
}

.visual-inner {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.floating-panel,
.card,
.metric,
.form-card,
.table-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(18, 33, 31, 0.06);
}

.floating-panel {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
}

.panel-pad,
.card,
.form-card,
.table-card {
    padding: 20px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section {
    padding: 36px 0;
}

.section h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0;
}

.section-lead {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    color: white;
    background: var(--brand);
}

.button-secondary {
    color: var(--ink);
    background: white;
    border-color: var(--line);
}

.button-danger {
    color: white;
    background: var(--rose);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: var(--brand);
    background: rgba(15, 118, 110, 0.1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.pill-amber {
    color: var(--amber);
    background: rgba(180, 83, 9, 0.1);
}

.pill-blue {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
}

.pill-rose {
    color: var(--rose);
    background: rgba(190, 18, 60, 0.1);
}

.muted {
    color: var(--muted);
}

.price {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
}

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

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.field textarea {
    min-height: 112px;
    resize: vertical;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid;
}

.alert-success {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}

.alert-error {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: #fecaca;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px;
    color: white;
    background: #102a2a;
}

.sidebar a,
.sidebar button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #d7ede8;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.sidebar a:hover,
.sidebar button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-main {
    padding: 22px clamp(18px, 4vw, 40px) 40px;
}

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

.admin-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: 0;
}

.metric {
    padding: 18px;
}

.metric-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.spark {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 54px;
    margin-top: 14px;
}

.spark span {
    flex: 1;
    min-width: 8px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    border-radius: 6px 6px 2px 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

@media (max-width: 920px) {
    .hero,
    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .split,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .nav {
        display: none;
    }
}

