/* 
Art Direction: "Precision Industrial"
Palette: Base oklch(98% 0.01 155) (Lime White), Neutral oklch(92% 0.02 155) (Cool Grey), Accent oklch(45% 0.12 155) (Bottle Green), Contrast oklch(20% 0.05 155) (Deep Forest)
Typography: Numbers/Labels - ui-monospace, SF Mono, Menlo; Body/Headers - system-ui, -apple-system, sans-serif
Composition: Editorial grid with oversized numeric anchors (01, 02) as primary visual drivers
Shape: Hard edges, 1px hairline borders, no rounded corners
Animation: Soft drifting radial gradients in background (Bottle Green glow)
*/
:root {
    --chnv-bg: oklch(98% 0.01 155);
    --chnv-neutral: oklch(92% 0.02 155);
    --chnv-accent: oklch(45% 0.12 155);
    --chnv-contrast: oklch(20% 0.05 155);
    --chnv-white: #ffffff;
    --chnv-mono: ui-monospace, SF Mono, Menlo, monospace;
    --chnv-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --chnv-border: 1px solid var(--chnv-contrast);
    --chnv-transition: 0.2s ease;
}

html, body { overflow-x: clip; margin: 0; padding: 0; background: var(--chnv-bg); color: var(--chnv-contrast); font-family: var(--chnv-sans); line-height: 1.7; }
[hidden] { display: none !important; }

/* Layout & Base */
.chnv-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.chnv-prose { max-width: 75ch; overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.chnv-prose h1, .chnv-prose h2, .chnv-prose h3 { line-height: 1.2; margin-top: 2em; margin-bottom: 1em; }
.chnv-table-wrap { overflow-x: auto; border: var(--chnv-border); position: relative; }
.chnv-figure { margin: 2rem 0; display: block; }
.chnv-figure img { max-width: 100%; height: auto; display: block; }
.chnv-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; }
.chnv-mono { font-family: var(--chnv-mono); font-size: 0.9rem; text-transform: uppercase; }

/* Components */
.chnv-skip-link { position: absolute; top: -100px; left: 0; background: var(--chnv-accent); color: white; padding: 10px; z-index: 1000; transition: top 0.2s; }
.chnv-skip-link:focus { top: 0; }

.chnv-topbar { background: var(--chnv-contrast); color: var(--chnv-bg); font-size: 0.8rem; padding: 8px 0; border-bottom: 1px solid var(--chnv-accent); }
.chnv-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.chnv-header { border-bottom: var(--chnv-border); background: var(--chnv-bg); position: sticky; top: 0; z-index: 100; }
.chnv-header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.chnv-logo { text-decoration: none; color: var(--chnv-contrast); display: flex; flex-direction: column; line-height: 1; }
.chnv-logo-brand { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.chnv-logo-domain { font-family: var(--chnv-mono); font-size: 0.7rem; opacity: 0.6; }

#chnv-menu { display: flex; align-items: center; gap: 30px; }
#chnv-menu a { text-decoration: none; color: var(--chnv-contrast); font-weight: 500; font-size: 0.95rem; transition: color var(--chnv-transition); border-bottom: 2px solid transparent; }
#chnv-menu a:hover { color: var(--chnv-accent); border-bottom-color: var(--chnv-accent); }

.chnv-menu-toggle { display: none; background: none; border: var(--chnv-border); cursor: pointer; font-family: var(--chnv-mono); padding: 8px 12px; }

.chnv-lang-switch { display: flex; gap: 10px; align-items: center; margin-right: 20px; }
.chnv-lang-switch a { text-decoration: none; color: var(--chnv-contrast); font-family: var(--chnv-mono); font-size: 0.8rem; opacity: 0.7; }
.chnv-lang-switch a:hover { opacity: 1; }

.chnv-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background: var(--chnv-accent); color: var(--chnv-white); text-decoration: none; font-weight: 600; border: 1px solid var(--chnv-accent); cursor: pointer; transition: all var(--chnv-transition); }
.chnv-btn:hover { background: var(--chnv-contrast); border-color: var(--chnv-contrast); }

