/*
Theme Name: Spirit Team
Theme URI: https://spiritagency.space/
Author: Spirit Agency
Author URI: https://spiritagency.space/
Description: Тёмная тема для сателлитного субдомена с вакансией chat-менеджера и sales-менеджера. Без фотографий: вместо них макет переписки, сетка смен и расчёт зарплаты. Ставится и работает сразу, плагины не нужны.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spirit-team
Tags: one-column, custom-menu, custom-logo, custom-colors, translation-ready, blog, landing
*/

/* =========================================================
   Токены
   ========================================================= */
:root {
	--st-bg: #0c0b0c;
	--st-bg-2: #121011;
	--st-panel: #191617;
	--st-line: #2a2526;
	--st-line-2: #3a3335;
	--st-white: #fff;
	--st-text: #b4adae;
	--st-dim: #7f7879;
	--st-accent: #e8402e;
	--st-accent-dk: #bd2f20;
	--st-accent-soft: rgba(232, 64, 46, .12);
	--st-ok: #4caf7d;
	--st-head: "Space Grotesk", "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
	--st-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--st-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--st-r: 12px;
	--st-r-sm: 8px;
	--st-wrap: 1200px;
	--st-t: .24s ease;
}

/* =========================================================
   База
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
	margin: 0;
	background: var(--st-bg);
	color: var(--st-text);
	font-family: var(--st-body);
	font-size: 16px;
	line-height: 1.66;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--st-accent); text-decoration: none; transition: color var(--st-t); }
a:hover { color: #fff; }

h1, h2, h3, h4 {
	font-family: var(--st-head);
	color: var(--st-white);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.02em;
	margin: 0 0 .55em;
}
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(18px, 1.9vw, 21px); }

p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--st-line); margin: 34px 0; }

blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--st-accent); color: #ddd7d7; font-style: italic; }
code, pre { font-family: var(--st-mono); background: var(--st-panel); color: #ffb0a3; font-size: 14px; border-radius: 6px; }
pre { padding: 16px; overflow-x: auto; border: 1px solid var(--st-line); }

table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
th, td { border: 1px solid var(--st-line); padding: 10px 13px; text-align: left; }
th { color: #fff; background: var(--st-panel); }

::selection { background: var(--st-accent); color: #fff; }

.st-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.st-skip:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto;
	background: var(--st-accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}

/* =========================================================
   Каркас
   ========================================================= */
.st-wrap { width: 100%; max-width: var(--st-wrap); margin: 0 auto; padding: 0 22px; }
.st-sec { padding: clamp(58px, 7vw, 100px) 0; position: relative; }
.st-sec--alt { background: var(--st-bg-2); border-block: 1px solid var(--st-line); }

.st-head { max-width: 700px; margin-bottom: 42px; }
.st-head--mid { margin-inline: auto; text-align: center; }

.st-kick {
	display: inline-block;
	font-family: var(--st-mono);
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--st-accent); margin-bottom: 14px;
}
.st-kick::before { content: "// "; opacity: .6; }

.st-lead { font-size: clamp(15.5px, 1.5vw, 17.5px); }

.st-cols { display: grid; gap: 20px; }
.st-cols--2 { grid-template-columns: repeat(2, 1fr); }
.st-cols--3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   Кнопки
   ========================================================= */
.st-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 15px 30px;
	font-family: var(--st-head); font-size: 14.5px; font-weight: 600; line-height: 1;
	border: 1px solid transparent; border-radius: var(--st-r-sm); cursor: pointer;
	transition: background var(--st-t), border-color var(--st-t), color var(--st-t), transform var(--st-t);
}
.st-btn--fill { background: var(--st-accent); color: #fff; }
.st-btn--fill:hover { background: var(--st-accent-dk); color: #fff; transform: translateY(-2px); }
.st-btn--line { background: transparent; color: #fff; border-color: var(--st-line-2); }
.st-btn--line:hover { border-color: var(--st-accent); color: var(--st-accent); transform: translateY(-2px); }
.st-btn--sm { padding: 10px 19px; font-size: 13px; }
.st-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.st-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   Шапка
   ========================================================= */
.st-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(12, 11, 12, .9); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--st-line);
}
.st-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }

