/* =========================================================
   SJEC theme — main styles
   ========================================================= */

@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/exo2-cyrillic.woff2) format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/exo2-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--accent: #e60013;
	--accent-600: #c70011;
	--accent-700: #a3000e;
	--accent-50: #fff1f2;
	--ink: #16181d;
	--text: #2a2d34;
	--muted: #5b6270; /* ≥4.5:1 on white and on --soft */
	--line: #e5e7eb;
	--soft: #f4f5f7;
	--dark: #1a1c20;
	--white: #fff;

	--font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1200px;
	--content: 860px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .08);
	--shadow-lg: 0 20px 50px rgba(16, 24, 40, .16);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
	--section: clamp(48px, 7vw, 96px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
li > p { margin: 0; }
strong, b { font-weight: 700; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(230, 0, 19, .45); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 8px; left: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--accent);
	--btn-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 12px 24px;
	border: 2px solid var(--btn-bg); border-radius: 999px;
	background: var(--btn-bg); color: var(--btn-fg);
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
	transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
	position: relative; overflow: hidden; isolation: isolate;
	flex-shrink: 0; white-space: nowrap;
}
.btn--block { white-space: normal; }
.btn:hover { color: var(--btn-fg); background: var(--accent-600); border-color: var(--accent-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230, 0, 19, .28); }
.btn:active { transform: translateY(0); }
.btn--primary::after { /* shine */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 17px; }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-fg: var(--accent); background: transparent; border-color: var(--accent); box-shadow: none; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--accent); }
.btn--white:hover { background: #fff; border-color: #fff; color: var(--accent-700); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
/* Sticky with a negative offset = topbar height: the topbar scrolls away, the menu bar sticks. No layout jumps. */
:root { --topbar-h: 39px; }
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .3s; }
.admin-bar .site-header { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--topbar-h)); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }
.topbar { border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); transition: margin .3s var(--ease), opacity .3s; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__status { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; color: var(--ink); }
.topbar__status .icon { color: var(--accent); }
.topbar__info { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__info li { display: flex; align-items: center; gap: 6px; margin: 0; }
.topbar__info .icon { color: var(--accent); width: 15px; height: 15px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar { height: var(--topbar-h); box-sizing: border-box; }
.topbar__inner { min-height: 0; height: 100%; }

.header-main__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: block; flex: none; width: 128px; }
.logo img { width: 100%; height: auto; }
.nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; margin: 0; display: flex; align-items: center; }
.menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; border-radius: 8px; white-space: nowrap; }
.menu > li > a { position: relative; }
.menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu > li:hover > a::after, .menu > .current-menu-item > a::after, .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.menu a:hover, .menu .current-menu-item > a { color: var(--accent); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; background: none; border: 0; padding: 4px; margin-left: -10px; color: var(--muted); }
.submenu-toggle .icon { transition: transform .2s; }
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease); }
.sub-menu li { margin: 0; }
.sub-menu a { padding: 10px 14px; font-weight: 500; }
.sub-menu a:hover { background: var(--soft); }
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu, .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu > li:hover > .submenu-toggle .icon { transform: rotate(180deg); }
.nav__mobile-extra { display: none; }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header-contacts__phone { color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.header-contacts { gap: 4px; }
.header-contacts__phone { display: inline-flex; align-items: center; min-height: 24px; }
.header-contacts__callback { min-height: 22px; background: none; border: 0; padding: 0; color: var(--accent); font-size: 13.5px; font-weight: 600; border-bottom: 1px dashed currentColor; }
.header-cta { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.header-icon { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); }
.header-icon--phone { color: var(--accent); }

/* Burger / «Меню» button (all widths) */
.burger { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, transform .2s; }
.burger:hover { background: var(--accent); }
.burger:active { transform: scale(.97); }
.burger__lines { display: grid; gap: 4px; width: 18px; }
.burger__lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), width .3s var(--ease); }
.burger__lines i:nth-child(2) { width: 70%; justify-self: end; }
.burger:hover .burger__lines i:nth-child(2) { width: 100%; }
/* Desktop header gets tight: icon-only button, logo instead of the «Главная» item */
/* Icon-only menu button; «Главная» item is the logo; the request CTA lives in the mega menu */
.burger { width: 44px; padding: 0; justify-content: center; }
.burger__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 1081px) {
	.menu > li:first-child { display: none; }
	.header-cta { display: none; }
}
@media (max-width: 1199px) and (min-width: 1081px) {
	.nav { display: none; } /* not enough room — the mega menu takes over */
	.header-contacts { margin-left: auto; }
}
@media (max-width: 1280px) and (min-width: 1081px) {
	.header-contacts__phone { font-size: 16px; }
}
@media (max-width: 1080px) {
	.burger { width: 44px; padding: 0; justify-content: center; }
	.burger__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Mega menu (full-screen popup) ---------- */
html.mega-open { overflow: hidden; }
.mega { position: fixed; inset: 0; z-index: 140; overflow-y: auto; overscroll-behavior: contain; color: rgba(255,255,255,.85); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.mega.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.mega[hidden] { display: none; }
.mega__bg { position: fixed; inset: 0; z-index: -1; background:
	radial-gradient(700px 420px at 100% -10%, rgba(230,0,19,.22), transparent 60%),
	#15171b; }
.mega__top { display: flex; align-items: center; gap: 24px; min-height: 84px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mega__logo { width: 128px; flex-shrink: 0; }
.mega__logo img { width: 100%; height: auto; }
.mega__status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.mega__status .icon { width: 18px; height: 18px; color: var(--accent); }
.mega__close { margin-left: auto; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s, transform .35s var(--ease), border-color .2s; }
.mega__close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.mega__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(28px, 5vh, 56px) 48px; }
.mega__label { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* Equipment: horizontal cards — photo left, text on a calm solid background */
.mega__cards { display: grid; gap: 12px; }
.mega-card { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: stretch; min-height: 116px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: #1f2227; border: 1px solid rgba(255,255,255,.08); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.mega-card:hover, .mega-card[aria-current] { background: #262a30; border-color: rgba(230,0,19,.6); transform: translateX(4px); }
.mega-card__img { position: relative; overflow: hidden; }
.mega-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-card:hover .mega-card__img img { transform: scale(1.08); }
.mega-card__body { display: grid; align-content: center; gap: 4px; padding: 14px 20px; }
.mega-card__title { font-size: 19px; font-weight: 800; line-height: 1.2; }
.mega-card__text { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 700; font-size: 14px; color: #ff4d5a; }
.mega-card__more .icon { width: 16px; height: 16px; transition: transform .25s; }
.mega-card:hover .mega-card__more .icon { transform: translateX(5px); }

/* Section links: white text, red marker on hover/current */
.mega__links ul { list-style: none; margin: 0; padding: 0; }
.mega__links li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mega__links a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 15px 0; color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; line-height: 1.3; transition: padding .25s var(--ease), background .25s; }
.mega__links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; border-radius: 2px; background: var(--accent); transform: translateY(-50%); transition: height .25s var(--ease); }
.mega__links a .icon { flex: 0 0 20px; width: 20px; height: 20px; color: #ff4d5a; opacity: 0; transform: translateX(-8px); transition: .25s var(--ease); }
.mega__links a:hover, .mega__links a[aria-current] { padding-left: 16px; color: #fff; }
.mega__links a:hover::before, .mega__links a[aria-current]::before { height: 60%; }
.mega__links a:hover .icon, .mega__links a[aria-current] .icon { opacity: 1; transform: none; }

.mega__phone { display: block; margin-bottom: 16px; color: #fff; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; text-decoration: none; white-space: nowrap; }
.mega__phone:hover { color: #ff4d5a; }
.mega__info { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; font-size: 15.5px; color: rgba(255,255,255,.9); }
.mega__info li { display: flex; gap: 10px; margin: 0; line-height: 1.45; }
.mega__info .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.mega__info a { color: #fff; text-decoration: none; }
.mega__info a:hover { color: var(--accent); }
.mega__actions { display: grid; gap: 10px; }
.btn--outline-white { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-white:hover { --btn-fg: #fff; background: rgba(255,255,255,.08); border-color: #fff; box-shadow: none; }
.mega__messengers { margin-top: 18px; }

/* staggered entrance */
.mega__anim { opacity: 0; transform: translateY(18px); }
.mega.is-open .mega__anim { animation: mega-in .55s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 45ms); }
@keyframes mega-in { to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
	.mega__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.mega__equip { grid-column: 1 / -1; }
	.mega__cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 680px) {
	.mega__top { min-height: 64px; gap: 12px; }
	.mega__logo { width: 96px; }
	.mega__status { display: none; }
	.mega__close { width: 44px; height: 44px; }
	.mega__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; }
	.mega__cards { grid-template-columns: 1fr; gap: 10px; }
	.mega-card { grid-template-columns: 96px minmax(0, 1fr); min-height: 84px; }
	.mega-card__body { padding: 12px 16px; }
	.mega-card__title { font-size: 17px; }
	.mega-card__text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mega__anim { opacity: 1; transform: none; }
	.mega.is-open .mega__anim { animation: none; }
}

@media (max-width: 1600px) {
	.header-cta { display: none; }
}
@media (max-width: 1280px) and (min-width: 1081px) {
	.menu a { padding-inline: 9px; font-size: 15px; }
	.header-main__inner { gap: 16px; }
}
@media (max-width: 1080px) {
	:root { --header-h: 64px; --topbar-h: 0px; }
	.topbar { display: none; }
	.header-contacts { display: none; }
	.header-icon { display: inline-flex; }
	.header-icon--phone { margin-left: auto; }
	.logo { width: 104px; }
	.nav { position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: rgba(22, 24, 29, .45); opacity: 0; visibility: hidden; transition: .25s; }
	.admin-bar .nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.nav__panel { height: 100%; overflow-y: auto; background: #fff; padding: 8px var(--gutter) 32px; transform: translateY(-12px); transition: transform .3s var(--ease); }
	.nav.is-open { opacity: 1; visibility: visible; }
	.nav.is-open .nav__panel { transform: none; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.menu > li > a { flex: 1; padding: 16px 0; font-size: 18px; }
	.menu > li > a::after { display: none; }
	.submenu-toggle { width: 48px; height: 48px; justify-content: center; margin: 0; }
	.sub-menu { position: static; width: 100%; box-shadow: none; padding: 0 0 12px 12px; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
	.menu > li.is-open > .sub-menu { display: block; }
	.menu > li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.menu > li:hover > .submenu-toggle .icon { transform: none; }
	.nav__mobile-extra { display: block; padding-top: 20px; }
	.nav__mobile-extra .btn { margin-top: 12px; }
	.nav { display: none; } /* on tablets/phones the mega menu replaces the inline menu */
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs.on-dark { color: rgba(255,255,255,.75); }
.breadcrumbs.on-dark a:hover { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--soft), #fff); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(230,0,19,.10), transparent 70%); pointer-events: none; }
.page-hero__title { margin: 0; max-width: 900px; }
.page-hero__lead { margin: 14px 0 0; max-width: 760px; font-size: 19px; color: var(--muted); }
.page-hero__meta { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* ---------- Content (blocks) ---------- */
.entry { padding-block: clamp(32px, 5vw, 64px); }
.entry > * { max-width: var(--content); margin-left: auto; margin-right: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.entry > .alignwide,
.entry > .wp-block-columns,
.entry > .wp-block-gallery,
.entry > .wp-block-group,
.entry > [class*="sjec-"]:not(.alignfull) { max-width: var(--container); }
.entry > .alignfull { max-width: none; padding-inline: 0; box-sizing: border-box; }
.entry--hero { padding-top: 0; }
.entry > * + * { margin-top: 0; }
.entry > h2 { margin-top: 1.6em; }
.entry > h3 { margin-top: 1.3em; }
.entry > .alignfull, .entry > .wp-block-group.has-background { margin-block: var(--section); }
.entry > .alignfull:first-child { margin-top: 0; }
.entry > .alignfull:last-child { margin-bottom: calc(-1 * clamp(32px, 5vw, 64px)); }
.entry > [class*="sjec-"]:not(.alignfull) { margin-block: clamp(40px, 6vw, 80px); }

.entry ul:not(.is-style-checks) > li::marker, .entry ol > li::marker { color: var(--accent); font-weight: 700; }
.entry ul.is-style-checks, .wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.entry ul.is-style-checks li, .wp-block-list.is-style-checks li { position: relative; padding-left: 34px; margin-bottom: .6em; }
.entry ul.is-style-checks li::before, .wp-block-list.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--accent-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60013'%3E%3Cpath d='M9.5 16.2 4.8 11.5l-1.4 1.4 6.1 6.1L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Columns */
.wp-block-columns { gap: clamp(24px, 4vw, 56px); margin-block: clamp(32px, 5vw, 64px); }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-column > h2:first-child { margin-top: 0; }
@media (max-width: 781px) { .wp-block-columns.is-reversed-mobile { flex-direction: column-reverse; } }
.wp-block-columns.is-style-cards { gap: 24px; align-items: stretch !important; }
.wp-block-columns.is-style-cards > .wp-block-column { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.wp-block-columns.is-style-cards > .wp-block-column > h3:first-child { margin-top: 0; font-size: clamp(20px, 2.2vw, 24px); }

/* Images */
.wp-block-image img, .entry figure img { border-radius: var(--radius); }
.wp-block-image.is-style-plain img { border-radius: 0; }
.wp-block-image.is-style-shadow img { box-shadow: var(--shadow-lg); }
.wp-block-image figcaption, .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.img-zoom { overflow: hidden; border-radius: var(--radius); }
.img-zoom img { transition: transform .8s var(--ease); }
.img-zoom:hover img { transform: scale(1.04); }

/* Gallery — own grid (core flex layout wraps unpredictably) */
.wp-block-gallery.has-nested-images { --cols: 3; display: grid !important; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.wp-block-gallery.columns-1 { --cols: 1; }
.wp-block-gallery.columns-2 { --cols: 2; }
.wp-block-gallery.columns-4 { --cols: 4; }
.wp-block-gallery.columns-5 { --cols: 5; }
.wp-block-gallery.columns-6 { --cols: 6; }
@media (max-width: 900px) { .wp-block-gallery.columns-4, .wp-block-gallery.columns-5, .wp-block-gallery.columns-6 { --cols: 3; } }
@media (max-width: 600px) { .wp-block-gallery.has-nested-images { --cols: 2 !important; gap: 8px; } }
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto !important; margin: 0 !important; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { aspect-ratio: 4 / 3; width: 100%; height: 100% !important; object-fit: cover; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; transition: transform .6s var(--ease), filter .3s; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.05); }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	font-size: 14px; font-weight: 600; padding: 28px 12px 10px; text-align: left;
	background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}
.wp-block-gallery.has-nested-images.is-cropped.columns-5 figure.wp-block-image:not(#individual-image) img { aspect-ratio: 3 / 4; }
.wp-block-gallery.is-style-certificates figure.wp-block-image:not(#individual-image) { background: #fff; padding: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.wp-block-gallery.has-nested-images.is-style-certificates figure.wp-block-image:not(#individual-image) img { aspect-ratio: 1654 / 2338 !important; object-fit: contain; }

/* Group sections */
.wp-block-group.has-soft-background-color, .wp-block-group.is-style-section-soft { background: var(--soft); }
.wp-block-group.alignfull { padding-block: var(--section); padding-inline: var(--gutter); }
.wp-block-group.alignfull > * { max-width: var(--content); margin-inline: auto; }
.wp-block-group.alignfull > .alignwide, .wp-block-group.alignfull > .wp-block-columns, .wp-block-group.alignfull > [class*="sjec-"], .wp-block-group.alignfull > .wp-block-gallery { max-width: var(--container); }
.wp-block-group.alignfull > :first-child { margin-top: 0; }
.wp-block-group.alignfull > :last-child { margin-bottom: 0; }
.section-title { text-align: center; position: relative; padding-bottom: 18px; }
.section-title::after, .is-style-underline::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); transform: translateX(-50%); }
.is-style-underline { position: relative; padding-bottom: 16px; }
.is-style-underline:not(.has-text-align-center)::after { left: 0; transform: none; }

/* Card (core group with class) */
.is-style-card, .wp-block-group.is-style-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }

/* Details = FAQ */
.wp-block-details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.wp-block-details[open] { border-color: rgba(230,0,19,.35); box-shadow: var(--shadow); }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--ink); position: relative; font-size: 17.5px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60013'%3E%3Cpath d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding: 0 22px; }
.wp-block-details > :last-child { padding-bottom: 18px; margin-bottom: 0; }

/* Tables */
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.wp-block-table th, .wp-block-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.wp-block-table thead th { background: var(--soft); color: var(--ink); }
.wp-block-table { overflow-x: auto; }
/* Specs table */
.entry > .wp-block-table.is-style-specs { max-width: var(--container); }
.wp-block-table.is-style-specs { margin-block: 24px 32px; -webkit-overflow-scrolling: touch; }
.wp-block-table.is-style-specs table { min-width: 640px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.wp-block-table.is-style-specs thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em; padding: 14px 16px; white-space: nowrap; }
.wp-block-table.is-style-specs td { padding: 13px 16px; vertical-align: top; }
.wp-block-table.is-style-specs tbody tr:nth-child(even) td { background: var(--soft); }
.wp-block-table.is-style-specs tbody tr { transition: background .2s; }
.wp-block-table.is-style-specs tbody tr:hover td { background: var(--accent-50); }
.wp-block-table.is-style-specs td:first-child { white-space: nowrap; }
.wp-block-table.is-style-specs td:first-child strong { color: var(--accent); }
.wp-block-table.is-style-specs figcaption { text-align: left; margin-top: 10px; }

/* Quote / note */
.wp-block-quote, .is-style-note { border-left: 4px solid var(--accent); background: var(--accent-50); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.wp-block-quote p:last-child { margin: 0; }

/* Buttons block */
.wp-block-button__link { border-radius: 999px; padding: 14px 28px; font-weight: 700; background: var(--accent); color: #fff; transition: .2s; }
.wp-block-button__link:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); }

/* ---------- SJEC blocks ---------- */

/* Hero */
.sjec-hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); overflow: hidden; display: flex; align-items: center; min-height: clamp(520px, 78vh, 760px); }
.sjec-hero--compact { min-height: clamp(380px, 52vh, 520px); }
.sjec-hero__bg { position: absolute; inset: 0; z-index: -2; }
.sjec-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-out both; }
.sjec-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,15,19,.92) 0%, rgba(14,15,19,.72) 45%, rgba(14,15,19,.25) 100%); }
.sjec-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.sjec-hero__inner { padding-block: clamp(48px, 8vw, 96px); }
.sjec-hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); }
.sjec-hero__badge .icon { color: var(--accent); }
.sjec-hero__title { color: #fff; max-width: 820px; margin-bottom: 18px; }
.sjec-hero__subtitle { max-width: 640px; font-size: clamp(17px, 1.8vw, 20px); color: rgba(255,255,255,.85); margin-bottom: 30px; }
.sjec-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.sjec-hero__phone { color: #fff; font-weight: 800; font-size: 22px; text-decoration: none; }
.sjec-hero__phone:hover { color: #fff; opacity: .85; }
.sjec-hero__facts { display: flex; flex-wrap: wrap; gap: 16px 48px; list-style: none; padding: 28px 0 0; margin: 40px 0 0; border-top: 1px solid rgba(255,255,255,.16); max-width: 820px; }
.sjec-hero__facts li { margin: 0; display: flex; flex-direction: column; }
.sjec-hero__facts b { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; }
.sjec-hero__facts span { color: rgba(255,255,255,.7); font-size: 14.5px; }
/* Hero: split (text + photo) */
.sjec-hero--split { min-height: 0; background:
	radial-gradient(900px 500px at 85% 20%, rgba(230,0,19,.28), transparent 60%),
	radial-gradient(700px 400px at 0% 100%, rgba(255,255,255,.05), transparent 70%),
	linear-gradient(135deg, #15171c 0%, #1f2228 100%); }
.sjec-hero--split::before { background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 26px); }
.sjec-hero--split .sjec-hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); }
.sjec-hero--split .sjec-hero__title { font-size: clamp(30px, 4vw, 48px); }
.sjec-hero--split .sjec-hero__facts { margin-top: 32px; padding-top: 24px; }
.sjec-hero__figure { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); animation: hero-float 7s ease-in-out infinite; }
.sjec-hero__figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); border-radius: 20px; z-index: -1; }
.sjec-hero__figure::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(230,0,19,.55) 0 2px, transparent 2.5px) 0 0 / 14px 14px; z-index: -1; opacity: .8; }
.sjec-hero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
	.sjec-hero--split .sjec-hero__inner { grid-template-columns: 1fr; }
	.sjec-hero__figure { width: min(78%, 360px); margin-top: 8px; }
	.sjec-hero__figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
	.sjec-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 20px; }
	.sjec-hero__facts b { font-size: 22px; }
	.sjec-hero__facts span { font-size: 12px; line-height: 1.3; }
	.sjec-hero__actions .btn { width: 100%; }
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
/* Phones: no endless/long animations on big layers — saves CPU and battery */
@media (max-width: 768px) {
	.sjec-hero__bg img, .sjec-hero__figure { animation: none; }
	.site-header, .mobile-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}

/* CTA */
.sjec-cta { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px); color: #fff; background: var(--accent); }
.sjec-cta::before { content: ""; position: absolute; inset: 0; background:
	radial-gradient(600px 300px at 90% -10%, rgba(255,255,255,.18), transparent 70%),
	repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.sjec-cta--dark { background: var(--dark); }
.sjec-cta--light { background: var(--soft); color: var(--text); }
.sjec-cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.sjec-cta .sjec-cta__title { color: inherit; margin: 0 0 10px; font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.2; opacity: 1; }
.sjec-cta--light .sjec-cta__title { color: var(--ink); }
.sjec-cta__text p { margin: 0 0 8px; opacity: .92; font-size: 18px; }
.sjec-cta__or { font-size: 16px !important; }
.sjec-cta__or a { color: inherit; font-weight: 800; white-space: nowrap; }
.sjec-cta--red .sjec-form .btn, .sjec-cta--dark .sjec-form .btn { --btn-bg: #fff; --btn-fg: var(--accent); }
.sjec-cta--red .sjec-form .btn:hover { background: #fff; color: var(--accent-700); border-color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.sjec-cta--red .sjec-consent, .sjec-cta--dark .sjec-consent { color: rgba(255,255,255,.85); }
.sjec-consent a { color: var(--accent-700); }
.sjec-cta--red .sjec-consent a, .sjec-cta--dark .sjec-consent a { color: #fff; }
.sjec-cta--red .sjec-form__status, .sjec-cta--dark .sjec-form__status { color: #fff; }
@media (max-width: 860px) { .sjec-cta__inner { grid-template-columns: 1fr; } }

/* Products cards */
.sjec-products > h2, .sjec-posts h2, .sjec-steps > h2, .sjec-facts > h2 { text-align: center; }
.sjec-products__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sjec-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--dark); isolation: isolate; box-shadow: var(--shadow); }
.sjec-card__img { position: absolute; inset: 0; z-index: -2; }
.sjec-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sjec-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.35) 55%, rgba(10,10,12,.05) 100%); transition: background .4s; }
.sjec-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sjec-card__title { font-size: 24px; font-weight: 800; line-height: 1.15; }
.sjec-card__text { font-size: 15px; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sjec-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; margin-top: 6px; }
.sjec-card__more .icon { transition: transform .25s; }
.sjec-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.sjec-card:hover { color: #fff; }
.sjec-card:hover .sjec-card__img img { transform: scale(1.07); }
.sjec-card:hover .sjec-card__more .icon { transform: translateX(5px); }
.sjec-card:hover::after { transform: scaleX(1); }

/* Features */
.sjec-features { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.sjec-features.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sjec-features__img img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-lg); }
.sjec-features__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sjec-feature { display: flex; gap: 16px; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.sjec-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sjec-feature__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent); }
.sjec-feature h3 { font-size: 18px; margin-bottom: 6px; }
.sjec-feature p { margin: 0; font-size: 15.5px; color: var(--muted); }
/* Features without image: centered title, vertical cards in one row */
.sjec-features:not(.has-image) .sjec-features__main > h2 { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.sjec-features:not(.has-image) .sjec-features__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* even rows: 6 → 3×2, 4/8 → rows of 4 */
@media (min-width: 900px) {
	.sjec-features--cols-3:not(.has-image) .sjec-features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sjec-features--cols-4:not(.has-image) .sjec-features__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 560px) and (max-width: 899px) {
	.sjec-features--cols-3:not(.has-image) .sjec-features__list, .sjec-features--cols-4:not(.has-image) .sjec-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sjec-features:not(.has-image) .sjec-feature { flex-direction: column; gap: 14px; padding: 26px 22px; border-top: 3px solid var(--accent); }
.sjec-features:not(.has-image) .sjec-feature h3 { margin-bottom: 6px; }
@media (max-width: 860px) { .sjec-features.has-image { grid-template-columns: 1fr; } .sjec-features__img { max-width: 420px; } }

/* Facts */
.sjec-facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sjec-facts__list li { margin: 0; padding: 26px 22px; border-radius: var(--radius); background: var(--soft); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.sjec-facts__list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.sjec-facts__list b { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; color: var(--accent); line-height: 1.05; }
.sjec-facts__list span { color: var(--muted); font-size: 15px; }

/* Steps */
.sjec-steps__list { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.sjec-step { position: relative; margin: 0; padding: 26px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.sjec-step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; box-shadow: 0 0 0 6px var(--accent-50); }
.sjec-step h3 { font-size: 18px; margin-bottom: 6px; }
.sjec-step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
	.sjec-step:not(:last-child)::after { content: ""; position: absolute; top: 48px; left: 74px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); opacity: .35; }
}

/* Posts */
.sjec-posts__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sjec-posts__head h2 { text-align: left; margin: 0; }
.sjec-posts__grid, .blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* Article card — text only */
.post-card {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; gap: 12px;
	padding: 26px 26px 24px 30px; min-height: 260px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post-card::before { /* red accent bar */
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent);
	transform: scaleY(.18); transform-origin: top; transition: transform .45s var(--ease);
}
.post-card::after { /* soft corner glow */
	content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 180px; height: 180px; border-radius: 50%;
	background: radial-gradient(circle, rgba(230,0,19,.08), transparent 70%); transition: transform .5s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card:hover::before { transform: scaleY(1); }
.post-card:hover::after { transform: scale(1.6); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; color: var(--muted); }
.post-card__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); font-weight: 600; font-size: 12.5px; margin-right: 4px; }
.post-card__dot { opacity: .6; }
.post-card__title { font-size: 20px; line-height: 1.3; margin: 0; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.post-card:hover .post-card__title a { color: var(--accent); }
.post-card__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--accent); }
.post-card__more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(6px); }

