/* ---------- HEADER ---------- */

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 22px 0;
	background: rgba(14, 14, 15, 0);
	backdrop-filter: blur(0px);
	transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease;
}

.container {
	max-width: 1450px;
	margin: 0px auto;
	padding: 0px 20px;
}

.header.scrolled {
	background: rgba(14, 14, 15, 0.85);
	backdrop-filter: blur(6px);
	padding: 14px 0;
	/* легкое уменьшение */
}

/* ---------- CONTENT ---------- */

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* LOGO */
.logo {
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.5px;
}

/* NAV */
.nav a {
	color: #fff;
	margin: 0 18px;
	font-size: 16px;
	opacity: 0.8;
	transition: 0.2s ease;
}

.nav a:hover {
	color: var(--accent);
	opacity: 1;
}

/* BUTTON */
.header__btn {
	background: var(--accent);
	padding: 10px 22px;
	border-radius: 8px;
	color: #fff;
	font-weight: 500;
	transition: 0.25s;
}

.header__btn:hover {
	background: var(--accent-light);
}


/* BURGER */
.burger {
	width: 32px;
	height: 22px;
	display: none;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	z-index: 1100;
}

.burger span {
	display: block;
	width: 100%;
	height: 3px;
	background: #fff;
	border-radius: 3px;
	transition: 0.3s;
}

/* Активация бургер → Крестик */
.burger.active span:nth-child(1) {
	transform: rotate(45deg) translateY(13px);
}

.burger.active span:nth-child(2) {
	opacity: 0;
}

.burger.active span:nth-child(3) {
	transform: rotate(-45deg) translateY(-13px);
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;

	width: 100%;
	height: 100vh;

	background: rgba(14, 14, 15, 0.95);
	backdrop-filter: blur(8px);

	display: flex;
	justify-content: center;
	align-items: center;

	transform: translateX(100%);
	/* спрятано за правой границей */
	transition: transform 0.4s ease;

	z-index: 1000;
}

/* Активное — выезжает */
.mobile-menu.active {
	transform: translateX(0);
}

.mobile-menu nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.mobile-menu nav a {
	font-size: 24px;
	color: #fff;
	opacity: 0.9;
	transition: 0.2s;
}

.mobile-menu nav a:hover {
	color: var(--accent);
	opacity: 1;
}


/* ADAPTIVE */
@media (max-width: 768px) {
	.logo {
		margin-right: auto;
	}

	.nav {
		display: none;
	}

	.header__btn {
		padding: 8px 18px;
	}

	.burger {
		display: flex;
		margin-left: 20px;
	}

	.nav {
		display: none;
	}

}


.hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;

	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;

	padding: 0 20px;

	background: url("../img/bg3.jpg") center / cover no-repeat fixed;
}


.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	z-index: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

/* Заголовок */
.hero h1 {
	font-size: clamp(32px, 6vw, 54px);
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 22px;
}

/* Описание */
.hero p {
	font-size: clamp(16px, 3vw, 20px);
	color: #cfcfcf;
	margin-bottom: 32px;
	opacity: 0.9;
}

/* Кнопка */
.hero__btn {
	display: inline-block;
	background: var(--accent);
	padding: 14px 32px;
	border-radius: 10px;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	transition: 0.25s ease;
}

.hero__btn:hover {
	background: var(--accent-light);
}


.services {
	padding: 100px 0;
	background: #111112;
}

.section-title {
	text-align: center;
	font-size: 42px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 60px;
}

/* GRID */
.services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;

	@media (max-width: 900px) {
		grid-template-columns: repeat(2, 1fr);
	}

	@media (max-width: 600px) {
		grid-template-columns: 1fr;
	}
}

.service-card {
	background: #1A1A1C;
	padding: 10px 10px;
	border-radius: 16px;
	text-align: center;

	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	color: #fff;
	transition: 0.35s;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 40px rgba(255, 122, 0, 0.25);
}

/* Icon */

.service-card__icon {

	position: relative;
	width: 100%;
	height: 240px;
}

.service-card__icon img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* Text */
.service-card h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 12px;
}

.service-card p {
	font-size: 16px;
	color: #bfbfbf;
	opacity: 0.9;
}

.why {
	padding: 120px 0;
	background: #0c0c0d;
}

.why__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 60px;

	@media (max-width: 900px) {
		flex-direction: column;
	}
}

/* ---- LEFT SIDE ---- */
.why__title-block h2 {
	font-size: 46px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 18px;
}

.why__title-block h2 span {
	color: var(--accent);
}

.why__title-block p {
	color: #bdbdbd;
	font-size: 18px;
	max-width: 380px;
	line-height: 1.5;
}

/* ---- RIGHT SIDE LIST ---- */
.why__list {
	display: flex;
	flex-direction: column;
	gap: 38px;
	max-width: 620px;
}

.why-item {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.why-num {
	font-size: 54px;
	font-weight: 700;
	color: #1f1f1f;
	-webkit-text-stroke: 1px #555;
	min-width: 70px;
}

.why-text h3 {
	color: #fff;
	font-size: 22px;
	margin-bottom: 4px;
	font-weight: 600;
}

.why-text p {
	color: #bdbdbd;
	font-size: 15px;
	line-height: 1.6;
	max-width: 440px;
}

.works {
	background-color: #0c0c0d;
}

.works__title {
	text-align: center;
	font-size: 42px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 60px;
}

.before-after {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	border-radius: 16px;
	margin-bottom: 40px;
}

.before-after img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.after-img {
	clip-path: inset(0 0 0 50%);
	transition: clip-path 0.1s linear;
}

.slider-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	background: #ff6b00;
	transform: translateX(-50%);
	pointer-events: none;
}

