.site-footer .search input[type="search"] {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.35);
	color: #fff;
}

.site-footer .search input[type="search"]::placeholder { color: rgba(255,255,255,0.75); }

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: url('../../Img/Main/Footer/Footer_background.png') center center repeat-x;
    position: relative;
    color: #fff;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #0c0c0c;
	opacity: 0.85;
	pointer-events: none;
}

.footer-inner {
	max-width: var(--container-width1);
	margin: 0 auto;
	padding: 100px 60px;
    position: relative;
    z-index: 1;
}

.footer-grid {
	display: grid;
	grid-template-columns: auto 1fr 1.2fr 0.8fr;
	gap: 60px;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col ul li a {
	text-decoration: none;
	color: inherit;
}

/* Отступ между строками ссылок и контактов в футере */
.footer-links ul li + li { margin-top: 20px; }
.footer-contacts > div + div { margin-top: 20px; }

.footer-brand .brand-title {
	font-weight: 700;
	margin-top: 6px;
}

.footer-brand .brand-subtitle {
	font-size: 14px;
	color: #bbb;
}

.footer-search .search {
	display: flex;
	gap: 8px;
	/* visibility: hidden; */
}

.site-footer .footer-search .search button {
	border: none;
	box-shadow: none;
	background: transparent;
}

/* Кнопка поиска в футере на тёмном фоне */
.site-footer .footer-search .search button {
	background: transparent;
	border-color: rgba(255,255,255,0.4);
	color: #fff;
}

.footer-search .search button img {
	width: 1em;
	height: 1em;
	display: block;
}

/* Footer: поле поиска белое, прямоугольное, кнопка продолжает поле */
.site-footer .footer-search .search {
	gap: 0;
	margin-top: 20px;
}

.site-footer .footer-search .search input[type="search"] {
	flex: 1 1 auto;
	background: #fff;
	color: #000;
	border: 1px solid #fff;
	border-radius: 0;
	padding: 8px 10px;
	height: 40px;
	appearance: none;
	-webkit-appearance: none;
}

.site-footer .footer-search .search button {
	background: #fff;
	/* color: #000; */
	border: 1px solid #fff;
	border-left: none;
	border-radius: 0;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	appearance: none;
	-webkit-appearance: none;
}

.site-footer .footer-search .search button img {
	filter: invert(1);
}

/* Footer: контрастный плейсхолдер на белом поле */
.site-footer .footer-search .search input[type="search"]::placeholder {
	color: #666;
}

/* --container-width1 { */
@media (max-width: 1290px) {
	.footer-grid {
		grid-template-rows: 0.2fr 1fr 1fr;
        grid-template-columns: 1fr 1fr;
	}
    .site-footer {background-size: cover;}
	.footer-col.footer-brand{
		/* background-color: #DDB8F8; */
    	grid-row-start: 1;
    	grid-column-start: 1;
    	grid-row-end: 2;
    	grid-column-end: 3;
	}
	.footer-col.footer-links{
		/* background-color: #CBCB95; */
    grid-row-start: 2;
    grid-column-start: 1;
    grid-row-end: 3;
    grid-column-end: 2;

	}
	.footer-col.footer-contacts{
		/* background-color: #EAD5D5; */
    grid-row-start: 2;
    grid-column-start: 2;
    grid-row-end: 3;
    grid-column-end: 3;
	}
	.footer-col.footer-search{
		/* background-color: #E5D759; */
    grid-row-start: 3;
    grid-column-start: 1;
    grid-row-end: 4;
    grid-column-end: 3;
	}

}
/* --container-width3 */
@media (max-width: 768px) {
	/* Footer - один столбец */
    .footer-grid {
        /* grid-template-columns: 1fr; */
        gap: 30px;
        text-align: center;
    }
    
    .footer-col {
        padding: 20px 0;
    }
    
    .footer-col.footer-brand {
        order: 1;
    }
    
    .footer-col.footer-links {
        order: 2;
    }
    
    .footer-col.footer-contacts {
        order: 3;
        text-align: left;
    }
    
    .footer-col.footer-search {
        order: 4;
    }
    
    .footer-search form {
        justify-content: center;
    }
    
    /* Дополнительные стили для мобильного footer */
    .footer-inner {
        padding: 40px 20px;
    }
    
    .footer-contacts > div:nth-child(odd) {
        font-weight: 600;
    }
    
    .footer-contacts > div:nth-child(even) {
        color: #bbb;
    }
    
    .footer-licenses {
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 20px;
    }
    
    .footer-licenses a {
        display: inline-block;
        padding: 10px 20px;
        /* background: rgba(255, 255, 255, 0.1); */
        border-radius: 6px;
        transition: background 0.3s ease;
    }
    
    .footer-licenses a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}
