:root {
  --ms-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ms-font-heading: var(--ms-font-body);
  --ms-bg: #031822;
  --ms-surface: rgba(8, 39, 56, 0.86);
  --ms-surface-solid: #082738;
  --ms-surface-2: #0d3146;
  --ms-line: rgba(255, 255, 255, 0.1);
  --ms-line-strong: rgba(36, 191, 255, 0.28);
  --ms-text: #f5f8fb;
  --ms-muted: #b9cad3;
  --ms-accent: #24bfff;
  --ms-accent-2: #63a9ff;
  --ms-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --ms-radius: 28px;
  --ms-radius-sm: 20px;
  --ms-shell: min(1280px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ms-text);
  background:
    radial-gradient(circle at 12% 10%, rgba(36, 191, 255, 0.14), transparent 20%),
    radial-gradient(circle at 88% 12%, rgba(99, 169, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #041721 0%, #031822 100%);
  font-family: var(--ms-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ms-accent);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

a:hover {
  color: var(--ms-accent-2);
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-family: var(--ms-font-heading, var(--ms-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif));
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 16px;
  color: var(--ms-muted);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

body.admin-bar .ms-site-header {
  top: 32px;
}

.ms-shell {
  width: var(--ms-shell);
  margin: 0 auto;
}

.ms-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(3, 24, 34, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.ms-brand {
  display: inline-flex;
  align-items: center;
  max-width: 340px;
}

.ms-brand img {
  display: block;
  max-height: 72px;
  width: auto;
}

.ms-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ms-menu,
.ms-footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-menu li,
.ms-footer-menu li {
  margin: 0;
}

.ms-menu a,
.ms-footer-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--ms-text);
  border-radius: 999px;
  font-weight: 600;
}

.ms-menu .current-menu-item > a,
.ms-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ms-accent);
}

.ms-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ms-line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
}

.ms-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ms-text);
}

.ms-site-surface {
  overflow: clip;
}

.ms-hero-section,
.ms-page-hero {
  position: relative;
  padding: 86px 0 56px;
}

.ms-hero-section::before,
.ms-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(36, 191, 255, 0.14), transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(99, 169, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.ms-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 32px;
  align-items: center;
}

.ms-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ms-accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  font-size: .88rem;
}

.ms-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 66ch;
}

.ms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.ms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ms-accent-2), var(--ms-accent));
  color: #031822;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(36, 191, 255, 0.18);
  border: 1px solid transparent;
}

.ms-button:hover {
  color: #031822;
  transform: translateY(-2px);
}

.ms-button--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ms-text);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.ms-button--ghost:hover {
  color: var(--ms-accent);
  border-color: var(--ms-line-strong);
}

.ms-button-primary .wp-block-button__link,
.ms-button-ghost-wrap .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
}

.ms-button-primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--ms-accent-2), var(--ms-accent));
  color: #031822;
  box-shadow: 0 18px 40px rgba(36, 191, 255, 0.18);
}

.ms-button-primary .wp-block-button__link:hover {
  color: #031822;
  transform: translateY(-2px);
}

.ms-button-ghost-wrap .wp-block-button__link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ms-text);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.ms-button-ghost-wrap .wp-block-button__link:hover {
  color: var(--ms-accent);
  border-color: var(--ms-line-strong);
}

.ms-home-hero-card .wp-block-cover__inner-container {
  width: 100%;
}


.ms-home-hero-card .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(3, 24, 34, 0.90) 0%, rgba(3, 24, 34, 0.70) 42%, rgba(3, 24, 34, 0.30) 100%);
}

.ms-home-services-grid > .wp-block-column,
.ms-home-feature-band > .wp-block-column {
  margin: 0 !important;
}

.ms-home-service-card .wp-block-image,
.ms-home-feature-band__image {
  margin-bottom: 0;
}

.ms-cta-card .wp-block-buttons,
.ms-home-service-body > *:last-child,
.ms-home-feature-band__copy > *:last-child {
  margin-bottom: 0;
}


.ms-mini-grid,
.ms-process-grid,
.ms-card-grid,
.ms-post-grid,
.ms-contact-layout {
  display: grid;
  gap: 22px;
}

.ms-mini-grid {
  margin-top: 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-mini-card,
.ms-card,
.ms-step-card,
.ms-chip-card,
.ms-hero-panel,
.ms-cta-card,
.ms-form-shell {
  position: relative;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: var(--ms-surface);
  box-shadow: var(--ms-shadow);
  backdrop-filter: blur(14px);
}

.ms-mini-card,
.ms-step-card,
.ms-card,
.ms-cta-card,
.ms-form-shell,
.ms-contact-details {
  padding: 28px;
}

.ms-mini-card strong,
.ms-step-card span,
.ms-contact-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--ms-accent);
}

.ms-hero-panel {
  overflow: hidden;
  padding: 30px;
  min-height: 100%;
}

.ms-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(36, 191, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.ms-hero-logo {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto 28px;
}


.ms-hero-visual-stage {
  position: relative;
  min-height: 360px;
  padding: 12px 0 10px;
}

.ms-hero-network {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto;
  opacity: .9;
}

.ms-floating-badge {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(3, 24, 34, .72);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}

.ms-floating-badge span {
  display: block;
  margin-bottom: 6px;
  color: var(--ms-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
}

.ms-floating-badge strong {
  display: block;
  font-size: .95rem;
}

.ms-floating-badge--one {
  top: 24px;
  left: 0;
}

.ms-floating-badge--two {
  right: 6px;
  bottom: 22px;
}

.ms-visual-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 22px;
}

.ms-visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: linear-gradient(180deg, rgba(8, 39, 56, .92), rgba(5, 27, 38, .86));
  box-shadow: var(--ms-shadow);
}

.ms-visual-card--featured {
  grid-row: span 2;
}

.ms-visual-media {
  position: relative;
  padding: 18px;
}

.ms-visual-media::after {
  content: "";
  position: absolute;
  inset: auto 8% 0 8%;
  height: 80px;
  background: radial-gradient(circle, rgba(36,191,255,.16), transparent 70%);
  pointer-events: none;
}

.ms-visual-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--ms-radius) - 10px);
  background: radial-gradient(circle at 50% 20%, rgba(36,191,255,.08), rgba(0,0,0,0));
}

.ms-visual-copy {
  padding: 0 28px 28px;
}

.ms-visual-copy h3 {
  margin-bottom: 14px;
}

.ms-visual-copy p {
  margin-bottom: 14px;
}

.ms-panel-stats {
  display: grid;
  gap: 14px;
}

.ms-panel-stats > div {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.ms-panel-stats span {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ms-accent);
  font-weight: 700;
}

.ms-panel-stats strong {
  font-size: 1rem;
}

.ms-section {
  padding: 28px 0 78px;
}

.ms-section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

.ms-section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.ms-highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ms-chip-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--ms-text);
  box-shadow: none;
}

.ms-chip-card:hover {
  border-color: var(--ms-line-strong);
  color: var(--ms-accent);
}

.ms-card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-card-grid--two,
.ms-contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-card h2,
.ms-card h3,
.ms-step-card h3,
.ms-contact-details h2 {
  margin-bottom: 14px;
}

.ms-card:hover,
.ms-step-card:hover,
.ms-mini-card:hover,
.ms-chip-card:hover {
  transform: translateY(-4px);
  border-color: var(--ms-line-strong);
}

.ms-card--accent {
  background: linear-gradient(180deg, rgba(13, 49, 70, .92), rgba(8, 39, 56, .88));
}

.ms-list {
  display: grid;
  gap: 12px;
  color: var(--ms-muted);
}

.ms-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ms-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--ms-text);
}

.ms-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-step-card span {
  font-size: .85rem;
  letter-spacing: .16em;
  font-weight: 800;
}

.ms-cta-section {
  padding-top: 0;
}

.ms-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(13,49,70,.95), rgba(8,39,56,.86));
}

.ms-page-main {
  min-height: 50vh;
}

.ms-contact-details .ms-contact-list {
  display: grid;
  gap: 18px;
}

.ms-contact-list a,
.ms-text-link {
  font-weight: 700;
}

.ms-contact-form-wrap {
  display: grid;
  gap: 18px;
}

.ms-contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--ms-text);
}

.ms-contact-form input,
.ms-contact-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--ms-text);
  padding: 16px 18px;
  outline: none;
}

.ms-contact-form input:focus,
.ms-contact-form textarea:focus {
  border-color: var(--ms-accent);
  box-shadow: 0 0 0 3px rgba(36,191,255,.12);
}