.slider {
	position: absolute;
	bottom: 15px;
	left: 50%;
	width: 80%;
	transform: translateX(-50%);
}

.works-thumbs {
	display: flex;
	gap: 20px;
	justify-content: center;
}

.thumb {
	width: 140px;
	height: 90px;
	overflow: hidden;
	border-radius: 10px;
	cursor: pointer;
	transition: 0.3s;
}

.thumb:hover {
	transform: scale(1.1);
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contacts {
	padding: 120px 0;
	background: #0E0E0F;
	color: #fff;
}

.contacts-title {
	text-align: left;
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 40px;
	color: #fff;
}

/* CARD */
.contacts-card {
	background: #151517;
	border-radius: 26px;
	padding: 10px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
	.contacts-card {
		grid-template-columns: 1fr;
	}
}

/* MAP */
.contacts-map {
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.contacts-map iframe {
	width: 100%;
	height: 360px;
	border: 0;
	filter: grayscale(30%) brightness(0.8);
}

/* RIGHT SIDE INFO */
.contacts-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
}

.info-block {
	display: flex;
	flex-direction: column;
}

.info-label {
	font-size: 15px;
	color: #9a9a9a;
	margin-bottom: 4px;
}

.info-value {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}

.info-value a {
	color: #fff;
	text-decoration: none;
	transition: 0.2s;
}

.info-value a:hover {
	color: var(--accent);
}

/* BUTTONS */
.contacts-buttons {
	margin-top: 10px;
	display: flex;
	gap: 14px;
}

.cbtn {
	padding: 10px 22px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: 0.2s ease;
}

.cbtn:hover {
	border-color: var(--accent);
	color: var(--accent);
}


.footer {

	background: #0D0D0E;
	padding: 80px 0 40px;
	color: #fff;
	font-family: "Poppins", sans-serif;
}

.footer-top {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 50px;
	border-top: 1px solid var(--accent);
	padding-top: 40px;
}

@media (max-width: 850px) {
	.footer-top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.footer-top {
		grid-template-columns: 1fr;
	}
}

/* LOGO */
.footer-logo {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

/* About */
.footer-about {
	color: #aaa;
	max-width: 300px;
	line-height: 1.6;
}

/* Titles */
.footer-col h4 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 18px;
	color: #fff;
}

/* Navigation list */
.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col a {
	color: #bbb;
	text-decoration: none;
	transition: 0.2s;
}

.footer-col a:hover {
	color: var(--accent);
}

/* Contacts */
.footer-info {
	margin-bottom: 8px;
	color: #bbb;
}

.footer-info a {
	color: #fff;
	text-decoration: none;
	transition: 0.2s;
}

.footer-info a:hover {
	color: var(--accent);
}

/* Socials */
.footer-socials {
	margin-top: 12px;
	display: flex;
	gap: 14px;
}

.footer-socials a {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #181818;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: 0.25s ease;
}

.footer-socials a:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Line */
.footer-line {
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	margin: 20px 0 30px;
}

/* Bottom */
.footer-bottom {
	display: flex;
	justify-content: space-between;
	color: #777;
	font-size: 14px;
}

.footer-bottom span {
	color: var(--accent);
	font-weight: 600;
}

@media (max-width: 600px) {
	.footer-bottom {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}

/* Бэкграунд */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(10px);
	display: flex;
	justify-content: center;
	align-items: center;

	opacity: 0;
	pointer-events: none;
	transition: 0.3s ease;
	z-index: 9999;
}

/* Активное состояние */
.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

/* Окно */
.modal-window {
	background: #111;
	border-radius: 20px;
	padding: 40px 44px;
	width: 100%;
	max-width: 420px;
	color: #fff;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: translateY(20px);
	opacity: 0;

	transition: 0.4s ease;
}

/* Анимация появления */
.modal-overlay.active .modal-window {
	opacity: 1;
	transform: translateY(0);
}

/* Заголовок */
.modal-title {
	text-align: center;
	font-size: 26px;
	margin-bottom: 10px;
	font-weight: 700;
}

/* Подзаголовок */
.modal-subtitle {
	text-align: center;
	font-size: 15px;
	color: #dddddd;
	margin-bottom: 25px;
	line-height: 1.5;
}

/* Форма */
.modal-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.modal-form input {
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 15px;
	outline: none;
	transition: 0.2s;
}

.modal-form input:focus {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.08);
}

/* Кнопка */
.modal-btn {
	padding: 14px;
	border-radius: 12px;
	border: none;
	background: var(--accent);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
}

.modal-btn:hover {
	background: var(--accent-light);
}

/* Информация снизу */
.modal-info {
	text-align: center;
	font-size: 12px;
	opacity: 0.7;
	margin-top: 18px;
}

/* Крестик */
.modal-close {
	position: absolute;
	top: 16px;
	right: 18px;
	font-size: 26px;
	cursor: pointer;
	color: #aaa;
	transition: 0.2s;
}

.modal-close:hover {
	color: #fff;
}