/*
 * EngineerMake — светлый glassmorphism (перенос packages/ui/src/styles/theme.css и компонентов сайта Next).
 * Цвета, шрифт, тени — пресеты theme.json (--wp--preset--*); здесь — стекло, сетка, компоненты и адаптив до 375 px.
 * Контраст текста ≥ WCAG AA: ink #1b2430, ink-soft #3a4759, ink-muted #4f5d70, ссылки accent-ink #0e7490.
 */
:root {
  --em-ink: var(--wp--preset--color--ink, #1b2430);
  --em-ink-soft: var(--wp--preset--color--ink-soft, #3a4759);
  --em-ink-muted: var(--wp--preset--color--ink-muted, #4f5d70);
  --em-accent: var(--wp--preset--color--accent, #0891b2);
  --em-accent-ink: var(--wp--preset--color--accent-ink, #0e7490);
  --em-glow: var(--wp--preset--color--glow, #22d3ee);
  --em-ember-ink: var(--wp--preset--color--ember-ink, #c2410c);
  --em-radius: var(--wp--custom--radius--glass, 1.25rem);
  --em-radius-lg: var(--wp--custom--radius--glass-lg, 1.75rem);
  --em-shadow-glass: var(--wp--preset--shadow--glass);
  --em-shadow-glow: var(--wp--preset--shadow--glow);
  --em-shadow-glow-strong: var(--wp--preset--shadow--glow-strong);
  --em-max: 80rem;
  --em-text: 56rem;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}
body {
  min-height: 100dvh;
  overflow-x: clip;
  background-color: #e8edf3;
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgb(250 252 254 / 0.95), transparent 60%),
    radial-gradient(900px 700px at 108% 18%, rgb(214 226 238 / 0.9), transparent 62%),
    radial-gradient(800px 500px at 50% 112%, rgb(222 232 242 / 0.9), transparent 60%),
    linear-gradient(180deg, #eef2f6 0%, #e4eaf1 100%);
  background-attachment: fixed;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgb(34 211 238 / 0.3);
}
:focus-visible {
  outline: 2px solid var(--em-accent);
  outline-offset: 2px;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}
.wp-site-blocks {
  padding: 0;
}
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

/* ---------- стекло и сетка ---------- */
.em-glass,
.em-glass-panel {
  background-color: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.78);
  box-shadow: var(--em-shadow-glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-radius: var(--em-radius);
}
.em-glass-strong {
  background-color: rgb(255 255 255 / 0.74);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: var(--em-shadow-glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--em-radius);
}
.em-glass-subtle {
  background-color: rgb(255 255 255 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-radius: var(--em-radius);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .em-glass,
  .em-glass-panel,
  .em-glass-strong,
  .em-glass-subtle {
    background-color: rgb(255 255 255 / 0.92);
  }
}
.em-blueprint {
  background-color: rgb(248 251 253 / 0.55);
  background-image:
    linear-gradient(rgb(71 85 105 / 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgb(71 85 105 / 0.16) 1px, transparent 1px),
    linear-gradient(rgb(71 85 105 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(71 85 105 / 0.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* фон: «жидкие» стеклянные формы по краям */
.em-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.em-blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: radial-gradient(circle at 28% 24%, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.35) 26%, rgb(203 216 232 / 0.28) 58%, rgb(160 182 208 / 0.32) 100%);
  box-shadow: inset -18px -26px 48px rgb(120 146 182 / 0.28), inset 14px 16px 34px rgb(255 255 255 / 0.9), 0 30px 60px -20px rgb(80 110 150 / 0.25);
  border: 1px solid rgb(255 255 255 / 0.7);
  animation: em-float 18s ease-in-out infinite;
}
.em-blob--1 { left: -10rem; top: -8rem; width: 26rem; height: 26rem; opacity: 0.8; }
.em-blob--2 { right: -12rem; top: 6rem; width: 22rem; height: 30rem; opacity: 0.75; animation-delay: -6s; }
.em-blob--3 { bottom: -12rem; left: 8%; width: 30rem; height: 22rem; opacity: 0.6; animation-delay: -11s; }
.em-blob--4 { bottom: -10rem; right: -6rem; width: 24rem; height: 24rem; opacity: 0.7; animation-delay: -3s; }
@media (min-width: 640px) {
  .em-blob--1 { width: 34rem; height: 34rem; }
  .em-blob--2 { width: 28rem; height: 40rem; }
}
@keyframes em-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(3deg); }
}

/* ---------- раскладка ---------- */
.em-main {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--em-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.em-main > * {
  margin-block: 0 !important;
  min-width: 0;
}
@media (min-width: 640px) {
  .em-main { padding-inline: 1.5rem; }
}
.em-home { gap: 3rem; }
.em-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.em-content > * {
  margin-block: 0 !important;
  max-width: var(--em-text);
}
.em-content > .em-wide,
.em-content > .em-related,
.em-content > .em-toc,
.em-content > .em-process,
.em-content > .em-requirements,
.em-content > .em-keypoints,
.em-content > .wp-block-table,
.em-content > .em-specs,
.em-content > .em-price {
  max-width: none;
}
.em-content > .wp-block-heading:not(:first-child),
.em-content > section:not(:first-child),
.em-content > nav:not(:first-child) {
  margin-top: 1rem !important;
}
.em-content h2,
.em-content h3 {
  scroll-margin-top: 7rem;
}
.em-content p,
.em-content li {
  color: var(--em-ink-soft);
}
.em-content strong {
  color: var(--em-ink);
  font-weight: 600;
}
.em-content ul,
.em-content ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.em-content li::marker {
  color: var(--em-accent-ink);
}
.em-eyebrow {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em-ink-muted);
  margin: 0;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- кнопки ---------- */
.em-btn,
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(165 243 252 / 0.9);
  background: rgb(255 255 255 / 0.75);
  color: var(--em-ink) !important;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: var(--em-shadow-glow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s, background-color 0.2s, transform 0.2s;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}
.em-btn:hover,
.wp-element-button:hover {
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--em-shadow-glow-strong);
}
.em-btn:active { transform: translateY(1px); }
.em-btn--outline {
  border-color: rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.5);
  box-shadow: none;
}
.em-btn--outline:hover {
  background: rgb(255 255 255 / 0.8);
  box-shadow: var(--em-shadow-glass);
}
.em-btn--sm { min-height: 2rem; padding: 0.25rem 0.75rem; border-radius: 0.5rem; }
.em-btn--lg { min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: 1rem; font-size: 1rem; }
.em-btn--icon { width: 2.5rem; padding: 0; }
.em-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.8);
  background: rgb(255 255 255 / 0.8);
  color: var(--em-ink);
  box-shadow: var(--em-shadow-glass);
  cursor: pointer;
}
.em-round-btn:hover { background: #fff; }

/* ---------- шапка ---------- */
.em-header-part {
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-bar .em-header-part { top: 32px; }
.em-header {
  padding: 0.75rem 0.75rem 0;
}
.em-header__bar {
  max-width: var(--em-max);
  margin: 0 auto;
}
.em-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.5rem 1rem;
}
.em-header__brand {
  text-decoration: none;
  border-radius: 0.75rem;
  flex-shrink: 0;
}
.em-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--em-ink);
}
.em-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 1rem;
}
.em-nav__link,
.em-mobile-menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--em-ink-soft);
  text-decoration: none;
}
.em-nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -0.25rem;
  height: 3px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 12px 2px rgb(34 211 238 / 0.75);
  opacity: 0;
  transition: opacity 0.2s;
}
.em-nav__link:hover,
.em-nav__link[aria-current='page'],
.em-mobile-menu__link[aria-current='page'] {
  color: var(--em-ink);
}
.em-mobile-menu__link[aria-current='page'] { color: var(--em-accent-ink); }
.em-nav__link[aria-current='page']::after { opacity: 1; }
.em-header__toggle { margin-left: auto; }
.em-header__secondary {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.375rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.7);
}
.em-header__phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--em-ink);
  text-decoration: none;
  white-space: nowrap;
}
.em-mobile-menu {
  display: none;
  border-top: 1px solid rgb(255 255 255 / 0.7);
  padding: 0.5rem 1rem 1rem;
}
.em-mobile-menu:target,
.em-mobile-menu.is-open {
  display: block;
}
.em-mobile-menu__nav {
  display: flex;
  flex-direction: column;
}
.em-mobile-menu__link { padding-block: 0.625rem; white-space: normal; }
.em-mobile-menu__extra {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.7);
}
@media (min-width: 1280px) {
  .em-nav { display: flex; }
  .em-header__toggle { display: none; }
  .em-header__secondary { display: flex; }
  .em-mobile-menu,
  .em-mobile-menu:target,
  .em-mobile-menu.is-open { display: none; }
  .em-header__row { padding-inline: 1.5rem; }
}
@media (min-width: 640px) {
  .em-header { padding-inline: 1rem; }
}

