/* ---------------------------------------------------------------
   SPES Finanse — style globalne i strona główna
   (breakpointy w responsive.css, style podstron w page.css)
   --------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg {
  fill: currentColor;
}

.ico {
  flex: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  z-index: 999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto !important;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
}

.site-shell {
  width: min(calc(100% - 32px), var(--shell));
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}

/* Nagłówek ---------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr) auto;
  align-items: center;
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  min-height: 116px;
  padding: 18px 32px;
  background: var(--paper);
}

.brand {
  display: block;
  width: 240px;
  height: 84px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 2vw, 42px);
  padding-inline: 16px;
}

.desktop-nav a {
  position: relative;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-current {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2d2924;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease;
}

.header-contact-link:hover,
.header-contact-link:focus-visible {
  color: var(--gold-dark);
}

.header-contact-link .ico,
.footer-contact .ico,
.mobile-contact-list .ico {
  color: var(--gold);
}

.header-contact-link.is-facebook .ico,
.footer-contact .is-facebook .ico,
.mobile-contact-list .is-facebook .ico {
  color: #1877f2;
}

.header-actions .consultation-button {
  margin-left: 18px;
}

.consultation-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 0 25px;
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.consultation-button:hover,
.primary-button:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 12px 26px rgba(155, 94, 15, 0.2);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button .ico-close,
.menu-button[aria-expanded="true"] .ico-open {
  display: none;
}

.menu-button[aria-expanded="true"] .ico-close {
  display: block;
}

.mobile-menu {
  display: none;
}

/* Hero -------------------------------------------------------- */
.hero {
  position: relative;
  display: block;
  min-height: 716px;
  background: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 58%;
  min-height: 716px;
  padding: 78px 24px 66px 64px;
}

.eyebrow,
.dialog-kicker {
  margin: 0 0 26px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(56px, 4.9vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 470px;
  margin: 34px 0 0;
  color: #504c46;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 38px;
}

.primary-button {
  min-height: 62px;
  padding-inline: 30px;
}

.text-link {
  padding: 11px 0 8px;
  border-bottom: 1px solid var(--gold);
  font-size: 15px;
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-dark);
}

.hero-slices-ornament {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: calc(42% - 82px);
  width: 520px;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.hero-white-bands {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc(42% - 185px);
  width: 900px;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.hero-edge-fade {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc(50% - 80px);
  width: 400px;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.hero-media {
  position: absolute;
  z-index: 1;
  top: 0;
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  left: 50%;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  filter: saturate(0.78) contrast(0.96);
  transform: translateX(-62px) scale(1.075);
  transform-origin: left center;
}

/* Usługi ------------------------------------------------------ */
.services {
  position: relative;
  z-index: 5;
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  padding: 82px max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))) 84px;
  background-color: var(--paper);
  background-image: url("../img/services-ambient-background.png");
  background-position: center;
  background-size: cover;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(390px, 1fr) auto;
  align-items: center;
  column-gap: 48px;
}