/* Hero & Sections */
.chnv-hero { padding: 80px 0; position: relative; overflow: hidden; }
.chnv-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chnv-lead { font-size: clamp(1.1rem, 3vw, 1.4rem); color: var(--chnv-contrast); opacity: 0.8; margin-bottom: 2rem; }

.chnv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 1px; background: var(--chnv-border); border: var(--chnv-border); }
.chnv-fact-card { background: var(--chnv-bg); padding: 30px; display: flex; flex-direction: column; }
.chnv-fact-num { font-family: var(--chnv-mono); font-size: 2.5rem; font-weight: 700; color: var(--chnv-accent); line-height: 1; }

.chnv-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 40px; }
.chnv-service-item { position: relative; padding: 40px 0; border-top: var(--chnv-border); transition: padding 0.3s; }
.chnv-service-item:hover { padding-top: 50px; }
.chnv-service-num { font-family: var(--chnv-mono); font-size: 4rem; position: absolute; top: 10px; right: 0; opacity: 0.1; z-index: -1; }

.chnv-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); gap: 20px; }
.chnv-process-step { border: var(--chnv-border); padding: 20px; position: relative; }
.chnv-process-step::before { content: attr(data-step); font-family: var(--chnv-mono); position: absolute; top: -10px; left: 10px; background: var(--chnv-bg); padding: 0 5px; font-size: 0.8rem; }

/* Tables & FAQ */
.chnv-table { width: 100%; border-collapse: collapse; text-align: left; }
.chnv-table th, .chnv-table td { padding: 12px; border-bottom: 1px solid var(--chnv-neutral); }
.chnv-table th { font-family: var(--chnv-mono); font-size: 0.8rem; background: var(--chnv-neutral); }

.chnv-faq-group { margin-bottom: 40px; }
.chnv-faq-item { border-bottom: var(--chnv-border); }
.chnv-faq-item summary { padding: 20px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.chnv-faq-item summary::after { content: '+'; font-family: var(--chnv-mono); }
.chnv-faq-item[open] summary::after { content: '-'; }
.chnv-faq-content { padding-bottom: 20px; opacity: 0.8; }

/* Knowledge Base */
.chnv-guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr)); gap: 30px; }
.chnv-guide-card { border: var(--chnv-border); padding: 30px; text-decoration: none; color: inherit; transition: background var(--chnv-transition); }
.chnv-guide-card:hover { background: var(--chnv-neutral); }
.chnv-kicker { font-family: var(--chnv-mono); font-size: 0.7rem; color: var(--chnv-accent); margin-bottom: 10px; display: block; }
.chnv-read-time { font-family: var(--chnv-mono); font-size: 0.7rem; opacity: 0.5; }

/* Legal */
.chnv-legal-toc { border: var(--chnv-border); padding: 20px; margin-bottom: 30px; }
.chnv-legal-toc ul { list-style: none; padding: 0; }
.chnv-legal-toc a { text-decoration: none; color: inherit; font-size: 0.9rem; }
.chnv-legal-note { font-size: 0.85rem; opacity: 0.7; margin: 2rem 0; padding: 1rem; border-left: 3px solid var(--chnv-accent); }

/* Form */
.chnv-form { display: grid; gap: 20px; max-width: 600px; }
.chnv-form-group { display: flex; flex-direction: column; gap: 5px; }
.chnv-form-group label { font-family: var(--chnv-mono); font-size: 0.8rem; }
.chnv-form-group input, .chnv-form-group textarea { padding: 12px; border: var(--chnv-border); background: transparent; font-family: inherit; }
.chnv-form-group input:focus, .chnv-form-group textarea:focus { outline: 2px solid var(--chnv-accent); }

/* Footer */
.chnv-footer { background: var(--chnv-contrast); color: var(--chnv-bg); padding: 60px 0 30px; border-top: 5px solid var(--chnv-accent); }
.chnv-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 40px; margin-bottom: 60px; }
.chnv-footer-col h4 { font-family: var(--chnv-mono); font-size: 0.8rem; margin-bottom: 20px; color: var(--chnv-accent); }
.chnv-footer-col ul { list-style: none; padding: 0; }
.chnv-footer-col a { color: inherit; text-decoration: none; font-size: 0.9rem; opacity: 0.8; line-height: 2; }
.chnv-footer-col a:hover { opacity: 1; }
.chnv-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.8rem; opacity: 0.6; }

