body{
	/* font-family: impact; */
	font-family: Arial, Helvetica, sans-serif;
	/* font-weight: 400; */
	margin: 0px;

  /* Плавный переход от нежно-голубого к розовому */
  background: linear-gradient(135deg, #e0f7fa 0%, #fce4ec 100%);
  background-attachment: fixed; /* Чтобы фон не прокручивался вместе с контентом *
	/*
	overflow: hidden;
	background-image: url("imgs/bg.png");
	background-position: 0px 600px;
	background-repeat: repeat-x;
	*/
}

@font-face {
	font-family: 'BebasNeue';
	src: url('fonts/BebasNeue Bold.ttf');
	font-weight: 600;
	font-style: normal;
}

#main{
	background: #fff;
	border-bottom: 5px solid #000;
}
  
html {
	scroll-behavior: smooth;
	scroll-snap-type: y mandatory; 
}

section {
	height: 100vh;           /* Высота ровно в один экран */
	scroll-snap-align: start; /* Секция будет "прилипать" своим началом к верху экрана */
	/* Для центровки контента внутри (как мы делали раньше) */
	display: flex;
	align-items: center;
	flex-direction: column; /* Выстраивает детей вертикально */
}

.icon{
	width: 30px;
}

#top {
    width: 100%;
    height: 55vh;
    position: relative; /* Обязательно для позиционирования слоев внутри */
    overflow: hidden;   /* Чтобы слои не вылезали за края при движении */
    background: #000;   /* Базовый цвет фона, если картинки не прогрузятся */
}

.layers-container {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Чтобы картинки были под текстом */
}

/* Общие правила для слоев */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 50px;
    background-repeat: no-repeat;
    transform: translateX(-100%);
    background-position: center -100px;
}

.animate-section.visible .layer, .animate-section.visible .center {
    animation: slideIn 0.6s ease-out forwards !important;
}

/* Описание самой анимации появления */
@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* 3. Сама анимация (только прозрачность) */
@keyframes fadeInOnly {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes glow {
    0% { opacity: 1; }
    100% { opacity: 0.4; }
}

.animate-section.visible .layer-6 { opacity: 0; transform: translateX(0%); background-image: url(imgs/pr-screen.png); z-index: 4; animation: fadeInOnly 0.5s 1s ease-out forwards, glow 1s 0.75s ease-in-out infinite alternate !important; animation-delay: 1.4s !important; }
.animate-section.visible .layer-mask { opacity: 0; transform: translateX(0%); background-image: url(imgs/mask.png),  url(imgs/mask.png); z-index: 5; animation: fadeInOnly 0.5s ease-out forwards !important; animation-delay: 0.8s !important; }
/*.animate-section.visible .layer-6 {    transition-delay: 0.8s !important; opacity: 1 !important; } */
.animate-section.visible .layer-1 { background-image: url(imgs/pr-table.png); z-index: 1; transform: translateY(200%); animation-delay: 0.5s; }
.animate-section.visible .layer-2 { background-image: url(imgs/pr-desk.png); z-index: 2; animation-delay: 0.3s; }
.animate-section.visible .layer-3 { background-image: url(imgs/pr-polka.png); z-index: 3; transform: translateY(-100%); animation-delay: 0.4s; }
.animate-section.visible .layer-4 { background-image: url(imgs/pr-guy.png); z-index: 6; transform: translateX(200%); animation-delay: 0.9s; }
.animate-section.visible .layer-5 { background-image: url(imgs/pr-room.png); z-index: -5; animation-delay: 0.5s; }



.slider span {
	position: absolute;
	opacity: 0;
	animation: slideAnimation 14s infinite;
	z-index: 999;
	color: #fff;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
	left: 0;
	right: 0;
	text-align: center;
	top: 75%;
	transform: translateY(-50%);
	font-size: 35px;
}

/* Задержка для каждой фразы, чтобы они шли друг за другом */
.slider span:nth-child(1) { animation-delay: 0s; }
.slider span:nth-child(2) { animation-delay: 7s; }

@keyframes slideAnimation {
  0% { opacity: 0; }
  10% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}




/* Поднимаем контент выше слоев */
#top #caption{
	color: #fff;
	width: 100%;
	font-size: 35px;
	height: 100px;
	text-align: center;
    position: absolute;
    z-index: 999;
}

#top .center{
	width: 1200px;
	margin: 0px auto 0px auto;
    position: relative;
}

