/* =============================================
   CENTRUM KREDYTÓW I UBEZPIECZEŃ
   styles.css — v1.0
   ============================================= */

/* ============ CUSTOM PROPERTIES ============ */
:root {
  --primary:       #0F1D30;
  --primary-light: #162436;
  --primary-mid:   #1A2B3C;
  --gold:          #C9A84C;
  --gold-light:    #E8C56D;
  --gold-dim:      rgba(201, 168, 76, 0.12);
  --gold-glow:     rgba(201, 168, 76, 0.15);
  --white:         #FFFFFF;
  --text:          #CBD5E1;
  --text-dim:      #94A3B8;
  --border:        rgba(201, 168, 76, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --error:         rgba(239, 68, 68, 0.7);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-gold:   0 8px 32px rgba(201, 168, 76, 0.18);
  --radius:        12px;
  --radius-lg:     20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img    { max-width: 100%; display: block; }
a      { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Faster taps on iOS — no 300ms delay, no grey flash on tap */
a, button, .btn, .nav__link, .hamburger, .service-card, .service-card__link,
.nav-overlay, .legal-toc__link, [role="button"],
input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 104px 0; }

.gold { color: var(--gold); }

/* ============ SCROLL REVEAL ============ */
.reveal-up {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity   0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-52px);
  transition:
    opacity   0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(52px);
  transition:
    opacity   0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ============ SECTION SHARED ============ */
.section-header {
  text-align: center;
  margin-bottom: 68px;
}

.section-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

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

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
  }
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--white);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    background: var(--gold-dim);
  }
}

.btn--full { width: 100%; }

/* ============ LOGO ============ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.25);
}

/* Both lines share one type style so the wordmark reads as a single block */
.logo__name,
.logo__sub {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background var(--transition), padding var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(15, 29, 48, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border-subtle);
  padding: 14px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav__link.active { color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--white); }
}

.nav__link--cta {
  background: var(--gold);
  color: var(--primary) !important;
  font-weight: 700;
  padding: 9px 22px;
}

@media (hover: hover) and (pointer: fine) {
  .nav__link--cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 1010;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay
   Uses pointer-events (not display) so the transition works AND — crucially —
   the invisible overlay never blocks taps on the page underneath. */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity var(--transition-slow);
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============ HERO ============ */
/* Height: fills the screen, but capped at 940px so very tall displays
   (portrait tablets, 27" monitors) don't leave a dead void under the stats.
   svh keeps mobile stable while the browser's URL bar collapses.
   Bottom padding reserves room for the scroll cue pinned at the bottom. */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 128px 0 108px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 65% 35%, rgba(201, 168, 76, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 5% 85%,  rgba(15, 60, 110, 0.45) 0%, transparent 55%),
    linear-gradient(160deg, #0a1828 0%, #0F1D30 60%, #0c1a2d 100%);
}

/* Subtle grid overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle var(--dur, 9s) var(--del, 0s) infinite ease-in-out;
}

@keyframes floatParticle {
  0%   { opacity: 0;               transform: translateY(0)     scale(1); }
  8%   { opacity: var(--op, 0.35); }
  88%  { opacity: var(--op, 0.35); }
  100% { opacity: 0;               transform: translateY(-110px) scale(0.4); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 9px 22px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: badgePulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50%       { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 0 4px rgba(201, 168, 76, 0); }
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 68px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero__trust-item { display: flex; flex-direction: column; gap: 4px; }

.hero__trust-num {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__trust-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 400;
}

.hero__trust-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll cue — a real link to the next section, left-aligned with the
   content column (matches .container: max-width 1200 + 28px padding). */
.hero__scroll {
  position: absolute;
  bottom: 38px;
  left: max(28px, calc((100% - 1200px) / 2 + 28px));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.hero__scroll:hover,
.hero__scroll:focus-visible { color: var(--gold); }

.hero__scroll-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
  animation: scrollNudge 2.4s ease-in-out infinite;
}

.hero__scroll-btn svg { width: 17px; height: 17px; }

.hero__scroll:hover .hero__scroll-btn,
.hero__scroll:focus-visible .hero__scroll-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
  animation: none;
  transform: translateY(3px);
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============ SERVICES ============ */
.services {
  background: var(--primary-light);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.5;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-7px);
    border-color: var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), var(--shadow-gold);
  }

  .service-card:hover::after {
    transform: scaleX(1);
  }
}

