/* =========================================================
   Moja Warmia — stopka v2.1.08
   Układ zgodny z zaakceptowanym podglądem: krajobraz na całej
   powierzchni, branding po lewej, cztery kolumny po prawej.
   ========================================================= */

.mw-site-footer {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 0;
  color: #073f35;
  background: #f5e4b4;
  border-top: 1px solid rgba(108, 80, 28, .10);
}

.mw-footer-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
}

/* Delikatna poświata pod tekstem, bez szarego panelu. */
.mw-site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,250,232,.18) 0%,
    rgba(255,250,232,.14) 45%,
    rgba(255,250,232,.04) 72%,
    rgba(255,250,232,.06) 100%);
  pointer-events: none;
}

.mw-footer-main,
.mw-footer-bottom {
  position: relative;
  z-index: 1;
}

.mw-footer-main {
  width: min(1680px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(46px, 5vw, 92px);
  align-items: start;
  padding: 54px 0 170px;
}

/* ========== Branding ========== */
.mw-footer-brand {
  width: 100%;
  max-width: 340px;
  text-align: center;
  color: #073f35;
}

.mw-footer-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-decoration: none;
}

.mw-footer-logo img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 205px;
  object-fit: contain;
  object-position: center;
}

.mw-footer-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 6px;
  text-align: center;
}

.mw-footer-brand-copy strong {
  display: block;
  margin: 0;
  color: #073f35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3vw, 51px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -1px;
}

.mw-footer-brand-copy span {
  display: block;
  margin-top: 5px;
  color: #d98613;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.mw-footer-brand-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 13px;
}

.mw-footer-brand-ornament img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 30px;
  object-fit: contain;
}

.mw-footer-brand-description {
  max-width: 290px;
  margin: 13px auto 0;
  color: #17483f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.mw-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 21px;
}

.mw-footer-social > a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #17483f;
  border-radius: 50%;
  color: #17483f;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.mw-footer-social > a:hover {
  transform: translateY(-2px);
  background: #17483f;
  color: #fff9e5;
}

.mw-footer-social svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

/* ========== Nawigacja ========== */
.mw-footer-nav-grid {
  display: grid;
  grid-template-columns: .95fr 1.06fr 1.13fr 1.12fr;
  gap: 0 clamp(30px, 3vw, 58px);
  width: 100%;
  max-width: 1110px;
  min-width: 0;
  padding-top: 35px;
  background: transparent;
}

.mw-footer-col {
  min-width: 0;
}

.mw-footer-col h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  margin: 0 0 16px;
  padding: 0 0 15px;
  color: #073f35;
  font: 800 16px/1.14 var(--mw-font-display);
  text-transform: uppercase;
  white-space: nowrap;
}

.mw-footer-col h2::before { content: none; }

.mw-footer-col h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  border-radius: 4px;
  background: #dd951c;
}

.mw-footer-col h2 > span {
  display: block;
  padding-top: 2px;
}

.mw-footer-col-icon {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  object-fit: contain;
}

.mw-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mw-footer-menu li {
  margin: 0;
  padding: 0;
}

.mw-footer-menu li + li { margin-top: 1px; }
.mw-footer-menu li::marker { content: ""; }

.mw-footer-col > a,
.mw-footer-menu a {
  position: relative;
  display: block;
  padding: 6px 0 6px 25px;
  color: #17483f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.mw-footer-col > a::before,
.mw-footer-menu a::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  color: #df8c0f;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-52%);
}

.mw-footer-col > a:hover,
.mw-footer-menu a:hover {
  color: #087a55;
  transform: translateX(2px);
}

.mw-footer-menu-empty {
  display: block;
  color: #315e53;
  font-size: 12px;
  text-decoration: none;
}

/* ========== Dół ========== */
.mw-footer-bottom-wrap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.mw-footer-bottom {
  width: min(1680px, calc(100% - 64px));
  min-height: 42px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
  color: rgba(7,63,53,.70);
}