/* МЕНЮ */
#middle{
	width: 100%;	
	min-height: 350px;
	border-left: none;
	border-right: none;
	background: #fff;
	border-top: 4px solid #000;
	overflow: hidden;
}
#middle .center{
	width: 1300px;
	height: 300px;
	margin: 30px auto 0px auto;
	/* transform: translateX(250%); */
}
.animate-section.visible .center{transform: translateX(250%) translateY(-250%);  animation-delay: 0.2s;}

/* LOGO*/
#logo{
	width: 400px;
	height: 400px;
	float: left;
}
#logo img{
	width: 100%;
	float: left;
}
h1{
	font-size: 58px;
}

#menu{
	width: 450px;
	height: 400px;
	font-weight: 600;
	float: left;
	margin-left: 0px;
	text-align: right;
	color: #81C2E8;
	cursor: pointer;
	font-size: 50px;
	line-height: 50px;
	margin-top: 0px;
	padding-right: 20px;
	box-sizing: border-box;
}
#menu li{
	transition: all .5s;
	color: #000;
}
#menu li a{
	transition: all .5s;
	color: #000;
	text-decoration: none;
}
#menu li span{
	color: #f00;
}
#menu li .blue{
	color: #0092D5;
}
#menu li a:hover{
	color: #0092D5;
	/* color: #000; */
}
/*  */
#contacts{
	width: 400px;
	height: 400px;
	float: left;
	padding-left: 20px;
	text-align: left;
	color: #81C2E8;
	font-size: 50px;
	line-height: 50px;
	margin-top: 0px;
	padding-right: 0px;
	box-sizing: border-box;
	font-weight: 600;
}
#contacts li.dark{
	color: #0092D5;
	font-size: 35px;
	line-height: 38px;
	margin-bottom: 15px;
}
#contacts li.space{
	height: 98px;
}
#contacts a{
	text-decoration: none;
	color: #000;
}
#contacts a:hover{
	text-decoration: underline;
}
li {
	list-style-type: none;
}
ul {
	margin-left: 0; 
	padding-left: 0; 
}

/* ЧТО МЫ ДЕЛАЕМ */

#wedo .wrapper{
	width: 100%;            /* Занимает всю ширину на маленьких экранах */
	max-width: 1600px;      /* Ограничиваем максимальную ширину */
	margin: 0px auto 0;  /* -150px вверх, auto центрирует по горизонтали */
	position: relative;     /* Чтобы работал z-index */
	z-index: -5;
	pointer-events: none;   /* Чтобы не мешала кликать по слайдеру */
}
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
  }

  .services-list li {
    flex: 1 1 calc(33.333% - 20px); /* 3 колонки */
    min-width: 280px;
    padding: 30px;
    background: #ffffff; /* Цвет фона карточки */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Мягкая тень вместо границ */
    border-radius: 12px; /* Скругление углов */
    transition: transform 0.3s ease;
  }

  .services-list li:hover {
    transform: translateY(-5px); /* Эффект при наведении */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }

  .services-list h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
  }

  .services-list p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
  }




/* ПОРТФОЛИО */
#portfolio .container_row {
	display: flex;
	flex-direction: row;
}
  
#portfolio .slider-wrapper img{
	/* width: 400px; */
	border: 10px solid #000;
	border-top: 1px solid #000;
	border-left: 5px solid #000;	
	border-right: 5px solid #000;	
	border-radius: 20px 20px 0px 0px;
	box-sizing: border-box;
	flex-shrink: 0;
	width: calc((100% - (20px * 2)) / 3);
	height: 35vh;
	object-fit: cover; 	
	mask-size: 200%;
	mask-position: 100%;
	transition: mask-position 0.5s, border-radius 0.5s, border 0.5s, filter 0.5s ease-in-out; ;
	filter: brightness(0.6) grayscale(0.3); 
}

#portfolio .slider-wrapper img:hover {
	/* mask-position: 50%; */
	border: 3px solid #000;
	filter: brightness(1) grayscale(0);
	/* border-radius: 0px 0px 30px 0px; */
}

.portfolio-banner {
	width: 100%;            /* Занимает всю ширину на маленьких экранах */
	max-width: 1600px;      /* Ограничиваем максимальную ширину */
	margin: 0px auto 0;  /* -150px вверх, auto центрирует по горизонтали */
	position: relative;     /* Чтобы работал z-index */
	z-index: -5;
	pointer-events: none;   /* Чтобы не мешала кликать по слайдеру */
}
.portfolio-banner {
    position: relative; /* Родоначальник координат для экрана */
    display: inline-block; /* Чтобы контейнер не растягивался на всю ширину */
    line-height: 0; /* Убирает лишние отступы снизу у картинок */
}

