:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f9fbfd;
    --surface-muted: #eef3f8;
    --text: #1f2937;
    --muted: #667085;
    --line: #d7dee8;
    --line-strong: #c2ccd8;
    --brand: #0ea5a0;
    --brand-strong: #087a76;
    --brand-soft: #e7f7f6;
    --accent: #f4b740;
    --accent-soft: #fff5db;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, .08);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, #eef7fb 0, rgba(238, 247, 251, 0) 280px),
        var(--bg);
    color: var(--text);
    font-family: "Quicksand", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

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

.topbar {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    gap: 24px;
    align-items: center;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-width: 0;
}

.brand img,
.footer-logo img {
    display: block;
    width: auto;
    height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    outline: none;
}

.search-form input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 160, .18);
}

.button,
.search-form button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 0 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(14, 165, 160, .22);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.button:hover,
.search-form button:hover {
    border-color: var(--brand-strong);
    background: var(--brand-strong);
    box-shadow: 0 10px 22px rgba(8, 122, 118, .24);
    transform: translateY(-1px);
}

.page {
    flex: 1 0 auto;
    padding: 38px 0 56px;
}

.section {
    margin-top: 34px;
}

.page-title {
    max-width: 820px;
}

.page-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
}

.page-title p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 500;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.search-heading {
    max-width: 900px;
}

.catalog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 24px;
}

.catalog-search input {
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 0 16px;
    outline: none;
}

.catalog-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 160, .16);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

a.card:hover,
.worksheet-card:hover {
    border-color: rgba(14, 165, 160, .42);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.count {
    display: inline-flex;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: .9rem;
    font-weight: 700;
    padding: 5px 10px;
}

.worksheet-card {
    padding: 0;
    overflow: hidden;
}

.worksheet-card .body {
    padding: 16px;
}

.preview {
    display: grid;
    min-height: 210px;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(244, 183, 64, .28), transparent 34%),
        linear-gradient(135deg, rgba(14, 165, 160, .12), rgba(59, 130, 246, .10)),
        #f8fbfd;
    border-bottom: 1px solid var(--line);
}

.preview--historia,
.preview--fechas-civicas {
    background:
        radial-gradient(circle at top left, rgba(244, 183, 64, .32), transparent 34%),
        linear-gradient(135deg, rgba(244, 183, 64, .14), rgba(249, 115, 22, .10)),
        #fffaf0;
}

.preview--geografia,
.preview--mapas {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .24), transparent 34%),
        linear-gradient(135deg, rgba(14, 165, 160, .10), rgba(59, 130, 246, .14)),
        #f5fbff;
}

.preview--matematica,
.preview--comunicacion {
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, .20), transparent 34%),
        linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(139, 92, 246, .12)),
        #f8f7ff;
}

.preview--valores,
.preview--personal-social {
    background:
        radial-gradient(circle at top left, rgba(244, 183, 64, .26), transparent 34%),
        linear-gradient(135deg, rgba(14, 165, 160, .10), rgba(244, 183, 64, .16)),
        #fffdf5;
}

.preview-sheet {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(230px, 82%);
    aspect-ratio: 3 / 4;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(14, 165, 160, .45), rgba(244, 183, 64, .45)) border-box;
    color: var(--brand-strong);
    box-shadow: 0 16px 28px rgba(31, 41, 55, .12);
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.preview-image {
    display: block;
    width: min(260px, 86%);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 16px 28px rgba(31, 41, 55, .12);
}

.preview-sheet::after {
    position: absolute;
    right: -20px;
    bottom: -18px;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(14, 165, 160, .10);
    content: "";
}

.preview-sheet-header {
    width: 56%;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
}

