/*
 * File: style.css
 * Create date: 15.07.2012
 * Last modify: 11.05.2026
 *
 * Created with ❤ by Maciej Szkudlarek
 * E-Mail: maciej_szkudlarek@kmps.org.pl
 */

/* =========================================================
   IMPORTY
========================================================= */

@import url('menu.css');
@import url('rozklady.css');
@import url('grid.css');
@import url('buttons.css');
@import url('pages.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* =========================================================
   ZMIENNE
========================================================= */

:root {
  --kmps-navy: #192036;
  --kmps-menu: #343434;
  --kmps-menu-dark: #252525;
  --kmps-white: #ffffff;
  --kmps-red: #cb3333;

  --kmps-bg-page: #d3d3d3;
  --kmps-bg-left: #f0f0eb;
  --kmps-bg-content: #f8f7f5;
  --kmps-bg-card: #ffffff;

  --kmps-text: #343434;
  --kmps-muted: #666666;
  --kmps-light-muted: #989a98;
  --kmps-border: #ececec;
}

/* =========================================================
   NORMALIZE / RESET
========================================================= */

button,
hr,
input {
  overflow: visible;
}

progress,
sub,
sup {
  vertical-align: baseline;
}

[type="checkbox"],
[type="radio"],
legend {
  box-sizing: border-box;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

details,
main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: .67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
select {
  text-transform: none;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  -webkit-appearance: button;
}

[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring,
button:-moz-focusring {
  outline: ButtonText dotted 1px;
}

fieldset {
  padding: .35em .75em .625em;
}

legend {
  color: inherit;
  display: table;
  max-width: 100%;
  white-space: normal;
}

textarea {
  overflow: auto;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

[hidden],
template {
  display: none;
}

/* =========================================================
   BAZA STRONY
========================================================= */

html,
body {
  color: var(--kmps-text);
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-size: 12px;
  font-family: "Roboto", Tahoma, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

html {
  background: url('../images/logo_male.png') fixed 25% 0;
  background-color: var(--kmps-bg-page);
}

body {
  min-width: 320px;
}

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

a:link,
a:visited,
a:active {
  color: var(--kmps-text);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: var(--kmps-navy);
  text-decoration: none;
  font-weight: bold;
}

abbr {
  border-bottom: 1px dotted #000000;
}

::-moz-selection {
  background: #82c4dc;
  color: #ffffff;
}

::selection {
  background: #82c4dc;
  color: #ffffff;
}

/* =========================================================
   STRUKTURA GŁÓWNA
========================================================= */

#kontener {
  width: 1200px;
  overflow: hidden;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

#lewa {
  float: left;
  width: 20%;
  height: auto;
  padding-bottom: 17000px;
  margin-bottom: -17000px;
  background-color: var(--kmps-bg-left);
  background-position: center;
  text-align: left;
}

#srodek {
  float: left;
  width: 80%;
  height: auto;
  background-color: var(--kmps-bg-content);
  background-position: center;
  text-align: center;
  font-size: 1.083em;
  color: var(--kmps-text);
}

#srodek .p {
  position: relative;
  text-align: center;
  font-size: medium;
  word-spacing: 1px;
  line-height: 20px;
  color: var(--kmps-text);
}

.page-content {
  padding: 15px;
}

/* =========================================================
   HERO / NAGŁÓWEK KMPS
========================================================= */

.kmps-hero {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(25, 32, 54, 0.98) 0%,
      rgba(25, 32, 54, 0.88) 34%,
      rgba(25, 32, 54, 0.55) 68%,
      rgba(25, 32, 54, 0.32) 100%
    ),
    url("https://kmps.org.pl/images/naglowek-kmps.png") center center / cover no-repeat;
}

.kmps-hero__inner {
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.kmps-hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.kmps-hero__logo img {
  width: 445px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   STOPKA
========================================================= */

.kmps-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--kmps-menu-dark);
  color: #d8d8d8;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.kmps-footer__inner {
  min-height: 96px;
  padding: 22px 34px;
  display: grid;
  grid-template-columns: 190px 1fr 220px;
  align-items: center;
  gap: 28px;
}

.kmps-footer__brand {
  display: flex;
  align-items: center;
}

.kmps-footer__brand a {
  display: inline-flex;
  align-items: center;
}

.kmps-footer__brand img {
  height: 54px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.kmps-footer__content {
  text-align: left;
  color: #cfcfcf;
}

.kmps-footer__content strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kmps-footer__content span {
  display: block;
  color: #bdbdbd;
}

.kmps-footer__social {
  text-align: right;
}

.kmps-footer__social span {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kmps-footer__icons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.kmps-footer__icons a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: var(--kmps-menu);
  text-decoration: none;
  border: none;
}

.kmps-footer__icons a:hover {
  color: #ffffff !important;
  background: var(--kmps-navy);
}

.kmps-footer__icons a[title*="FB"]:hover {
  background: #4267b2;
}

.kmps-footer__icons a[title*="Instagram"]:hover {
  background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #fd1d1d);
}

.kmps-footer__icons a[title*="YouTube"]:hover {
  background: #ff0000;
}

/* =========================================================
   SIATKA HISTORYCZNA / LEGACY
========================================================= */

.padding-15 {
  padding: 15px;
}

.kontener {
  width: 100%;
  float: left;
  position: relative;
}

.kol_1 {
  width: 100%;
  float: left;
}

.kol_2 {
  width: 50%;
  float: left;
}

.kol_3 {
  width: 33.33%;
  float: left;
}

.kol_4 {
  width: 25%;
  float: left;
}

.kol_5 {
  width: 20%;
  float: left;
}

.kol_6 {
  width: 75%;
  float: left;
}

/* =========================================================
   TYPOGRAFIA / ELEMENTY WSPÓLNE
========================================================= */

#update {
  color: var(--kmps-red);
  font-size: 0.75em;
  font-weight: bold;
  text-align: center;
}

.newsy {
  font-size: 12px;
  font-weight: normal;
  text-align: center;
  margin: 2mm 0 0 0;
}

.newsy_tytul {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  margin: 5mm 0 1mm 0;
  font-variant: small-caps;
}

.newsy_data {
  font-size: 9px;
  color: var(--kmps-light-muted);
  font-weight: bold;
  text-align: center;
  margin: 0;
  font-variant: small-caps;
}

.belka_1 {
  padding-top: 4px;
  display: block;
  background: var(--kmps-navy);
  width: 100%;
  height: 26px;
  font-size: 14px;
  color: #ffffff;
  text-shadow: 1px 1px 1px #0c1e0b;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.belka_2 {
  margin-left: 12px;
  padding-top: 4px;
  display: block;
  width: 760px;
  height: 26px;
  font-size: 14px;
  color: var(--kmps-text);
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

hr {
  border: 0;
  height: 2px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(25, 32, 54, 0.75),
    rgba(0, 0, 0, 0)
  );
}

blockquote {
  padding: 5px 15px;
  display: block;
  position: relative;
  overflow: hidden;
  text-align: justify;
  border-left: 10px solid #1f702b !important;
  font-style: italic;
  color: #666666;
}

/* Lista legacy — używaj tylko tam, gdzie chcesz stary styl numeracji */
.legacy-ordered-list {
  counter-reset: item;
}

.legacy-ordered-list > li {
  margin: 0;
  padding: 0 0 0 2em;
  text-indent: -2em;
  list-style-type: none;
  counter-increment: item;
}

.legacy-ordered-list > li::before {
  display: inline-block;
  width: 1em;
  padding-right: 0.5em;
  font-weight: bold;
  text-align: right;
  content: counter(item) ".";
}

/* =========================================================
   DODATKI / IKONY / PRZYCISKI
========================================================= */

.slideshow {
  width: 475px;
  height: 106px;
  margin: 0 auto;
  padding: 10px 0;
  overflow: hidden;
}

.dymek {
  margin: 20px 0 40px;
  padding: 15px 20px;
  position: relative;
  background: #ffffad;
  color: #3a3a3a;
}

.dymek::after {
  border-color: #ffffad;
  border-style: solid;
  border-width: 22px 0 0 22px;
  border-left: 22px solid transparent;
  bottom: -22px;
  content: "";
  display: block;
  left: 30px;
  position: absolute;
  width: 0;
}

.dymek cite {
  bottom: -25px;
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  height: 25px;
  left: 26px;
  line-height: 36px;
  padding-left: 32px;
  position: absolute;
  color: #3a3a3a;
}

.dymek small {
  color: #ffffff;
}

.modul-ikonki {
  padding: 4px;
  text-align: center;
  display: inline-block;
}

.modul-ikonki a {
  text-decoration: none !important;
}

.facebook,
.linkedin,
.youtube,
.rss,
.instagram {
  color: #999999;
  transition: all 0.25s ease-in;
}

.facebook:hover {
  color: #4267b2;
}

.linkedin:hover {
  color: #2867b2;
}

.youtube:hover {
  color: #ff0000;
}

.instagram:hover {
  background: -webkit-linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rss:hover {
  color: #ff6600;
}

.button,
.button_download {
  background: var(--kmps-menu);
  padding: 5px;
  width: 135px;
  text-align: center;
  list-style: none;
  color: #ffffff;
}

.button:hover,
.button_download:hover {
  background: #1f702b;
}

.button a:link,
.button_download a:link,
.button a:visited,
.button_download a:visited,
.button a:active,
.button_download a:active {
  color: #ffffff;
}

.button_download {
  text-align: center;
  width: 50%;
  margin: 15px auto;
  padding: 10px 0;
}

/* =========================================================
   MENU LEWE — LEGACY
========================================================= */

#menu_left_top {
  background: #2a2a2a;
  max-width: 100%;
  max-height: 30px;
  font-size: 13px;
  color: #ffffff;
  padding: 6px 0 !important;
  font-weight: 700;
  text-align: center;
  margin-top: 25px;
}

#menu_left_top::after {
  background: var(--kmps-navy);
  width: 30px;
  position: static;
  float: right;
  content: "";
  padding: 13px 0 !important;
  margin-top: -6px;
}

