body {
  overflow-x: hidden;
}

.sub header .swiper-slide {
  height: 40vh;
}

.sub header h1 {
  font-weight: bold;
}

.historia.sub header h1 {
  text-align: center;
  width: 100%;
  border: none;
}

.sub header {
  height: 40vh;
  background: black;
}

.sub header .swiper-wrapper {
  opacity: 0.6;
}

.sub header img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

aside,
.sub main {
  padding: calc(var(--sectionPadding) / 2) 0;
}

aside h4 {
  margin-top: 0;
}

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

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

aside .nav a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  line-height: 1.3;
  padding: 10px 25px;
  text-decoration: none;
  border-left: 2px solid var(--borderColor);
  transition: all 0.2s;
  color: var(--textColor);
}

aside .nav a:hover,
asde .nav .active > a,
aside .nav a.active {
  border-left-color: var(--primary);
}

aside .nav a:hover {
  padding-left: 30px;
  padding-right: 20px;
}

asde .nav .active > a,
aside .nav a.active {
  color: var(--primary);
}

.gallery a {
  overflow: hidden;
}

.gallery img {
  display: block;
  width: 100%;
  transition: all var(--normalSpeed) var(--ease);
}

.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;
  filter: grayscale(1);
}

.downloads .size {
  opacity: 0.6;
  font-size: 0.875rem;
}

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

.downloads strong {
  font-weight: 400;
  line-height: 1.3;
  display: block;
  padding-right: 30px;
}

form {
  width: 100%;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 1.125rem;
}

label p {
  margin: 0;
}

label a {
  text-decoration: none;
  color: var(--primary);
}

label p,
label li {
  font-size: 0.875rem;
  line-height: 1.5;
}

label li {
  margin-bottom: 0.5em;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 2px solid var(--borderColor);
}

[type="checkbox"],
[type="radio"] {
  width: auto;
  flex-shrink: 0;
}

textarea {
  height: 15.5rem;
}

.ok {
  border-color: var(--borderColor);
}

.error {
  border-color: red;
}

.error-msg {
  color: red;
  font-size: 1rem;
  margin-top: 5px;
}

.star {
  color: red;
  font-family: sans-serif;
}

#alert {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: bold;
}

#alert.success {
  background-color: rgb(0, 133, 22);
}

#alert.danger {
  background-color: rgb(165, 0, 0);
}

input,
select,
textarea {
  font-size: 0.889rem;
}

.input-group {
  display: flex;
  margin: 10px 0;
}

.input-group input {
  margin-right: 10px;
}

/* KARIERA */

.sticky {
  position: sticky;
  top: 120px;
}

.offers a {
  color: var(--titleColor);
  text-decoration: none;
}

.offers a h5 {
  border-left: 3px solid var(--primary);
  padding: 10px 20px;
  transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.offers a h5 small {
  font-weight: 300;
  margin-top: 0.2em;
}

.offers a:hover h5 {
  padding-left: 25px;
  padding-right: 15px;
}

small,
.work label {
  display: block;
  font-size: 0.75em;
  margin: 0;
  line-height: 1.225em;
}

.aspect-ratio-1x1 {
  aspect-ratio: 1;
}

.kroki .aspect-ratio-1x1 {
  padding: 60px;
  background: var(--titleColor);
  color: white;
  position: relative;
}

.kroki .aspect-ratio-1x1:nth-last-of-type(even) {
  background: #241d4e;
}

.kroki {
  counter-reset: section;
  list-style-type: none;
}

.kroki .aspect-ratio-1x1::after {
  counter-increment: section;
  content: counters(section, ".") " ";
  position: absolute;
  bottom: -40px;
  right: 10px;
  font-weight: bold;
  font-size: 12em;
  opacity: 0.1;
  line-height: 1;
}

.kroki .aspect-ratio-1x1 h5,
.kroki .aspect-ratio-1x1 h6 {
  color: white;
}

.kroki .triangle {
  background: var(--primary);
  clip-path: polygon(0 0, 0% 100%, 100% 0);
}

#opinie .swiper-container {
  padding-bottom: 0;
}

.opinia {
  padding: 60px;
  background: var(--bgLight);
}

.opinia-card {
  background: #fff;
  padding: 40px;
  box-shadow: 0 0 50px hsl(0, 0%, 0%, 0.1);
}

.opinia-card .flex {
  margin-top: 20px;
  line-height: 1.3;
}

.opinia-card .flex p {
  color: hsl(0, 0%, 20%, 0.5);
}

.opinia-card .flex p strong {
  color: hsl(0, 0%, 20%);
}

.bg-light.icons img {
  mix-blend-mode: darken;
}

.border-left {
  border-left: 2px solid var(--primary);
  padding: 2px 15px;
  margin: 10px 0px !important;
}

.kontaktowa .border-left {
  font-weight: bold;
  font-size: 0.825em;
}

.eco {
  background: #eef9d2;
  display: flex;
  height: 200px;
  border-radius: 100px;
  overflow: hidden;
  margin-top: 30px;
  align-items: center;
}

.eco .text {
  padding: 30px;
}

#opinie .swiper-container {
  padding-bottom: 60px;
}

#opinie .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
}

#opinie .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

#opinie .swiper-wrapper {
  align-items: stretch;
}

#opinie .swiper-slide {
  height: auto;
}

