/* 
Art Direction 2026: Ochre Precision
Palette: Primary oklch(65% 0.14 85), BG oklch(98% 0.01 85), Surface oklch(94% 0.02 85), Dark oklch(25% 0.04 85)
Typography: Headings - "Futura", "Century Gothic", "Avenir", sans-serif; Body - system-ui, -apple-system, sans-serif
Composition: Vertical section labels on margins, horizontal "score-line" grid, contrast light/dark rhythm
Form: Soft radius 6-10px, hairline borders, high-density editorial spacing
Animation: Soft shifting radial background gradients, fade-in on scroll
*/
:root {
    --yhsn-primary: oklch(65% 0.14 85);
    --yhsn-bg: oklch(98% 0.01 85);
    --yhsn-surface: oklch(94% 0.02 85);
    --yhsn-dark: oklch(25% 0.04 85);
    --yhsn-text: oklch(20% 0.02 85);
    --yhsn-text-dim: oklch(45% 0.03 85);
    --yhsn-white: #ffffff;
    --yhsn-radius: 8px;
    --yhsn-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { overflow-x: clip; }
[hidden] { display: none !important; }

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1vw + 14px, 18px);
    line-height: 1.7;
    color: var(--yhsn-text);
    background-color: var(--yhsn-bg);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
    font-family: "Futura", "Century Gothic", "Avenir", sans-serif;
    line-height: 1.2;
    margin-top: 0;
    color: var(--yhsn-dark);
}

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

.yhsn-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip-link */
.yhsn-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--yhsn-primary);
    color: var(--yhsn-white);
    padding: 12px 24px;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.2s;
}
.yhsn-skip-link:focus { top: 0; }

/* Topbar */
.yhsn-topbar {
    background: var(--yhsn-surface);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid oklch(85% 0.02 85);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.yhsn-topbar-item { display: inline-flex; align-items: center; gap: 6px; }

/* Header & Nav */
.yhsn-header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 246, 240, 0.9);
    backdrop-filter: blur(10px);
}
.yhsn-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--yhsn-dark);
}
.yhsn-logo-brand { font-family: "Futura", sans-serif; font-weight: bold; font-size: 1.5rem; line-height: 1; }
.yhsn-logo-domain { font-size: 11px; opacity: 0.6; text-transform: lowercase; }

.yhsn-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.yhsn-nav-link {
    text-decoration: none;
    color: var(--yhsn-text);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--yhsn-transition);
}
.yhsn-nav-link:hover { color: var(--yhsn-primary); }

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

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

/* Buttons */
.yhsn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--yhsn-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--yhsn-transition);
    cursor: pointer;
    border: none;
}
.yhsn-btn-primary { background: var(--yhsn-primary); color: var(--yhsn-white); }
.yhsn-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Hero & Rhythm */
.yhsn-hero {
    background: var(--yhsn-primary);
    color: var(--yhsn-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.yhsn-hero h1 { color: var(--yhsn-white); }
.yhsn-hero-lead { font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 700px; margin: 24px 0; opacity: 0.9; }

.yhsn-section-label {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yhsn-text-dim);
}

.yhsn-score-line {
    border-top: 1px solid oklch(90% 0.02 85);
    margin: 48px 0;
    position: relative;
}

/* Facts & Services */
.yhsn-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr));
    gap: 24px;
    margin: 48px 0;
}
.yhsn-fact-card {
    background: var(--yhsn-surface);
    padding: 32px;
    border-radius: var(--yhsn-radius);
    border-left: 4px solid var(--yhsn-primary);
}
.yhsn-fact-value { font-family: "Futura", sans-serif; font-size: 2rem; font-weight: bold; display: block; }

.yhsn-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 32px;
}
.yhsn-service-card {
    padding: 32px;
    border: 1px solid oklch(90% 0.02 85);
    border-radius: var(--yhsn-radius);
    transition: border-color var(--yhsn-transition);
    position: relative;
}
.yhsn-service-card:hover { border-color: var(--yhsn-primary); }
.yhsn-service-num {
    font-family: "Futura", sans-serif;
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    top: 10px;
    right: 20px;
}

