:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f5f5f5;
  --muted: #b6b6b6;
  --gold: #c8a85d;
  --gold-light: #dfc47a;
  --border: rgba(255, 255, 255, 0.18);
  --font-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", var(--font-sans);
  --font-heading: "Spectral", "Source Sans 3", var(--font-sans);
  --font-kicker: var(--font-heading);
  --weight-body: 300;
  --weight-body-strong: 400;
  --weight-heading: 500;
  --weight-heading-strong: 600;
  --weight-heading-bold: 700;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: auto; /* use native page scrolling */
}

.privacy-page {
  background: #ffffff;
  color: #1f1f1f;
  overflow: auto;
}

.privacy {
  min-height: 100vh;
  padding: 80px 8vw 100px;
}

.privacy .logo {
  width: 180px;
  margin-bottom: 40px;
}

.privacy-content {
  max-width: 720px;
  display: grid;
  gap: 16px;
}

.privacy-content h1 {
  font-size: 36px;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading-strong);
  margin-bottom: 8px;
}

.privacy-content h2 {
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading-strong);
  margin-top: 16px;
}

.privacy-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

.privacy-content a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  height: auto; /* allow page to grow with document for native scrolling */
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.logo {
  display: block;
  width: 300px;
  height: auto;
}

.site-header {
  position: fixed;
  top: 28px;
  right: 72px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav {
  display: flex;
  gap: 24px;
  pointer-events: auto;
}

.site-nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  margin: 7px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-dark-text .site-nav-toggle span {
  background: #0f0f0f;
}

.site-header.nav-open .site-nav-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.site-header.nav-open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .site-nav-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
  position: relative;
  opacity: 1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-header.is-dark-text .site-nav a {
  color: #0f0f0f;
}

.site-header.is-dark-text .site-nav a::after {
  background: rgba(15, 15, 15, 0.6);
}

.section > .logo {
  position: absolute;
  top: 36px;
  left: 48px;
  z-index: 2;
}

/* Put the .about logo beneath the text so it doesn't overlap content */
.about .logo {
  z-index: 0;
}
.about-inner {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  min-height: 100vh;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 100px;
  position: relative;
}

.hero-content {
  max-width: 560px;
}

[data-animate] {
  opacity: 0;
  animation-duration: 1.05s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

[data-animate="down"] {
  transform: translateY(-40px);
}

[data-animate="right"] {
  transform: translateX(40px);
}

[data-animate="up"] {
  transform: translateY(40px);
}

[data-animate].is-visible {
  animation-name: fade-slide;
}

.hero-kicker {
  font-family: var(--font-kicker);
  font-size: 50px;
  font-weight: var(--weight-heading);
  margin-bottom: 10px;
}

.hero-kicker span {
  font-weight: var(--weight-heading-strong);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: var(--weight-heading);
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero-tags {
  list-style: none;
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 20px;
  font-weight: var(--weight-body-strong);
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-tags li::before {
  content: "•";
  margin-right: 10px;
  color: var(--muted);
}

.hero-tags li:first-child::before {
  content: "";
  margin-right: 0;
}

.hero-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  border: 1px solid var(--gold);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-weight: var(--weight-heading);
  letter-spacing: 0.5px;
  margin-top: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.hero-cta span {
  position: relative;
  z-index: 1;
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--gold);
  background-image: linear-gradient(120deg, #c8a85d, #dfc47a, #c8a85d);
  background-size: 200% 200%;
  background-position: 0% 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.hero-cta:hover {
  border-color: var(--gold-light);
  color: #0b0b0b;
}

.hero-cta:hover::before {
  opacity: 1;
  animation: gradient-flow 1.8s ease infinite;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  animation: scroll-pulse 2.2s ease-in-out infinite;
  border: none;
  padding: 0;
  cursor: pointer;
  transform: translateX(-50%);
}

.hero-scroll-hint::before {
  content: "";
  width: 28px;
  height: 28px;
  border-right: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: rotate(45deg);
  margin-top: 8px;
}

.hero-scroll-hint::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 38px;
  background: #ffffff;
  transform: translateY(-10px);
}

.hero-scroll-hint:hover {
  opacity: 0.85;
}

.about {
  background: #ffffff;
  color: #2a2a2a;
  padding: 110px 8vw 120px;
  min-height: auto; /* let content determine height so nothing is clipped */
}

.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
  padding-top: 90px;
}

.about-intro {
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.about-title {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 38px;
  font-weight: var(--weight-heading);
  margin-bottom: 20px;
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 0;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 44px;
  align-items: start;
}

.about-card {
  display: grid;
  gap: 16px;
}

.about-card-media {
  width: 100%;
  height: 440px;
  background-color: #efefef;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.about-card-media--it {
  background-image: url("images/it.jpg");
}

.about-card-media--realestate {
  background-image: url("images/nieruchomosci.jpg");
}

.about-card-media--finance {
  background-image: url("images/finanse.jpg");
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--weight-heading);
  letter-spacing: -0.2px;
  color: #1f1f1f;
}

.about-card p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.7);
}

.steps {
  background: #050505;
  color: #f5f5f5;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 680px);
  gap: 70px;
  align-items: center;
  padding: 110px 6vw;
  justify-content: center;
}

.steps-content {
  display: grid;
  gap: 32px;
  max-width: 520px;
}

.steps-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: var(--weight-heading);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.steps-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
  padding-bottom: 24px;
}

.steps-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}

.steps-item:not(:last-child) .steps-index::after {
  content: "";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 1px;
  height: calc(100% - 2px);
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
}

.steps-item h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--weight-heading-strong);
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}

