/*
Theme Name: Тойота-Юг
Theme URI: https://toyotaug.ru/
Author: Toyota-Yug
Description: Тема мультибрендового автосервиса с акцентом на обслуживание легковых автопарков организаций: баннер «Договоры с организациями / работаем с НДС» на всех страницах, страница для юрлиц, услуги, статьи, галерея, документы, карта в подвале, ЧПУ-имена картинок, Schema.org и llms.txt. Безопасная установка на рабочий сайт.
Version: 2.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toyota-yug
*/

/* ---------- Переменные ---------- */
:root {
	--ty-red: #d71921;
	--ty-red-dark: #b0121a;
	--ty-red-light: #ff6b71;
	--ty-red-soft: #fff1f1;
	--ty-red-border: #ffd9db;
	--ty-red-a35: rgba(215, 25, 33, .35);
	--ty-red-a45: rgba(215, 25, 33, .45);
	--ty-ink: #1b1d21;
	--ty-ink-2: #2a2d33;
	--ty-text: #2b2f36;
	--ty-muted: #646b76;
	--ty-line: #e3e6ea;
	--ty-bg: #ffffff;
	--ty-bg-alt: #f4f5f7;
	--ty-radius: 12px;
	--ty-shadow: 0 6px 24px rgba(20, 22, 26, .08);
	--ty-header-h: 64px;
	--ty-gap: 16px;
	--ty-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ty-header-h) + 12px); }
/* clip, а не hidden: hidden ломает position:sticky у шапки */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--ty-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ty-text);
	background: var(--ty-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ty-red); text-decoration: none; }
a:hover { color: var(--ty-red-dark); }
h1, h2, h3, h4 { color: var(--ty-ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
body.ty-menu-open { overflow: hidden; }
.ty-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 12px; }
.ty-skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--ty-red-a45); outline-offset: 2px; }

.ty-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--ty-gap); }
.ty-ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

/* ---------- Кнопки ---------- */
.ty-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: 10px 20px;
	border: 2px solid transparent; border-radius: 999px;
	font: 600 15px/1.2 var(--ty-font); text-align: center; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.ty-btn:active { transform: translateY(1px); }
