/* 
Art Direction 2026: Warm Editorial
Palette: OKLCH Mustard theme (Primary: oklch(82% 0.14 95), BG: oklch(97% 0.02 90), Accent: oklch(35% 0.05 90))
Typography: Book Serif (Charter, Georgia) for all text; italic for captions.
Composition: Sticky-media layout (fixed left imagery, scrolling right content).
Form: Soft corners (6-10px), warm paper-like textures, dark accent bars.
Animation: Continuous slow rotation of circular SVG badge.
Rhythm: High-contrast light/dark alternating sections with generous white space.
*/
:root {
    --btsm-color-primary: oklch(82% 0.14 95);
    --btsm-color-bg: oklch(97% 0.02 90);
    --btsm-color-text: oklch(30% 0.03 90);
    --btsm-color-accent: oklch(35% 0.05 90);
    --btsm-color-border: oklch(85% 0.05 95);
    --btsm-font-serif: "Charter", "Bitstream Charter", "Georgia", serif;
    --btsm-radius: 8px;
    --btsm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { 
    overflow-x: clip; 
    background-color: var(--btsm-color-bg); 
    color: var(--btsm-color-text); 
    font-family: var(--btsm-font-serif); 
    line-height: 1.7; 
    margin: 0; 
}

[hidden] { display: none !important; }

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

/* Accessibility & Basics */
.btsm-skip-link { 
    position: absolute; 
    top: -100px; 
    left: 0; 
    background: var(--btsm-color-primary); 
    padding: 10px; 
    z-index: 1000; 
    transition: top 0.2s; 
}
.btsm-skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--btsm-color-primary); outline-offset: 4px; }

/* Topbar & Header */
.btsm-topbar { 
    background: var(--btsm-color-accent); 
    color: white; 
    font-size: clamp(0.75rem, 2vw, 0.875rem); 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.btsm-topbar-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.btsm-header { 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: var(--btsm-color-bg); 
    border-bottom: 1px solid var(--btsm-color-border); 
}
.btsm-header-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 20px; 
}
.btsm-logo { 
    display: flex; 
    flex-direction: column; 
    text-decoration: none; 
    color: var(--btsm-color-text); 
}
.btsm-logo-name { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
    font-weight: 700; 
    line-height: 1.1; 
}
.btsm-logo-domain { 
    font-size: 0.7rem; 
    text-transform: lowercase; 
    opacity: 0.7; 
}

.btsm-nav { 
    display: flex; 
    gap: 24px; 
    align-items: center; 
}
.btsm-nav-link { 
    text-decoration: none; 
    color: var(--btsm-color-text); 
    font-size: 0.95rem; 
    transition: var(--btsm-transition); 
}
.btsm-nav-link:hover { color: var(--btsm-color-accent); }

.btsm-lang-switch { 
    display: flex; 
    gap: 8px; 
    font-size: 0.85rem; 
}
.btsm-lang-link { 
    text-decoration: none; 
    color: var(--btsm-color-text); 
    font-weight: bold; 
}

.btsm-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 20px; 
    border-radius: var(--btsm-radius); 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--btsm-transition); 
    cursor: pointer; 
    border: none; 
}
.btsm-btn-primary { 
    background: var(--btsm-color-primary); 
    color: var(--btsm-color-text); 
}
.btsm-btn-primary:hover { filter: brightness(0.9); }

.btsm-menu-toggle { 
    display: none; 
    background: none; 
    border: 1px solid var(--btsm-color-border); 
    padding: 8px; 
    border-radius: var(--btsm-radius); 
    cursor: pointer; 
}

/* Mobile Menu */
@media (max-width: 959px) {
    .btsm-menu-toggle { display: block; }
    .btsm-nav { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: var(--btsm-color-bg); 
        flex-direction: column; 
        padding: 20px; 
        border-bottom: 1px solid var(--btsm-color-border); 
        display: none; 
    }
    .btsm-nav.btsm-open { display: flex; }
}

/* Hero & Layout */
.btsm-hero { 
    padding: 60px 0; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; 
}
.btsm-hero-text h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem); 
    line-height: 1.15; 
    margin: 0 0 20px 0; 
}
.btsm-hero-lead { 
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    margin-bottom: 30px; 
}

/* Sticky Media Pattern */
.btsm-sticky-section { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    margin: 80px 0; 
}
.btsm-sticky-media { 
    position: sticky; 
    top: 120px; 
    height: fit-content; 
}
.btsm-sticky-content { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
}

