/* ==========================================================================
   Codeluk — Premium portfolio homepage
   ========================================================================== */

:root {
  --bg-dark: #060b14;
  --bg-navy: #0a1222;
  --bg-card: #0c1628;
  --bg-panel: #0b1424;

  --cyan: #00b4ff;
  --cyan-hover: #0096d6;
  --cyan-soft: rgba(0, 180, 255, 0.14);
  --cyan-glow: rgba(0, 180, 255, 0.35);

  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --wedzenie-accent: #e8943a;
  --tripcost-accent: #22d3ee;
  --rozlicznik-accent: #34d399;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-script: "Segoe Script", "Apple Chancery", "Brush Script MT", cursive;

  --container-max: 1440px;
  --header-height: 4.75rem;
  --z-header: 1000;
  --z-nav-overlay: 1;
  --z-header-bar: 2;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-phone: 0 24px 60px rgba(0, 0, 0, 0.55);

  --transition: 250ms ease;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html.nav-open {
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--cyan);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(6, 11, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (max-width: 899px) {
  .site-header:has(.site-nav.is-open) {
    inset: 0;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .site-header:has(.site-nav.is-open) .nav-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .header-inner {
    position: relative;
    z-index: var(--z-header-bar);
  }
}

.site-header.is-scrolled {
  background: rgba(6, 11, 20, 0.92);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-full {
  height: 2rem;
  width: auto;
  max-width: 120px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav-overlay);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 1rem;
  background: rgba(6, 11, 20, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 2.75rem 1.35rem 1.35rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  transform: translateY(-0.35rem) scale(0.97);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav.is-open .nav-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.nav-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cyan);
}

.nav-close-icon {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 300;
}

@media (max-width: 899px) {
  .nav-panel .nav-list {
    gap: 0.15rem;
  }

  .nav-panel .lang-selector-pill {
    margin-top: 1.15rem;
    align-self: flex-start;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.65rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.is-active { color: var(--text-main); }

.nav-link.is-active {
  color: var(--cyan);
}

.lang-selector-pill {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  align-self: flex-start;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(82vh, 740px);
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-workspace.jpg');
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(3, 10, 20, 0.95) 0%,
    rgba(3, 10, 20, 0.78) 38%,
    rgba(3, 10, 20, 0.22) 58%,
    rgba(3, 10, 20, 0.04) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.hero-content { max-width: 34rem; }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.text-accent { color: var(--cyan); }

.hero-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 30rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2.25rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 9rem;
}

.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--cyan-soft);
  color: var(--cyan);
  flex-shrink: 0;
}

.hero-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-feature-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-feature-text span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn-primary {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  background: var(--cyan);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cyan-glow);
}

.btn-outline {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  background: transparent;
}

.btn-outline:hover {
  background: var(--cyan);
  color: #fff;
}

/* Hero decorative text */
.hero-visual {
  position: relative;
  display: none;
  pointer-events: none;
}

.hero-handwritten {
  position: absolute;
  font-family: var(--font-script);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
  pointer-events: none;
  z-index: 2;
  max-width: 9rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-handwritten--left {
  bottom: 18%;
  right: 18%;
  transform: rotate(-5deg);
}

.hero-handwritten--right {
  top: 16%;
  right: 6%;
  transform: rotate(4deg);
  text-align: right;
}

/* Phone mockup — app cards */
.phone-mockup {
  position: relative;
}

.phone-frame {
  padding: 0.45rem;
  background: linear-gradient(160deg, #2e3a50 0%, #1a2234 100%);
  border-radius: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-phone);
}

.phone-notch {
  width: 28%;
  height: 0.3rem;
  margin: 0 auto 0.35rem;
  background: #060b14;
  border-radius: 0 0 0.4rem 0.4rem;
}

.phone-screen {
  border-radius: 1.45rem;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #0a0f18;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-mockup--card {
  width: 9.5rem;
  flex-shrink: 0;
}

.phone-mockup--card .phone-frame {
  padding: 0.3rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.phone-mockup--card .phone-screen {
  border-radius: 1.05rem;
}

/* ==========================================================================
   APPLICATIONS
   ========================================================================== */
.apps-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  max-width: 38rem;
  margin-inline: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

.product-card {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.product-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-card--wedzenie .product-card-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(32, 12, 3, 0.98) 0%,
      rgba(44, 18, 5, 0.92) 38%,
      rgba(44, 18, 5, 0.55) 58%,
      rgba(30, 10, 2, 0.15) 78%,
      rgba(20, 8, 2, 0.05) 100%
    ),
    url('../assets/images/wedzeniepro-bg.jpg');
  background-size: cover;
  background-position: center right;
}

.product-card--tripcost .product-card-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 28, 48, 0.98) 0%,
      rgba(3, 42, 68, 0.90) 38%,
      rgba(3, 55, 82, 0.50) 58%,
      rgba(3, 45, 70, 0.14) 78%,
      rgba(3, 35, 55, 0.04) 100%
    ),
    url('../assets/images/tripcost-bg.jpg');
  background-size: cover;
  background-position: center right;
}

