﻿/* Hamburger menu */
.hamburger {
  display: none;
  align-items: center;
  background: #fff;
  border: 2px solid #70C33B;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 18px 8px 14px;
  margin-left: 12px;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(112,195,59,0.10);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.hamburger:hover, .hamburger:focus {
  background: #f8fafc;
  border-color: #5bbd1b;
  box-shadow: 0 4px 24px rgba(112,195,59,0.18);
}
.hamburger-icon {
  width: 24px;
  height: 2px;
  background: #70C33B;
  display: block;
  position: relative;
  margin-right: 8px;
  border-radius: 2px;
}
.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #70C33B;
  transition: 0.3s;
}
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }
.hamburger-label {
  font-size: 1.02rem;
  color: #70C33B;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-radius: 0 0 0 16px;
    padding: 18px 0 18px 0;
    display: none;
    z-index: 15;
  }
  .nav.nav-open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: right;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 1.01rem;
    color: var(--muted);
  }
  .nav-link.active,
  .nav-link:hover {
    background: #70C33B;
    color: #fff;
  }
  /* Hide 'Do pobrania' link everywhere (keeps page available but removes menu entry) */
  a.nav-link[href="do-pobrania.html"] { display: none !important; }
  .hamburger {
    display: flex;
  }
}
/* Zielony przycisk zapytania */
.btn-zapytanie {
  background: rgb(112,195,59);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px rgba(112,195,59,0.10);
  transition: background 0.3s, transform 0.18s, box-shadow 0.3s;
  outline: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-zapytanie:hover, .btn-zapytanie:focus {
  background: #5bbd1b;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px rgba(112,195,59,0.18);
}
.btn-zapytanie::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), height 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.btn-zapytanie:active::after {
  width: 180px;
  height: 180px;
}
.btn-zapytanie:active {
  background: #4e9c1a;
}
:root {
  color-scheme: light;
  --bg: #00557F;
  --primary: #00557F;
  --primary-dark: #004466;
  --accent: #70C33B;
  --text: #0f172a;
  --muted: #475569;
  --light: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 10px 25px rgba(0, 85, 127, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 1rem;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  position: relative;
  color: var(--muted);
  transition: color 0.25s cubic-bezier(0.4,0,0.2,1), background 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.nav-link.active, .nav-link:focus-visible {
  background: rgb(112,195,59);
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(112,195,59,0.18);
  transform: translateY(-2px) scale(1.04);
  transition: background 0.35s cubic-bezier(0.4,0,0.2,1), color 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(112,195,59,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: navActivePulse 0.7s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

@keyframes navActivePulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }
  60% {
    width: 180px;
    height: 180px;
    opacity: 0.15;
  }
  100% {
    width: 0;
    height: 0;
    opacity: 0;
  }
}
}

.nav-link.active,
}
.nav-link:hover {
  background: #70C33B;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 2px 12px rgba(112,195,59,0.10);
}