.ms-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ms-form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}

.ms-form-alert--success {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #b7f7cb;
}

.ms-form-alert--error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .28);
  color: #fecaca;
}


.ms-form-consent {
  margin-top: 6px;
}

.ms-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  color: var(--ms-muted) !important;
}

.ms-checkbox input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 3px 0 0;
  border-radius: 6px;
  padding: 0;
  accent-color: var(--ms-accent);
  cursor: pointer;
}

.ms-checkbox span {
  display: block;
  line-height: 1.55;
}

.ms-form-note {
  margin: -4px 0 0;
  font-size: 0.92rem;
  color: var(--ms-muted);
}

.wp-block-group.ms-form-shell > .ms-contact-form-wrap .ms-contact-form {
  display: grid;
  gap: 18px;
}

.wp-block-group.ms-form-shell > .ms-form-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ms-site-footer {
  padding: 56px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(3,24,34,0), rgba(3,24,34,.3));
}

.ms-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 28px;
}

.ms-footer-brand {
  font-size: 1.8rem;
}

.ms-footer-links,
.ms-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-footer-links li + li,
.ms-footer-menu li + li {
  margin-top: 8px;
}

.ms-footer-menu {
  display: grid;
  gap: 2px;
}

.ms-footer-menu a {
  padding: 4px 0;
  justify-content: flex-start;
}

.ms-footer-bottom {
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


@media (max-width: 1100px) {
  .ms-visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ms-visual-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .ms-hero-visual-stage {
    min-height: 300px;
  }

  .ms-floating-badge {
    position: static;
    margin-top: 14px;
  }

  .ms-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .ms-card-grid--four,
  .ms-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.admin-bar .ms-site-header {
    top: 46px;
  }

  .ms-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .ms-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(3, 24, 34, .96);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--ms-shadow);
  }

  .ms-nav.is-open {
    display: flex;
  }

  .ms-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .ms-menu a,
  .ms-header-cta {
    width: 100%;
  }

  .ms-hero-grid,
  .ms-card-grid--two,
  .ms-contact-layout,
  .ms-footer-grid {
    grid-template-columns: 1fr;
  }

  .ms-mini-grid {
    grid-template-columns: 1fr;
  }

  .ms-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .ms-header-inner {
    min-height: 80px;
  }

  .ms-brand {
    max-width: 190px;
  }

  .ms-section,
  .ms-page-hero,
  .ms-hero-section {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .ms-mini-card,
  .ms-card,
  .ms-step-card,
  .ms-cta-card,
  .ms-form-shell,
  .ms-contact-details,
  .ms-hero-panel {
    padding: 22px;
  }

  .ms-card-grid--four,
  .ms-process-grid,
  .ms-form-grid {
    grid-template-columns: 1fr;
  }
}


.ms-menu .menu-item-has-children,
.ms-menu .page_item_has_children,
.ms-footer-menu .menu-item-has-children,
.ms-footer-menu .page_item_has_children {
  position: relative;
}

.ms-menu .sub-menu,
.ms-menu .children {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  display: none;
  list-style: none;
  padding: 12px;
  margin: 0;
  border-radius: 22px;
  background: rgba(3, 24, 34, 0.98);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--ms-shadow);
}

.ms-menu .menu-item-has-children:hover > .sub-menu,
.ms-menu .menu-item-has-children:focus-within > .sub-menu,
.ms-menu .page_item_has_children:hover > .children,
.ms-menu .page_item_has_children:focus-within > .children {
  display: block;
}

.ms-menu .sub-menu li,
.ms-menu .children li {
  width: 100%;
}

.ms-menu .sub-menu a,
.ms-menu .children a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 16px;
}

.ms-footer-menu .sub-menu,
.ms-footer-menu .children {
  list-style: none;
  padding-left: 16px;
  margin-top: 6px;
}

.ms-editor-content {
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: rgba(8, 39, 56, 0.68);
  box-shadow: var(--ms-shadow);
  padding: 32px;
}

.ms-editor-content > *:last-child {
  margin-bottom: 0;
}

.ms-editor-content h2,
.ms-editor-content h3,
.ms-editor-content h4,
.ms-card h2,
.ms-card h3,
.ms-step-card h3,
.ms-mini-card strong,
.ms-contact-details h2,
.ms-contact-details h3 {
  color: var(--ms-text);
}

.ms-editor-content ul,
.ms-editor-content ol,
.ms-card ul,
.ms-card ol {
  color: var(--ms-muted);
}

.ms-editor-content .wp-block-button__link {
  border-radius: 999px;
}

.ms-editor-content .wp-block-columns {
  gap: 24px;
}

@media (max-width: 980px) {
  .ms-menu .sub-menu,
  .ms-menu .children {
    position: static;
    display: block;
    min-width: 0;
    padding: 8px 0 0 14px;
    margin-top: 6px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}


.ms-site-header {
  z-index: 60;
}

.ms-hero-grid--clean {
  align-items: stretch;
}

.ms-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ms-hero-copy .ms-highlight-strip {
  margin-top: 34px;
}

.ms-hero-section--photo .ms-chip-card {
  min-height: 44px;
  padding: 0 16px;
}

.ms-hero-photo-card {
  position: relative;
}

.ms-hero-photo-wrap {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: var(--ms-radius);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
  background: #091f2c;
}

.ms-hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 24, 34, 0.06) 0%, rgba(3, 24, 34, 0.08) 35%, rgba(3, 24, 34, 0.74) 100%),
    linear-gradient(135deg, rgba(4, 23, 33, 0.24), rgba(4, 23, 33, 0));
  pointer-events: none;
}

.ms-hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.ms-hero-photo-badge {
  position: absolute;
  z-index: 2;
  max-width: 280px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(3, 24, 34, .78);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}

.ms-hero-photo-badge span {
  display: block;
  margin-bottom: 6px;
  color: var(--ms-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
}

.ms-hero-photo-badge strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.ms-hero-photo-badge--top {
  top: 24px;
  left: 24px;
}

.ms-hero-photo-badge--bottom {
  right: 24px;
  bottom: 24px;
}

.ms-service-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ms-service-photo-card {
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: linear-gradient(180deg, rgba(8, 39, 56, .92), rgba(5, 27, 38, .86));
  box-shadow: var(--ms-shadow);
}

.ms-service-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--ms-line-strong);
}

.ms-service-photo-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ms-service-photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,24,34,0.08), rgba(3,24,34,0.3));
  transition: opacity .2s ease;
}

.ms-service-photo-card:hover .ms-service-photo-media::after {
  opacity: .78;
}

.ms-service-photo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .4s ease;
}

.ms-service-photo-card:hover .ms-service-photo-media img {
  transform: scale(1.03);
}

.ms-service-photo-copy {
  padding: 24px 28px 28px;
}

.ms-service-photo-copy h3 {
  margin-bottom: 14px;
}

.ms-service-photo-copy p {
  margin: 0 0 14px;
}

.ms-menu > .menu-item-has-children::after,
.ms-menu > .page_item_has_children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
}

.ms-menu .sub-menu,
.ms-menu .children {
  top: calc(100% + 8px);
  z-index: 65;
}

@media (max-width: 1180px) {
  .ms-hero-photo-wrap,
  .ms-hero-photo {
    min-height: 500px;
  }
}

@media (max-width: 980px) {
  .ms-hero-photo-wrap,
  .ms-hero-photo {
    min-height: 380px;
  }

  .ms-service-photo-grid {
    grid-template-columns: 1fr;
  }

  .ms-menu > .menu-item-has-children::after,
  .ms-menu > .page_item_has_children::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .ms-hero-photo-badge {
    position: static;
    max-width: none;
    margin: 14px;
  }

  .ms-hero-photo-badge--top {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .ms-hero-photo-wrap,
  .ms-hero-photo {
    min-height: 320px;
  }

  .ms-service-photo-copy {
    padding: 22px;
  }
}


/* ---------- Homepage refresh v6 ---------- */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(36, 191, 255, 0.10), transparent 18%),
    linear-gradient(180deg, #04131b 0%, #031822 100%);
}

.ms-site-header {
  background: rgba(3, 24, 34, 0.88);
}

.ms-header-inner {
  min-height: 88px;
}

.ms-menu > li > a {
  min-height: 46px;
}

.ms-button {
  box-shadow: 0 10px 26px rgba(36, 191, 255, 0.16);
}

.ms-section {
  padding: 42px 0 104px;
}

.ms-section--airy {
  padding-top: 18px;
}

.ms-section-heading--narrow {
  max-width: 760px;
  margin-bottom: 36px;
}