.product-card--rozlicznik .product-card-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(5, 18, 12, 0.98) 0%,
      rgba(8, 28, 20, 0.9) 38%,
      rgba(10, 36, 26, 0.5) 58%,
      rgba(8, 30, 22, 0.14) 78%,
      rgba(5, 16, 12, 0.04) 100%
    ),
    url('../assets/images/rozlicznik-bg.jpg');
  background-size: cover;
  background-position: right center;
}

.product-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  min-width: 8.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #052e1a;
  background: var(--rozlicznik-accent);
  border: none;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-launch-btn:hover {
  background: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.35);
}

.product-card-visual--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 1.25rem;
  background: rgba(5, 18, 12, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.product-card-visual--icon img {
  width: 4.5rem;
  height: 4.5rem;
}

.product-card-inner {
  position: relative;
  z-index: 1;
  min-height: 17.5rem;
  padding: 1rem 1.15rem;
}

.product-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.product-card .app-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.65rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  object-fit: cover;
}

.product-card-titles h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.product-card .app-package {
  display: block;
  font-size: 0.68rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.1rem;
}

.product-card .product-description {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
  margin-bottom: 0.65rem;
  max-width: 48%;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-card-visual {
  position: absolute;
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

/* Google Play button — compact promo style */
.product-card .gplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.75rem 0.38rem 0.55rem;
  min-width: 8.5rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-card .gplay-btn:hover {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.product-card .gplay-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}

.product-card .gplay-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-card .gplay-text small {
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: uppercase;
}

.product-card .link-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color var(--transition);
}

.product-card .link-more:hover {
  color: var(--cyan);
}

.product-card--rozlicznik .link-more:hover {
  color: var(--rozlicznik-accent);
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */
.benefits-section {
  padding-block: clamp(2rem, 4vw, 3.25rem);
}

.benefits-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2.35rem) clamp(1.25rem, 2.5vw, 2rem);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 0.1rem;
}

.benefit-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.benefit-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   ABOUT — full-width background banner
   ========================================================================== */
.about-section {
  padding-block: 0;
  position: relative;
  background-color: #0a1222;
  background-image: url('../assets/images/about-workspace.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(4, 10, 18, 0.08) 0%,
    rgba(4, 10, 18, 0.4) 40%,
    rgba(4, 10, 18, 0.82) 55%,
    rgba(4, 10, 18, 0.92) 100%
  );
  pointer-events: none;
}

.about-banner.about-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: inherit;
  padding-top: 16.25rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1.75rem 1.25rem 2rem;
}

.about-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.about-content p {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 34rem;
}

.about-content p:last-of-type {
  margin-bottom: 1.5rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-content .btn-outline {
  align-self: flex-start;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-block: 1.75rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copy,
.footer-tagline {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.footer-copy {
  color: var(--text-dim);
}

.footer-tagline {
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--text-main); }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 244, 248, 0.82);
  transition: color var(--transition), transform var(--transition);
}

