@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Tomorrow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
	--black: #000000;
	--white: #ffffff;
	--white95: rgba(255, 255, 255, 0.95);
	--green: #1b5351;
	--back: #181818;
	--backAlternate: #131313;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Montserrat", sans-serif;
}

body.active-modal {
	overflow: hidden;
	padding-right: 8px;
}

body::-webkit-scrollbar {
	background: #ffffff;
	width: 8px;
}

body::-webkit-scrollbar-thumb {
	background: black;
}

.logo {
	position: relative;
	z-index: 100;
}

.logo img {
	width: 168px;
	height: 36px;
}

html {
	scroll-behavior: smooth;
}

.container {
	max-width: 1320px;
	padding: 0 15px;
	margin: 0 auto;
}

a {
	text-decoration: none;
	cursor: pointer !important;
}

.btn {
	height: 46px;
	background: var(--green);
	color: var(--white);
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	padding: 0 25px;
	line-height: 46px;
	border: none;
	display: flex;
	align-items: center;
	min-width: 260px;
	gap: 10px;
	text-align: center;
	position: relative;
	justify-content: center;
	border-radius: 50px;
	transition: all 0.3s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn img {
	width: 20px;
	height: 20px;
}

h2 {
	font-weight: 700;
	font-size: 40px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

section {
	padding: 110px 0;
}

#phone {
	display: flex;
	align-items: center;
	gap: 10px;
}

#phone span {
	padding-top: 1px;
}

/* Header */

header {
	background: var(--black);
}

.header__wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	height: 80px;
}

.header__menu-list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
}

header li img {
	height: 18px;
	width: 18px;
	align-items: center;
}

.header__menu-list {
	list-style: none;
}

.header__menu-list a {
	font-weight: 400;
	font-size: 16px;
	color: var(--white);
	position: relative;
}

.header__menu-list a::after {
	content: "";
	display: block;
	width: 0%;
	height: 1.5px;
	background: black;
	position: absolute;
	transition: all 0.3s;
	bottom: -2px;
}

.header__menu-list a:hover::after {
	width: 100%;
}

.header__menu-list a.btn {
	color: black;
}

.header__mobile-nav {
	display: none;
	align-items: center;
}

.burger {
	width: 30px;
	height: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	cursor: pointer;
}

.burger figure {
	width: 100%;
	height: 4px;
	background: var(--white);
	transition: all 0.3s;
}

.burger figure:nth-child(2) {
	width: 70%;
}

.burger.active figure:nth-child(1) {
	transform: rotate(45deg) translate(5px, 7px);
}

.burger.active figure:nth-child(2) {
	transform: translate(-15px);
	width: 0;
}

.burger.active figure:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -7px);
}

@media all and (max-width: 1240px) {
	body.active-modal {
		padding: 0;
	}
	section {
		padding: 80px 0;
	}
	.header__mobile-nav {
		display: flex;
	}
	.header__menu {
		position: absolute;
		left: -120%;
		top: 0;
		height: 100vh;
		width: 40vw;
		display: flex;
		justify-content: center;
		align-items: center;
		transition: all 0.3s;
		z-index: 10;
		background: var(--backAlternate);
		border-right: 1px solid black;
	}

	.header__menu li:last-child {
		display: none;
	}

	.header__menu.active {
		left: 0;
		width: 80vw;
	}

	.header__menu-list {
		gap: 45px;
		flex-direction: column;
	}
}

@media all and (max-width: 768px) {
	h2 {
		font-size: 28px;
	}
	header .btn {
		font-size: 14px;
	}
}

@media all and (max-width: 768px) {
	.header__wrapper {
		height: 60px;
	}
}

/* Hero */

.hero {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: calc(100vh - 80px);
	overflow: hidden;
	padding: 0;
}

.hero__media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero__image,
.hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
}

.hero__video {
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.hero__video.loaded {
	opacity: 1;
}

.hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
	z-index: 1;
}

/* Desktop: показувати тільки desktop версії */
.hero__image--mobile,
.hero__video--mobile {
	display: none;
}

.hero__image--desktop,
.hero__video--desktop {
	display: block;
}

.hero__content {
	position: relative;
	z-index: 2;
}

.hero__content-wrapper {
	padding: 100px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: calc(100vh - 80px);
}

.hero__content-wrapper h1 {
	font-size: 64px;
	font-weight: 900;
	color: var(--white);
	margin-bottom: 12px;
	text-transform: uppercase;
}

.hero__content-wrapper p {
	font-size: 28px;
	font-weight: 500;
	color: var(--white);
	margin-bottom: 60px;
}