/* ---------- подвал ---------- */
.em-footer {
  max-width: var(--em-max);
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
  box-sizing: border-box;
}
.em-footer__grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--em-ink-soft);
}
.em-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.em-footer__col a {
  color: var(--em-ink-soft);
  text-decoration: none;
}
.em-footer__col a:hover { color: var(--em-ink); text-decoration: underline; }
.em-footer__link-btn { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; color: var(--em-ink-soft); cursor: pointer; text-align: left; }
.em-footer__link-btn:hover { color: var(--em-ink); text-decoration: underline; }
.em-footer__link-btn[hidden] { display: none; }
.em-footer__small { font-size: 0.75rem; }
@media (min-width: 640px) {
  .em-footer { padding-inline: 1.5rem; }
  .em-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .em-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- хлебные крошки ---------- */
.em-breadcrumbs ol {
  display: block;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--em-ink-muted);
}
.em-breadcrumbs li { display: inline; }
.em-breadcrumbs li + li::before { content: '/'; margin: 0 0.375rem; }
.em-breadcrumbs a { color: var(--em-ink-muted); text-decoration: none; }
.em-breadcrumbs a:hover { color: var(--em-ink); text-decoration: underline; }
.em-breadcrumbs [aria-current] { color: var(--em-ink-soft); }

