/* 
Art Direction 2026: Petrol Cold Light
Palette: Primary oklch(55% 0.14 220), BG oklch(98% 0.01 220), Neutral oklch(92% 0.02 220), Dark oklch(25% 0.04 220)
Typography: Headings - Avenir Next Condensed, Arial Narrow, sans-serif (Uppercase/Bold); Body - Seravek, Gill Sans, system-ui
Composition: Vertical section labels on margins, "Musical Score" horizontal hair-lines, editorial rhythm
Form: Soft corners 6-10px, precise spacing, cold-lime accents
Animation: Smooth section fade-in on scroll, rotating SVG badge
*/
:root {
    --bndg-primary: oklch(55% 0.14 220);
    --bndg-bg: oklch(98% 0.01 220);
    --bndg-neutral: oklch(92% 0.02 220);
    --bndg-dark: oklch(25% 0.04 220);
    --bndg-accent: oklch(85% 0.08 180);
    --bndg-text: oklch(30% 0.03 220);
    --bndg-radius: 8px;
    --bndg-transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --bndg-container: 1240px;
}

html, body { 
    overflow-x: clip; 
    background-color: var(--bndg-bg); 
    color: var(--bndg-text); 
    margin: 0; 
    font-family: Seravek, "Gill Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    scroll-behavior: smooth;
}

[hidden] { display: none !important; }

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

/* Typography */
h1, h2, h3, h4 { 
    font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif; 
    text-transform: uppercase; 
    font-weight: 700; 
    line-height: 1.15; 
    margin: 0;
    color: var(--bndg-dark);
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }

.bndg-prose { 
    overflow-wrap: anywhere; 
    word-break: normal; 
    hyphens: auto; 
}

/* Skip Link */
.bndg-skip {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--bndg-primary);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transition: top 0.2s;
}
.bndg-skip:focus { top: 0; }

/* Topbar */
.bndg-topbar {
    background: var(--bndg-neutral);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--bndg-accent);
}
.bndg-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Header & Nav */
.bndg-header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bndg-bg);
}
.bndg-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--bndg-dark);
}
.bndg-logo-brand { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.bndg-logo-domain { font-size: 0.7rem; opacity: 0.6; text-transform: lowercase; }

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

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

/* Mobile Nav State */
@media (max-width: 959px) {
    .bndg-menu-toggle { display: block; }
    .bndg-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: right var(--bndg-transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 101;
    }
    .bndg-nav.bndg-open { right: 0; }
}

/* Components */
.bndg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--bndg-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--bndg-transition);
    cursor: pointer;
    border: none;
}
.bndg-btn-primary {
    background: var(--bndg-primary);
    color: white;
}
.bndg-btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Hero & Score Grid */
.bndg-hero {
    padding: 80px 0;
    position: relative;
}
.bndg-score-line {
    height: 1px;
    background: var(--bndg-accent);
    width: 100%;
    margin: 40px 0;
    position: relative;
}
.bndg-section-label {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
    font-family: "Avenir Next Condensed", sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bndg-primary);
}

/* Facts Grid */
.bndg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 20px;
    margin: 40px 0;
}
.bndg-fact-card {
    background: var(--bndg-neutral);
    padding: 30px;
    border-radius: var(--bndg-radius);
    text-align: center;
    transition: var(--bndg-transition);
}
.bndg-fact-card:hover { background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.bndg-fact-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bndg-primary);
}

/* Services */
.bndg-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 30px;
}
.bndg-service-item {
    position: relative;
    padding: 40px;
    border: 1px solid var(--bndg-neutral);
    border-radius: var(--bndg-radius);
    transition: var(--bndg-transition);
}
.bndg-service-item:hover { border-color: var(--bndg-primary); }
.bndg-service-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.1;
    color: var(--bndg-primary);
}

/* Tables */
.bndg-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--bndg-radius);
    border: 1px solid var(--bndg-neutral);
}
.bndg-table {
    width: 100%;
    border-collapse: collapse;
    min-width:min(500px,100%);
}
.bndg-table th, .bndg-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--bndg-neutral);
}
.bndg-table th { background: var(--bndg-neutral); font-family: "Avenir Next Condensed", sans-serif; }

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

/* Legal & Knowledge */
.bndg-legal-toc {
    background: var(--bndg-neutral);
    padding: 20px;
    border-radius: var(--bndg-radius);
    margin-bottom: 40px;
}
.bndg-legal-toc ul { list-style: none; padding: 0; }
.bndg-legal-toc a { color: var(--bndg-primary); text-decoration: none; }
.bndg-legal-note {
    font-size: 0.85rem;
    font-style: italic;
    padding: 1rem;
    background: var(--bndg-accent);
    border-radius: var(--bndg-radius);
}

/* Footer */
.bndg-footer {
    background: var(--bndg-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}
.bndg-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.bndg-footer-col h4 { color: white; margin-bottom: 20px; font-size: 1rem; }
.bndg-footer-col ul { list-style: none; padding: 0; }
.bndg-footer-col a { color: var(--bndg-neutral); text-decoration: none; font-size: 0.9rem; display: block; margin-bottom: 8px; }
.bndg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

/* Cookie Banner */
.bndg-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    color: var(--bndg-text);
    padding: 24px;
    border-radius: var(--bndg-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
}
.bndg-cookie-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px,100%), 1fr));
    gap: 10px;
    margin-top: 20px;
}
.bndg-cookie-panel {
    background: var(--bndg-neutral);
    padding: 20px;
    margin-top: 20px;
    border-radius: var(--bndg-radius);
}
.bndg-cookie-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Decorative */
.bndg-badge {
    width: 120px;
    height: 120px;
    position: relative;
    animation: bndg-rotate 20s linear infinite;
}
@keyframes bndg-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.bndg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--bndg-accent) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.bndg-honey { display: none; }

/* Focus & Accessibility */
:focus-visible { outline: 3px solid var(--bndg-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, .bndg-nav, .bndg-badge { animation: none !important; transition: none !important; }
}

/* Breadcrumbs */
.bndg-breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
}
.bndg-breadcrumbs a { color: var(--bndg-primary); text-decoration: none; }

.bndg-figure { margin: 2rem 0; position: relative; }
.bndg-figure img { width: 100%; height: auto; border-radius: var(--bndg-radius); }

.bndg-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}
.bndg-form-group { display: flex; flex-direction: column; gap: 8px; }
.bndg-form input, .bndg-form textarea {
    padding: 12px;
    border: 1px solid var(--bndg-neutral);
    border-radius: var(--bndg-radius);
    font-family: inherit;
}

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


/* сборка: прижать к краю - проверка ловила за краем экрана */
@media (max-width:1439px){.bndg-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}}
