:root {
  --bg: #f5f8fc;
  --bg-soft: rgba(255, 255, 255, 0.78);
  --bg-panel: rgba(255, 255, 255, 0.72);
  --bg-panel-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(148, 163, 184, 0.3);
  --text: #122033;
  --text-soft: rgba(18, 32, 51, 0.72);
  --ink: #122033;
  --surface: rgba(255, 255, 255, 0.82);
  --accent: #2f9df5;
  --accent-soft: rgba(47, 157, 245, 0.18);
  --secondary: #68beff;
  --secondary-soft: rgba(104, 190, 255, 0.16);
  --success: #42b883;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --container: min(1180px, calc(100vw - 32px));
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.84), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(38, 139, 210, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(104, 190, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #f8fcff 0%, #eef6fd 40%, #e5f0fb 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s ease, filter 0.6s ease;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 248, 252, 0.92)),
    url("assets/certyfikat-przeplywomierz.jpg") center 12% / cover no-repeat;
  opacity: 0.09;
  transform: scale(1.04);
  filter: blur(1px) saturate(0.72);
}

body::after {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.72) 0%, transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(38, 139, 210, 0.12) 0%, transparent 18%),
    radial-gradient(circle at 85% 78%, rgba(104, 190, 255, 0.14) 0%, transparent 18%);
  opacity: 1;
}

