
:root {
	--white: #FFFFFF;
	--dark-gray: #484848;
	--teal: #0395a0;
	--orange: #ff3701;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Arial', sans-serif;
}

body {
	color: var(--dark-gray);
	line-height: 1.6;
	background-color: var(--white);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Шапка */
header {
	background-color: var(--dark-gray);
	color: var(--white);
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 12px;
}

.logo-img {
	height: 45px;
	width: auto;
	object-fit: contain;
	display: block;
}

.logo-text {
	font-size: 22px;
	font-weight: 700;
	color: var(--white);
	line-height: 1;
	display: flex;
	align-items: center;
	margin-top: 2px; /* Тонкая настройка выравнивания */
}

.logo-text span {
	color: var(--orange);
	margin-left: 2px;
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 25px;
}

nav ul li a {
	color: var(--white);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
	position: relative;
}

nav ul li a:hover {
	color: var(--orange);
}

nav ul li a:after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	background: var(--orange);
	bottom: -5px;
	left: 0;
	transition: width 0.3s;
}

nav ul li a:hover:after {
	width: 100%;
}

/* Герой-секция */
.hero {
	background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
	color: var(--white);
	padding: 150px 0;
	text-align: center;
}

.hero h1 {
	font-size: 48px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.hero p {
	font-size: 20px;
	max-width: 800px;
	margin: 0 auto 30px;
}

.btn {
	display: inline-block;
	background-color: var(--orange);
	color: var(--white);
	padding: 15px 40px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	transition: all 0.3s;
	border: 2px solid var(--orange);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn:hover {
	background-color: transparent;
	color: var(--orange);
}

.btn-secondary {
	background-color: var(--teal);
	border-color: var(--teal);
}

.btn-secondary:hover {
	color: var(--teal);
}

/* Услуги */
.services {
	padding: 100px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 60px;
}

.section-title h2 {
	font-size: 36px;
	color: var(--dark-gray);
	position: relative;
	display: inline-block;
	margin-bottom: 15px;
}

.section-title h2:after {
	content: '';
	position: absolute;
	width: 50%;
	height: 3px;
	background: var(--teal);
	bottom: -10px;
	left: 25%;
}

.section-title p {
	color: var(--dark-gray);
	font-size: 18px;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.service-card {
	cursor: pointer;
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: all 0.3s;
	border: 1px solid #eee;
	--hover-image: none; /* значение по умолчанию */
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-img {
	height: 200px;
	background: #ddd;
	background-size: cover;
	background-position: center;
	transition: background-image 0.3s ease;
}

.service-card:hover .service-img {
    background-image: var(--hover-image) !important;
}

.card-info {
	text-align: justify; 
	font-size: 0.9em; 
	padding-bottom: 20px;
}

.card-ul {
	padding-left: 40px; 
	font-size: 0.8em;
}

.service-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    overflow-y: auto;
    z-index: 10;
}

.service-card.active .service-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.service-card.active {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 5;
}

.close-details {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.close-details:hover {
    background: #e03000;
}

.service-details h4 {
    color: var(--teal);
    margin-bottom: 15px;
}

.service-details ul {
    margin-bottom: 15px;
}

.service-details li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-content {
	padding: 25px;
}

.service-content h3 {
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--teal);
}

.service-content p {
	margin-bottom: 20px;
	color: var(--dark-gray);
}

.service-price {
	font-weight: bold;
	color: var(--orange);
	font-size: 18px;
}

/* О нас */
.about {
	padding: 100px 0;
	background-color: #f9f9f9;
}

.about-content {
	display: flex;
	align-items: center;
	gap: 50px;
}

.about-text {
	flex: 1;
}

.about-text h2 {
	color: var(--teal);
	margin-bottom: 20px;
	font-size: 32px;
}

.about-text p {
	margin-bottom: 20px;
	line-height: 1.8;
}

.about-features {
	margin-top: 30px;
}

.feature-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.feature-icon {
	width: 40px;
	height: 40px;
	background-color: var(--teal);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	color: var(--white);
}

.about-img {
	flex: 1;
	height: 400px;
	background: url('https://images.unsplash.com/photo-1600861195091-690c92f1d2cc?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Галерея работ */
.portfolio {
	padding: 100px 0;
	background-color: var(--white);
}

.portfolio-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	aspect-ratio: 4/3;
	--hover-image: none;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(3,149,160,0.9));
	color: var(--white);
	padding: 20px;
	/*transform: translateY(100%);*/
	transition: transform 0.3s;
}


.gallery-item:hover .gallery-caption {
	transform: translateY(0);
}

.gallery-caption h3 {
	margin-bottom: 5px;
	font-size: 18px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hover-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Контакты */
.contact {
	padding: 100px 0;
	background-color: #f9f9f9;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 50px;
}

.contact-info h3 {
	color: var(--teal);
	font-size: 24px;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.contact-info h3:after {
	content: '';
	position: absolute;
	width: 50px;
	height: 3px;
	background: var(--orange);
	bottom: 0;
	left: 0;
}

.contact-info p {
	margin-bottom: 15px;
	display: flex;
	align-items: center;
}

.contact-info i {
	margin-right: 10px;
	color: var(--orange);
	width: 20px;
	text-align: center;
}

.contact-form h3 {
	color: var(--teal);
	font-size: 24px;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.contact-form h3:after {
	content: '';
	position: absolute;
	width: 50px;
	height: 3px;
	background: var(--orange);
	bottom: 0;
	left: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 15px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
	border-color: var(--teal);
	outline: none;
}

.contact-form button {
	width: 100%;
	padding: 15px;
	background-color: var(--orange);
	color: var(--white);
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s;
}

.contact-form button:hover {
	background-color: #e03000;
}

/* Футер */
footer {
	background: var(--dark-gray);
	color: var(--white);
	padding: 60px 0 20px;
	position: relative;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-column h4 {
	color: var(--orange);
	margin-bottom: 25px;
	font-size: 18px;
	position: relative;
	padding-bottom: 10px;
}

.footer-column h4:after {
	content: '';
	position: absolute;
	width: 40px;
	height: 2px;
	background: var(--teal);
	bottom: 0;
	left: 0;
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 12px;
}

.footer-column ul li a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
	display: flex;
	align-items: center;
}

.footer-column ul li a:hover {
	color: var(--orange);
}

.footer-column ul li i {
	margin-right: 10px;
	width: 16px;
	color: var(--teal);
}

.footer-column p {
	color: #aaa;
	line-height: 1.6;
	margin-bottom: 15px;
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255,255,255,0.1);
	color: #888;
	font-size: 14px;
}

/* Плюсы сервиса */
.advantages {
	padding: 80px 0;
	background-color: #f9f9f9;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-template-columns: 1fr 1fr 1fr;
	gap: 30px;
	margin-top: 50px;				
}

.advantage-card {
	background: var(--white);
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	text-align: center;
	transition: transform 0.3s;
}

.advantage-card:hover {
	transform: translateY(-10px);
}

.advantage-icon {
	width: 60px;
	height: 60px;
	background: var(--teal);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 24px;
}

.advantage-card h3 {
	color: var(--dark-gray);
	margin-bottom: 15px;
	font-size: 18px;
}

.advantage-card p {
	color: var(--dark-gray);
	font-size: 14px;
}



/*
@media (max-width: 480px) {
	
}
*/
/* Адаптивность */

@media (max-width: 992px) {
	.logo-img {
		height: 40px;
	}
	.logo-text {
		font-size: 20px;
	}
}

@media (max-width: 768px) {
	/* Уменьшаем шрифт основного заголовка */
	.hero h1 {
		font-size: 32px;
	}
	
	/* Уменьшаем шрифт верхнего меню */
	.logo-text {
		font-size: 20px;
	}
	
	nav ul li {
		margin-left: 15px;
	}
	
	nav ul li a {
		font-size: 14px;
	}
	
	/* Уменьшаем кнопки */
	.btn {
		padding: 10px 25px;
		font-size: 14px;
	}
	
	/* Дополнительные адаптивные стили */
	.hero {
		padding: 80px 0;
	}
	
	.hero p {
		font-size: 16px;
	}
	
	.section-title h2 {
		font-size: 28px;
	}
	
	.service-content h3 {
		font-size: 18px;
	}
	
	.about-content {
		flex-direction: column;
	}
	
	.about-img {
		width: 100%;
		height: 250px;
		margin-top: 30px;
		display: none; /* Полностью скрываем */
		/* Или можно использовать opacity: 0; height: 0; для плавного исчезновения */
	}
	
	.about-text {
		width: 100%;
	}
	
	.logo-img {
		height: 35px;
	}
	.logo-text {
		font-size: 18px;
		display: none; /* Скрываем текст на мобильных если нужно */
	}
	
	.footer-content {
		grid-template-columns: 1fr 1fr;
	}
	
	.advantages-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	/* Еще больше уменьшаем для маленьких экранов */
	.hero h1 {
		font-size: 28px;
	}
	
	.header-content {
		flex-direction: column;
	}
	
	nav ul {				
		margin-top: 15px;
		flex-wrap: wrap;
		justify-content: center;
	}
	
	nav ul li {				
		margin: 0px 5px;
	}
	
	nav ul li a {
		font-size: 12px;
	}
	
	/* Кнопки в столбик на маленьких экранах */
	.hero .btn {
		display: block;
		width: 80%;
		margin: 10px auto;
	}
	
	/* Уменьшаем отступы секций */
	.services, .about, .advantages, .portfolio, .contact {
		padding: 50px 0;
	}
	
	.logo-img {
		height: 70px;
	}
	
	.footer-content {
		grid-template-columns: 1fr;
	}
	
	.advantages-grid {
		grid-template-columns: 1fr;
	}
	
	.advantages-link {
		opacity: 0;
		width: 0;
		height: 0;
		overflow: hidden;
		margin: 0;
		padding: 0;
		transition: all 0.3s ease;
	}
} 
