/* Дополнения к макету: PHP-тема, внутренние страницы, блок «Премиум-детейлинг» */

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r-md); }
.skip-link:focus { left: 8px; }
html:not(.js) .reveal { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ticker-track { animation: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
}
html { scroll-padding-top: 84px; }
.display .ice { color: var(--ice); font-style: italic; font-weight: 400; }

/* Шапка на внутренних страницах сразу «залитая» */
.is-inner .header {
	background: rgba(11,11,13,0.82);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-bottom-color: var(--border);
}
.is-inner .header .nav a.current { color: var(--fg); }

/* Карточки услуг теперь ссылки */
a.service-card { color: inherit; }
.service-card .service-image img { display: block; transition: transform .8s var(--ease), filter .4s var(--ease); filter: saturate(.92) brightness(.92); }
.service-card:hover .service-image img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
.service-card.is-premium { background: linear-gradient(180deg, oklch(0.82 0.08 85 / 0.07), transparent 38%); }
.service-card.is-premium .service-footer .price { color: var(--champagne); }
.badge-premium {
	display: inline-block;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--champagne);
	border: 1px solid oklch(0.82 0.08 85 / 0.45);
	padding: 3px 8px; border-radius: var(--r-sm);
	margin-left: 8px; vertical-align: middle;
}

/* Процесс без колонки времени */
.process-step { grid-template-columns: 100px 1fr 1.4fr; cursor: default; }
@media (max-width: 900px) { .process-step { grid-template-columns: 60px 1fr; } .process-step .step-desc { grid-column: 2; } }

/* ============ Премиум-детейлинг ============ */
.detailing { background: var(--bg-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.detailing-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: stretch; }
@media (max-width: 980px) { .detailing-grid { grid-template-columns: 1fr; gap: 32px; } }

.detailing-feature {
	position: relative; min-height: 640px;
	border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
	background: var(--surface);
}
@media (max-width: 720px) { .detailing-feature { min-height: 520px; } }
.detailing-feature > img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; filter: saturate(.92) brightness(.82);
	transition: transform 1.2s var(--ease-out);
}
.detailing-feature:hover > img { transform: scale(1.03); }
.detailing-feature::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(11,11,13,0) 28%, rgba(11,11,13,.94) 100%);
}
.detailing-feature-body { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 2; }
@media (max-width: 720px) { .detailing-feature-body { left: 20px; right: 20px; bottom: 20px; } }
.detailing-feature-body .badge-premium { margin: 0 0 16px; }
.detailing-feature-body h3 { margin: 0; font-size: clamp(28px, 3.4vw, 46px); }
.detailing-feature .brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.detailing-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.detailing-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.detailing-list li { flex: 1; border-bottom: 1px solid var(--border); }
.detailing-list a {
	display: grid; grid-template-columns: 1fr 22px; gap: 16px; align-items: center;
	padding: 24px 0; height: 100%;
	transition: background .3s var(--ease), padding .3s var(--ease);
}
.detailing-list a:hover { background: rgba(255,255,255,.025); padding-left: 14px; padding-right: 14px; }
.detailing-list .dl-body { display: flex; flex-direction: column; gap: 6px; }
.detailing-list .dl-title { font-weight: 400; font-size: 19px; letter-spacing: -.01em; line-height: 1.2; }
.detailing-list .dl-desc { color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; }
.detailing-list .dl-arrow { width: 20px; height: 20px; color: var(--ice); transition: transform .3s var(--ease); }
.detailing-list a:hover .dl-arrow { transform: translate(3px, -3px); }

/* ============ Цены ============ */
.price-download { margin-top: 28px; }
.price-row .pr-cta button:focus-visible { outline: 2px solid var(--ice); }

/* ============ Галерея ============ */
.gallery-item { padding: 0; }
.gallery-item.is-hidden { display: none; }
.lightbox-img { position: absolute; inset: 0; }

