/* 
Art Direction 2026: Terracotta Warmth
Palette: Primary oklch(55% 0.15 40), BG oklch(96% 0.02 40), Surface oklch(92% 0.03 40), Dark oklch(25% 0.04 40)
Typography: Mono (ui-monospace, SF Mono, Menlo) for labels/digits; System Grotesk for body/headings
Composition: Massive numeric anchors as structural guides, high-density editorial rhythm
Form: Large radius 20px+, pill-shaped buttons, clean linear grids
Animation: Soft shifting radial background gradients, smooth fade-ins
*/
:root {
    --jctr-primary: oklch(55% 0.15 40);
    --jctr-bg: oklch(96% 0.02 40);
    --jctr-surface: oklch(92% 0.03 40);
    --jctr-dark: oklch(25% 0.04 40);
    --jctr-text: oklch(20% 0.02 40);
    --jctr-text-dim: oklch(45% 0.05 40);
    --jctr-white: #ffffff;
    --jctr-radius: 20px;
    --jctr-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jctr-container: 1240px;
}

html, body { 
    overflow-x: clip; 
    margin: 0; 
    padding: 0; 
    background-color: var(--jctr-bg); 
    color: var(--jctr-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    scroll-behavior: smooth;
}

[hidden] { display: none !important; }

.jctr-container {
    max-width: var(--jctr-container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography & Base */
h1, h2, h3, h4 { 
    line-height: 1.2; 
    margin-top: 0; 
    font-weight: 700;
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

.jctr-mono { 
    font-family: ui-monospace, SF Mono, Menlo, monospace; 
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jctr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--jctr-primary);
    background: var(--jctr-primary);
    color: var(--jctr-white);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jctr-transition);
    gap: 8px;
}

.jctr-btn:hover { background: var(--jctr-dark); border-color: var(--jctr-dark); }

/* Topbar & Header */
.jctr-topbar {
    background: var(--jctr-surface);
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid oklch(85% 0.03 40);
}

.jctr-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.jctr-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 243, 238, 0.8);
    backdrop-filter: blur(10px);
}

.jctr-nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jctr-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--jctr-dark);
}

.jctr-logo-brand { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.jctr-logo-domain { font-size: 0.7rem; color: var(--jctr-text-dim); }

.jctr-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.jctr-nav-link {
    text-decoration: none;
    color: var(--jctr-text);
    font-weight: 500;
    transition: color var(--jctr-transition);
}

.jctr-nav-link:hover { color: var(--jctr-primary); }

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

/* Mobile Menu logic */
@media (max-width: 959px) {
    .jctr-menu-toggle { display: block; }
    .jctr-nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--jctr-white);
        flex-direction: column;
        padding: 80px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transform: translateX(100%);
        transition: transform var(--jctr-transition);
        z-index: 101;
    }
    .jctr-open .jctr-nav-list { transform: translateX(0); }
}

/* Hero & Layout */
.jctr-hero {
    padding: 80px 0;
    position: relative;
}

.jctr-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.jctr-radial-spot {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, oklch(80% 0.1 40) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: jctr-float 15s infinite alternate ease-in-out;
}

@keyframes jctr-float {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(10%, 10%); }
}

/* Numeric Anchors */
.jctr-section-num {
    font-family: ui-monospace, SF Mono, Menlo, monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--jctr-primary);
    opacity: 0.3;
    display: block;
    margin-bottom: -20px;
    font-weight: 800;
}

/* Services Grid */
.jctr-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 30px;
    margin: 40px 0;
}

.jctr-card {
    background: var(--jctr-surface);
    padding: 40px;
    border-radius: var(--jctr-radius);
    transition: var(--jctr-transition);
    border: 1px solid transparent;
    position: relative;
}

