/* 
Art Direction 2026: Indigo Cold Light
Palette: Primary oklch(45% 0.18 275), BG oklch(98% 0.01 275), Neutral oklch(94% 0.02 275), Dark oklch(25% 0.05 275)
Typography: Headings/Body - Charter, Bitstream Charter, Georgia, serif; Captions - italic
Composition: Massive numeric anchors (01, 02) as structural guides, high-density editorial rhythm
Form: Large radius (20px+), pill-shaped buttons, soft editorial rhythm
Animation: Continuous slow rotation of the circular SVG badge, smooth fade-ins
*/

:root {
    --knst-primary: oklch(45% 0.18 275);
    --knst-bg: oklch(98% 0.01 275);
    --knst-neutral: oklch(94% 0.02 275);
    --knst-dark: oklch(25% 0.05 275);
    --knst-accent: oklch(70% 0.12 275);
    --knst-white: #ffffff;
    --knst-radius: 24px;
    --knst-radius-sm: 12px;
    --knst-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --knst-font-main: Charter, "Bitstream Charter", Georgia, serif;
}

html, body { overflow-x: clip; background: var(--knst-bg); color: var(--knst-dark); font-family: var(--knst-font-main); margin: 0; padding: 0; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { line-height: 1.7; -webkit-font-smoothing: antialiased; }

.knst-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.knst-prose { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.knst-prose h1, .knst-prose h2, .knst-prose h3 { line-height: 1.2; margin-top: 2rem; margin-bottom: 1rem; color: var(--knst-dark); }
.knst-prose p { margin-bottom: 1.5rem; }

.knst-btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 12px 28px; border-radius: 50px; font-weight: 600; 
    text-decoration: none; cursor: pointer; transition: var(--knst-transition); 
    border: 2px solid transparent; font-family: var(--knst-font-main);
    min-height: 44px; box-sizing: border-box;
}
.knst-btn-primary { background: var(--knst-primary); color: var(--knst-white); }
.knst-btn-primary:hover { background: var(--knst-accent); transform: translateY(-2px); }
.knst-btn-outline { border-color: var(--knst-primary); color: var(--knst-primary); background: transparent; }
.knst-btn-outline:hover { background: var(--knst-primary); color: var(--knst-white); }

.knst-skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.knst-skip-link:focus { position: fixed; top: 0; left: 0; width: auto; height: auto; padding: 20px; background: var(--knst-primary); color: var(--knst-white); z-index: 1000; }

.knst-topbar { 
    background: var(--knst-neutral); font-size: 0.85rem; padding: 8px 0; 
    border-bottom: 1px solid oklch(90% 0.02 275); font-style: italic;
}
.knst-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

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

.knst-nav { display: flex; align-items: center; gap: 30px; }
.knst-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
.knst-nav-link { text-decoration: none; color: var(--knst-dark); font-weight: 500; transition: var(--knst-transition); }
.knst-nav-link:hover { color: var(--knst-primary); }

[data-knst-menu-toggle] { 
    display: none; background: none; border: none; cursor: pointer; 
    padding: 10px; font-family: var(--knst-font-main); font-size: 1rem; 
}

.knst-hero { padding: 80px 0; position: relative; overflow: hidden; }
.knst-hero-content { max-width: 800px; position: relative; z-index: 2; }
.knst-hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; margin-bottom: 24px; }

.knst-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); gap: 30px; margin: 60px 0; }
.knst-fact-card { 
    background: var(--knst-white); padding: 40px; border-radius: var(--knst-radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: var(--knst-transition);
    position: relative; overflow: hidden;
}
.knst-fact-card:hover { transform: translateY(-10px); }
.knst-fact-num { font-size: 3rem; font-weight: 700; color: var(--knst-primary); display: block; margin-bottom: 10px; }

.knst-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 40px; }
.knst-service-item { 
    padding: 40px; border-radius: var(--knst-radius); background: var(--knst-white); 
    border: 1px solid var(--knst-neutral); transition: var(--knst-transition);
    position: relative;
}
.knst-service-item:hover { border-color: var(--knst-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.knst-service-num { 
    font-size: 5rem; font-weight: 800; position: absolute; top: -10px; right: 20px; 
    opacity: 0.1; color: var(--knst-primary); pointer-events: none;
}

.knst-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--knst-radius-sm); border: 1px solid var(--knst-neutral); }
.knst-table { width: 100%; border-collapse: collapse; background: var(--knst-white); text-align: left; }
.knst-table th, .knst-table td { padding: 16px; border-bottom: 1px solid var(--knst-neutral); }
.knst-table th { background: var(--knst-neutral); font-weight: 600; }

