/* Apo Reality – minimal, fast, above-the-fold friendly */
:root {
  --color-bg: #f8f9fc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-accent: #0ea5e9;
  --color-accent-hover: #0284c7;
  --color-white: #fff;
  --gradient-brand: linear-gradient(90deg, #e07c5e 0%, #c45c3e 35%, #9b4dca 70%, #6366f1 100%);
  --gradient-brand-reverse: linear-gradient(90deg, #6366f1 0%, #9b4dca 35%, #c45c3e 70%, #e07c5e 100%);
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --max-width: 72rem;
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-sm);
  z-index: 100;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-sm);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-dark);
  color: var(--color-white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md);
  gap: var(--space-md);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 2rem;
  width: auto;
  max-height: 40px;
}
.logo-img--footer {
  height: 1.75rem;
  max-height: 35px;
  opacity: 0.95;
}
.logo:hover .logo-img { opacity: 1; }
.logo:hover .logo-img--footer { opacity: 1; }
.logo svg { display: block; }
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}
.nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}
.nav a:hover { color: var(--color-accent); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: var(--space-xs);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: var(--space-md);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.25s ease;
  }
  .nav-open { clip-path: inset(0 0 0 0) !important; }
  .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .menu-toggle { display: flex; }
  .header .btn-primary { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-position 0.4s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-brand);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--color-white);
}
.btn-primary:hover {
  background-position: 100% 50%;
  color: var(--color-white);
}
.btn-primary:active {
  background-position: 40% 50%;
}
.btn-secondary {
  background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box, var(--gradient-brand) border-box;
  background-origin: padding-box, border-box;
  color: #7c3aed;
  border: 2px solid transparent;
}
.btn-secondary:hover {
  background: var(--gradient-brand);
  background-size: 200% 100%;
  background-position: 100% 50%;
  color: var(--color-white);
  border-color: transparent;
}
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* Hero – delikatny gradient w tle */
.hero {
  padding: var(--space-3xl) 0;
  background-color: #0f172a;
  background-image: linear-gradient(165deg, #0f172a 0%, #1a2545 40%, #162038 75%, #0f172a 100%);
  color: var(--color-white);
}
.hero-inner { text-align: center; max-width: 42rem; margin: 0 auto; }
.hero-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
}
.hero-subtitle {
  font-size: 1.125rem;
  font-weight: var(--font-weight-regular);
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--space-xl);
  line-height: 1.65;
}
.hero .btn-primary { margin-bottom: 0; }

/* Gradient separator (Snowdog-style: coral → blue) */
.hero-gradient-sep {
  height: 12px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #e07c5e 0%,
    #c45c3e 20%,
    #9b4dca 50%,
    #6366f1 80%,
    #0f172a 100%
  );
  flex-shrink: 0;
}

/* Intro */
/* Zdobienia – smugi w rogach (warstwa tła) */
.deco {
  pointer-events: none;
  position: absolute;
  overflow: hidden;
  z-index: 0;
}
.deco svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deco--intro-top {
  top: 0;
  right: 0;
  width: 50%;
  max-width: 420px;
  height: 70%;
}
.deco--intro-top svg { position: absolute; top: 0; right: 0; width: 100%; height: auto; min-height: 100%; }
.deco--intro-bottom {
  bottom: 0;
  left: 0;
  width: 50%;
  max-width: 420px;
  height: 70%;
}
.deco--intro-bottom svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; min-height: 100%; }
.deco--services-top {
  top: 0;
  right: 0;
  width: 48%;
  max-width: 400px;
  height: 65%;
}
.deco--services-top svg { position: absolute; top: 0; right: 0; width: 100%; height: auto; min-height: 100%; }
.deco--services-bottom {
  bottom: 0;
  left: 0;
  width: 48%;
  max-width: 400px;
  height: 65%;
}
.deco--services-bottom svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; min-height: 100%; }

.intro {
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  background-color: var(--color-bg);
}
.intro .container { position: relative; z-index: 1; }
.intro-figure {
  margin: var(--space-xl) auto;
  max-width: 42rem;
}
.intro-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}
.intro-text {
  max-width: 38rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-regular);
}
.intro-text--secondary {
  margin-bottom: var(--space-xl);
}