.hero__content-wrapper .btn {
	width: fit-content;
	height: 56px;
	font-size: 18px;
	min-width: 320px;
	line-height: 56px;
}

@media all and (max-width: 768px) {
	.hero__image--desktop,
	.hero__video--desktop {
		display: none;
	}

	.hero__image--mobile,
	.hero__video--mobile {
		display: block;
	}

	.hero {
		min-height: calc(100vh - 60px);
	}

	.hero__content-wrapper {
		padding: 50px 0 80px 0;
		min-height: calc(100vh - 60px);
	}

	.hero__content-wrapper h1 {
		font-size: 32px;
		text-align: center;
	}

	.hero__content-wrapper p {
		font-size: 18px;
		text-align: center;
	}

	.hero__content-wrapper .btn {
		height: 46px;
		min-width: 240px;
		line-height: 46px;
		margin: 0 auto;
	}
}

/* about */

.about {
	background: var(--back);
}

.about__wrapper {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 40px;
}

.about__image {
	width: calc(50% - 20px);
}

.about__image img {
	width: 100%;
	height: auto;
	border-radius: 0 30px 0 30px;
}

.about__content {
	width: calc(50% - 20px);
}
.about__content h2 {
	color: var(--white);
}

.about__content p {
	font-size: 18px;
	color: var(--white);
	margin-bottom: 20px;
	line-height: 24px;
}

@media all and (max-width: 1024px) {
	.about__wrapper {
		flex-direction: column;
	}
	.about__image,
	.about__content {
		width: 100%;
		max-width: 600px;
	}
}

@media all and (max-width: 768px) {
	.about__content p {
		font-size: 16px;
	}
}

/* Services */

.services {
	background: var(--backAlternate);
}

.services h2 {
	text-align: center;
	color: var(--white);
	margin-bottom: 12px;
}

.services p {
	text-align: center;
	color: var(--white95);
	margin-bottom: 30px;
	font-size: 24px;
}

.services__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.services__card {
	background: url("/assets/textures/noise.svg") center center / cover no-repeat;
	max-width: 380px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border-radius: 0 25px 0 25px;
}

.services__card:nth-child(1),
.services__card:nth-child(2),
.services__card:nth-child(3) {
	box-shadow: 0 0 2px 1px var(--white);
}

.services__card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.services__card h3 {
	font-size: 22px;
	font-weight: 500;
	color: var(--white);
	margin: 20px 15px 10px;
}

.services__card p {
	font-size: 16px;
	font-weight: 500;
	color: var(--white);
	text-align: left;
	margin: 10px 15px 30px;
}

.services__card .btn {
	margin: auto 15px 25px;
}

@media all and (max-width: 768px) {
	.services p {
		font-size: 16px;
	}
}

/* Portfolio */

.portfolio {
	background: var(--back);
}

.portfolio h2 {
	text-align: center;
	color: var(--white);
	margin-bottom: 12px;
}

.portfolio p {
	text-align: center;
	color: var(--white95);
	margin-bottom: 30px;
	font-size: 24px;
}

.portfolio__content {
	position: relative;
}

/* Swiper стилі */
.portfolio-swiper {
	width: 100%;
	padding: 20px 0 60px;
}

.swiper-slide {
	text-align: center;
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: center;
}

.portfolio__item {
	width: 100%;
	max-width: 400px;
	height: 540px;
	overflow: hidden;
	border-radius: 12px;
	transition: transform 0.3s ease;
}

.portfolio__item img {
	cursor: grab;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.portfolio__item:hover img {
	transform: scale(1.04);
}

/* Desktop Navigation (стрілки) */
.swiper-button-next,
.swiper-button-prev {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
	font-size: 20px;
	font-weight: 600;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

/* Mobile Pagination (крапки) */
.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.3);
	opacity: 1;
	margin: 0 6px;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	background: #fff;
	transform: scale(1.2);
}

/* Desktop: показувати стрілки, ховати пагінацію */
@media (min-width: 769px) {
	.swiper-pagination {
		display: none;
	}

	.swiper-button-next,
	.swiper-button-prev {
		display: flex;
	}
}

/* Mobile: ховати стрілки, показувати пагінацію */
@media (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none;
	}

	.swiper-wrapper {
		padding-bottom: 40px;
	}

	.swiper-pagination {
		display: block;
	}

	.portfolio__item {
		max-width: 480px;
		height: 500px;
	}

	.portfolio p {
		font-size: 16px;
	}
	.portfolio-swiper {
		padding: 0;
	}
}

