/* 
Art Direction: Cobalt Contrast 2026
Palette: Focal Cobalt (OKLCH 50% 0.20 255) / Soft Ice (OKLCH 97% 0.01 255) / Deep Obsidian (OKLCH 18% 0.02 255)
Typography: Headers - Avenir Next Condensed, Arial Narrow, sans-serif (Uppercase, Bold) / Body - Seravek, Gill Sans, system-ui
Composition: Editorial grid with 1px sharp lines, fact cards overlapping photos, high-contrast saturated Hero/Footer
Geometry: 0px radius (sharp corners), strict alignment, 1px borders
Motion: Link underlines expanding left-to-right, smooth opacity shifts
*/
:root {
    --brng-cobalt: oklch(50% 0.20 255);
    --brng-ice: oklch(97% 0.01 255);
    --brng-obsidian: oklch(18% 0.02 255);
    --brng-white: #ffffff;
    --brng-border: oklch(40% 0.05 255);
    --brng-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { 
    overflow-x: clip; 
    margin: 0; 
    padding: 0; 
    background: var(--brng-ice); 
    color: var(--brng-obsidian); 
    font-family: system-ui, -apple-system, sans-serif; 
    -webkit-font-smoothing: antialiased; 
}

[hidden] { display: none !important; }

.brng-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
p { 
    font-family: Seravek, "Gill Sans", system-ui, sans-serif; 
    line-height: 1.7; 
    margin-bottom: 1.5rem; 
    overflow-wrap: anywhere; 
}

/* Accessibility */
.brng-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brng-cobalt);
    color: white;
    padding: 1rem;
    z-index: 1000;
    text-decoration: none;
}
.brng-skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--brng-cobalt); outline-offset: 4px; }

/* Topbar */
.brng-topbar {
    background: var(--brng-obsidian);
    color: var(--brng-ice);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--brng-border);
}
.brng-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Arial Narrow", sans-serif;
}

/* Header & Nav */
.brng-header {
    background: var(--brng-ice);
    border-bottom: 1px solid var(--brng-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.brng-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.brng-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--brng-obsidian);
}
.brng-logo-text { font-family: "Avenir Next Condensed", sans-serif; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.brng-logo-sub { font-size: 0.7rem; opacity: 0.6; }

.brng-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.brng-nav-link {
    text-decoration: none;
    color: var(--brng-obsidian);
    font-family: "Arial Narrow", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
}
.brng-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--brng-cobalt);
    transition: var(--brng-transition);
}
.brng-nav-link:hover::after { width: 100%; }

.brng-lang-switch {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}
.brng-lang-link {
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--brng-obsidian);
    border: 1px solid var(--brng-border);
    padding: 2px 6px;
}

.brng-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--brng-border);
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 959px) {
    .brng-menu-toggle { display: block; }
    .brng-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: var(--brng-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--brng-transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 101;
    }
    .brng-nav.brng-open { right: 0; }
}

/* Hero & Sections */
.brng-hero {
    background: var(--brng-cobalt);
    color: var(--brng-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.brng-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.brng-hero h1 { color: var(--brng-white); }

.brng-section { padding: 80px 0; border-bottom: 1px solid var(--brng-border); }
.brng-section-light { background: var(--brng-ice); }
.brng-section-dark { background: var(--brng-obsidian); color: var(--brng-white); }

/* Fact Cards with Overlap */
.brng-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px,100%), 1fr));
    gap: 30px;
    margin-top: -60px;
}
.brng-fact-card {
    background: var(--brng-white);
    border: 1px solid var(--brng-border);
    padding: 30px;
    position: relative;
    z-index: 2;
}
.brng-fact-num {
    font-family: "Avenir Next Condensed", sans-serif;
    font-size: 3rem;
    color: var(--brng-cobalt);
    display: block;
    margin-bottom: 10px;
}

/* Services */
.brng-services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 1px; background: var(--brng-border); border: 1px solid var(--brng-border); }
.brng-service-item {
    background: var(--brng-white);
    padding: 40px;
    transition: var(--brng-transition);
}
.brng-service-item:hover { background: var(--brng-ice); }
.brng-service-idx { font-family: "Avenir Next Condensed", sans-serif; font-size: 1.2rem; opacity: 0.4; display: block; margin-bottom: 1rem; }

