/*
Theme Name: Neoservice Accelerate
Description: Дочерняя тема Accelerate с восстановленными настройками сайта «Неосервис».
Author: Neoservice
Template: accelerate
Version: 1.0.0
Text Domain: neoservice-accelerate
*/

/* Изменения, найденные в старой теме neo (Accelerate 1.2.5). */
#header-text-nav-wrap {
	padding: 20px 0 15px;
}

.main-navigation {
	margin-bottom: 30px;
}

.main-navigation ul li ul {
	width: 300px;
}

.main-navigation ul li ul li a {
	background-color: rgb(199, 196, 196);
}

@media (min-width: 768px) and (max-width: 1024px) {
	.main-navigation li.menu-item-has-children:hover {
		background: #3d3d3d;
	}
}

/* Общий вид восстановленной главной и импортированных страниц. */
:root { --neo-red: #ef2a14; --neo-dark: #252525; --neo-soft: #f4f4f2; }
.site-content { color: #292929; }
#main { max-width: 1180px; margin: 0 auto; padding: 36px 20px; }
.page-header { display: none; }
.neo-hero { min-height: 520px; background-size: cover; background-position: center; display: flex; align-items: center; color: #fff; border-radius: 22px; padding: 56px; margin-bottom: 56px; }
.neo-hero > div { max-width: 680px; }
.neo-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; margin: 10px 0 20px; }
.neo-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.neo-button { display: inline-block; background: var(--neo-red); color: #fff !important; padding: 15px 24px; border-radius: 9px; font-weight: 700; }
.neo-section { margin: 60px 0; }
.neo-section h2 { font-size: 38px; }
.neo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.neo-card { display: flex; flex-direction: column; gap: 12px; min-height: 180px; padding: 28px; background: var(--neo-soft); border-radius: 16px; color: var(--neo-dark) !important; text-decoration: none; transition: .2s ease; }
.neo-card strong { font-size: 25px; }
.neo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px #0001; }
.neo-contact { background: var(--neo-dark); color: #fff; padding: 38px; border-radius: 18px; }
.neo-contact h2, .neo-contact a { color: #fff; }
.entry-content img { max-width: 100%; height: auto; border-radius: 10px; }
.entry-content { font-size: 17px; line-height: 1.65; }
.entry-title { font-size: 46px; }

@media (max-width: 800px) {
	.neo-grid { grid-template-columns: 1fr 1fr; }
	.neo-hero { min-height: 420px; padding: 30px; }
}

@media (max-width: 520px) {
	.neo-grid { grid-template-columns: 1fr; }
	.neo-hero h1 { font-size: 40px; }
}

/* Главная по архивному снимку 24.03.2026. */
body.home { background: #eaeaea; }
body.home #page { max-width: 1180px; margin: 0 auto; background: #fff; box-shadow: 0 0 5px rgba(0,0,0,.2); }
body.home #main { max-width: none; padding: 0; }
body.home #main > .inner-wrap { max-width: 1100px; }
body.home .entry-header { display: none; }
body.home .entry-content { margin: 0; }

.neo-snapshot-slider { position: relative; width: 100%; overflow: hidden; margin: 0 0 48px; }
.neo-snapshot-slider > img { display: block; width: 100%; height: auto; border-radius: 0; }
.neo-slide-caption { position: absolute; left: 44px; bottom: 72px; color: #fff; }
.neo-slide-caption h2 { margin: 0 0 8px; padding: 0; }
.neo-slide-caption h2 a, .neo-slide-caption p { display: inline-block; color: #fff; background: rgba(35,35,35,.82); padding: 11px 15px; }
.neo-slide-caption h2 a { font-family: "Roboto Slab", Georgia, serif; font-size: 25px; font-weight: 400; }
.neo-slide-caption p { margin: 0; font-size: 16px; }
.neo-slide-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.neo-slide-dots i { display: block; width: 17px; height: 6px; background: #fff; }

.neo-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 42px; }
.neo-services article { text-align: center; }
.neo-service-image { display: block; height: 188px; overflow: hidden; margin-bottom: 14px; }
.neo-service-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0; }
.neo-services article:nth-child(2) .neo-service-image img { object-fit: contain; }
.neo-services h2 { min-height: 58px; margin: 0; padding: 0 10px 8px; font-family: "Roboto Slab", Georgia, serif; font-size: 23px; line-height: 1.1; font-weight: 400; }
.neo-services h2 a { color: #3d3d3d; }
.neo-services p { color: #777; font-size: 15px; line-height: 1.6; text-transform: none; }

.neo-legal { display: flex; align-items: center; gap: 28px; margin: 25px 0 45px; padding: 25px 30px; background: #f4f4f4; }
.neo-legal h3 { flex: 1; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.neo-legal p { margin: 0; }
.neo-legal > a { padding: 13px 18px; color: #fff; background: #3d3d3d; font-weight: 700; }

@media (max-width: 768px) {
	body.home #page { width: 100%; }
	.neo-slide-caption { left: 20px; bottom: 35px; }
	.neo-slide-caption h2 a { font-size: 20px; }
	.neo-services { grid-template-columns: 1fr; gap: 35px; }
	.neo-service-image { height: auto; aspect-ratio: 600 / 330; }
	.neo-legal { display: block; }
	.neo-legal > a { display: inline-block; margin-top: 15px; }
}
