/* 
Art Direction: Cinnabar Contrast 2026
Palette: Focal Cinnabar (OKLCH 55% 0.18 28) / Off-white (OKLCH 97% 0.01 28) / Deep Graphite (OKLCH 25% 0.02 28)
Typography: Book Antiqua stack (Charter, Georgia, serif); Labels in Italic.
Composition: Fact cards overlapping photos, 1px thin lines, sharp edges, editorial rhythm.
Geometry: 0px radius (sharp corners), strict grid, linear dividers.
Motion: Slow rotation of the circular SVG badge, smooth opacity transitions.
*/
:root {
    --grsh-color-focal: oklch(55% 0.18 28);
    --grsh-color-bg: oklch(97% 0.01 28);
    --grsh-color-text: oklch(25% 0.02 28);
    --grsh-color-white: #ffffff;
    --grsh-font-main: "Charter", "Bitstream Charter", "Georgia", serif;
    --grsh-font-system: system-ui, -apple-system, sans-serif;
    --grsh-border: 1px solid var(--grsh-color-text);
    --grsh-transition: 0.3s ease;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--grsh-color-bg);
    color: var(--grsh-color-text);
    font-family: var(--grsh-font-main);
    line-height: 1.75;
    font-size: clamp(16px, 1vw + 14px, 18px);
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--grsh-font-main);
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: normal;
    color: var(--grsh-color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.grsh-italic { font-style: italic; }

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

/* Topbar */
.grsh-topbar {
    background: var(--grsh-color-text);
    color: var(--grsh-color-bg);
    font-size: 0.85rem;
    font-family: var(--grsh-font-system);
    padding: 8px 0;
    border-bottom: 1px solid var(--grsh-color-focal);
}
.grsh-topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Header & Nav */
.grsh-header {
    padding: 2rem 0;
    border-bottom: var(--grsh-border);
    background: var(--grsh-color-bg);
}
.grsh-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.grsh-logo {
    text-decoration: none;
    color: var(--grsh-color-text);
    display: flex;
    flex-direction: column;
}
.grsh-logo-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}
.grsh-logo-domain {
    font-size: 0.7rem;
    font-family: var(--grsh-font-system);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grsh-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.grsh-nav a {
    text-decoration: none;
    color: var(--grsh-color-text);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: var(--grsh-transition);
}
.grsh-nav a:hover { border-color: var(--grsh-color-focal); }

.grsh-lang-switch {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    border-left: var(--grsh-border);
    padding-left: 1.5rem;
}

.grsh-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--grsh-color-focal);
    color: white !important;
    text-decoration: none;
    border: 1px solid var(--grsh-color-focal);
    font-family: var(--grsh-font-system);
    font-size: 0.9rem;
    transition: var(--grsh-transition);
    cursor: pointer;
}
.grsh-btn:hover { background: var(--grsh-color-text); border-color: var(--grsh-color-text); }

/* Mobile Menu */
.grsh-menu-toggle {
    display: none;
    background: none;
    border: var(--grsh-border);
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--grsh-font-system);
}

@media (max-width: 959px) {
    .grsh-menu-toggle { display: block; }
    .grsh-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--grsh-color-bg);
        flex-direction: column;
        padding: 80px 40px;
        border-left: var(--grsh-border);
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
}
    .grsh-nav.grsh-open { transform: translateX(0); }
}

/* Hero & Sections */
.grsh-hero {
    background: var(--grsh-color-focal);
    color: var(--grsh-color-white);
    padding: 100px 0;
    border-bottom: var(--grsh-border);
}
.grsh-hero h1 { color: var(--grsh-color-white); }
.grsh-lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin-bottom: 2rem;
}

.grsh-section { padding: 80px 0; border-bottom: var(--grsh-border); }
.grsh-section:nth-child(even) { background: white; }

/* Fact Cards with Overlap */
.grsh-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr));
    gap: 40px;
    margin-top: -60px;
}
.grsh-fact-card {
    background: white;
    border: var(--grsh-border);
    padding: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 10px 10px 0 var(--grsh-color-text);
}
.grsh-fact-val {
    font-size: 2.5rem;
    display: block;
    color: var(--grsh-color-focal);
}

/* Services 01-06 */
.grsh-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
    gap: 2px;
    background: var(--grsh-color-text);
    border: var(--grsh-border);
}
.grsh-service-item {
    background: var(--grsh-color-bg);
    padding: 40px;
    transition: var(--grsh-transition);
}
.grsh-service-item:hover { background: white; }
.grsh-service-num {
    font-family: var(--grsh-font-system);
    font-size: 0.8rem;
    color: var(--grsh-color-focal);
    display: block;
    margin-bottom: 1rem;
}

/* Tables & Wraps */
.grsh-table-wrap { overflow-x: auto; margin: 2rem 0; border: var(--grsh-border); }
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width:min(600px,100%);
}
th, td {
    padding: 15px;
    border-bottom: var(--grsh-border);
    border-right: var(--grsh-border);
}
th { background: white; font-family: var(--grsh-font-system); font-size: 0.8rem; }

/* FAQ */
.grsh-faq-group { margin-bottom: 3rem; }
details { border-bottom: var(--grsh-border); padding: 1rem 0; }
summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::after { content: '+'; font-family: var(--grsh-font-system); }
details[open] summary::after { content: '−'; }

/* Articles & Prose */
.grsh-prose { max-width: 75ch; }
.grsh-kicker {
    font-family: var(--grsh-font-system);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--grsh-color-focal);
    display: block;
}
.grsh-read-time { font-style: italic; font-size: 0.9rem; margin-bottom: 1rem; display: block; }

/* Legal */
.grsh-legal-nav { margin-bottom: 2rem; border: var(--grsh-border); padding: 20px; }
.grsh-legal-nav a { display: block; padding: 5px 0; text-decoration: none; color: inherit; }
.grsh-legal-note { font-size: 0.85rem; border: var(--grsh-border); padding: 1rem; margin: 1rem 0; }

/* Footer */
.grsh-footer {
    background: var(--grsh-color-focal);
    color: white;
    padding: 60px 0 30px 0;
}
.grsh-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.grsh-footer-col h4 { color: white; font-size: 1rem; margin-bottom: 1.5rem; }
.grsh-footer-col a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.8;
}
.grsh-footer-col a:hover { opacity: 1; }
.grsh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    font-size: 0.8rem;
    font-family: var(--grsh-font-system);
}

/* Cookie Banner */
.grsh-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border: var(--grsh-border);
    padding: 25px;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.grsh-cookie-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.grsh-cookie-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: var(--grsh-border);
}
.grsh-cookie-panel label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

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

/* Form */
.grsh-form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
}
.grsh-form-group { display: flex; flex-direction: column; gap: 5px; }
.grsh-form input, .grsh-form textarea {
    padding: 12px;
    border: var(--grsh-border);
    font-family: var(--grsh-font-main);
}
.grsh-honey { display: none; }

/* Focus & Accessibility */
:focus-visible { outline: 2px solid var(--grsh-color-focal); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

