/* LCS — Lasercutting.lv
   Без сборки: обычный CSS с переменными. Цвета и размеры — в :root. */

/* ---------- Шрифт (локально, без Google Fonts) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/montserrat-latin-wght-normal.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; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url("../fonts/montserrat-cyrillic-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---------- Токены ---------- */
:root {
	--c-primary: #2e3192;
	--c-primary-600: #24277a;
	--c-primary-050: #eef0fb;
	--c-accent: #ff5a1f;
	--c-accent-600: #e5470e;
	--c-accent-700: #c2410c;   /* текст акцентным цветом на белом (контраст ≥ 4.5) */
	--c-accent-btn: #d4430c;   /* фон кнопок с белым текстом (контраст 4.56) */
	--c-accent-btn-600: #b8390a;
	--c-ink: #14162b;
	--c-text: #2a2d42;
	--c-muted: #5d6178;
	--c-line: #e3e5ef;
	--c-bg: #ffffff;
	--c-bg-alt: #f5f6fb;
	--c-dark: #0d0f24;
	--c-ok: #127a43;
	--c-error: #c62828;

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 22, 43, .06), 0 8px 24px rgba(20, 22, 43, .06);
	--shadow-lg: 0 2px 4px rgba(20, 22, 43, .06), 0 20px 48px rgba(20, 22, 43, .12);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--section: clamp(56px, 8vw, 104px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::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: 16px; line-height: 1.6; color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-600); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.h1 { font-size: clamp(32px, 5vw, 52px); }
.h2 { font-size: clamp(26px, 3.4vw, 40px); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--c-muted); }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-600); margin-bottom: 14px; }
.kicker--light { color: #ffb08f; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--accent { background: var(--c-accent-btn); color: #fff; box-shadow: 0 6px 18px rgba(255, 90, 31, .28); }
.btn--accent:hover { background: var(--c-accent-btn-600); color: #fff; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-primary); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 15, 36, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--c-ink); }
.brand__img { height: 46px; width: auto; }
.site-footer .brand__img { height: 52px; }
.brand:hover .brand__img { opacity: .85; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid currentColor; border-radius: 6px; font-weight: 900; font-size: 15px; letter-spacing: -.04em; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.brand__text span { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; }
.brand--light, .brand--light:hover { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--c-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-nav .menu a:hover { background: var(--c-primary-050); color: var(--c-primary); }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--c-primary); }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.site-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.site-nav .sub-menu a { border-radius: var(--radius-sm); font-weight: 500; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__tools { display: flex; align-items: center; gap: 12px; }

.lang-switch { position: relative; }
.lang-switch summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; color: var(--c-ink); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: var(--c-primary-050); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 180px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lang-switch a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--c-ink); text-decoration: none; font-size: 15px; }
.lang-switch a:hover, .lang-switch a[aria-current] { background: var(--c-primary-050); color: var(--c-primary); }
.lang-switch a[aria-current] { font-weight: 700; }

.nav-toggle { display: none; margin-left: auto; padding: 10px; border: 0; background: none; color: var(--c-ink); cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle__close { display: none; }

@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden; }
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--c-line); font-size: 18px; }
	.site-nav .menu a:hover { background: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; border-radius: 0; }
	.site-nav .sub-menu a { font-size: 16px; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-nav__tools { flex-direction: column; align-items: stretch; margin-top: 20px; }
	.lang-switch ul { position: static; box-shadow: none; display: grid; grid-template-columns: repeat(2, 1fr); }
	.site-nav__tools .btn { width: 100%; }
}