.jctr-card:hover {
    transform: translateY(-5px);
    border-color: var(--jctr-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Tables & Figures */
.jctr-table-wrap {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--jctr-radius);
    border: 1px solid oklch(85% 0.03 40);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px;
    border-bottom: 1px solid oklch(85% 0.03 40);
}

th { background: var(--jctr-surface); font-weight: 600; }

.jctr-figure {
    margin: 0;
    border-radius: var(--jctr-radius);
    overflow: hidden;
}

.jctr-figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* FAQ */
.jctr-faq-group { margin-bottom: 40px; }
details {
    background: var(--jctr-surface);
    margin-bottom: 12px;
    border-radius: 15px;
    transition: var(--jctr-transition);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after { content: '→'; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(90deg); }

.jctr-faq-content { padding: 0 20px 20px; color: var(--jctr-text-dim); }

/* Legal Pages */
.jctr-prose {
    max-width: 75ch;
    margin: 0 auto;
}

.jctr-toc {
    background: var(--jctr-surface);
    padding: 24px;
    border-radius: var(--jctr-radius);
    margin-bottom: 40px;
}

.jctr-legal-note {
    font-size: 0.9rem;
    padding: 16px;
    background: oklch(90% 0.03 40);
    border-radius: 10px;
    margin: 20px 0;
}

/* Form */
.jctr-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.jctr-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jctr-form-field label { font-weight: 600; }

.jctr-form-field input, .jctr-form-field textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid oklch(80% 0.03 40);
    font-family: inherit;
}

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

/* Footer */
.jctr-footer {
    background: var(--jctr-dark);
    color: var(--jctr-white);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.jctr-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.jctr-footer-col h4 { color: var(--jctr-white); margin-bottom: 20px; font-size: 1.1rem; }
.jctr-footer-col a {
    display: block;
    color: oklch(70% 0.05 40);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.jctr-footer-col a:hover { color: var(--jctr-white); }

.jctr-footer-bottom {
    border-top: 1px solid oklch(35% 0.05 40);
    padding-top: 40px;
    font-size: 0.85rem;
    color: oklch(60% 0.05 40);
    text-align: center;
}

/* Cookie Banner */
.jctr-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--jctr-white);
    padding: 32px;
    border-radius: var(--jctr-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
}

.jctr-cookie-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.jctr-cookie-panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--jctr-surface);
}

.jctr-cookie-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

/* SVG Badge */
.jctr-badge {
    width: 120px;
    height: 120px;
    animation: jctr-rotate 10s linear infinite;
}

@keyframes jctr-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Accessibility */
.jctr-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--jctr-primary);
    color: white;
    padding: 10px;
    z-index: 2000;
}
.jctr-skip-link:focus { top: 0; }

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

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !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}
.jctr-table-wrap{overflow-x:auto;max-width:100%}
.jctr-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){.jctr-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.jctr-btn:not([aria-controls]){display:none!important}}
/* Контейнер внутри сетки/флекса - на всю ширину: hero модели бывает сеткой из 12 колонок для «текст + картинка»,
   а контейнер между ними занимал одну колонку, и заголовок вставал в столбик по букве (sticketzyra.digital, 15.10.2026).
   Контейнер в hero наследует сетку родителя, чтобы span-ы детей продолжали работать. */
.jctr-container{grid-column:1 / -1;flex:1 1 100%;min-width:0}
.jctr-hero > .jctr-container{display:grid;grid-template-columns:inherit;gap:inherit;align-items:inherit;justify-items:start}
.jctr-hero > .jctr-container > *{min-width:0}
@media (max-width:959px){html.js :where(#jctr-menu):not(.jctr-open){display:none!important}:where(header):has(#jctr-menu){position:relative}:where(#jctr-menu).jctr-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(--jctr-bg,Canvas);color:var(--jctr-text,CanvasText);box-shadow:0 12px 24px rgb(0 0 0 / .25)}:where(#jctr-menu).jctr-open a{min-height:44px;display:flex;align-items:center}}
html:not(.js) #jctr-menu{display:flex!important;flex-wrap:wrap;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important}
.jctr-breadcrumbs{font-size:.875rem;padding-block:1rem}.jctr-breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0;padding:0}.jctr-breadcrumbs li+li::before{content:"/";margin-right:.5rem;opacity:.5}
.jctr-sitemap ul{columns:2 16rem;padding-left:1.1rem}