.st-brand { display: flex; align-items: center; gap: 10px; }
.st-brand__n { font-family: var(--st-head); font-size: 16px; font-weight: 700; color: #fff; line-height: 1.15; }
.st-brand__n:hover { color: var(--st-accent); }
.st-brand__s { display: block; font-family: var(--st-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-dim); }
.st-brand img { max-height: 40px; width: auto; }

.st-nav { display: flex; align-items: center; gap: 24px; }
.st-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.st-nav a { font-family: var(--st-head); font-size: 13.5px; font-weight: 500; color: #ded8d8; }
.st-nav a:hover, .st-nav li.st-on > a, .st-nav .current-menu-item > a { color: var(--st-accent); }

.st-burger {
	display: none; width: 40px; height: 40px; padding: 0; position: relative;
	background: transparent; border: 1px solid var(--st-line); border-radius: var(--st-r-sm); cursor: pointer;
}
.st-burger span, .st-burger span::before, .st-burger span::after {
	content: ""; position: absolute; left: 50%; margin-left: -9px;
	width: 18px; height: 2px; background: #fff; transition: transform var(--st-t);
}
.st-burger span { top: 50%; margin-top: -1px; }
.st-burger span::before { margin-left: 0; top: -6px; }
.st-burger span::after { margin-left: 0; top: 6px; }
.st-burger.st-open span { background: transparent; }
.st-burger.st-open span::before { transform: translateY(6px) rotate(45deg); }
.st-burger.st-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Первый экран
   ========================================================= */
.st-hero { padding: clamp(50px, 6vw, 78px) 0; position: relative; overflow: hidden; }
.st-hero::before {
	content: ""; position: absolute; left: -10%; top: -40%;
	width: 60vw; height: 60vw; border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 64, 46, .13), transparent 62%);
	filter: blur(60px); pointer-events: none;
}
.st-hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.st-hero h1 { margin-bottom: 16px; }
.st-hero__sub { font-size: clamp(15.5px, 1.6vw, 18px); max-width: 520px; margin-bottom: 26px; }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.st-chips li {
	padding: 7px 14px; border-radius: 100px;
	border: 1px solid var(--st-line); background: var(--st-panel);
	font-family: var(--st-mono); font-size: 12.5px; color: #ddd6d6;
}