#menu_left_down {
  background: #2a2a2a;
  max-width: 100%;
  height: 5px;
}

#menu_left_down::after {
  background: var(--kmps-navy);
  width: 25px;
  position: static;
  float: right;
  content: "";
  padding: 2px !important;
}

.pozycje li {
  font-size: 1em;
  text-align: left;
  margin-left: -20px;
  margin-top: -5px;
  margin-bottom: 15px;
}

.pozycje li:last-child {
  margin-bottom: 0 !important;
}

span.title {
  width: 100%;
}

#menu-lewe {
  margin-left: 3px;
}

/* =========================================================
   MENU LEWE — NOWY SIDEBAR
========================================================= */

.side-menu {
  margin-top: 25px;
  padding: 0 10px 20px;
}

.side-card {
  margin-bottom: 18px;
}

.side-card__header {
  position: relative;
  background: #2a2a2a;
  color: #ffffff;
  min-height: 30px;
  padding: 7px 34px 7px 10px;
  box-sizing: border-box;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.side-card__header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background: var(--kmps-navy);
}

.side-card__body {
  background: var(--kmps-bg-left);
  padding: 13px 12px 10px;
}

.side-card__body--center {
  text-align: center;
}

.side-card__bottom {
  height: 5px;
  background: #2a2a2a;
  position: relative;
}