.ms-home-hero {
  padding: 48px 0 34px;
}

.ms-home-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 84px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  background-color: #0b2330;
  background-position: center right;
  background-size: cover;
}

.ms-home-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 24, 34, 0.08), rgba(3, 24, 34, 0.18));
  pointer-events: none;
}

.ms-home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.ms-home-hero-content h1 {
  max-width: 10.5ch;
  margin-bottom: 22px;
  text-wrap: balance;
}

.ms-home-hero .ms-lead {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: rgba(245, 248, 251, 0.84);
}

.ms-home-hero .ms-actions {
  margin-top: 34px;
}

.ms-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.ms-hero-points li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--ms-text);
  font-weight: 600;
}

.ms-home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ms-home-service-card,
.ms-home-feature-band {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(8, 39, 56, 0.68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.ms-home-service-card {
  display: flex;
  flex-direction: column;
}

.ms-home-service-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ms-home-service-image img,
.ms-home-feature-band__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-home-service-body {
  padding: 30px 30px 34px;
}

.ms-home-service-body h3 {
  margin-bottom: 14px;
}

.ms-home-service-body p {
  margin-bottom: 14px;
}

.ms-home-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: stretch;
  gap: 0;
  margin-top: 28px;
}

.ms-home-feature-band__copy {
  padding: 40px 42px;
}

.ms-home-feature-band__copy h3 {
  margin-bottom: 16px;
}

.ms-home-feature-band__copy p {
  max-width: 54ch;
}

.ms-home-feature-band__image {
  display: block;
  min-height: 100%;
}

.ms-cta-card--clean {
  background: rgba(8, 39, 56, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

/* Menu dropdown stability */
.ms-menu,
.ms-footer-menu {
  gap: 10px;
}

.ms-menu > li,
.ms-footer-menu > li {
  position: relative;
}

.ms-menu > .menu-item-has-children > a,
.ms-menu > .page_item_has_children > a {
  padding-right: 34px;
}

.ms-menu > .menu-item-has-children::before,
.ms-menu > .page_item_has_children::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(245, 248, 251, 0.78);
  border-bottom: 2px solid rgba(245, 248, 251, 0.78);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.ms-menu .sub-menu,
.ms-menu .children {
  top: 100%;
  left: 0;
  display: block;
  min-width: 290px;
  padding: 14px 12px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ms-menu .menu-item-has-children:hover > .sub-menu,
.ms-menu .menu-item-has-children:focus-within > .sub-menu,
.ms-menu .page_item_has_children:hover > .children,
.ms-menu .page_item_has_children:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ms-menu > .menu-item-has-children::after,
.ms-menu > .page_item_has_children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 18px;
}

@media (max-width: 1180px) {
  .ms-home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-home-service-card:last-child {
    grid-column: 1 / -1;
  }

  .ms-home-hero-card {
    min-height: 560px;
    padding: 72px 64px;
  }
}

@media (max-width: 980px) {
  .ms-section {
    padding: 34px 0 84px;
  }

  .ms-home-hero {
    padding-top: 28px;
  }

  .ms-home-hero-card {
    min-height: 500px;
    padding: 52px 34px;
    background-position: center center;
  }

  .ms-home-services-grid,
  .ms-home-feature-band {
    grid-template-columns: 1fr;
  }

  .ms-home-service-card:last-child {
    grid-column: auto;
  }

  .ms-home-feature-band__image {
    min-height: 280px;
  }

  .ms-menu .sub-menu,
  .ms-menu .children {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .ms-home-hero-card {
    min-height: 440px;
    padding: 34px 24px;
    border-radius: 26px;
  }

  .ms-home-hero-content h1 {
    max-width: none;
  }

  .ms-home-service-body,
  .ms-home-feature-band__copy {
    padding: 24px;
  }

  .ms-hero-points {
    gap: 10px;
  }

  .ms-hero-points li {
    width: 100%;
    justify-content: center;
  }
}


/* 2026 visual refinement: calmer typography, more breathing room */
:root {
  --ms-shell: min(1220px, calc(100vw - 56px));
  --ms-radius: 30px;
  --ms-radius-sm: 22px;
}

body {
  font-family: var(--ms-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
.wp-block-heading,
.ms-menu a,
.ms-footer-menu a,
.ms-button,
.ms-button-primary .wp-block-button__link,
.ms-button-ghost-wrap .wp-block-button__link {
  font-family: var(--ms-font-heading, var(--ms-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif));
}

h1,
h2,
h3,
h4,
.wp-block-heading {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 3vw + 1.25rem, 4.35rem);
}

h2 {
  font-size: clamp(1.8rem, 1.6vw + 1.1rem, 2.65rem);
}

h3 {
  font-size: clamp(1.2rem, .7vw + 1rem, 1.55rem);
}

p,
li {
  font-size: 1rem;
}

p {
  margin-bottom: 20px;
}

.ms-eyebrow {
  margin-bottom: 18px;
  letter-spacing: .22em;
  font-size: .8rem;
}

.ms-lead {
  font-size: clamp(1.08rem, 1vw + .9rem, 1.28rem);
  line-height: 1.75;
}

.ms-header-inner {
  min-height: 98px;
}

.ms-brand {
  max-width: 360px;
}

.ms-menu a,
.ms-footer-menu a {
  padding: 12px 16px;
  font-weight: 700;
}

.ms-home-hero {
  padding: 66px 0 62px;
}

.ms-home-hero-card {
  min-height: 640px;
  padding: clamp(36px, 6vw, 96px);
  border-radius: 38px;
}

.ms-home-hero-content {
  max-width: 720px;
}

.ms-home-hero-content h1 {
  max-width: 12ch;
  margin-bottom: 24px;
}

.ms-home-hero .ms-lead,
.ms-section-heading p,
.ms-home-service-body p,
.ms-home-feature-band__copy p,
.ms-cta-card p {
  max-width: 58ch;
}

.ms-home-hero .ms-actions {
  margin-top: 38px;
}

.ms-actions {
  gap: 16px;
}

.ms-button-primary .wp-block-button__link,
.ms-button-ghost-wrap .wp-block-button__link {
  min-height: 58px;
  padding: 0 28px;
  font-weight: 700;
}

.ms-hero-points {
  gap: 14px;
  margin-top: 34px;
}

.ms-hero-points li {
  padding: 12px 18px;
}

.ms-section {
  padding: 54px 0 122px;
}

.ms-section--airy {
  padding-top: 28px;
}

.ms-section-heading,
.ms-section-heading--narrow {
  margin-bottom: 44px;
}

.ms-home-services-grid {
  gap: 34px;
}

.ms-home-service-card,
.ms-home-feature-band,
.ms-cta-card--clean {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18);
}

.ms-home-service-body {
  padding: 34px 34px 38px;
}

.ms-home-service-body h3 {
  margin-bottom: 16px;
}

.ms-home-service-body p {
  margin-bottom: 18px;
}

.ms-home-feature-band {
  margin-top: 36px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 500px);
}

.ms-home-feature-band__copy {
  padding: 48px 46px;
}

.ms-home-feature-band__copy h3 {
  margin-bottom: 18px;
}

.ms-cta-card {
  gap: 34px;
  padding: 40px 42px;
}

.ms-site-footer {
  padding: 72px 0 24px;
}

.ms-front-page-article .wp-block-columns {
  gap: 34px;
}

@media (max-width: 1180px) {
  .ms-home-hero-card {
    min-height: 580px;
  }
}

@media (max-width: 980px) {
  :root {
    --ms-shell: min(1220px, calc(100vw - 40px));
  }

  .ms-header-inner {
    min-height: 88px;
  }

  .ms-home-hero {
    padding: 40px 0 54px;
  }

  .ms-section {
    padding: 42px 0 98px;
  }

  .ms-home-feature-band__copy,
  .ms-cta-card {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  :root {
    --ms-shell: min(1220px, calc(100vw - 28px));
  }

  body {
    font-size: 16px;
  }

  .ms-home-hero-card {
    min-height: 460px;
    padding: 32px 24px;
    border-radius: 28px;
  }

  .ms-section {
    padding: 32px 0 82px;
  }

  .ms-home-service-body,
  .ms-home-feature-band__copy,
  .ms-cta-card {
    padding: 26px;
  }

  .ms-hero-points {
    gap: 10px;
  }
}


/* 2026 hero + button refinement */
body {
  font-size: 14px;
  line-height: 1.78;
}

p,
li,
input,
textarea,
label {
  font-size: 14px;
}

.ms-lead {
  font-size: clamp(.98rem, .42vw + .92rem, 1.08rem);
  line-height: 1.82;
}

.ms-home-hero .ms-lead {
  font-size: clamp(.98rem, .4vw + .92rem, 1.06rem);
}

.ms-button,
.ms-button-primary .wp-block-button__link,
.ms-button-ghost-wrap .wp-block-button__link,
.ms-editor-content .wp-block-button__link {
  min-height: 46px;
  padding: 0 20px;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(36, 191, 255, 0.14);
}

.ms-button-primary .wp-block-button__link,
.ms-button-ghost-wrap .wp-block-button__link {
  border-radius: 999px;
}

.ms-button-ghost-wrap .wp-block-button__link {
  background: rgba(255, 255, 255, 0.035);
}

.ms-actions {
  gap: 12px;
}

.ms-home-hero .ms-actions {
  margin-top: 30px;
}

.ms-hero-points {
  gap: 10px;
  margin-top: 24px;
}

.ms-hero-points li {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 248, 251, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.ms-hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(36, 191, 255, 0.9);
  flex: 0 0 auto;
}

.ms-home-hero-content h1 {
  max-width: 13ch;
}

@media (max-width: 980px) {
  .ms-button,
  .ms-button-primary .wp-block-button__link,
  .ms-button-ghost-wrap .wp-block-button__link,
  .ms-editor-content .wp-block-button__link {
    min-height: 44px;
    padding: 0 18px;
  }
}

@media (max-width: 640px) {
  body,
  p,
  li,
  input,
  textarea,
  label {
    font-size: 14px;
  }

  .ms-actions {
    gap: 10px;
  }

  .ms-hero-points {
    margin-top: 20px;
  }

  .ms-hero-points li {
    width: auto;
    font-size: 11.5px;
    padding: 7px 11px;
  }
}


/* 2026-03 hero layout refinement */
.ms-home-hero-card {
  display: flex;
  align-items: center;
}

.ms-home-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 24, 34, 0.42) 0%, rgba(3, 24, 34, 0.28) 34%, rgba(3, 24, 34, 0.10) 58%, rgba(3, 24, 34, 0) 76%);
  pointer-events: none;
}

.ms-home-hero-content {
  position: relative;
  z-index: 1;
  width: clamp(320px, 50%, 720px);
  max-width: 720px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ms-home-hero-content h1,
.ms-home-hero-content p,
.ms-home-hero-content .ms-actions,
.ms-home-hero-content .ms-hero-points {
  position: relative;
  z-index: 1;
}

.ms-home-hero-content h1 {
  max-width: 9.6ch;
  text-shadow: 0 10px 30px rgba(3, 24, 34, 0.26);
}

.ms-home-hero .ms-lead {
  text-shadow: 0 8px 24px rgba(3, 24, 34, 0.24);
}

.ms-home-hero .ms-actions {
  gap: 14px;
}

.ms-hero-points {
  max-width: 100%;
}

@media (max-width: 980px) {
  .ms-home-hero-card {
    align-items: flex-end;
    min-height: 560px;
    padding: 28px;
    background-position: 64% center;
  }

  .ms-home-hero-card::before {
    background: linear-gradient(180deg, rgba(3, 24, 34, 0.12) 0%, rgba(3, 24, 34, 0.14) 38%, rgba(3, 24, 34, 0.44) 100%);
  }

  .ms-home-hero-content {
    width: min(100%, 540px);
    max-width: 100%;
    padding: 0;
  }

  .ms-home-hero-content h1 {
    max-width: 10.5ch;
    margin-bottom: 18px;
    font-size: clamp(2rem, 5vw, 3.2rem);
  }

  .ms-home-hero .ms-lead {
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.65;
  }

  .ms-button-primary .wp-block-button__link,
  .ms-button-ghost-wrap .wp-block-button__link {
    min-height: 48px;
    padding: 0 20px;
    font-size: 0.95rem;
  }

  .ms-hero-points {
    gap: 10px;
    margin-top: 24px;
  }

  .ms-hero-points li {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .ms-home-hero {
    padding: 26px 0 20px;
  }

  .ms-home-hero-card {
    min-height: 520px;
    padding: 18px;
    border-radius: 24px;
    background-position: 68% center;
  }

  .ms-home-hero-content {
    width: min(88%, 380px);
    padding: 18px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(3, 24, 34, 0.68), rgba(3, 24, 34, 0.42));
  }

  .ms-home-hero-content h1 {
    max-width: 8.6ch;
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 9vw, 2.45rem);
    line-height: 0.98;
  }

  .ms-home-hero .ms-lead {
    max-width: 28ch;
    font-size: 0.95rem;
    line-height: 1.56;
  }

  .ms-home-hero .ms-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .ms-button-primary .wp-block-button__link,
  .ms-button-ghost-wrap .wp-block-button__link {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .ms-hero-points {
    gap: 8px;
    margin-top: 18px;
  }

  .ms-hero-points li {
    width: auto;
    justify-content: flex-start;
    padding: 7px 10px;
    font-size: 11px;
  }
}


/* Homepage eyebrow accent only for Zakres usług */
.home #zakres-uslug .ms-eyebrow,
.home #zakres-uslug p.ms-eyebrow,
.home #zakres-uslug .ms-section-heading .ms-eyebrow {
  display: block;
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--ms-accent) !important;
  letter-spacing: .30em;
  font-weight: 800;
}