/* ---------- первый экран ---------- */
.em-hero {
  display: grid;
  gap: 1.5rem;
}
.em-hero__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--em-text);
}
.em-hero__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--xx-large);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.em-hero__answer {
  margin: 0;
  font-size: 1.125rem;
  color: var(--em-ink-soft);
}
.em-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.em-terms { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; }
.em-terms dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--em-ink-muted); }
.em-terms dd { margin: 0; font-weight: 600; color: var(--em-ink); }
.em-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--em-ink-soft);
}
.em-contact-line a { font-weight: 600; color: var(--em-ink); text-decoration: none; overflow-wrap: anywhere; }
.em-contact-line a:hover { color: var(--em-accent-ink); }
.em-updated { margin: 0; font-size: 0.875rem; color: var(--em-ink-muted); }
.em-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: var(--em-radius-lg);
  box-sizing: border-box;
}
.em-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1024px) {
  .em-hero--service { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* ---------- плейсхолдер и карточки ---------- */
.em-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(8 145 178 / 0.7);
}
.em-placeholder svg { width: 66%; height: 66%; }
.em-grid,
.em-content .em-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}
.em-grid > li { margin: 0; min-width: 0; }
@media (min-width: 640px) {
  .em-grid,
  .em-content .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .em-grid,
  .em-content .em-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.em-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}
.em-card:hover { box-shadow: var(--em-shadow-glow); }
.em-card__media,
.em-card > .em-placeholder { aspect-ratio: 16 / 10; overflow: hidden; }
.em-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}
.em-card__title {
  margin: 0;
  font-size: 1.125rem !important;
  font-weight: 600;
  line-height: 1.35;
}
.em-card__title a {
  color: var(--em-ink);
  text-decoration: none;
}
/* вся карточка — одна ссылка */
.em-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.em-card__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--em-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.em-card__meta { margin: 0; font-size: 0.75rem; font-weight: 500; color: var(--em-accent-ink); }
.em-card__more { margin-top: auto; align-self: flex-start; }
.em-post-card { padding: 1.25rem; gap: 0.5rem; }
.em-post-card .em-card__body { padding: 0; }
.em-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--em-ink-muted);
}
.em-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgb(8 145 178 / 0.12);
  color: var(--em-accent-ink);
}
.em-badge--warning { background: rgb(251 146 60 / 0.16); color: var(--em-ember-ink); }

