:root {
    color-scheme: light;
    --bg: #f4f7f5;
    --surface: #ffffff;
    --surface-soft: #edf4ef;
    --text: #14201a;
    --muted: #64756b;
    --line: #d8e2dc;
    --brand: #147a4b;
    --brand-dark: #0f5d3a;
    --accent: #3454d1;
    --warn: #a06200;
    --shadow: 0 10px 28px rgba(18, 38, 30, 0.07);
}

* {
    box-sizing: border-box;
}

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

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    text-decoration: underline;
}

.hero {
    padding: 18px 0 28px;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.35rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.tool-panel,
.result-panel,
.examples,
.seo-content {
    margin-top: 22px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tool-panel h2,
.result-panel h2,
.examples h2,
.seo-content h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
    letter-spacing: 0;
}

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

.field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field.full {
    margin-bottom: 16px;
}

label {
    font-weight: 850;
}

input,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

input {
    min-height: 46px;
    padding: 0 13px;
}

textarea {
    padding: 13px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(20, 122, 75, 0.15);
}

.field p,
.result-panel p,
.seo-content p {
    margin: 0;
    color: var(--muted);
}

button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 18px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

button:hover,
button:focus {
    background: var(--brand-dark);
}

.alert-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.alert {
    padding: 14px 16px;
    color: #5f3700;
    background: #fff8e8;
    border: 1px solid #f0d7a3;
    border-radius: 8px;
    font-weight: 750;
}

.result-panel {
    display: grid;
    gap: 18px;
    border-color: rgba(20, 122, 75, 0.35);
}

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

.result-grid article {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.result-grid h3,
.seo-content h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
}

.seo-content h4 {
    margin: 14px 0 6px;
    color: var(--ink);
    font-size: 0.96rem;
}

dl {
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.examples div {
    display: grid;
    gap: 10px;
}

code {
    display: block;
    padding: 12px 14px;
    overflow-wrap: anywhere;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #21342a;
    font-size: 0.92rem;
}

.seo-content {
    background: transparent;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    padding-right: 0;
    padding-left: 0;
}

.seo-content-main {
    max-width: 840px;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 22px;
}

.seo-content article {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.seo-content a {
    color: var(--brand);
    font-weight: 850;
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 22px, 1120px);
        padding-top: 28px;
    }

    .field-grid,
    .result-grid,
    .seo-content-grid {
        grid-template-columns: 1fr;
    }

    .tool-panel,
    .result-panel,
    .examples {
        padding: 18px;
    }

    dl {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