.home #zakres-uslug .ms-home-service-image {
  aspect-ratio: auto;
  height: 255px;
  min-height: 255px;
  flex: 0 0 255px;
}

.home #zakres-uslug .ms-home-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .home #zakres-uslug .ms-home-service-image {
    height: 220px;
    min-height: 220px;
    flex-basis: 220px;
  }
}

@media (max-width: 640px) {
  .home #zakres-uslug .ms-home-service-image {
    height: 200px;
    min-height: 200px;
    flex-basis: 200px;
  }
}


/* v1.1.20 — tighter band to CTA + stronger CTA emphasis */
.home #zakres-uslug {
  padding-bottom: 40px;
}

.home .ms-cta-section {
  padding-top: 20px;
}

.home #zakres-uslug .ms-home-feature-band {
  margin-bottom: 0;
}

.home .ms-cta-card--clean {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(36, 191, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(7, 39, 56, 0.96) 0%, rgba(4, 30, 43, 0.98) 55%, rgba(6, 39, 56, 0.96) 100%);
  border: 1px solid rgba(36, 191, 255, 0.18);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(36, 191, 255, 0.06) inset;
}

.home .ms-cta-card--clean::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(36, 191, 255, 0.58), rgba(99, 169, 255, 0.16), transparent 78%);
  pointer-events: none;
}

.home .ms-cta-card--clean::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 191, 255, 0.14) 0%, rgba(36, 191, 255, 0.02) 45%, transparent 72%);
  pointer-events: none;
}

.home .ms-cta-card--clean > * {
  position: relative;
  z-index: 1;
}

.home .ms-cta-card--clean .ms-eyebrow {
  color: #24bfff;
}

.home .ms-cta-card--clean h2 {
  max-width: 18ch;
}

.home .ms-cta-card--clean p {
  max-width: 44ch;
}

@media (max-width: 980px) {
  .home #zakres-uslug {
    padding-bottom: 28px;
  }

  .home .ms-cta-section {
    padding-top: 12px;
  }
}