/* Why us */
.why-us {
  padding: var(--space-2xl) 0;
  background: var(--color-white);
}
.why-us .section-title { text-align: center; margin-bottom: var(--space-xl); }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-xl);
}
.why-item__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}
.why-item h3 {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}
.why-item p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* For who */
.for-who {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}
.for-who .section-title { text-align: center; margin-bottom: var(--space-md); }
.for-who-figure {
  margin: 0 auto var(--space-lg);
  max-width: 56rem;
}
.for-who-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.for-who-intro {
  max-width: 40rem;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.for-who-list {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.for-who-list li {
  padding: var(--space-sm) 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.55;
}
.for-who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.for-who-list strong { font-weight: var(--font-weight-semibold); }

/* Services */
.services {
  padding: var(--space-2xl) 0;
  position: relative;
  background: #e8f0f8;
}
.services .container { position: relative; z-index: 1; }
.services .section-title { text-align: center; margin-bottom: var(--space-xl); }
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: 0;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 400 / 260;
  object-fit: cover;
}
.service-card .service-card__title {
  padding: var(--space-md) var(--space-lg) 0;
}
.service-card .service-card__desc {
  padding: 0 var(--space-lg) var(--space-lg);
}
.service-card__title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
  position: relative;
  padding-bottom: var(--space-sm);
}
.service-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 75%;
  background: linear-gradient(90deg, #e07c5e 0%, #9b4dca 100%);
  transition: background 0.2s ease;
}
.service-card__desc {
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
  line-height: 1.6;
  transition: color 0.2s ease;
}

.service-card:hover {
  background: #1a1a1a;
}
.service-card:hover .service-card__title {
  color: var(--color-white);
}
.service-card:hover .service-card__title::after {
  background: rgba(255, 255, 255, 0.9);
}
.service-card:hover .service-card__desc {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

.services-cta {
  text-align: center;
  margin-top: var(--space-xl);
  padding: 0 var(--space-md);
}

/* Steps */
.steps {
  padding: var(--space-2xl) 0;
}
.steps-figure {
  margin: 0 auto var(--space-lg);
  max-width: 56rem;
  padding: 0 var(--space-md);
}
.steps-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.steps .section-title { text-align: center; margin-bottom: var(--space-xl); }
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}
.step-item {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-brand);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: 0.875rem;
}
.step-item h3 {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-xs);
}
.step-item p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-muted);
}

/* CTA */
.cta {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
  position: relative;
}
.cta-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  opacity: 0.12;
}
.cta-figure .cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta .container { position: relative; z-index: 1; }
.cta .section-title { color: var(--color-white); margin-bottom: var(--space-sm); }
.cta-text {
  margin: 0 0 var(--space-lg);
  font-weight: var(--font-weight-regular);
  color: rgba(255,255,255,0.85);
}

/* Footer */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer .logo { color: var(--color-white); }
.footer-tagline {
  margin: var(--space-xs) 0 0;
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: rgba(255,255,255,0.7);
}
.footer-address {
  margin: var(--space-sm) 0 0;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-regular);
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-address-line {
  display: block;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
}
.footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-copy {
  width: 100%;
  margin: var(--space-md) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: rgba(255,255,255,0.6);
}
.footer-summary {
  width: 100%;
  margin: var(--space-sm) 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  max-width: 52rem;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links ul { justify-content: center; }
}

/* Strony podstron (np. polityka prywatności) */
.page-main {
  padding: var(--space-2xl) 0 var(--space-3xl);
  min-height: 50vh;
}
.container--narrow {
  max-width: 52rem;
}
.page-header {
  margin-bottom: var(--space-xl);
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
  line-height: 1.25;
}
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}
.prose h2 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: var(--space-xl) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.prose h2:first-of-type { margin-top: 0; }
.prose p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
}
.prose p:last-child { margin-bottom: 0; }
.prose ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}
.prose li { margin-bottom: var(--space-xs); }
.prose a {
  color: var(--color-accent);
  text-decoration: none;
}
.prose a:hover { text-decoration: underline; }
.prose strong { font-weight: var(--font-weight-semibold); color: var(--color-text); }
