.sub header img {
    height: 450px;
}

.sub main::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 60px;
    width: calc(100% - 120px);
    height: 120px;
    background: linear-gradient(0deg, white, #ffffffd1);
    z-index: 1;
}

@media screen and (max-width: 1800px) {
    .sub main::before {
        width: 100%;
        left: 0;
        height: 80px;
        top: -80px;
    }
    .sub header img {
        height: 178px;
    }
}

.sub main {
    padding: 0 0 var(--sectionPadding) 0;
    background-color: #fff;
}

#main a {
    color: var(--textColor);
    border-bottom: 2px solid var(--primary);
}

#main a:hover {
    border-bottom: 0;
	background-color: var(--primary);
}

.sub h1 {
    margin-top: 0px;
    margin-bottom: 30px;
	font-size: var(--h2);
}

aside h4 {
    margin-top: 0px;
}

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;
    border-left: 2px solid var(--borderColor);
    transition: all 0.2s;
    color: var(--textColor);
}

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

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

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

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;
}

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;
}

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

textarea {
    height: 15.7rem;
}

.ok {
    border-color: #e2e2e2;
}

.error {
    border-color: red;
}

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

.star {
    color: red;
}

#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);
}

.sub #news {
    background-color: #fff;
}

.sub #news .card {
    margin-bottom: 60px;
}


/* GRAFICZNY INDEKS */

.branches.row {
    flex-flow: row;
    flex-wrap: wrap;
    margin-bottom: -60px;
    margin-left: 0px;
    margin-right: 0px;
}

.branch h3 {
    color: white;
    z-index: 2;
}

.first-big .branch:first-of-type {
    flex: 1 1 100%;
    background-position: 50% 0%;
}

.branch {
    flex: 1 1 calc(21% - 120px);
    padding: 0 60px;
    text-align: center;
    height: calc(100vh - 306px);
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    webkit-transition: cubic-bezier(0.175, 0.885, 0.32, 1) 0.4s;
    transition: cubic-bezier(0.175, 0.885, 0.32, 1) 0.4s;
}

.branch .text {
    content: "";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    padding: 0 60px;
    height: 100%;
    width: calc(100% - 120px);
    background: #0000008f;
    z-index: 1;
    webkit-transition: cubic-bezier(0.175, 0.885, 0.32, 1) 0.4s;
    transition: cubic-bezier(0.175, 0.885, 0.32, 1) 0.4s;
}

.branch a {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 3;
}

.branch:hover {
    flex: 2 0 calc(35% - 120px);
}

.branch:hover .text {
    background: #0000001a;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
}

#realizacje .caption {
    line-height: 1.1;
}

blockquote {
    position: relative;
    padding: 15px 0 15px 30px;
    margin: 30px 0;
    font-size: 1.3rem;
    line-height: 1.7;
    border-left: 5px solid var(--primary);
    font-family: var(--fontTitle);
}

blockquote p {
    margin: 0;
}

.bg-primary li::marker {
    color: black;
}

#news {
    padding: 0;
}

.kontaktowa main::before {
    display: none;
}

.kontaktowa header {
    height: 98px;
}

.kontaktowa #realizacje {
    padding: 10px;
}

.kontaktowa main {
    padding-bottom: 0;
}


.links-off #main a {
	border: 0;
}

.links-off #main a:hover {
	background-color: var(--primary);
}


.sub main ol li::marker {
	color: var(--textColor);
}

.search_results li {
	margin-bottom: 15px;
}

#main .search-result {
	border-bottom: 0 !important;
}

.container .container {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 1199px) {
	article .grid .bg-light {
		padding: 20px;
		text-align: center;
	}

    aside {
        order: 999;
        margin-top: 3rem;
    }

    article table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}


@media screen and (max-width: 1023px) {
	.w-full {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}


@media screen and (max-width: 480px) {
	.sub main::before {
		width: 100%;
		left: 0;
		height: 40px;
		top: -40px;
	}

	.sub h1 {font-size: var(--h4);}
	.sub h2 {font-size: var(--h5);}
	.sub h3 {font-size: var(--h6);}
	.sub h4 {font-size: var(--h6);}

	blockquote {
		position: relative;
		padding: 15px 0 15px 20px;
		margin: 30px 0;
		font-size: 1rem;
		line-height: 1.4;
		border-left: 3px solid var(--primary);
		font-family: var(--fontTitle);
	}

	.mobile-nav a {
		padding: 10px 0;
	}

	.mobile-nav {
		top: 70px;
		height: calc(100vh - 70px);
		/* background-color: hsl(0, 0%, 0%, .8); */
		backdrop-filter: blur(5px);
	}
}