.base-img {
    width: 100%;
    display: block;
}
.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Делаем его полупрозрачным или «сероватым» изначально */
    opacity: 0.5; 
    /* Плавность перехода */
    transition: opacity 0.5s ease-in-out;
	animation: fadeInOnly 0.5s 1s ease-out forwards, glow 1s 0.75s ease-in-out infinite alternate !important;;
}

/* При наведении на весь блок — экран становится полностью видимым */
.portfolio-banner:hover .overlay-screen {
    opacity: 1;
}

  
.portfolio-banner img {
	width: 100%;            /* Растягивается под размер контейнера */
	height: auto;
	display: block;
}

/* На случай, если родительский #portfolio имеет padding, который мешает */
#portfolio {
	display: flex;
	flex-direction: column;
	align-items: center;    /* Центрирует всё содержимое секции */
	border-bottom: 3px solid #000;
}



/* СЛАЙДЕР ПОРТФОЛИО */
#slider {
	display: flex;
	overflow-x: hidden; /* Прячем лишнее */
	scroll-behavior: smooth;
	gap: 20px; /* Расстояние между картинками */
	width: 100%; 
}

.slider-wrapper {
	position: relative;
	max-width: 1600px; /* Ограничьте общую ширину, если нужно */
	margin: 0 auto;
}

.arrow {
	position: absolute; /* Прижимаем к краям экрана */
	top: calc(100% + 50px );
	transform: translateY(-50%);
	z-index: 100;
	width: 60px;
	height: 80px;
	background: #000;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
}

/* Позиции по краям экрана */
.prev {
	left: 0px;
	border-radius: 0px 0px 50% 0px; 
}
.next {
	right: 0px;
	border-radius: 0px 0px 0px 50%; 
}

.arrow:hover {
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	transform: translateY(-50%) scale(1.1);
}

.arrow:active { 
	transform: translateY(-50%) scale(0.9); 
}
  
  
  
  
  
/* ЗАКАЗАТЬ САЙТ */
#order{
	background: #fff;
	border-bottom: 3px solid #000;
}
.form-wrapper {
	display: flex;
	max-width: 1200px;
	width: 95%; /* Позволяет форме сужаться на средних экранах */
	margin: 40px auto;
	overflow: hidden;
	border-radius: 10px 10px 100px 100px;
	border-bottom: 15px solid #000;
	box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.form-image {
	flex: 0 0 55%; /* Картинка всегда занимает 55% ширины */
	text-align: center;
}

.form-image img {
	height: 700px;

}

.order-form {
	flex: 0 0 45%; /* Форма занимает оставшиеся 45% */
	padding: 50px;
	box-sizing: border-box; /* Чтобы padding не раздувал ширину */
	position: relative; 
}

/*
.order-form::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 150%;
height: 150%;
z-index: -1;   

background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23FA4D56" d="M65.4,-37.9C79.2,-13.9,81,17,68.1,38C55.2,59.1,27.6,70.5,1.5,69.6C-24.6,68.8,-49.3,55.7,-56,38.2C-62.6,20.7,-51.3,-1.2,-39,-24.4C-26.7,-47.6,-13.3,-72,6.2,-75.6C25.8,-79.2,51.6,-62,65.4,-37.9Z" transform="translate(100 100)"/></svg>');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
*/
  
/* Адаптив: когда экран меньше 1000px, ставим блоки друг под друга */
@media (max-width: 1000px) {
	.form-wrapper {
		flex-direction: column;
	}
	.form-image, .order-form {
		flex: 0 0 100%; /* Занимают всю ширину */
	}
	.form-image {
		height: 300px; /* Фиксируем высоту картинки сверху */
	}
}


.order-form h3{
	font-size: 32px;
}

.service-selection {
	display: grid;
	gap: 10px;
	margin-bottom: 25px;
}

.service-card {
	cursor: pointer;
	font-size: 32px;
}

.service-card input {
	display: none; /* Скрываем стандартный кружок */
}

.card-content {
	display: block;
	padding: 15px;
	background: rgba(100, 100, 100, 0.05);
	border-radius: 8px;
	transition: all 0.3s;
	text-align: center;
	font-family: Arial;
}

/* Эффект при выборе */
.service-card input:checked + .card-content {
	background: rgba(0, 146, 213, 0.05);
	color: #f00;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 20px;
}

.input-group input {
	padding: 12px;
	border: 3px solid #000;
	border-radius: 6px;
	font-size: 32px;
}

.input-group input:focus {
	border-color: #f00;
	outline: none;
}




  
  

/* КРАСИВАЯ КНОПКА */
.btn-primary {
	display: inline-block;
	width: 100%; /* Растягивается на всю ширину формы */
	max-width: 300px; /* Но не шире этого значения для красоты */
	padding: 16px 32px;
	background: #000;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
	border-radius: 50px; /* Закругленная форма "pill" */
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 146, 213, 0.3);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
}

