/* Footer and cookie UI match the local TurboHUB reference. */
.cookie-notice { position: fixed; right: 32px; bottom: 32px; z-index: 60; width: 328px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: var(--space-24); border-radius:var(--radius-card); background: var(--text); color: var(--inverse); font-size: 14px; line-height: 18px; }
.cookie-notice p { margin-bottom: var(--space-16); }
.cookie-notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice a:hover,.cookie-notice a:focus-visible { color: var(--inverse); }
.cookie-notice .sb-button { width: 100%; min-height: 56px; }
.cookie-notice .sb-button:hover { background: var(--inverse); color: var(--text); }
.cookie-policy { padding-block: var(--space-64) var(--space-96); }
.cookie-policy .sb-heading { max-width: 980px; }
.cookie-policy h1 { font-size: 48px; line-height: 56px; letter-spacing: -1.5px; }
.cookie-policy .sb-heading p { font-size: 14px; line-height: 24px; }
.policy-content { max-width: 920px; font-size: 16px; line-height: 26px; }
.policy-content > * + * { margin-top: var(--space-16); }
.policy-content > h2 { margin-top: var(--space-40); }
.policy-content h2 { margin-bottom: var(--space-16); font-size: 24px; line-height: 32px; }
.policy-content > h3 { margin-top: var(--space-32); font-size: 20px; line-height: 28px; }
.policy-content > h2 + h3 { margin-top: var(--space-24); }
.policy-content p + p { margin-top: var(--space-16); }
.policy-content ul { padding-left: var(--space-24); list-style: disc; }
.policy-content li + li { margin-top: var(--space-8); }
.policy-content a { text-decoration: underline; text-underline-offset: 3px; }
.policy-storage { padding: var(--space-24); margin-block: var(--space-20); border: 1px solid var(--border); border-radius:var(--radius-card); background: var(--surface); }
.policy-storage h3 { margin-bottom: var(--space-12); font: 700 16px/24px var(--font-body); }
.policy-storage p + h3 { margin-top: var(--space-24); }
.policy-storage code { font-size: 14px; overflow-wrap: anywhere; }
.policy-content [data-cookie-reset] { margin-top: var(--space-20); }
.policy-reset-status { margin-top: var(--space-16); font-size: 14px; }
.policy-reset-status:empty { display: none; }
.policy-back { margin-top: var(--space-40); }
@media (max-width: 760px) { .cookie-notice { right: 16px; bottom: 16px; } .cookie-policy { padding-block: var(--space-40) var(--space-80); } .cookie-policy h1 { font-size: 36px; line-height: 44px; letter-spacing: -1px; } }
@media (max-width: 460px) { .cookie-notice { left: 16px; width: auto; max-width: none; } .cookie-policy h1 { font-size: 30px; line-height: 36px; } .policy-content h2 { font-size: 22px; line-height: 28px; } .policy-storage { padding: var(--space-20); } }
.site-footer { position: relative; overflow: hidden; min-height: 315px; padding-block: var(--space-64); background: var(--text); color: var(--inverse); }
.footer-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-56); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 184px; }
.footer-logo { display: block; width: fit-content; }
.footer-logo img { display: block; width: 202px; height: 40px; }
.footer-company { color: var(--color-muted); font-size: 14px; line-height: 24px; }
#footer-legal:empty { display: none; }
#footer-legal a { display: inline-block; margin-top: var(--space-8); }
.footer-contacts { display: flex; flex-direction: column; gap: var(--space-24); margin: 0; font-size: 16px; line-height: 24px; font-style: normal; }
.footer-contacts dt { color: var(--accent); font-size: 14px; line-height: 20px; margin-bottom: var(--space-4); }
.footer-contacts dd { margin: 0; }
.footer-orbits { position: absolute; right: max(0px,calc((100% - 1280px)/2 - 120px)); bottom: 0; width: 655px; height: 250px; max-width: none; pointer-events: none; }
.site-footer::before{content:none}
.site-footer a:not(.sb-button):hover{color:var(--inverse);text-decoration:underline;text-decoration-color:var(--accent)}
#footer-legal a{font-size:inherit;line-height:inherit;text-decoration:none}
@media(max-width:760px){.site-footer{padding-block:var(--space-48) var(--space-112)}.footer-layout{grid-template-columns:1fr;gap:var(--space-40)}.footer-brand{min-height:0;gap:var(--space-32)}.footer-orbits{right:-180px;bottom:-40px;width:480px;height:auto}}
@media(max-width:460px){.footer-contacts{font-size:15px}}


.sb-policy-header .sb-header-inner{justify-content:space-between}
.sb-policy-header .text-action{flex-shrink:0}
@media(max-width:460px){.sb-policy-header .sb-header-inner{gap:var(--space-12)}.sb-policy-header .text-action{font-size:13px;gap:var(--space-8)}}

/* Compact notice shared by TurboHub, KEP and Galochka. */
html{scroll-padding-bottom:var(--cookie-notice-space,var(--space-24))}
body{padding-bottom:var(--cookie-notice-space,var(--space-0))}
.cookie-notice{right:32px;bottom:max(16px,env(safe-area-inset-bottom));width:min(640px,calc(100% - 64px));max-width:none;max-height:calc(100dvh - 32px - env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-16);padding:var(--space-16) var(--space-20);font-size:14px;line-height:20px}
.cookie-notice p{margin:0}
.cookie-notice a{color:var(--inverse)}
.cookie-notice .sb-button{width:auto;min-height:44px;padding:var(--space-12) var(--space-20);color:var(--inverse)}
.cookie-notice .sb-button:hover{background:var(--inverse);color:var(--text)}
.cookie-notice a:focus-visible,.cookie-notice button:focus-visible{outline:2px solid var(--inverse);outline-offset:3px}
@media(max-width:760px){.cookie-notice{left:16px;right:16px;width:auto;grid-template-columns:minmax(0,1fr);gap:var(--space-12)}.cookie-notice .sb-button{justify-self:end}}

/* Policy return links match TurboHub text actions. */
.sb-policy-header .text-action,.cookie-policy .policy-back{gap:var(--space-8);font-size:13px;font-weight:700;line-height:22px;text-decoration:none}
.sb-policy-header .text-action .sb-icon,.cookie-policy .policy-back .sb-icon{transform:rotate(-45deg)}
.sb-policy-header .text-action:hover,.cookie-policy .policy-back:hover{color:var(--accent);text-decoration:none}
