/* 
Art Direction 2026: Plum Contrast
Palette: Primary oklch(45% 0.18 330), BG oklch(98% 0.01 330), Neutral oklch(92% 0.02 330), Dark oklch(20% 0.03 330)
Typography: Headings - Futura, Century Gothic, Avenir, sans-serif; Body - system-ui, sans-serif
Composition: High-contrast rhythm, massive numeric anchors as structural guides, thin 1px hair-lines
Form: Sharp corners (0px), linear editorial structure, high-contrast saturated hero/footer
Animation: Links underline expanding left-to-right, smooth radial glows
*/
:root {
    --bndh-primary: oklch(45% 0.18 330);
    --bndh-bg: oklch(98% 0.01 330);
    --bndh-neutral: oklch(92% 0.02 330);
    --bndh-dark: oklch(20% 0.03 330);
    --bndh-white: #ffffff;
    --bndh-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { 
    overflow-x: clip; 
    margin: 0; 
    padding: 0; 
    background-color: var(--bndh-bg); 
    color: var(--bndh-dark);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    scroll-behavior: smooth;
}

[hidden] { display: none !important; }

.bndh-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    min-width: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: Futura, "Century Gothic", Avenir, sans-serif;
    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(2rem, 5vw, 3rem); }

/* Links & Buttons */
a {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: var(--bndh-transition);
}

.bndh-prose a {
    color: var(--bndh-primary);
    font-weight: 600;
}

.bndh-link-anim::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--bndh-transition);
}

.bndh-link-anim:hover::after { width: 100%; }

.bndh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--bndh-primary);
    color: var(--bndh-white);
    font-family: Futura, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.875rem;
    border: 1px solid var(--bndh-primary);
    cursor: pointer;
    transition: var(--bndh-transition);
    text-decoration: none;
}

.bndh-btn:hover {
    background-color: transparent;
    color: var(--bndh-primary);
}

/* Topbar & Header */
.bndh-topbar {
    background: var(--bndh-neutral);
    font-size: 0.75rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--bndh-dark);
}

.bndh-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bndh-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--bndh-dark);
    position: sticky;
    top: 0;
    background: var(--bndh-bg);
    z-index: 100;
}

.bndh-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bndh-logo {
    font-family: Futura, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.bndh-logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.bndh-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bndh-nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Mobile Menu */
@media (max-width: 959px) {
    #bndh-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bndh-bg);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--bndh-transition);
    }

    #bndh-menu.bndh-open {
        transform: translateX(0);
    }

    .bndh-nav-list {
        flex-direction: column;
        text-align: center;
        font-size: 1.5rem;
    }
}

@media (min-width: 960px) {
    [data-bndh-menu-toggle] { display: none; }
}

/* Hero & Sections */
.bndh-hero {
    background-color: var(--bndh-primary);
    color: var(--bndh-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bndh-hero-content {
    position: relative;
    z-index: 2;
}

.bndh-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, oklch(55% 0.2 330) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.bndh-section { padding: 80px 0; border-bottom: 1px solid var(--bndh-neutral); }
.bndh-section-alt { background: var(--bndh-neutral); }

/* Numeric Anchors & Services */
.bndh-grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 40px;
}

.bndh-service-card {
    padding: 40px;
    border: 1px solid var(--bndh-dark);
    position: relative;
    transition: var(--bndh-transition);
}

.bndh-service-card:hover {
    background: var(--bndh-dark);
    color: var(--bndh-white);
}

.bndh-service-num {
    font-family: Futura, sans-serif;
    font-size: 4rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.15;
    line-height: 1;
}

/* Facts */
.bndh-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 20px;
    margin: 40px 0;
}

.bndh-fact-item {
    padding: 30px;
    border: 1px solid var(--bndh-dark);
    text-align: center;
}

.bndh-fact-val {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: Futura, sans-serif;
    color: var(--bndh-primary);
}

/* Tables */
.bndh-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--bndh-dark);
}

.bndh-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bndh-table th, .bndh-table td {
    padding: 15px;
    border-bottom: 1px solid var(--bndh-neutral);
}