.services-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.services-intro h2 {
  margin: 0;
  font-size: clamp(42px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.services-description {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.review-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 275px;
  padding: 14px 18px 14px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 211, 199, 0.78);
  box-shadow: 0 16px 44px rgba(76, 61, 42, 0.1);
}

.review-badge > img {
  width: 92px;
  height: 44px;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
}

.review-copy {
  display: grid;
  gap: 5px;
}

.review-source,
.review-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.review-source {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.review-source .ico {
  color: #4285f4;
}

.review-copy strong {
  font-size: 17px;
}

.review-copy strong .ico {
  color: #f4b400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 164px;
  padding: 30px clamp(24px, 2.6vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.service-icon {
  color: var(--gold);
  font-size: 34px;
  transition: transform 180ms ease;
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.service-copy > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.service-arrow {
  position: absolute;
  right: 22px;
  bottom: 17px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-7px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  z-index: 1;
  background: #fbf5ec;
  outline: 0;
}

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon {
  transform: translateY(-3px);
}

.service-card:hover .service-arrow,
.service-card:focus-visible .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-card.is-featured {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.service-card.is-featured .service-icon,
.service-card.is-featured .service-arrow,
.service-card.is-featured .service-copy > span {
  color: var(--white);
}

.service-card.is-featured .service-copy > span {
  opacity: 0.84;
}

.service-card.is-featured:hover,
.service-card.is-featured:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* Wyróżniony kafel, który zostaje sam w ostatnim rzędzie, rozciągamy na
   pełną szerokość — inaczej siatka kończy się osieroconym boksem. */
.service-card.is-featured:last-child:nth-child(4n + 1) {
  grid-column: 1 / -1;
  min-height: 132px;
}

.services--compact {
  padding-top: 0;
  background-image: none;
}

/* O nas ------------------------------------------------------- */
.about {
  position: relative;
  width: 100vw;
  min-height: 620px;
  margin-left: calc((100vw - 100%) / -2);
  overflow: hidden;
  background: var(--white);
}

.about-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(70px, 8vw, 150px);
  width: min(calc(100% - 108px), 1542px);
  margin: 0 auto;
  padding: 108px 0 112px;
}

.about-heading h2 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(52px, 4.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.about-story {
  max-width: 690px;
  padding-top: 38px;
}

.about-summary,
.about-closing {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.about-summary {
  max-width: 590px;
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.62;
}

.about-heading .about-closing {
  max-width: 590px;
  margin-top: 20px;
}

.about-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 24px;
  max-width: 590px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.about-service-list li {
  position: relative;
  padding-left: 28px;
  color: #4e4943;
  font-size: 14px;
  line-height: 1.45;
}

.about-service-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 16px;
  height: 1px;
  content: "";
  background: var(--gold);
}

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

.about-benefit {
  position: relative;
  min-height: 152px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}

.about-benefit:nth-child(even) {
  border-left: 0;
}

.about-benefit:nth-child(n + 3) {
  border-top: 0;
}

.about-benefit > span {
  display: block;
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.about-benefit strong {
  display: block;
  font-size: 16px;
}

.about-benefit p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.about-benefit.is-featured {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.about-benefit.is-featured > span,
.about-benefit.is-featured p {
  color: var(--white);
}

.about-benefit.is-featured p {
  max-width: 230px;
  opacity: 0.86;
}

.about-benefit.is-featured > .ico {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 11px 0 9px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--gold-dark);
}

.about-ornament {
  position: absolute;
  z-index: 3;
  top: 50.3%;
  left: calc(38% + 20px);
  width: min(559px, 40vw);
  height: 716px;
  object-fit: fill;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(180deg);
  user-select: none;
}

/* Obszary współpracy ------------------------------------------ */
.gallery {
  position: relative;
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  padding: 108px max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))) 118px;
  background: var(--paper);
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 0.75fr);
  align-items: end;
  gap: clamp(70px, 9vw, 160px);
  margin-bottom: 54px;
}

.gallery-intro .eyebrow {
  margin-bottom: 18px;
}

.gallery-intro h2,
.closing-cta h2 {
  margin: 0;
  font-size: clamp(48px, 4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gallery-intro > p {
  max-width: 600px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  background: #221f1b;
}

.gallery-item--large {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 6;
}

.gallery-item--square {
  grid-column: span 3;
}

.gallery-item--third {
  grid-column: span 4;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 268px;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.94) brightness(0.98);
  transition:
    filter 400ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item--large .gallery-image {
  min-height: 640px;
}

.gallery-item--wide .gallery-image,
.gallery-item--third .gallery-image {
  min-height: 300px;
}

.gallery-item--square .gallery-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 24px;
  min-height: 122px;
  padding: 52px 28px 25px;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 19, 16, 0.82) 72%);
  color: var(--white);
}

.gallery-item figcaption > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  line-height: 0.8;
}

.gallery-item figcaption small {
  color: #edbd78;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.gallery-item figcaption strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.45vw, 27px);
  font-weight: 600;
  line-height: 1.05;
}

.gallery-item:hover .gallery-image {
  filter: saturate(0.84) contrast(0.96) brightness(1);
  transform: scale(1.025);
}

/* CTA + stopka ------------------------------------------------ */
.closing-zone {
  position: relative;
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  overflow: hidden;
}

.closing-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(540px, 1fr) auto;
  align-items: center;
  gap: 70px;
  width: 100%;
  padding: 96px max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  overflow: hidden;
  background: var(--gold);
  color: var(--dark-soft);
}

/* Zdjęcie wtopione w złote tło: multiply zachowuje kolor marki,
   maska wygasza je po lewej, żeby nagłówek pozostał czytelny. */
.closing-cta::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background-image: var(--cta-image, none);
  background-position: 76% center;
  background-size: cover;
  filter: grayscale(1) contrast(0.9);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.72) 70%, #000 86%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.72) 70%, #000 86%);
  opacity: 0.42;
  pointer-events: none;
}

.closing-cta::after {
  position: absolute;
  z-index: 2;
  top: 22%;
  right: 7%;
  width: 320px;
  height: 1px;
  content: "";
  background: rgba(37, 33, 29, 0.35);
}

.closing-cta .eyebrow {
  margin-bottom: 17px;
  color: rgba(37, 33, 29, 0.76);
}

.closing-cta-copy,
.closing-cta-button,
.footer-main,
.footer-bottom {
  position: relative;
  z-index: 2;
}

.closing-cta h2 {
  color: var(--white);
}

.closing-cta-copy > p:last-child {
  max-width: 680px;
  margin: 27px 0 0;
  color: rgba(37, 33, 29, 0.76);
  font-size: 16px;
  line-height: 1.7;
}

.closing-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 66px;
  padding: 0 32px;
  background: var(--dark-soft);
  border: 1px solid var(--dark-soft);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.closing-cta-button:hover,
