:root {
	--primary: #8B4513;
	--secondary: #413140;
	--accent: #D2691E;
	--light: #e6ddd7;
	--dark: #B39E7E;
	--text: #333333;
}
        
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
        
body {
	color: var(--text);
	line-height: 1.6;
	background-color: var(--light);
}
        
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

span.avoidwrap { display:inline-block; }

/* Header */
header {
	background-color: var(--dark);
	color: white;
	padding: 10px 0 0;
}
.header {
	min-height: 82px;
	display: block;
	flex-wrap: nowrap;
	justify-content: space-between;
/*	padding: 15px 0;*/
}

.logo {
	float: left;
	font-size: 1px;
	font-weight: bold;
	color: white;
}

.logo a img, footer img{
	-webkit-filter: drop-shadow( 0px 1px 1px rgba(50, 10, 50, .7));
	filter: drop-shadow( 0px 1px 1px rgba(50, 10, 50, .7));
}

header .contacts {
	font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
	align-content: center;
	text-align: center;
    line-height: 1.1;
	
/*	border-bottom: 1px solid rgba(255,255,255,0.1);*/
	min-height: 60px;
	max-height: 77px;
	padding-top: 6px;
}
header .contacts div{
	margin-left: 4%;
	padding-left: 8px;
	padding-bottom: 6px;
/*	margin-top: 5px;*/
	color: white;
	flex-grow: 1;
}
/*
.contacts div:first-child{
	margin-left: 0;
	padding-left: 0;
}
*/
header .contacts div a{
	transition: color 0.2s;
	color: white;
/*	text-decoration: none;*/
}
header .contacts div a span{
	text-decoration: underline;
}

header .contacts a:hover, .contacts a:hover span{
	color: var(--secondary);
	text-decoration: none;
}

.logo span {
	color: var(--secondary);
}

header nav {
	display: block;
	height: 16px;
/*	float: left;*/
}

nav ul {
	display: flex;
	list-style: none;
	margin: 6px 0 0;
	padding: 0 1rem;
	
	position: relative;
	z-index: 5;
}

nav ul a li {
	background-color: var(--primary);
	transition: background-color 0.1s;
	padding: 3px 7px;
/*	transition: padding 0.1s;*/
	
	text-align: center;
	
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.7), 0px 1px 1px #000;
}
nav ul a li:first-child {
	margin-left: 0;
}
nav ul a li:last-child {
	margin-right: 0;
}

nav ul a {
	margin: 0 1px;
	padding: 0 2px;
	
	color: white;
	text-decoration: none;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
    font-size: 1rem;
	flex-grow: 1;
	max-width: max(160px,28%);
	
	transition: color 0.1s;
	transition: padding 0.1s;
}

nav ul a:hover {
/* this padding makes buttons jumpy.*/
	padding: 0 6px;
	color: var(--secondary);
}
nav ul a:hover li{
/*	padding: 3px 1px;*/
	background-color: var(--light);
}

section {
	padding: 30px 0;
}

section:first-child .container h1, section:first-child .container h2 {
	margin-top: 30px;
}

/* Hero Section - ИСПРАВЛЕНА */
.hero {
	clear: both;
	padding: 0;
	position: relative;
	padding: 0;
	background-color: transparent;
	overflow: hidden;
}

.hero-container {
	position: relative;
	width: 100%;
}

.carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Серый фон поверх карусели */
.carousel-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 2;
}

.carousel-item {
	height: 80vh;
	min-height: 500px;
}

.carousel-item img {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

/* Исправляем z-index для стрелок навигации */
.carousel-control-prev,
.carousel-control-next {
	z-index: 5;
	width: 5%;
}

.hero-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: white;
	z-index: 4;
	width: 80%;
}

.hero-text {
	padding: 30px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 20px;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 20px;
}

.btn {
	display: inline-block;
	background-color: var(--primary);
	color: white;
	padding: 12px 30px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s;
	margin-top:4px;
}

.btn:hover {
	background-color: var(--accent);
}
        
/* About Section */
.about {
/*	background-color: white;*/
/*	text-shadow: 0 1px 3px white, 0 0 2px white;*/
	text-shadow: 0 1px 3px var(--light),0 1px 1px var(--light), 0 0 2px var(--light);
	
	background: url(img/okomp_nonopaque.png) no-repeat;
/*	background-position: right;*/
	background-position-y: 50px;
	background-position-x: right;
}
        
.section-title {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 40px;
	color: var(--primary);
	position: relative;
	text-shadow: 0 1px 3px white, 0 0 2px white;
}
        
.section-title:after {
	content: '';
	display: block;
	width: 80px;
	height: 3px;
	background-color: var(--primary);
	margin: 15px auto;
}
        