.preview-sheet-title {
    min-height: 52px;
    color: var(--brand-strong);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.preview-sheet-art {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: auto;
}

.preview-sheet-art span {
    display: block;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid rgba(14, 165, 160, .24);
}

.preview-sheet-art span:nth-child(2) {
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border-color: rgba(244, 183, 64, .36);
}

.preview-sheet-art span:nth-child(3) {
    border-radius: 50% 50% 8px 8px;
    background: #edf4ff;
    border-color: rgba(59, 130, 246, .24);
}

.preview-sheet-lines {
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.preview-sheet-lines span {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: #e7edf4;
}

.preview-sheet-lines span:nth-child(2) {
    width: 82%;
}

.preview-sheet-lines span:nth-child(3) {
    width: 64%;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    padding: 4px 10px;
}

.pill:first-child {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.worksheet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.worksheet-main,
.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.worksheet-main {
    overflow: hidden;
}

.worksheet-content {
    padding: 24px;
}

.worksheet-content h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.12;
}

.worksheet-content p {
    color: var(--muted);
    font-weight: 500;
}

.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.ad-slot {
    display: grid;
    min-height: 124px;
    place-items: center;
    gap: 4px;
    margin-top: 22px;
    border: 1px dashed #9fb1c2;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 245, 219, .86), rgba(231, 247, 246, .86));
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    padding: 16px;
}

.ad-slot-label {
    color: #77530f;
    font-size: .82rem;
    text-transform: uppercase;
}

.ad-slot-copy {
    color: var(--muted);
}

.ad-slot--home,
.ad-slot--listing,
.ad-slot--home-top,
.ad-slot--listing-top {
    min-height: 112px;
}

.sidebar-box {
    padding: 18px;
}

.sidebar-box h2 {
    margin: 0 0 14px;
    font-size: 1.12rem;
    font-weight: 700;
}

.related-list {
    display: grid;
    gap: 10px;
}

.related-list .card {
    border-radius: var(--radius-md);
    padding: 14px;
}

.empty {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    padding: 20px;
}

.pagination {
    margin-top: 22px;
}

.pagination nav {
    width: 100%;
}

.pagination-nav {
    display: grid;
    gap: 14px;
    justify-items: center;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.pagination-summary {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
}

.pagination-controls,
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-button,
.pagination-page,
.pagination-ellipsis {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.pagination-button {
    gap: 7px;
    padding: 0 14px;
}

.pagination-button:hover,
.pagination-page:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.pagination-page.is-current {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.pagination-button.is-disabled {
    background: var(--surface-muted);
    color: #98a2b3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    border-color: transparent;
    background: transparent;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    color: var(--muted);
    font-weight: 600;
    padding: 34px 0 22px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(160px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-brand p {
    max-width: 440px;
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 500;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 262px;
}

.footer-logo img {
    width: 262px;
    height: auto;
}

.footer-column {
    display: grid;
    gap: 9px;
}

.footer-column h2 {
    margin: 0 0 2px;
    color: var(--text);
    font-size: .95rem;
}

.footer-column a {
    color: var(--brand-strong);
    font-weight: 700;
}

.footer-column a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    color: #7a8794;
    font-size: .92rem;
}

.content-page {
    max-width: 820px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.content-page-wide {
    max-width: none;
}

.content-page h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.content-page h2 {
    margin: 24px 0 8px;
    font-size: 1.25rem;
}

.content-page p {
    color: var(--muted);
    font-weight: 500;
}

.info-box {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 700;
    padding: 14px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: center;
}

.about-hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: .88rem;
    font-weight: 700;
    padding: 6px 11px;
}

.about-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.25rem, 4vw, 3.8rem);
    line-height: 1.06;
}

.about-hero p,
.about-section p,
.value-card p {
    color: var(--muted);
    font-weight: 500;
}

.about-hero img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-section {
    margin-top: 34px;
}

.about-section h2,
.about-split h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.12;
}

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

.value-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.value-card h2 {
    margin: 0 0 8px;
    color: var(--brand-strong);
    font-size: 1.25rem;
}

.about-split {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1fr);
    gap: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(231, 247, 246, .75), rgba(255, 245, 219, .55)),
        var(--surface);
    padding: 28px;
}

.policy-hero {
    max-width: 900px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(231, 247, 246, .82), rgba(255, 245, 219, .56)),
        var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.policy-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.policy-hero p {
    max-width: 760px;
    color: var(--muted);
    font-weight: 500;
}

.policy-note {
    margin-top: 18px;
    border: 1px solid rgba(244, 183, 64, .38);
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: #77530f;
    font-weight: 700;
    padding: 14px 16px;
}

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

.policy-card,
.policy-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.policy-card h2,
.policy-section h2 {
    margin: 0 0 10px;
    color: var(--brand-strong);
    font-size: 1.22rem;
}

.policy-card p,
.policy-section p {
    color: var(--muted);
    font-weight: 500;
}

.policy-section {
    margin-top: 28px;
}

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

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

.contact-card,
.contact-form-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

a.contact-card:hover,
a.contact-card:focus-visible {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    outline: none;
    transform: translateY(-2px);
}

.contact-card h2,
.contact-form-panel h2 {
    margin: 0 0 10px;
    color: var(--brand-strong);
    font-size: 1.22rem;
}

.contact-card p,
.contact-form-panel p {
    color: var(--muted);
    font-weight: 500;
}

.contact-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: #77530f;
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--muted);
    padding: 12px 13px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 160, .16);
    outline: none;
}