.mw-footer-copyright,
.mw-footer-bottom-right {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.mw-footer-bottom-right {
  margin-left: 24px;
  text-align: right;
}

/* ========== Responsywność ========== */
@media (max-width: 1360px) {
  .mw-footer-main {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 38px;
  }
  .mw-footer-nav-grid {
    gap: 0 26px;
  }
  .mw-footer-col h2,
  .mw-footer-menu a,
  .mw-footer-col > a {
    font-size: 14px;
  }
}

@media (max-width: 1120px) {
  .mw-site-footer { min-height: 0; }
  .mw-footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 100px;
  }
  .mw-footer-brand {
    max-width: 400px;
    margin-inline: auto;
  }
  .mw-footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    max-width: 820px;
    margin-inline: auto;
    gap: 28px 54px;
    padding-top: 0;
  }
  .mw-footer-col h2,
  .mw-footer-menu a,
  .mw-footer-col > a {
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  .mw-footer-background {
    background-position: 68% center;
  }
  .mw-site-footer::after {
    background: rgba(255,248,225,.56);
  }
  .mw-footer-main {
    width: min(100% - 32px, 620px);
    padding-top: 36px;
  }
  .mw-footer-logo img {
    max-width: 170px;
    max-height: 170px;
  }
  .mw-footer-brand-copy strong { font-size: 36px; }
  .mw-footer-brand-copy span { font-size: 18px; }
  .mw-footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
  }
  .mw-footer-col h2 { white-space: normal; }
  .mw-footer-bottom { width: min(100% - 32px, 620px); }
  .mw-footer-bottom-right { max-width: 55%; }
}

@media (max-width: 480px) {
  .mw-footer-bottom {
    align-items: flex-end;
    gap: 8px;
  }
  .mw-footer-bottom-right {
    max-width: 58%;
    margin-left: 8px;
    font-size: 11px;
  }
  .mw-footer-nav-grid { grid-template-columns: 1fr; }
  .mw-footer-brand-description { font-size: 15px; }
  .mw-footer-social > a { width: 42px; height: 42px; }
}

/* v2.1.30 — stopka: jasna typografia bez bialego panelu */
@media (min-width: 701px) {
  .mw-site-footer::after {
    background: rgba(5, 35, 29, .18);
  }

  .mw-footer-brand-copy strong,
  .mw-footer-brand-description,
  .mw-footer-col h2,
  .mw-footer-col > a,
  .mw-footer-menu a,
  .mw-footer-menu-empty,
  .mw-footer-bottom {
    color: #f7f4ec;
    text-shadow: 0 1px 3px rgba(0, 32, 24, .55);
  }

  .mw-footer-brand-copy span {
    color: #f2b400;
    text-shadow: 0 1px 3px rgba(0, 32, 24, .48);
  }

  .mw-footer-col h2::after {
    background: #f2b400;
  }

  .mw-footer-col > a::before,
  .mw-footer-menu a::before {
    color: #f2b400;
  }

  .mw-footer-col > a:hover,
  .mw-footer-menu a:hover {
    color: #ffd45a;
  }

  .mw-footer-social > a {
    border-color: rgba(247, 244, 236, .92);
    color: #f7f4ec;
    background: rgba(4, 45, 35, .12);
    box-shadow: 0 1px 3px rgba(0, 32, 24, .24);
  }

  .mw-footer-social > a:hover {
    background: #f2b400;
    border-color: #f2b400;
    color: #073f35;
  }

  .mw-footer-copyright,
  .mw-footer-bottom-right {
    text-shadow: 0 1px 3px rgba(0, 32, 24, .65);
  }
}