.knst-faq-item { margin-bottom: 16px; border-radius: var(--knst-radius-sm); background: var(--knst-white); border: 1px solid var(--knst-neutral); }
.knst-faq-item summary { padding: 20px; cursor: pointer; font-weight: 600; list-style: none; outline: none; }
.knst-faq-item summary::-webkit-details-marker { display: none; }
.knst-faq-item .knst-faq-content { padding: 0 20px 20px; opacity: 0.8; }

.knst-guide-card { 
    padding: 30px; border-radius: var(--knst-radius); background: var(--knst-neutral); 
    text-decoration: none; color: inherit; display: block; transition: var(--knst-transition);
}
.knst-guide-card:hover { background: var(--knst-white); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.knst-guide-kicker { font-style: italic; font-size: 0.9rem; color: var(--knst-primary); display: block; margin-bottom: 8px; }
.knst-guide-meta { font-size: 0.8rem; opacity: 0.6; display: block; margin-top: 12px; }

.knst-legal-toc { background: var(--knst-neutral); padding: 30px; border-radius: var(--knst-radius); margin-bottom: 40px; }
.knst-legal-toc ul { list-style: none; padding: 0; margin: 0; }
.knst-legal-toc a { color: var(--knst-dark); text-decoration: none; display: block; padding: 8px 0; }
.knst-legal-toc a:hover { color: var(--knst-primary); }

.knst-footer { padding: 80px 0 40px; background: var(--knst-dark); color: var(--knst-white); }
.knst-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 40px; margin-bottom: 60px; }
.knst-footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.9; }
.knst-footer-col ul { list-style: none; padding: 0; margin: 0; }
.knst-footer-col a { color: var(--knst-neutral); text-decoration: none; display: block; margin-bottom: 10px; font-size: 0.9rem; transition: var(--knst-transition); }
.knst-footer-col a:hover { color: var(--knst-white); }
.knst-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; font-size: 0.8rem; opacity: 0.6; line-height: 1.8; }

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

.knst-badge { 
    position: fixed; bottom: 40px; right: 40px; width: 120px; height: 120px; 
    z-index: 90; animation: knst-rotate 20s linear infinite; pointer-events: none;
}
@keyframes knst-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.knst-form { display: grid; gap: 20px; max-width: 600px; }
.knst-form-group { display: flex; flex-direction: column; gap: 8px; }
.knst-form-group label { font-weight: 600; font-size: 0.9rem; }
.knst-form-group input, .knst-form-group textarea { 
    padding: 12px; border-radius: var(--knst-radius-sm); border: 1px solid var(--knst-neutral); 
    font-family: var(--knst-font-main); font-size: 1rem;
}
.knst-honey { position: absolute; clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; }

.knst-breadcrumbs { display: flex; list-style: none; padding: 0; margin: 20px 0; gap: 10px; font-size: 0.9rem; font-style: italic; }
.knst-breadcrumbs a { color: var(--knst-primary); text-decoration: none; }

@media (max-width: 959px) {
    [data-knst-menu-toggle] { display: block; }
    .knst-nav { 
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; 
        background: var(--knst-white); flex-direction: column; justify-content: center; 
        transition: var(--knst-transition); box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }
    .knst-nav.knst-open { right: 0; }
    .knst-nav-list { flex-direction: column; align-items: center; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-delay: -1ms !important; animation-duration: 1ms !important; transition-duration: 0s !important; }
    .knst-badge { animation: none; }
}

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


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