/* v1.2.1 — mobile overhaul */
@media (max-width: 980px) {
  .ms-site-header {
    background: rgba(3, 24, 34, 0.88);
    backdrop-filter: blur(16px);
  }

  .ms-header-inner {
    min-height: 82px;
    gap: 14px;
  }

  .ms-brand {
    max-width: 210px;
  }

  .ms-brand img {
    max-height: 54px;
  }

  .ms-nav {
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .ms-menu {
    gap: 6px;
  }

  .ms-menu a,
  .ms-header-cta {
    min-height: 46px;
  }

  .ms-menu a {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .ms-home-hero {
    padding: 18px 0 22px;
  }

  .ms-home-hero-card {
    min-height: 540px;
    padding: 24px;
    border-radius: 28px;
    align-items: flex-end;
    background-position: 68% center;
  }

  .ms-home-hero-card::before {
    background: linear-gradient(180deg, rgba(3, 24, 34, 0.10) 0%, rgba(3, 24, 34, 0.10) 36%, rgba(3, 24, 34, 0.46) 72%, rgba(3, 24, 34, 0.72) 100%);
  }

  .ms-home-hero-content {
    width: min(100%, 520px);
    max-width: 100%;
  }

  .ms-home-hero-content h1 {
    max-width: 10ch;
    margin-bottom: 14px;
    font-size: clamp(2rem, 5.8vw, 3.25rem);
    line-height: 0.96;
  }

  .ms-home-hero .ms-lead {
    max-width: 30ch;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .ms-home-hero .ms-actions {
    margin-top: 20px;
    gap: 10px;
  }

  .ms-home-hero .ms-actions .wp-block-button {
    width: auto;
  }

  .ms-button-primary .wp-block-button__link,
  .ms-button-ghost-wrap .wp-block-button__link {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.94rem;
  }

  .ms-hero-points {
    margin-top: 18px;
    gap: 8px;
  }

  .ms-hero-points li {
    padding: 7px 10px;
    font-size: 11px;
  }

  .ms-section {
    padding: 30px 0 62px;
  }

  .ms-section-heading,
  .ms-section-heading--narrow {
    margin-bottom: 26px;
  }

  .ms-home-services-grid {
    gap: 18px;
  }

  .ms-home-service-image,
  .home #zakres-uslug .ms-home-service-image {
    height: 220px;
    min-height: 220px;
    flex-basis: 220px;
  }

  .ms-home-service-body {
    padding: 22px 22px 24px;
  }

  .ms-home-service-body h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }

  .ms-home-service-body p {
    font-size: 0.98rem;
    line-height: 1.66;
    margin-bottom: 14px;
  }

  .ms-home-feature-band {
    margin-top: 18px;
    border-radius: 24px;
  }

  .ms-home-feature-band__image {
    order: -1;
    min-height: 240px;
  }

  .ms-home-feature-band__copy,
  .ms-cta-card,
  .ms-cta-card--clean {
    padding: 24px;
  }

  .ms-home-feature-band__copy h3,
  .ms-cta-card--clean h2 {
    font-size: 1.85rem;
    line-height: 1.04;
  }

  .ms-home-feature-band__copy p,
  .ms-cta-card--clean p {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .ms-cta-card .wp-block-buttons,
  .ms-cta-card--clean .wp-block-buttons {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --ms-shell: min(100vw - 22px, 100%);
  }

  body.admin-bar .ms-site-header {
    top: 0;
  }

  .ms-header-inner {
    min-height: 72px;
  }

  .ms-brand {
    max-width: 156px;
  }

  .ms-brand img {
    max-height: 42px;
  }

  .ms-nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .ms-nav {
    right: 11px;
    left: 11px;
    padding: 12px;
    border-radius: 18px;
  }

  .ms-menu a,
  .ms-header-cta {
    min-height: 44px;
  }

  .ms-home-hero {
    padding: 14px 0 18px;
  }

  .ms-home-hero-card {
    min-height: 500px;
    padding: 16px;
    border-radius: 24px;
    background-position: 70% center;
  }

  .ms-home-hero-card::before {
    background: linear-gradient(180deg, rgba(3, 24, 34, 0.05) 0%, rgba(3, 24, 34, 0.06) 28%, rgba(3, 24, 34, 0.38) 64%, rgba(3, 24, 34, 0.78) 100%);
  }

  .ms-home-hero-content {
    width: 100%;
  }

  .ms-home-hero-content h1 {
    max-width: 8.5ch;
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 8.6vw, 2.7rem);
    line-height: 0.96;
  }

  .ms-home-hero .ms-lead {
    max-width: 24ch;
    font-size: 0.95rem;
    line-height: 1.52;
    margin-bottom: 0;
  }

  .ms-home-hero .ms-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 280px);
    margin-top: 18px;
  }

  .ms-home-hero .ms-actions .wp-block-button {
    width: 100%;
  }

  .ms-button-primary .wp-block-button__link,
  .ms-button-ghost-wrap .wp-block-button__link {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .ms-hero-points {
    gap: 7px;
    margin-top: 16px;
  }

  .ms-hero-points li {
    font-size: 10.5px;
    padding: 6px 9px;
    line-height: 1.2;
  }

  .ms-section {
    padding: 24px 0 46px;
  }

  .ms-section-heading,
  .ms-section-heading--narrow {
    margin-bottom: 20px;
  }

  .ms-section-heading p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .ms-home-services-grid {
    gap: 16px;
  }

  .ms-home-service-card,
  .ms-home-feature-band,
  .ms-cta-card--clean {
    border-radius: 22px;
  }

  .ms-home-service-image,
  .home #zakres-uslug .ms-home-service-image {
    height: 188px;
    min-height: 188px;
    flex-basis: 188px;
  }

  .ms-home-service-body {
    padding: 18px 18px 20px;
  }

  .ms-home-service-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .ms-home-service-body p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .ms-home-feature-band {
    margin-top: 16px;
  }

  .ms-home-feature-band__image {
    min-height: 200px;
  }

  .ms-home-feature-band__copy,
  .ms-cta-card,
  .ms-cta-card--clean {
    padding: 20px;
  }

  .ms-home-feature-band__copy h3,
  .ms-cta-card--clean h2 {
    font-size: 1.62rem;
    margin-bottom: 12px;
  }

  .ms-home-feature-band__copy p,
  .ms-cta-card--clean p {
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 14px;
  }

  .ms-cta-card .wp-block-buttons,
  .ms-cta-card--clean .wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ms-cta-card .wp-block-button,
  .ms-cta-card--clean .wp-block-button {
    width: 100%;
  }

  .ms-cta-card .wp-block-button__link,
  .ms-cta-card--clean .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }

  .ms-footer-grid {
    gap: 26px;
  }

  .ms-site-footer {
    padding: 46px 0 20px;
  }
}


/* v1.2.1 — responsive menu refinement */
@media (max-width: 980px) {
  .ms-nav {
    background: rgba(3, 24, 34, 0.985) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .ms-menu {
    gap: 10px !important;
  }

  .ms-menu > li {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
  }

  .ms-menu > li > a {
    width: 100%;
    min-height: 56px;
    justify-content: flex-start !important;
    padding: 0 18px !important;
    border-radius: 18px;
    background: transparent !important;
    font-size: clamp(1.08rem, 4vw, 1.45rem);
    font-weight: 700;
  }

  .ms-menu > li.current-menu-item > a,
  .ms-menu > li.current-menu-parent > a,
  .ms-menu > li.current_page_parent > a {
    background: linear-gradient(135deg, rgba(36,191,255,.18), rgba(99,169,255,.08)) !important;
    color: var(--ms-accent);
  }

  .ms-menu > li:not(.menu-item-has-children):not(.page_item_has_children) {
    grid-template-columns: 1fr;
  }

  .ms-submenu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .ms-menu .sub-menu,
  .ms-menu .children {
    grid-column: 1 / -1;
    display: none;
    padding: 8px 0 0;
    margin: 0;
  }

  .ms-menu .menu-item-has-children.is-open > .sub-menu,
  .ms-menu .menu-item-has-children.is-open > .children,
  .ms-menu .page_item_has_children.is-open > .sub-menu,
  .ms-menu .page_item_has_children.is-open > .children {
    display: block;
  }

  .ms-menu .sub-menu li,
  .ms-menu .children li {
    margin-top: 8px;
  }

  .ms-menu .sub-menu a,
  .ms-menu .children a {
    min-height: 0;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    justify-content: flex-start !important;
    background: rgba(255,255,255,.03) !important;
    border: 1px solid rgba(255,255,255,.05);
    font-size: 1rem !important;
    font-weight: 600;
    color: rgba(255,255,255,.96);
  }

  .ms-menu .sub-menu a:hover,
  .ms-menu .children a:hover,
  .ms-menu .sub-menu .current-menu-item > a,
  .ms-menu .children .current-menu-item > a {
    background: rgba(36,191,255,.10) !important;
    border-color: rgba(36,191,255,.18);
    color: var(--ms-accent);
  }
}

@media (max-width: 640px) {
  .ms-nav {
    right: 11px;
    left: 11px;
    padding: 12px;
    border-radius: 20px;
  }

  .ms-menu > li {
    padding: 7px;
    border-radius: 20px;
  }

  .ms-menu > li > a {
    min-height: 52px;
    padding: 0 16px !important;
    font-size: clamp(1rem, 6vw, 1.26rem);
  }

  .ms-submenu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .ms-menu .sub-menu a,
  .ms-menu .children a {
    padding: 13px 14px !important;
    font-size: 0.95rem !important;
  }
}


/* v1.2.2 — mobile menu toggle fix */
.ms-submenu-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
  color: var(--ms-text);
}