.about-content {
	position: relative;
/*	display: inline-block;*/
/*	flex-wrap: wrap;*/
/*	gap: 30px;*/
}
        
.about-text {
	padding: 0 5%;
	max-width: 800px;
	
/*	background-color: rgba(255, 255, 255, 0.5);*/
/*    background-repeat: no-repeat;*/
/*    background-size: contain;*/
/*    background-position: right;*/
/*	flex: 1;*/
/*	min-width: 300px;*/
}
/*
.about-text > *{
	margin-right: 0;

}
*/
.about-content img{
	position:absolute;
	z-index:-1;
	top: -150px;
	right: -75px;
    opacity: 0.7;
    mix-blend-mode: overlay;
}

.about-text h3 {
	color: var(--primary);
	margin-bottom: 20px;
}
        
.about-text ol {
	margin-left: 20px;
	margin-bottom: 20px;
}
        
.about-text li {
	margin-bottom: 10px;
}
        
.about-image {
	flex: 1;
	min-width: 300px;
}
        
.about-image img {
	width: 100%;
	border-radius: 10px;
}

/* Services Section */
.services {
	background-color: var(--light);
}
        
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
        
.service-card {
	display: flex;
	flex-direction: column;
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.15s;
}
        
.service-card:hover {
	transform: translateY(-10px);
}
        
.service-image {
	height: 200px;
	overflow: hidden;
}
        
.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
        
.service-card:hover .service-image img {
	transform: scale(1.1);
}
        
.service-content {
    flex-grow: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
}
        
.service-content h3 {
	color: var(--primary);
	margin-bottom: 15px;
}
        
.service-content p {
	flex-grow: 1;
	margin-bottom: 15px;
}
        
.service-link {
	display: inline-block;
	color: white;
	font-weight: bold;
	text-decoration: none;
	width: 98%;
/*	background-color: var(--primary);*/
	background: linear-gradient( to left, var(--primary), white);
	border-radius: 5px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	text-align: right;
	padding: 5px 20px;
/*	margin: 0 auto;*/
/*	padding-right: 50%;*/
	transition: width 0.1s;
/*	transition: padding 0.1s;*/
}
        
.service-link:hover {
	width: 100%;
/*	padding-right: 10px;*/
/*	background-color: var(--accent);*/
/*	text-decoration: underline;*/
}
        
/* Info Section */
.info {
	background-color: white;
}
        
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
        
.info-card {
	background-color: var(--light);
	padding: 20px;
	padding-left: 30px;
	padding-right: 0px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
        
.info-card h3 {
	text-shadow: 0 1px 3px white, 0 0 2px white;
	color: var(--primary);
	margin-bottom: 20px;
}
        
.info-links {
	padding-left: 0;
	list-style: none;
	margin: 0;
}
        
.info-links li {
	display: block;
	position: relative;
	margin-top: 3px;
	margin-left: 43px;
	padding: 5px 0;
	padding-right: 40px;
	transition: padding 0.2s;
	
	background: linear-gradient(to right,
			 		rgba(0,0,0,0),
			 		rgba(255,255,255,0.5));
}
        
.info-links a {
	color: var(--dark);
	text-decoration: none;
	align-items: center;
}
        
.info-links a:hover {
	color: var(--primary);
}

.info-links a:hover li {
	padding-right: 20px;
	padding-left: 20px;
	text-shadow: 0 1px 2px white;
}
        
.info-links i {
    display: block;
    float: left;
    position: absolute;
    top: 50%;
    transform: translate(-200%, -50%);
/*	margin-right: 10px;*/
	color: var(--primary);
}

.call-to-action {
	text-align: center;
	margin-top: 30px;
	padding: 30px;
	background-color: var(--light);
	border-radius: 10px
}

.call-to-action p {
	font-size: 18px;
}

.call-to-action h3 {
	margin-bottom: 14px;
}

/* Contact Section */
.contact {
	background-color: var(--light);
}
        
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}
        
.contact-info h3 {
	text-shadow: 0 1px 3px white, 0 0 2px white;
	color: var(--primary);
	margin-bottom: 20px;
}
        
.contact-info p {
	margin-bottom: 40px;
}
        
.contact-details {
	margin-top: 30px;
}
        
.contact-details p {
	display: block;
	align-items: center;
	margin-bottom: 15px;
	margin-left: 35px;
	position: relative;
}
        
.contact-details i {
	display: block;
	float: left;
	position: absolute;
	top: 50%;
	transform: translate(-150%, -40%);
	margin-right: 15px;
/*	color: var(--primary);*/
	font-size: 22px;
	width: 20px;
}