/* Components */
.btsm-facts { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin: 40px 0; 
}
.btsm-fact-card { 
    padding: 24px; 
    background: var(--btsm-color-primary); 
    border-radius: var(--btsm-radius); 
    text-align: center; 
}
.btsm-fact-val { 
    display: block; 
    font-size: 2rem; 
    font-weight: 700; 
}
.btsm-fact-label { 
    font-style: italic; 
    font-size: 0.9rem; 
}

.btsm-services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.btsm-service-item { 
    padding: 30px; 
    border: 1px solid var(--btsm-color-border); 
    border-radius: var(--btsm-radius); 
    transition: var(--btsm-transition); 
    position: relative; 
}
.btsm-service-item:hover { 
    border-color: var(--btsm-color-primary); 
    background: white; 
}
.btsm-service-num { 
    font-size: 0.8rem; 
    opacity: 0.5; 
    display: block; 
    margin-bottom: 10px; 
}

.btsm-table-wrap { 
    overflow-x: auto; 
    margin: 20px 0; 
    border-radius: var(--btsm-radius); 
    border: 1px solid var(--btsm-color-border); 
}
.btsm-table { 
    width: 100%; 
    border-collapse: collapse; 
    text-align: left; 
}
.btsm-table th, .btsm-table td { 
    padding: 12px 16px; 
    border-bottom: 1px solid var(--btsm-color-border); 
}
.btsm-table th { background: oklch(90% 0.02 90); }

.btsm-faq-group { margin-bottom: 40px; }
.btsm-faq-item { 
    border-bottom: 1px solid var(--btsm-color-border); 
}
.btsm-faq-item summary { 
    padding: 15px 0; 
    cursor: pointer; 
    font-weight: 600; 
    list-style: none; 
}
.btsm-faq-item p { padding: 0 0 15px 0; }

.btsm-guide-card { 
    display: block; 
    text-decoration: none; 
    color: inherit; 
    padding: 20px; 
    border: 1px solid var(--btsm-color-border); 
    border-radius: var(--btsm-radius); 
}
.btsm-guide-kicker { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: block; 
}
.btsm-guide-readtime { 
    font-style: italic; 
    font-size: 0.8rem; 
    opacity: 0.7; 
}

.btsm-prose h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 40px 0 20px; }
.btsm-prose p { margin-bottom: 20px; overflow-wrap: anywhere; }
.btsm-legal-note { 
    font-size: 0.85rem; 
    padding: 15px; 
    background: oklch(92% 0.02 90); 
    border-left: 4px solid var(--btsm-color-primary); 
    margin: 20px 0; 
}

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

.btsm-footer { 
    background: var(--btsm-color-accent); 
    color: white; 
    padding: 60px 0 30px; 
    margin-top: 80px; 
}
.btsm-footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}
.btsm-footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; }
.btsm-footer-links { display: flex; flex-direction: column; gap: 10px; }
.btsm-footer-links a { color: white; text-decoration: none; opacity: 0.8; font-size: 0.9rem; }
.btsm-footer-links a:hover { opacity: 1; }
.btsm-footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 20px; 
    font-size: 0.8rem; 
    opacity: 0.7; 
    line-height: 1.5; 
}

/* Cookie Banner */
.btsm-cookie-banner { 
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    right: 20px; 
    background: white; 
    color: var(--btsm-color-text); 
    padding: 24px; 
    border-radius: var(--btsm-radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    z-index: 1000; 
    border: 1px solid var(--btsm-color-border); 
}
.btsm-cookie-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 20px; 
}
.btsm-cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btsm-cookie-panel { 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--btsm-color-border); 
}
.btsm-cookie-cat { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
    cursor: pointer; 
}

/* Badge & Accents */
.btsm-badge { 
    width: 120px; 
    height: 120px; 
    position: relative; 
    animation: btsm-rotate 20s linear infinite; 
}
@keyframes btsm-rotate { to { transform: rotate(360deg); } }
.btsm-badge-text { 
    font-size: 10px; 
    text-transform: uppercase; 
    font-weight: bold; 
    fill: var(--btsm-color-accent); 
}

/* Responsive fixes */
@media (max-width: 768px) {
    .btsm-hero, .btsm-sticky-section { grid-template-columns: 1fr; }
    .btsm-sticky-media { position: relative; top: 0; }
    .btsm-hero-text h1 { font-size: 2.2rem; }
}

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

