/* GRC Program | Enterprise experience layer — original brand tokens only.
   Loaded after the existing site and preference styles. No logo or palette replacements. */

html { scroll-padding-top: 148px; }
.hdr {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  border-bottom-color: color-mix(in srgb, var(--line-2) 75%, transparent);
  -webkit-backdrop-filter: saturate(130%) blur(18px);
  backdrop-filter: saturate(130%) blur(18px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--navy) 7%, transparent);
}
.hdr-in { row-gap: 9px; }
.header-actions { display: flex; flex: none; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding-inline: 20px; white-space: nowrap; }
.btn-login {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border: 1px solid var(--blue);
  color: var(--blue-d);
  transition: background .26s ease, color .26s ease, border-color .26s ease,
              transform .26s ease, box-shadow .26s ease;
}
.btn-login:hover, .btn-login:focus-visible {
  color: var(--paper);
  background: var(--blue-d);
  border-color: var(--blue-d);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--blue) 20%, transparent);
}
.header-actions .btn-blue, .btn-primary, .btn-ghost, .btn-line {
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              transform .25s ease, box-shadow .25s ease;
}
.header-actions .btn-blue:hover, .btn-primary:hover, .btn-line:hover,
.btn-ghost:hover { transform: translateY(-2px); }
.nav a { transition: color .25s ease, border-color .25s ease; }

.hero { isolation: isolate; }
.hero::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: min(72vw, 960px); aspect-ratio: 1; right: -25%; top: -70%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 28%, transparent), transparent 69%);
  filter: blur(8px); opacity: .85;
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: 0;
  background: linear-gradient(118deg, transparent 41%, color-mix(in srgb, var(--orange) 5%, transparent) 72%, transparent);
}
.hero-in { z-index: 1; }
.glass, .scope-panel {
  background: linear-gradient(150deg, color-mix(in srgb, var(--paper) 13%, transparent),
                                     color-mix(in srgb, var(--navy-2) 38%, transparent));
  border-color: color-mix(in srgb, var(--on-navy) 25%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 55px color-mix(in srgb, var(--navy) 32%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--paper) 17%, transparent);
}

/* Enterprise information cards: restrained lighting, clear focus, subtle elevation. */
.card:not(.flat), .hub-page .hub-model, .hub-page .hub-service,
#artykuly .art, .step, .qitem, .hub-page .hub-security article {
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.card:not(.flat) {
  isolation: isolate; overflow: hidden; border-radius: 15px;
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--navy) 5%, transparent);
}
.card:not(.flat)::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 82% 4%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 63%);
  transition: opacity .38s ease;
}
.card:not(.flat):hover, .card:not(.flat):focus-within,
.hub-page .hub-model:hover, .hub-page .hub-service:hover,
#artykuly .art:hover {
  transform: translateY(-5px);
  border-color: var(--tint-line);
  box-shadow: 0 25px 48px color-mix(in srgb, var(--navy) 13%, transparent),
              0 0 0 1px color-mix(in srgb, var(--blue) 10%, transparent);
}
.card:not(.flat):hover::before, .card:not(.flat):focus-within::before { opacity: 1; }
.card .more, .hub-page .hub-btn { transition: transform .25s ease, color .25s ease; }
.card:hover .more { transform: translateX(3px); }
.card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.card .ico {
  width: 54px; height: 54px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--tint-line),
              0 9px 20px color-mix(in srgb, var(--blue) 9%, transparent);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover .ico { transform: translateY(-3px) rotate(-3deg); }

