h1,
h2,
h3,
h4,
h5,
figure,
p,
ol,
ul {
	margin: 0;
}

ol[role="list"],
ul[role="list"] {
	list-style: none;
	padding-inline: 0;
}

h1,
h2,
h3,
h4,
h5 {
	font-size: inherit;
	font-weight: inherit;
}

img {
	display: block;
	max-inline-size: 100%;
}

html {
	font-family: "Inter", sans-serif;
	scroll-behavior: smooth;
}

:root {
	--light-color: #f5f5f7;
	--dark-color: #221f20;
	--container-pading-inline: 13%;
	--footer-pading-inline: 10%;
}

.container {
	padding: 0 var(--container-pading-inline);
}
main {
	position: relative;
}			

nav {
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 2;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	column-gap: 30px;
	padding: 16px 20px;
	background-color: #000;
	a {
		color: var(--light-color);
		text-decoration: none;
		font-weight: 400;
		font-size: 16px;
		transition: all 0.3s ease-out;
		cursor: pointer;

		@media screen and (max-width: 576px) {
			font-size: 14px;
		
		}
	}
	@media screen and (max-width: 768px) {
		& {
			justify-content: center;
			column-gap: 15px;
		}
	}
	img.logo {
		width: 50px;
		height: 50px;
		background-color: black;
		object-fit: cover;
		@media screen and (max-width: 768px) {
			width: 40px;
			height: 40px;
		}
	}
	.wrapper {
		display: flex;
		justify-content: center;
		align-items: center;
		column-gap: 30px;
	}

}

.promo {
	position: relative;
	min-height: 100vh;
	background: url('../img/main_bg.jpg') center center / cover no-repeat;
	padding-top: 75px;
	@media screen and (max-width: 768px) {
		& {
			background-image: url('../img/tablet_bg.jpg');
	
		}
	}
	
	@media screen and (max-width: 576px) {
		min-height: 500px;
	}
}

.promo__title {
	font-weight: 400;
	font-size: 60px;
	text-transform: uppercase;
	color: var(--light-color);
	line-height: normal;
	@media screen and (max-width: 768px) {
		font-style: 48px;
	}
	
	@media screen and (max-width: 576px) {
		font-size: 26px;
	}
}

.promo__subtitle {
	font-size: 32px;
	color: var(--light-color);
	font-weight: 100;
	margin-top: 80px;
	line-height: normal;
	width: 440px;
	@media screen and (max-width: 768px) {
		& {
			margin-top: 80px;
		}
	}
	
	@media screen and (max-width: 576px) {
		margin-top: 30px;
		font-size: 16px;
		width: 100%;
	}
}

.btn {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 180px;
	text-decoration: none;
	text-align: center;
	padding: 4px 10px;
	margin-top: 20px;
	min-height: 38px;
	font-size: 16px;
	color: var(--light-color);
	font-weight: 100;
	border: 1px solid var(--light-color);
	background: rgba(217, 217, 217, 0);
	cursor: pointer;
	transition: all 0.3s ease-out;
	@media screen and (max-width: 576px) {
		font-size: 14px;
		width: 120px;
		min-height: 30px;
	}
}

.goods__item .btn {
	@media screen and (max-width: 576px) {
		width: 80%;
	}
}

.btn:hover {
	font-weight: 500;
	box-shadow: 5px 5px 10px 0 rgba(255, 255, 255, 0.62);
}

.promo__adress {
	margin-top: 100px;
	font-size: 16px;
	color: var(--light-color);
	font-weight: 100;
	line-height: normal;
	address {
		font-style: normal;
	}
	a {
		color: inherit;
		text-decoration: none;
	}
	@media screen and (max-width: 768px) {
		& {
			margin-top: 80px;
		}
	}
	
	@media screen and (max-width: 576px) {
		display: none;
	}
}

/* .keywords {
	position: absolute;
	bottom: 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 360px;
	width: 100%;
	height: 20px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.04) 0%,
		rgba(255, 255, 255, 0.12) 50%, 
		rgba(255, 255, 255, 0.2) 100%);
	li {
		list-style-type: none;
		color: var(--light-color);
		font-weight: 100;
		font-size: 10px;
	}
	
} */

.about {
	background-color: var(--light-color);
	padding-top: 80px;
	@media screen and (max-width: 576px) {
			padding-top: 50px;
		}
}

.about__title {
	font-weight: 400;
	font-size: 12px;
	color: var(--dark-color);
	font-style: italic;
}

