html {
  scroll-padding-top: 150px;
  scroll-margin-top: 150px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 30px;
  margin-bottom: 20px;
}

section {
  overflow: hidden;
}

footer {
  margin-top: var(--sectionPadding);
}

.sub aside h5,
.sub h1 {
  margin-top: 0;
  line-height: 1;
}

aside a,
main a {
  text-decoration: none;
}

.header-top::after {
  width: 100%;
  height: 150px;
  background: linear-gradient(hsl(0, 0%, 100%, 0.7), white);
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
}

aside,
main {
  margin-top: -50px;
  z-index: 20;
}

aside .nav {
  margin: 0;
  padding: 0;
  width: 100%;
}

aside .nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

aside .nav a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  line-height: 1.3;
  padding: 10px 0;
  transition: all 0.2s;
  color: var(--textColor);
  opacity: 0.7;
}

aside .nav a:hover,
aside .nav a.active {
  opacity: 1;
}

aside .nav a.active {
  color: black;
  opacity: 1;
}

aside .nav a::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 3px;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--primaryLight), var(--primaryDark));

  opacity: 0;
  width: 0;
  margin-right: 0;
}

aside .nav a.active::before {
  opacity: 1;
  width: 12px;
  margin-right: 10px;
}

aside .card {
  margin-bottom: 30px;
}

aside .card-image {
  width: 100px;
  margin-right: 20px;
}

aside .card-image::after {
  display: none;
}

aside .card-title {
  margin: 0 0 5px;
  line-height: 1.1;
}

.gallery a {
  overflow: hidden;
}

.gallery img {
  transition: all var(--fastSpeed) var(--easeOutBack);
}

.gallery a:hover img {
  transform: scale(1.1);
}

.downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  box-sizing: border-box;
  padding: 15px 30px;
  text-decoration: none;
  color: var(--textColor);
  transition: all var(--fastSpeed);
  box-shadow: 0 0 30px hsl(0, 0%, 0%, 0.1);
}

.downloads a:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -5px hsl(0, 0%, 0%, 0.2);
}

.downloads a img:not(.download-icon) {
  height: 52px;
  border-radius: 0;
}

.download-icon {
  height: 18px;
  display: block;
  margin-left: 30px;
  border-radius: 0;
}

.downloads .text {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 30px;
}

.card {
  box-shadow: 0 5px 40px hsl(0, 0%, 0%, 0.1);
}

.card-image {
  display: block;
  overflow: hidden;
}

.card-image img {
  transition: all 0.3s ease;
}

.card:hover .card-image img,
.card-image:hover img {
  transform: scale(1.1);
}

.card-body {
  text-align: center;
  /*padding: 30px 30px 60px;*/
  padding: 30px;
  position: relative;
}

/*
.card-body::after {
	content: '';
	display: block;
	width: 70px;
	height: 70px;
	background: url(/assets/img/more.svg) center no-repeat;
	border-radius: 50%;
	box-shadow: 0 10px 25px hsl(202, 100%, 37%, .3);
	transition: all .3s ease;
	position: absolute;
	bottom: -35px;
	left: calc(50% - 35px);
}

.card:hover .card-body::after {
	left: calc(50% - 30px);
}
*/

.card-title {
  margin: 0;
}

.card-title--link {
  color: var(--titleColor);
  transition: color 0.2s;
}

.card:hover .card-title--link,
.card-title--link:hover {
  color: var(--primary);
}

.card small {
  line-height: 1.45;
}

.link-disabled a {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  color: var(--textColor);
  text-align: center;
}

.link-disabled a img {
  margin-bottom: 12px;
}

.akordeon-title {
  /* background-color: var(--bgLight); */
  color: var(--titleColor);
  cursor: pointer;
  padding: 1em 1.5em;
  margin: 0;
  font-size: 1.125rem;
  transition: all 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -1px;
  border: 1px solid var(--bgLight);
}

.akordeon-title .marker {
  font-family: monospace;
  font-weight: 400;
  font-size: 1.3125rem;
  color: var(--primaryDark);
  transform: rotate(45deg);
  transition: all 0.3s ease-out;
}

.akordeon-title.active .marker {
  transform: rotate(0);
  color: var(--primaryDark);
}

.akordeon-title:hover {
  background-color: var(--bgLight);
}

.akordeon-title.active {
  background-color: var(--bgLight);
}

.akordeon-content {
  padding: 30px;
  border: 1px solid var(--bgLight);
}

.kontaktowa footer {
  margin-top: -1px;
}

.kontaktowa .header-top::after {
  display: none;
}

.lightUp--ready {
  transform: translateY(50px);
  opacity: 0;
}

.lightUp {
  animation: lightup 0.6s ease-out 1 forwards;
}

.lightDown--ready {
  transform: translateY(-50px);
  opacity: 0;
}

.lightDown {
  animation: lightdown 0.6s ease-out 1 forwards;
}

@keyframes lightup {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes lightdown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 1022px) {
  .sub header .swiper-container img {
    height: 350px !important;
  }

  .header-top::after {
    height: 100px;
  }

  aside {
    display: none;
  }
}

@media screen and (max-width: 580px) {
  :root {
    --h1: 2.5rem;
    --h2: 2.1rem;
    --h3: 1.8rem;
    --h4: 1.5rem;
    --h5: 1.2rem;
  }

  .sub header .swiper-container img {
    height: 300px !important;
  }

  .thumbnail.right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px 0;
  }
}

#news .card {
  cursor: pointer;
}

#news .card-title {
  margin-bottom: 20px;
}

.sub #realizacje {
  background: none;
}

.sub .swiper-pagination {
  text-align: left;
}

.sub .kontakt img {
  filter: brightness(0);
  margin-top: 7px;
}

/* SPRAWDŹ TAKŻE */

.also {
  margin-bottom: -150px;
  text-align: center;
}

.also .produkty {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
  padding: 10px;
  width: 100%;
}

.also .box {
  margin: 0px;
  position: relative;
  width: 100%;
  padding: 0;
}

.also .box {
  overflow: hidden;
}

.also .box a {
  height: 0px;
  width: 0px;
}

.also .box span {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  padding: 3rem;
  text-align: center;
  color: white;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  background: #000000ab;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  z-index: 2;
}

.also .box img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.also .box a:hover span {
  background: #0000005c;
  text-shadow: 0 0 10px black;
}

.also .box a:hover img {
  transform: scale(1.05);
}

@media screen and (max-width: 1199px) {
  .also .produkty {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 800px) {
  .also .produkty {
    grid-template-columns: 1fr;
  }
}


.sidebar ul li {
  list-style: none;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e2e2;
}

.sidebar ul li a {
  color: var(--titleColor);
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.sidebar ul li a:hover {
  color: var(--primaryLight);
}

.sidebar ul {
  margin: 0;
  padding: 0;
}


.thumbnail.right {margin-bottom: 0;}

.chessboard:nth-child(even) .thumbnail.right {
  float: left !important;
  margin: 0 30px 0 0 !important;
}