/* Wygląd wspólnego menu i stopki. Treść stron ma własne style. */
.header, .footer {
  --burgundy: #6D1F2D;
  --burgundy-dark: #511722;
  --graphite: #3A3A3A;
  --paper: #F8F6F3;
  --muted: #77736F;
  --line: rgba(58, 58, 58, .13);
  --radius: 12px;
  --small: 16px;
  --max: 1380px;
  font-family: Manrope, sans-serif;
  color: var(--graphite);
  line-height: 1.82;
}
:is(.header, .footer), :is(.header, .footer) * { box-sizing: border-box; }
:is(.header, .footer) a { color: inherit; text-decoration: none; }
:is(.header, .footer) .brand-mark { display: block; }
:is(.header, .footer) .container { width: min(calc(100% - 80px), var(--max)); margin: auto; }
.header .nav a { font-size: var(--small); line-height: 1.45; }
.header .button { text-decoration: none; }
.header .button-primary { color: #fff; }
.header .nav a {
      font-size: var(--small);
      line-height: 1.45;
    }
.header .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 52px;
      padding: 0 24px;
      border-radius: var(--radius);
      border: 1px solid transparent;
      font-size: var(--small);
      line-height: 1;
      font-weight: 500;
      transition: .25s ease;
      cursor: pointer;
    }
.header .button:hover {
      transform: translateY(-2px);
    }
.header .button:disabled {
      opacity: .65;
      cursor: wait;
      transform: none;
    }
.header .button-primary {
      background: var(--burgundy);
      color: #fff;
    }
.header .button-primary:hover {
      background: var(--burgundy-dark);
    }
.header {
      position: sticky;
      top: 0;
      z-index: 50;
      padding: 18px 0;
      background: rgba(248, 246, 243, .94);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(58, 58, 58, .08);
    }
.header .header-inner {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 38px;
    }
:is(.header, .footer) .brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }
:is(.header, .footer) .brand-mark {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }
:is(.header, .footer) .wordmark {
  color: #000000;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 400;
}
:is(.header, .footer) .wordmark i {
  font-style: normal;
  color: #6D1F2D;
}
.header .nav {
      display: flex;
      justify-content: flex-end;
      gap: 46px;
    }
.header .nav a {
      font-weight: 500;
      position: relative;
    }
.header .nav a:after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: -6px;
      height: 1px;
      background: var(--burgundy);
      transition: right .25s;
    }
.header .nav a:hover:after {
      right: 0;
    }
.header .menu-toggle {
      display: none;
      width: 46px;
      height: 46px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .82);
      padding: 0;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
    }
.header .menu-toggle span {
      content: "";
      display: block;
      width: 20px;
      height: 1.5px;
      background: var(--graphite);
      position: absolute;
      transition: .25s;
    }
.header .menu-toggle:before {
      content: "";
      display: block;
      width: 20px;
      height: 1.5px;
      background: var(--graphite);
      position: absolute;
      transition: .25s;
    }
.header .menu-toggle:after {
      content: "";
      display: block;
      width: 20px;
      height: 1.5px;
      background: var(--graphite);
      position: absolute;
      transition: .25s;
    }
.header .menu-toggle:before {
      transform: translateY(-6px);
    }
.header .menu-toggle:after {
      transform: translateY(6px);
    }
.header .menu-toggle.open span {
      opacity: 0;
    }
.header .menu-toggle.open:before {
      transform: rotate(45deg);
    }
.header .menu-toggle.open:after {
      transform: rotate(-45deg);
    }
.header .mobile-nav {
      display: none;
    }
.footer {
      padding: 42px 0 30px;
      background: var(--paper);
      border-top: 1px solid var(--line);
    }
.footer .footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 760px);
  justify-content: space-between;
  gap: 45px;
  align-items: start;
}
.footer .footer-description {
  width: 100%;
  margin: 0;
  color: #625e59;
  font-size: var(--small);
  line-height: 1.8;
  text-align: right;
}
.footer .footer-bottom {
      margin-top: 28px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 28px;
      color: var(--muted);
      font-size: var(--small);
    }