.hero {
  background: linear-gradient(120deg, #e2e8f0, #ffffff 60%);
  padding: 64px 0;
}

.hero.slim {
  padding: 48px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  margin-bottom: 16px;
}

.lead {
  font-size: 0.98rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: background 0.35s cubic-bezier(0.4,0,0.2,1), color 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.btn:hover, .btn:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 2px 12px rgba(112,195,59,0.10);
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.btn.ghost.btn-ghost-green {
  background: #70C33B !important;
  border-color: #70C33B !important;
  color: #fff !important;
}
.btn.ghost.btn-ghost-green:hover {
  background: #5da530 !important;
  border-color: #5da530 !important;
  color: #fff !important;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--light);
}

.section h2 {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Ensure the gallery grid stretches items to the same height */
.contact-grid { align-items: stretch; }

/* Contact card specific styling */
.contact-card {
  padding: 28px;
  border-radius: 16px;
  display: grid;
  gap: 16px;
}
.contact-card .company { margin-top: -4px; margin-bottom: 8px; color: var(--text); font-size: 1.02rem; }
.contact-item { /* wrapper kept for future left icons if needed */ }

/* Row with per-field icon */
.contact-row { display: flex; align-items: center; gap: 12px; color: var(--text); }
.row-icon { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.row-icon img { width: 16px; height: 16px; display: block; }
.row-icon.email { background: #e6f9ec; }
.row-icon.addr { background: #eef4fb; }

.contact-body { display: flex; flex-direction: column; gap: 8px; }
.contact-value a { color: #0a5a83; font-weight: 700; text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }
.contact-meta { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.contact-meta h3 { margin: 0 0 4px 0; font-size: 0.95rem; }
.contact-meta p.muted { color: var(--muted); margin: 0; }

@media(min-width:780px) {
  .contact-meta { grid-template-columns: 1fr 1fr; }
}

@media(min-width:780px) {
  .contact-meta { grid-template-columns: 1fr 1fr; }
}


/* Dedicated solutions gallery layout to guarantee uniform card widths */
#solutions-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}
#solutions-gallery .card {
  height: 100%;
  min-height: 380px;     /* make the white card taller for more breathing room */
  display: flex;
  flex-direction: column; /* ensure consistent vertical layout inside each card */
  position: relative;     /* for absolute-positioned CTA */
  padding-bottom: 96px;   /* reserve more space so CTA sits lower visually */
}
#solutions-gallery .card > div { height: 250px; display:flex; align-items:center; justify-content:center; overflow:hidden; }

/* Position CTA absolutely near the bottom-left of the white card for identical placement */
#solutions-gallery .card .btn {
  position: absolute;
  left: 22px;
  bottom: 20px; /* move button further down */
  margin: 0;
  padding: 12px 22px;
  font-size: 1rem;
  line-height: 1;
  align-self: initial;
}

/* On narrow viewports keep natural flow to avoid overlap */
@media (max-width: 720px) {
  #solutions-gallery .card { padding-bottom: 28px; }
  #solutions-gallery .card .btn { position: static; margin-top: 16px; }
}

/* Card thumbnail wrapper – larger and focused on showing the image */
.card-thumb {
  height: 250px; /* unified height to match gallery container */
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px; /* reduced padding to allow bigger image */
}

/* Image inside thumbnail – fill the available area and crop if necessary for uniform look */
.card-thumb-img {
  max-height: calc(100% - 16px); /* account for thumbnail padding */
  max-width: 100%;
  width: auto;
  display: block;
  object-fit: cover; /* ensure consistent visual sizing across different aspect ratios */
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(2,10,30,0.06);
}

/* More specific rule for gallery thumbnails to override generic image rules */
#solutions-gallery .card .card-thumb-img {
  object-fit: cover;
  max-height: calc(100% - 16px);
}

/* Slight zoom for specific thumbnails that need visual parity */
#solutions-gallery .card .card-thumb-img.zoomed {
  transform: scale(1.08);
  transform-origin: center center;
  transition: transform 220ms ease;
}
@media (max-width: 720px) {
  #solutions-gallery .card .card-thumb-img.zoomed { transform: scale(1.03); }
}

@media (max-width: 900px) {
  .card-thumb { height: 220px; }
  .card-thumb-img { max-height: calc(100% - 16px); }
}
@media (max-width: 720px) {
  .card-thumb { height: 160px; padding: 8px; }
  .card-thumb-img { max-height: calc(100% - 12px); padding: 6px; }
} 
#solutions-gallery .card img { max-height:100%; width:auto; object-fit:contain; }

.card { position: relative; }

.card.compact {
  text-align: left;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 20px 22px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2,10,30,0.06);
  position: relative;
  overflow: visible;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Accent bar on the left */
.card.compact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent);
  border-radius: 12px 0 0 12px;
  pointer-events: none;
}

/* Larger rounded badge in top-right with subtle border */
.card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  pointer-events: none;
}
.card .badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card.compact h3 { color: var(--text); font-weight: 800; margin: 0 0 8px 0; font-size: 1.06rem; }
.card.compact p { color: var(--muted); margin: 0; font-weight: 600; }

.card.compact:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(2,10,30,0.10); }

