/* 
Art Direction 2026: Ochre Contrast
Palette: Primary oklch(75% 0.15 95), BG oklch(98% 0.01 95), Neutral oklch(92% 0.02 95), Dark oklch(25% 0.03 95)
Typography: Headings - Iowan Old Style, Palatino, Georgia, serif; Body - system-ui, -apple-system, sans-serif
Composition: Split-screen layout for hero/key sections, high-density editorial rhythm, 1px hair-lines
Form: Sharp corners (0px), precise linear structure, high-contrast ochre accents
Animation: Link underline expanding left-to-right, smooth section fade-ins
*/
:root {
    --klpt-primary: oklch(75% 0.15 95);
    --klpt-bg: oklch(98% 0.01 95);
    --klpt-neutral: oklch(92% 0.02 95);
    --klpt-dark: oklch(25% 0.03 95);
    --klpt-border: oklch(80% 0.05 95);
    --klpt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { 
    overflow-x: clip; 
    background: var(--klpt-bg); 
    color: var(--klpt-dark);
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

[hidden] { display: none !important; }

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

/* Typography */
h1, h2, h3, h4 {
    font-family: Iowan Old Style, Palatino, Georgia, serif;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
p { line-height: 1.7; margin-bottom: 1.5rem; overflow-wrap: anywhere; }

/* Accessibility */
.klpt-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--klpt-primary);
    color: var(--klpt-dark);
    padding: 1rem;
    z-index: 1000;
    text-decoration: none;
}
.klpt-skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--klpt-primary); outline-offset: 4px; }

/* Topbar */
.klpt-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--klpt-border);
    background: var(--klpt-bg);
}
.klpt-topbar-group { display: flex; gap: 20px; align-items: center; }

/* Header & Nav */
.klpt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--klpt-dark);
}
.klpt-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--klpt-dark);
}
.klpt-logo-brand { font-family: Iowan Old Style, serif; font-weight: bold; font-size: 1.5rem; text-transform: uppercase; }
.klpt-logo-domain { font-size: 0.7rem; opacity: 0.6; letter-spacing: 1px; }

.klpt-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.klpt-nav-link {
    text-decoration: none;
    color: var(--klpt-dark);
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
}
.klpt-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--klpt-dark);
    transition: var(--klpt-transition);
}
.klpt-nav-link:hover::after { width: 100%; }

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

/* Split-Screen Hero */
.klpt-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--klpt-primary);
    color: var(--klpt-dark);
}
.klpt-hero-content {
    padding: clamp(40px, 10vw, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.klpt-hero-image {
    position: relative;
    overflow: hidden;
}
.klpt-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Components */
.klpt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--klpt-dark);
    color: var(--klpt-bg);
    text-decoration: none;
    border: 1px solid var(--klpt-dark);
    font-weight: 500;
    transition: var(--klpt-transition);
    cursor: pointer;
}
.klpt-btn:hover { background: transparent; color: var(--klpt-dark); }

.klpt-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 1px;
    background: var(--klpt-border);
    border: 1px solid var(--klpt-border);
}
.klpt-fact-card {
    background: var(--klpt-bg);
    padding: 40px 20px;
    text-align: center;
}
.klpt-fact-val { font-family: Iowan Old Style, serif; font-size: 2.5rem; display: block; }
.klpt-fact-lab { font-size: 0.9rem; text-transform: uppercase; opacity: 0.7; }

.klpt-service-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid var(--klpt-border);
    padding: 30px 0;
    transition: var(--klpt-transition);
}
.klpt-service-item:hover { padding-left: 10px; background: var(--klpt-neutral); }
.klpt-service-num { font-family: Iowan Old Style, serif; font-size: 1.5rem; opacity: 0.5; }

.klpt-table-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--klpt-border); }
.klpt-table { width: 100%; border-collapse: collapse; text-align: left; }
.klpt-table th, .klpt-table td { padding: 15px; border-bottom: 1px solid var(--klpt-border); }
.klpt-table th { background: var(--klpt-neutral); font-family: Iowan Old Style, serif; }

.klpt-faq-group { margin-bottom: 3rem; }
.klpt-faq-item { border-bottom: 1px solid var(--klpt-border); }
.klpt-faq-item summary { 
    padding: 20px 0; 
    cursor: pointer; 
    font-weight: 600; 
    list-style: none; 
    display: flex; 
    justify-content: space-between;
}
.klpt-faq-item summary::after { content: '+'; }
.klpt-faq-item[open] summary::after { content: '−'; }
.klpt-faq-content { padding-bottom: 20px; }

.klpt-guide-card {
    border: 1px solid var(--klpt-border);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--klpt-transition);
}
.klpt-guide-card:hover { border-color: var(--klpt-dark); }
.klpt-kicker { font-size: 0.8rem; text-transform: uppercase; opacity: 0.6; display: block; margin-bottom: 10px; }
.klpt-read-time { font-size: 0.8rem; font-style: italic; opacity: 0.6; }

.klpt-legal-toc { margin: 2rem 0; padding: 20px; background: var(--klpt-neutral); }
.klpt-legal-toc ul { list-style: none; padding: 0; }
.klpt-legal-toc a { color: var(--klpt-dark); text-decoration: none; display: block; padding: 5px 0; }

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

/* Footer */
.klpt-footer {
    background: var(--klpt-primary);
    color: var(--klpt-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--klpt-dark);
}
.klpt-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.klpt-footer-col h4 { font-size: 1rem; text-transform: uppercase; margin-bottom: 20px; }
.klpt-footer-col ul { list-style: none; padding: 0; margin: 0; }
.klpt-footer-col a { text-decoration: none; color: inherit; font-size: 0.9rem; line-height: 2; }
.klpt-footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Cookie Banner */
.klpt-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--klpt-bg);
    border-top: 2px solid var(--klpt-dark);
    padding: 30px;
    z-index: 2000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}
.klpt-cookie-btns { display: flex; gap: 10px; margin-top: 20px; }
.klpt-cookie-panel { 
    margin-top: 20px; 
    padding: 20px; 
    background: var(--klpt-neutral); 
    border: 1px solid var(--klpt-border);
}
.klpt-cookie-cat { display: block; margin-bottom: 10px; cursor: pointer; }

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

/* Responsive */
@media (max-width: 959px) {
    .klpt-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 300px;
        background: var(--klpt-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        border-left: 1px solid var(--klpt-dark);
        transform: translateX(100%);
        transition: var(--klpt-transition);
        z-index: 1000;
    }
    .klpt-nav.klpt-open { transform: translateX(0); }
    .klpt-menu-toggle { display: block; }
    .klpt-hero { grid-template-columns: 1fr; }
    .klpt-hero-image { height: 300px; order: -1; }
}

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


/* сборка: прижать к краю - проверка ловила за краем экрана */
.klpt-btn{position:static!important;left:auto!important;right:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}.klpt-cookie-btns{flex-wrap:wrap!important}
