/* 
Art Direction 2026: Indigo Night
Palette: Primary oklch(45% 0.18 275), BG oklch(18% 0.02 275), Accent oklch(65% 0.15 275), Light oklch(95% 0.01 275)
Typography: Headings - Futura, Century Gothic, Avenir, sans-serif; Body - system-ui, sans-serif
Composition: Full-width typographic strips, marquee service lists, dark graphite with radial glows
Form: Large radius (20px+), pill-shaped buttons, overlapping light blobs
Animation: Smooth shifting of background radial gradients via CSS keyframes
*/
:root {
    --brvx-primary: oklch(45% 0.18 275);
    --brvx-bg: oklch(18% 0.02 275);
    --brvx-accent: oklch(65% 0.15 275);
    --brvx-text: oklch(95% 0.01 275);
    --brvx-text-muted: oklch(75% 0.02 275);
    --brvx-surface: oklch(25% 0.03 275);
    --brvx-radius-lg: 24px;
    --brvx-radius-sm: 12px;
    --brvx-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --brvx-font-head: "Futura", "Century Gothic", "Avenir", sans-serif;
    --brvx-font-body: system-ui, -apple-system, sans-serif;
}

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

.brvx-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
.brvx-prose { line-height: 1.7; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); overflow-wrap: anywhere; }
.brvx-prose h1, .brvx-prose h2, .brvx-prose h3 { font-family: var(--brvx-font-head); line-height: 1.15; margin-top: 2.5rem; margin-bottom: 1rem; }
.brvx-prose h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.brvx-prose h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.brvx-prose p { margin-bottom: 1.5rem; }

.brvx-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: var(--brvx-transition); cursor: pointer; border: none; font-family: var(--brvx-font-head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }
.brvx-btn-primary { background: var(--brvx-primary); color: white; }
.brvx-btn-primary:hover { background: var(--brvx-accent); transform: translateY(-2px); }

.brvx-topbar { background: var(--brvx-surface); font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid oklch(35% 0.05 275); }
.brvx-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.brvx-header { padding: 20px 0; position: sticky; top: 0; z-index: 100; background: rgba(28, 28, 35, 0.8); backdrop-filter: blur(10px); }
.brvx-header-inner { display: flex; align-items: center; justify-content: space-between; }
.brvx-logo { font-family: var(--brvx-font-head); font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--brvx-text); display: flex; flex-direction: column; }
.brvx-logo-sub { font-size: 0.65rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 2px; }

.brvx-nav { display: flex; align-items: center; gap: 32px; }
.brvx-nav-link { text-decoration: none; color: var(--brvx-text); font-weight: 500; transition: var(--brvx-transition); font-size: 0.95rem; }
.brvx-nav-link:hover { color: var(--brvx-accent); }

[data-brvx-menu-toggle] { display: none; background: none; border: 1px solid var(--brvx-accent); color: var(--brvx-text); padding: 8px 16px; border-radius: 50px; cursor: pointer; font-family: var(--brvx-font-head); }

@media (max-width: 959px) {
    [data-brvx-menu-toggle] { display: block; }
    .brvx-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--brvx-surface); flex-direction: column; padding: 80px 40px; transition: 0.4s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 110; }
    .brvx-nav.brvx-open { right: 0; }
}

.brvx-hero { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.brvx-hero-title { font-family: var(--brvx-font-head); font-size: clamp(3rem, 10vw, 6rem); line-height: 0.9; margin-bottom: 2rem; font-weight: 900; text-transform: uppercase; }
.brvx-hero-lead { font-size: clamp(1.2rem, 3vw, 1.5rem); max-width: 700px; margin: 0 auto 3rem; color: var(--brvx-text-muted); }

.brvx-glow { position: absolute; width: 40vw; height: 40vw; background: radial-gradient(circle, var(--brvx-primary) 0%, transparent 70%); filter: blur(60px); opacity: 0.3; z-index: -1; animation: brvx-float 15s infinite alternate ease-in-out; }
.brvx-glow-1 { top: -10%; left: -10%; }
.brvx-glow-2 { bottom: -10%; right: -10%; animation-delay: -5s; }
@keyframes brvx-float { from { transform: translate(0,0); } to { transform: translate(10%, 10%); } }

.brvx-strip { background: var(--brvx-primary); color: white; padding: 40px 0; overflow: hidden; white-space: nowrap; font-family: var(--brvx-font-head); font-weight: 800; font-size: clamp(2rem, 6vw, 4rem); text-transform: uppercase; }
.brvx-marquee { display: inline-block; animation: brvx-scroll 30s linear infinite; }
@keyframes brvx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brvx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px,100%), 1fr)); gap: 24px; padding: 80px 0; }
.brvx-fact-card { background: var(--brvx-surface); padding: 32px; border-radius: var(--brvx-radius-lg); text-align: center; border: 1px solid transparent; transition: var(--brvx-transition); }
.brvx-fact-card:hover { border-color: var(--brvx-accent); transform: scale(1.02); }
.brvx-fact-value { font-family: var(--brvx-font-head); font-size: 3rem; color: var(--brvx-accent); display: block; margin-bottom: 10px; }