.footer-icon-link:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.footer-icon-link svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 640px) {
  .benefits-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

@media (min-width: 900px) {
  .logo-full {
    height: auto;
    width: clamp(145px, 11vw, 165px);
    max-width: none;
  }

  .nav-toggle { display: none; }

  .site-nav,
  .site-nav.is-open {
    position: static;
    inset: auto;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
    overscroll-behavior: auto;
  }

  .nav-panel {
    display: contents;
  }

  .nav-close {
    display: none;
  }

  .nav-panel .nav-list,
  .nav-list {
    flex-direction: row;
    gap: 1.75rem;
  }

  .nav-link {
    font-size: 0.9375rem;
    padding: 0;
    color: #b0bcc9;
    white-space: nowrap;
  }

  .nav-link:hover {
    color: var(--cyan);
  }

  .nav-link.is-active {
    color: var(--cyan);
  }

  .lang-selector-pill,
  .nav-panel .lang-selector-pill {
    margin-top: 0;
    margin-left: 0;
    align-self: center;
    flex-shrink: 0;
  }

  .hero-photo {
    background-position: 52% center;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-visual {
    display: block;
    align-self: stretch;
    min-height: 10rem;
  }

  .hero-handwritten--left {
    right: 24%;
  }

  .hero-handwritten--right {
    right: 10%;
  }

  .benefits-panel {
    padding-block: clamp(1.5rem, 2.5vw, 2.35rem);
    padding-inline: 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.125rem;
  }

  .product-card-inner {
    height: 18.75rem;
    min-height: 18.75rem;
    padding: 1.1rem 1.2rem;
  }

  .product-card-body {
    max-width: 50%;
    height: 100%;
  }

  .product-card .product-description {
    max-width: 100%;
    font-size: 0.74rem;
  }

  .product-card-titles h3 {
    font-size: 1.25rem;
  }

  .product-card .app-icon {
    width: 3.5625rem;
    height: 3.5625rem;
  }

  .product-card-visual {
    left: 66%;
  }

  .phone-mockup--card {
    width: 9.6875rem;
  }

  .benefits-panel {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .benefit-item {
    padding: 0 1.5rem;
  }

  .benefit-item:first-child {
    padding-left: 0;
  }

  .benefit-item:last-child {
    padding-right: 0;
  }

  .benefit-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .benefit-icon svg {
    width: 28px;
    height: 28px;
  }

  .about-section {
    min-height: 21.25rem;
  }

  .about-section::before {
    background: linear-gradient(
      90deg,
      rgba(4, 10, 18, 0.04) 0%,
      rgba(4, 10, 18, 0.1) 55%,
      rgba(4, 10, 18, 0.48) 60%,
      rgba(4, 10, 18, 0.72) 75%,
      rgba(4, 10, 18, 0.86) 100%
    );
  }

  .about-banner.about-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    min-height: 21.25rem;
    padding-top: 0;
  }

  .about-content {
    grid-column: 2;
    width: 100%;
    max-width: 32rem;
    justify-self: start;
    align-self: center;
    padding: 0;
	
	margin-left: 180px;
  }

  .about-content p {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: left;
  }

  .footer-nav {
    flex-shrink: 0;
  }

  .footer-social {
    flex-shrink: 0;
    gap: 1.625rem;
  }

  .footer-copy {
    flex-shrink: 1;
    min-width: 0;
  }

  .footer-tagline {
    flex-shrink: 1;
    min-width: 0;
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .hero {
    min-height: min(80vh, 720px);
  }

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

  .product-card-inner {
    min-height: 18.5rem;
    height: 18.5rem;
    padding: 0.95rem 1rem;
  }

  .product-card-body {
    max-width: 52%;
  }

  .product-card .product-description {
    font-size: 0.68rem;
    line-height: 1.42;
  }

  .product-card-visual {
    left: 70%;
  }

  .phone-mockup--card {
    width: 8.75rem;
  }

  .product-card-visual--icon {
    width: 7.25rem;
    height: 7.25rem;
  }

  .product-card-visual--icon img {
    width: 3.75rem;
    height: 3.75rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .section-header p {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 3.85rem;
    margin-bottom: 1.65rem;
  }

  .hero-lead {
    margin-bottom: 2.15rem;
  }

  .hero-features {
    margin-bottom: 2.5rem;
  }

  .hero-photo {
    background-position: 50% center;
  }

  .benefit-item h3 {
    font-size: 1.05rem;
  }

  .benefit-item p {
    font-size: 0.88rem;
  }

  .benefit-icon svg {
    width: 30px;
    height: 30px;
  }

  .about-section,
  .about-banner.about-grid {
    min-height: 22.5rem;
  }

  .about-content h2 {
    font-size: 2.15rem;
    margin-bottom: 1.1rem;
  }

  .about-content p {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .about-content p:last-of-type {
    margin-bottom: 1.65rem;
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: min(78vh, 680px);
  }

  .hero-photo {
    background-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(3, 10, 20, 0.93) 0%,
      rgba(3, 10, 20, 0.72) 50%,
      rgba(3, 10, 20, 0.35) 100%
    );
  }

  .product-card-inner {
    min-height: 20rem;
    height: auto;
    padding-bottom: 11rem;
  }

  .product-card-body {
    max-width: 100%;
  }

  .product-card .product-description {
    max-width: 100%;
    font-size: 0.75rem;
  }

  .product-card-visual {
    left: auto;
    right: 1rem;
    top: auto;
    bottom: 0.65rem;
    transform: none;
  }

  .phone-mockup--card {
    width: 8.5rem;
  }

  .product-card--wedzenie .product-card-bg,
  .product-card--tripcost .product-card-bg {
    background-position: center right;
  }

  .product-card--rozlicznik .product-card-bg {
    background-position: right center;
  }

}


@media (min-width: 850px) and (max-width: 899px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card-inner {
    height: 17.5rem;
    min-height: 17.5rem;
    padding: 0.9rem 1rem;
    padding-bottom: 0;
  }

  .product-card-body {
    max-width: 46%;
  }

  .product-card .product-description {
    font-size: 0.68rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .product-card-visual {
    left: 68%;
    top: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%);
  }

  .phone-mockup--card {
    width: 8.75rem;
  }

}

@media (max-width: 849px) {
  .product-card-inner {
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    padding: 1rem 1.15rem 1.15rem;
  }

  .product-card-body {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-shrink: 0;
  }

  .product-card .product-description {
    max-width: 100%;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .product-card-actions {
    margin-top: 0;
    margin-bottom: 0.85rem;
  }

  .product-card-visual {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    align-self: flex-end;
    margin-top: 0.15rem;
    margin-right: 0.15rem;
    flex-shrink: 0;
  }

  .phone-mockup--card {
    width: 8.25rem;
  }
}

@media (max-width: 639px) {
  .about-section {
    background-size: cover;
    background-position: 18% 40%;
  }

  .about-section::before {
    background: linear-gradient(
      to bottom,
      rgba(4, 10, 18, 0.1) 0%,
      rgba(4, 10, 18, 0.28) 30%,
      rgba(4, 10, 18, 0.72) 52%,
      rgba(4, 10, 18, 0.92) 68%,
      rgba(4, 10, 18, 0.97) 100%
    );
  }

  .about-banner.about-grid {
    padding-top: 13.5rem;
  }

  .about-content {
    padding: 1.5rem 1.25rem 2rem;
  }
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page {
  padding-top: var(--header-height);
}

.legal-content {
  max-width: 42rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.legal-header {
  margin-bottom: 2.5rem;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.legal-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0.5rem 0 0.85rem 1.25rem;
  list-style: disc;
}

.legal-content li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal-content a:hover {
  color: var(--cyan-hover);
}