/* ---------- главная ---------- */
.em-slider { display: flex; flex-direction: column; gap: 0.75rem; }
.em-slider__track { display: grid; }
.em-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  min-height: 16rem;
  overflow: hidden;
  border-radius: var(--em-radius-lg);
}
.em-slide[aria-hidden='true'] { visibility: hidden; }
.em-slide.is-entering { animation: em-fade 0.4s ease-out; }
@keyframes em-fade { from { opacity: 0; } to { opacity: 1; } }
.em-slide__bg,
.em-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.em-slide__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  align-self: flex-end;
  max-width: 36rem;
  margin: 1rem;
  padding: 1.25rem;
  border-radius: var(--em-radius);
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.em-slide__panel p { margin: 0; color: var(--em-ink-soft); }
.em-slide__panel .em-btn { align-self: flex-start; }
.em-slide__title { margin: 0; font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 640px) {
  .em-slide { min-height: 20rem; }
  .em-slide__panel { margin: 2rem; padding: 1.5rem; }
  .em-slide__title { font-size: 1.875rem; }
}
.em-slider__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.em-slider__dots,
.em-slider__buttons { display: flex; align-items: center; gap: 0.5rem; }
.em-slider__dot {
  width: 0.625rem;
  height: 0.625rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(79 93 112 / 0.4);
  cursor: pointer;
  transition: width 0.2s;
}
.em-slider__dot[aria-current='true'] { width: 1.75rem; background: #0891b2; box-shadow: var(--em-shadow-glow); }
.em-home-sections { display: flex; flex-direction: column; gap: 3rem; }
.em-home-section { display: flex; flex-direction: column; gap: 1.25rem; }
.em-home-section__head,
.em-kb__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.em-home-section__head > div { max-width: 48rem; display: flex; flex-direction: column; gap: 0.25rem; }
.em-home-section h2,
.em-kb h2,
.em-contacts h2 { margin: 0; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.em-home-section__head p { margin: 0; color: var(--em-ink-soft); }
.em-link-more { font-weight: 500; color: var(--em-accent-ink); text-decoration: none; }
.em-link-more:hover { text-decoration: underline; }
.em-kb { display: flex; flex-direction: column; gap: 1.25rem; }
.em-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; width: fit-content; max-width: 100%; padding: 0.25rem; border-radius: 1rem; }
.em-tab {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--em-ink-soft);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.em-tab[aria-selected='true'] { background: #fff; color: var(--em-ink); box-shadow: var(--em-shadow-glow); }
.em-contacts,
.em-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .em-contacts,
  .em-cta { padding: 2rem; }
}
.em-contacts .em-btn { align-self: flex-start; }
.em-contacts__list { display: grid; gap: 1rem; margin: 0; }
.em-contacts__list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--em-ink-muted); }
.em-contacts__list dd { margin: 0.25rem 0 0; color: var(--em-ink); overflow-wrap: anywhere; }
.em-contacts__list a { font-weight: 600; color: var(--em-ink); text-decoration: none; }
@media (min-width: 640px) {
  .em-contacts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .em-contacts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.em-cta h2 { margin: 0; }
.em-cta p { margin: 0; color: var(--em-ink-soft); }
.em-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.em-cta-group { display: flex; flex-direction: column; gap: 2rem; }

/* ---------- формы заявок (ADR-0020) ---------- */
.em-lead__form { display: flex; flex-direction: column; gap: 1rem; }
.em-lead__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .em-lead__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.em-field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.em-field label { font-size: 0.875rem; font-weight: 600; color: var(--em-ink); }
.em-field__req { color: var(--em-ember-ink); margin-left: 0.125rem; }
.em-field input[type='text'],
.em-field input[type='tel'],
.em-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgb(79 93 112 / 0.45);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.85);
  color: var(--em-ink);
  font: inherit;
  font-size: 1rem;
}
.em-field textarea { min-height: 7rem; resize: vertical; }
.em-field input:focus-visible,
.em-field textarea:focus-visible { outline: 2px solid var(--em-accent); outline-offset: 1px; border-color: var(--em-accent); }
.em-field [aria-invalid='true'] { border-color: var(--em-ember-ink); box-shadow: 0 0 0 1px var(--em-ember-ink); }
.em-cta .em-field__error,
.em-field__error { margin: 0; font-size: 0.875rem; color: var(--em-ember-ink); }
.em-consent { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 400 !important; color: var(--em-ink-soft) !important; }
.em-consent input { width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; flex-shrink: 0; accent-color: var(--em-accent); }
.em-consent a { color: var(--em-accent-ink); }
.em-cta .em-lead__alert,
.em-lead__alert { margin: 0; color: var(--em-ember-ink); font-weight: 600; }
.em-lead__alert:empty { display: none; }
.em-lead__submit { align-self: flex-start; }
.em-lead__submit[disabled] { opacity: 0.7; cursor: progress; }
.em-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.em-lead { position: relative; }
.em-lead__success { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem; border-radius: var(--em-radius); background: rgb(220 252 231 / 0.7); }
.em-lead__success:focus { outline: 2px solid var(--em-accent); outline-offset: 2px; }
.em-cta .em-lead__success-title { font-size: 1.125rem; font-weight: 700; color: var(--em-ink); }