.ty-btn--primary { background: var(--ty-red); color: #fff; }
.ty-btn--primary:hover { background: var(--ty-red-dark); color: #fff; }
.ty-btn--outline { border-color: var(--ty-red); color: var(--ty-red); background: transparent; }
.ty-btn--outline:hover { background: var(--ty-red); color: #fff; }
.ty-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.ty-btn--ghost:hover { background: #fff; color: var(--ty-ink); }
.ty-btn--light { background: #fff; color: var(--ty-red); }
.ty-btn--light:hover { background: var(--ty-red-soft); color: var(--ty-red-dark); }
.ty-btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.ty-btn--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.ty-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.ty-btn--block { width: 100%; }

/* ---------- Шапка (mobile-first: off-canvas меню по умолчанию) ---------- */
.ty-header {
	position: -webkit-sticky; position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--ty-line);
	transition: box-shadow .2s;
}
.admin-bar .ty-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ty-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .ty-header { top: 0; } }
.ty-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.ty-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--ty-header-h); }
.ty-header__logo { flex: 1 1 auto; min-width: 0; }
.ty-header__logo img { max-height: 44px; width: auto; }
.ty-logo-text { display: flex; flex-direction: column; color: var(--ty-ink); line-height: 1.15; }
.ty-logo-text__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ty-logo-text__name::first-letter { color: var(--ty-red); }
.ty-logo-text__tag { font-size: 12px; color: var(--ty-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-header__contact { display: none; }
.ty-header__call {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; background: var(--ty-red); color: #fff; flex: 0 0 auto;
}
.ty-header__call:hover { color: #fff; background: var(--ty-red-dark); }

.ty-burger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; flex: 0 0 auto;
	border: 1px solid var(--ty-line); border-radius: 10px; background: #fff; color: var(--ty-ink); cursor: pointer;
}
.ty-burger .ty-ico { width: 26px; height: 26px; }
.ty-burger .ty-ico--close, .ty-burger[aria-expanded="true"] .ty-ico--menu { display: none; }
.ty-burger[aria-expanded="true"] .ty-ico--close { display: block; }

.ty-nav {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
	width: min(88vw, 360px); height: 100vh; height: 100dvh;
	display: flex; flex-direction: column;
	padding: 14px 18px 18px; background: #fff;
	box-shadow: -10px 0 40px rgba(0,0,0,.18);
	transform: translateX(105%); visibility: hidden;
	transition: transform .28s ease, visibility 0s linear .28s;
	overflow-y: auto; /* страховка только для очень низких экранов */
}
.ty-nav.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
.ty-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ty-nav__title { font-weight: 700; color: var(--ty-ink); }
.ty-nav__close { width: 40px; height: 40px; border: 0; background: none; color: var(--ty-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ty-nav__close .ty-ico { width: 26px; height: 26px; }
.ty-menu { list-style: none; margin: 0; padding: 0; }
.ty-menu a { display: block; padding: 10px 2px; color: var(--ty-ink); font-weight: 600; border-bottom: 1px solid var(--ty-line); }
.ty-menu a:hover, .ty-menu .current-menu-item > a { color: var(--ty-red); }
.ty-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 0 14px; }
.ty-menu .sub-menu a { font-weight: 500; }
.ty-nav__extra { margin-top: 14px; display: grid; gap: 10px; }
.ty-nav__hours { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ty-muted); font-size: 14px; }
.ty-nav__b2b { display: block; padding: 10px 12px; border-radius: 10px; background: var(--ty-red-soft); color: var(--ty-red-dark); font-weight: 700; font-size: 14px; line-height: 1.35; }
.ty-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(15, 16, 19, .5); }
.ty-overlay[hidden] { display: none; }

/* Очень маленькие телефоны */
@media (max-width: 380px) {
	:root { --ty-gap: 12px; --ty-header-h: 58px; }
	.ty-header__inner { gap: 8px; }
	.ty-logo-text__name { font-size: 18px; }
	.ty-logo-text__tag { display: none; }
	.ty-header__call, .ty-burger { width: 40px; height: 40px; }
	.ty-btn--lg { padding: 12px 20px; }
}

/* Планшет: показываем телефон текстом */
@media (min-width: 640px) {
	:root { --ty-gap: 24px; --ty-header-h: 72px; }
	.ty-header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
	.ty-header__phone { color: var(--ty-ink); font-weight: 800; font-size: 17px; white-space: nowrap; }
	.ty-header__hours { color: var(--ty-muted); font-size: 12px; white-space: nowrap; }
}

/* Десктоп: меню в одну строку (запас ширины рассчитан на 7 пунктов) */
@media (min-width: 1140px) {
	.ty-header__logo { flex: 0 0 auto; }
	.ty-header__call, .ty-burger, .ty-overlay, .ty-nav__head, .ty-nav__extra { display: none !important; }
	.ty-nav {
		position: static; width: auto; height: auto; padding: 0; margin-left: auto;
		transform: none; visibility: visible; box-shadow: none; overflow: visible; background: none;
		flex-direction: row; transition: none;
	}
	.ty-menu { display: flex; align-items: center; gap: 2px; }
	.ty-menu > li { position: relative; }
	.ty-menu > li > a { padding: 8px 10px; border: 0; border-radius: 8px; font-size: 15px; white-space: nowrap; }
	.ty-menu > li > a:hover { background: var(--ty-bg-alt); }
	.ty-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: #fff;
		border-radius: 10px; box-shadow: var(--ty-shadow); opacity: 0; visibility: hidden; transition: opacity .15s;
	}
	.ty-menu li:hover > .sub-menu, .ty-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
	.ty-menu .sub-menu a { border: 0; padding: 8px 10px; }
	.ty-header__contact { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--ty-line); }
}
@media (min-width: 1400px) {
	.ty-menu > li > a { padding: 8px 14px; }
	.ty-header__contact { margin-left: 26px; padding-left: 26px; }
}

