html {
	scroll-behavior: smooth;
}


body {
	margin: 0;
	font-family: 'Lato', sans-serif;
	color: #000;
}

/* HEADER */
header {
	background: #fff;

}

.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 5%;
}

.logos {
	display: flex;
	align-items: center;
	gap: 15px;
}

.logos a:nth-child(1) img {
	height: 70px;
}

.logos a:nth-child(2) img {
	height: 45px;
	margin-left: 5px;
}

.hamburger {
	display: none;
	font-size: 28px;
	cursor: pointer;
}

nav {
	background: #EDEDED;
	width: 100%;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 18px 5%;
}

nav ul li a {
	position: relative;
	text-decoration: none;
	color: #000;
	font-weight: 400;
	font-size: 14px;
	padding: 8px 4px;
	transition: color 0.3s ease;
}

nav ul li a::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 99%;
	height: 4px;
	background: #d60000;
	border-radius: 0px;
	transition: transform 0.3s ease;
}

nav ul li a:hover::after {
	transform: translateX(-50%) scaleX(1);
}


/* HERO */
.hero-thinkbook {
	background: url('img/bg_thinkcentre.jpg') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hero-thinkvision {
	background: url('img/bg_thinkvision.avif') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hero-thinkbook {
	background: url('img/bg_thinkbook.avif') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hero-thinkcentre {
	background: url('img/bg_thinkcentre.avif') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hero-thinkpad-workstation {
	background: url('img/bg_thinkpad-workstation.avif') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hero-thinkstation {
	background: url('img/bg_thinkstation.avif') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}


.hero-thinkpad {
	background: url('img/bg_thinkpad.jpg') center/cover no-repeat;
	height: 550px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}


.hero-content img {
	max-height: 90px;
	margin-bottom: 30px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.btn-hero {
	display: inline-block;
	padding: 12px 36px;
	min-width: 200px;
	text-decoration: none;
	border-radius: 6px;
	font-weight: bold;
	font-size: 17px;
	transition: background 0.3s ease, transform 0.3s ease;
	background: #00000080;
	border-radius: 3px;
	color: #fff;
	text-decoration: none;
	border: 1px solid #fff;


}

.btn-hero:hover {
	background: #3e8ddd;
	border: 1px solid #3e8ddd
}

#offer h1 {
	margin: 40px 0px 40px;
}


/* GRID SERIE */
.series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	padding: 40px 5%;
}

.series-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	padding: 20px;
	background: url("img/bg_footer.png") center/cover no-repeat;
	border-radius: 8px;
	color: #000;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.series-item h3 {
	font-size: 20px;
	margin-bottom: 10px;
}

.series-item p {
	font-size: 14px;
	margin-bottom: 15px;
	line-height: 1.4em;
}

.series-item img {
	max-width: 180px;
	height: auto;
}


/* SCROLL TO TOP */
#scrollTopBtn {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #e42022;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 28px;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
	transform: scale(1.1);
}

#scrollTopBtn span {
	display: inline-block;
	transform: rotate(90deg);
}


/* PRODUKTY */
.products-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 50px 5%;
}

.product-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.product-item img {
	width: 220px;
	height: 220px;
	object-fit: contain;
	margin-bottom: 15px;
}

.product-item h3 {
	font-size: 16px;
	margin-bottom: 15px;
	color: #294E95;
	text-align: left;
	padding-top: 0;
	margin-top: 0;
}

.product-item ul {
	list-style: disc;
	text-align: left;
	padding-left: 20px;
	margin: 0;
	font-size: 13px;
	line-height: 15px;
}

.product-item ul li {
	margin-bottom: 8px;
	line-height: 18px
}

/* SLIDER */
.swiper {
	width: 100%;
	height: 400px;
}

.swiper-slide {
	background: url('img/bg_slider.jpg') center/cover no-repeat fixed;
	flex-shrink: 0;
	width: 100% !important;
	height: 400px;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	padding: 0 5%;
	box-sizing: border-box;
}

.slide-text {
	flex: 1;
	max-width: 40%;
}

.slide-text img {
	max-height: 90px;
	margin-bottom: 20px;
	display: block;
}

.slide-text p {
	font-size: 22px;
	font-weight: 500;
	margin: 0;
	color: #fff;
}

.slide-text span {
	color: #fff;
	padding-top: 20px;
	display: block;
	font-size: 15px;
}

.slide-img {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.slide-img img {
	max-height: 300px;
	width: auto;
	display: block;
}

.swiper-button-next,
.swiper-button-prev {
	color: #fff !important;
	width: 25px !important;
	height: 25px !important;
	transform: scale(0.5);
}


/* PRODUKTY */
h1 {
	text-align: left;
	margin: 40px 0px 0px;
	padding: 0px 5%;
	font-size: 40px;
}

.section {
	padding: 30px 5% 0px 5%;
}

.section h2 {
	font-size: 25px;
	margin-bottom: 5px;
}

.section p {
	margin-bottom: 20px;
	color: #555;
	font-size: 15px;
	min-height: 40px;
}

.product-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	/* ~60% / 30% */
	gap: 20px;
}

.product-col.wide {
	grid-column: span 1;
}

.product-col.narrow {
	grid-column: span 1;
	padding-right: 25px
}

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	padding-right: 30px
}