.btn-primary:hover {
	transform: translateY(-3px); /* Эффект прыжка */
	box-shadow: 0 8px 25px rgba(0, 146, 213, 0.5);
	filter: brightness(1.1);
}

.btn-primary:active {
	transform: translateY(-1px); /* Эффект нажатия */
}

/* Эффект глянцевого блика при наведении */
.btn-primary::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: 0.5s;
}

.btn-primary:hover::after {
	left: 100%;
}








  
  


/* О НАС */

#about {
	margin: 0 auto;
	font-family: Arial;
	border-bottom: 5px solid #000;
}

.about-container {
	display: flex;
	align-items: center; /* Выравнивание по центру высоты */
	gap: 50px;           /* Расстояние между фото и текстом */
	margin-top: 40px;
	border-radius: 0px 0px 100px 100px;
	border-bottom: 15px solid #000;
	overflow: hidden;
}

.about-image {
	flex: 1;             /* Занимает 50% ширины */
	text-align: center;
}

.about-image img {
	height: 50vh;
	margin-bottom: -7px;
	/* border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

.about-content {
	flex: 2;             /* Занимает 50% ширины */
}

.about-description {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 30px;
	color: #333;
}

.team-list {
	list-style: none;
	padding: 0;
	display: flex;         /* Включаем флекс для всего списка */
	flex-direction: row;   /* Выстраиваем сотрудников в горизонтальный ряд */
	justify-content: space-between; /* Распределяем их равномерно */
	gap: 30px;             /* Расстояние между сотрудниками */
	flex-wrap: wrap;       /* Чтобы на мобилках перепрыгивали на новую строку */
	margin-top: 30px;
}

.team-item {
	display: flex;         /* Внутри каждого сотрудника тоже флекс */
	align-items: center;   /* Фото и текст на одной оси по вертикали */
	gap: 15px;             /* Расстояние от фото до текста */
	flex: 1;               /* Чтобы все карточки были одинаковой ширины */
	min-width: 300px;      /* Чтобы не сжимались слишком сильно */
}

.team-item img {
	width: 120px;          /* Размер фото */
	height: 120px;
	object-fit: cover;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	background: #f0f0f0;
}

.member-info {
	display: flex;
	flex-direction: column; /* Имя над должностью */
	border-left: 4px solid #0092d5;
	padding-left: 15px;
}

.member-info strong {
	font-size: 20px;
	color: #333;
	display: block;
}

.member-info span {
	font-size: 16px;
	color: #666;
	margin-top: 5px;
}

/* Адаптив: на узких экранах ставим их обратно друг под друга */
@media (max-width: 768px) {
	.team-list {
		flex-direction: column;
	}
}

/* Адаптив для телефонов */
@media (max-width: 992px) {
	.about-container {
		flex-direction: column; /* Текст под картинку */
		text-align: center;
	}
	.team-list li {
		border-left: none;
		border-bottom: 2px solid #0092d5;
		padding-bottom: 5px;
	}
}










/* ОТЗЫВЫ */

#reviews {
	/* justify-content: center; */
	background: #fff;
	text-align: center;
}

#reviews .review-container{
	display: flex;
	flex-wrap: wrap;
	margin: 0 auto;
	gap: 20px;
	max-width: 1600px;
	font-family: Arial;
	font-size: 1em;
}
.review-card {
	background: white;
	border-radius: 15px;
	padding: 20px;
	width: 100%;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	text-align: center;
}

.avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 15px;
}

.stars {
	color: #ffc107;
	margin-top: 10px;
}

#reviews .banner {
	width: 100%;            /* Занимает всю ширину на маленьких экранах */
	max-width: 1600px;      /* Ограничиваем максимальную ширину */
	margin: 50px auto 0;  /* -150px вверх, auto центрирует по горизонтали */
	position: relative;     /* Чтобы работал z-index */
	pointer-events: none;   /* Чтобы не мешала кликать по слайдеру */
	overflow: hidden;
}













/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 768px) {
	#slider img{
		width: 100% !important;
	}

	section {
		scroll-snap-align: start;
		align-items: center;
	}
	.layers-container {
		background-size: 150vw auto;
		background-position: center 10vh;
		background-repeat: no-repeat;
		width: 150%;
		top: 20%;
	}
	#caption{
		display: none;
	}
	#logo img{
		float: none;
		top: 20px;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		width: 80vw;
	}
	#menu{
		text-align: center;
		width: 100%;
	}
}