.footer .footer-legal {
      display: flex;
      justify-content: flex-end;
      gap: 24px;
      flex-wrap: wrap;
    }
@media (max-width: 1050px) {
.header .nav {
        display: none;
      }
}
@media (max-width: 1050px) {
.header > .container > .button {
        display: none;
      }
}
@media (max-width: 1050px) {
.header .menu-toggle {
        display: flex;
        justify-self: end;
      }
}
@media (max-width: 1050px) {
.header .header-inner {
        grid-template-columns: auto 1fr auto;
      }
}
@media (max-width: 1050px) {
.header .mobile-nav {
        position: absolute;
        top: 82px;
        left: 22px;
        right: 22px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 18px;
        box-shadow: 0 18px 50px rgba(30, 20, 23, .10);
        flex-direction: column;
      }
}
@media (max-width: 1050px) {
.header .mobile-nav.open {
        display: flex;
      }
}
@media (max-width: 1050px) {
.header .mobile-nav a {
        padding: 14px 8px;
        border-bottom: 1px solid var(--line);
        font-size: var(--small);
        font-weight: 500;
      }
}
@media (max-width: 1050px) {
.header .mobile-nav a:last-child {
        border-bottom: 0;
      }
}
@media (max-width: 700px) {
:is(.header, .footer) .brand-mark {
        width: 30px;
        height: 30px;
      }
}
@media (max-width: 700px) {
:is(.header, .footer) .wordmark {
        font-size: 25px;
      }
}
@media (max-width: 700px) {
.footer .footer-top {
        grid-template-columns: 1fr;
      }
}
@media (max-width: 700px) {
.footer .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
      }
}
@media (max-width: 700px) {
.footer .footer-legal {
        justify-content: flex-start;
        gap: 16px;
      }
}

@media (max-width: 1050px) {
  :is(.header, .footer) .container { width: min(calc(100% - 44px), var(--max)); }
}
@media (max-width: 700px) {
  .header, .footer { --small: 13px; }
  :is(.header, .footer) .container { width: calc(100% - 30px); }
}



/* Rozwijana lista usług. Reguły dotyczą wyłącznie wspólnego nagłówka. */
.header [hidden] { display: none !important; }
.header .header-inner { gap: 28px; }
.header .nav { gap: 28px; align-items: center; }
.header .services-nav { position: relative; min-width: 0; }
.header .services-toggle {
  appearance: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0; margin: 0; border: 0; background: transparent;
  color: var(--graphite); font-family: inherit; font-size: var(--small);
  font-weight: 500; line-height: 1.45; cursor: pointer; text-align: left;
}
.header .services-toggle:hover, .header .services-toggle[aria-expanded="true"] { color: var(--burgundy); }
.header .services-chevron { display: block; flex: 0 0 14px; transition: transform .2s ease; }
.header .services-toggle[aria-expanded="true"] .services-chevron { transform: rotate(180deg); }
.header .services-list {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: 430px; max-width: calc(100vw - 44px); margin: 0; padding: 10px;
  list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(30,20,23,.10);
}
.header .services-list li { margin: 0; padding: 0; list-style: none; }
.header :is(.nav, .mobile-nav) .services-list a {
  display: block; padding: 12px 14px; border: 0; border-radius: 8px;
  color: var(--graphite); font-size: var(--small); font-weight: 500;
  line-height: 1.6; white-space: normal; transition: background .2s ease, color .2s ease;
}
.header .nav .services-list a::after { content: none; }
.header :is(.nav, .mobile-nav) .services-list a:hover,
.header :is(.nav, .mobile-nav) .services-list a[aria-current="page"] { background: var(--paper); color: var(--burgundy); }
.header :is(a, button):focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
@media (max-width: 1050px) {
  .header .mobile-nav { top: calc(100% + 8px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
  .header .services-nav-mobile .services-toggle { width: 100%; padding: 14px 8px; min-height: 48px; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .header .services-nav-mobile .services-list { position: static; width: 100%; max-width: none; margin: 0; padding: 8px 0 12px 10px; border: 0; box-shadow: none; background: transparent; }
  .header .mobile-nav .services-list a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .services-chevron, .header .services-list a { transition: none; }
}