.about__text {
	width: 1100px;
	margin-top: 20px;
	font-size: 40px;
	color: var(--dark-color);
	font-weight: 400;
	line-height: normal;
	span {
		color: #a5a5a5;
	}
	@media screen and (max-width: 1440px) {
			width: 100%;
	}
	
	@media screen and (max-width: 768px) {
			font-size: 24px;
	}
	
	@media screen and (max-width: 576px) {
			font-size: 16px;
	}
}

.services {
	display: flex;
	margin-top: 80px;
	column-gap: 10px;
	@media screen and (max-width: 768px) {
		flex-direction: column;
		margin-top: 40px;
	}
}


.services__items {
	width: 50%;
	ul {
		margin-top: 20px;
		padding: 0;
	}
	li {
		list-style-type: none;
		font-size: 16px;
		color: var(--dark-color);
		font-weight: 400;
		line-height: normal;
		margin-top: 10px;
	}
	@media screen and (max-width: 768px) {
		width: 100%;
	}
}

.services__title__items {
	font-weight: 400;
	font-size: 16px;
	color: var(--dark-color);
	font-style: italic;
}

.services__text {
	width: 50%;
	font-size: 20px;
	letter-spacing: 0.02em;
	color: var(--dark-color);
	font-weight: 400;
	line-height: normal;
	@media screen and (max-width: 768px) {
		width: 100%;
		margin-top: 20px;
	}
}

.catalog {
	background-color: var(--light-color);
	padding: 80px 20px 20px 20px;
	@media screen and (max-width: 568px) {
		padding: 40px 0 20px 0;
	}
}

.catalog__title {
	text-align: left;
	padding-left: 20px;
	font-weight: 500;
	font-size: 28px;
}

.catalog__wrapper {
	margin-top: 20px;
	display: grid;
	grid-template-rows: repeat(2, 1fr);
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	column-gap: 30px;
	row-gap: 30px;
	@media screen and (max-width: 568px) {
		grid-template-columns: 1fr;
	}
}

.item__subtitle {
	text-align: center;
	grid-column: 2/5;
}

.catalog__item__img {
	width: 50px;
	margin: 0 auto;
	grid-column: 1/2;
}

.catalog__item {
	height: 200px;
	padding: 10px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 1fr;
	border: 1px solid var(--light-color);
	box-shadow: 7px 7px 12px 0 rgba(0, 0, 0, 0.25);
	align-items: center;
}

.goods {
	padding: 80px;
	background-color: var(--dark-color);
	@media screen and (max-width: 768px) {
			padding: 40px 0;
		}
}

.goods__title {
	color: var(--light-color);
	font-size: 28px;
	text-align: left;
	padding-left: 20px;
	font-weight: 500;
}

.goods__tabs {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style-type: none;
	margin-top: 46px;
	margin-bottom: 0;
	padding-left: 0;
	margin-bottom: 57px;
	flex-wrap: wrap;
	@media screen and (max-width: 576px) {
		flex-direction: column;
	
	}
}

.goods__tab {
		width: calc((100% - 30px) / 3);
		margin-top: 15px;
		height: 50px;
		border: 2px solid #d0d0d0;
		text-align: center;
		color: #6b6b6b;
		line-height: 48px;
		text-transform: uppercase;
		font-weight: 400;
		font-size: 18px;
		margin: 0 5px;
		cursor: pointer;
		transition: 0.5s;
	
		&:hover {
			box-shadow: 3px 3px 10px var(--light-color);
			border: none;
		}
		@media screen and (max-width: 576px) {
			font-size: 16px;
			width: 80%;
			margin-top: 10px;
			
		}
}

.goods__tab_active {
	background-color: var(--light-color);
	color: var(--dark-color);
}

.goods__grid {
	display: none;
	grid-template-rows: repeat(2, 1fr);
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	column-gap: 30px;
	row-gap: 30px;
	margin-top: 30px;
	@media screen and (max-width: 568px) {
		grid-template-columns: 1fr; 
	}
}

.goods__grid_active {
	display: grid;
}

.goods__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	box-shadow: 7px 7px 12px 0 rgba(209, 209, 209, 0.25);
	border: 1px solid var(--light-color);
	padding: 20px 0;
	
}

.goods__item__text {
	font-weight: 300;
	color: var(--light-color);
	margin-top: 10px;
}

.wrapper__item {
	width: 80%;
	margin: 0 auto;
	img {
		width: 100%;
		height: 335px;
		object-fit: cover;
		@media screen and (max-width: 768px) {
			height: 100%;
		}
	}
}

.goods__wrapper__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
}

.stages {
	padding: 80px;
	background-color: var(--dark-color);
	@media screen and (max-width: 768px) {
		padding: 40px 0;
	}
}

