:root{color-scheme:light;--surface:#e9eee1;--field:#f8faf4;--field-line:#c6cfbd;--accent:#688346;--button-bg:#163f32;--button-text:#fff}
.theme-switch{position:relative;display:inline-flex;flex-shrink:0;align-items:center;justify-content:space-around;width:76px;height:40px;padding:4px;border:1px solid var(--line);border-radius:30px;background:#e9eee1;color:#637066;cursor:pointer;isolation:isolate;vertical-align:middle;touch-action:manipulation}
.theme-switch[hidden]{display:none}.theme-switch svg{position:relative;z-index:1;pointer-events:none}.theme-thumb{position:absolute;z-index:0;width:30px;height:30px;border-radius:50%;left:4px;top:4px;background:var(--paper);box-shadow:0 2px 5px #183d3219;transition:transform .22s ease,background-color .22s ease}.theme-sun{color:#294c3b}.theme-switch:hover{border-color:#839b69}.theme-switch:focus-visible{outline:3px solid #87a864;outline-offset:4px}.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-toolbar .back{margin-bottom:0}.page-toolbar>a{font-size:13px}header{gap:20px}header>nav{margin-left:auto}header>.theme-switch{margin-left:2px}
html[data-theme=dark]{color-scheme:dark;--paper:#101b17;--ink:#e6eddf;--green:#182f25;--lime:#d5e8aa;--muted:#a8baac;--line:#304438;--surface:#1b2b22;--field:#132119;--field-line:#42594a;--accent:#bad48e;--button-bg:#cce4a5;--button-text:#14251a}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] .theme-switch{background:#26392e;color:#9dad9f;border-color:#49604c}html[data-theme=dark] .theme-thumb{transform:translateX(36px);background:#d5e8aa;box-shadow:0 2px 8px #0003}html[data-theme=dark] .theme-sun{color:#a7b9ab}html[data-theme=dark] .theme-moon{color:#173725}
html[data-theme=dark] h1 em,html[data-theme=dark] .contact h2 em{color:var(--accent)}
html[data-theme=dark] .contact,html[data-theme=dark] .admin-panel,html[data-theme=dark] .article-cta,html[data-theme=dark] .empty-editorial{background:var(--surface)}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:var(--field);border-color:var(--field-line);color:var(--ink)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#91a493;opacity:1}
html[data-theme=dark] .button{background:var(--button-bg);color:var(--button-text)}html[data-theme=dark] .button:hover{background:#def0bd}html[data-theme=dark] .button:disabled{opacity:.5}
html[data-theme=dark] .check input{accent-color:var(--lime)}html[data-theme=dark] .contact-note,html[data-theme=dark] .post-admin-list>div,html[data-theme=dark] .delete-post{border-color:var(--line)}
html[data-theme=dark] .notice,html[data-theme=dark] .contact .notice{background:#293b29;border-left-color:var(--lime);color:var(--ink)}html[data-theme=dark] .service-num{color:#b3cc9b}html[data-theme=dark] .services li::marker,html[data-theme=dark] .principles span:before{color:#a7c580}
html[data-theme=dark] .visual{background:#263a2d}html[data-theme=dark] .visual-label,html[data-theme=dark] .visual-bottom{color:#e6eddf}html[data-theme=dark] .visual-grid{background-image:linear-gradient(#d5e8aa0c 1px,transparent 1px),linear-gradient(90deg,#d5e8aa0c 1px,transparent 1px)}html[data-theme=dark] .visual svg{opacity:.88}
html[data-theme=dark] .profile{background:#172e23}html[data-theme=dark] .service-cta{background:#213c2c;color:var(--ink)}html[data-theme=dark] .skip{background:var(--surface);color:var(--ink)}
@media(max-width:1200px){header{gap:16px}header nav{gap:18px}header .nav-contact{padding:10px 12px}}
@media(max-width:700px){header{flex-wrap:wrap;gap:14px}header>.brand{order:0}header>.theme-switch{order:1;margin-left:auto}header>nav{order:2;width:100%;margin-left:0;justify-content:flex-start;gap:20px}header>nav a:nth-child(2),header>nav a:nth-child(3){display:inline}header>nav .nav-contact{display:none}.theme-switch{width:72px;height:38px}.theme-thumb{width:28px;height:28px}html[data-theme=dark] .theme-thumb{transform:translateX(34px)}}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}
@media(max-width:700px){header>nav{flex-wrap:wrap;row-gap:8px}}
