/* 
Art Direction 2026: Cinnabar Paper
Palette: Primary oklch(60% 0.15 28), BG oklch(97% 0.02 80), Accent oklch(92% 0.03 80), Dark oklch(25% 0.04 28)
Typography: All-serif stack (Charter, Georgia, serif); Captions: italic
Composition: Sticky-media layout (fixed left image, scrolling right text), sharp 1px lines, editorial rhythm
Form: Zero radius (sharp corners), high-contrast thin dividers
Animation: Smooth fade-in sections on scroll, continuous slow rotation of circular SVG badge
*/
:root {
    --brsh-color-primary: oklch(60% 0.15 28);
    --brsh-color-bg: oklch(97% 0.02 80);
    --brsh-color-accent: oklch(92% 0.03 80);
    --brsh-color-dark: oklch(25% 0.04 28);
    --brsh-border: 1px solid var(--brsh-color-dark);
    --brsh-font-main: "Bitstream Charter", "Charter", "Georgia", serif;
    --brsh-font-caption: italic var(--brsh-font-main);
    --brsh-transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html, body { overflow-x: clip; background-color: var(--brsh-color-bg); color: var(--brsh-color-dark); font-family: var(--brsh-font-main); line-height: 1.7; margin: 0; }
[hidden] { display: none !important; }

.brsh-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.brsh-prose { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.brsh-prose h1, .brsh-prose h2, .brsh-prose h3 { line-height: 1.2; margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.brsh-prose h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.brsh-prose h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); border-bottom: var(--brsh-border); padding-bottom: 0.5rem; }
.brsh-prose p { margin-bottom: 1.5rem; }

.brsh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: var(--brsh-border); background: transparent; color: var(--brsh-color-dark); text-decoration: none; font-family: var(--brsh-font-main); transition: var(--brsh-transition); cursor: pointer; font-size: 1rem; }
.brsh-btn:hover, .brsh-btn:focus-visible { background: var(--brsh-color-dark); color: var(--brsh-color-bg); }
.brsh-btn-primary { background: var(--brsh-color-primary); color: white; border-color: var(--brsh-color-primary); }
.brsh-btn-primary:hover { background: var(--brsh-color-dark); border-color: var(--brsh-color-dark); color: white; }

.brsh-topbar { font-size: 0.85rem; border-bottom: var(--brsh-border); padding: 8px 0; font-family: var(--brsh-font-caption); }
.brsh-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.brsh-header { padding: 20px 0; border-bottom: var(--brsh-border); position: sticky; top: 0; background: var(--brsh-color-bg); z-index: 100; }
.brsh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brsh-logo { text-decoration: none; color: var(--brsh-color-dark); display: flex; flex-direction: column; }
.brsh-logo-brand { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.brsh-logo-domain { font-size: 0.7rem; font-family: var(--brsh-font-caption); opacity: 0.7; }

#brsh-menu { display: flex; align-items: center; gap: 30px; }
#brsh-menu a { text-decoration: none; color: var(--brsh-color-dark); transition: var(--brsh-transition); font-size: 0.95rem; }
#brsh-menu a:hover { color: var(--brsh-color-primary); }
.brsh-lang-switch { display: flex; gap: 10px; border-left: var(--brsh-border); padding-left: 20px; }

.brsh-menu-toggle { display: none; background: none; border: var(--brsh-border); padding: 8px 12px; cursor: pointer; font-family: var(--brsh-font-main); }

@media (max-width: 959px) {
    .brsh-menu-toggle { display: block; }
    #brsh-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--brsh-color-bg); border-left: var(--brsh-border); flex-direction: column; align-items: flex-start; padding: 80px 40px; transition: var(--brsh-transition); z-index: 101; }
    #brsh-menu.brsh-open { right: 0; }
    .brsh-lang-switch { border: none; padding: 0; margin-top: 20px; }
}

.brsh-hero { padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.brsh-hero-content { z-index: 2; }
.brsh-hero-img { width: 100%; height: auto; filter: grayscale(0.2); }

.brsh-sticky-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: var(--brsh-border); border-bottom: var(--brsh-border); }
.brsh-sticky-media { position: sticky; top: 100px; height: calc(100vh - 100px); overflow: hidden; }
.brsh-sticky-media img { width: 100%; height: 100%; object-fit: cover; }
.brsh-sticky-text { padding: 60px 40px; }

.brsh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 60px 0; }
.brsh-fact-card { border: var(--brsh-border); padding: 30px; text-align: center; transition: var(--brsh-transition); }
.brsh-fact-card:hover { background: var(--brsh-color-accent); }
.brsh-fact-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--brsh-color-primary); }
.brsh-fact-label { font-family: var(--brsh-font-caption); font-size: 0.9rem; }

.brsh-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 60px 0; }
.brsh-service-item { border: var(--brsh-border); padding: 40px; position: relative; transition: var(--brsh-transition); }
.brsh-service-num { position: absolute; top: 20px; right: 20px; font-size: 0.8rem; opacity: 0.4; }
.brsh-service-item:hover { border-color: var(--brsh-color-primary); transform: translateY(-5px); }