.bndh-table th { background: var(--bndh-neutral); }

/* FAQ */
.bndh-faq-group { margin-bottom: 40px; }
.bndh-faq-item {
    border-bottom: 1px solid var(--bndh-neutral);
}

.bndh-faq-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bndh-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
}

.bndh-faq-item[open] summary::after { content: '−'; }
.bndh-faq-content { padding: 0 0 20px 0; }

/* Guides & Prose */
.bndh-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr));
    gap: 30px;
}

.bndh-guide-card {
    border: 1px solid var(--bndh-dark);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.bndh-kicker {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--bndh-primary);
    margin-bottom: 10px;
}

.bndh-read-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 20px;
}

.bndh-prose {
    max-width: 800px;
    margin: 0 auto;
}

.bndh-prose p { margin-bottom: 1.5rem; overflow-wrap: anywhere; }

/* Legal Pages */
.bndh-legal-toc {
    margin: 30px 0;
    padding: 20px;
    background: var(--bndh-neutral);
    border: 1px solid var(--bndh-dark);
}

.bndh-legal-toc ul { list-style: none; padding: 0; }
.bndh-legal-toc a { display: block; padding: 5px 0; font-size: 0.9rem; }

.bndh-legal-note {
    font-style: italic;
    font-size: 0.85rem;
    margin: 20px 0;
    padding: 10px;
    border-left: 3px solid var(--bndh-primary);
}

/* Footer */
.bndh-footer {
    background: var(--bndh-primary);
    color: var(--bndh-white);
    padding: 80px 0 40px;
}

.bndh-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.bndh-footer-col h4 {
    color: var(--bndh-white);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.bndh-footer-links {
    list-style: none;
    padding: 0;
}

.bndh-footer-links a {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.bndh-footer-links a:hover { opacity: 1; }

.bndh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Forms */
.bndh-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}

.bndh-field { display: flex; flex-direction: column; gap: 5px; }
.bndh-field label { font-weight: 600; font-size: 0.9rem; }
.bndh-field input, .bndh-field textarea {
    padding: 12px;
    border: 1px solid var(--bndh-dark);
    font-family: inherit;
    min-width: 0;
}

.bndh-honey { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Cookie Banner */
.bndh-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bndh-white);
    border: 2px solid var(--bndh-dark);
    padding: 30px;
    z-index: 2000;
    max-width: 600px;
    margin: 0 auto;
}

.bndh-cookie-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bndh-cookie-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bndh-neutral);
}

.bndh-cookie-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Badge */
.bndh-badge {
    width: 120px;
    height: 120px;
    position: absolute;
    animation: bndh-rotate 20s linear infinite;
}

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

/* Accessibility & Utils */
.bndh-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--bndh-primary);
    color: white;
    padding: 10px;
    z-index: 2000;
}

.bndh-skip-link:focus { top: 0; }

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

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

.bndh-breadcrumbs {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.bndh-figure {
    margin: 30px 0;
    position: relative;
}

.bndh-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--bndh-dark);
}

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


/* сборка: контраст - текст был цвета фона */
.bndh-btn:not(:hover):not(:focus-visible){color:rgb(253 246 252)!important;-webkit-text-fill-color:rgb(253 246 252)!important;border-color:rgb(253 246 252)!important}
.bndh-hero > .bndh-container.bndh-hero-content > .bndh-kicker:not(:hover):not(:focus-visible){color:rgb(253 246 252)!important;-webkit-text-fill-color:rgb(253 246 252)!important}
.bndh-hero > .bndh-hero-content > .bndh-kicker:not(:hover):not(:focus-visible){color:rgb(253 246 252)!important;-webkit-text-fill-color:rgb(253 246 252)!important}
.bndh-section-alt > .bndh-prose > strong:not(:hover):not(:focus-visible){color:rgb(30 17 29)!important;-webkit-text-fill-color:rgb(30 17 29)!important}
.bndh-section-alt > .bndh-prose:not(:hover):not(:focus-visible){color:rgb(30 17 29)!important;-webkit-text-fill-color:rgb(30 17 29)!important}