.service-card__icon {
  width: 66px;
  height: 66px;
  background: var(--gold-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  transition: background var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(201, 168, 76, 0.2);
}

.service-card__number {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.35);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.service-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-card__features {
  margin-bottom: 28px;
  flex: 1;
}

.service-card__features li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card__features li:last-child { border-bottom: none; }

.service-card__features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.5);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
  margin-top: auto;
}

.service-card__link:hover { gap: 14px; }

/* ============ STATS / ABOUT ============ */
.stats {
  position: relative;
  overflow: hidden;
}

.stats__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 80% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 65%),
    var(--primary);
}

.stats__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 88px;
  align-items: center;
}

.stats__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats__content .section-title,
.stats__content .section-tag {
  text-align: left;
  display: block;
}

.stats__text {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.stats__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-item {
  background: var(--primary-light);
  padding: 36px 30px;
  border: 1px solid var(--border-subtle);
  transition: background var(--transition), border-color var(--transition);
}

.stat-item:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.stat-item:nth-child(4) { border-radius: 0 0 var(--radius) 0; }

.stat-item:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--border);
}

.stat-item__num {
  font-size: 2.625rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.03em;
}

.stat-item__label {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============ WHY US ============ */
.why-us {
  background: var(--primary-light);
  position: relative;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.5;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 0 var(--radius) var(--radius);
  transform: scaleX(0);
  transition: transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .why-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: var(--shadow);
  }

  .why-card:hover::after { transform: scaleX(1); }
}

.why-card__icon {
  width: 54px;
  height: 54px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background var(--transition);
}

.why-card:hover .why-card__icon { background: rgba(201, 168, 76, 0.2); }

.why-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.why-card__desc {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 15% 50%, rgba(15, 60, 110, 0.35) 0%, transparent 60%),
    var(--primary);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 88px;
  align-items: start;
}

.contact__info .section-title,
.contact__info .section-tag {
  text-align: left;
  display: block;
}

.contact__desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-top: 14px;
  margin-bottom: 44px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact__detail:hover .contact__detail-icon { background: rgba(201, 168, 76, 0.22); }

.contact__detail-label {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact__detail-value {
  font-size: 0.9375rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}

a.contact__detail-value:hover { color: var(--gold); }

/* ============ FORM ============ */
.contact-form {
  background: var(--primary-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}

.form-group { margin-bottom: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--white);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group select option {
  background: var(--primary-light);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--primary);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M2 5.5l2.5 2.5 4.5-4.5' stroke='%230F1D30' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-checkbox input[type="checkbox"].error {
  border-color: var(--error);
}

.form-checkbox label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.65;
  cursor: pointer;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 0.9375rem;
  color: var(--gold);
  margin-top: 16px;
  font-weight: 500;
}

.form-success.show { display: flex; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============ FOOTER ============ */
.footer {
  background: #090f1a;
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.75;
  max-width: 230px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__col a,
.footer__col span {
  font-size: 0.9375rem;
  color: var(--text-dim);
  transition: color var(--transition);
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--gold); }
}

@media (max-width: 768px) {
  .footer__col a,
  .footer__col span { padding: 10px 0; min-height: 44px; }
}

.footer__legal {
  padding: 36px 0;
}