/* ============ Акции ============ */
.offers { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (max-width: 1100px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .offers-grid { grid-template-columns: 1fr; } }
.offer-card {
	position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 240px;
	padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
	transition: background .3s var(--ease);
}
.offer-card:hover { background: var(--surface); }
.offer-card h3 { margin: 0; font-weight: 400; font-size: 18px; line-height: 1.25; letter-spacing: -.005em; }
.offer-card .offer-arrow { position: absolute; right: 22px; bottom: 22px; width: 22px; height: 22px; color: var(--ice); }
.offers-more { margin-top: 28px; }

/* ============ Контакты: список филиалов вместо схематичной карты ============ */
.contacts-map { display: none; }
.contacts-branches { display: flex; flex-direction: column; background: var(--bg); }
.branch-row {
	display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
	padding: 28px 32px; border-bottom: 1px solid var(--border);
}
.branch-row:last-child { border-bottom: none; }
.branch-num { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.branch-row h4 { margin: 8px 0 10px; font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.branch-meta { color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; }
.branch-actions { display: flex; flex-direction: column; gap: 8px; min-width: 250px; }
.branch-actions .btn { justify-content: center; }
@media (max-width: 900px) {
	.branch-row { grid-template-columns: 1fr; padding: 24px 20px; }
	.branch-actions { min-width: 0; }
}

/* ============ Внутренние страницы ============ */
.page-head { padding: 150px 0 56px; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .page-head { padding: 118px 0 40px; } }
.page-head h1 { margin: 20px 0 0; font-size: clamp(34px, 5vw, 68px); max-width: 18ch; }
.page-head .lede { margin-top: 24px; color: var(--fg-dim); font-size: 17px; max-width: 640px; }
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

.archive-section { padding: 72px 0 120px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .3s var(--ease); }
.post-card:hover { background: var(--surface); }
.post-card .pc-thumb { aspect-ratio: 4/3; background: var(--bg-2); overflow: hidden; position: relative; }
.post-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.92); transition: transform .8s var(--ease); }
.post-card:hover .pc-thumb img { transform: scale(1.04); }
.post-card .pc-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card h2 { margin: 0; font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 18px; line-height: 1.25; letter-spacing: -.005em; }
.post-card .pc-excerpt { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.post-card .pc-more { margin-top: auto; padding-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); display: inline-flex; align-items: center; gap: 8px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font-size: 14px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.entry { padding: 64px 0 120px; }
.entry-inner { max-width: 760px; }
.entry-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.entry-thumb { margin: 0 0 40px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.entry-thumb img { width: 100%; height: auto; }
.entry-content { font-size: 17px; line-height: 1.7; color: var(--fg-dim); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: 'Unbounded', sans-serif; font-weight: 400; color: var(--fg); letter-spacing: -.01em; line-height: 1.2; margin-top: 2em; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }
.entry-content strong, .entry-content b { color: var(--fg); font-weight: 600; }
.entry-content a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--ice); }
.entry-content img { height: auto; border-radius: var(--r-md); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ice); color: var(--fg); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--border); padding: 12px 10px; text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); }
.entry-content iframe { max-width: 100%; }
.entry-empty { color: var(--fg-dim); }
.entry-cta { margin-top: 56px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.entry-cta h3 { margin: 0 0 8px; font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 22px; }
.entry-cta p { margin: 0 0 20px; color: var(--fg-dim); }
.entry-cta .btn { margin-right: 8px; margin-top: 8px; }

.not-found { padding: 180px 0 140px; text-align: left; }
.not-found h1 { font-size: clamp(64px, 12vw, 160px); margin: 16px 0 0; }
.not-found p { color: var(--fg-dim); font-size: 17px; margin: 20px 0 32px; }

/* Нижний отступ под липкую кнопку на мобильном */
@media (max-width: 720px) { footer.site { padding-bottom: 96px; } }

/* Админ-панель WordPress не должна перекрывать фиксированную шапку (видна только авторизованным) */
.admin-bar .header { top: 32px; }
.admin-bar .mobile-menu { padding-top: 116px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } .admin-bar .mobile-menu { padding-top: 130px; } }
@media (max-width: 600px) { .admin-bar .header { position: absolute; } }
.reviews-summary + .reviews-summary { margin-top: 16px; }
@media (min-width: 901px) {
	.reviews-summary { grid-template-columns: 130px 230px 1px 1fr auto; }
	.reviews-summary .btn { justify-self: end; }
}