.card {
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	text-align: center;
	transition: opacity 0.3s ease;
	margin-bottom: 20px;
}

.card img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.4s ease-in-out;
}

.card .btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: background-color .5s ease, color .5s ease;
	background: #294E95;
	color: #fff;
	border-radius: 4px;
	font-size: 17px;
	text-decoration: none;
	font-weight: bold;
	white-space: nowrap;
	padding: 15px 25px;
	min-width: 240px;
	border-color: #294e95!important

}


.card:hover img {
	opacity: 0.4;
	filter: blur(2px);
}

.card:hover .btn {
	opacity: 1;
}


/* BANER */
.banner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	min-height: 400px;
	margin: 60px 0 0px 0;
}

.banner-text {
	flex: 1;
	background: url("img/bg_slider.jpg") no-repeat center/cover;
	color: #fff;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.banner-text h2 {
	font-size: 38px;
	margin-bottom: 20px;
	max-width: 500px;
	line-height: 46px;
}

.banner-text h2 i {
	color: #ffb9a2;
	font-style: normal
}

.banner-text p {
	font-size: 16px;
	line-height: 24px;
	max-width: 500px;
}

.banner-img {
	flex: 1;
	overflow: hidden;
}

.banner-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* KONTAKT */
.contact {
	background: #f5f6f7;
	padding: 60px 5% 90px 5%;
	text-align: center;
	color: #000;
	font-size: 30px;
}

.contact h2 {
	margin-bottom: 10px;
	font-size: 30px;
	font-weight: 300;

}

.contact h3 {
	margin-bottom: 10px;
	font-size: 21px;
	padding: 0;
	font-weight: 300;
	margin-top: 0;
}

.contact p a {
	text-decoration: none;
	color: #000;
	padding: 0;
	margin: 0;
	font-weight: 300
}


.contact p {
	margin: 5px 0;
	font-size: 15px;
	font-weight: 300

}

.contact img {
	max-height: 60px;
	margin: 20px 0;
}

.btn {
	display: inline-block;
	margin-top: 20px;
	padding: 15px 25px;
	background: #e5194a;
	color: #fff;
	text-decoration: none;
	border-radius: 0px;
	font-weight: 300;
	font-size: 17px;
	min-width: 200px;
	transition: background-color .5s ease, color .5s ease;
	border: 1px solid #e5194a;
}

.btn:hover {
	background-color: #eaeef5;
	color: #294e95;
	border: 1px solid #294e95;
}


/* STOPKA */
footer {
	background: #fff;
  color: #000;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  font-weight: 300;
}

/* MENU MOBILE */
#menu {
	max-height: none;
	overflow: hidden;
	transition: max-height 0.4s ease-in-out;
}

#menu.active {
	max-height: 500px;
}

@media (max-width: 1180px) {


	#scrollTopBtn {
		display: none !important;
	}

	.products-list {
		grid-template-columns: repeat(2, 1fr);
	}

	nav ul li a::after {
		display: none;
	}

	nav a {

		font-size: 16px;
		padding-bottom: 3px;
		display: block;
		padding-top: 3px;
	}

	nav ul {
		flex-direction: column;
		gap: 10px;
		margin-top: 10px;
		padding-bottom: 30px
	}

	#menu {
		max-height: 0;
	}

	.hamburger {
		display: block;
	}

}

@media (max-width: 768px) {

	.slide-text span {

		font-size: 14px;
		line-height: 23px;
	}

	.swiper {
		width: 100%;
		min-height: 400px;
		height: auto;
	}

	.swiper-slide {
		min-height: 400px;
		height: auto;
	}

	.products-list {
		grid-template-columns: 1fr;
	}

	.swiper-button-next,
	.swiper-button-prev {

		transform: scale(0.5);
	}

	footer {

		font-size: 12px;
	}

	.contact h2 {
		font-size: 26px;
		max-width: 300px;
		margin: 10px auto;
		font-weight: 300
	}

	.contact h3 {
		font-size: 16px;

	}

	h1 {

		font-size: 30px;
	}

	.section h2 {
		font-size: 21px;
		margin-bottom: 0px;
	}

	.slide-img img {

		max-width: 270px;
	}

	.banner {
		flex-direction: column;
	}

	.slide-text p {
		font-size: 18px;
	}

	.slide-text img {
		max-width: 110px;
		padding-top: 60px;
		margin: -10px auto 30px auto;
	}

	.banner-text {
		max-width: 100%;
		padding: 30px 20px;
		text-align: center;
	}

	.banner-text h2 {
		font-size: 26px;
		line-height: 34px;
		max-width: 100%;
	}

	.banner-text p {
		font-size: 15px;
		line-height: 22px;
		max-width: 100%;
	}

	.banner-img {
		margin-top: 0px;
	}

	.banner-img img {
		max-width: 100%;
	}

	.grid-2 {
		padding-right: 0px;
	}

	.product-col.narrow {
		padding-right: 0px;
	}

	.swiper-slide {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding: 0 20px;
	}

	.slide-text,
	.slide-img {
		max-width: 100%;
	}

	.slide-img {
		justify-content: center;
	}


	.product-grid {
		grid-template-columns: 1fr;
	}

	.grid-2 {
		grid-template-columns: 1fr;
	}
}