/* Оксид */
:root {
    --page-gutter: clamp(10px, 3vw, 44px);
    --section-gutter: clamp(15px, 3vw, 38px);
    --canvas: #dadbd9;
    --panel: #fbfcfa;
    --tint: #e8e9e5;
    --text: #2b302e;
    --secondary: #525b55;
    --accent: #8e462c;
    --edge: #bfc4bc;
    --deep: #353934;
    --curve: 2px;
    --heading-face: 'Instrument Sans', system-ui, sans-serif;
    --backdrop: linear-gradient(125deg,#d2d5d2,#e6e8e4);
    --backdrop-size: cover;
    --on-accent: #fff;
}

html { scrollbar-gutter: stable; }

body.drawex-theme {
    background-color: var(--canvas);
    background-image: var(--backdrop);
    background-position: center top;
    background-size: var(--backdrop-size);
    color: var(--text);
}
.drawex-theme .site-header, .drawex-theme .site-footer { background: var(--panel); border-color: var(--edge); }
.drawex-theme :is(.brand-link, .footer-label, .footer-items a) { color: var(--text); }
.drawex-theme .footer-items, .drawex-theme .primary-nav a { color: var(--secondary); }
.drawex-theme :is(.primary-nav a, .footer-items a, .blog-entry a):hover { color: var(--accent); }
.drawex-theme .header-button { border-color: var(--edge); border-radius: var(--curve); color: var(--text); }
.drawex-theme .header-button:hover { background: var(--tint); }
.drawex-theme :is(.header-button-primary, .button-primary, .registration-submit) {
    background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.drawex-theme :is(.header-button-primary, .button-primary, .registration-submit):hover {
    background: color-mix(in srgb, var(--accent), var(--text) 20%); color: var(--on-accent);
}
.drawex-theme a:focus-visible, .drawex-theme button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.drawex-theme .site-main { background: transparent; }
.drawex-theme :is(.registration-page, .not-found, .blog-page, .legal-page, .form-card) {
    box-sizing: border-box;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--edge);
    border-radius: var(--curve);
    box-shadow: 0 4px 16px rgb(18 36 45 / 8%);
}
.drawex-theme .registration-page {
    max-width: 1160px;
    width: calc(100% - clamp(24px, 6vw, 88px));
    margin: clamp(18px, 4vw, 56px) auto;
    padding: clamp(22px, 4vw, 52px);
    --registration-ink: var(--text);
    --registration-blue: var(--accent);
}
.drawex-theme .registration-container { padding: 0; }
.drawex-theme .registration-grid { gap: clamp(20px, 4vw, 54px); }
.drawex-theme :is(.registration-intro h1, .blog-page h1, .legal-page h1, .form-card h1, .not-found h1) { font-family: var(--heading-face); }
.drawex-theme .registration-form-panel {
    background: var(--deep);
    border: 1px solid color-mix(in srgb, var(--deep), white 22%);
    border-radius: var(--curve);
    box-shadow: 5px 5px color-mix(in srgb, var(--accent), transparent 82%);
}
.drawex-theme .registration-field input { background: color-mix(in srgb, var(--deep), white 7%); color: #fff; }
.drawex-theme .registration-field input:focus { border-color: #b6e2eb; box-shadow: 0 0 0 2px #b6e2eb55; }
.drawex-theme .registration-panel-label { color: #d3e6ec; }
.drawex-theme .registration-submit { border-radius: var(--curve); }
.drawex-theme .registration-submit span { color: inherit; }
.drawex-theme :is(.blog-page, .legal-page, .not-found, .form-card) {
    width: min(100%, 940px); margin-inline: auto; padding: clamp(22px, 4vw, 54px);
}
.drawex-theme .form-card { max-width: 640px; }
.drawex-theme :is(.blog-entry, .blog-article-placeholder) { background: var(--tint); }
.drawex-theme .blog-entry { padding: 18px; border-left: 3px solid var(--accent); }
.drawex-theme .blog-article-placeholder { border-color: var(--edge); border-radius: var(--curve); }
.drawex-theme :is(.not-found-code, .form-card .eyebrow) { color: var(--accent); }
.drawex-theme :is(.legal-page p, .form-card > p, .not-found h1 + p) { color: var(--secondary); line-height: 1.65; }
.drawex-theme .legal-page h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin: 0 0 22px; }
.drawex-theme .legal-page p + p { margin-top: 16px; }
.drawex-theme .notice:not(.notice-error, .notice-success) { border-color: var(--edge); }
@media (max-width: 850px) {
    .drawex-theme .registration-grid { grid-template-columns: minmax(0, 1fr); }
}

.drawex-theme .drawex-home {
    background: transparent;
    --ink: var(--text); --blue: var(--accent); --muted: var(--secondary); --line: var(--edge);
}
.site-main:has(> .content-grid) { width: 100%; padding: 0; }
.content-grid {
    background: transparent; padding: clamp(12px, 2vw, 28px) var(--page-gutter);
    display: grid; grid-template-columns: minmax(0, 1180px); justify-content: center; gap: clamp(8px, 1vw, 14px);
}
.content-grid > section {
    background: var(--panel); border: 1px solid var(--edge); border-radius: var(--curve);
    padding-inline: var(--section-gutter);
}
.drawex-theme .drawex-container { padding-inline: 0; }
.drawex-theme .drawex-home :is(h1, h2, h3) { font-family: var(--heading-face); }
.drawex-home > :is(.drawex-hero, .revision-section, .start-section) { background: var(--tint); }
.drawex-home > .pdm-section { background: var(--deep); border-color: var(--deep); }
.drawex-theme .geometry-section { border-radius: var(--curve); box-shadow: 4px 4px var(--edge); }
.drawex-home > :is(.standards-section, .revision-section, .business-section) { border-inline-start: 5px solid var(--accent); }

.legal-page, .blog-page { border-inline-start: 5px solid var(--accent); } .brand-link { letter-spacing:.14em; }

.site-main:has(> .not-found) {
    display: grid;
    align-content: center;
}
.not-found {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}
.not-found-code {
    margin: 0;
    font: 650 clamp(68px, 9vw, 120px)/1 var(--heading-face);
    letter-spacing: -.05em;
}
.not-found h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}
.not-found h1 + p { margin: 14px 0 24px; }
@media (max-width: 650px) {
    .not-found { grid-template-columns: minmax(0, 1fr); }
}

.remember-login, .password-link {
    display: block;
    margin-top: 12px;
    color: #eef4f6;
    font-size: 14px;
}
.password-link { text-decoration: underline; }
.oxide-admin .admin-sidebar, .oxide-admin .admin-main, .oxide-admin .grid > *, .profile-grid > * { min-width: 0; }
.oxide-admin .admin-sidebar { background: var(--deep); }
.oxide-admin-login .login, .oxide-health .service {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: var(--curve);
}
.drawex-theme .button-secondary:hover { color: var(--accent); border-color: var(--accent); }
.drawex-theme .header-actions button { cursor: pointer; }

@media (max-width: 900px) {
    .oxide-admin .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .oxide-admin .page-head, .oxide-admin .search-form { flex-wrap: wrap; }
    .oxide-admin .search-form .field { min-width: 0; max-width: 100%; }
}

.news-index { padding-block: clamp(28px, 3vw, 44px); }
.news-index h1, .news-index h2 { margin: 0; font-family: var(--heading-face); text-wrap: balance; }
.news-index h1 { font-size: clamp(40px, 4.25vw, 58px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.news-entry { margin-top: clamp(24px, 4vw, 52px); }
.news-entry h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.news-entry a { color: inherit; text-decoration-color: var(--edge); text-underline-offset: .15em; }
.news-entry a:hover { color: var(--accent); }

.news-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--edge); }
.news-entry img { display: block; width: 100%; height: auto; border: 1px solid var(--edge); }
.news-entry p { max-width: 44ch; color: var(--secondary); line-height: 1.55; }
@media (max-width: 700px) {
    .news-entry { grid-template-columns: minmax(0, 1fr); }
}