body[data-weather="clear"] {
  --accent: #38a2f6;
  --accent-soft: rgba(56, 162, 246, 0.16);
  --secondary: #81ccff;
  --secondary-soft: rgba(129, 204, 255, 0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 80% 14%, rgba(153, 231, 255, 0.28), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(129, 204, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #fbfdff 0%, #eef7fe 42%, #deefff 100%);
}

body[data-weather="cloudy"] {
  --accent: #3298ee;
  --secondary: #7fbef0;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.62), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(158, 213, 241, 0.2), transparent 28%),
    radial-gradient(circle at 45% 100%, rgba(127, 190, 240, 0.16), transparent 30%),
    linear-gradient(135deg, #f8fbfe 0%, #edf5fc 38%, #e2edf8 100%);
}

body[data-weather="rain"] {
  --accent: #2d86d4;
  --accent-soft: rgba(76, 147, 210, 0.16);
  --secondary: #7dcbff;
  --secondary-soft: rgba(125, 203, 255, 0.14);
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 232, 255, 0.26), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(105, 181, 255, 0.22), transparent 28%),
    radial-gradient(circle at 45% 100%, rgba(142, 242, 215, 0.14), transparent 24%),
    linear-gradient(135deg, #f4f9fd 0%, #e7f1f8 44%, #dcecf5 100%);
}

body[data-weather="snow"] {
  --accent: #69b7e8;
  --accent-soft: rgba(137, 198, 230, 0.18);
  --secondary: #9fcff1;
  --secondary-soft: rgba(109, 143, 170, 0.12);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(168, 229, 255, 0.26), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #fcfdff 0%, #eef5fb 44%, #e7eff7 100%);
}

body[data-weather="storm"] {
  --accent: #4a8fd8;
  --accent-soft: rgba(74, 143, 216, 0.16);
  --secondary: #92d6ff;
  --secondary-soft: rgba(76, 162, 212, 0.12);
  background:
    radial-gradient(circle at 18% 20%, rgba(167, 139, 250, 0.18), transparent 24%),
    radial-gradient(circle at 80% 16%, rgba(120, 212, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #f7faff 0%, #eaf0f8 40%, #dfe8f2 100%);
}

body[data-time="night"]::before {
  opacity: 0.07;
  filter: blur(1px) saturate(0.7) brightness(0.92);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

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

.section {
  position: relative;
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.24));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.15rem;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.site-nav a:not(.nav-banner):hover,
.site-nav a:not(.nav-banner):focus-visible,
.site-nav a:not(.nav-banner).is-current,
.site-nav a:not(.nav-banner)[aria-current="page"] {
  color: #0f3f6d;
  background:
    linear-gradient(135deg, rgba(138, 220, 255, 0.36), rgba(47, 157, 245, 0.22)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(78, 170, 245, 0.34);
  box-shadow:
    0 12px 28px rgba(58, 145, 224, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

.site-nav .nav-banner {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(33, 96, 156, 0.12);
}

.site-nav .nav-banner:hover,
.site-nav .nav-banner:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(33, 96, 156, 0.18);
  transform: translateY(-1px);
}

.site-nav .nav-banner img {
  display: block;
  width: auto;
  height: 42px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1,
.section-head h2,
.spotlight-panel h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
}

.hero-lead,
.section-head p,
.contact-note,
.spotlight-panel p {
  color: var(--text-soft);
}

.hero-lead {
  max-width: 64ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff856f);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.22);
}

.trust-list,
.contact-list,
.prep-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}

.trust-list li::before,
.prep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.44);
}

.glass-panel,
.feature-card,
.service-card,
.timeline-card,
.proof-card,
.video-card,
.faq-card,
.contact-card,
.metric-card,
.document-card {
  backdrop-filter: blur(20px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.spotlight-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.spotlight-panel h2 {
  max-width: 18ch;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.metric-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.metric-card strong {
  display: block;
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.metric-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.weather-chip {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.weather-chip span,
.weather-chip small {
  color: var(--text-soft);
}

.weather-chip strong {
  font-size: 1.05rem;
}

.document-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.document-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  min-width: 0;
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.document-card:hover,
.document-card:focus-visible,
.feature-card:hover,
.service-card:hover,
.timeline-card:hover,
.proof-card:hover,
.video-card:hover,
.faq-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--bg-panel-strong);
}

.document-card img,
.proof-card img {
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.document-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.section-head {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.feature-grid,
.service-grid,
.timeline-grid,
.proof-grid,
.video-grid,
.faq-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  align-items: start;
}

.about-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-feature-grid .feature-card:last-child {
  grid-column: 1 / -1;
}

.about-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.about-photo {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 12px;
  backdrop-filter: blur(20px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.about-photo:hover,
.about-photo:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(104, 190, 255, 0.34);
  background: var(--bg-panel-strong);
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.about-photo-tall {
  grid-row: span 2;
}

.about-photo-wide {
  grid-column: 1 / -1;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
}

.feature-card,
.service-card,
.timeline-card,
.proof-card,
.video-card,
.faq-card,
.contact-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card h3,
.service-card h3,
.timeline-card h3,
.proof-copy h3,
.video-card h3,
.faq-card summary,
.contact-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
}

.feature-card p,
.service-card p,
.timeline-card p,
.proof-copy p,
.video-card p,
.faq-card p,
.contact-card p,
.contact-card address,
.contact-list span {
  color: var(--text-soft);
}

.proof-card,
.document-card {
  overflow: hidden;
}

.proof-copy {
  padding-top: 14px;
}

.video-card {
  padding: 16px;
}

.video-frame {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  position: relative;
}

.video-frame-wide {
  aspect-ratio: 16 / 9;
}

.video-frame-short {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-link-card {
  text-decoration: none;
}

.video-link-card p {
  margin: 10px 0 0;
}

.video-loading-card {
  grid-column: 1 / -1;
}

.video-play-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0e4b7a;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(27, 87, 142, 0.16);
}

.video-card h3 {
  margin-top: 16px;
}

.video-card-short h3 {
  text-align: center;
}

.video-card-wide {
  grid-column: 1 / -1;
}

.video-empty {
  margin: 0;
  color: var(--text-soft);
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-card summary {
  list-style: none;
  padding: 22px 24px;
  cursor: pointer;
  position: relative;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 22px;
  color: var(--secondary);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-card[open] summary::after {
  transform: rotate(45deg);
}

.faq-card p {
  margin: 0;
  padding: 0 24px 24px;
}

.contact-card address {
  font-style: normal;
  margin-top: 18px;
  font-size: 1.08rem;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list a,
.contact-list strong {
  text-align: right;
}

.prep-list {
  display: grid;
  gap: 12px;
}

.prep-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .feature-grid,
  .service-grid,
  .timeline-grid,
  .proof-grid,
  .video-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 8px);
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .site-nav .nav-banner {
    justify-self: start;
    border-radius: 18px;
  }

  .site-nav .nav-banner img {
    height: 48px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .feature-grid,
  .service-grid,
  .timeline-grid,
  .proof-grid,
  .video-grid,
  .faq-grid,
  .document-stack,
  .about-gallery,
  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .about-feature-grid .feature-card:last-child,
  .video-card-wide {
    grid-column: auto;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 24px, 100%);
  }

  .header-inner {
    min-height: 80px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .spotlight-panel,
  .feature-card,
  .service-card,
  .timeline-card,
  .proof-card,
  .video-card,
  .contact-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .section-head h2,
  .spotlight-panel h2,
  .contact-card h2 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .contact-list li {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