/* ---------- блоки страниц услуг ---------- */
.em-keypoints {
  padding: 1.25rem 1.5rem;
  border-radius: var(--em-radius);
  background-color: rgb(255 255 255 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.em-keypoints > h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.em-keypoints ul { gap: 0.375rem; }
.em-toc { padding: 1.25rem; }
.em-toc ol { margin: 0.5rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; }
.em-toc a { color: var(--em-accent-ink); text-decoration: none; }
.em-toc a:hover { text-decoration: underline; }
.em-toc__sub { padding-left: 1rem; }
.em-requirements {
  padding: 1.5rem;
  border-radius: var(--em-radius);
  background-color: rgb(255 255 255 / 0.74);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: var(--em-shadow-glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .em-requirements { padding: 2rem; }
}
.em-requirements > *,
.em-process > *,
.em-faq > *,
.em-keypoints > * { margin-block: 0; }
.em-process,
.em-faq { display: flex; flex-direction: column; gap: 0.75rem; }
.em-content ol.em-steps {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  counter-reset: em-step;
}
@media (min-width: 640px) {
  .em-content ol.em-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .em-content ol.em-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.em-steps > li {
  counter-increment: em-step;
  position: relative;
  display: block;
  padding: 1rem 1rem 1rem 3.5rem;
  font-size: 0.875rem;
  border-radius: var(--em-radius);
  background-color: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.78);
  box-shadow: var(--em-shadow-glass);
}
.em-steps > li::before {
  content: counter(em-step);
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgb(8 145 178 / 0.15);
  color: var(--em-accent-ink);
  font-weight: 700;
}
.em-faq .wp-block-details {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--em-radius);
  background-color: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.78);
  box-shadow: var(--em-shadow-glass);
}
.em-faq .wp-block-details[open] { box-shadow: var(--em-shadow-glow); }
.em-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--em-ink);
}
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after { content: '+'; color: var(--em-accent-ink); transition: transform 0.2s; }
.em-faq details[open] summary::after { transform: rotate(45deg); }
.em-faq details > p { margin: 0.5rem 0 0; }
.em-chips { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 0.5rem !important; padding: 0 !important; margin: 0; list-style: none; }
.em-methods,
.em-related,
.em-services,
.em-children,
.em-specs,
.em-price { display: flex; flex-direction: column; gap: 0.75rem; }
.em-methods h2,
.em-related h2,
.em-services h2,
.em-children h2,
.em-specs h2,
.em-price h2 { margin: 0; }
.em-note { font-size: 0.875rem; color: var(--em-ink-muted) !important; }
.em-pending { color: var(--em-ink-muted) !important; }

/* таблицы */
.em-table-wrap,
.wp-block-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
}
.em-table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
.wp-block-table table { min-width: 36rem; }
.em-table th,
.em-table td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.5rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgb(27 36 48 / 0.1);
  vertical-align: top;
}
.em-table thead th,
.wp-block-table thead th { background: rgb(255 255 255 / 0.6); font-weight: 600; color: var(--em-ink); border-bottom-color: rgb(27 36 48 / 0.15); }
.em-table tbody th,
.wp-block-table tbody th { font-weight: 600; color: var(--em-ink); }
.em-table td,
.wp-block-table td { color: var(--em-ink-soft); }
.em-table tbody tr:nth-child(odd),
.wp-block-table tbody tr:nth-child(odd) { background: rgb(255 255 255 / 0.3); }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table figcaption { color: var(--em-ink-muted); font-size: 0.875rem; }

/* статьи, страницы, архивы */
.em-article { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.em-article > * { margin-block: 0; }
@media (min-width: 640px) {
  .em-article { padding: 2rem; }
}
.em-article .wp-block-post-title { margin: 0; line-height: 1.15; }
.em-page-title { margin: 0; }
.em-query .em-post-grid { display: grid; gap: 1.25rem; padding: 0; }
@media (min-width: 640px) {
  .em-query .em-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .em-query .em-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.em-post-card .wp-block-post-title a { color: var(--em-ink); text-decoration: none; }
.em-post-card .wp-block-post-title { font-size: 1.125rem; margin: 0; }
.em-post-card .wp-block-post-excerpt__excerpt { margin: 0; font-size: 0.875rem; color: var(--em-ink-soft); }
.em-pagination { margin-top: 1.5rem; gap: 0.5rem; }
.em-search .wp-block-search__input { border-radius: 0.75rem; border: 1px solid rgb(148 163 184 / 0.6); padding: 0.5rem 0.75rem; background: rgb(255 255 255 / 0.8); }

/* редактор: обёртки предпросмотра */
.editor-styles-wrapper .em-keypoints,
.editor-styles-wrapper .em-requirements { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