.footer__legal-info {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer__legal-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__legal-info span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

.footer__legal-info span:first-child::before { display: none; }

.footer__disclaimer {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 820px;
  margin-bottom: 28px;
  opacity: 0.6;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer__bottom-copy {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer__legal-links {
  display: flex;
  gap: 28px;
}

.footer__legal-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__legal-links a:hover { color: var(--gold); }

/* ============ RESPONSIVE — TABLET ============ */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .stats__inner   { gap: 56px; }
  .contact__inner { gap: 56px; }
  .footer__top    { grid-template-columns: 1fr; gap: 32px; }
  .footer__tagline { max-width: 100%; }
}

/* ============ RESPONSIVE — MOBILE ============ */
@media (max-width: 768px) {
  section { padding: 76px 0; }

  /* Header / Nav */
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -320px;
    bottom: 0;
    width: 300px;
    background: var(--primary-light);
    border-left: 1px solid var(--border);
    padding: 100px 32px 40px;
    transition: right var(--transition-slow);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.open { right: 0; }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav__link {
    font-size: 1.0625rem;
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav__link--cta {
    padding: 14px 24px;
    border-radius: 8px;
    margin-top: 12px;
    border-bottom: none;
    display: inline-flex;
    width: auto;
    justify-content: center;
    align-self: flex-start;
    min-height: 48px;
  }

  /* Hero */
  .hero { padding: 116px 0 84px; }
  .hero__actions { margin-bottom: 52px; }
  .hero__trust { gap: 20px; }
  .hero__trust-divider { display: none; }
  .hero__scroll { bottom: 26px; font-size: 0.6875rem; }
  .hero__scroll-btn { width: 38px; height: 38px; }

  /* Stats */
  .stats__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .stats__content .section-title,
  .stats__content .section-tag {
    text-align: center;
  }

  .stats__content {
    align-items: center;
    text-align: center;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact__info .section-title,
  .contact__info .section-tag {
    text-align: center;
  }

  .contact__info {
    text-align: center;
  }

  .contact__details { align-items: flex-start; }
  .contact__detail  { text-align: left; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }

  /* Footer */
  .footer__links      { grid-template-columns: 1fr 1fr; }
  .footer__legal-info { gap: 16px; flex-direction: column; }
  .footer__legal-info span::before { display: none; }
  .footer__bottom     { flex-direction: column; text-align: center; gap: 16px; }
}

/* ============ RESPONSIVE — SMALL MOBILE ============ */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .section-title { letter-spacing: -0.015em; }

  /* Phones: the hero already fills the screen, so the scroll cue is just
     noise — drop it and reclaim its reserved space. */
  .hero { padding: 108px 0 68px; }
  /* Keeps "w pewnych rękach" on one line down to ~340px wide */
  .hero__title   { font-size: clamp(1.95rem, 9vw, 2.6rem); margin-bottom: 20px; }
  .hero__desc    { font-size: 1.0625rem; }
  .hero__actions { flex-direction: column; align-items: stretch; margin-bottom: 44px; }
  .hero__badge   { font-size: 0.75rem; padding: 8px 18px; margin-bottom: 26px; }
  .hero__desc    { margin-bottom: 34px; }
  /* 3 equal columns instead of a ragged flex wrap (98% dropping to its own row) */
  .hero__trust   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero__trust-num { font-size: 1.5rem; }
  .hero__trust-label { font-size: 0.75rem; line-height: 1.35; }
  .hero__scroll  { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid   { grid-template-columns: 1fr; }

  .stats__numbers {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .stat-item:nth-child(1) { border-radius: var(--radius) var(--radius) 0 0; }
  .stat-item:nth-child(2) { border-radius: 0; }
  .stat-item:nth-child(3) { border-radius: 0; }
  .stat-item:nth-child(4) { border-radius: 0 0 var(--radius) var(--radius); }

  .footer__links { grid-template-columns: 1fr; gap: 28px; }
  .footer__top   { padding-bottom: 40px; }
  .contact-form  { padding: 28px 18px; }
}

/* ============ RESPONSIVE — SHORT VIEWPORTS ============
   Laptops (1366×768, 1440×900) and landscape phones: the hero is limited by
   height, not width. Tighten the vertical rhythm so it still fits one screen. */
@media (min-width: 769px) and (max-height: 860px) {
  .hero { padding: 110px 0 88px; }
  .hero__badge   { margin-bottom: 24px; }
  .hero__title   { margin-bottom: 20px; }
  .hero__desc    { margin-bottom: 32px; }
  .hero__actions { margin-bottom: 44px; }
  .hero__trust   { padding-top: 22px; }
  .hero__scroll  { bottom: 26px; }
}

/* Very short (landscape phones): no room for a scroll cue at all. */
@media (max-height: 620px) {
  .hero { padding: 104px 0 60px; }
  .hero__scroll { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-btn,
  .hero__badge-dot,
  .particle { animation: none; }

  .hero__scroll:hover .hero__scroll-btn,
  .hero__scroll:focus-visible .hero__scroll-btn { transform: none; }
}


/* ============================================================
   CONTACT PAGE (kontakt.html) – additional styles
   ============================================================ */

/* ── Page Hero (short) ── */
.page-hero {
  position: relative;
  padding: 150px 0 76px;
  overflow: hidden;
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #0a1522 0%, var(--primary) 100%);
}

/* Subtle grid overlay */
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 10%, transparent 80%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.page-hero__breadcrumb a {
  color: var(--text-dim);
  transition: color var(--transition);
}

.page-hero__breadcrumb a:hover { color: var(--gold); }

.page-hero__breadcrumb-sep {
  color: var(--border);
  font-size: 0.875rem;
}

.page-hero__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.page-hero__desc {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Info Strip ── */
.info-strip {
  background: var(--primary-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
}

.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.info-strip__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.info-strip__item:last-child { border-right: none; }

.info-strip__item:hover { background: rgba(201, 168, 76, 0.04); }

.info-strip__icon {
  width: 46px;
  height: 46px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-strip__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.info-strip__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}

a.info-strip__value:hover { color: var(--gold); }

/* ── Standalone contact section ── */
.contact--standalone {
  padding-top: 80px;
}

.contact--standalone .contact__inner {
  grid-template-columns: 1.35fr 1fr;
}

/* ── Process steps ── */
.process {
  background: var(--primary-light);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.process-step {
  background: var(--primary);
  padding: 36px 24px;
  border: 1px solid var(--border-subtle);
  position: relative;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.process-step:hover {
  background: rgba(201, 168, 76, 0.04);
  border-color: var(--border);
}

.process-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.process-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.process-step__num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.process-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Responsive: contact page ── */
@media (max-width: 1024px) {
  .info-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip__item:nth-child(2) { border-right: none; }
  .info-strip__item:nth-child(3),
  .info-strip__item:nth-child(4) { border-top: 1px solid var(--border-subtle); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:first-child { border-radius: var(--radius) 0 0 0; }
  .process-step:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .process-step:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .process-step:last-child   { border-radius: 0 0 var(--radius) 0; }
  .contact--standalone .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 130px 0 60px; }
  .info-strip__grid { grid-template-columns: 1fr; }
  .info-strip__item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .info-strip__item:last-child { border-bottom: none; }
  .process__grid { grid-template-columns: 1fr; }
  .process-step:first-child,
  .process-step:nth-child(2),
  .process-step:nth-child(3) { border-radius: 0; }
  .process-step:first-child  { border-radius: var(--radius) var(--radius) 0 0; }
  .process-step:last-child   { border-radius: 0 0 var(--radius) var(--radius); }
}


/* ============================================================
   LEGAL PAGES — regulamin / polityka-prywatnosci / rodo
   ============================================================ */

.legal-section { padding: 72px 0 120px; }

.legal-layout {
  display: grid;
  grid-template-columns: 228px 1fr;
  gap: 72px;
  align-items: start;
}

/* ── Table of Contents ── */
.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--primary-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
}

.legal-toc__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc__link {
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding: 8px 10px;
  border-radius: 6px;
  display: block;
  transition: var(--transition);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.legal-toc__link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.legal-toc__link.active { color: var(--gold); background: var(--gold-dim); border-left-color: var(--gold); }

/* ── Legal body ── */
.legal-body { min-width: 0; }

.legal-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  background: var(--primary-light);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 48px;
}

.legal-section-block {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 100px;
}

.legal-section-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.legal-section-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.legal-body p {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--white); font-weight: 600; }

.legal-body ul,
.legal-body ol {
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body ul li,
.legal-body ol li {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
  position: relative;
  padding-left: 22px;
}

.legal-body ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
}

.legal-body ol { counter-reset: legal-ol; }
.legal-body ol li { counter-increment: legal-ol; }
.legal-body ol li::before {
  content: counter(legal-ol) ".";
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 3px;
  line-height: 1.7;
}

.legal-highlight {
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-highlight p { margin-bottom: 0 !important; color: var(--text) !important; }

.legal-contact-box {
  background: var(--primary-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-contact-box a { color: var(--gold); transition: color var(--transition); }
.legal-contact-box a:hover { color: var(--gold-light); }

/* ── Responsive legal ── */
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 200px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .legal-section { padding: 56px 0 80px; }
}

@media (max-width: 480px) {
  .legal-toc { display: none; }
}