.ms-submenu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 980px) {
  .ms-menu > li > .ms-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
  }

  .ms-menu > li.is-open > .ms-submenu-toggle svg {
    transform: rotate(180deg);
  }

  .ms-menu .sub-menu .ms-submenu-toggle,
  .ms-menu .children .ms-submenu-toggle {
    display: none !important;
  }

  .ms-menu .sub-menu li,
  .ms-menu .children li {
    display: block !important;
  }
}


/* v1.2.3 — mobile menu + hero polish */
@media (max-width: 980px) {
  .ms-menu > .menu-item-has-children::before,
  .ms-menu > .page_item_has_children::before,
  .ms-menu > .menu-item-has-children::after,
  .ms-menu > .page_item_has_children::after {
    display: none !important;
    content: none !important;
  }

  .ms-menu > li > a {
    padding-right: 14px !important;
  }

  .ms-header-cta {
    min-height: 52px;
    padding: 0 16px;
    font-size: clamp(1rem, 6vw, 1.26rem);
    font-weight: 700;
    line-height: 1.2;
    border-radius: 18px;
  }

  .ms-submenu-toggle {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .ms-home-hero-card {
    min-height: 470px;
    padding: 16px;
    align-items: flex-end;
    background-position: 66% center;
  }

  .ms-home-hero-content {
    width: min(86%, 320px);
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .ms-home-hero-content h1 {
    max-width: 9.2ch;
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 5.3vw, 1.48rem) !important;
    line-height: 1.03;
  }

  .ms-home-hero .ms-lead {
    max-width: 25ch;
    font-size: 0.68rem !important;
    line-height: 1.42 !important;
  }

  .ms-home-hero .ms-actions {
    width: min(100%, 248px);
    margin-top: 16px;
    gap: 8px;
  }

  .ms-button-primary .wp-block-button__link,
  .ms-button-ghost-wrap .wp-block-button__link {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .ms-hero-points {
    margin-top: 14px;
    gap: 6px;
  }

  .ms-hero-points li {
    padding: 6px 8px;
    font-size: 10px;
  }
}


/* v1.2.4 — mobile feature band + hero tune */
@media (max-width: 980px) {
  .ms-home-feature-band,
  .ms-home-feature-band.is-not-stacked-on-mobile {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin-top: 18px;
  }

  .ms-home-feature-band > .wp-block-column,
  .ms-home-feature-band.is-not-stacked-on-mobile > .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .ms-home-feature-band__copy {
    padding: 22px 20px !important;
  }

  .ms-home-feature-band__copy h3 {
    font-size: 1.46rem !important;
    line-height: 1.14;
  }

  .ms-home-feature-band__copy p {
    font-size: 0.92rem !important;
    line-height: 1.56 !important;
  }

  .ms-home-feature-band__image {
    min-height: 220px !important;
    height: 220px !important;
  }
}

@media (max-width: 640px) {
  .ms-home-feature-band,
  .ms-home-feature-band.is-not-stacked-on-mobile {
    margin-top: 14px;
  }

  .ms-home-feature-band__copy {
    padding: 20px 18px !important;
  }

  .ms-home-feature-band__copy h3 {
    font-size: 1.24rem !important;
    margin-bottom: 10px;
  }

  .ms-home-feature-band__copy p {
    font-size: 0.86rem !important;
    line-height: 1.52 !important;
    margin-bottom: 12px;
  }

  .ms-home-feature-band__image {
    min-height: 190px !important;
    height: 190px !important;
  }
}


/* v1.2.5 — mobile menu chevron + mobile hero sizing */
.ms-submenu-toggle {
  position: relative;
  font-size: 0 !important;
  line-height: 0 !important;
  background-image: none !important;
}

.ms-submenu-toggle::before,
.ms-submenu-toggle::after {
  content: none !important;
}

.ms-submenu-toggle svg {
  display: none !important;
}

@media (max-width: 980px) {
  .ms-menu > li > .ms-submenu-toggle {
    position: relative;
  }

  .ms-menu > li > .ms-submenu-toggle::before {
    content: "" !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: translate(-50%, -62%) rotate(45deg);
    border-radius: 1px;
  }

  .ms-menu > li.is-open > .ms-submenu-toggle::before {
    transform: translate(-50%, -34%) rotate(-135deg);
  }
}

@media (max-width: 640px) {
  .ms-home-hero-content h1 {
    font-size: 30px !important;
    line-height: 0.98 !important;
    max-width: 9ch;
  }

  .ms-home-hero .ms-lead {
    font-size: 12px !important;
    line-height: 1.5 !important;
    max-width: 31ch;
  }

  .ms-home-hero-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }
}

/* v1.2.6 — mobile hero vertical spacing */
@media (max-width: 640px) {
  .ms-home-hero-card {
    position: relative;
    min-height: 470px;
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .ms-home-hero-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    max-width: 310px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
  }

  .ms-home-hero .ms-actions {
    margin-top: auto;
  }
}


/* v1.2.7 — mobile menu collapse fix + balanced hero spacing */
@media (max-width: 980px) {
  .ms-menu .menu-item-has-children:hover > .sub-menu,
  .ms-menu .menu-item-has-children:focus-within > .sub-menu,
  .ms-menu .page_item_has_children:hover > .children,
  .ms-menu .page_item_has_children:focus-within > .children {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  .ms-menu .menu-item-has-children.is-open:hover > .sub-menu,
  .ms-menu .menu-item-has-children.is-open:focus-within > .sub-menu,
  .ms-menu .page_item_has_children.is-open:hover > .children,
  .ms-menu .page_item_has_children.is-open:focus-within > .children {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .ms-home-hero-content {
    display: grid !important;
    grid-template-rows: auto auto 1fr auto;
    align-content: stretch;
    gap: 0;
  }

  .ms-home-hero-content > h1 {
    grid-row: 1;
    align-self: start;
  }

  .ms-home-hero-content > .ms-lead {
    grid-row: 2;
    align-self: start;
    margin-bottom: 0;
  }

  .ms-home-hero-content > .ms-actions {
    grid-row: 4;
    align-self: end;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* v1.2.8 — mobile hero natural height */
@media (max-width: 640px) {
  .ms-home-hero {
    padding-top: 10px;
  }

  .ms-home-hero-card {
    min-height: auto !important;
    padding: 20px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background-position: 70% center;
  }

  .ms-home-hero-content {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 310px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ms-home-hero-content > h1 {
    margin-bottom: 14px !important;
  }

  .ms-home-hero-content > .ms-lead {
    margin-bottom: 18px !important;
  }

  .ms-home-hero-content > .ms-actions {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}


/* v1.2.9 — mobile hero 40px vertical padding */
@media (max-width: 640px) {
  .ms-home-hero-card {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .ms-home-hero-content > .ms-lead,
  .ms-home-hero .ms-lead {
    font-size: 12px !important;
  }
}


/* v1.2.12 contact form + desktop menu refinements */
.ms-form-submit-wrap {
  margin-top: 22px;
}

@media (min-width: 981px) {
  .ms-site-header .ms-menu > li > a,
  .ms-site-header .ms-header-cta {
    font-size: 1rem;
    line-height: 1.2;
  }

  .ms-site-header .ms-header-cta {
    font-weight: 600;
    padding: 10px 14px;
    min-height: 0;
  }
}


/* About page */
.ms-about-page .ms-section-heading {
  margin-bottom: 2rem;
}

.ms-about-intro,
.ms-about-model {
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.ms-about-visual {
  background: linear-gradient(180deg, rgba(10, 40, 62, 0.9), rgba(3, 22, 35, 0.95));
  border: 1px solid rgba(111, 180, 255, 0.18);
  border-radius: 30px;
  padding: 1.25rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.ms-about-visual-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
}

.ms-about-visual-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--ms-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.ms-about-pillars-wrap {
  margin: 1.5rem 0 2.25rem;
}

.ms-about-pillars {
  gap: 1rem;
  margin-top: 1.2rem;
}

.ms-about-pillar {
  height: 100%;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(7, 45, 68, 0.88), rgba(5, 32, 50, 0.96));
  border: 1px solid rgba(111, 180, 255, 0.14);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.ms-about-pillar h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.ms-about-pillar p {
  margin: 0;
}

.ms-about-note {
  background: linear-gradient(180deg, rgba(6, 39, 60, 0.88), rgba(3, 25, 40, 0.98));
  border: 1px solid rgba(111, 180, 255, 0.14);
  border-radius: 30px;
  padding: 1.6rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.ms-about-note .wp-block-buttons {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .ms-about-intro,
  .ms-about-model,
  .ms-about-pillars {
    gap: 1rem;
  }

  .ms-about-visual,
  .ms-about-note,
  .ms-about-pillar {
    border-radius: 24px;
  }
}


/* Integrations page */
.ms-integrations-page .ms-section-heading {
  margin-bottom: 2rem;
}

.ms-integrations-intro {
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.ms-integrations-note,
.ms-integrations-summary,
.ms-integrations-card {
  background: linear-gradient(180deg, rgba(7, 45, 68, 0.88), rgba(4, 28, 44, 0.98));
  border: 1px solid rgba(111, 180, 255, 0.14);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.ms-integrations-visual {
  background: linear-gradient(180deg, rgba(10, 40, 62, 0.9), rgba(3, 22, 35, 0.95));
  border: 1px solid rgba(111, 180, 255, 0.18);
  border-radius: 30px;
  padding: 1.25rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.ms-integrations-visual-image img,
.ms-integrations-card-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
}

.ms-integrations-visual-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--ms-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.ms-integrations-cards {
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.ms-integrations-card {
  height: 100%;
}

.ms-integrations-card--accent {
  background: linear-gradient(180deg, rgba(9, 52, 78, 0.92), rgba(4, 30, 48, 0.98));
}

.ms-integrations-card-image {
  margin-bottom: 1rem;
}

.ms-integrations-list {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.ms-integrations-list li + li {
  margin-top: 0.45rem;
}

.ms-integrations-summary .wp-block-buttons {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .ms-integrations-intro,
  .ms-integrations-cards {
    gap: 1rem;
  }

  .ms-integrations-note,
  .ms-integrations-summary,
  .ms-integrations-card,
  .ms-integrations-visual {
    border-radius: 24px;
  }
}


/* Automatyka przemysłowa page */
.ms-automation-page .ms-section-heading {
  margin-bottom: 2rem;
}

.ms-automation-intro {
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.ms-automation-note,
.ms-automation-summary,
.ms-automation-card {
  background: linear-gradient(180deg, rgba(7, 45, 68, 0.88), rgba(4, 28, 44, 0.98));
  border: 1px solid rgba(111, 180, 255, 0.14);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.ms-automation-visual {
  background: linear-gradient(180deg, rgba(10, 40, 62, 0.9), rgba(3, 22, 35, 0.95));
  border: 1px solid rgba(111, 180, 255, 0.18);
  border-radius: 30px;
  padding: 1.25rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.ms-automation-visual-image img,
.ms-automation-card-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
}

.ms-automation-cards {
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.ms-automation-card {
  height: 100%;
}

.ms-automation-card--accent {
  background: linear-gradient(180deg, rgba(9, 52, 78, 0.92), rgba(4, 30, 48, 0.98));
}

.ms-automation-card-image {
  margin-bottom: 1rem;
}

.ms-automation-list {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.ms-automation-list li + li {
  margin-top: 0.45rem;
}

.ms-automation-summary .wp-block-buttons {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .ms-automation-intro,
  .ms-automation-cards {
    gap: 1rem;
  }

  .ms-automation-note,
  .ms-automation-summary,
  .ms-automation-card,
  .ms-automation-visual {
    border-radius: 24px;
  }
}


/* v1.2.17 — subpages aligned with homepage rhythm */
.ms-about-page .ms-card-grid,
.ms-integrations-page .ms-card-grid,
.ms-automation-page .ms-card-grid {
  margin-top: 1.25rem;
}

.ms-subpage-band {
  margin: 1.75rem 0 0;
  align-items: center;
}

.ms-subpage-cta {
  margin-top: 1.5rem;
}

.ms-subpage-cta .wp-block-buttons {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .ms-subpage-band {
    margin-top: 1.25rem;
  }

  .ms-subpage-cta {
    margin-top: 1.25rem;
  }
}


/* v1.3.0 — subpages rebuilt to match homepage rhythm */
.ms-about-page .ms-shell,
.ms-integrations-page .ms-shell,
.ms-automation-page .ms-shell {
  display: grid;
  gap: 28px;
}

.ms-subpage-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: center;
  margin-top: 1rem;
}

.ms-subpage-copy-card {
  min-height: 100%;
}

.ms-subpage-photo {
  margin: 0;
}

.ms-subpage-photo img,
.ms-subpage-photo picture,
.ms-subpage-photo source {
  display: block;
}

.ms-subpage-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--ms-radius);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
}

.ms-about-page .ms-card-grid,
.ms-integrations-page .ms-card-grid,
.ms-automation-page .ms-card-grid {
  width: 100%;
}

.ms-about-page .ms-card,
.ms-integrations-page .ms-card,
.ms-automation-page .ms-card {
  height: 100%;
}

.ms-about-page .ms-section-heading--narrow,
.ms-integrations-page .ms-section-heading--narrow,
.ms-automation-page .ms-section-heading--narrow {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .ms-subpage-split {
    grid-template-columns: 1fr;
  }

  .ms-subpage-photo img {
    height: 320px;
  }
}

@media (max-width: 700px) {
  .ms-subpage-photo img {
    height: 240px;
  }
}


/* v1.3.1 — about page boxes aligned with homepage widgets */
.ms-about-page .ms-subpage-feature-band,
.ms-integrations-page .ms-subpage-feature-band,
.ms-automation-page .ms-subpage-feature-band,
.ms-smart-home-page .ms-subpage-feature-band,
.ms-data-systems-page .ms-subpage-feature-band {
  margin-top: 1rem;
}

.ms-about-page .ms-subpage-feature-band__image,
.ms-integrations-page .ms-subpage-feature-band__image,
.ms-automation-page .ms-subpage-feature-band__image,
.ms-smart-home-page .ms-subpage-feature-band__image,
.ms-data-systems-page .ms-subpage-feature-band__image {
  min-height: 100%;
}

.ms-about-page .ms-subpage-feature-band__image img,
.ms-integrations-page .ms-subpage-feature-band__image img,
.ms-automation-page .ms-subpage-feature-band__image img,
.ms-smart-home-page .ms-subpage-feature-band__image img,
.ms-data-systems-page .ms-subpage-feature-band__image img {
  height: 100%;
  min-height: 380px;
}

.ms-about-page .ms-home-services-grid.ms-about-services-grid,
.ms-about-page .ms-home-services-grid.ms-subpage-services-grid,
.ms-integrations-page .ms-home-services-grid.ms-subpage-services-grid,
.ms-automation-page .ms-home-services-grid.ms-subpage-services-grid,
.ms-smart-home-page .ms-home-services-grid.ms-subpage-services-grid,
.ms-data-systems-page .ms-home-services-grid.ms-subpage-services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.25rem;
}

@media (max-width: 1180px) {
  .ms-about-page .ms-home-services-grid.ms-about-services-grid,
  .ms-about-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-integrations-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-automation-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-smart-home-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-data-systems-page .ms-home-services-grid.ms-subpage-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ms-about-services-grid .ms-home-service-card:last-child,
  .ms-subpage-services-grid .ms-home-service-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .ms-about-page .ms-home-services-grid.ms-about-services-grid,
  .ms-about-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-integrations-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-automation-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-smart-home-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-data-systems-page .ms-home-services-grid.ms-subpage-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-about-page .ms-subpage-feature-band__image img,
  .ms-integrations-page .ms-subpage-feature-band__image img,
  .ms-automation-page .ms-subpage-feature-band__image img,
  .ms-smart-home-page .ms-subpage-feature-band__image img,
  .ms-data-systems-page .ms-subpage-feature-band__image img {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .ms-about-page .ms-home-services-grid.ms-about-services-grid,
  .ms-about-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-integrations-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-automation-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-smart-home-page .ms-home-services-grid.ms-subpage-services-grid,
  .ms-data-systems-page .ms-home-services-grid.ms-subpage-services-grid {
    grid-template-columns: 1fr;
  }

  .ms-about-page .ms-subpage-feature-band__image img,
  .ms-integrations-page .ms-subpage-feature-band__image img,
  .ms-automation-page .ms-subpage-feature-band__image img,
  .ms-smart-home-page .ms-subpage-feature-band__image img,
  .ms-data-systems-page .ms-subpage-feature-band__image img {
    min-height: 200px;
  }
}

.ms-about-services-grid .ms-home-service-image,
.ms-subpage-services-grid .ms-home-service-image {
  aspect-ratio: 16 / 10;
}

.ms-about-services-grid .ms-home-service-body,
.ms-subpage-services-grid .ms-home-service-body {
  padding: 20px 18px 22px;
}

.ms-about-services-grid .ms-home-service-body h3,
.ms-subpage-services-grid .ms-home-service-body h3 {
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
}


/* v1.3.2 — services hub page */
.ms-services-page .ms-shell {
  display: grid;
  gap: 28px;
}

.ms-services-page .ms-section-heading--narrow {
  margin-bottom: 0;
}

.ms-services-hub-grid .ms-home-service-body .wp-block-buttons {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .ms-services-page .ms-home-services-grid.ms-services-hub-grid .ms-home-service-card:last-child {
    grid-column: auto;
  }
}


/* v1.3.3 — footer refresh */
.ms-site-footer {
  position: relative;
  margin-top: 36px;
  padding: 44px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(1, 13, 20, 0.96), rgba(1, 11, 18, 0.98));
}

.ms-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(220px, 0.85fr));
  gap: 34px;
}

.ms-footer-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ms-footer-panel h3 {
  margin-bottom: 12px;
  font-size: 0.92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 248, 251, 0.84);
}

.ms-footer-brand {
  font-size: clamp(1.35rem, 1.5vw, 1.65rem);
  margin-bottom: 10px;
}

.ms-footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

.ms-footer-logo img {
  display: block;
  width: 148px;
  max-width: 100%;
  height: auto;
}

.ms-footer-panel--brand p {
  margin-bottom: 8px;
}

.ms-footer-note {
  color: rgba(245, 248, 251, 0.62);
  font-size: 0.88rem;
  line-height: 1.56;
}

.ms-footer-links {
  display: grid;
  gap: 6px;
}

.ms-footer-links li + li {
  margin-top: 0;
}

.ms-footer-links a,
.ms-footer-links span {
  display: inline-flex;
  color: rgba(245, 248, 251, 0.7);
  line-height: 1.48;
  font-size: 0.95rem;
}

.ms-footer-links a:hover {
  color: rgba(255, 255, 255, 0.96);
}

.ms-footer-links--contact {
  gap: 8px;
}

.ms-footer-links--contact a,
.ms-footer-links--contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ms-footer-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 248, 251, 0.86);
  flex: 0 0 auto;
}

.ms-footer-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.ms-footer-links--nav {
  grid-template-columns: 1fr;
}

.ms-footer-bottom {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-footer-bottom p {
  margin: 0;
  color: rgba(245, 248, 251, 0.56);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .ms-site-footer {
    margin-top: 20px;
    padding: 20px 0 10px;
    border-top-color: rgba(255, 255, 255, 0.14);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background:
      radial-gradient(120% 80% at 50% -15%, rgba(105, 187, 255, 0.2), rgba(105, 187, 255, 0) 56%),
      linear-gradient(180deg, rgba(2, 18, 28, 0.97), rgba(1, 12, 20, 0.99));
  }

  .ms-site-footer .ms-shell {
    width: min(620px, calc(100vw - 64px));
  }

  .ms-footer-top {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .ms-footer-panel {
    padding: 12px 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .ms-footer-panel + .ms-footer-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ms-footer-logo {
    margin-bottom: 8px;
    justify-content: center;
  }

  .ms-footer-logo img {
    width: 132px;
  }

  .ms-footer-brand {
    margin-bottom: 6px;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
  }

  .ms-footer-panel h3 {
    margin-bottom: 6px;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  .ms-footer-panel--brand p {
    margin-bottom: 5px;
    font-size: 0.83rem;
    line-height: 1.3;
  }

  .ms-footer-note {
    font-size: 0.72rem;
    line-height: 1.26;
    opacity: 0.88;
  }

  .ms-footer-links {
    gap: 3px;
    justify-items: center;
  }

  .ms-footer-links--contact {
    gap: 6px;
  }

  .ms-footer-links--contact a,
  .ms-footer-links--contact > li > span {
    justify-content: center;
  }

  .ms-footer-icon {
    width: 20px;
    height: 20px;
  }

  .ms-footer-icon svg {
    width: 11px;
    height: 11px;
  }

  .ms-footer-links a,
  .ms-footer-links span {
    font-size: 0.83rem;
    line-height: 1.22;
  }

  .ms-footer-links--nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .ms-footer-panel--nav {
    padding: 10px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .ms-footer-panel--nav h3 {
    margin-bottom: 6px;
  }

  .ms-footer-links--nav li {
    width: auto;
    padding: 0;
    border-top: 0;
  }

  .ms-footer-links--nav li::after {
    content: "";
  }

  .ms-footer-links--nav li:last-child::after {
    content: "";
  }

  .ms-footer-links--nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 0.79rem;
    color: rgba(245, 248, 251, 0.74);
    line-height: 1.2;
  }

  .ms-footer-links--nav a:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(245, 248, 251, 0.92);
  }

  .ms-footer-bottom {
    margin-top: 10px;
    padding-top: 8px;
    text-align: center;
  }

  .ms-footer-bottom p {
    font-size: 0.72rem;
    line-height: 1.18;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 560px) {
  .ms-site-footer .ms-shell {
    width: calc(100vw - 48px);
  }

  .ms-footer-note {
    display: none;
  }
}


/* v1.3.4 — unified subpage hero + desktop dropdown sizing */
.ms-subpage-hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(92deg, rgba(3, 24, 34, 0.88) 0%, rgba(3, 24, 34, 0.68) 42%, rgba(3, 24, 34, 0.26) 100%),
    var(--ms-subpage-hero-image) center center / cover no-repeat;
}

.ms-subpage-hero-content {
  width: min(50%, 680px);
  max-width: 50%;
}

.ms-subpage-hero-content h1 {
  margin-bottom: 16px;
  font-size: clamp(0.9rem, 0.78vw + 0.58rem, 1.42rem);
  line-height: 1.2;
}

.ms-subpage-hero-content .ms-lead {
  max-width: 52ch;
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .ms-subpage-hero-card {
    min-height: 460px;
  }

  .ms-subpage-hero-content {
    width: min(58%, 680px);
    max-width: 58%;
  }
}

@media (max-width: 980px) {
  .ms-subpage-hero-card {
    min-height: 400px;
    background:
      linear-gradient(180deg, rgba(3, 24, 34, 0.76) 0%, rgba(3, 24, 34, 0.78) 56%, rgba(3, 24, 34, 0.86) 100%),
      var(--ms-subpage-hero-image) center center / cover no-repeat;
  }

  .ms-subpage-hero-content {
    width: 100%;
    max-width: 100%;
  }

  .ms-subpage-hero-content h1 {
    font-size: clamp(0.86rem, 2.6vw, 1.1rem);
  }
}

@media (min-width: 981px) {
  .ms-menu .sub-menu a,
  .ms-menu .children a {
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 0.96rem !important;
    font-weight: 700;
  }
}

/* hard override: subpage hero heading size */
.ms-subpage-hero-content > h1,
.ms-subpage-hero-content .wp-block-heading {
  font-size: 30px !important;
  line-height: 1.24 !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 980px) {
  .ms-subpage-hero-content > h1,
  .ms-subpage-hero-content .wp-block-heading {
    font-size: 24px !important;
    line-height: 1.22 !important;
  }
}

/* kontakt page: keep hero from template and prevent duplicated intro heading */
.ms-contact-page .ms-contact-page-hero-wrap {
  padding-bottom: 24px;
}

.ms-contact-page .ms-contact-page-body > .wp-block-group.ms-section:first-child .ms-section-heading:first-child,
.ms-contact-page .ms-contact-page-body > .ms-section:first-child .ms-section-heading:first-child {
  display: none;
}


/* v1.3.5 — contact details list polish */
.ms-contact-details .ms-contact-list {
  gap: 12px;
}

.ms-contact-list li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ms-text);
  line-height: 1.42;
}

.ms-contact-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 18px;
  height: 18px;
  opacity: 0.92;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

.ms-contact-list li:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dc7ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v10H4z'/%3E%3Cpath d='m4 8 8 6 8-6'/%3E%3C/svg%3E");
}

.ms-contact-list li:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dc7ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.4 19.4 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.1 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.7 2.6a2 2 0 0 1-.5 2.1L8 9.7a16 16 0 0 0 6.3 6.3l1.3-1.3a2 2 0 0 1 2.1-.5c.8.4 1.7.6 2.6.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E");
}

.ms-contact-list li:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dc7ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 1 0-14 0c0 6.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.ms-contact-list span {
  margin: 0;
  color: rgba(245, 248, 251, 0.76);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ms-contact-list a {
  color: var(--ms-text) !important;
  font-weight: 700;
}

.ms-contact-list li > :not(span) {
  color: var(--ms-text);
  font-weight: 700;
}