.brvx-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%), 1fr)); gap: 30px; padding: 80px 0; }
.brvx-service-item { background: var(--brvx-surface); padding: 40px; border-radius: var(--brvx-radius-lg); position: relative; overflow: hidden; transition: var(--brvx-transition); }
.brvx-service-item:hover { background: oklch(30% 0.04 275); }
.brvx-service-num { font-family: var(--brvx-font-head); font-size: 4rem; position: absolute; right: 20px; top: -10px; opacity: 0.1; font-weight: 900; }

.brvx-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--brvx-radius-lg); border: 1px solid var(--brvx-surface); }
.brvx-table { width: 100%; border-collapse: collapse; text-align: left; min-width:min(600px,100%); }
.brvx-table th, .brvx-table td { padding: 16px; border-bottom: 1px solid var(--brvx-surface); }
.brvx-table th { background: var(--brvx-surface); font-family: var(--brvx-font-head); }

.brvx-faq { padding: 80px 0; display: grid; gap: 20px; max-width: 800px; margin: 0 auto; }
.brvx-faq details { background: var(--brvx-surface); border-radius: var(--brvx-radius-sm); overflow: hidden; transition: var(--brvx-transition); }
.brvx-faq summary { padding: 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.brvx-faq summary::after { content: '+'; font-size: 1.5rem; color: var(--brvx-accent); }
.brvx-faq details[open] summary::after { content: '−'; }
.brvx-faq .brvx-faq-content { padding: 0 20px 20px; color: var(--brvx-text-muted); }

.brvx-badge { position: fixed; bottom: 30px; left: 30px; width: 100px; height: 100px; z-index: 1000; pointer-events: none; }
.brvx-badge-svg { width: 100%; height: 100%; animation: brvx-rotate 10s linear infinite; }
@keyframes brvx-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.brvx-form { display: grid; gap: 20px; max-width: 600px; margin: 0 auto; }
.brvx-form-group { display: grid; gap: 8px; }
.brvx-form-group label { font-size: 0.9rem; color: var(--brvx-text-muted); }
.brvx-form-group input, .brvx-form-group textarea { width: 100%; padding: 12px; border-radius: var(--brvx-radius-sm); border: 1px solid var(--brvx-surface); background: var(--brvx-surface); color: white; font-family: inherit; box-sizing: border-box; }
.brvx-form-group input:focus, .brvx-form-group textarea:focus { outline: 2px solid var(--brvx-accent); border-color: transparent; }
.brvx-honey { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.brvx-footer { background: oklch(12% 0.02 275); padding: 80px 0 40px; border-top: 1px solid var(--brvx-surface); }
.brvx-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 40px; margin-bottom: 60px; }
.brvx-footer-col h4 { font-family: var(--brvx-font-head); margin-bottom: 20px; color: var(--brvx-accent); }
.brvx-footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.brvx-footer-links a { color: var(--brvx-text-muted); text-decoration: none; transition: var(--brvx-transition); font-size: 0.9rem; }
.brvx-footer-links a:hover { color: var(--brvx-text); }
.brvx-footer-bottom { border-top: 1px solid var(--brvx-surface); padding-top: 30px; font-size: 0.8rem; color: var(--brvx-text-muted); display: grid; gap: 15px; }

.brvx-cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--brvx-surface); padding: 30px; border-radius: var(--brvx-radius-lg); z-index: 2000; border: 1px solid var(--brvx-accent); max-width: 600px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.brvx-cookie-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.brvx-cookie-btns .brvx-btn { flex: 1; min-width: 140px; }
.brvx-cookie-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--brvx-surface); display: grid; gap: 12px; }
.brvx-cookie-panel label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; }

.brvx-skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.brvx-skip-link:focus { position: fixed; top: 0; left: 0; width: auto; height: auto; padding: 20px; background: var(--brvx-accent); color: var(--brvx-bg); z-index: 10000; }

.brvx-breadcrumbs { display: flex; gap: 10px; padding: 20px 0; font-size: 0.85rem; color: var(--brvx-text-muted); }
.brvx-breadcrumbs a { color: var(--brvx-accent); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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


/* сборка: прижать к краю - проверка ловила за краем экрана */
.brvx-glow{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}
