@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --color-primary: #002f6d;
  --color-primary-strong: #001f49;
  --color-accent: #ff9202;
  --color-accent-soft: #ffbd63;
  --color-bg: #f4f7fc;
  --color-surface: #ffffff;
  --color-text: #11223f;
  --color-muted: #4f607e;
  --shadow-soft: 0 14px 36px rgba(0, 34, 84, 0.12);
  --shadow-strong: 0 18px 46px rgba(0, 28, 74, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1160px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 10% -20%, rgba(255, 146, 2, 0.13), transparent 42%),
    radial-gradient(circle at 100% 10%, rgba(0, 47, 109, 0.12), transparent 42%),
    var(--color-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 8px;
  background: var(--color-accent);
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 200;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 47, 109, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--color-primary);
}

.brand img {
  width: 168px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--color-primary), #0048a7 70%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 47, 109, 0.28);
}

.btn-secondary {
  background: linear-gradient(120deg, var(--color-accent), #ffb44f 70%);
  color: #1f1f1f;
  box-shadow: 0 10px 20px rgba(255, 146, 2, 0.32);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}

main {
  overflow: hidden;
}

.hero {
  padding: 4.2rem 0 2.4rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Fraunces", "Georgia", serif;
  color: var(--color-primary-strong);
}

h1 {
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.07rem;
  color: #223b63;
}

.hero-clean {
  position: relative;
  min-height: 650px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero-clean-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroFloat 22s ease-in-out infinite alternate;
}

.hero-clean-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(0, 31, 73, 0.68), rgba(0, 47, 109, 0.44) 48%, rgba(0, 47, 109, 0.18));
}

.hero-clean-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem 0;
}

.hero-panel {
  max-width: 680px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 47, 109, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-soft);
}

@keyframes heroFloat {
  0% {
    transform: scale(1.06) translate3d(-0.6%, -0.4%, 0);
  }

  50% {
    transform: scale(1.08) translate3d(0.5%, 0.3%, 0);
  }

  100% {
    transform: scale(1.07) translate3d(-0.35%, 0.45%, 0);
  }
}

.hero-kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  background: rgba(0, 47, 109, 0.1);
}

.hero-definition-inline {
  margin: 0.7rem 0 0;
  color: #1e365f;
  font-size: 0.96rem;
}

.hero-points {
  margin: 1rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.35rem;
}

.hero-points li::marker {
  color: var(--color-accent);
}

.hero-actions {
  margin-top: 1.05rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin: 0.58rem 0 0;
  color: #2b446d;
  font-size: 0.9rem;
}

.hero-live-strip {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 4;
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.56rem 0.86rem;
  border-radius: 10px;
  background: rgba(0, 31, 73, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 22px rgba(0, 20, 54, 0.34);
  max-width: calc(100% - 2.2rem);
}

.scroll-band {
  min-height: 270px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.scroll-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scroll-band .container {
  position: relative;
  z-index: 2;
}

.scroll-band-caption {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  max-width: 760px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.scroll-band-katedra {
  background-image: url("/assets/img/sprzedaj-nieruchomosc-bydgoszcz-katedra.jpg");
  min-height: 380px;
}

.scroll-band-katedra::before {
  background: linear-gradient(130deg, rgba(0, 31, 73, 0.68), rgba(0, 47, 109, 0.34));
}

.scroll-band-katedra .container {
  width: min(1460px, calc(100% - 2rem));
}

.scroll-band-stary-rynek {
  background-image: url("/assets/img/sprzedaj-nieruchomosc-bydgoszcz-stary-rynek.jpg");
}

.scroll-band-stary-rynek::before {
  background: linear-gradient(125deg, rgba(0, 31, 73, 0.62), rgba(255, 146, 2, 0.24));
}

.scroll-band-gotowka {
  background-image: url("/assets/img/sprzedaj-nieruchomosc-gotowka-3.jpg");
}

.scroll-band-gotowka::before {
  background: linear-gradient(122deg, rgba(0, 31, 73, 0.7), rgba(0, 47, 109, 0.3));
}

.section {
  padding: 3.1rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

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

.intro-grid .form-card {
  max-width: 780px;
  width: 100%;
}

.summary-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 47, 109, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
}

.summary-card ul,
.check-list,
.number-list {
  margin: 0;
  padding-left: 1.15rem;
}

.definition {
  margin-top: 1rem;
  font-weight: 600;
  color: #1c3258;
}

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

.form-card {
  background: linear-gradient(160deg, #ffffff, #f5f9ff);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(0, 47, 109, 0.14);
  box-shadow: var(--shadow-soft);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  color: #223b63;
}

input,
select,
textarea {
  font: inherit;
  border-radius: 11px;
  border: 1px solid rgba(0, 47, 109, 0.22);
  padding: 0.73rem 0.85rem;
  background: #fff;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid rgba(255, 146, 2, 0.2);
  outline-offset: 1px;
}

.form-note {
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.94rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 47, 109, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: #33496d;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.step {
  background: linear-gradient(160deg, #fefefe, #f0f5ff);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 47, 109, 0.12);
  padding: 1rem;
}

.step span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 50%;
  color: #111;
  background: linear-gradient(130deg, var(--color-accent), #ffbe67);
  margin-bottom: 0.7rem;
}

.cta-box {
  background: linear-gradient(145deg, rgba(0, 47, 109, 0.96), rgba(2, 73, 167, 0.9));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2rem);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(0, 47, 109, 0.13);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-bottom: 0;
}

.page-hero {
  padding: 3.4rem 0 2.3rem;
}

.page-hero-box {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 47, 109, 0.94), rgba(255, 146, 2, 0.86));
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.page-hero-copy {
  padding: clamp(1.2rem, 3vw, 2.25rem);
}

.page-hero-copy h1 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-info {
  padding: 1rem;
  border-radius: 14px;
  border-left: 4px solid var(--color-accent);
  background: #eef4ff;
}

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

.footer {
  margin-top: 2rem;
  color: #dce7ff;
  background: linear-gradient(140deg, #001f49, #003a86 74%);
}

.footer-inner {
  padding: 2rem 0;
  display: grid;
  gap: 1rem;
}

.footer .nap {
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 1024px) {
  .page-hero-box,
  .cards,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-clean {
    min-height: 600px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .scroll-band {
    min-height: 240px;
    background-attachment: scroll;
  }

  .scroll-band-katedra {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 84px;
    right: 1rem;
    left: 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 47, 109, 0.15);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .grid-2,
  .cards,
  .process-grid,
  .page-hero-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-clean {
    min-height: 560px;
    border-radius: 0;
  }

  .hero-clean-inner {
    align-items: flex-end;
    padding: 0.9rem 0;
  }

  .hero-panel {
    max-width: 100%;
    padding: 1.15rem;
  }

  .brand img {
    width: 140px;
  }

  .hero-points {
    gap: 0.45rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-live-strip {
    right: 0.75rem;
    left: auto;
    bottom: 0.75rem;
    border-radius: 12px;
    font-size: 0.86rem;
    max-width: calc(100% - 1.5rem);
    text-align: left;
  }

  .scroll-band {
    min-height: 220px;
    background-attachment: scroll;
  }

  .scroll-band-katedra {
    min-height: 300px;
  }

  .scroll-band-caption {
    font-size: 1rem;
  }

  .cta-box {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-clean-image {
    animation: none;
  }
}