.closing-cta-button:focus-visible {
  background: #12100e;
  border-color: #12100e;
  outline: 0;
  transform: translateY(-2px);
}

.site-footer {
  position: relative;
  width: 100%;
  padding: 76px max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))) 28px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

/* Ornament stopki: siatka kropek + złote kreski (motyw z sekcji usług),
   odtworzony w CSS, bo grafika ma ciemne kropki niewidoczne na ciemnym tle. */
.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.45) 42%, transparent 72%);
  mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.45) 42%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}

.site-footer::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, var(--gold) 0 100%),
    linear-gradient(90deg, var(--gold) 0 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 100%);
  background-repeat: no-repeat;
  background-size:
    clamp(160px, 18vw, 280px) 1px,
    clamp(110px, 12vw, 180px) 1px,
    clamp(120px, 14vw, 220px) 1px;
  background-position:
    0 46px,
    46% 54%,
    100% 96px;
  opacity: 0.55;
  pointer-events: none;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(180px, 0.5fr) minmax(280px, 0.7fr);
  gap: clamp(70px, 8vw, 140px);
  padding-bottom: 62px;
}

.footer-brand > a {
  display: block;
  width: 240px;
  height: 82px;
  overflow: hidden;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 510px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-nav > strong,
.footer-contact > strong {
  margin-bottom: 8px;
  color: #d89b49;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a,
.footer-address {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  transition: color 180ms ease;
}

/* Chevron przed pozycjami menu w stopce — ikona FontAwesome 7 Pro.
   Kit renderuje ikony w trybie SVG+JS: <i> zostaje podmienione na <svg>,
   dlatego stylujemy oba znaczniki. */
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-nav .menu-icon {
  flex: none;
  width: 8px;
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
  transition: transform 180ms ease;
}

.footer-nav a:hover .menu-icon {
  transform: translateX(3px);
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--gold-light);
}

.footer-contact a,
.footer-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.footer-address .ico {
  margin-top: 2px;
  color: var(--gold);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

.footer-credits {
  justify-self: center;
  text-align: center;
}

.footer-top {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.footer-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Modal konsultacji ------------------------------------------- */
.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 25, 21, 0.65);
}

.dialog-backdrop[hidden] {
  display: none;
}

.consultation-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 44px 50px 46px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.consultation-dialog .dialog-kicker {
  margin-bottom: 13px;
  font-size: 11px;
}

.consultation-dialog h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.consultation-dialog h2 + .dialog-form {
  margin-top: 26px;
}

/* Contact Form 7 w modalu -------------------------------------
   CF7 owija pola we własne <span> i <p> — bez wyzerowania tych
   marginesów formularz rozpycha modal. */
.dialog-form .wpcf7 {
  margin-top: 4px;
}

.dialog-form .wpcf7-form {
  display: grid;
  gap: 16px;
}

.dialog-form .wpcf7-form > p,
.dialog-form .form-row > p {
  margin: 0;
}

.dialog-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 7px;
}

.dialog-form label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* CF7 wstawia <br> po etykiecie — odstęp robi już margines wrappera. */
.dialog-form label br {
  display: none;
}

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

.dialog-form input[type="text"],
.dialog-form input[type="tel"],
.dialog-form input[type="email"],
.dialog-form select,
.dialog-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid #d8d1c8;
  border-radius: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.dialog-form textarea {
  height: auto;
  min-height: 96px;
  padding: 13px 14px;
  resize: vertical;
}

.dialog-form input:focus,
.dialog-form select:focus,
.dialog-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 121, 27, 0.12);
}

.dialog-form input::placeholder,
.dialog-form textarea::placeholder {
  color: #a8a29a;
}

/* Zgoda / checkbox */
.dialog-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.dialog-form .wpcf7-acceptance label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.dialog-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.dialog-form .wpcf7-acceptance .wpcf7-list-item-label {
  display: block;
}

.dialog-form .wpcf7-acceptance a {
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
}

/* Przycisk wysyłki */
.dialog-form .wpcf7-submit {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 4px 0 0;
  padding: 0 25px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.dialog-form .wpcf7-submit:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.dialog-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Komunikaty i spinner */
.dialog-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b3261e;
  font-size: 12px;
  font-weight: 600;
}

.dialog-form .wpcf7-not-valid {
  border-color: #b3261e;
}

.dialog-form .wpcf7-response-output {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--line) !important;
  font-size: 13px;
  line-height: 1.5;
}

.dialog-form form.sent .wpcf7-response-output {
  border-color: var(--gold) !important;
  background: var(--gold-pale);
}

.dialog-form form.invalid .wpcf7-response-output,
.dialog-form form.failed .wpcf7-response-output {
  border-color: #e0b4b0 !important;
  background: #fdf3f2;
}

.dialog-form .wpcf7-spinner {
  display: block;
  margin: 8px auto 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