/* v2.1.32 — białe ikony nagłówków + zawartość 15 px niżej */
@media (min-width: 1121px) {
  .mw-site-footer {
    min-height: 360px;
  }

  .mw-footer-background {
    background-size: cover;
    background-position: center 58%;
  }

  .mw-footer-main {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(36px, 4vw, 70px);
    padding: 31px 0 31px;
    align-items: start;
  }

  .mw-footer-brand {
    max-width: 260px;
  }

  .mw-footer-logo img {
    max-width: 138px;
    max-height: 132px;
  }

  .mw-footer-brand-copy {
    margin-top: 2px;
  }

  .mw-footer-brand-copy strong {
    font-size: 34px;
    line-height: .92;
  }

  .mw-footer-brand-copy span {
    margin-top: 5px;
    font-size: 16px;
  }

  .mw-footer-brand-ornament {
    margin-top: 8px;
  }

  .mw-footer-brand-ornament img {
    max-height: 20px;
  }

  .mw-footer-brand-description {
    margin-top: 8px;
  }

  .mw-footer-social {
    margin-top: 10px;
  }

  .mw-footer-social > a {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .mw-footer-nav-grid {
    gap: 0 30px;
    padding-top: 20px;
  }

  .mw-footer-col-icon {
    filter: brightness(0) invert(1);
  }

  .mw-footer-col h2 {
    margin-bottom: 9px;
    padding-bottom: 9px;
  }

  .mw-footer-menu {
    gap: 0;
  }

  .mw-footer-col > a,
  .mw-footer-menu a {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 14px;
    line-height: 1.2;
  }

  .mw-footer-bottom {
    min-height: 34px;
    padding: 5px 0 7px;
  }
}


/* v2.1.33 — minimalnie wyższa stopka + miejsce na więcej sociali */
@media (min-width: 1121px) {
  .mw-site-footer { min-height: 385px; }
  .mw-footer-main { padding-top: 34px; padding-bottom: 44px; }
  .mw-footer-social {
    max-width: 236px;
    margin: 12px auto 0;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
  }
  .mw-footer-social > a {
    width: 35px;
    height: 35px;
  }
  .mw-footer-social svg {
    width: 18px;
    height: 18px;
  }
}


/* v2.1.34 — social media w dolnym pasku stopki */
.mw-footer-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.mw-footer-bottom .mw-footer-social {
  margin: 0;
  max-width: none;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: nowrap;
}

.mw-footer-bottom .mw-footer-social > a {
  width: 32px;
  height: 32px;
}

.mw-footer-bottom .mw-footer-social svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 1121px) {
  .mw-site-footer { min-height: 385px; }
  .mw-footer-main { padding-top: 34px; padding-bottom: 58px; }
  .mw-footer-brand > .mw-footer-social { display: none; }
  .mw-footer-bottom {
    min-height: 46px;
    padding: 7px 0 9px;
    border-top: 1px solid rgba(242, 180, 0, .72);
  }
  .mw-footer-copyright {
    color: #f7f4ec;
  }
}

@media (max-width: 1120px) {
  .mw-footer-bottom-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .mw-footer-bottom .mw-footer-social {
    margin-left: auto;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .mw-footer-bottom-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .mw-footer-bottom .mw-footer-social {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* v2.1.35 — social media wyśrodkowane + dolny pasek lekko podniesiony */
@media (min-width: 1121px) {
  .mw-footer-bottom-wrap {
    bottom: 10px;
  }

  .mw-footer-main {
    padding-bottom: 66px;
  }

  .mw-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    padding: 7px 0 8px;
  }

  .mw-footer-copyright {
    justify-self: start;
  }

  .mw-footer-bottom-social {
    grid-column: 2;
    justify-self: center;
  }

  .mw-footer-bottom-social .mw-footer-social {
    justify-content: center;
    margin: 0;
  }

  .mw-footer-bottom-right,
  .mw-footer-bottom-spacer {
    grid-column: 3;
    justify-self: end;
  }

  .mw-footer-bottom-right {
    margin-left: 0;
  }
}

@media (max-width: 1120px) {
  .mw-footer-bottom-social {
    display: flex;
    justify-content: center;
  }
}