@media (max-width: 720px) {
  .card.compact { min-height: 160px; padding: 14px; }
  .card .badge { top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 8px; }
  .card.compact h3 { font-size: 1rem; }
  .card.compact p { font-size: 0.95rem; }
}

.hero-card {
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

/* Two-column alternating layout for solution subsections */
.split.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch; /* revert: stretch so columns match height */
}
.split.two-col .media { display: flex; align-items: center; justify-content: center; }
/* Make content stretch to same height as media and center its inner text vertically */
.split.two-col .content { display: flex; flex-direction: column; justify-content: center; align-self: stretch; text-align: left; }
/* Reverse order when .alt-right is present */
.split.two-col.alt-right .media { order: 2; }
.split.two-col.alt-right .content { order: 1; }

/* Ensure any .split inside a .solution-detail vertically centers its left column content relative to image column */
.solution-detail > .split > div:first-child { display: flex; flex-direction: column; justify-content: center; }

/* Normalize media container and crop images to consistent height */
.solution-detail .media {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-detail .media img.enlargeable {
  width: 100%;
  height: 340px;
  object-fit: cover; /* crop to fill */
  display: block;
  border-radius: 12px;
}

/* Responsiveness: smaller fixed heights on narrower screens */
@media (max-width: 900px) {
  .solution-detail .media img.enlargeable {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .split.two-col { grid-template-columns: 1fr; gap: 18px; }
  .split.two-col .media, .split.two-col .content { order: initial; display: block; }
  .split.two-col .content { display: block; }
  .solution-detail > .split > div:first-child { display: block; }
  .solution-detail .media img.enlargeable { height: 220px; }
}

.media {
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.4,0,0.2,1), color 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.tab-btn:hover, .tab-btn:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 2px 12px rgba(112,195,59,0.10);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--light);
  color: var(--text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.feature-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

/* Reduce line-height and gap for feature lists inside solution detail cards (e.g. MP Weryfikator) */
.solution-detail .feature-list {
  gap: 6px;         /* smaller vertical gap between items */
  line-height: 1.28; /* tighter interline spacing for compact appearance */
}

.download-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
}

.download-actions {
  text-align: center;
}

.pricing-grid {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: stretch;
}

 .price-card, .pricing-grid > .card {
  width: 370px;
  min-width: 370px;
  max-width: 370px;
  flex: 0 0 370px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  box-sizing: border-box;
  align-self: stretch;
  min-height: 100%;
}
}

.price-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.price-tag {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-tag span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.updates-list {
  display: grid;
  gap: 24px;
}

.update-card {
  display: grid;
  gap: 12px;
}

.update-meta {
  font-weight: 700;
  color: var(--primary);
}

.update-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.update-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  margin-top: 8px;
}