/* Карточка вакансии */
.st-offer {
	background: var(--st-panel); border: 1px solid var(--st-line); border-radius: var(--st-r);
	overflow: hidden;
}
.st-offer__top {
	padding: 16px 22px; border-bottom: 1px solid var(--st-line);
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: linear-gradient(90deg, var(--st-accent-soft), transparent);
}
.st-offer__title { font-family: var(--st-head); font-size: 15px; font-weight: 700; color: #fff; }
.st-offer__live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--st-mono); font-size: 11.5px; color: var(--st-ok); }
.st-offer__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-ok); animation: stBlink 1.9s infinite; }
@keyframes stBlink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.st-offer__body { padding: 8px 22px 22px; }
.st-offer__row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--st-line); font-size: 14.5px; }
.st-offer__row:last-of-type { border-bottom: 0; }
.st-offer__k { color: var(--st-dim); }
.st-offer__v { color: #fff; font-family: var(--st-mono); font-size: 14px; text-align: right; }
.st-offer .st-btn { width: 100%; margin-top: 16px; }
.st-offer__note { text-align: center; font-size: 12.5px; color: var(--st-dim); margin: 11px 0 0; }

/* =========================================================
   Полоса цифр
   ========================================================= */
.st-bar { border-block: 1px solid var(--st-line); background: var(--st-bg-2); }
.st-bar__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.st-bar__i { padding: 26px 20px; border-right: 1px solid var(--st-line); }
.st-bar__i:last-child { border-right: 0; }
.st-bar__v { font-family: var(--st-head); font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 7px; }
.st-bar__l { font-size: 12.5px; color: var(--st-dim); }

/* =========================================================
   Макет переписки — вместо фото
   ========================================================= */
.st-chat {
	background: var(--st-panel); border: 1px solid var(--st-line); border-radius: var(--st-r);
	overflow: hidden;
}
.st-chat__top {
	display: flex; align-items: center; gap: 10px;
	padding: 13px 18px; border-bottom: 1px solid var(--st-line); background: var(--st-bg-2);
}
.st-chat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--st-line-2); flex: none; }
.st-chat__dot--live { background: var(--st-ok); }
.st-chat__who { font-family: var(--st-head); font-size: 14px; font-weight: 600; color: #fff; }
.st-chat__meta { font-family: var(--st-mono); font-size: 11.5px; color: var(--st-dim); margin-left: auto; }

.st-chat__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.st-msg { max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.st-msg--in { align-self: flex-start; background: #221d1e; border-bottom-left-radius: 4px; color: #ddd7d7; }
.st-msg--out { align-self: flex-end; background: var(--st-accent); color: #fff; border-bottom-right-radius: 4px; }
.st-msg__t { display: block; font-family: var(--st-mono); font-size: 10.5px; opacity: .65; margin-top: 5px; }

.st-chat__typing { display: flex; align-items: center; gap: 5px; align-self: flex-start; padding: 12px 16px; background: #221d1e; border-radius: 14px; border-bottom-left-radius: 4px; }
.st-chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--st-dim); animation: stType 1.3s infinite; }
.st-chat__typing i:nth-child(2) { animation-delay: .18s; }
.st-chat__typing i:nth-child(3) { animation-delay: .36s; }
@keyframes stType { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.st-chat__foot {
	padding: 12px 18px; border-top: 1px solid var(--st-line); background: var(--st-bg-2);
	font-family: var(--st-mono); font-size: 11.5px; color: var(--st-dim);
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.st-chat__foot b { color: var(--st-ok); font-weight: 500; }

/* =========================================================
   Карточки
   ========================================================= */
.st-card {
	background: var(--st-panel); border: 1px solid var(--st-line); border-radius: var(--st-r);
	padding: 26px 24px; transition: border-color var(--st-t), transform var(--st-t);
}
.st-card:hover { border-color: var(--st-accent); transform: translateY(-3px); }
.st-card__n { font-family: var(--st-mono); font-size: 12px; color: var(--st-accent); display: block; margin-bottom: 13px; }
.st-card h3 { margin-bottom: 8px; }
.st-card p { font-size: 14.5px; margin: 0; }

/* =========================================================
   Расчёт зарплаты
   ========================================================= */
.st-pay { border: 1px solid var(--st-line); border-radius: var(--st-r); overflow: hidden; max-width: 860px; margin: 0 auto; }
.st-pay__r { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 17px 22px; border-bottom: 1px solid var(--st-line); background: var(--st-panel); }
.st-pay__r:last-child { border-bottom: 0; }
.st-pay__r--sum { background: linear-gradient(90deg, var(--st-accent-soft), transparent 70%); }
.st-pay__k { font-size: 14.5px; }
.st-pay__k b { display: block; font-family: var(--st-head); color: #fff; font-weight: 600; font-size: 15px; }
.st-pay__k span { font-size: 13px; color: var(--st-dim); }
.st-pay__v { font-family: var(--st-mono); font-size: clamp(16px, 2vw, 22px); color: #fff; white-space: nowrap; }
.st-pay__r--sum .st-pay__v { color: var(--st-accent); font-size: clamp(20px, 2.6vw, 28px); }

/* =========================================================
   Сетка смен
   ========================================================= */
.st-shifts { max-width: 620px; }
.st-shifts__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.st-shifts__d {
	aspect-ratio: 1; border-radius: var(--st-r-sm);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	background: var(--st-panel); border: 1px solid var(--st-line);
	font-family: var(--st-mono); font-size: 13px; color: var(--st-dim);
}
.st-shifts__d small { font-size: 9.5px; letter-spacing: .04em; }
.st-shifts__d--on { background: rgba(232, 64, 46, .16); border-color: var(--st-accent); color: #fff; }
.st-shifts__d--on small { color: var(--st-accent); }
.st-shifts__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--st-dim); }
.st-shifts__legend span { display: inline-flex; align-items: center; gap: 7px; }
.st-shifts__legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--st-panel); border: 1px solid var(--st-line); }
.st-shifts__legend i.on { background: rgba(232, 64, 46, .3); border-color: var(--st-accent); }

/* =========================================================
   Требования
   ========================================================= */
.st-req { border: 1px solid var(--st-line); border-radius: var(--st-r); padding: 28px 24px; background: var(--st-panel); }
.st-req h3 { display: flex; align-items: center; gap: 9px; }
.st-req ul { list-style: none; padding: 0; margin: 16px 0 0; }
.st-req li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 14.5px; }
.st-req--yes li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--st-ok); border-bottom: 2px solid var(--st-ok); transform: rotate(-45deg); }
.st-req--no li { color: var(--st-dim); }
.st-req--no li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 10px; height: 2px; background: #554e4f; }

/* =========================================================
   Обучение — таймлайн
   ========================================================= */
.st-learn { position: relative; padding-left: 30px; max-width: 760px; }
.st-learn::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--st-line); }
.st-learn__i { position: relative; padding-bottom: 26px; }
.st-learn__i:last-child { padding-bottom: 0; }
.st-learn__i::before {
	content: ""; position: absolute; left: -27px; top: 6px;
	width: 9px; height: 9px; border-radius: 50%; background: var(--st-accent);
}
.st-learn__w { font-family: var(--st-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-accent); }
.st-learn h3 { font-size: 17px; margin: 5px 0 5px; }
.st-learn p { font-size: 14.5px; margin: 0; }