.contact-details a {
/*	margin-left: 0px;*/
	transition: color 0.2s;
	color: var(--text);
}
.contact-details a:hover {
/*	margin-left: 20px;*/
	color: var(--primary);
	text-decoration: none;
}
.contact-details a p{
	transition: padding 0.2s;
	padding-left: 0px;
}
.contact-details a:hover p{
	padding-left: 10px;
}
        
.contact-form {
	display: flex;
	flex-direction: column;
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
        
.contact-form h3 {
	color: var(--primary);
	margin-bottom: 20px;
	text-align: center;
}

.contact-form button {
	width: 100%;
}
 
#feedback-form {
	flex-grow: 1;
}

.form-layout {
	display:flex;
	flex-direction: column;
	height: 100%;
}

.form-layout .stretch {
	flex-grow: 1;
}

.form-columns {
	padding: 0 10px;
	display: flex;
}

.form-columns .form-input {
	flex-grow: 1;
}

.form-labels {
	padding-right: 5px;
}

.form-labels label {
    padding: 4px 0;
	text-align: right;
	width: 100%;
}

.form-input input {
	color: var(--primary);
    width: 100%;
    /* line-height: 1.3; */
    border-radius: 2px;
    border-left: white;
    border-top: white;
    border-right: white;
    border-style: solid;
    border-width: 1px;
    padding-left: 4px;
    margin: 3px 0;
}

.form-layout .stretch label{
	width: 100%;
	text-align: center;
	margin: 10px 0;
}

.form-layout textarea{
	width: 100%;
	height: 72%;
	min-height: 130px;
	padding: 0 6px;
	border-radius: 5px;
    border: 1px solid #000;
}

.form-layout .keyrow{
	margin-top: 6px;
}

/* Footer */
footer {
	background-color: var(--dark);
	color: white;
	padding: 40px 0 60px;
/*	text-align: center;*/
}
        
.footer-content {
/*	display: flex;*/
/*	flex-wrap: wrap;*/
/*	justify-content: space-between;*/
	margin-bottom: 20px;
}

.footer-content .logo {
	width: 39%;
	max-width: 220px;
}

.footer-line {
	display: flex;
	justify-content: center;
	min-width: 230px;
	margin: 0 20px;
}

.footer-line img {
	margin-right: 14px;
}

.footer-line.company div {
	max-width: 450px;
	text-shadow: 0px 1px 2px rgba(50, 10, 50, .7);
/*	line-height: 1.2em;*/
	font-size: 14px;
	font-weight: bold;
/*	display: inline-block;*/
    align-self: center;
}

.footer-line a {
	transition: color 0.2s;
	color: white;
}
.footer-line a:hover {
	color: var(--secondary);
	text-decoration: none;
}

.footer-line.contacts {
	margin-top: 10px;
	flex-wrap: wrap;
    justify-content: center;
}
.footer-line.contacts div{
	margin: 0 15px;
}

.footer-line.socials div{
	font-size: 26px;
	margin: 0 5px;
}

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

.looming-button {
	position: fixed;
	bottom: 10px;
	right: 10px;
	z-index: 100;
}

.looming-button div{
	background-color: var(--primary);
	padding: 15px;
	border-radius: 100px;
	font-size: 1.5rem;
	line-height: 1;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.7);
	
	transition: background-color 0.2s;
}

.looming-button a{
	display:block;
	color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);

	transition: color 0.2s, padding-bottom 0.2s;
}

.looming-button a:hover{
	color: var(--secondary);
	padding-bottom: 10px;
}

.looming-button a:hover div{
	background-color: #fff;
}

.cover-all {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100vh;
	/*! make sure the opacity is not inherited!*/
	background-color: rgba(0,0,0,0.5);
	/*	opacity: 0.5;*/
	/*! 10 is enough to cover all page*/
	/*! but beware, text will be inactive if you do this!*/
	z-index: 10;
	cursor: pointer;
}

.form-container {
	position: relative;
	background-color: #fff;
	width: 670px;
	height: 80vh;
	padding: 10px;
	border-radius: 10px;
	margin: 0 auto 0;
	top: 10%;
	cursor: default;
}

.hidden{ display:none; }

/* Responsive */
@media (max-width: 775px) {
	.header-bottom {
		flex-direction: column;
		text-align: center;
	}
    
	nav ul a {
		padding: 0 1px;
	}
	.hero h1 {
		font-size: 2rem;
	}
            
	.hero p {
		font-size: 1rem;
	}
            
	.carousel-item {
		height: 300px;
	}
            
	.hero-content {
		width: 90%;
	}
}