/* 
Art Direction 2026: Rust & Lime
Palette: Primary oklch(55% 0.15 70), BG oklch(98% 0.01 200), Neutral oklch(92% 0.02 200), Dark oklch(25% 0.04 70)
Typography: Mono (SF Mono, Menlo) for indices/metrics; System Sans for prose
Composition: Massive numeric anchors (01, 02) as structural guides; light-cold contrast
Form: Soft corners 6-10px; radial light glows in neutral zones
Animation: Smooth section fade-ins via intersection observer (simulated by CSS transitions)
*/
:root {
    --brmv-primary: oklch(55% 0.15 70);
    --brmv-bg: oklch(98% 0.01 200);
    --brmv-neutral: oklch(92% 0.02 200);
    --brmv-dark: oklch(25% 0.04 70);
    --brmv-text: oklch(30% 0.02 200);
    --brmv-radius: 8px;
    --brmv-mono: ui-monospace, SF Mono, Menlo, monospace;
    --brmv-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --brmv-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.brmv-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.brmv-prose { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.brmv-prose h1, .brmv-prose h2, .brmv-prose h3 { line-height: 1.2; color: var(--brmv-dark); margin-top: 2em; }
.brmv-prose h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.brmv-prose h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }

.brmv-skip-link { position: absolute; top: -100px; left: 0; background: var(--brmv-primary); color: white; padding: 1rem; z-index: 1000; transition: top 0.3s; }
.brmv-skip-link:focus { top: 0; }

.brmv-topbar { background: var(--brmv-neutral); font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid oklch(85% 0.02 200); }
.brmv-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.brmv-header { padding: 20px 0; position: sticky; top: 0; background: rgba(248, 250, 250, 0.8); backdrop-filter: blur(10px); z-index: 100; }
.brmv-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brmv-logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--brmv-dark); display: flex; flex-direction: column; }
.brmv-logo-domain { font-family: var(--brmv-mono); font-size: 0.7rem; opacity: 0.6; text-transform: lowercase; }

.brmv-nav { display: flex; align-items: center; gap: 24px; }
.brmv-nav-list { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.brmv-nav-link { text-decoration: none; color: var(--brmv-text); font-weight: 500; font-size: 0.95rem; transition: var(--brmv-transition); }
.brmv-nav-link:hover { color: var(--brmv-primary); }

.brmv-lang-switch { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; }
.brmv-lang-link { text-decoration: none; color: var(--brmv-text); border-bottom: 2px solid transparent; transition: var(--brmv-transition); }
.brmv-lang-link:hover { border-color: var(--brmv-primary); }

.brmv-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--brmv-radius); font-weight: 600; text-decoration: none; transition: var(--brmv-transition); cursor: pointer; border: none; font-family: var(--brmv-sans); max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.brmv-btn-primary { background: var(--brmv-primary); color: white; }
.brmv-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 12px oklch(55% 0.15 70 / 0.3); }

.brmv-menu-toggle { display: none; padding: 10px; background: none; border: 1px solid var(--brmv-primary); border-radius: var(--brmv-radius); cursor: pointer; font-family: inherit; }

@media (max-width: 959px) {
    .brmv-menu-toggle { display: block; }
    #brmv-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--brmv-bg); flex-direction: column; justify-content: center; transition: var(--brmv-transition); box-shadow: -10px 0 30px rgba(0,0,0,0.05); z-index: 110; }
    #brmv-menu.brmv-open { right: 0; }
    .brmv-nav-list { flex-direction: column; align-items: center; font-size: 1.2rem; }
}
@media (min-width: 960px) {
    #brmv-menu { display: flex; }
}
html:not(.js) #brmv-menu { display: flex; }

.brmv-hero { padding: 80px 0; position: relative; overflow: hidden; }
.brmv-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; }
.brmv-hero-content { z-index: 2; }
.brmv-glow { position: absolute; width: 40vw; height: 40vw; background: radial-gradient(circle, oklch(55% 0.15 70 / 0.15) 0%, transparent 70%); border-radius: 50%; z-index: 1; pointer-events: none; }