.steps {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  /* Kontakt: węższe okienko po lewej i formularz po prawej */
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

/* Contact card items with icons */
.contact-item {
  display: flex;
  gap: 12px; /* horizontal spacing */
  align-items: center;
  color: var(--text);
  margin-bottom: 14px; /* increased vertical spacing between contact lines */
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item strong {
  min-width: 100px;
  margin: 0;
  font-weight: 700;
  display: inline-block;
}
.contact-item .contact-value {
  flex: 1;
  display: block;
  line-height: 1.4;
}

/* Align address value to the top so multi-line addresses start level with the label */
.contact-item.contact-address { align-items: flex-start; }
.contact-item.contact-address strong { padding-top: 4px; }
.contact-item.contact-address .contact-value { padding-top: 4px; }

.contact-item a { color: var(--primary); font-weight: 700; }
.contact-icon img { width: 24px; height: 24px; display: block; }

@media (max-width: 720px) {
  .contact-item {
    gap: 8px;
    align-items: flex-start;
  }
  .contact-item strong { display: block; margin-bottom: 6px; min-width: 0; }
  .contact-item .contact-value { flex: 1; }
  .contact-icon img { width: 20px; height: 20px; margin-top: 4px; }
  .contact-item { margin-bottom: 8px; }
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit; /* ensure same font as page */
  font-weight: 400;
}

/* Make placeholder text consistent across inputs and textarea */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 1; /* consistent appearance */
  font-family: inherit;
  font-weight: 400;
}

.contact-form label.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  width: fit-content;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.checkbox-wrapper .label-text {
  font-size: 1rem;
  color: var(--text);
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.open {
  display: flex !important;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-card {
  position: relative;
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 420px;
  width: 90%;
  z-index: 1;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin-bottom: 12px;
}

.modal.is-loading #closeModal {
  display: none;
}

.modal-icon .spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-error {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--bg);
  color: #ffffff;
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* Centered footer bottom note placed under the footer columns */
.footer-bottom {
  text-align: center;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Consent modal animation --- */
.cookie-modal {
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.cookie-modal.animate {
  animation: consentPulse 420ms ease;
}
@keyframes consentPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(112,195,59,0); }
  40% { transform: scale(1.015); box-shadow: 0 18px 40px rgba(112,195,59,0.14); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(112,195,59,0); }
}

/* Narrow layout for long legal pages */
.section.content-narrow .container {
  width: min(880px, 92%);
}
.section.content-narrow p,
.section.content-narrow ul,
.section.content-narrow li,
.section.content-narrow h1,
.section.content-narrow h2,
.section.content-narrow h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Paragraph spacing for legal pages: no gap after a paragraph, gap before it */
.section.content-narrow p {
  margin: 1rem 0 0 0; /* space above each paragraph */
  margin-bottom: 0;   /* no space below */
}
.section.content-narrow p:first-child { margin-top: 0; }
/* Make sure lists following paragraphs don't introduce extra gap */
.section.content-narrow p + ul,
.section.content-narrow p + ol {
  margin-top: 0;
}

/* Headings: add gap above, but remove gap between heading and following paragraph/list */
.section.content-narrow h1,
.section.content-narrow h2,
.section.content-narrow h3 {
  margin: 1.25rem 0 0 0; /* gap above heading */
  margin-bottom: 0;      /* no gap below heading */
}

/* If a paragraph or list comes immediately after a heading, remove paragraph/list top margin */
.section.content-narrow h1 + p,
.section.content-narrow h2 + p,
.section.content-narrow h3 + p,
.section.content-narrow h1 + ul,
.section.content-narrow h2 + ul,
.section.content-narrow h3 + ul,
.section.content-narrow h1 + ol,
.section.content-narrow h2 + ol,
.section.content-narrow h3 + ol {
  margin-top: 0;
}

/* Ensure headings that follow paragraphs get the proper gap (handled by heading margin-top); prevent unexpected collapse issues */
.section.content-narrow p + h1,
.section.content-narrow p + h2,
.section.content-narrow p + h3 {
  margin-top: 1.25rem;
}

/* Solution detail layout: adapt to browser width and stack media vertically */
.solution-detail {
  width: 100%;
  max-width: 1120px; /* limit overall width but allow it to grow with viewport */
  margin: 0 auto 28px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Keep split layout responsive: two columns on wide screens, stack on narrow */
.solution-detail .split {
  gap: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

/* Media column: stack images vertically and center them */
.solution-detail .media {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

/* Images scale responsively but stay within a comfortable max width */
.solution-detail .media img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .solution-detail { padding: 0 12px; }
  .solution-detail .media img { max-width: 420px; }
}



/* Cookie / consent modal */
#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,10,12,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
#cookie-modal-overlay.active { display: flex; }
#cookie-modal {
  width: min(720px, 96%);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  color: var(--text);
  max-height: 90vh;
  overflow: auto;
}
.cookie-modal h2 { margin-bottom:8px; font-size:1.05rem; }
.cookie-modal p { color: var(--muted); margin-bottom: 12px; }
.cookie-modal .cookies-list { margin-top:12px; }
.cookie-modal .cookie-item { display:flex; align-items:center; gap:10px; padding:8px 0; }
.cookie-modal .actions { display:flex; gap:12px; justify-content:flex-end; margin-top: 16px; }
.cookie-modal .actions .btn { padding: 10px 16px; }
.cookie-modal .btn-outline { background: transparent; border: 1px solid var(--border); }
.cookie-settings-btn { display: none !important; }