/* Featured (first in archive) */
.post-card--featured {
	min-height: 0; margin-bottom: 20px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
	background: linear-gradient(135deg, #15171c 0%, #23262d 100%); border: 0; color: rgba(255,255,255,.75);
}
.post-card--featured::after { right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(230,0,19,.35), transparent 65%); }
.post-card--featured .post-card__meta { color: rgba(255,255,255,.6); }
.post-card--featured .post-card__tag { background: var(--accent); color: #fff; }
.post-card--featured .post-card__title { font-size: clamp(24px, 3vw, 34px); max-width: 860px; }
.post-card--featured .post-card__title a { color: #fff; }
.post-card--featured:hover .post-card__title a { color: #fff; }
.post-card--featured .post-card__text { color: rgba(255,255,255,.72); font-size: 17px; max-width: 820px; }
.post-card--featured .post-card__more { color: #fff; }

/* Blog page extras */
.blog__topics { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.blog__topics-title { font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.blog__topics ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.blog__topics li { margin: 0; }
.blog__topics a { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: .2s; }
.blog__topics a:hover { border-color: var(--accent); color: var(--accent); }

/* Map */
.sjec-map { position: relative; min-height: 480px; background: var(--soft); }
.sjec-map__frame { position: absolute; inset: 0; }
.sjec-map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.sjec-map__overlay { position: relative; z-index: 2; padding-block: 40px; pointer-events: none; }
.sjec-map__card { pointer-events: auto; width: min(400px, 100%); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.sjec-map__card h2 { font-size: 26px; }
@media (max-width: 700px) {
	.sjec-map { min-height: 0; display: flex; flex-direction: column-reverse; }
	.sjec-map__frame { position: relative; height: 340px; }
	.sjec-map__overlay { padding-block: 24px 0; }
	.sjec-map__card { box-shadow: none; padding: 0 0 8px; width: 100%; }
}

/* Contacts list */
.sjec-contacts-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.sjec-contacts-list li { display: flex; gap: 12px; margin: 0; align-items: flex-start; }
.sjec-contacts-list .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.sjec-contacts-list__label { display: block; font-size: 13px; color: var(--muted); }
.sjec-contacts-list__value { display: block; color: var(--ink); font-weight: 600; }
.sjec-contacts-list__value a { color: inherit; text-decoration: none; }
.sjec-contacts-list__value a:hover { color: var(--accent); }
.sjec-messengers { display: flex; gap: 10px; margin-bottom: 20px; }
.sjec-messengers__item { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink); transition: .2s; }
.sjec-messengers__item:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.sjec-contacts { display: block; }
.sjec-contacts__main, .sjec-contacts__req { background: var(--soft); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.sjec-contacts__main .sjec-contacts-list__value { font-size: 19px; }
.sjec-contacts__area { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.sjec-contacts__area .icon { color: var(--accent); }
.sjec-requisites { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.sjec-requisites dt { color: var(--muted); }
.sjec-requisites dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .sjec-contacts { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.sjec-form { position: relative; container-type: inline-size; }
.sjec-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sjec-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sjec-form--callback .sjec-form__grid { grid-template-columns: 1fr; }
/* Layout by the form's own width (page, half-width CTA, modal) */
@container (max-width: 640px) {
	.sjec-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sjec-form--request .sjec-field:nth-child(3) { grid-column: 1 / -1; }
}
@container (max-width: 420px) {
	.sjec-form__grid { grid-template-columns: 1fr; }
}
.sjec-field { position: relative; margin: 0; }
.sjec-field.is-wide { grid-column: 1 / -1; }
.sjec-field input, .sjec-field textarea {
	width: 100%; min-height: 56px; padding: 24px 16px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
	transition: border-color .2s, box-shadow .2s; appearance: none;
}
.sjec-field textarea { min-height: 96px; resize: vertical; }
.sjec-field > label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: .18s var(--ease); font-size: 16px; line-height: 1.3; }
.sjec-field > label span { color: var(--accent); }
.sjec-field input:focus, .sjec-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230,0,19,.12); }
.sjec-field input:focus + label, .sjec-field input:not(:placeholder-shown) + label,
.sjec-field textarea:focus + label, .sjec-field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 12.5px; }
.sjec-field.is-invalid input, .sjec-field.is-invalid textarea { border-color: #d92d20; }
.sjec-field__error { display: block; font-size: 13px; color: #d92d20; min-height: 0; }
.sjec-field__error:empty { display: none; }
.sjec-cta--red .sjec-field__error { color: #fff; font-weight: 600; }
.sjec-field--choice { border: 0; padding: 0; margin: 6px 0 4px; min-width: 0; }
.sjec-form--escalator .sjec-field--choice { grid-column: span 1; }
@container (max-width: 640px) {
	.sjec-form--escalator .sjec-field--choice { grid-column: 1 / -1; }
	.sjec-form--escalator .sjec-field:nth-child(3) { grid-column: 1 / -1; }
}
.sjec-field--choice legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; font-size: 15px; }
.sjec-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.sjec-choice { position: relative; margin: 0; }
.sjec-choice input { position: absolute; opacity: 0; inset: 0; }
.sjec-choice span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; transition: .15s; user-select: none; }
.sjec-choice input:checked + span { border-color: var(--accent); background: var(--accent-50); color: var(--accent-700); font-weight: 600; }
.sjec-choice input:focus-visible + span { outline: 3px solid rgba(230,0,19,.35); outline-offset: 2px; }
.sjec-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 16px; cursor: pointer; }
.sjec-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.sjec-consent.is-invalid { color: #d92d20; }
.sjec-form__submit { min-width: 220px; }
.sjec-form__submit.is-loading { pointer-events: none; opacity: .75; }
.sjec-form__submit.is-loading span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sjec-form__status { margin-top: 12px; font-weight: 600; }
.sjec-form__status.is-error { color: #d92d20; }
.sjec-form.is-sent .sjec-form__grid, .sjec-form.is-sent .sjec-consent, .sjec-form.is-sent .sjec-form__submit { display: none; }
.sjec-form.is-sent .sjec-form__status { display: flex; gap: 12px; align-items: center; font-size: 18px; animation: pop .4s var(--ease); }
.sjec-form.is-sent .sjec-form__status::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #12b76a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.5 16.2 4.8 11.5l-1.4 1.4 6.1 6.1L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center / 26px no-repeat; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.entry > .sjec-formbox { box-sizing: border-box; max-width: min(var(--container), calc(100% - 2 * var(--gutter))); }
.sjec-formbox { background: var(--soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); border-top: 4px solid var(--accent); }
.sjec-formbox__title { margin-top: 0; }
.sjec-formbox__text { color: var(--muted); }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(14, 15, 19, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
.modal__box { position: relative; width: 560px; max-width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; background: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); }
.modal__box--sm { width: 440px; }
.modal__title { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 8px; line-height: 1.2; padding-right: 32px; }
.modal__text { color: var(--muted); margin-bottom: 20px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--soft); border-radius: 50%; color: var(--ink); transition: .2s; }
.modal__close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); padding-block: clamp(24px, 4vw, 48px) var(--section); align-items: start; }
.article__cover { margin: 0 0 32px; }
.article__cover img { border-radius: var(--radius); width: 100%; }
.entry--article { padding: 0; }
.entry--article > * { max-width: none; padding-inline: 0; }
.entry--article p, .entry--article li { text-align: left !important; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.aside-card__title { font-weight: 800; color: var(--ink); font-size: 19px; margin-bottom: 8px; line-height: 1.25; }
.aside-card p { font-size: 15px; }
.aside-card__phone { text-align: center; margin: 12px 0 0; }
.aside-card__phone a { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.aside-card--links ul { list-style: none; padding: 0; margin: 0; }
.aside-card--links li { margin: 0; border-top: 1px solid var(--line); }
.aside-card--links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.aside-card--links a:hover { color: var(--accent); }
.aside-card--links .icon { width: 18px; color: var(--accent); }
.related { padding-bottom: var(--section); }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* Pagination */
.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Search / 404 */
.search-form { display: flex; gap: 10px; margin-bottom: 32px; max-width: 640px; }
.search-form input { flex: 1; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 700; font-size: 19px; }
.search-results p { margin: 6px 0 0; color: var(--muted); }
.page-404 { padding-block: var(--section); text-align: center; }
.page-404__code { font-size: clamp(96px, 18vw, 180px); font-weight: 900; line-height: 1; color: var(--accent); margin: 0; letter-spacing: -.04em; }
.page-404__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: #15171b; color: rgba(255,255,255,.78); font-size: 15px; }
/* red accent line + soft glow + big «SJEC» watermark */
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent) 0%, rgba(230,0,19,.4) 45%, transparent 100%); }
.site-footer::after { content: "SJEC"; position: absolute; right: -2vw; bottom: -6vw; z-index: -1; font-size: clamp(160px, 24vw, 380px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: rgba(255,255,255,.025); pointer-events: none; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(52px, 6vw, 80px) clamp(40px, 5vw, 64px); background: radial-gradient(600px 320px at 0% 0%, rgba(230,0,19,.12), transparent 70%); }
.logo--footer { display: inline-block; width: 140px; margin-bottom: 20px; }
.site-footer__status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.site-footer__status .icon { flex: 0 0 16px; width: 16px; height: 16px; color: var(--accent); }
.site-footer__desc { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.7); }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__actions .btn { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.site-footer__title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }

.footer-equip { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-equip li { margin: 0; }
.footer-equip a { display: flex; align-items: center; gap: 14px; padding: 8px; margin: -8px; border-radius: 14px; transition: background .25s; }
.footer-equip a:hover { background: rgba(255,255,255,.05); }
.footer-equip__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #22252b; }
.footer-equip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.footer-equip a:hover .footer-equip__img img { transform: scale(1.1); }
.footer-equip__txt { display: grid; gap: 2px; }
.footer-equip__txt b { color: #fff; font-size: 16px; }
.footer-equip__txt span { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.6); }

.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-menu li { margin: 0; }
.footer-menu a { position: relative; display: inline-block; padding: 6px 0; font-size: 15.5px; }
.footer-menu a::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.footer-menu a:hover::after { transform: scaleX(1); }

.site-footer__phone { display: block; color: #fff !important; font-size: 24px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.site-footer__callback { margin: 6px 0 20px; padding: 0; background: none; border: 0; border-bottom: 1px dashed currentColor; color: #ff4d5a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.site-footer__callback:hover { color: #fff; }
.site-footer__info { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.site-footer__info li { display: flex; gap: 10px; margin: 0; }
.site-footer__info .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.site-footer__route { display: inline-block; margin-top: 4px; color: #ff4d5a !important; font-weight: 600; }
.site-footer__route:hover { color: #fff !important; }
.site-footer .sjec-messengers__item { background: rgba(255,255,255,.08); color: #fff; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; font-size: 13px; color: rgba(255,255,255,.55); }
.site-footer__bottom-inner { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; }
.site-footer__copy { margin: 0; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.site-footer__legal li { margin: 0; }
.site-footer__bottom a { color: rgba(255,255,255,.65); }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__disclaimer { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.42); }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
	.site-footer__bottom-inner { grid-template-columns: 1fr; }
	.site-footer__legal { justify-content: flex-start; }
}
@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.site-footer { padding-bottom: 72px; } /* room for the mobile bar */
}

/* ---------- Mobile bar, to-top, cookie ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
	.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -6px 24px rgba(16,24,40,.1); transform: translateY(110%); transition: transform .3s var(--ease); }
	.mobile-bar.is-visible { transform: none; }
	.mobile-bar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
	.mobile-bar__btn .icon { color: var(--accent); }
	.mobile-bar__btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
	.mobile-bar__btn--accent .icon { color: #fff; }
	body { padding-bottom: 72px; }
	.to-top { bottom: 84px !important; }
	.cookie { bottom: 80px !important; }
}
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 95; max-width: 440px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45; animation: modal-in .4s var(--ease); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
@media (max-width: 480px) { .cookie { left: 8px; right: 8px; max-width: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.reveal--left { transform: translateX(-36px); }
.js .reveal.reveal--right { transform: translateX(36px); }
.js .reveal.reveal--zoom { transform: scale(.96); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Sales blocks: offers, banner, cases, related ---------- */
.section-lead { max-width: 760px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 17px; }
.entry > .sjec-offers, .entry > .sjec-cases, .entry > .sjec-banner, .entry > .sjec-related { margin-block: var(--section); }

/* Hero points */
.sjec-hero__points { list-style: none; margin: -12px 0 30px; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.sjec-hero__points li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; color: rgba(255,255,255,.92); }
.sjec-hero__points .icon { flex: 0 0 22px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 1px; }

/* Offers */
.sjec-offers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: clamp(24px, 4vw, 40px); }
.sjec-offer { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.sjec-offer::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: scaleX(.25); transform-origin: left; transition: transform .4s var(--ease); }
.sjec-offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sjec-offer:hover::before { transform: scaleX(1); }
.sjec-offer__model { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-weight: 800; font-size: 13.5px; letter-spacing: .02em; }
.sjec-offer__title { margin: 0; font-size: 20px; line-height: 1.25; }
.sjec-offer__meta { margin: 0; display: grid; gap: 10px; flex: 1; }
.sjec-offer__meta div { display: grid; gap: 2px; }
.sjec-offer__meta dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.sjec-offer__meta dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.sjec-offer__price { padding-top: 10px; border-top: 1px dashed var(--line); }
.sjec-offer__price dd { font-weight: 800; color: var(--ink); font-size: 17px; }
.sjec-offer--helper { background: var(--dark); color: rgba(255,255,255,.85); border-color: var(--dark); background-image: radial-gradient(500px 260px at 100% 0%, rgba(230,0,19,.35), transparent 60%); }
.sjec-offer--helper .sjec-offer__title { color: #fff; }
.sjec-offer--helper p { margin: 0; font-size: 15.5px; flex: 1; }
.sjec-offer__icon .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent); color: #fff; }
.sjec-offer__or { flex: 0 !important; font-size: 14.5px !important; text-align: center; }
.sjec-offer__or a { color: #fff; font-weight: 700; white-space: nowrap; }

/* Banner */
.entry > .sjec-banner { box-sizing: border-box; max-width: min(var(--container), calc(100% - 2 * var(--gutter))); }
.sjec-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(26px, 4vw, 48px) clamp(22px, 4vw, 56px); border-radius: 20px; color: rgba(255,255,255,.88); background: var(--dark); isolation: isolate; }
.sjec-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(230,0,19,.4), transparent 60%), repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 26px); }
.sjec-banner--red { background: var(--accent); }
.sjec-banner--red::before { background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%), repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 1px, transparent 1px 26px); }
.sjec-banner--light { background: var(--soft); color: var(--text); border-left: 5px solid var(--accent); }
.sjec-banner--light::before { display: none; }
.sjec-banner__kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sjec-banner--red .sjec-banner__kicker { color: #fff; opacity: .8; }
.sjec-banner__title { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.2; color: #fff; }
.sjec-banner--light .sjec-banner__title { color: var(--ink); }
.sjec-banner__desc { margin: 10px 0 0; font-size: 16.5px; max-width: 680px; }
.sjec-banner__points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sjec-banner__points li { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.sjec-banner__points .icon { width: 18px; height: 18px; color: var(--accent); }
.sjec-banner--red .sjec-banner__points .icon { color: #fff; }
.sjec-banner__action { display: grid; gap: 10px; justify-items: center; }
.sjec-banner__note { margin: 0; font-size: 13.5px; opacity: .75; text-align: center; }
@media (max-width: 760px) {
	.sjec-banner { grid-template-columns: 1fr; }
	.sjec-banner__action { justify-items: stretch; }
}

/* Cases */
.sjec-cases__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 20px; margin-top: clamp(24px, 4vw, 40px); }
.sjec-case { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.sjec-case:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sjec-case__img { overflow: hidden; }
.sjec-case__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .6s var(--ease); }
.sjec-case:hover .sjec-case__img img { transform: scale(1.06); }
.sjec-case__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; align-items: flex-start; }
.sjec-case__title { margin: 0; font-size: 19px; }
.sjec-case__title span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.sjec-case__equip { margin: 0; display: flex; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.sjec-case__equip .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.sjec-case__desc { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.sjec-cases__all { text-align: center; margin: 28px 0 0; }
@media (max-width: 560px) {
	.sjec-case { grid-template-columns: 1fr; }
	.sjec-case__img img { aspect-ratio: 16 / 9; }
}

/* Related links */
.sjec-related__title { margin: 0 0 14px; font-weight: 800; font-size: 20px; color: var(--ink); }
.sjec-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sjec-related li { margin: 0; }
.sjec-related a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: .2s; }
.sjec-related a .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .2s; }
.sjec-related a:hover { border-color: var(--accent); color: var(--accent); }
.sjec-related a:hover .icon { transform: translateX(3px); }

/* File field + modal subject */
.sjec-field > .sjec-file { position: relative; left: auto; top: auto; pointer-events: auto; color: inherit; font-size: inherit; }
.sjec-field > .sjec-file .sjec-file__btn, .sjec-field > .sjec-file .sjec-file__name { color: var(--ink); }
.sjec-field > .sjec-file .sjec-file__hint { color: var(--muted); }
.sjec-cta--red .sjec-field > .sjec-file .sjec-file__hint, .sjec-cta--dark .sjec-field > .sjec-file .sjec-file__hint { color: rgba(255,255,255,.75); }
.sjec-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; cursor: pointer; }
.sjec-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sjec-file__btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 16px; border: 1px dashed #c9ccd2; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; transition: .2s; }
.sjec-file__btn .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); }
.sjec-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sjec-file:hover .sjec-file__btn, .sjec-file input:focus-visible + .sjec-file__btn { border-color: var(--accent); }
.sjec-file.has-file .sjec-file__btn { border-style: solid; border-color: var(--accent); background: var(--accent-50); }
.sjec-file__hint { font-size: 12.5px; color: var(--muted); }
.sjec-cta--red .sjec-file__hint, .sjec-cta--dark .sjec-file__hint { color: rgba(255,255,255,.75); }
.modal__subject { display: inline-block; margin: -4px 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-weight: 700; font-size: 14px; }
.modal__subject[hidden] { display: none; }

/* ---------- Article: TOC, anchors ---------- */
.entry--article h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.aside-card--toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-card--toc li { counter-increment: toc; margin: 0; }
.aside-card--toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.aside-card--toc a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 auto; font-weight: 800; font-size: 12.5px; color: var(--accent); margin-top: 2px; }
.aside-card--toc a:hover { color: var(--accent); }