.side-card__bottom::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 25px;
  height: 100%;
  background: var(--kmps-navy);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  margin: 0 0 12px;
  padding: 0;
  font-size: 12px;
  line-height: 1.35;
}

.side-list li:last-child {
  margin-bottom: 0;
}

.side-list a {
  color: var(--kmps-text);
  font-weight: 700;
  text-decoration: none;
}

.side-list a:hover {
  color: var(--kmps-navy);
}

.side-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  background: var(--kmps-red);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.side-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.side-socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--kmps-menu);
  color: #ffffff !important;
  font-size: 18px;
  text-decoration: none;
}

.side-socials a:hover {
  background: var(--kmps-navy);
  color: #ffffff !important;
}

.side-socials a[aria-label*="Facebook"]:hover {
  background: #4267b2;
}

.side-socials a[aria-label*="Instagram"]:hover {
  background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #fd1d1d);
}

.side-socials a[aria-label*="YouTube"]:hover {
  background: #ff0000;
}

/* =========================================================
   GRAFIKI / ELEMENTY STAŁE
========================================================= */

#belka {
  margin-left: 12px;
  background: url('../images/sprites_img.png') -12px -110px;
  width: 760px;
  height: 26px;
  font-size: 1.167em;
  color: #ffffff;
  text-shadow: 1px 1px 1px #0c1e0b;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

#dogory {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 50px;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

#dogory:hover {
  background: var(--kmps-navy);
  color: #ffffff !important;
}

#dogory a {
  color: inherit;
}