/* Illustrated business capabilities: architectural diagrams instead of clip-art. */
.feature-visual {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 130px; overflow: hidden; border-radius: 11px;
  background: linear-gradient(138deg, var(--paper), var(--tint));
  border: 1px solid var(--tint-line);
  isolation: isolate;
}
.feature-visual::before {
  content: ""; position: absolute; width: 140px; height: 140px;
  border-radius: 50%; right: -30px; top: -70px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 16%, transparent), transparent 67%);
  transition: transform .55s ease, opacity .55s ease;
}
.feature-visual::after {
  content: ""; position: absolute; width: 80px; height: 80px;
  left: -35px; bottom: -45px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--orange) 24%, transparent);
}
.enterprise-svg {
  display: block; position: relative; z-index: 1;
  width: min(100%, 202px); height: 113px;
  filter: drop-shadow(0 7px 5px color-mix(in srgb, var(--navy) 13%, transparent));
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.card:hover .enterprise-svg, .card:focus-within .enterprise-svg {
  transform: translateY(-4px) scale(1.055);
  filter: drop-shadow(0 12px 8px color-mix(in srgb, var(--navy) 17%, transparent));
}
.card:hover .feature-visual::before { transform: scale(1.4) translateX(-13px); }
.enterprise-svg .flow-line { stroke-dasharray: 4 5; }
.card:hover .enterprise-svg .flow-line { animation: grc-illustration-flow 1.9s linear infinite; }
.enterprise-svg .pulse-node { transform-box: fill-box; transform-origin: center; }
.card:hover .enterprise-svg .pulse-node { animation: grc-node-pulse 1.9s ease-in-out infinite; }
@keyframes grc-illustration-flow { to { stroke-dashoffset: -36; } }
@keyframes grc-node-pulse { 50% { opacity: .45; transform: scale(1.28); } }
.home-offer .card { gap: 13px; }
.home-offer .card h3 { margin-top: 2px; }

/* Home uses the same semantic .hub-faq/details/summary/p markup as GRC HUB. */
.home-faq-section { overflow: clip; }
.home-faq-section .hub-wrap { width: min(920px, calc(100% - 48px)); margin-inline: auto; }
.home-faq-section .hub-faq h2 { margin-bottom: 16px; }
.hub-faq .faq-intro { margin: 0 0 28px; max-width: 72ch; }
.hub-faq details {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 0;
  transition: border-color .25s ease, background .25s ease;
}
.hub-faq details:last-child { border-bottom: 1px solid var(--line); }
.hub-faq details[open] {
  border-color: var(--tint-line);
  background: color-mix(in srgb, var(--tint) 42%, transparent);
}
.hub-faq summary {
  position: relative; display: block; list-style: none;
  padding: 23px 62px 23px 20px;
  cursor: pointer; font: 700 17px/1.42 var(--f-h);
  color: var(--ink);
  transition: color .25s ease, padding-left .25s ease;
}
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary:hover, .hub-faq details[open] summary {
  color: var(--blue-d); padding-left: 25px;
}
.hub-faq summary::after, .hub-faq summary::before {
  content: ""; position: absolute; right: 24px; top: 34px;
  width: 17px; height: 2px; border-radius: 2px; background: var(--blue);
  transition: transform .25s ease;
}
.hub-faq summary::before { transform: rotate(90deg); }
.hub-faq details[open] summary::before { transform: rotate(0); }
.hub-faq details > p {
  margin: 0; padding: 0 56px 24px 25px;
  color: var(--body); font: 400 16px/1.8 var(--f-b);
  max-width: 88ch;
}
.hub-faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.hub-page .hub-faq { width: min(920px, 100%); }
.hub-page .hub-faq details { padding: 0; }
.hub-page .hub-faq summary { font-family: var(--f-h); font-size: 17px; }
.hub-page .hub-faq details p { padding: 0 56px 24px 25px; color: var(--body); }

/* Progressive enhancement: no JS / no observer => all content stays visible. */
.js .reveal-item { opacity: 0; transform: translate3d(0, 23px, 0); filter: blur(4px); }
.js .reveal-item.is-inview {
  opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (min-width: 1500px) and (max-width: 1660px) {
  .hdr-in { flex-wrap: wrap; }
  .hdr-in .nav { order: 3; width: 100%; }
}
@media (max-width: 1050px) {
  .header-actions .btn { padding-inline: 15px; font-size: 14px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 150px; }
  .hdr-in .header-actions { order: 4; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .header-actions .btn { min-height: 42px; width: 100%; font-size: 13px; padding-inline: 9px; }
  .hdr-in .nav { order: 3; }
  .home-faq-section .hub-wrap { width: auto; margin: 0 20px; }
  .feature-visual { height: 124px; }
  .hub-faq summary { padding: 21px 51px 21px 15px; font-size: 16px; }
  .hub-faq details > p, .hub-page .hub-faq details p { padding: 0 24px 23px 16px; font-size: 15px; }
  .hub-faq summary::before, .hub-faq summary::after { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-item, .js .reveal-item.is-inview { opacity: 1; filter: none; transform: none; transition: none; }
  .card, .card::before, .enterprise-svg, .feature-visual::before, .btn, .hub-faq details,
  .hub-faq summary { animation: none !important; transition: none !important; }
  .card:hover .enterprise-svg, .card:hover .ico, .card:hover .more,
  .card:hover, .header-actions .btn:hover { transform: none; }
}
@media print {
  .hdr { position: static; box-shadow: none; backdrop-filter: none; }
  .js .reveal-item, .js .reveal-item.is-inview { opacity: 1; filter: none; transform: none; }
  .card { break-inside: avoid; box-shadow: none !important; }
}

/* The existing editorial home layout uses a 46px icon rail. Replace that rail
   with full-width architectural illustrations while retaining its two columns. */
.home-offer { gap: 24px; }
.home-offer .card {
  display: flex; flex-direction: column; gap: 13px;
  padding: 25px; border: 1px solid var(--line); border-radius: 15px;
  background: var(--paper);
}
.home-offer .card:first-child { border-color: var(--tint-line); }
.home-offer .feature-visual { flex: 0 0 auto; width: 100%; }
.hero .glass.scope-panel {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--navy) 95%, transparent),
    color-mix(in srgb, var(--navy-2) 91%, transparent));
  border: 1px solid color-mix(in srgb, var(--on-navy) 21%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 55px color-mix(in srgb, var(--navy) 21%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--paper) 15%, transparent);
}
@media (max-width: 700px) {
  .home-offer { gap: 15px; }
  .home-offer .card { padding: 22px; }
}

/* Use the already-defined dark-mode link token, without defining new colours. */
.btn-login { color: var(--link-blue, var(--blue-d)); border-color: var(--link-blue, var(--blue)); }
.hub-faq summary:hover, .hub-faq details[open] summary { color: var(--link-blue, var(--blue-d)); }
.hub-faq summary::before, .hub-faq summary::after { background: var(--link-blue, var(--blue)); }
html[data-theme="dark"] .btn-login:hover,
html[data-theme="dark"] .btn-login:focus-visible {
  color: var(--ink); background: var(--navy-3);
  border-color: var(--link-blue, var(--blue));
}