/* ---------- Баннер «Договоры / НДС» ---------- */
.ty-b2b {
	position: relative; overflow: hidden; color: #fff;
	background:
		repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
		linear-gradient(110deg, var(--ty-ink) 0%, var(--ty-ink-2) 52%, var(--ty-red) 52.1%, var(--ty-red-dark) 100%);
}
.ty-b2b::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}
.ty-b2b__inner { position: relative; z-index: 1; display: grid; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.ty-b2b__title {
	margin: 0; font-weight: 900; letter-spacing: -.01em; line-height: 1.12;
	font-size: clamp(22px, 5.2vw, 40px); text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ty-b2b__sub { margin: 6px 0 0; font-size: clamp(13px, 2.6vw, 16px); color: rgba(255,255,255,.85); }
.ty-b2b__badge {
	justify-self: start; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--ty-red);
	font-weight: 900; font-size: clamp(16px, 3.6vw, 22px); text-transform: uppercase; letter-spacing: .02em;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
	animation: ty-pulse 2.6s ease-in-out infinite;
}
.ty-b2b__badge .ty-ico { width: 1.1em; height: 1.1em; }
.ty-b2b__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ty-b2b__actions .ty-btn { flex: 1 1 140px; padding-left: 12px; padding-right: 12px; }
@keyframes ty-pulse {
	0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 0 rgba(255,255,255,.55); }
	50% { box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 10px rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .ty-b2b__badge { animation: none; } }
@media (max-width: 767px) {
	.ty-b2b { background:
		repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
		linear-gradient(160deg, var(--ty-ink) 0%, var(--ty-ink-2) 55%, var(--ty-red-dark) 100%); }
}
@media (min-width: 900px) {
	.ty-b2b__inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
	.ty-b2b__badge { justify-self: center; }
	.ty-b2b__actions { flex-direction: column; }
	.ty-b2b__actions .ty-btn { flex: 0 0 auto; }
}

/* ---------- Секции ---------- */
.ty-main { display: block; }
.ty-section { padding: 48px 0; }
.ty-section--alt { background: var(--ty-bg-alt); }
.ty-section--dark { background: var(--ty-ink); color: #e9ebee; }
.ty-section--dark .ty-section__title { color: #fff; }
.ty-section__head { margin-bottom: 24px; }
.ty-section__title { font-size: clamp(24px, 4vw, 36px); margin: 0; }
.ty-section__cta { margin-top: 28px; text-align: center; }
.ty-eyebrow { margin: 0 0 8px; color: var(--ty-red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.ty-lead { font-size: 18px; color: var(--ty-muted); max-width: 820px; }
@media (min-width: 900px) { .ty-section { padding: 72px 0; } }

/* Первый экран */
.ty-hero {
	background:
		radial-gradient(1000px 400px at 85% 0%, var(--ty-red-a35), transparent 60%),
		linear-gradient(180deg, var(--ty-ink-2), var(--ty-ink));
	color: #e9ebee; padding: 44px 0;
}
.ty-hero__inner { display: grid; gap: 28px; }
.ty-hero .ty-eyebrow { color: var(--ty-red-light); }
.ty-hero__title { color: #fff; font-size: clamp(28px, 5.4vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.ty-hero__lead { font-size: clamp(16px, 2.4vw, 19px); color: #c9cdd3; max-width: 680px; }
.ty-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ty-hero__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ty-hero__facts li { display: grid; gap: 2px; padding: 14px; border-radius: var(--ty-radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.ty-hero__facts .ty-ico { color: var(--ty-red-light); width: 26px; height: 26px; margin-bottom: 4px; }
.ty-hero__facts strong { color: #fff; font-size: 16px; line-height: 1.25; }
.ty-hero__facts span { font-size: 13px; color: #aab0b8; }
@media (min-width: 1000px) {
	.ty-hero { padding: 80px 0; }
	.ty-hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
}

/* Преимущества */
.ty-features { display: grid; gap: 14px; }
.ty-feature { padding: 22px; background: #fff; border-radius: var(--ty-radius); box-shadow: var(--ty-shadow); }
.ty-feature .ty-ico { width: 34px; height: 34px; color: var(--ty-red); margin-bottom: 10px; }
.ty-feature h3 { font-size: 18px; margin-bottom: 6px; }
.ty-feature p { margin: 0; color: var(--ty-muted); font-size: 15px; }
@media (min-width: 640px) { .ty-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ty-features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Сетки и карточки */
.ty-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .ty-grid--3, .ty-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ty-grid--3 { grid-template-columns: repeat(3, 1fr); } .ty-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .ty-grid--4 { grid-template-columns: repeat(4, 1fr); } .ty-grid { gap: 20px; } }
.ty-card { background: #fff; border-radius: var(--ty-radius); box-shadow: var(--ty-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ty-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,22,26,.12); }
.ty-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.ty-card__link:hover { color: inherit; }
.ty-card__media { aspect-ratio: 16 / 10; background: var(--ty-bg-alt); overflow: hidden; }
.ty-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ty-card__placeholder { display: flex; height: 100%; align-items: center; justify-content: center; color: #c5cad1; }
.ty-card__placeholder .ty-ico { width: 56px; height: 56px; }
.ty-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ty-card__date { font-size: 13px; color: var(--ty-muted); margin-bottom: 4px; }
.ty-card__title { font-size: 18px; margin-bottom: 6px; }
.ty-card__excerpt { font-size: 14px; color: var(--ty-muted); margin-bottom: 12px; }
.ty-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ty-red); font-size: 14px; }
.ty-card__more .ty-ico { width: 16px; height: 16px; }

/* Галерея */
.ty-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ty-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ty-gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.ty-gallery__item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ty-bg-alt); }
.ty-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ty-gallery__item:hover img { transform: scale(1.05); }
.ty-lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.88); }
.ty-lightbox[hidden] { display: none; }
.ty-lightbox img { max-height: 90vh; max-width: 100%; width: auto; border-radius: 6px; }
.ty-lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* Города */
.ty-cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ty-cities li { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.ty-cities .ty-ico { color: var(--ty-red-light); width: 18px; height: 18px; }
.ty-cities--light li { background: var(--ty-bg-alt); border-color: var(--ty-line); color: var(--ty-ink); }
.ty-cities--light .ty-ico { color: var(--ty-red); }

/* Контакты */
.ty-contacts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ty-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.ty-contacts .ty-ico { color: var(--ty-red); margin-top: 3px; }
.ty-contacts a { color: inherit; font-weight: 600; }
.ty-contact-block { display: grid; gap: 24px; }
.ty-contact-block__cta { padding: 24px; border-radius: var(--ty-radius); background: var(--ty-bg-alt); }
@media (min-width: 900px) { .ty-contact-block { grid-template-columns: 1fr 1fr; align-items: start; } }
.ty-requisites { font-size: 14px; color: var(--ty-muted); margin-top: 14px; }

/* ---------- Внутренние страницы ---------- */
.ty-page { padding-top: 24px; padding-bottom: 56px; }
.ty-page--narrow { max-width: 860px; }
.ty-page__title { font-size: clamp(26px, 4.4vw, 40px); }
.ty-page__image { margin: 0 0 24px; border-radius: var(--ty-radius); overflow: hidden; }
.ty-meta { color: var(--ty-muted); font-size: 14px; }
.ty-crumbs { font-size: 14px; color: var(--ty-muted); margin-bottom: 14px; }
.ty-crumbs a { color: var(--ty-muted); }
.ty-crumbs a:hover { color: var(--ty-red); }
.ty-crumbs__sep { margin: 0 8px; opacity: .5; }
.ty-content { font-size: 17px; }
.ty-content h2 { font-size: clamp(22px, 3.2vw, 28px); margin-top: 1.6em; }
.ty-content h3 { margin-top: 1.4em; }
.ty-content ul, .ty-content ol { padding-left: 1.3em; }
.ty-content li { margin-bottom: .4em; }
.ty-content img { border-radius: 8px; }
.ty-content table { width: 100%; border-collapse: collapse; }
.ty-content td, .ty-content th { border: 1px solid var(--ty-line); padding: 8px 10px; }
.ty-content .ty-checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.ty-content .ty-checklist li { position: relative; padding: 14px 16px 14px 46px; border-radius: 10px; background: var(--ty-bg-alt); margin: 0; }
.ty-content .ty-checklist li::before {
	content: ""; position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--ty-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ty-content .ty-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.ty-content .ty-steps li { counter-increment: s; position: relative; padding: 4px 0 4px 50px; min-height: 36px; margin: 0; }
.ty-content .ty-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ty-ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Услуга */
.ty-service, .ty-b2b-page { display: grid; gap: 28px; }
@media (min-width: 1000px) {
	.ty-service, .ty-b2b-page { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 40px; }
	.ty-service__aside, .ty-b2b-page__aside { position: -webkit-sticky; position: sticky; top: calc(var(--ty-header-h) + 20px); }
}
.ty-service__aside, .ty-b2b-page__aside { display: grid; gap: 16px; }
.ty-aside-card { padding: 22px; border-radius: var(--ty-radius); background: #fff; box-shadow: var(--ty-shadow); display: grid; gap: 12px; }
.ty-aside-card p { margin: 0; }
.ty-aside-card__title { font-weight: 800; font-size: 18px; color: var(--ty-ink); line-height: 1.3; }
.ty-aside-card__hours { display: flex; align-items: center; gap: 8px; color: var(--ty-muted); font-size: 14px; }
.ty-aside-card--b2b { background: var(--ty-red-soft); border: 1px solid var(--ty-red-border); box-shadow: none; }
.ty-aside-card--accent { background: linear-gradient(150deg, var(--ty-red), var(--ty-red-dark)); color: #fff; }
.ty-aside-card--accent .ty-aside-card__title { color: #fff; font-size: 22px; }
.ty-aside-card__badge { justify-self: start; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--ty-red); font-weight: 900; text-transform: uppercase; font-size: 14px; }
.ty-aside-card__note { font-size: 13px; opacity: .85; }
.ty-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ty-mini-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ty-mini-list .ty-ico { color: var(--ty-red); }
.ty-related { margin-top: 56px; }
.ty-related .ty-section__title { margin-bottom: 20px; }

/* CTA-блок */
.ty-cta-box { margin-top: 40px; padding: 24px; border-radius: var(--ty-radius); background: var(--ty-ink); color: #dfe2e6; display: grid; gap: 16px; }
.ty-cta-box__title { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.ty-cta-box p { margin: 0; }
.ty-cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ty-cta-box .ty-btn--outline { border-color: #fff; color: #fff; }
@media (min-width: 800px) { .ty-cta-box { grid-template-columns: 1fr auto; align-items: center; } }

/* Документы */
.ty-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ty-docs__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; background: var(--ty-bg-alt); }
.ty-docs__item .ty-ico { color: var(--ty-red); width: 28px; height: 28px; }
.ty-docs__title { display: block; font-weight: 700; color: var(--ty-ink); }
.ty-docs__dl { font-size: 14px; font-weight: 600; }

/* Пагинация */
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--ty-bg-alt); color: var(--ty-ink); font-weight: 600; padding: 0 10px; }
.page-numbers.current { background: var(--ty-red); color: #fff; }

/* ---------- Подвал ---------- */
.ty-footer { background: var(--ty-ink); color: #b9bec6; font-size: 15px; }
.ty-footer__map { line-height: 0; background: #222; }
.ty-footer__map iframe { width: 100% !important; height: 340px; border: 0; display: block; }
.ty-footer__map > div { width: 100% !important; }
.ty-footer__grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
@media (min-width: 760px) { .ty-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ty-footer__grid { grid-template-columns: 1.2fr .8fr 1.2fr; } }
.ty-footer__name { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 2px; }
.ty-footer__tag { color: #8b919a; margin-bottom: 16px; }
.ty-footer__h { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin-bottom: 14px; }
.ty-footer .ty-contacts a { color: #e8eaed; }
.ty-footer .ty-contacts .ty-ico { color: var(--ty-red-light); }
.ty-footer__menu, .ty-footer .ty-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ty-footer__menu a, .ty-footer .ty-menu a { color: #b9bec6; border: 0; padding: 0; font-weight: 500; }
.ty-footer__menu a:hover, .ty-footer .ty-menu a:hover { color: #fff; }
.ty-footer__b2b strong { color: #fff; }
.ty-footer__cities { font-size: 14px; }
.ty-footer__cities span { color: #fff; font-weight: 600; }
.ty-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #7d838c; }
.ty-footer__bottom a { color: #b9bec6; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--ty-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.ty-404 { text-align: center; padding-top: 64px; }
.ty-404__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