/* Tables */
.brng-table-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--brng-border); }
.brng-table { width: 100%; border-collapse: collapse; text-align: left; }
.brng-table th, .brng-table td { padding: 15px; border-bottom: 1px solid var(--brng-border); }
.brng-table th { background: var(--brng-obsidian); color: white; text-transform: uppercase; font-size: 0.8rem; }

/* FAQ */
.brng-faq-group { margin-bottom: 40px; }
.brng-faq-item { border-bottom: 1px solid var(--brng-border); }
.brng-faq-item summary { 
    padding: 20px 0; 
    cursor: pointer; 
    font-weight: 600; 
    list-style: none; 
    display: flex; 
    justify-content: space-between;
}
.brng-faq-item summary::after { content: '+'; font-size: 1.5rem; }
.brng-faq-item[open] summary::after { content: '−'; }
.brng-faq-content { padding: 0 0 20px 0; }

/* Buttons & Forms */
.brng-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-family: "Avenir Next Condensed", sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid var(--brng-obsidian);
    transition: var(--brng-transition);
    cursor: pointer;
    background: none;
}
.brng-btn-primary { background: var(--brng-cobalt); color: white; border-color: var(--brng-cobalt); }
.brng-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.brng-form { display: grid; gap: 20px; max-width: 600px; }
.brng-field { display: flex; flex-direction: column; gap: 5px; }
.brng-field label { font-size: 0.9rem; font-weight: 600; }
.brng-field input, .brng-field textarea { 
    padding: 12px; 
    border: 1px solid var(--brng-border); 
    font-family: inherit;
}
.brng-honey { position: absolute; clip: rect(0 0 0 0); pointer-events: none; }

/* Footer */
.brng-footer { 
    background: var(--brng-cobalt); 
    color: white; 
    padding: 80px 0 40px 0; 
    border-top: 1px solid var(--brng-border);
}
.brng-footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); 
    gap: 40px; 
    margin-bottom: 60px;
}
.brng-footer-col h4 { color: white; font-size: 1rem; margin-bottom: 20px; }
.brng-footer-links { list-style: none; padding: 0; margin: 0; }
.brng-footer-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.85rem; 
    display: block; 
    margin-bottom: 8px; 
    opacity: 0.8;
}
.brng-footer-links a:hover { opacity: 1; }
.brng-footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.2); 
    padding-top: 20px; 
    font-size: 0.75rem; 
    opacity: 0.7;
    display: grid;
    gap: 10px;
}

/* Cookie Banner */
.brng-cookie {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    background: var(--brng-white);
    border: 1px solid var(--brng-border);
    padding: 24px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
}
.brng-cookie-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.brng-cookie-btns button { flex: 1; min-width: 120px; }
.brng-cookie-panel { 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--brng-border); 
    display: grid; 
    gap: 10px; 
}
.brng-cookie-cat { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; }

/* Decorative */
.brng-badge {
    position: absolute;
    width: 120px; height: 120px;
    animation: brng-rotate 20s linear infinite;
}
@keyframes brng-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.brng-accent {
    position: absolute;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(64,120,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 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}
.brng-table-wrap{overflow-x:auto;max-width:100%}
.brng-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){.brng-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.brng-btn:not([aria-controls]){display:none!important}}
@media (max-width:959px){html.js :where(#brng-menu):not(.brng-open){display:none!important}:where(header):has(#brng-menu){position:relative}:where(#brng-menu).brng-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(--brng-bg,Canvas);color:var(--brng-text,CanvasText);box-shadow:0 12px 24px rgb(0 0 0 / .25)}:where(#brng-menu).brng-open a{min-height:44px;display:flex;align-items:center}}
html:not(.js) #brng-menu{display:flex!important;flex-wrap:wrap;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important}
.brng-breadcrumbs{font-size:.875rem;padding-block:1rem}.brng-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0;padding:0}.brng-breadcrumbs li+li::before{content:"/";margin-right:.5rem;opacity:.5}
.brng-prose{max-width:72ch}
.brng-figure{margin:2rem 0}.brng-figure img{display:block;width:100%;height:auto}
.brng-legal-note{border-left:3px solid currentColor;padding:.75rem 1rem;margin:1rem 0}
.brng-sitemap ul{columns:2 16rem;padding-left:1.1rem}