/* =========================================================
   Отзывы
   ========================================================= */
.st-quote { background: var(--st-panel); border: 1px solid var(--st-line); border-radius: var(--st-r); padding: 26px 24px; }
.st-quote p { font-size: 14.8px; color: #ddd7d7; }
.st-quote__by { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--st-line); }
.st-quote__ava {
	width: 36px; height: 36px; border-radius: var(--st-r-sm); flex: none;
	display: flex; align-items: center; justify-content: center;
	background: var(--st-accent-soft); color: var(--st-accent);
	font-family: var(--st-head); font-weight: 700; font-size: 14px;
}
.st-quote__n { display: block; color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.st-quote__m { display: block; font-family: var(--st-mono); font-size: 12px; color: var(--st-dim); }

/* =========================================================
   FAQ
   ========================================================= */
.st-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.st-faq__i { border: 1px solid var(--st-line); border-radius: var(--st-r-sm); background: var(--st-panel); }
.st-faq__i.st-open { border-color: var(--st-accent); }
.st-faq__b {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: none; border: 0; cursor: pointer; padding: 18px 20px; text-align: left;
	font-family: var(--st-head); font-size: clamp(15px, 1.6vw, 16.5px); font-weight: 600; color: #fff;
}
.st-faq__b span:last-child { flex: none; font-family: var(--st-mono); color: var(--st-accent); font-size: 17px; }
.st-faq__p { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.st-faq__p > div { padding: 0 20px 18px; font-size: 15px; }

/* =========================================================
   Блог
   ========================================================= */
.st-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-post {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--st-panel); border: 1px solid var(--st-line); border-radius: var(--st-r);
	transition: border-color var(--st-t), transform var(--st-t);
}
.st-post:hover { border-color: var(--st-accent); transform: translateY(-3px); }
.st-post__img { aspect-ratio: 16/9; overflow: hidden; background: var(--st-bg-2); }
.st-post__img img { width: 100%; height: 100%; object-fit: cover; }
.st-post__b { padding: 22px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.st-post__d { font-family: var(--st-mono); font-size: 11.5px; color: var(--st-dim); margin-bottom: 9px; }
.st-post h3 { font-size: 17.5px; margin-bottom: 9px; }
.st-post h3 a { color: #fff; }
.st-post h3 a:hover { color: var(--st-accent); }
.st-post__x { font-size: 14px; flex: 1; }
.st-post__go { margin-top: 13px; font-family: var(--st-head); font-size: 13px; font-weight: 600; }

.st-top { padding: 56px 0 42px; background: var(--st-bg-2); border-bottom: 1px solid var(--st-line); }
.st-top h1 { margin-bottom: 10px; }
.st-top__m { font-family: var(--st-mono); font-size: 12.5px; color: var(--st-dim); }

.st-entry { max-width: 800px; margin: 0 auto; font-size: 16.5px; }
.st-entry h2, .st-entry h3 { margin-top: 1.7em; }
.st-entry img { margin: 24px 0; border-radius: var(--st-r-sm); border: 1px solid var(--st-line); }
.st-entry li { margin-bottom: 7px; }
.st-entry a { text-decoration: underline; text-underline-offset: 3px; }
.st-after { max-width: 800px; margin: 42px auto 0; padding-top: 24px; border-top: 1px solid var(--st-line); }

.st-pages { display: flex; gap: 7px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.st-pages .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 11px; border-radius: var(--st-r-sm);
	border: 1px solid var(--st-line); color: #ded8d8; font-family: var(--st-mono); font-size: 14px;
}
.st-pages .page-numbers:hover, .st-pages .page-numbers.current { border-color: var(--st-accent); color: var(--st-accent); }

.st-search { display: flex; gap: 9px; max-width: 440px; }
.st-search input[type="search"] {
	flex: 1; background: var(--st-panel); border: 1px solid var(--st-line); border-radius: var(--st-r-sm);
	color: #fff; padding: 12px 15px; font-family: var(--st-body); font-size: 15px;
}
.st-search input[type="search"]:focus { outline: none; border-color: var(--st-accent); }

/* =========================================================
   CTA + подвал
   ========================================================= */
.st-cta { text-align: center; background: var(--st-bg-2); border-block: 1px solid var(--st-line); }
.st-cta h2 { max-width: 740px; margin-inline: auto; }
.st-cta .st-btns { justify-content: center; margin-top: 24px; }

.st-foot { border-top: 1px solid var(--st-line); padding: 52px 0 24px; }
.st-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 38px; }
.st-foot h4 { font-family: var(--st-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 15px; }
.st-foot ul { list-style: none; padding: 0; margin: 0; }
.st-foot li { margin-bottom: 10px; }
.st-foot ul a { color: var(--st-text); font-size: 14.5px; }
.st-foot ul a:hover { color: var(--st-accent); }
.st-foot p { font-size: 14.5px; max-width: 420px; }
.st-foot__end {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	border-top: 1px solid var(--st-line); padding-top: 20px; font-size: 12.5px; color: var(--st-dim);
}

.st-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 95;
	display: inline-flex; align-items: center; gap: 9px;
	padding: 13px 19px; border-radius: var(--st-r-sm);
	background: var(--st-accent); color: #fff;
	font-family: var(--st-head); font-size: 14px; font-weight: 600;
	box-shadow: 0 10px 26px -12px rgba(232, 64, 46, .9);
	transition: background var(--st-t);
}
.st-float:hover { background: var(--st-accent-dk); color: #fff; }
.st-float svg { width: 17px; height: 17px; fill: currentColor; }

/* Появление */
.st-rev { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0ms); }
.st-rev.st-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.st-rev { opacity: 1; transform: none; transition: none; }
	.st-chat__typing i, .st-offer__live i { animation: none; }
	html { scroll-behavior: auto; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1024px) {
	.st-hero__in { grid-template-columns: 1fr; }
	.st-offer { max-width: 520px; }
	.st-bar__in { grid-template-columns: repeat(2, 1fr); }
	.st-bar__i:nth-child(2n) { border-right: 0; }
	.st-bar__i:nth-child(-n+2) { border-bottom: 1px solid var(--st-line); }
	.st-posts { grid-template-columns: repeat(2, 1fr); }
	.st-foot__grid { grid-template-columns: 1fr 1fr; }
	.st-foot__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.st-burger { display: block; }
	.st-nav {
		position: fixed; inset: 0 0 0 auto; width: min(310px, 84vw);
		background: var(--st-bg-2); border-left: 1px solid var(--st-line);
		flex-direction: column; align-items: stretch; justify-content: flex-start;
		padding: 88px 24px 36px; gap: 0;
		transform: translateX(100%); transition: transform .28s ease, visibility .28s; overflow-y: auto;
		/* visibility убирает закрытое меню из фокуса — иначе Tab уходит за экран */
		visibility: hidden;
	}
	.st-nav.st-open { transform: none; visibility: visible; }
	.st-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.st-nav li { border-bottom: 1px solid var(--st-line); }
	.st-nav ul a { display: block; padding: 14px 0; }
	.st-nav .st-btn { margin-top: 20px; }
}

@media (max-width: 640px) {
	.st-cols--2, .st-cols--3 { grid-template-columns: 1fr; }
	.st-posts { grid-template-columns: 1fr; }
	.st-bar__in { grid-template-columns: 1fr; }
	.st-bar__i { border-right: 0; border-bottom: 1px solid var(--st-line); }
	.st-bar__i:last-child { border-bottom: 0; }
	.st-foot__grid { grid-template-columns: 1fr; }
	.st-btn { width: 100%; }
	.st-btns { flex-direction: column; }
	.st-pay__r { grid-template-columns: 1fr; gap: 6px; }
	.st-msg { max-width: 88%; }
	.st-shifts__grid { gap: 5px; }
	.st-shifts__d { font-size: 11px; }
}

/* Классы ядра WordPress */
.alignleft { float: left; margin: 5px 22px 18px 0; }
.alignright { float: right; margin: 5px 0 18px 22px; }
.aligncenter { margin: 18px auto; }
.wp-caption-text, .wp-block-image figcaption { font-size: 13px; color: var(--st-dim); text-align: center; }