.brmv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 20px; margin: 40px 0; }
.brmv-fact-card { padding: 24px; background: var(--brmv-neutral); border-radius: var(--brmv-radius); text-align: center; transition: var(--brmv-transition); }
.brmv-fact-card:hover { transform: translateY(-5px); background: white; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.brmv-fact-value { display: block; font-family: var(--brmv-mono); font-size: 2.5rem; font-weight: 700; color: var(--brmv-primary); }

.brmv-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; }
.brmv-service-card { position: relative; padding: 40px; background: white; border-radius: var(--brmv-radius); border: 1px solid var(--brmv-neutral); transition: var(--brmv-transition); min-width: 0; }
.brmv-service-card::before { content: attr(data-index); position: absolute; top: -20px; left: 20px; font-family: var(--brmv-mono); font-size: 4rem; font-weight: 800; color: var(--brmv-neutral); z-index: 0; transition: var(--brmv-transition); }
.brmv-service-card:hover::before { color: var(--brmv-primary); opacity: 0.5; transform: scale(1.1); }
.brmv-service-card > * { position: relative; z-index: 1; }

.brmv-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.brmv-process-step { padding: 20px; border-left: 4px solid var(--brmv-primary); background: var(--brmv-neutral); border-radius: 0 var(--brmv-radius) var(--brmv-radius) 0; }
.brmv-process-num { font-family: var(--brmv-mono); font-weight: 700; color: var(--brmv-primary); display: block; margin-bottom: 8px; }

.brmv-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--brmv-radius); border: 1px solid var(--brmv-neutral); -webkit-overflow-scrolling: touch; }
.brmv-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; min-width:min(500px,100%); }
.brmv-table th { background: var(--brmv-neutral); padding: 16px; font-weight: 600; }
.brmv-table td { padding: 16px; border-top: 1px solid var(--brmv-neutral); }

.brmv-faq-group { margin-bottom: 40px; }
.brmv-faq-item { margin-bottom: 12px; border-radius: var(--brmv-radius); border: 1px solid var(--brmv-neutral); background: white; }
.brmv-faq-item summary { padding: 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.brmv-faq-item summary::after { content: '+'; font-family: var(--brmv-mono); transition: var(--brmv-transition); }
.brmv-faq-item[open] summary::after { transform: rotate(45deg); }
.brmv-faq-content { padding: 0 16px 16px; font-size: 0.95rem; border-top: 1px solid var(--brmv-neutral); }

.brmv-guide-card { display: flex; gap: 20px; padding: 24px; background: white; border-radius: var(--brmv-radius); text-decoration: none; color: inherit; border: 1px solid var(--brmv-neutral); transition: var(--brmv-transition); min-width: 0; }
.brmv-guide-card:hover { border-color: var(--brmv-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.brmv-guide-meta { font-family: var(--brmv-mono); font-size: 0.8rem; text-transform: uppercase; color: var(--brmv-primary); margin-bottom: 8px; display: block; }

.brmv-legal-toc { margin: 2rem 0; padding: 1.5rem; background: var(--brmv-neutral); border-radius: var(--brmv-radius); }
.brmv-legal-toc ul { list-style: none; padding: 0; }
.brmv-legal-toc a { color: var(--brmv-text); text-decoration: none; display: block; padding: 4px 0; transition: var(--brmv-transition); }
.brmv-legal-toc a:hover { color: var(--brmv-primary); }

.brmv-cta-bar { background: var(--brmv-dark); color: white; padding: 60px 0; text-align: center; border-radius: var(--brmv-radius); margin: 40px 0; }
.brmv-cta-bar h2 { color: white; margin-bottom: 24px; }

.brmv-form { display: grid; gap: 20px; max-width: 600px; margin: 0 auto; }
.brmv-form-group { display: flex; flex-direction: column; gap: 8px; }
.brmv-form-label { font-weight: 600; font-size: 0.9rem; }
.brmv-form-input { padding: 12px; border: 1px solid var(--brmv-neutral); border-radius: var(--brmv-radius); font-family: inherit; width: 100%; box-sizing: border-box; }
.brmv-form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; }
.brmv-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.brmv-footer { background: var(--brmv-neutral); padding: 60px 0 20px; margin-top: 80px; font-size: 0.9rem; }
.brmv-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 40px; margin-bottom: 40px; }
.brmv-footer-col h4 { font-family: var(--brmv-mono); font-size: 0.8rem; text-transform: uppercase; color: var(--brmv-primary); margin-bottom: 20px; }
.brmv-footer-links { list-style: none; padding: 0; margin: 0; }
.brmv-footer-links a { text-decoration: none; color: var(--brmv-text); display: block; padding: 6px 0; transition: var(--brmv-transition); }
.brmv-footer-links a:hover { color: var(--brmv-primary); }
.brmv-footer-bottom { border-top: 1px solid oklch(80% 0.02 200); padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.7; }

.brmv-cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: white; padding: 24px; border-radius: var(--brmv-radius); box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 1000; max-width: 600px; margin: 0 auto; border: 1px solid var(--brmv-neutral); }
.brmv-cookie-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px,100%), 1fr)); gap: 12px; margin-top: 20px; }
.brmv-cookie-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--brmv-neutral); display: grid; gap: 12px; }
.brmv-cookie-cat { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; }