.title {
	color: var(--light-color);
	font-size: 28px;
	text-align: left;
	padding-left: 20px;
	font-weight: 500;
	@media screen and (max-width: 576px) {
		font-size: 26px;
	}
}

.stages__text {
	font-size: 22px;
	color: var(--light-color);
	font-weight: 100;
	margin-top: 40px;
	line-height: normal;
	@media screen and (max-width: 576px) {
		font-size: 18px;
	}
	
}

.stages__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	grid-template-rows: repeat(2, 1fr);
	margin-top: 40px;
	gap: 20px;
	@media screen and (max-width: 568px) {
		grid-template-columns: 1fr;
		margin-top: 20px;
	}
}

.stages__grid__item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 4px 4px 12px 0 rgba(209, 209, 209, 0.25);
	border: 1px solid var(--light-color);
	padding: 10px;
}

.stages__item__img {
	width: 80px;
}

.stages__item__subtitle {
	font-size: 18px;
	color: var(--light-color);
	font-weight: 300;
	margin-top: 10px;
	line-height: normal;
	@media screen and (max-width: 576px) {
		font-size: 16px;
	}
}

.stages__item__text {
	font-size: 16px;
	color: var(--light-color);
	font-weight: 100;
	margin-top: 10px;
	line-height: normal;
}

#clearBtn {
	background: red;
	color: white;
	border: none;
	padding: 10px;
	cursor: pointer;
}

.coments {
	padding: 40px 0;
	background-color: var(--dark-color);
}

.name__client {
	display: block;
	margin-bottom: 10px;
}

/* #posts {
	div {
		margin-top: 20px;
		box-shadow: 4px 4px 12px 0 rgba(209, 209, 209, 0.25);
		border: 1px solid var(--light-color);
		text-align: left;
		padding: 10px 10px 10px 30px;
		color: var(--light-color);
		p {
			margin-bottom: 10px;
		}	
	}
	.comment__client {
		width: 100%;
		text-align: center;
		border: none;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
} */


#posts {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* КАРТКА КОМЕНТАРЯ */
#posts .comment {
	width: 100%;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 24px;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.4s ease,
		transform 0.4s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

/* АНІМАЦІЯ ПОЯВИ */
#posts .comment.show {
	opacity: 1;
	transform: translateY(0);
}

/* HOVER */
#posts .comment:hover {
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

/* ІМ’Я */
#posts .name__client {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 8px;
	word-break: break-word;
}

/* EMAIL */
#posts p {
	font-size: 14px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 18px;
	word-break: break-word;
}

/* ТЕКСТ КОМЕНТАРЯ */
#posts .comment__client {
	font-size: 16px;
	line-height: 1.7;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.92);

	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
}

/* ===== TABLET ===== */
@media screen and (max-width: 768px) {
	#posts {
		margin-top: 30px;
		gap: 16px;
	}

	#posts .comment {
		padding: 20px;
		border-radius: 14px;
	}

	#posts .name__client {
		font-size: 16px;
	}

	#posts .comment__client {
		font-size: 15px;
		line-height: 1.6;
	}
}

/* ===== MOBILE ===== */
@media screen and (max-width: 576px) {
	#posts {
		margin-top: 24px;
		gap: 14px;
	}

	#posts .comment {
		padding: 16px;
		border-radius: 12px;
	}

	#posts .name__client {
		font-size: 15px;
		margin-bottom: 6px;
	}

	#posts p {
		font-size: 12px;
		margin-bottom: 14px;
	}

	#posts .comment__client {
		font-size: 14px;
		line-height: 1.5;
	}
}

/* ===== SMALL MOBILE ===== */
@media screen and (max-width: 380px) {
	#posts .comment {
		padding: 14px;
	}

	#posts .comment__client {
		font-size: 13px;
	}
}

#form {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
	flex-wrap: wrap;
	input {
		height: 45px;
		padding: 0 15px;
		border: 1px solid #333;
		background: #1a1a1a;
		color: #fff;
		border-radius: 6px;
		font-size: 14px;
		outline: none;
		transition: 0.2s;
		@media  screen and (max-width: 1024px) {
			width: 250px;
			margin-bottom: 15px;
		}
	}

	textarea {
		width: 300px;
		text-align: left;
		padding: 10px 15px;
		height: 45px;
		border: 1px solid #333;
		background: #1a1a1a;
		color: #fff;
		border-radius: 6px;
		font-size: 14px;
		outline: none;
		transition: 0.2s;
		@media screen and (max-width: 1024px) {
				width: 250px;
				margin-bottom: 10px;
			}
	}
	@media screen and (max-width: 576px) {
		width: 100%;
		margin-bottom: 10px;
		flex-direction: column;
	}
	

	.btn {
		margin-top: 0;
	}
}
iframe {
	width: 100%;
	height: 600px;
}