#opinie .opinia,
#opinie .opinia-card {
  height: 100%;
}

.aplikowanie {
  animation: aplikowanie 0.4s linear 2 forwards;
}

label.hidden {
  display: none;
}

aside form .flex.col small {
  font-size: 0.75rem;
}

.onas-grid {
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 0.65fr;
}

.onas-grid a {
  width: 100%;
  height: 100%;
}

.onas-grid a:first-child,
.onas-grid a:last-child {
  grid-column: span 2;
}

.onas-grid a span {
  background: linear-gradient(to bottom, transparent, hsl(0, 0%, 0%, 0.8));
}

.onas-grid a strong {
  color: white;
  font-size: 1.5rem;
  display: block;
  line-height: 1.2;
}

.onas-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--normalSpeed) var(--ease);
}

.onas-grid a:hover img {
  transform: scale(1.1);
}

#wycena-form h4 {
  font-size: var(--h5);
  margin-top: 30px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid hsl(0, 0%, 0%, 0.1);
}

.timeline__content-desc {
  font-size: 1.125rem;
  color: white;
}

.cert a {
  aspect-ratio: 3/2;
  padding: 2rem;
}

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

.grid-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}
/*
.grid-template a:nth-of-type(1) {
  grid-area: 1 / 1 / 3 / 3;
}
.grid-template a:nth-of-type(2) {
  grid-area: 1 / 3 / 2 / 4;
}
.grid-template a:nth-of-type(3) {
  grid-area: 1 / 4 / 2 / 5;
}
.grid-template a:nth-of-type(4) {
  grid-area: 2 / 3 / 3 / 4;
}
.grid-template a:nth-of-type(5) {
  grid-area: 2 / 4 / 3 / 5;
} */

@keyframes aplikowanie {
  0% {
    opacity: 1;
    transform: rotate(0);
  }

  25% {
    opacity: 0.6;
    transform: rotate(-0.5deg);
  }

  50% {
    opacity: 1;
    transform: rotate(0);
  }

  75% {
    opacity: 0.6;
    transform: rotate(0.5deg);
  }

  100% {
    opacity: 1;
    transform: rotate(0);
  }
}

/*

			M E D I A
			Q U E R I E S

*/

@media screen and (max-width: 1300px) {
  .kroki .aspect-ratio-1x1 {
    padding: 30px;
  }

  .opinia {
    padding: 30px;
  }

  .opinia-card {
    padding: 20px;
  }
}

@media screen and (max-width: 1022px) {
  .sub h1 {
    font-size: var(--h2);
  }

  .sub h2 {
    font-size: var(--h3);
  }

  .sub h3 {
    font-size: var(--h4);
  }

  .sub h4 {
    font-size: var(--h5);
  }

  .onas-grid a strong {
    font-size: 1.3rem;
  }

  img.max-w-full {
    margin-bottom: 30px;
  }

  #opinie {
    overflow: hidden;
  }

  .kroki .aspect-ratio-1x1 {
    padding: 30px;
  }
}

@media screen and (max-width: 960px) {
  .bg-light .grid,
  .grid.kroki {
    display: block;
  }

  .bg-light .grid > div {
    margin-bottom: 30px;
  }

  .grid .aspect-ratio-1x1 {
    aspect-ratio: auto;
    overflow: hidden;
  }
}

@media screen and (max-width: 760px) {
  .onas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bg-light.p-40.sticky {
    margin-top: 30px;
  }

  [href*="mailto"] {
    word-wrap: break-word;
    line-break: anywhere;
    line-height: 1.1;
    display: block;
  }

  .eco {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 30px;
    text-align: center;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }

  .gallery.grid-template {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .grid-template a:nth-of-type(1) {
    grid-column: span 2;
  }

  .cert a {overflow: visible;}
}

@media screen and (max-width: 590px) {
  .download-icon,
  .downloads .size {
    display: none;
  }

  .downloads a {
    padding: 15px;
  }

  .downloads .text {
    margin-left: 15px;
  }

  .downloads strong {
    padding-right: 0;
    font-size: 0.875rem;
  }

  .downloads a img:not(.download-icon) {
    height: 30px;
  }

  .lead {
    font-size: 1.115rem;
  }

  .w-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .opinia,
  .opinia-card {
    padding: 15px;
  }

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

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column !important;
  }

  .timeline-item .timeline__description,
  .timeline__img {
    width: 100% !important;
  }

  .timeline__img {
    margin-top: 20px;
  }


}

@media screen and (max-width: 400px) {
  .onas-grid {
    grid-template-columns: 1fr;
  }

  .onas-grid a:first-child,
  .onas-grid a:last-child {
    grid-column: 1;
  }

  .sub header {
    height: 200px;
  }

  .sub h1 {
    font-size: var(--h3);
  }

  .sub h2 {
    font-size: var(--h4);
  }

  .sub h3 {
    font-size: var(--h5);
  }

  .sub h4 {
    font-size: var(--h6);
  }

  .sub h5 {
    font-size: var(--h6);
  }

  .bg-light.p-40.sticky .flex {
    flex-direction: column;
    text-align: center;
  }

  .bg-light.p-40.sticky .flex img.mr-15 {
    margin-right: 0;
  }

  .gallery.grid-template {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .grid-template a:nth-of-type(1) {
    grid-column: span 1;
  }
}