time.icon {
  font-size: 1em;
  display: block;
  position: relative;
  width: 7em;
  height: 7em;
  background-color: #ffffff;
  margin: 2em auto;
  border-radius: 0.6em;
  box-shadow:
    0 1px 0 #bdbdbd,
    0 2px 0 #ffffff,
    0 3px 0 #bdbdbd,
    0 4px 0 #ffffff,
    0 5px 0 #bdbdbd,
    0 0 0 1px #bdbdbd;
  overflow: hidden;
  backface-visibility: hidden;
  transform-origin: 50% 10%;
}

time.icon * {
  display: block;
  width: 100%;
  font-size: 1em;
  font-weight: bold;
  font-style: normal;
  text-align: center;
}

time.icon strong {
  position: absolute;
  top: 0;
  padding: 0.4em 0;
  color: #ffffff;
  background-color: #1f702b;
  border-bottom: 1px dashed var(--kmps-text);
  box-shadow: 0 2px 0 #1f702b;
}

time.icon em {
  position: absolute;
  bottom: 0.3em;
  color: #1f702b;
}

time.icon span {
  width: 100%;
  font-size: 2.8em;
  letter-spacing: -0.05em;
  padding-top: 0.8em;
  color: var(--kmps-text);
}

/* =========================================================
   CIASTECZKA
========================================================= */

#cookieinfo * {
  margin: 0;
  padding: 0;
}

#cookieinfo {
  position: fixed;
  font-size: 14px;
  left: 0;
  bottom: 0;
  right: 0;
  color: #ffffff;
  border-top: 10px solid var(--kmps-navy);
  background-color: #161616;
  padding: 40px 10px;
  z-index: 1000;
}

#cookieinfo h2 {
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  padding-left: 300px;
}

#cookieinfo p {
  color: #ffffff;
  font-size: 14px;
  line-height: 21px;
  text-align: left;
  padding: 0 300px;
}

#cookieinfo a {
  display: block;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  background-color: var(--kmps-menu);
}

#cookieinfo a:hover {
  background-color: var(--kmps-red);
}

/* =========================================================
   RESPONSYWNOŚĆ — BAZA
========================================================= */

@media all and (max-width: 736px) {
  .no-display,
  .no-display * {
    display: none !important;
  }

  #kontener {
    width: 95%;
    max-width: 740px;
    padding: 0;
  }

  #lewa {
    width: 100%;
    float: left;
  }

  #srodek {
    width: 100%;
  }

  .padding-15,
  .page-content {
    padding: 0;
  }

  img {
    float: none !important;
  }

  .slideshow {
    max-width: 100%;
  }

  .belka_1,
  .belka_2 {
    width: 92%;
    height: auto;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
  }

  .kontener {
    max-width: 700px;
    margin: 0;
    left: 0;
    float: left;
    position: relative;
  }

  .kol_1,
  .kol_2,
  .kol_3 {
    width: 100%;
    float: left;
  }

  .kol_4,
  .kol_5 {
    width: 50%;
    float: left;
  }

  .kmps-hero {
    height: 175px;
  }

  .kmps-hero__inner {
    width: calc(100% - 32px);
    justify-content: center;
  }

  .kmps-hero__logo img {
    width: 320px;
  }

  .kmps-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
    text-align: center;
  }

  .kmps-footer__brand {
    justify-content: center;
  }

  .kmps-footer__brand img {
    height: 50px;
  }

  .kmps-footer__content,
  .kmps-footer__social {
    text-align: center;
  }

  .kmps-footer__icons {
    justify-content: center;
  }

  #cookieinfo {
    padding: 24px 16px;
  }

  #cookieinfo h2,
  #cookieinfo p {
    padding-left: 0;
    padding-right: 0;
  }
}

@media all and (max-width: 480px) {
  #kontener {
    width: 95%;
    max-width: 460px;
    padding: 0;
  }

  #menu_left_top,
  #menu_left_down {
    margin: 0 auto !important;
  }

  .kontener {
    max-width: 400px;
  }

  .kmps-hero {
    height: 145px;
  }

  .kmps-hero__logo img {
    width: 250px;
  }

  .kmps-footer__inner {
    padding: 22px 16px;
  }

  .kmps-footer__content strong {
    font-size: 12px;
  }

  .kmps-footer__icons a {
    width: 32px;
    height: 32px;
  }
}