/* Shared shell only: safe to load on the calculator without changing its content. */
:root { --header-height:80px; }
.header { position:fixed; inset:0 0 auto; z-index:1000; height:var(--header-height); background:#fffffff5; border-bottom:1px solid #e8e8e8; backdrop-filter:blur(10px); }
.header .container { height:100%; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.header .logo-image { flex:0 0 180px; display:block; line-height:0; }
.header .logo-image img { display:block; width:180px; height:auto; }
.header .nav { display:flex; align-items:center; gap:20px; }
.header .nav-link { position:relative; display:inline-flex; align-items:center; min-height:44px; color:#333; text-decoration:none; font-size:.9rem; font-weight:600; white-space:nowrap; }
.header .nav-link::after { content:''; position:absolute; left:0; right:0; bottom:4px; height:2px; background:#c62828; transform:scaleX(0); transition:transform .15s; }
.header .nav-link:hover,.header .nav-link.active { color:#b22222; }
.header .nav-link:hover::after,.header .nav-link.active::after { transform:scaleX(1); }
.header .cta-button-header { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:10px 18px; border-radius:8px; background:#c62828; color:white; font-size:.9rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.header .cta-button-header:hover { background:#a5201d; }
.header .cta-button-header.active { background:#841b1b; text-decoration:underline; text-underline-offset:5px; }
.burger-btn { display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px; width:44px; height:44px; padding:10px; background:transparent; border:0; cursor:pointer; }
.burger-line { display:block; width:24px; height:2px; background:#333; transition:transform .15s; }
.burger-btn.active .burger-line:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.burger-btn.active .burger-line:nth-child(2) { opacity:0; }
.burger-btn.active .burger-line:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
main [id] { scroll-margin-top:calc(var(--header-offset,var(--header-height)) + 24px); }
.breadcrumbs { padding-top:calc(var(--header-offset,var(--header-height)) + 20px); }
.footer { padding:40px 0 24px; background:#212121; color:#d2d2d2; font-size:.86rem; }
.footer .footer-main { display:grid; grid-template-columns:1.15fr .65fr 1fr; gap:48px; }
.footer .logo { display:inline-block; font-size:1.5rem; color:white; font-weight:700; text-decoration:none; }
.footer .logo b { color:#e34b48; }
.footer .footer-brand p { max-width:290px; margin-top:10px; line-height:1.7; }
.footer .footer-group { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.footer .footer-group h2 { color:white; font-size:.9rem; margin:0 0 6px; font-weight:700; }
.footer a,.footer button { color:#ddd; }
.footer a { text-decoration:none; }
.footer a:hover,.footer button:hover { color:white; text-decoration:underline; }
.footer-bottom { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; border-top:1px solid #444; margin-top:28px; padding-top:20px; font-size:.78rem; }
.footer-bottom p { margin:0; }.footer-bottom p span { display:block; margin-top:4px; }
.footer-settings { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; }
.footer-settings button { border:0; padding:0; background:none; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.footer-note { font-size:.75rem; color:#bcbcbc; margin-top:14px; text-align:left; }
.consent-banner { position:fixed; z-index:9999; bottom:max(16px,env(safe-area-inset-bottom)); right:max(16px,env(safe-area-inset-right)); width:400px; max-width:calc(100% - 32px); box-sizing:border-box; margin:0; padding:18px 22px; background:#fff; color:#242424; box-shadow:0 4px 30px #0003; border:1px solid #ddd; border-radius:12px; font-size:.88rem; }
.consent-banner p { margin:0 0 12px; line-height:1.5; }.consent-banner a { color:#a5201d; }.consent-banner div { display:flex; flex-wrap:wrap; gap:10px; }
.consent-banner button { min-height:44px; padding:10px 14px; border:1px solid #a5201d; border-radius:6px; background:#fff; color:#8c1a17; font:inherit; cursor:pointer; }.consent-banner button:first-child { background:#a5201d; color:#fff; }
:focus-visible { outline:3px solid #a5201d; outline-offset:4px; }
@media(max-width:1200px) {
  :root { --header-height:72px; }
  .header .logo-image { flex-basis:180px; }
  .header .burger-btn { display:flex; }
  .header .nav { display:none; position:absolute; top:100%; left:0; right:0; padding:16px 24px 24px; background:#fff; border-bottom:1px solid #ddd; box-shadow:0 12px 20px #0001; max-height:calc(100dvh - var(--header-height)); overflow-y:auto; flex-direction:column; align-items:stretch; gap:4px; }
  .header .nav.open { display:flex; }
  .header .nav-link { width:fit-content; font-size:1rem; }
  .header .cta-button-header { margin-top:12px; align-self:flex-start; }
}
@media(max-width:768px) {
  .footer { padding:32px 0 20px; }
  .footer .footer-main { grid-template-columns:1fr; gap:24px; }
  .footer .footer-brand p { max-width:none; }
  .footer-bottom { flex-direction:column; gap:16px; }
  .footer-settings { gap:12px 20px; }
  .consent-banner { bottom:max(10px,env(safe-area-inset-bottom)); right:max(10px,env(safe-area-inset-right)); max-width:calc(100% - 20px); padding:14px 16px; font-size:.82rem; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }.header * { transition:none; } }