.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #000;
	padding: 88px var(--footer-pading-inline);
	color: var(--light-color);
	font-weight: 400;
	font-size: 20px;
	font-style: normal;
	@media screen and (max-width: 1024px) {
		font-size: 18px;
	}
	@media screen and (max-width: 768px) {
		display: flex;
		flex-direction: column;
	}
}

.footer__addr {
	font-style: normal;
	@media screen and (max-width: 768px) {
		margin-bottom: 20px;
	}
}

.social__media {
	padding-left: 0;
	display: flex;
	column-gap: 30px;
	list-style: none;
	@media screen and (max-width: 1024px) {
		column-gap: 15px;
	}
	@media screen and (max-width: 768px) {
		margin-bottom: 20px;
	}
}

.social__media__item {
	border: 1px solid var(--light-color);
	width: 32px;
	height: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(217, 217, 217, 0);

	img {
		width: 22px;
		height: 22px;
	}

	@media screen and (max-width: 1024px) {
		width: 28px;
		height: 28px;
		& img {
			width: 20px;
			height: 20px;
		}
	}
}

.footer__tel {
	color: var(--light-color);
	text-decoration: none;
}

.comment {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s ease;
	background: var(--dark-color);
	padding: 10px;
	margin-top: 10px;
	border-radius: 6px;
}

.comment.show {
	opacity: 1;
	transform: translateY(0);
}


/* 🔥 OVERLAY */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(6px);
	/* display: flex;
	align-items: center; */
	opacity: 0;
	visibility: hidden;
	transition: 0.3s ease;
	z-index: 1000;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}

/* 🔥 MODAL */
.modal {
	position: absolute;
	transform: translate(-50%, -50%);
	background: #111;
	color: #f5f5f7;
	width: 400px;
	max-width: 90%;
	padding: 40px 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	opacity: 0;
	transition: 0.3s ease;
	/* position: relative; */
}

.modal_mini{
	position: absolute;
	transform: translate(-50%, -50%);
	background: #111;
	color: #f5f5f7;
	width: 400px;
	max-width: 90%;
	padding: 40px 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	opacity: 0;
	transition: 0.3s ease;
}

.modal.active {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}
 
.modal_mini.active {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

/* ❌ CLOSE */
.modal__close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 28px;
	color: #aaa;
	cursor: pointer;
	transition: 0.2s;
	@media screen and (max-width: 576px) {
		font-size: 24px;
	
		}
}

.modal__close:hover {
	color: #fff;
}

/* 🧠 TEXT */
.modal__subtitle {
	font-size: 20px;
	text-align: center;
	margin-bottom: 10px;
	font-weight: 500;
	@media screen and (max-width: 576px) {
		font-size: 18px;
	
		}
}

.modal__descr {
	text-align: center;
	font-size: 14px;
	color: #aaa;
	margin-bottom: 20px;
}

/* 📥 FORM */
.feed-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.feed-form input {
	height: 45px;
	padding: 0 15px;
	border: 1px solid #333;
	background: #1a1a1a;
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	transition: 0.2s;
}

.feed-form input:focus {
	border-color: #888;
}

/* 🔘 BUTTON */
.button_submit {
	margin-top: 10px;
	height: 45px;
	background: transparent;
	border: 1px solid #fff;
	color: #fff;
	cursor: pointer;
	transition: 0.3s;
}

.button_submit:hover {
	background: #fff;
	color: #000;
}

/* ✅ THANKS */
#thanks .modal__subtitle {
	font-size: 22px;
}

#thanks .modal__descr {
	font-size: 16px;
	color: #ccc;
}

#thanks .modal {
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	z-index: 1002;
}

#order .modal {
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	z-index: 1001;
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.loader {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid white;
	border-top: 2px solid transparent;
	border-radius: 50%;
	margin-left: 6px;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================
   БАЗОВА АНІМАЦІЯ
========================= */

section {
	opacity: 0;
	transform: translateY(80px);
	transition:
		opacity 0.8s ease,
		transform 0.8s ease;
	will-change: opacity, transform;
}

/* коли секція видима */
section.show {
	opacity: 1;
	transform: translateY(0);
}

/* різні ефекти (необов'язково) */
.about.show {
	transform: translateX(0);
}

.goods.show {
	transform: scale(1);
}

/* стартові стани */
.about {
	transform: translateX(-60px);
}

.goods {
	transform: scale(0.96);
}

/* для мобілок */
@media (max-width: 768px) {
	section {
		transform: translateY(40px);
		transition-duration: 0.6s;
	}
}