/* ============ Контраст и типографика ============ */
:root { --muted: #a2a198; --fg-dim: #c9c6bd; }
.eyebrow { font-size: 12px; }
.hero-meta-label { font-size: 11px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ============ Hero на весь экран: видео ============ */
.hero--video {
  min-height: calc(100vh - 65px); min-height: calc(100svh - 65px);
  display: flex; align-items: flex-end;
  padding: 112px 0 48px;
  background: #000;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero--video::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,8,10,.75) 0%, rgba(8,8,10,0) 24%), linear-gradient(to top, rgba(8,8,10,.92) 0%, rgba(8,8,10,.62) 40%, rgba(8,8,10,.1) 75%), linear-gradient(90deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,0) 65%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero--video h1 { font-size: clamp(32px, 4.6vw, 68px); max-width: none; }
.hero--video h1 .strike { color: rgba(236,233,225,.6); }
.hero--video .hero-sub { margin-top: 24px; max-width: 520px; color: var(--fg); font-size: 17px; }
.hero--video .hero-cta-row { align-items: center; gap: 24px; margin-top: 28px; }
.hero-phone { color: var(--fg); font-size: 18px; letter-spacing: .01em; text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.hero-phone:hover { border-color: var(--ice); color: var(--ice); }
.hero--video .hero-meta { margin-top: 36px; max-width: none; width: max-content; grid-template-columns: repeat(3, auto); }
.hero--video .hero-meta-item { padding: 22px 36px 0 0; }
.hero--video .hero-meta-item + .hero-meta-item { padding-left: 36px; }
.hero--video .hero-meta-item:last-child { padding-right: 0; }
.hero--video .hero-meta-label { max-width: 250px; line-height: 1.55; }
.hero--video .hero-meta-num { font-size: 26px; }
@media (max-height: 900px) and (min-width: 721px) { .hero--video .hero-meta { display: none; } .hero--video { padding-bottom: 40px; } }
@media (max-width: 720px) {
  .hero--video { padding: 96px 0 96px; }
  .hero--video .hero-meta { display: none; }
  .hero--video .hero-sub { font-size: 16px; }
  .hero--video .hero-meta { margin-top: 24px; }
  .hero--video .hero-meta-num { font-size: 20px; }
  .hero--video .hero-meta-item { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero-media { background: url(../img/hero-poster.webp) center top / cover no-repeat; } }

.socials { flex-wrap: wrap; }
.social-note { margin-top: 12px; font-size: 12px; max-width: 360px; }


/* Политика конфиденциальности */
.policy h2 { font-size: 22px; margin: 40px 0 12px; }
.policy p, .policy li { line-height: 1.65; }
.policy ul { padding-left: 20px; }
.policy-date { color: var(--muted); }
.policy-note { font-size: 13px; color: var(--muted); }
mark.todo { background: rgba(255, 196, 0, .2); color: #ffd666; padding: 0 4px; border-radius: 2px; }

/* Окно выбора филиала: одинаковая сетка во всех карточках */
.loc-card-num { margin-bottom: 14px; display: block; }
.loc-card h4 { min-height: 2.4em; margin-bottom: 10px; }
.loc-card-addr { min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--fg-dim); margin-bottom: 16px; }
.loc-card-services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loc-card-services .loc-tag { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 6px 8px; white-space: nowrap; }
.loc-card-actions { margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) { .loc-card h4, .loc-card-addr { min-height: 0; } }

.footer-col .footer-phone { display: inline-block; margin-top: 2px; color: var(--fg-dim); }

@media (max-width: 720px) { .hero--video { min-height: calc(100vh - 145px); min-height: calc(100svh - 145px); } }

/* Детейлинг: остальные услуги */
.detailing-more { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; gap: 24px; align-items: baseline; }
.detailing-more-label { flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detailing-more-links { display: flex; flex-wrap: wrap; gap: 8px; }
.detailing-more-links .loc-tag { text-decoration: none; transition: border-color .2s, color .2s; }
.detailing-more-links .loc-tag:hover { border-color: var(--ice); color: var(--ice); }
@media (max-width: 720px) { .detailing-more { flex-direction: column; gap: 14px; } }

/* Карточки услуг: ровные строки, бейдж Premium не сдвигает заголовок */
.service-card .num { display: flex; align-items: center; min-height: 26px; }
.service-card .num .badge-premium { margin-left: 8px; line-height: 1.4; }

/* Отзывы на мобильной версии: ровные одинаковые блоки */
@media (max-width: 900px) {
	.reviews-summary { grid-template-columns: auto 1fr; gap: 14px 20px; padding: 22px 20px; align-items: center; }
	.reviews-summary > div[style*="width:1px"] { display: none; }
	.reviews-summary .big { font-size: 44px; line-height: 1; }
	.reviews-summary > .meta { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--border); }
	.reviews-summary .btn { grid-column: 1 / -1; justify-content: center; width: 100%; white-space: nowrap; }
}

/* Нижняя панель на мобильной: «Позвонить» на плотном фоне */
.sticky-cta .btn-ghost {
	background: rgba(18, 20, 24, .94);
	border-color: rgba(168, 216, 240, .35);
	color: var(--fg);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	white-space: nowrap;
}

/* Шапка на мобильной: бургер у правого края, кнопка в одну строку */
@media (max-width: 980px) {
	.header-inner { grid-template-columns: auto 1fr; gap: 12px; padding-left: 20px; padding-right: 20px; }
	.header-cta { justify-self: end; gap: 10px; }
	.header-cta .btn { white-space: nowrap; padding: 11px 16px; font-size: 13px; }
}
@media (max-width: 400px) {
	.header-cta .btn { padding: 10px 12px; font-size: 12px; }
	.header-cta .btn .btn-arrow { display: none; }
	.brand-logo { height: 34px; }
}

/* Шапка по сетке контента: боковые поля как у .container */
.header-inner { padding-left: 32px; padding-right: 32px; }
@media (max-width: 720px) { .header-inner { padding-left: 20px; padding-right: 20px; } }

/* Баннер cookie */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; max-width: 460px; z-index: 95; padding: 20px 22px; background: rgba(18, 20, 24, .97); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 16px 48px rgba(0, 0, 0, .55); }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--fg-dim); }
.cookie-text a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; justify-content: center; padding: 11px 16px; font-size: 13px; }
.cookie-settings { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cookie-settings:hover { color: var(--ice); }
@media (max-width: 720px) { .cookie-banner { left: 12px; right: 12px; bottom: 84px; max-width: none; } }

/* Баннер cookie: короткий текст и одна кнопка */
.cookie-banner { max-width: 380px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; }
.cookie-text { margin: 0; font-size: 13px; }
.cookie-actions { flex: none; }
.cookie-actions .btn { flex: none; padding: 10px 22px; }
@media (max-width: 720px) { .cookie-banner { max-width: none; } }

/* Лайтбокс: кнопки поверх фото и доступны для нажатия, фото не обрезается */
.lightbox-inner { overflow: visible; }
.lightbox-img { z-index: 1; }
.lightbox-nav, .lightbox-close, .lightbox-meta { z-index: 3; }
@media (max-width: 720px) {
	.lightbox { padding: 12px; }
	.lightbox-inner { aspect-ratio: auto; width: 100%; height: calc(100svh - 24px); max-height: 760px; background: transparent; border: 0; }
	.lightbox-img { object-fit: contain; border-radius: 10px; }
	.lightbox-close { top: 10px; right: 10px; background: rgba(0, 0, 0, .55); width: 42px; height: 42px; }
	.lightbox-nav { width: 44px; height: 44px; background: rgba(0, 0, 0, .55); }
	.lightbox-nav.prev { left: 6px; }
	.lightbox-nav.next { right: 6px; }
	.lightbox-meta { left: 50%; transform: translateX(-50%); bottom: 14px; background: rgba(0, 0, 0, .55); padding: 6px 12px; border-radius: 99px; color: var(--fg-dim); white-space: nowrap; }
}
