:root {
    --ink: #172026;
    --muted: #5f6b74;
    --line: #d7dde2;
    --paper: #f7f8f5;
    --panel: #ffffff;
    --accent: #0f7f73;
    --accent-2: #c9472c;
    --focus: #f4b942;
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    margin-top: 48px;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
}

nav a {
    text-decoration: none;
}

main {
    padding: clamp(22px, 5vw, 64px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.hero-media,
.product-visual {
    min-height: 320px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(15,127,115,.18), transparent 42%),
        linear-gradient(45deg, #ffffff, #eef3f1);
    display: grid;
    place-items: center;
    color: var(--muted);
}

h1 {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    margin: 0 0 18px;
}

h2 {
    font-size: 28px;
    margin-top: 0;
}

.lede {
    font-size: 19px;
    color: var(--muted);
    max-width: 720px;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.button.secondary {
    background: transparent;
    color: var(--accent);
}

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

.card,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: start;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

label {
    font-weight: 700;
}

select,
input,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 11px;
    font: inherit;
    background: white;
}

.price-total {
    font-size: 34px;
    font-weight: 850;
}

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

.app-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
}

.sidebar a {
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-decoration: none;
}

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

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

@media (max-width: 780px) {
    .site-header,
    .hero,
    .product-layout,
    .app-shell {
        display: grid;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 40px;
    }
}