/* Тёмная шапка в цвете бренда (белый логотип как на визитках) */
.site-header .site-nav .menu a, .site-header .lang-switch summary, .site-header .nav-toggle { color: #fff; }
.site-header .site-nav .menu > li > a:hover, .site-header .lang-switch summary:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-header .site-nav .current-menu-item > a, .site-header .site-nav .current-menu-ancestor > a { color: #ffb08f; }
.site-header .site-nav .sub-menu a { color: var(--c-ink); }
.site-header .site-nav .sub-menu a:hover { background: var(--c-primary-050); color: var(--c-primary); }
.site-header .site-nav .sub-menu .current-menu-item > a { color: var(--c-primary); }
@media (max-width: 1080px) {
	.site-header .site-nav { background: var(--c-primary-600); }
	.site-header .site-nav .menu a { border-bottom-color: rgba(255, 255, 255, .12); }
	.site-header .site-nav .sub-menu a { color: rgba(255, 255, 255, .85); }
	.site-header .site-nav .sub-menu a:hover { background: none; color: #fff; }
	.site-header .lang-switch ul { background: transparent; border-color: rgba(255, 255, 255, .15); }
	.site-header .lang-switch a { color: #fff; }
	.site-header .lang-switch a:hover, .site-header .lang-switch a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
}
@media (max-width: 480px) { .brand__img { height: 38px; } }

/* ---------- Hero главной ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--c-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 15, 36, .92) 0%, rgba(13, 15, 36, .78) 45%, rgba(46, 49, 146, .45) 100%); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { padding-block: clamp(72px, 12vw, 150px) clamp(48px, 7vw, 88px); }
.hero__title { color: #fff; font-size: clamp(36px, 6vw, 68px); font-weight: 900; max-width: 15ch; margin-bottom: 20px; }
.hero__lead { font-size: clamp(17px, 1.8vw, 21px); color: rgba(255, 255, 255, .82); max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: clamp(48px, 7vw, 88px) 0 0; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.hero__stats > div { padding: 20px 22px; background: rgba(13, 15, 36, .55); backdrop-filter: blur(6px); }
.hero__stats dt { font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 6px; }
.hero__stats dd { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; white-space: nowrap; }
@media (max-width: 480px) { .hero__stats dd { font-size: 20px; white-space: normal; } .hero__stats > div { padding: 16px 14px; } }
.hero__stats small { font-size: max(12px, .5em); font-weight: 600; color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Внутренние страницы ---------- */
.page-hero { background: linear-gradient(180deg, var(--c-bg-alt), #fff); border-bottom: 1px solid var(--c-line); }
.page-hero__inner { display: grid; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero--media .page-hero__inner, .page-hero--machine .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-hero__text { min-width: 0; }
.page-hero__title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; margin-bottom: 16px; overflow-wrap: anywhere; hyphens: auto; }
.page-hero__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--c-muted); max-width: 60ch; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero__media--photo img { object-fit: cover; object-position: center 60%; }
.page-hero__media--contain img { object-fit: contain; background: #fff; padding: 24px; box-shadow: var(--shadow); }
.page-hero .btn { margin-top: 12px; }
.page-hero .specs { margin: 8px 0 24px; max-width: 520px; }
@media (max-width: 900px) {
	.page-hero--media .page-hero__inner, .page-hero--machine .page-hero__inner { grid-template-columns: 1fr; }
	.page-hero__media { order: -1; }
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b5b8c8; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; display: inline-block; padding: 4px 0; margin: -4px 0; }
.breadcrumbs a:hover { color: var(--c-primary); }

/* ---------- Секции, сетки, карточки ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--c-bg-alt); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.section__head .h2 { margin: 0; flex: 1 1 520px; max-width: none; }
.section__head > div { flex: 1 1 520px; min-width: 0; }
.section__head > div .h2 { flex: none; }
.section__lead { margin: 10px 0 0; color: var(--c-muted); font-size: 16px; max-width: 70ch; }
.section__head > .link-arrow { flex: none; max-width: 100%; }
.link-arrow svg { flex: none; }
@media (max-width: 600px) { .section__head > .link-arrow { flex: 1 1 100%; } }
.section > .container > .h2 { margin-bottom: clamp(24px, 3vw, 40px); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--machines { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; color: var(--c-text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--c-text); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--c-bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__media--contain { background: #fff; border-bottom: 1px solid var(--c-line); }
.card__media--contain img { object-fit: contain; padding: 18px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }
.card__title { font-size: 19px; margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--c-muted); margin-bottom: 16px; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--c-primary); }
.card--form { padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #c4c7d6; }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700; }

/* Характеристики */
.specs { margin: 0; }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); font-size: 15px; }
.specs__row:last-child { border-bottom: 0; }
.specs dt { color: var(--c-muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--c-ink); text-align: right; white-space: nowrap; }
.specs__group { margin-top: 10px; padding-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-700); }
.specs__group { margin-bottom: 0; }
.specs--cont { margin-top: 0; }
.specs--short .specs__row { font-size: 14px; padding: 7px 0; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps__item { position: relative; padding-top: 64px; counter-increment: step; }
.steps__item::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: 40px; font-weight: 900; line-height: 1; color: var(--c-primary); }
.steps__item::after { content: ""; position: absolute; top: 20px; left: 72px; right: -12px; height: 2px; background: linear-gradient(90deg, var(--c-line), transparent); }
.steps__item:last-child::after { display: none; }
.steps__item h3 { font-size: 18px; }
.steps__item p { color: var(--c-muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps__item::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Контент из редактора ---------- */
.entry-content { max-width: 860px; font-size: 17px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h1 { font-size: clamp(26px, 3vw, 34px); }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--c-accent); }
.entry-content ol.wp-block-list { list-style: none; counter-reset: cap; padding: 0; display: grid; gap: 12px; }
.entry-content ol.wp-block-list > li { counter-increment: cap; position: relative; margin: 0; padding: 16px 18px 16px 64px; background: var(--c-bg-alt); border-radius: var(--radius-sm); }
.entry-content ol.wp-block-list > li::before { content: counter(cap); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; font-size: 15px; }
.entry-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entry-content .wp-block-gallery .wp-block-image { margin: 0; width: auto !important; }
.entry-content .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 600px) { .entry-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .lead, .entry-content p.lead { font-size: 19px; color: var(--c-text); }
.entry-content .wp-block-spacer { max-height: 32px; }
.entry-content .wp-block-columns { gap: 32px; }
.entry-content .wp-block-column:empty { display: none; }
.entry-content .wp-block-columns > .wp-block-column:not(:empty) { flex: 1 1 0 !important; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; }
.entry-content .alignwide { max-width: 1200px; }

/* Блоки колонок из редактора (страницы старого сайта: Quality control, Shot blasting и др.) — шире колонки текста */
.entry-content > .wp-block-columns { width: min(1160px, calc(100vw - 32px)); max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-column h1, .entry-content .wp-block-column h2 { font-size: clamp(24px, 2.6vw, 34px); overflow-wrap: normal; word-break: normal; hyphens: manual; }

.entry-content .card > img, .entry-content .card > picture > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; display: block; }
.entry-content .card .card-body { padding: 16px 18px 18px; }
.entry-content .card .card-title { margin: 0; font-size: 16px; line-height: 1.4; }
/* «О компании»: цифры и участники */
.entry-content .lcs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 8px; }
.entry-content .lcs-facts > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: var(--c-primary-050); border-radius: var(--radius-sm); border-left: 4px solid var(--c-accent); }
.entry-content .lcs-facts dd { margin: 0; order: 1; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; color: var(--c-primary); line-height: 1.15; }
.entry-content .lcs-facts dt { order: 2; font-size: 14px; color: var(--c-muted); overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 760px) { .entry-content .lcs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry-content .lcs-partners { gap: 16px; }
.entry-content .lcs-partner { display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.entry-content .lcs-partner h3 { margin: 0 0 .5em; font-size: 18px; color: var(--c-primary); }
.entry-content .lcs-partner p { margin: 0; font-size: 15px; }
.entry-content .lcs-partner .lcs-partner__link { margin-top: auto; padding-top: 12px; font-weight: 700; }
.page-hero--media .page-hero__media img { object-position: 30% center; }

/* Фото рядом с подписями (дробеструйка и др.) */
.entry-content .lcs-photos { width: min(1160px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2.25fr); gap: 12px; margin-top: 2em; align-items: start; }
.entry-content .lcs-photos .wp-block-column { margin: 0; }
.entry-content .lcs-photos figure { margin: 0; }
.entry-content .lcs-photos img { width: 100%; height: auto; }
.entry-content .lcs-photos .lcs-year { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--c-primary-050); color: var(--c-primary); font-size: 12px; font-weight: 700; }
.entry-content .lcs-photos figcaption { margin-top: 8px; font-size: 14px; color: var(--c-muted); text-align: left; }
@media (max-width: 700px) { .entry-content .lcs-photos { grid-template-columns: 1fr; } }

/* ---------- Заявка ---------- */
.section--lead { background: var(--c-dark); color: rgba(255, 255, 255, .85); }
.lead-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lead-layout__aside .h2 { color: #fff; }
.lead-layout__aside .kicker { color: #ffb08f; }
.lead-layout__form { background: #fff; color: var(--c-text); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .lead-layout { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; }
.contact-list .icon { flex-shrink: 0; margin-top: 3px; color: var(--c-accent); }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: #ffb08f; }

.lead-form__head { margin-bottom: 20px; }
.lead-form__title { font-size: 26px; margin-bottom: 6px; }
.lead-form__sub { color: var(--c-muted); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.req { color: var(--c-accent-600); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; color: var(--c-ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6178' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-050); }
.field .is-invalid { border-color: var(--c-error) !important; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--c-muted); }
.field--check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--c-primary); }
.dropzone { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 18px; border: 2px dashed var(--c-line); border-radius: var(--radius-sm); color: var(--c-muted); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--c-primary); background: var(--c-primary-050); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { color: var(--c-primary); }
.dropzone__btn { font-weight: 700; color: var(--c-primary); }
.dropzone__hint { flex-basis: 100%; font-size: 13px; }
.file-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.file-list .is-bad { color: var(--c-error); }
.captcha { margin: -6px 0 18px; min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:empty { display: none; }
.form-msg { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg.is-ok { background: #e7f6ee; color: var(--c-ok); }
.form-msg.is-error { background: #fdecec; color: var(--c-error); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .lead-form .btn { width: 100%; } }

/* ---------- Контакты ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.contact-card .icon { grid-row: span 2; color: var(--c-accent); }
.contact-card__label { font-size: 13px; color: var(--c-muted); }
.contact-card__value { font-weight: 700; font-size: 17px; color: var(--c-ink); text-decoration: none; word-break: break-word; }
.contact-company { color: var(--c-muted); margin: 4px 0 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.map { position: relative; min-height: 420px; background: var(--c-bg-alt) url("../img/map-placeholder.svg") center / cover; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { max-width: 460px; margin: 24px; padding: 24px; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; color: var(--c-muted); }

/* ---------- Подвал ---------- */
.site-footer { background: #090a1a; color: rgba(255, 255, 255, .68); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-block: 64px 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 30ch; }
.site-footer__title { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contacts .icon { margin-top: 4px; flex-shrink: 0; color: var(--c-accent); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Прочее ---------- */
.section--404 { text-align: center; }
.section--404 .narrow { margin-inline: auto; }
.link-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.card__media--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; padding: 0; background: none; }
.entry-content .lcs-photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .lcs-photos--2 img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .entry-content .lcs-photos--2 { grid-template-columns: 1fr; } }

/* ---------- Cookie-баннер (inc/consent.php) ---------- */
.lcs-cc { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.lcs-cc[hidden] { display: none; }
.lcs-cc__box { pointer-events: auto; min-width: 0; overflow-wrap: anywhere; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--c-ink); color: #fff; border-radius: var(--radius, 12px); box-shadow: 0 18px 50px rgba(20, 22, 43, .35); padding: 22px 24px; font-size: 14px; line-height: 1.55; }
.lcs-cc__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.lcs-cc__text { margin: 0 0 14px; color: rgba(255, 255, 255, .85); }
.lcs-cc a { color: #fff; text-decoration: underline; }
.lcs-cc__prefs { display: grid; gap: 10px; margin: 0 0 16px; }
.lcs-cc__prefs[hidden] { display: none; }
.lcs-cc__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; cursor: pointer; color: rgba(255, 255, 255, .85); }
.lcs-cc__opt b { color: #fff; }
.lcs-cc__opt small { font-size: 12px; }
.lcs-cc__opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-accent); flex: none; }
.lcs-cc__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lcs-cc__btn { min-height: 42px; padding: 8px 20px; font-size: 14px; }
.lcs-cc__btn[hidden], .lcs-cc__link[hidden] { display: none; }
.lcs-cc__link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 8px 4px; }
@media (max-width: 560px) { .lcs-cc { left: 8px; right: 8px; bottom: 8px; } .lcs-cc__box { padding: 18px 16px; } .lcs-cc__btn { flex: 1 1 auto; } }
.site-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.site-footer__credit { opacity: .7; white-space: nowrap; }
.site-footer__credit a { text-decoration: underline; text-underline-offset: 2px; }
.lcs-policy-date { color: var(--c-muted); font-size: 14px; }
.entry-content .wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.entry-content th { background: var(--c-bg-alt); font-weight: 600; }
.lcs-cc .btn--ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .55); color: #fff; }
.lcs-cc .btn--ghost:hover { background: #fff; color: var(--c-ink); }

/* ---------- Скорость (inc/perf.php) ---------- */
picture { display: contents; }
.hero__video--clip { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero__video--clip.is-playing { opacity: 1; }
.site-footer .btn--accent, .site-footer .btn--accent:hover { color: #fff; }

/* ---------- Мобильные карточки услуг: компактно, картинка слева ---------- */
@media (max-width: 600px) {
	.grid--services .card--service { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
	.grid--services .card--service .card__media { aspect-ratio: auto; height: 100%; min-height: 112px; }
	.grid--services .card--service .card__body { padding: 14px 14px 12px; }
	.grid--services .card--service .card__title { font-size: 16px; margin-bottom: 6px; }
	.grid--services .card--service .card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; margin-bottom: 8px; }
	.grid--services .card--service .card__more { font-size: 13px; }
	h1, .h2, h2 { overflow-wrap: anywhere; hyphens: auto; }
	.page-hero__title { font-size: 27px; }
}