/* Cookie Banner */
.chnv-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--chnv-white); color: var(--chnv-contrast); border-top: var(--chnv-border); z-index: 1000; padding: 20px; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }
.chnv-cookie-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.chnv-cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.chnv-cookie-panel { background: var(--chnv-neutral); padding: 20px; border: var(--chnv-border); margin-top: 20px; }
.chnv-cookie-cat { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; cursor: pointer; }

/* Decor */
.chnv-badge-svg { width: 120px; height: 120px; animation: chnv-rotate 10s linear infinite; }
.chnv-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, oklch(90% 0.05 155) 0%, transparent 70%); z-index: -1; pointer-events: none; animation: chnv-drift 20s ease-in-out infinite alternate; }

@keyframes chnv-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes chnv-drift { from { transform: translate(-10%, -10%); } to { transform: translate(10%, 10%); } }

/* Responsive */
@media (max-width: 959px) {
    .chnv-header-inner { height: auto; padding: 20px 0; flex-wrap: wrap; gap: 20px; }
    .chnv-menu-toggle { display: block; }
    #chnv-menu { 
        display: none; position: absolute; top: 100%; left: 0; right: 0; 
        background: var(--chnv-bg); flex-direction: column; align-items: flex-start; 
        padding: 20px; border-bottom: var(--chnv-border); 
    }
    #chnv-menu.chnv-open { display: flex; }
    .chnv-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .chnv-hero-inner .chnv-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-delay: -1ms !important; animation-duration: 1ms !important; transition-duration: 0s !important; }
}

/* сборка: защита от переполнения и служебные правила */
[hidden]{display:none!important}
html,body{overflow-x:clip}
img,video{max-width:100%;height:auto}
:where(main,header,footer) :where(div,section,article,aside,ul,ol,li,figure,details,form,fieldset,nav){min-width:0}
:where(main,footer) :where(h1,h2,h3,h4,p,li,td,th,dd,dt,summary,figcaption,a){overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.chnv-table-wrap{overflow-x:auto;max-width:100%}
.chnv-honey{position:absolute!important;left:auto!important;right:auto!important;top:auto!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important}
:where(a){color:inherit;text-underline-offset:.2em}
:where(main) :where(section,article,div,li,figure){position:relative}
@media (max-width:479px){.chnv-btn,:where(button,[type=submit],[type=button]){white-space:normal!important;max-width:100%;box-sizing:border-box}:where(input,select,textarea){max-width:100%!important;box-sizing:border-box}:where(header) :where(div,nav,ul,ol){column-gap:min(1rem,3vw)!important}:where(header) a.chnv-btn:not([aria-controls]){display:none!important}}
@media (max-width:959px){html.js :where(#chnv-menu):not(.chnv-open){display:none!important}:where(header):has(#chnv-menu){position:relative}:where(#chnv-menu).chnv-open{display:flex!important;flex-direction:column;align-items:stretch;gap:.25rem;position:absolute;left:0;right:0;top:100%;z-index:90;max-height:calc(100vh - 4rem);overflow-y:auto;padding:1rem clamp(16px,4vw,32px) 1.5rem;box-sizing:border-box;visibility:visible!important;opacity:1!important;transform:none!important;background:var(--chnv-bg,Canvas);color:var(--chnv-text,CanvasText);box-shadow:0 12px 24px rgb(0 0 0 / .25)}:where(#chnv-menu).chnv-open a{min-height:44px;display:flex;align-items:center}}
html:not(.js) #chnv-menu{display:flex!important;flex-wrap:wrap;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important}
.chnv-breadcrumbs{font-size:.875rem;padding-block:1rem}.chnv-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0;padding:0}.chnv-breadcrumbs li+li::before{content:"/";margin-right:.5rem;opacity:.5}
.chnv-sitemap ul{columns:2 16rem;padding-left:1.1rem}

