/* 
Art Direction 2026: Bearcatdock
Palette: OKLCH based on Cinnabar (hue 28). Graphite dark theme with radial light accents.
Typography: Geometric Sans (Futura/Avenir) for headings, System Sans for body.
Composition: Editorial asymmetric grid. Narrow left column for captions, wide right column for content.
Forms: Soft rounding (6-10px).
Animation: Slow rotation of circular SVG badge, smooth transitions.
Rhythm: High contrast between deep graphite sections and cinnabar-accented blocks.
*/
:root {
    --brct-color-primary: oklch(60% 0.18 28);
    --brct-color-bg: oklch(15% 0.02 28);
    --brct-color-bg-alt: oklch(12% 0.02 28);
    --brct-color-accent: oklch(70% 0.15 28);
    --brct-color-text: oklch(92% 0.01 28);
    --brct-color-text-muted: oklch(75% 0.01 28);
    --brct-color-border: oklch(25% 0.03 28);
    --brct-radius: 8px;
    --brct-font-head: "Futura", "Century Gothic", "Avenir", sans-serif;
    --brct-font-body: system-ui, -apple-system, sans-serif;
    --brct-container: 1240px;
}

html, body { 
    overflow-x: clip; 
    background-color: var(--brct-color-bg); 
    color: var(--brct-color-text); 
    font-family: var(--brct-font-body); 
    line-height: 1.7; 
    margin: 0; 
}

[hidden] { display: none !important; }

.brct-container {
    max-width: var(--brct-container);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Typography & Base */
h1, h2, h3, h4 { 
    font-family: var(--brct-font-head); 
    line-height: 1.15; 
    margin-top: 0; 
    overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brct-color-primary); }
:focus-visible { outline: 2px solid var(--brct-color-primary); outline-offset: 4px; }

/* Layout: Editorial Grid */
.brct-editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 960px) {
    .brct-editorial {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}
.brct-caption { 
    font-size: 0.9rem; 
    color: var(--brct-color-text-muted); 
    border-left: 2px solid var(--brct-color-primary); 
    padding-left: 1rem; 
}

/* Topbar & Header */
.brct-topbar {
    background: var(--brct-color-bg-alt);
    border-bottom: 1px solid var(--brct-color-border);
    font-size: 0.8rem;
    padding: 8px 0;
}
.brct-topbar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.brct-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brct-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.brct-logo-brand {
    font-family: var(--brct-font-head);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brct-color-text);
}
.brct-logo-domain {
    font-size: 0.7rem;
    color: var(--brct-color-text-muted);
    text-transform: lowercase;
}

/* Navigation */
#brct-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
@media (max-width: 959px) {
    #brct-menu {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        background: var(--brct-color-bg);
        flex-direction: column;
        justify-content: center;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    #brct-menu.brct-open { transform: translateX(0); }
}
.brct-nav-link {
    font-family: var(--brct-font-head);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.brct-lang-switch {
    font-weight: bold;
    padding: 4px 8px;
    border: 1px solid var(--brct-color-border);
    border-radius: 4px;
}

/* Components */
.brct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--brct-color-primary);
    color: #fff;
    border-radius: var(--brct-radius);
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
}
.brct-btn:hover { filter: brightness(1.2); }

.brct-hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.brct-light-spot {
    position: absolute;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, oklch(40% 0.1 28 / 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.brct-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 2rem;
    margin: 4rem 0;
}
.brct-fact-card {
    padding: 2rem;
    background: var(--brct-color-bg-alt);
    border-radius: var(--brct-radius);
    border-top: 3px solid var(--brct-color-primary);
}

.brct-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 2rem;
}
.brct-service-item {
    position: relative;
    padding: 2rem;
    background: var(--brct-color-bg-alt);
    border-radius: var(--brct-radius);
    transition: transform 0.2s;
}
.brct-service-item:hover { transform: translateY(-5px); }
.brct-service-num {
    font-family: var(--brct-font-head);
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    top: 10px; right: 20px;
}

.brct-table-wrap {
    overflow-x: auto;
    border-radius: var(--brct-radius);
    border: 1px solid var(--brct-color-border);
    margin: 2rem 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--brct-color-border);
}
th { background: var(--brct-color-bg-alt); font-family: var(--brct-font-head); }

.brct-faq-item details {
    border-bottom: 1px solid var(--brct-color-border);
    padding: 1rem 0;
}
.brct-faq-item summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brct-badge {
    width: 120px; height: 120px;
    animation: brct-rotate 20s linear infinite;
}
@keyframes brct-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Legal & Prose */
.brct-prose { max-width: 800px; }
.brct-prose p { margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.brct-legal-note {
    font-size: 0.85rem;
    padding: 1rem;
    background: var(--brct-color-bg-alt);
    border-radius: var(--brct-radius);
    margin-bottom: 2rem;
}

/* Footer */
.brct-footer {
    background: var(--brct-color-bg-alt);
    padding: 60px 0 20px;
    border-top: 1px solid var(--brct-color-border);
    font-size: 0.9rem;
}
.brct-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 3rem;
    margin-bottom: 40px;
}
.brct-footer-col h4 { 
    font-family: var(--brct-font-head); 
    margin-bottom: 1rem; 
    color: var(--brct-color-primary); 
}
.brct-footer-col ul { list-style: none; padding: 0; }
.brct-footer-col li { margin-bottom: 0.5rem; }
.brct-footer-bottom {
    border-top: 1px solid var(--brct-color-border);
    padding-top: 20px;
    font-size: 0.75rem;
    color: var(--brct-color-text-muted);
}

/* Forms */
.brct-form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
}
.brct-field { display: flex; flex-direction: column; gap: 0.5rem; }
.brct-field label { font-weight: 500; }
.brct-field input, .brct-field textarea {
    padding: 12px;
    border-radius: var(--brct-radius);
    border: 1px solid var(--brct-color-border);
    background: var(--brct-color-bg);
    color: #fff;
}
.brct-honey { position: absolute; clip: rect(0 0 0 0); height: 1px; width: 1px; overflow: hidden; }

/* Cookies */
.brct-cookie-banner {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    background: var(--brct-color-bg-alt);
    border: 1px solid var(--brct-color-primary);
    border-radius: var(--brct-radius);
    padding: 2rem;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.brct-cookie-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px,100%), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.brct-cookie-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brct-color-border);
}
.brct-cookie-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Utils */
.brct-skip-link {
    position: absolute;
    top: -100px; left: 0;
    background: var(--brct-color-primary);
    color: #fff;
    padding: 10px;
    z-index: 2000;
}
.brct-skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !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}
.brct-table-wrap{overflow-x:auto;max-width:100%}
.brct-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){.brct-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.brct-btn:not([aria-controls]){display:none!important}}
@media (max-width:959px){html.js :where(#brct-menu):not(.brct-open){display:none!important}:where(header):has(#brct-menu){position:relative}:where(#brct-menu).brct-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(--brct-bg,Canvas);color:var(--brct-text,CanvasText);box-shadow:0 12px 24px rgb(0 0 0 / .25)}:where(#brct-menu).brct-open a{min-height:44px;display:flex;align-items:center}}
html:not(.js) #brct-menu{display:flex!important;flex-wrap:wrap;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important}
.brct-breadcrumbs{font-size:.875rem;padding-block:1rem}.brct-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0;padding:0}.brct-breadcrumbs li+li::before{content:"/";margin-right:.5rem;opacity:.5}
.brct-figure{margin:2rem 0}.brct-figure img{display:block;width:100%;height:auto}
.brct-sitemap ul{columns:2 16rem;padding-left:1.1rem}