.steps-item p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.steps-media {
  width: 100%;
  height: 480px;
  background-color: #1a1a1a;
  background-image: url("images/komputery.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  max-width: 680px;
  justify-self: center;
}


.contact {
  background: #050505;
  color: #f5f5f5;
  padding: 90px 8vw 32px;
  min-height: 100vh;
  display: flex;
}

.contact-shell {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  padding-top: 120px;
}

.contact-header {
  text-align: center;
}

.contact-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: var(--weight-heading);
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: #f5f5f5;
  padding: 14px 2px 12px;
  font-size: 16px;
  font-family: var(--font-body);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.contact-consent {
  grid-auto-flow: column;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: none;
  letter-spacing: 0;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-light);
}

.contact-consent a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-light);
}

.contact-submit {
  justify-self: start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  border: 1px solid var(--gold);
  color: #f5f5f5;
  background: transparent;
  text-decoration: none;
  font-weight: var(--weight-heading);
  letter-spacing: 0.5px;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.contact-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--gold);
  background-image: linear-gradient(120deg, #c8a85d, #dfc47a, #c8a85d);
  background-size: 200% 200%;
  background-position: 0% 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.contact-submit span {
  position: relative;
  z-index: 1;
}

.contact-submit:hover {
  border-color: var(--gold-light);
  color: #0b0b0b;
}

.contact-submit:hover::before {
  opacity: 1;
  animation: gradient-flow 1.8s ease infinite;
}

.contact-details {
  text-align: center;
  padding: 0;
  border: none;
  background: transparent;
  margin-top: auto;
}

.contact-details h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--weight-heading-bold);
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-details p {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px 16px;
  margin: 18px auto 14px;
  max-width: 460px;
}

.contact-meta p {
  font-size: 20px;
  color: #ffffff;
}

.contact-mail {
  display: inline-flex;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 20px;
  margin-top: 8px;
}

.contact-mail:hover {
  color: #f0d89a;
}

.contact-footer {
  text-align: center;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  padding-top: 18px;
}

.contact-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.contact-anchor {
  position: absolute;
  bottom: 0;
}

@keyframes fade-slide {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, 10px) scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .section > .logo {
    top: 18px;
    left: 7vw; /* align logo with content padding on mobile */
    width: 180px; /* increase perceived size on mobile */
  }

  .hero-tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }

  .hero-tags li::before {
    content: "";
    margin-right: 0;
  }

  .logo {
    width: 180px;
  }

  .site-header {
    top: 18px;
    right: 18px;
  }

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

  .site-nav a {
    font-size: 13px;
  }

  .hero-scroll-hint {
    bottom: 46px;
    width: 56px;
    height: 56px;
  }

  /* Increase spacing in steps section on very small screens to avoid logo overlap */
  .steps {
    padding-top: 250px;
  }
}
/* Mobile: crop logo image to remove transparent margins and align visible mark to left
   and ensure logos are visible on all sections but shifted left similarly to first */
@media (max-width: 640px) {
  .section > .logo {
    width: 160px;
    height: 64px;
    object-fit: cover;
    object-position: left center;
    display: block;
    left: 6vw; /* align with content but slightly more left */
    transform: translateX(-50px); /* nudge further left (approx -50px) */
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    scroll-snap-type: none;
    overflow-y: auto;
  }

  .section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .hero {
    padding: 0 18px 120px;
  }

  .hero-content {
    max-width: 420px;
  }

  .hero-kicker {
    font-size: 36px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero-tags {
    font-size: 16px;
  }

  .hero-cta {
    padding: 14px 34px;
    font-size: 15px;
  }

  .about {
    padding: 90px 7vw 100px;
  }

  .about-inner {
    padding-top: 70px;
  }

  .about-title {
    font-size: 32px;
  }

  .about-text {
    font-size: 16px;
  }

  .about-card-media {
    height: 240px;
  }

  .steps {
    padding: 130px 7vw; /* increase top padding so logo doesn't overlap the title */
    align-items: start; /* ensure content starts below the logo instead of being vertically centered */
  }

  .steps-title {
    font-size: 30px;
  }

  .steps-item h3 {
    font-size: 18px;
  }

  .steps-item p {
    font-size: 15px;
  }

  .steps-media {
    height: 320px;
  }

  .contact {
    padding: 80px 7vw 28px;
  }

  .contact-shell {
    padding-top: 100px;
  }

  .contact-header h2 {
    font-size: 32px;
  }

  .contact-details h3 {
    font-size: 20px;
  }

  .contact-details p,
  .contact-meta p,
  .contact-mail {
    font-size: 16px;
  }

  .site-header {
    right: 18px;
    left: 18px;
    justify-content: flex-end;
  }

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

  .site-nav {
    position: absolute;
    top: 44px;
    right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 18px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.is-dark-text .site-nav {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
  }

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

/* Force larger top gap for .steps on very small screens to match other sections' spacing */
@media (max-width: 640px) {
  .steps {
    padding-top: 120px !important;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 120px;
  }
  .site-header {
    right: 12px;
    left: 12px;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero-kicker {
    font-size: 30px;
  }

  .hero-title {
    font-size: clamp(24px, 8vw, 30px);
  }

  .hero-tags {
    font-size: 14px;
  }

  .about-card-media {
    height: 210px;
  }

  .steps-media {
    height: 260px;
  }

  .contact-form {
    padding: 18px;
  }
}

@media (max-width: 960px) {
  .about {
    padding: 80px 7vw 100px;
  }

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

  .about-card-media {
    height: 320px;
  }

  .steps {
    grid-template-columns: 1fr;
    padding: 80px 7vw;
    justify-content: stretch;
  }

  .steps-media {
    height: 360px;
    max-width: 100%;
  }

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

  .contact-meta {
    grid-template-columns: 1fr;
  }
}