.contact-form .check-label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
}

.contact-form .check-label input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.contact-form .button:disabled {
    border-color: var(--line-strong);
    background: var(--surface-muted);
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: grid;
    gap: 10px;
}

.floating-action {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(14, 165, 160, .28);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .94);
    color: var(--brand-strong);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.floating-action-wide {
    width: auto;
    min-width: 88px;
    padding: 0 14px;
    font-size: .95rem;
}

.floating-action:hover,
.floating-action:focus-visible {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
}

.detail-actions {
    display: flex;
    margin-bottom: 18px;
}

.context-back {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(14, 165, 160, .22);
    font-weight: 700;
    padding: 0 16px;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.context-back:hover,
.context-back:focus-visible {
    border-color: var(--brand-strong);
    background: var(--brand-strong);
    outline: none;
    transform: translateY(-1px);
}

.request-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:30px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--brand-soft); padding:24px; }
.request-cta h2 { margin:0 0 5px; font-size:1.3rem; }
.request-cta p { margin:0; color:var(--muted); font-weight:500; }
.worksheet-navigation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:22px; }
.sequence-link { display:grid; gap:3px; min-height:72px; border:1px solid var(--line); border-radius:var(--radius-md); padding:12px 14px; }
.sequence-link:hover { border-color:var(--brand); background:var(--brand-soft); }
.sequence-link span { color:var(--brand-strong); font-size:.82rem; font-weight:700; text-transform:uppercase; }
.sequence-link strong { line-height:1.25; }
.sequence-link--next { text-align:right; }
.topic-link { display:block; margin-top:14px; color:var(--brand-strong); font-weight:700; text-align:center; }
.request-page { max-width:880px; margin:0 auto; }
.request-form { display:grid; gap:16px; margin-top:26px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-sm); padding:24px; }
.request-form label { display:grid; gap:7px; font-weight:700; }
.request-form input,.request-form textarea { width:100%; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); padding:12px 13px; outline:none; }
.request-form input:focus,.request-form textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(14,165,160,.16); }
.form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.check-label { grid-template-columns:22px 1fr !important; align-items:start; }
.check-label input { width:18px; height:18px; margin-top:3px; }
.field-error { color:#b42318; font-size:.88rem; }
.field-help { color:var(--muted); font-size:.86rem; font-weight:500; }
.form-success { margin-top:20px; border:1px solid rgba(14,165,160,.35); border-radius:var(--radius-md); background:var(--brand-soft); color:var(--brand-strong); padding:15px; font-weight:700; }
.honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

@media (max-width: 840px) {
    .topbar,
    .worksheet-layout,
    .about-hero,
    .about-split,
    .policy-grid,
    .contact-layout,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .grid,
    .category-grid,
    .about-values,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

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

    .brand {
        justify-self: center;
    }

    .brand img {
        width: 210px;
        height: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-brand,
    .footer-column {
        justify-items: center;
    }

    .footer-brand p {
        margin-right: auto;
        margin-left: auto;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .page {
        padding-top: 28px;
    }

    .worksheet-content {
        padding: 18px;
    }

    .floating-actions {
        right: 14px;
        bottom: 14px;
    }

    .floating-action {
        height: 42px;
    }

    .floating-action-wide {
        min-width: 80px;
        padding: 0 12px;
    }

    .request-cta { align-items:stretch; flex-direction:column; }
    .worksheet-navigation { grid-template-columns:1fr; }

    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }

    .pagination-button span:not([aria-hidden="true"]) {
        display: none;
    }

    .pagination-button {
        min-width: 42px;
        padding: 0 10px;
    }
}