/* Responsive slides */
@media (min-width: 1200px) {
	.portfolio-swiper {
		--slides-per-view: 3;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.portfolio-swiper {
		--slides-per-view: 2;
	}
}

@media (max-width: 767px) {
	.portfolio-swiper {
		--slides-per-view: 1;
	}
}

/* work */

.work {
	background: url("/assets/images/how-back.png") center center/cover no-repeat;
}

.work h2 {
	text-align: center;
	color: var(--white);
	margin-bottom: 40px;
}

.work__list {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 30px;
}

.work__card {
	width: 230px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	align-items: center;
}

.work__card::after {
	content: "";
	height: 30px;
	width: 95px;
	display: block;
	background: url("/assets/icons/arrow.svg") center center/contain no-repeat;
	position: absolute;
	right: -115px;
	top: 28px;
	transform: translateX(-50%);
}

.work__card:last-child::after {
	display: none;
}

.work__card figure {
	width: 78px;
	height: 78px;
	display: block;
	background: var(--green);
	font-weight: 700;
	color: var(--white);
	line-height: 78px;
	text-align: center;
	font-size: 40px;
	border-radius: 100%;
}

.work__card span {
	font-size: 20px;
	text-align: center;
	color: var(--white);
}

.work .btn {
	margin: 0 auto;
	margin-top: 60px;
}

@media all and (max-width: 960px) {
	.work__list {
		flex-wrap: wrap;
	}

	.work__card::after {
		display: none;
	}
}

@media all and (max-width: 640px) {
	.work__card {
		width: calc(50% - 15px);
	}
	.work__card:nth-child(2),
	.work__card:nth-child(4) {
		transform: translateY(50%);
	}
	.work__card::after {
		content: "";
		height: 20px;
		width: 60px;
		display: block;
		background: url("/assets/icons/arrow.svg") center center/contain no-repeat;
		position: absolute;
		right: -50%;
		top: 60%;
		transform: translateX(-50%);
	}
	.work__card:nth-child(1)::after,
	.work__card:nth-child(3)::after {
		transform: rotate(45deg) translateX(-50%);
	}
	.work__card:nth-child(2)::after,
	.work__card:nth-child(4)::after {
		transform: translateX(50%) rotate(-200deg);
		left: -50%;
		top: 60%;
	}
	.work__list {
		justify-content: space-between;
	}

	.work__card::after {
		display: block;
	}

	.work__card figure {
		width: 64px;
		height: 64px;
		line-height: 64px;
		font-size: 32px;
	}

	.work__card span {
		font-size: 16px;
		display: block;
		height: 42px;
	}

	.work .btn {
		margin-top: 40px;
	}
}

/* advantages */

.advantages {
	background: var(--back);
}

.advantages h2 {
	text-align: center;
	color: var(--white);
	margin-bottom: 12px;
}

.advantages p {
	text-align: center;
	color: var(--white95);
	font-size: 18px;
	max-width: 900px;
	margin: 0 auto;
	margin-bottom: 30px;
}

.advantages__list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
}

.advantages__card {
	border-radius: 25px;
	width: 100%;
	max-width: 400px;
	background: var(--white);
	padding: 30px;
}

.advantages__card img {
	display: block;
	height: 48px;
	margin: 0 auto;
}

.advantages__card h3 {
	font-size: 20px;
	text-align: center;
	margin: 25px 0 15px 0;
}

.advantages__card p {
	color: var(--black);
}

@media all and (max-width: 768px) {
	.advantages p {
		font-size: 16px;
	}
}

/* clients */

.clients {
	background: var(--backAlternate);
}

.clients h2 {
	text-align: center;
	color: var(--white);
	margin-bottom: 12px;
}

.clients p {
	text-align: center;
	color: var(--white95);
	font-size: 20px;
	max-width: 900px;
	margin: 0 auto;
	margin-bottom: 30px;
}

.clients__list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
}

@media all and (max-width: 768px) {
	.clients p {
		font-size: 16px;
	}

	.clients__list {
		gap: 12px;
	}

	.clients__card {
		width: 30%;
	}

	.clients img {
		width: 100%;
	}
}

/* application */

.application {
	background: var(--back);
}

.application h2 {
	text-align: center;
	color: var(--white);
	margin-bottom: 12px;
}

.application__subtitle {
	text-align: center;
	color: var(--white95);
	font-size: 20px;
	max-width: 700px;
	margin: 0 auto;
	margin-bottom: 30px;
}

@media all and (max-width: 768px) {
	.application h2 {
		font-size: 22px;
	}
	.application p {
		font-size: 16px;
	}
}