/* ---------- Contacts page: tiles + hub ---------- */
.entry > .sjec-contacts, .entry > .sjec-hub { margin-bottom: var(--section); }
.sjec-contacts__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.sjec-ctile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.sjec-ctile::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--accent); transform: scaleX(.2); transform-origin: left; transition: transform .4s var(--ease); }
.sjec-ctile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sjec-ctile:hover::after { transform: scaleX(1); }
.sjec-ctile__icon .icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--accent-50); color: var(--accent); margin-bottom: 8px; }
.sjec-ctile__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.sjec-ctile__value { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.sjec-ctile__value a { color: inherit; text-decoration: none; }
.sjec-ctile__value a:hover { color: var(--accent); }
.sjec-ctile__hint { margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; }
.sjec-ctile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sjec-ctile__actions .btn.is-copied { --btn-fg: #16a34a; border-color: #16a34a; }
.sjec-contacts__messengers { margin-top: 20px; justify-content: center; }
.sjec-contacts__req { margin-top: 20px; }
.sjec-contacts__req-title { font-size: 22px; margin: 0 0 12px; }

.sjec-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sjec-hub__title { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 32px); }
.sjec-hub__topics ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sjec-hub__topics li { margin: 0; }
.sjec-hub__item { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: .25s var(--ease); }
.sjec-hub__item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); color: var(--ink); }
.sjec-hub__icon .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--soft); color: var(--accent); transition: .25s; }
.sjec-hub__item:hover .sjec-hub__icon .icon { background: var(--accent); color: #fff; }
.sjec-hub__txt { display: grid; gap: 2px; flex: 1; }
.sjec-hub__txt b { font-size: 16.5px; }
.sjec-hub__txt span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.sjec-hub__arrow { flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent); transition: transform .25s; }
.sjec-hub__item:hover .sjec-hub__arrow { transform: translateX(4px); }
.sjec-hub__form { position: sticky; top: calc(var(--header-h) + 20px); background: var(--soft); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); border-top: 4px solid var(--accent); }
.sjec-hub__form-title { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: var(--ink); }
.sjec-hub__form-text { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 900px) { .sjec-hub { grid-template-columns: 1fr; } .sjec-hub__form { position: static; } }

/* ---------- Text alignment legacy (migrated content) ---------- */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .mobile-bar, .to-top, .cookie, .sjec-cta, .sjec-map, .modal { display: none !important; }
}
