:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fff;
  --ink: #172626;
  --copy: #465856;
  --line: #cbd4ce;
  --dark: #142a29;
  --accent: #c8ecaf;
  --link: #205743;
  --heading: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6 }
img { max-width: 100% }
a { color: inherit; text-decoration: none }
a:focus-visible { outline: 3px solid #977222; outline-offset: 4px }
h1,h2,h3,p,figure,dl { margin: 0 }
h1,h2 { font-family: var(--heading); font-weight: 400; letter-spacing: -.055em; line-height: 1.02 }
h1 { font-size: clamp(2.65rem, 5.7vw, 5.85rem) }
h2 { font-size: clamp(2.35rem, 4.65vw, 4.65rem) }
h3 { font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.18; letter-spacing: -.035em }
p,dd,address { color: var(--copy) }
.wrap { width: min(1280px, calc(100% - 5rem)); margin-inline: auto }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 4; background: var(--accent); color: var(--ink); padding: .6rem }
.skip:focus { top: 1rem }
.utility { color: #e7f0e9; background: #102120 }
.utility .wrap { display: flex; justify-content: flex-end; gap: 1.5rem; padding-block: .45rem; font-size: .875rem }
.utility a:hover { text-decoration: underline }
header,footer { background: var(--white) }
header { border-bottom: 1px solid var(--line) }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.bar nav { display: flex; flex-wrap: wrap; column-gap: clamp(.85rem, 2.45vw, 2rem); row-gap: .35rem; font-size: .95rem; font-weight: 650 }
.bar nav a:hover, footer a:hover { color: var(--link); text-decoration: underline; text-underline-offset: .27em }
.brand,.partner-logo { flex: 0 0 auto }
.brand img { display: block; width: 52px; height: auto }
.partner-logo img { display: block; width: 118px; height: auto }
.hero {
  background: radial-gradient(ellipse at 87% 14%, #2f5044, transparent 53%), var(--dark);
  color: #f8f6e9;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5.75rem);
}
.hero h1 em { color: var(--accent); font-style: normal }
.lead { max-width: 49ch; font-size: clamp(1rem, 1.55vw, 1.23rem); margin-top: 1.55rem }
.hero .lead { color: #d7e4dc }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .65rem 1rem; border: 1px solid var(--dark);
  background: var(--dark); color: var(--white); font-weight: 700;
}
.button:hover { background: #24463b }
.outline { color: var(--ink); border-color: #9baa9f; background: transparent }
.outline:hover { background: #e7eee6 }
.hero .button,.contact .button { border-color: var(--accent); background: var(--accent); color: var(--ink) }
.hero .button:hover,.contact .button:hover { background: #ddf5cd }
.hero .outline,.contact .outline { border-color: #8faa99; color: #f7faf4; background: transparent }
.hero .outline:hover,.contact .outline:hover { background: #2e4e41 }
.optima-visual { position: relative; background: #fff; padding: clamp(.5rem, 1.5vw, 1.15rem); box-shadow: .85rem .85rem 0 #9ccbbc3b }
.optima-visual img { display: block; width: 100%; height: auto }
.optima-visual figcaption { color: var(--ink); border-top: 1px solid #dae2dc; padding: .75rem .45rem .15rem; font-size: .9rem; font-weight: 700 }
.optima-visual a:hover { text-decoration: underline; text-underline-offset: .2em }
.quick-paths { background: #e2eadf; border-bottom: 1px solid var(--line) }
.quick-paths nav { display: grid; grid-template-columns: repeat(4,1fr) }
.quick-paths a { display: grid; place-items: center; min-height: 65px; padding: .7rem; border-inline-start: 1px solid #bccbbf; text-align: center; font-weight: 700 }
.quick-paths a:last-child { border-inline-end: 1px solid #bccbbf }
.quick-paths a:hover { background: #d4e4d1 }
.offers,.process,.contact { padding-block: clamp(3.2rem, 7vw, 6.4rem) }
.section-title { margin-bottom: clamp(1.75rem, 3.75vw, 3.25rem) }
.section-title p,.section-copy { margin-top: 1rem; max-width: 66ch }
.services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line) }
article { background: #fff; padding: clamp(1.2rem, 2.7vw, 2.5rem) }
article h3 { margin-bottom: 1.2rem }
#oferta article { border-top: 5px solid #518168 }
#oferta article:nth-child(2) { border-top-color: #9b8249 }
#oferta article:nth-child(3) { border-top-color: #426d77 }
dt { border-top: 1px solid var(--line); padding-top: .75rem; font-weight: 750 }
dd { margin: .25rem 0 .85rem; line-height: 1.5 }
dd:last-child { margin-bottom: 0 }
.text-link,dt a { color: var(--link); text-decoration: underline; text-underline-offset: .2em }
.sales { margin-top: 1.8rem; padding: clamp(1.25rem, 2.8vw, 2.5rem); background: #e4ede3 }
.sales .actions,.sales-fallback { margin-top: .85rem }
.process { background: #e5eee4; border-block: 1px solid var(--line) }
.process-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: clamp(1.5rem,5vw,5.25rem) }
.process ol { margin: 0; padding-left: 1.5rem }
.process li { padding: .85rem 0 .9rem .35rem; border-top: 1px solid #aebdb2 }
.process li::marker { color: var(--link); font-weight: 800 }
.process li p { margin-top: .4rem }
#optima-monitor { background: var(--dark); color: #f4f7ed }
#optima-monitor .section-copy { color: #d7e4dc }
#optima-monitor .button { background: var(--accent); color: var(--ink) }
.monitor-panel { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: clamp(1.2rem, 3vw, 2.5rem) }
.monitor-panel h3 { margin-bottom: .95rem }
.remote-panel img { display: block; max-width: 100%; max-height: 58px; object-fit: contain; margin-bottom: .85rem }
.host-link { margin-top: .85rem }
#o-firmie,#klienci,#baza-wiedzy,#referencje { border-top: 1px solid var(--line) }
#o-firmie .section-title { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2rem; margin-bottom: 0 }
#o-firmie p { margin-top: 0 }
.reference-logo { height: 94px; display: flex; align-items: center; margin-bottom: 1.1rem }
.reference-logo img { max-height: 80px; max-width: 90%; object-fit: contain }
.client-logos { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 1px; list-style: none; padding: 1px; margin: 0; background: var(--line) }
.client-logos li { min-height: 104px; display: grid; place-items: center; background: #fff; padding: .85rem }
.client-logos img { max-width: 100%; max-height: 59px; object-fit: contain }
.client-logos .client-logo-dark { background: #263832 }
.contact { color: #f7faf4; background: var(--dark); padding-inline: clamp(1.25rem, 5vw, 4.75rem); margin-bottom: clamp(2rem, 5vw, 5rem) }
.contact address { font-style: normal; color: #d7e4dc; margin: 1.1rem 0 }
.contact .text-link { color: var(--accent) }
.contact .actions { margin-top: 1.6rem }
.contact a { overflow-wrap: anywhere }
footer { border-top: 1px solid var(--line) }
.product-logo { width: min(225px,100%); background: var(--white); padding: .85rem }
.product-page h1 { margin-top: 1.35rem }
.product-page .services { margin-top: 2.5rem }
.knowledge h2 { font-size: clamp(1.45rem,2.45vw,2.2rem); margin-bottom: .7rem }
.knowledge p { margin-bottom: .85rem }
@media(max-width: 925px) {
  .wrap { width: min(1280px, calc(100% - 3rem)) }
  .hero-grid { gap: 1.8rem }
  .client-logos { grid-template-columns: repeat(4,minmax(0,1fr)) }
}
@media(max-width: 760px) {
  .bar { flex-wrap: wrap; padding-block: .8rem }
  .bar nav { order: 3; width: 100% }
  .hero-grid,.process-grid,#o-firmie .section-title { grid-template-columns: 1fr }
  .hero h1 { font-size: clamp(2.5rem, 8.5vw, 4.2rem) }
  .hero-grid { gap: 2.15rem }
  .optima-visual { max-width: 520px; box-shadow: .45rem .45rem 0 #9ccbbc3b }
  .quick-paths nav { grid-template-columns: repeat(2,1fr) }
  .quick-paths a { border: 1px solid #bccbbf; margin-inline-end: -1px; margin-block-end: -1px }
  .services { grid-template-columns: 1fr }
}
@media(max-width: 440px) {
  .wrap { width: calc(100% - 2rem) }
  .utility .wrap { justify-content: space-between; gap: .5rem }
  .client-logos { grid-template-columns: repeat(2,minmax(0,1fr)) }
}

/* Product-led home page and the shared Optima palette. */
:root {
  --paper: #f3f5fb;
  --ink: #152047;
  --copy: #465272;
  --line: #cbd4e9;
  --dark: #17256b;
  --accent: #c3d6ff;
  --link: #244ba4;
}
.utility { background: #101943; color: #eef3ff }
.button:hover { background: #263d91 }
.outline { border-color: #9eaccb }
.outline:hover { background: #e4ecfc }
.optima-hero {
  background: radial-gradient(ellipse at 50% 91%,#385be2 0%,#1d318b 48%,#101845 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.optima-hero .wrap { padding-top: clamp(2.6rem, 5.2vw, 5rem) }
.optima-hero h1 {
  font-family: system-ui,sans-serif;
  font-size: clamp(3rem, 8.6vw, 7.85rem);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: .96;
}
.optima-hero h1 em { color: #c3d6ff }
.optima-hero .lead { max-width: 57ch; margin-inline: auto; color: #e4e9ff }
.optima-hero .actions { justify-content: center; margin-bottom: clamp(1.7rem, 3.5vw, 3.5rem) }
.optima-hero .button { border-radius: 2rem; background: #fff; border-color: #fff; color: #152063 }
.optima-hero .button:hover { background: #e3ecff }
.optima-hero .outline { background: transparent; color: #fff; border-color: #afbefc }
.optima-hero .outline:hover { background: #344abd }
.optima-hero .optima-visual {
  width: min(100%, 510px);
  margin-inline: auto;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 0 clamp(.35rem,1vw,.8rem) #a3b8ff38;
  padding: clamp(.55rem,1.3vw,1.2rem) clamp(.1rem,1vw,.9rem) 0;
}
.quick-paths { background: #e5ecff }
.quick-paths a,.quick-paths a:last-child { border-color: #c2cfea }
.quick-paths a:hover { background: #d7e3ff }
#oferta article { border-top-color: #3a54b7 }
#oferta article:nth-child(2) { border-top-color: #718ad5 }
#oferta article:nth-child(3) { border-top-color: #303d76 }
.sales,.process { background: #e8eefc }
.process li { border-top-color: #a9b9d8 }
#optima-monitor .section-copy,.contact address { color: #e0e9fb }
.contact .outline { border-color: #a3b2db }
.contact .outline:hover { background: #2c4389 }

/* Gutenberg wrappers and contact form. */
.product-logo.wp-block-image img { display: block; width: 100%; height: auto }
.pcd-contact-form {
  display: grid;
  gap: .85rem;
  max-width: 40rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #a3b2db;
}
.pcd-contact-form label { display: grid; gap: .32rem }
.pcd-contact-form input,.pcd-contact-form textarea {
  width: 100%;
  border: 1px solid #a3b2db;
  padding: .65rem;
  font: inherit;
  color: #152047;
  background: #fff;
}
.pcd-contact-form textarea { resize: vertical }
.pcd-contact-form p { color: #e0e9fb }
.pcd-contact-form p a { text-decoration: underline }
.pcd-contact-form button { justify-self: start; cursor: pointer; font-family: inherit }
.pcd-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