/* request__wrapper */

.request__wrapper {
	max-width: 640px;
	margin: 0 auto;
}

.request__form {
	display: flex;
	flex-direction: column;
}

.request__form form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.request__form input {
	height: 48px;
	border: 2px solid black;
	padding: 0 10px;
	font-size: 18px;
	border-radius: 10px;
}

.request__form .logo {
	margin: 0 auto;
}

.request__form-subtitle {
	margin: 20px 0;
	text-align: center;
}

.request__image {
	margin: 0 !important;
}

.request__image img {
	width: 200px;
}

.form-message {
	display: none;
	text-align: center;
}
.request__form textarea {
	min-height: 80px;
	resize: vertical;
	font-family: inherit;
	border: 2px solid black;
	padding: 10px;
	font-size: 16px;
	border-radius: 10px;
}

/* File upload стилі */
.file-upload-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.file-upload-btn {
	height: 48px;
	background: var(--white);
	border: 2px dashed var(--green);
	color: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 10px;
	transition: all 0.3s;
}

.file-upload-btn:hover {
	background: var(--white95);
}

.file-upload-btn.hidden {
	display: none;
}

.file-preview {
	display: none;
	background: var(--white);
	border: 2px solid var(--green);
	border-radius: 10px;
	padding: 12px;
	gap: 10px;
	align-items: center;
}

.file-preview.show {
	display: flex;
}

.file-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.file-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--green);
}

.file-size {
	font-size: 12px;
	color: #666;
}

.file-remove {
	background: #ff4444;
	color: white;
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: all 0.3s;
}

.file-remove:hover {
	background: #cc0000;
	transform: scale(1.1);
}

/* Повідомлення */
.form-messages {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.form-message {
	display: none;
	text-align: center;
	padding: 8px;
	border-radius: 5px;
	font-size: 14px;
}

.form-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.form-validation {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

@media all and (max-width: 768px) {
	.file-upload-btn {
		font-size: 13px;
	}
	.request__wrapper {
		display: flex;
		gap: 40px;
		justify-content: center;
		flex-wrap: wrap;
	}
}

/* Fixed phone call */

.phone-call-wrapper {
	display: none;
	position: fixed;
	bottom: 12px;
	z-index: 999;
	right: 12px;
}

.phone-call {
	height: 46px;
	width: 46px;
	background: var(--backAlternate);
	display: flex;
	border-radius: 15px;
	align-items: center;
	justify-content: center;
	border: 2px solid black;
}

.phone-call img {
	width: 24px;
	height: 24px;
}

@media all and (max-width: 768px) {
	.phone-call-wrapper {
		display: flex;
	}
}

/* footer */

footer {
	background: var(--black);
	color: var(--white);
}

footer a {
	color: var(--white);
	text-decoration: none;
	font-size: 16px;
}

.footer__wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 45px 0;
}

.footer__title {
	font-weight: 700;
	margin-bottom: 10px;
}

.footer__contacts {
	display: flex;
	gap: 8px;
	flex-direction: column;
}

.footer__menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer__bottom {
	padding-bottom: 45px;
	display: flex;
	gap: 30px;
}

.footer__bottom a {
	text-decoration: underline;
}

@media all and (max-width: 1180px) {
	.footer__wrapper {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 30px;
	}
	.footer__menu {
		gap: 12px;
	}
	.footer__btn {
		margin: 0 auto;
	}
	.footer__bottom {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}
}

/* Modal */

.modal {
	top: 0;
	left: 0;
	padding: 10px;
	height: 100vh;
	width: 100%;
	position: fixed;
	background: rgba(0, 0, 0, 0.5);
	z-index: -1;
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.modal__window {
	background: var(--black);
	padding: 30px;
	position: relative;
	transition: all 0.3s;
	transform: scale(0.1);
}

#close-modal {
	color: var(--white);
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	font-size: 20px;
	line-height: 20px;
	border: none;
	background: none;
	height: 28px;
	cursor: pointer;
}

.modal.active {
	z-index: 9999;
	opacity: 1;
}

.modal.active .modal__window {
	transform: scale(1);
}

.modal h2 {
	color: var(--white);
	margin-bottom: 12px;
}

.modal__subtitle {
	color: var(--white95);
	font-size: 20px;
	max-width: 700px;
	margin: 0 auto;
	margin-bottom: 30px;
}

@media all and (max-width: 768px) {
	.modal h2 {
		font-size: 22px;
	}
	.modal p {
		font-size: 16px;
	}
}
