﻿/* =========================================================
   FULL CSS (rewritten + mobile overflow fixes)
   Rules preserved:
   1) Media queries ALWAYS at the end
   2) html = 14px
   3) body font-size uses vw: default 1.1111vw, <=479px: 3.73832vw
   4) Everything else in em (no clamp)
   ========================================================= */

:root {
  --accent: #ff4400;
  --accent-soft: rgba(255, 68, 0, 0.12);
}

/* -------------------------
   BASE
------------------------- */
html {
  font-size: 14px;
}

body {
  margin: 0;
  font-size: 1.1111vw; /* default scaling */
  line-height: 1.6;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: #2b2d42;
  background: #ffffff;
  text-rendering: optimizeLegibility;
}

/* -------------------------
   GLOBAL ELEMENTS
------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 0.2em solid var(--accent);
  outline-offset: 0.2em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: 0;
  height: 0.08em;
  background: rgba(43, 45, 66, 0.1);
  margin: 0;
}

/* -------------------------
   LAYOUT
------------------------- */
.container {
  width: 100%;
  max-width: 86em;
  margin-inline: auto;
  padding-inline: 2.4em;
}

.section {
  padding-block: 5em;
}

.section--tight {
  padding-block: 3.5em;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.stack > * + * {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4em;
}

.grid-2 > * {
  min-width: 0;
}

/* -------------------------
   TYPOGRAPHY
------------------------- */
.kicker {
  font-size: 0.9em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.h1 {
  font-size: 3.2em;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.h1 span,
.h1 strong {
  color: #ffffff;
  background-color: var(--accent);
}

.h2 {
  font-size: 2.1em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.h3 {
  font-size: 1.35em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.lead {
  font-size: 1.25em;
  line-height: 1.6;
  margin: 0;
  max-width: 46em;
}

.p {
  font-size: 1em;
  margin: 0;
  max-width: 60em;
  opacity: 0.92;
}

.small {
  font-size: 0.9em;
  margin: 0;
  opacity: 0.75;
}

/* -------------------------
   UI COMPONENTS
------------------------- */
.badge {
  font-size: 0.85em;
  padding: 0.45em 0.9em;
  border-radius: 999em;
  background: #edf2f4;
  color: #2b2d42;
  width: fit-content;
  max-width: 100%;
}

.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--ghost {
  border: 1px solid #2b2d42;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  min-width: 0;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  align-items: center;
  min-width: 0;
}

.btn {
  font-size: 1em;
  padding: 0.9em 1.3em;
  border-radius: 1em;
  border: 0.08em solid currentColor;
  background: transparent;
  font-family: inherit;
  appearance: none;
  color: inherit;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;

  cursor: pointer;

  /* overflow fixes */
  min-width: 0;
  max-width: 100%;
  white-space: normal; /* was nowrap -> causes overflow */
  overflow-wrap: anywhere; /* allows email/URL to wrap */
  word-break: break-word;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn--primary:hover {
  text-decoration: none;
  background: #e63d00; /* slightly darker FF4400 */
  border-color: #e63d00;
}

.btn--ghost {
  background: transparent;
  color: #2b2d42;
}

.card {
  border: 0.08em solid rgba(43, 45, 66, 0.12);
  border-radius: 1.5em;
  padding: 1.6em;
  background: #ffffff;

  /* allow shrink inside grid */
  min-width: 0;
}

.card--soft {
  background: #edf2f4;
  border-color: transparent;
}

/* -------------------------
   HERO FULLSCREEN
------------------------- */
.hero--video {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;

  display: flex;
  align-items: center;

  background: url("hero-video-fallback.jpg") center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 1;
}

.hero__center {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 48em;
  color: #ffffff;
}

.hero__content .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero__content .btn--ghost {
  color: #ffffff;
  border-color: #ffffff;
}

.hero__content .btn--primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* -------------------------
   LISTS / BENEFITS
------------------------- */
.list {
  padding-left: 1.2em;
  margin: 0;
}

.list li {
  margin-top: 0.6em;
}

.iconline {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  min-width: 0;
}

.dot {
  width: 0.9em;
  height: 0.9em;
  border-radius: 999em;
  background: #2b2d42;
  flex: 0 0 auto;
  margin-top: 0.35em;
}

/* -------------------------
   FAQ
------------------------- */
details {
  border-radius: 1.2em;
  border: 0.08em solid rgba(43, 45, 66, 0.12);
  padding: 1.2em 1.4em;
  background: #ffffff;
  min-width: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05em;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details > * + * {
  margin-top: 0.8em;
}

/* -------------------------
   FOOTER
------------------------- */
.footer {
  padding-block: 3em;
}

.call-fixed {
  position: fixed;
  right: 1.4em;
  bottom: 1.4em;

  width: 3.2em;
  height: 3.2em;
  padding: 0;
  appearance: none;

  border-radius: 999em;
  background: var(--accent);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2em;
  border: 0.08em solid var(--accent);
  cursor: pointer;

  z-index: 999;

  box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-fixed:hover {
  transform: translateY(-0.15em);
  box-shadow: 0 0.8em 2em rgba(255, 68, 0, 0.45);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 45, 66, 0.5);
  }
  70% {
    box-shadow: 0 0 0 1.2em rgba(43, 45, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(43, 45, 66, 0);
  }
}

.call-fixed {
  animation: pulse 3s infinite;
}

.iconline {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  min-width: 0;
}

.iconline i {
  font-size: 1.2em;
  line-height: 1;
  margin-top: 0.25em;
  flex: 0 0 auto;
}

.icon-muted {
  color: rgba(43, 45, 66, 0.55);
}

.icon-accent {
  color: var(--accent);
}

/* OPTIONAL: slightly tighter grid for this section */
.dla-kogo__grid {
  align-items: stretch;
}

/* Ensure icon rows look consistent inside cards */
.dla-kogo__grid .iconline {
  align-items: flex-start;
}

/* If you want the "NO" list to feel calmer */
.dla-kogo__grid .card--soft .p {
  opacity: 0.9;
}

/* POPUP BASE */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1100;

  display: none;
  align-items: center;
  justify-content: center;
}

/* show popup (toggle this class) */
.popup.is-active {
  display: flex;
}

/* overlay */
.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* popup box */
.popup__box {
  position: relative;
  width: 100%;
  max-width: 32em;

  background: #ffffff;
  border-radius: 1.6em;
  padding: 2em;

  z-index: 1;
}

/* close button */
.popup__close {
  position: absolute;
  top: 0.6em;
  right: 0.8em;

  background: none;
  border: none;
  font-size: 1.8em;
  line-height: 1;
  cursor: pointer;
}

/* fields */
.popup__field {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

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

.popup__field input,
.popup__field textarea {
  font-size: 1em;
  padding: 0.7em 0.9em;
  border-radius: 0.8em;
  border: 0.08em solid rgba(43, 45, 66, 0.25);
  font-family: inherit;
}

.popup__field input:focus,
.popup__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status--error {
  color: #b00020;
}

.form-status--success {
  color: #0a7a2a;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 1em 1.2em;
  background: rgba(255, 255, 255, 0.98);
  border-top: 0.08em solid rgba(43, 45, 66, 0.12);
  box-shadow: 0 -0.6em 1.2em rgba(0, 0, 0, 0.08);

  z-index: 1001;
}

.cookie-banner__inner {
  max-width: 86em;
  margin-inline: auto;
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner .btn-row {
  margin-left: auto;
}

.process__grid {
  align-items: stretch;
}

.process__grid .card i {
  font-size: 1.6em;
  line-height: 1;
}

/* ALT SECTION (Dla kogo) */
.section--alt {
  background: #edf2f4;
}

/* lekkie oddechy na tle */
.section--alt .card {
  background: #ffffff;
}

.section--alt .card--soft {
  background: rgba(255, 255, 255, 0.75);
}

/* poprawa kontrastu tekstu */
.section--alt .h2,
.section--alt .h3 {
  color: #1f2233;
}

.yes-item {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  padding: 0.9em 1em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.6);
}

.section--alt .yes-item {
  background: rgba(255, 255, 255, 0.85);
}

.yes-item i {
  font-size: 1.4em;
  line-height: 1;
  margin-top: 0.15em;
  flex: 0 0 auto;
}

.yes-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.yes-item__content strong {
  font-size: 1em;
  font-weight: 700;
}

/* =========================================================
   MEDIA QUERIES (ALWAYS LAST)
   - Only body font-size override + layout tuning
   ========================================================= */

@media (max-width: 767px) {
  .dla-kogo__grid {
    grid-template-columns: 1fr !important;
  }

  .process__grid {
    grid-template-columns: 1fr !important;
    gap: 1.6em;
  }

  .container {
    padding-inline: 1.6em;
  }

  .section {
    padding-block: 4em;
  }

  .section--tight {
    padding-block: 3em;
  }

  .cookie-banner__inner {
    align-items: flex-start;
  }

  .cookie-banner .btn-row {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .popup__box {
    margin-inline: 1.2em;
    padding: 1.6em;
  }

  body {
    font-size: 3.73832vw; /* mobile override */
  }

  .container {
    padding-inline: 1.2em;
  }

  .h1 {
    font-size: 2.6em;
  }

  .lead {
    font-size: 1.15em;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-row {
    width: 100%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.6em;
  }

  .hero__video {
    opacity: 0.2;
  }

  .hero--video {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.8)
      ),
      url("hero-video-fallback.jpg") center / cover no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .call-fixed {
    animation: none;
    transition: none;
  }
}

