@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --navy: #1e2a4a;
  --navy-soft: #2a3a5c;
  --gold: #c7a35f;
  --sage: #6e8174;
  --cream: #faf8f5;
  --beige: #f1e8de;
  --line: #e5ddd4;
  --text: #4f5565;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(30, 42, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
}

body.nav-open {
  overflow: hidden;
}

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

p {
  color: var(--text);
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled,
.site-header.open {
  background: rgba(250, 248, 245, 0.96);
  box-shadow: 0 10px 30px rgba(30, 42, 74, 0.08);
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  color: #404858;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a.nav-phone {
  color: var(--white);
}

.site-nav a.nav-phone:hover {
  color: var(--white);
}

.nav-phone,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-phone,
.button.primary {
  background: var(--navy);
  color: var(--white);
}

.button.secondary {
  border: 2px solid var(--navy);
  color: var(--navy);
}

.button:hover,
.nav-phone:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 130px clamp(20px, 7vw, 96px) 80px;
  background:
    linear-gradient(110deg, rgba(250, 248, 245, 0.96) 0%, rgba(250, 248, 245, 0.8) 55%, rgba(241, 232, 222, 0.62) 100%),
    repeating-linear-gradient(135deg, rgba(199, 163, 95, 0.16) 0 1px, transparent 1px 18px);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 76px);
}

.hero h1 em {
  color: #8b7355;
  font-style: italic;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-card {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  min-height: 540px;
}

.portrait {
  position: relative;
  height: 520px;
  border: 1px solid rgba(30, 42, 74, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 42, 74, 0.28));
  pointer-events: none;
}

.mini-card {
  position: absolute;
  left: -20px;
  bottom: 26px;
  width: min(290px, 80%);
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mini-card strong,
.mini-card span,
.mini-card a {
  display: block;
}

.mini-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}

.mini-card span {
  margin: 6px 0 10px;
  color: #8b7355;
  font-size: 13px;
}

.mini-card a {
  font-weight: 700;
}

.section {
  padding: 92px clamp(20px, 7vw, 96px);
}

.white {
  background: var(--white);
}

.tint {
  background: var(--beige);
}

.dark {
  background: var(--navy);
  color: var(--white);
}

.dark p {
  color: #b9c0cf;
}

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

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 14px;
  color: #8b7355;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 28px;
}

.card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
}

.card p {
  margin-bottom: 0;
  font-size: 15px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  color: var(--gold);
}

.icon svg {
  width: 26px;
  height: 26px;
}

/* Oferta */
.services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}

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

.service-card:hover p {
  color: #c9d0dc;
}

.service-card:hover .icon {
  background: var(--gold);
  color: var(--navy);
}

.service-card:hover .card-no {
  color: rgba(199, 163, 95, 0.5);
}

.card-no {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--line);
  transition: color 0.3s ease;
}

.service-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  color: var(--white);
  border-color: var(--navy);
}

.service-card-wide .icon {
  margin-bottom: 0;
  background: var(--gold);
  color: var(--navy);
}

.service-card-wide h3 {
  margin-bottom: 8px;
}

.service-card-wide p {
  color: #c9d0dc;
}

.service-card-wide .card-no {
  color: rgba(199, 163, 95, 0.45);
}

.service-card-wide:hover {
  transform: translateY(-6px);
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  color: var(--white);
}

.service-cta {
  white-space: nowrap;
}

.service-card-wide:hover .icon {
  background: var(--gold);
  color: var(--navy);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.steps::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 10px,
    transparent 10px 20px
  );
  opacity: 0.5;
}

.step {
  position: relative;
  padding: 0 12px;
  text-align: center;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step-num {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(26px);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  z-index: 2;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.step p {
  max-width: 320px;
  margin-inline: auto;
}

.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.audience .card {
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.audience .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.audience-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--navy);
  transition: background 0.25s ease, color 0.25s ease;
}

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

.audience .card:hover .audience-icon {
  background: var(--navy);
  color: var(--gold);
}

.audience .card h3 {
  font-size: 19px;
}

/* Zaufanie */
.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
}

.trust-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 38px;
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(199, 163, 95, 0.22), transparent 55%),
    rgba(42, 58, 92, 0.7);
  border: 1px solid rgba(199, 163, 95, 0.28);
}

.trust-feature h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.trust-feature p {
  color: #c4ccda;
  margin: 0;
}

.trust-feature .button {
  margin-top: auto;
  background: var(--gold);
  color: var(--navy);
}

.trust-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(42, 58, 92, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.trust-item:hover {
  transform: translateX(6px);
  background: rgba(42, 58, 92, 0.85);
  border-color: rgba(199, 163, 95, 0.4);
}

.trust-ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(199, 163, 95, 0.16);
  color: var(--gold);
  flex-shrink: 0;
}

.trust-ic svg {
  width: 24px;
  height: 24px;
}

.trust-item h4 {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  color: var(--white);
}

.trust-item p {
  margin: 0;
  font-size: 14px;
  color: #b9c0cf;
}

/* Opinie */
.testimonials {
  margin-bottom: 28px;
}

.opinion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
}

.opinion p {
  margin-top: 0;
}

.opinion strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
}

.opinion-form {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.opinion-form h3 {
  margin-bottom: 20px;
  font-size: 26px;
}

.opinion-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  color: var(--navy);
  background: var(--cream);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(199, 163, 95, 0.34);
  border-color: var(--gold);
}

.checkbox {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

.checkbox span {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.checkbox a {
  color: #8b7355;
  font-weight: 700;
  text-decoration: underline;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-message {
  min-height: 22px;
  margin: 0 0 16px;
  color: var(--sage);
  font-weight: 700;
}

.form-message.is-success {
  color: var(--sage);
}

.form-message.is-error {
  color: #b4452f;
}

.contact-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.contact-ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--beige);
  color: var(--navy);
}

.contact-ic svg {
  width: 24px;
  height: 24px;
}

.contact-label {
  margin-bottom: 8px;
  color: #8b7355;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-value {
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: var(--navy);
  word-break: break-word;
}

.contact-email {
  font-size: clamp(16px, 1.5vw, 20px);
}

.contact-item small {
  color: var(--text);
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 42px clamp(20px, 7vw, 96px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #b9c0cf;
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 4px 0;
}

.footer-links a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* Strona prawna */
.legal {
  padding: 140px clamp(20px, 7vw, 96px) 90px;
  background: var(--cream);
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 54px);
}

.legal-lead {
  font-size: 18px;
  margin-bottom: 12px;
}

.legal-block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.legal-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
}

.legal-block a {
  color: #8b7355;
  font-weight: 700;
  text-decoration: underline;
}

.legal-back {
  margin-top: 32px;
}

.legal-nav {
  gap: 18px;
}

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

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

@media (max-width: 980px) {
  .hero,
  .steps,
  .contact-box,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .cards,
  .compact,
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-wide {
    grid-column: span 2;
  }

  .steps {
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .hero-card {
    min-height: auto;
  }

  .portrait {
    height: 430px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .nav-phone {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .cards,
  .compact,
  .services {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .service-card-wide .icon {
    margin-bottom: 0;
  }

  .service-cta {
    justify-self: start;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .mini-card {
    left: 14px;
    bottom: 14px;
  }

  .opinion-form {
    padding: 22px 18px;
  }
}
