:root {
    --bg: #0f172a;
    --panel: #111827;
    --card: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --accent: #f97316;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: #f8fafc;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-header, .site-footer {
    background: var(--bg);
    color: #fff;
}

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

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

.logo { font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: 16px; color: #dbeafe; }

.hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}
.hero h1 { max-width: 780px; margin: 0 0 20px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.hero p { max-width: 760px; color: #dbeafe; font-size: 20px; }

.section { padding: 48px 0; }
.section h2 { margin-top: 0; font-size: 30px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}
.card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}
.form { display: grid; gap: 14px; max-width: 640px; }
.input, .textarea, .select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.alert--success { background: #dcfce7; color: #166534; }
.alert--error { background: #fee2e2; color: #991b1b; }
.site-footer { margin-top: 48px; }
.site-footer__inner { padding: 28px 0; color: #cbd5e1; }

@media (max-width: 820px) {
    .site-header__inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
    .grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0; }
}

.content-page {
    max-width: 820px;
}
.content-page h1 {
    margin-top: 0;
    font-size: 42px;
    line-height: 1.15;
}
.content-page__body {
    color: var(--text);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tagline {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
}

.button--disabled {
    background: #e5e7eb;
    color: #64748b;
    cursor: default;
}

.section--soft {
    background: #eef2f7;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-bottom: 8px;
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.lab-hero {
    padding: 82px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, .22), transparent 32%),
        linear-gradient(135deg, #0f172a, #172554 55%, #111827);
    color: #fff;
}

.lab-hero__inner {
    max-width: 920px;
}

.lab-hero h1 {
    max-width: 880px;
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
}

.lab-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #dbeafe;
    font-size: 20px;
}

.lab-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.lab-card .button,
.lab-card .button--disabled {
    margin-top: auto;
    align-self: flex-start;
}

.lab-card--accent {
    border-color: rgba(249, 115, 22, .3);
}

.lab-principles {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.principle-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.principle-list li {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

@media (max-width: 820px) {
    .lab-hero { padding: 56px 0; }
    .lab-principles { grid-template-columns: 1fr; }
}

.sandbox-hero {
    padding: 82px 0;
    background:
        radial-gradient(circle at 82% 16%, rgba(14, 165, 233, .24), transparent 34%),
        linear-gradient(135deg, #111827, #1e293b 55%, #0f172a);
    color: #fff;
}

.sandbox-hero h1 {
    max-width: 860px;
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.04;
}

.sandbox-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #dbeafe;
    font-size: 20px;
}

.sandbox-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sandbox-toolbar h2 {
    margin-bottom: 8px;
}

.process-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.process-column {
    min-height: 300px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.process-column h3 {
    margin: 0 0 8px;
}

.process-task {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.process-task h4,
.process-task p {
    margin: 0;
}

.process-task__actions {
    display: flex;
    gap: 8px;
}

.process-task__button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.process-task__button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.process-task__button:disabled {
    color: #94a3b8;
    cursor: default;
}

@media (max-width: 820px) {
    .sandbox-hero { padding: 56px 0; }
    .sandbox-toolbar { flex-direction: column; }
    .process-board { grid-template-columns: repeat(5, 260px); }
}

.process-board__fallback {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
}

.process-column__empty {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
}
.consent-check input { margin-top: 4px; }
.consent-check a { color: var(--accent); }

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    width: min(760px, calc(100% - 40px));
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(15, 23, 42, .96);
    color: #e5eefc;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .36);
}
.cookie-banner__text { font-size: 14px; }
.cookie-banner__text a { color: #38bdf8; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner__button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.cookie-banner__button--ghost { border: 1px solid rgba(148, 163, 184, .36); background: transparent; }

@media (max-width: 720px) {
    .site-footer__links { justify-content: flex-start; }
    .cookie-banner { grid-template-columns: 1fr; }
}
