/* 
Art Direction 2026: Cinnabar Cold-Light
Palette: Primary oklch(60% 0.18 28), BG oklch(98% 0.01 220), Neutral oklch(92% 0.02 220), Dark oklch(20% 0.03 220)
Typography: Headings - Futura, Century Gothic, Avenir, sans-serif (Geometric); Body - system-ui, sans-serif
Composition: Massive numeric anchors (01, 02) as structural guides, 1px hair-lines, editorial rhythm
Form: Sharp corners (0px), precise linear structure, high-contrast accents
Animation: Links underline expanding left-to-right, smooth section fade-in
*/
:root {
    --bmch-primary: oklch(60% 0.18 28);
    --bmch-bg: oklch(98% 0.01 220);
    --bmch-neutral: oklch(92% 0.02 220);
    --bmch-dark: oklch(20% 0.03 220);
    --bmch-accent-light: oklch(95% 0.01 220);
    --bmch-border: oklch(80% 0.02 220);
    --bmch-text: oklch(25% 0.03 220);
    --bmch-text-muted: oklch(45% 0.02 220);
    --bmch-container-max: 1240px;
    --bmch-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { 
    overflow-x: clip; 
    background-color: var(--bmch-bg); 
    color: var(--bmch-text); 
    margin: 0; 
    font-family: system-ui, -apple-system, sans-serif; 
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

/* Typography */
h1, h2, h3, h4 {
    font-family: Futura, "Century Gothic", Avenir, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.bmch-prose { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.bmch-prose p { margin-bottom: 1.5rem; }

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

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

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

.bmch-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.bmch-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.bmch-nav-link {
    text-decoration: none;
    color: var(--bmch-text);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}
.bmch-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bmch-primary);
    transition: width var(--bmch-transition);
}
.bmch-nav-link:hover::after { width: 100%; }

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

/* Mobile Menu State */
@media (max-width: 959px) {
    .bmch-menu-toggle { display: block; }
    .bmch-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bmch-bg);
        flex-direction: column;
        justify-content: center;
        transition: right var(--bmch-transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 110;
    }
    .bmch-nav.bmch-open { right: 0; }
    .bmch-nav-list { flex-direction: column; text-align: center; }
}

/* Buttons */
.bmch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid var(--bmch-dark);
    text-decoration: none;
    font-family: Futura, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all var(--bmch-transition);
    cursor: pointer;
    background: none;
    color: var(--bmch-dark);
}
.bmch-btn-primary {
    background: var(--bmch-primary);
    color: white;
    border-color: var(--bmch-primary);
}
.bmch-btn:hover {
    background: var(--bmch-dark);
    color: white;
}
.bmch-btn-primary:hover {
    background: oklch(50% 0.18 28);
}

/* Hero */
.bmch-hero {
    padding: 100px 0;
    border-bottom: 1px solid var(--bmch-border);
}
.bmch-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) { .bmch-hero-grid { grid-template-columns: 1fr; } }

.bmch-lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--bmch-text-muted);
    margin-bottom: 2rem;
}

/* Facts & Numeric Anchors */
.bmch-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 1px;
    background: var(--bmch-border);
    border: 1px solid var(--bmch-border);
}
.bmch-fact-card {
    background: var(--bmch-bg);
    padding: 40px 20px;
    text-align: center;
    position: relative;
}
.bmch-fact-num {
    display: block;
    font-family: Futura, sans-serif;
    font-size: 3rem;
    color: var(--bmch-primary);
    line-height: 1;
    margin-bottom: 10px;
}

/* Services */
.bmch-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 40px;
    padding: 60px 0;
}
.bmch-service-item {
    padding: 30px;
    border: 1px solid var(--bmch-border);
    transition: border-color var(--bmch-transition);
}
.bmch-service-item:hover { border-color: var(--bmch-primary); }
.bmch-service-idx {
    font-family: Futura, sans-serif;
    font-size: 1rem;
    color: var(--bmch-primary);
    display: block;
    margin-bottom: 1rem;
}

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

/* FAQ */
.bmch-faq-group { margin-bottom: 40px; }
.bmch-faq-item {
    border-bottom: 1px solid var(--bmch-border);
}
.bmch-faq-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bmch-faq-item summary::-webkit-details-marker { display: none; }
.bmch-faq-item p { padding-bottom: 20px; color: var(--bmch-text-muted); }

/* Legal & Knowledge */
.bmch-legal-nav {
    margin-bottom: 3rem;
    padding: 20px;
    background: var(--bmch-neutral);
    border: 1px solid var(--bmch-border);
}
.bmch-legal-nav a {
    display: block;
    margin-bottom: 10px;
    color: var(--bmch-text);
    text-decoration: none;
    font-size: 0.9rem;
}
.bmch-legal-nav a:hover { color: var(--bmch-primary); }
.bmch-legal-note {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 3px solid var(--bmch-primary);
}

/* Cookie Banner */
.bmch-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border: 2px solid var(--bmch-dark);
    padding: 24px;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
}
.bmch-cookie-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px,100%), 1fr));
    gap: 10px;
    margin-top: 20px;
}
.bmch-cookie-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bmch-border);
}
.bmch-cookie-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Form */
.bmch-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}
.bmch-form-group { display: flex; flex-direction: column; gap: 8px; }
.bmch-form-group label { font-weight: 600; font-size: 0.9rem; }
.bmch-form-group input, .bmch-form-group textarea {
    padding: 12px;
    border: 1px solid var(--bmch-border);
    font-family: inherit;
}
.bmch-honey { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

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

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

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


/* сборка: контраст - текст был цвета фона */
.bmch-footer > .bmch-container > .bmch-footer-bottom > div > .bmch-btn:not(:hover):not(:focus-visible){color:rgb(241 250 253)!important;-webkit-text-fill-color:rgb(241 250 253)!important;border-color:rgb(241 250 253)!important}