/* Tables & Forms */
.yhsn-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--yhsn-radius); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 16px; border-bottom: 1px solid oklch(90% 0.02 85); }
th { background: var(--yhsn-surface); font-weight: 600; }

.yhsn-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}
.yhsn-form-group { display: flex; flex-direction: column; gap: 8px; }
.yhsn-form-input {
    padding: 12px;
    border: 1px solid oklch(85% 0.02 85);
    border-radius: var(--yhsn-radius);
    font-family: inherit;
}
.yhsn-honey { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* FAQ & Legal */
.yhsn-faq-group { margin-bottom: 40px; }
details { background: var(--yhsn-surface); margin-bottom: 12px; border-radius: var(--yhsn-radius); }
summary { padding: 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '+'; color: var(--yhsn-primary); }
details[open] summary::after { content: '−'; }
.yhsn-faq-content { padding: 0 16px 16px; border-top: 1px solid oklch(90% 0.02 85); }

.yhsn-prose { max-width: 75ch; }
.yhsn-prose p { margin-bottom: 1.5rem; }
.yhsn-legal-note { font-size: 14px; background: var(--yhsn-surface); padding: 16px; border-radius: var(--yhsn-radius); margin-bottom: 24px; }

/* Footer */
.yhsn-footer {
    background: var(--yhsn-primary);
    color: var(--yhsn-white);
    padding: 60px 0 30px;
}
.yhsn-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.yhsn-footer-col h4 { color: var(--yhsn-white); margin-bottom: 20px; }
.yhsn-footer-link { color: oklch(95% 0.02 85); text-decoration: none; display: block; margin-bottom: 8px; font-size: 14px; }
.yhsn-footer-bottom {
    border-top: 1px solid oklch(80% 0.1 85);
    padding-top: 30px;
    font-size: 13px;
    opacity: 0.8;
}

/* Badge & Accents */
.yhsn-badge {
    width: 120px;
    height: 120px;
    position: absolute;
    animation: yhsn-rotate 20s linear infinite;
}
@keyframes yhsn-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.yhsn-accent {
    position: fixed;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, oklch(90% 0.05 85) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
    animation: yhsn-float 15s ease-in-out infinite alternate;
}
@keyframes yhsn-float { from { transform: translate(-10%, -10%); } to { transform: translate(10%, 10%); } }

/* Cookie Banner */
.yhsn-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--yhsn-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--yhsn-surface);
}
.yhsn-cookie-panel {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--yhsn-surface);
}
.yhsn-cookie-cat { display: flex; align-items: center; gap: 12px; cursor: pointer; }

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


/* сборка: прижать к краю - проверка ловила за краем экрана */
@media (max-width:1439px){.yhsn-section-label{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}.yhsn-score-line,.yhsn-service-card{flex-wrap:wrap!important}}

/* сборка: контраст - текст был цвета фона */
.yhsn-hero > .yhsn-container > .yhsn-hero-lead:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important;opacity:1!important}
.yhsn-footer > .yhsn-container > .yhsn-footer-grid > .yhsn-footer-col > .yhsn-footer-link:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important}
.yhsn-footer > .yhsn-container > .yhsn-footer-bottom > div:not(:hover):not(:focus-visible){color:rgb(17 17 17)!important;-webkit-text-fill-color:rgb(17 17 17)!important}
.yhsn-hero > .yhsn-container > div > .yhsn-hero-lead:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important;opacity:1!important}
.yhsn-hero > .yhsn-container > .yhsn-hero-lead > a:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important}
.yhsn-hero > .yhsn-container > .yhsn-hero-lead > .yhsn-section-label:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important}
.yhsn-hero > .yhsn-hero-lead:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important;opacity:1!important}
.yhsn-fact-card > p:not(:hover):not(:focus-visible){color:rgb(26 21 11)!important;-webkit-text-fill-color:rgb(26 21 11)!important}