.brsh-table-wrap { overflow-x: auto; margin: 30px 0; border: var(--brsh-border); }
.brsh-table { width: 100%; border-collapse: collapse; text-align: left; }
.brsh-table th, .brsh-table td { padding: 15px; border-bottom: var(--brsh-border); }
.brsh-table th { background: var(--brsh-color-accent); font-family: var(--brsh-font-main); }

.brsh-faq-group { margin-bottom: 40px; }
.brsh-faq-item { border-bottom: var(--brsh-border); }
.brsh-faq-item summary { padding: 20px 0; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.brsh-faq-item summary::after { content: '+'; font-size: 1.2rem; }
.brsh-faq-item[open] summary::after { content: '−'; }
.brsh-faq-item p { padding: 0 0 20px 0; opacity: 0.8; }

.brsh-guide-card { border: var(--brsh-border); padding: 30px; text-decoration: none; color: inherit; display: block; transition: var(--brsh-transition); }
.brsh-guide-card:hover { background: var(--brsh-color-accent); }
.brsh-guide-kicker { font-size: 0.8rem; text-transform: uppercase; color: var(--brsh-color-primary); display: block; margin-bottom: 10px; }
.brsh-guide-meta { font-family: var(--brsh-font-caption); font-size: 0.8rem; margin-bottom: 15px; display: block; }

.brsh-form { display: grid; gap: 20px; max-width: 600px; }
.brsh-form-group { display: flex; flex-direction: column; gap: 8px; }
.brsh-form-group label { font-weight: 700; font-size: 0.9rem; }
.brsh-form-group input, .brsh-form-group textarea { padding: 12px; border: var(--brsh-border); background: transparent; font-family: var(--brsh-font-main); }
.brsh-honey { position: absolute; left: -9999px; }

.brsh-footer { padding: 60px 0 30px; border-top: var(--brsh-border); margin-top: 60px; font-size: 0.9rem; }
.brsh-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.brsh-footer-col h4 { font-size: 1rem; margin-bottom: 20px; border-bottom: var(--brsh-border); display: inline-block; }
.brsh-footer-col ul { list-style: none; padding: 0; margin: 0; }
.brsh-footer-col li { margin-bottom: 10px; }
.brsh-footer-col a { color: inherit; text-decoration: none; opacity: 0.8; transition: var(--brsh-transition); }
.brsh-footer-col a:hover { opacity: 1; color: var(--brsh-color-primary); }
.brsh-footer-bottom { border-top: var(--brsh-border); padding-top: 30px; font-size: 0.8rem; opacity: 0.7; }

.brsh-cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: white; border: var(--brsh-border); padding: 25px; z-index: 1000; max-width: 600px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.brsh-cookie-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.brsh-cookie-panel { margin-top: 20px; border-top: var(--brsh-border); padding-top: 20px; }
.brsh-cookie-cat { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: 0.9rem; }

.brsh-badge { position: fixed; bottom: 20px; right: 20px; width: 80px; height: 80px; animation: brsh-rotate 20s linear infinite; z-index: 90; opacity: 0.6; }
@keyframes brsh-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.brsh-skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.brsh-skip-link:focus { position: static; width: auto; height: auto; padding: 10px; background: var(--brsh-color-primary); color: white; }

.brsh-figure { margin: 30px 0; position: relative; }
.brsh-figure img { width: 100%; height: auto; }
.brsh-figure figcaption { font-family: var(--brsh-font-caption); font-size: 0.85rem; margin-top: 10px; opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

@media (max-width: 768px) {
    .brsh-hero, .brsh-sticky-section { grid-template-columns: 1fr; }
    .brsh-sticky-media { position: relative; top: 0; height: 300px; }
    .brsh-header-inner { flex-direction: column; align-items: flex-start; }
    .brsh-footer-grid { grid-template-columns: 1fr; }
}

/* сборка: защита от переполнения и служебные правила (промпт, разделы 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}
.brsh-table-wrap{overflow-x:auto;max-width:100%}
.brsh-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:959px){html.js :where(#brsh-menu):not(.brsh-open){display:none!important}:where(header):has(#brsh-menu){position:relative}:where(#brsh-menu).brsh-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(--brsh-bg,Canvas);color:var(--brsh-text,CanvasText);box-shadow:0 12px 24px rgb(0 0 0 / .25)}:where(#brsh-menu).brsh-open a{min-height:44px;display:flex;align-items:center}}
html:not(.js) #brsh-menu{display:flex!important;flex-wrap:wrap;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important}
.brsh-breadcrumbs{font-size:.875rem;padding-block:1rem}.brsh-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0;padding:0}.brsh-breadcrumbs li+li::before{content:"/";margin-right:.5rem;opacity:.5}
.brsh-legal-note{border-left:3px solid currentColor;padding:.75rem 1rem;margin:1rem 0}
.brsh-sitemap ul{columns:2 16rem;padding-left:1.1rem}