.brmv-badge { position: absolute; width: 120px; height: 120px; animation: brmv-rotate 20s linear infinite; pointer-events: none; z-index: 1; }
.brmv-badge svg { width: 100%; height: 100%; fill: none; stroke: var(--brmv-primary); stroke-width: 1.5; }
.brmv-badge text { fill: var(--brmv-primary); font-family: var(--brmv-mono); font-size: 10px; letter-spacing: 1px; }

@keyframes brmv-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

.brmv-breadcrumbs { display: flex; gap: 12px; list-style: none; padding: 20px 0; font-size: 0.85rem; opacity: 0.7; }
.brmv-breadcrumbs a { color: inherit; text-decoration: none; }
.brmv-breadcrumbs a:hover { color: var(--brmv-primary); }
.brmv-legal-note { font-size: 0.85rem; font-style: italic; margin-bottom: 2rem; border-left: 3px solid var(--brmv-primary); padding-left: 1rem; }
.brmv-figure { margin: 2rem 0; text-align: center; }
.brmv-figure img { max-width: 100%; height: auto; border-radius: var(--brmv-radius); }
.brmv-sitemap { list-style: none; padding: 0; }
.brmv-sitemap-group { margin-bottom: 2rem; }
.brmv-sitemap-title { font-family: var(--brmv-mono); font-weight: 700; margin-bottom: 1rem; display: block; }
.brmv-sitemap-list { list-style: none; padding: 0; }
.brmv-sitemap-list a { text-decoration: none; color: inherit; display: block; padding: 4px 0; }

*:focus-visible { outline: 2px solid var(--brmv-primary); outline-offset: 2px; }

/* сборка: защита от переполнения и служебные правила (промпт, разделы 6-7) */
[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}
.brmv-table-wrap{overflow-x:auto;max-width:100%}
.brmv-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){.brmv-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.brmv-btn:not([aria-controls]){display:none!important}}
@media (max-width:959px){html.js :where(#brmv-menu):not(.brmv-open){display:none!important}:where(header):has(#brmv-menu){position:relative}:where(#brmv-menu).brmv-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(--brmv-bg,Canvas);color:var(--brmv-text,CanvasText);box-shadow:0 12px 24px rgb(0 0 0 / .25)}:where(#brmv-menu).brmv-open a{min-height:44px;display:flex;align-items:center}}
html:not(.js) #brmv-menu{display:flex!important;flex-wrap:wrap;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important}



/* сборка: прижать к краю - проверка ловила за краем экрана */
@media (max-width:1439px){.brmv-service-card,.brmv-guide-card,.brmv-btn{position:static!important;left:auto!important;right:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}}
