/* 
Art Direction: Plum Core (OKLCH hue 330). 
Palette: Primary Plum (0.55 0.18 330), Background Lime-White (0.98 0.01 200), Neutrals Grey-Blue (0.45 0.05 250).
Typography: Book Antiqua stack (Charter/Georgia/serif) for all text; italics for captions.
Composition: Split-screen layouts for Hero and key sections; editorial rhythm.
Shapes: Large radii (20px+), pill-shaped buttons.
Animation: Left-to-right underline growth for links; smooth section fades.
*/
:root {
    --bctr-primary: oklch(0.55 0.18 330);
    --bctr-bg: oklch(0.98 0.01 200);
    --bctr-neutral: oklch(0.45 0.05 250);
    --bctr-text: oklch(0.25 0.02 250);
    --bctr-white: #ffffff;
    --bctr-radius: 24px;
    --bctr-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bctr-font: "Charter", "Bitstream Charter", "Georgia", serif;
}

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

[hidden] { display: none !important; }

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

/* Typography */
h1, h2, h3, h4 { 
    line-height: 1.15; 
    margin-top: 0; 
    font-weight: 600; 
    overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.bctr-prose { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.bctr-prose p { margin-bottom: 1.5rem; }
.bctr-caption { font-style: italic; color: var(--bctr-neutral); font-size: 0.9rem; }

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

.bctr-topbar {
    background: var(--bctr-white);
    border-bottom: 1px solid oklch(0.9 0.01 200);
    font-size: 0.85rem;
    padding: 8px 0;
}
.bctr-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bctr-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
}
.bctr-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.bctr-logo { 
    text-decoration: none; 
    color: var(--bctr-text); 
    display: flex; 
    flex-direction: column; 
}
.bctr-logo-brand { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.bctr-logo-domain { font-size: 0.7rem; opacity: 0.6; text-transform: lowercase; }

.bctr-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.bctr-nav-link {
    text-decoration: none;
    color: var(--bctr-text);
    position: relative;
    padding-bottom: 2px;
}
.bctr-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--bctr-primary);
    transition: var(--bctr-transition);
}
.bctr-nav-link:hover::after { width: 100%; }

.bctr-lang-switch {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}
.bctr-lang-link {
    text-decoration: none;
    color: var(--bctr-neutral);
    transition: var(--bctr-transition);
}
.bctr-lang-link:hover { color: var(--bctr-primary); }

.bctr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--bctr-transition);
    cursor: pointer;
    border: none;
    font-family: var(--bctr-font);
}
.bctr-btn-primary {
    background: var(--bctr-primary);
    color: white;
}
.bctr-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.bctr-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Hero & Split-Screen */
.bctr-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
}
.bctr-split-content { padding: 40px; }
.bctr-split-media { position: relative; height: 100%; }
.bctr-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

.bctr-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 30px;
}
.bctr-service-item {
    background: white;
    padding: 40px;
    border-radius: var(--bctr-radius);
    transition: var(--bctr-transition);
    border: 1px solid transparent;
}
.bctr-service-item:hover {
    border-color: var(--bctr-primary);
    transform: translateY(-5px);
}
.bctr-service-num {
    display: block;
    font-size: 0.9rem;
    color: var(--bctr-primary);
    margin-bottom: 10px;
}

/* Tables & Legal */
.bctr-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--bctr-radius);
    border: 1px solid oklch(0.9 0.01 200);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid oklch(0.9 0.01 200);
}
th { background: oklch(0.95 0.01 200); }

.bctr-legal-nav {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: var(--bctr-radius);
}
.bctr-legal-nav ul { list-style: none; padding: 0; }
.bctr-legal-nav a { color: var(--bctr-primary); text-decoration: none; }

/* FAQ */
.bctr-faq-group { margin-bottom: 40px; }
details {
    background: white;
    margin-bottom: 10px;
    border-radius: var(--bctr-radius);
    overflow: hidden;
}
summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
.bctr-faq-content { padding: 0 20px 20px; }

/* Footer & Cookie */
.bctr-footer {
    background: oklch(0.2 0.02 250);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}
.bctr-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.bctr-footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.bctr-footer-links { list-style: none; padding: 0; }
.bctr-footer-links a { 
    color: oklch(0.8 0.02 250); 
    text-decoration: none; 
    display: block; 
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.bctr-footer-bottom {
    border-top: 1px solid oklch(0.3 0.02 250);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.bctr-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 30px;
    border-radius: var(--bctr-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
}
.bctr-cookie-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.bctr-cookie-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid oklch(0.9 0.01 200);
}
.bctr-cookie-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

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

.bctr-honey { 
    position: absolute; 
    opacity: 0; 
    pointer-events: none; 
    width: 0; height: 0; 
}

/* Mobile Menu */
@media (max-width: 959px) {
    .bctr-menu-toggle { display: block; }
    .bctr-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        left: 100%;
        background: white;
        width: 80%;
        flex-direction: column;
        justify-content: center;
        transition: var(--bctr-transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 101;
    }
    .bctr-nav.bctr-open { left: 0; }
    .bctr-split { grid-template-columns: 1fr; }
    .bctr-split-media { height: 300px; order: -1; }
}

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

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

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

