/* ==========================================================================
   PolimerMontazh — main stylesheet
   ========================================================================== */

:root {
  --pm-carbon: #0D1618;
  --pm-slate: #1B2A2E;
  --pm-bone: #F6F2EA;
  --pm-sand: #EADFCC;
  --pm-mist: #E3EBE7;
  --pm-orange: #FF6A13;
  --pm-orange-soft: #FFDBC4;
  --pm-mute: #5C6A66;
  --pm-line: rgba(13, 22, 24, .12);
  --pm-line-light: rgba(246, 242, 234, .18);
  --pm-radius: 28px;
  --pm-radius-sm: 20px;
  --pm-pad: clamp(20px, 4vw, 64px);
  --pm-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- базовая оболочка ---------- */

body {
  background: var(--pm-carbon);
  background-image:
    radial-gradient(900px 600px at 12% -5%, rgba(255, 106, 19, .10), transparent 60%),
    radial-gradient(1100px 700px at 100% 100%, rgba(80, 140, 130, .16), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pmshell {
  max-width: 1440px;
  width: calc(100% - clamp(16px, 2.4vw, 36px));
  margin: clamp(8px, 1.6vw, 22px) auto;
  background: var(--pm-bone);
  border-radius: clamp(22px, 2.6vw, 38px);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
}

img { max-width: 100%; height: auto; }
.wp-block-image { margin: 0; line-height: 0; }
.wp-block-image img { border-radius: inherit; }

/* ---------- типографика ---------- */

.pmeyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pm-mute);
  margin: 0;
}

.pmeyebrow--orange { color: var(--pm-orange); }
.pmeyebrow--light { color: rgba(246, 242, 234, .66); }

.pmaccent { font-style: italic; font-weight: 500; color: var(--pm-orange); }

.pmlead {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--pm-mute);
  max-width: 48ch;
  margin: 0;
}

.pmsection { padding: clamp(44px, 6vw, 88px) var(--pm-pad); }
.pmsection--tight { padding-top: clamp(28px, 3.4vw, 52px); }

/* ---------- кнопки ---------- */

.pmbtn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pm-carbon);
  color: var(--pm-bone);
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .35s var(--pm-ease), background .3s, color .3s;
}

.pmbtn .wp-block-button__link:hover {
  background: var(--pm-orange);
  color: var(--pm-carbon);
  transform: translateY(-2px);
}

.pmbtn--orange .wp-block-button__link {
  background: var(--pm-orange);
  color: var(--pm-carbon);
}

.pmbtn--orange .wp-block-button__link:hover {
  background: var(--pm-bone);
  color: var(--pm-carbon);
}

.pmbtn--ghost .wp-block-button__link {
  background: transparent;
  color: var(--pm-bone);
  border-color: rgba(246, 242, 234, .42);
}

.pmbtn--ghost .wp-block-button__link:hover {
  background: var(--pm-bone);
  color: var(--pm-carbon);
  border-color: var(--pm-bone);
}

.pmbtn--dark-ghost .wp-block-button__link {
  background: transparent;
  color: var(--pm-carbon);
  border-color: rgba(13, 22, 24, .24);
}

.pmbtn--dark-ghost .wp-block-button__link:hover {
  background: var(--pm-carbon);
  color: var(--pm-bone);
}

.wp-block-buttons.pmbtns { gap: 12px; }

/* круглая кнопка-стрелка */
.pmcircle .wp-block-button__link {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(246, 242, 234, .14);
  color: var(--pm-bone);
  border: 1px solid rgba(246, 242, 234, .34);
  backdrop-filter: blur(6px);
}

.pmcircle .wp-block-button__link:hover {
  background: var(--pm-orange);
  color: var(--pm-carbon);
  border-color: var(--pm-orange);
  transform: none;
}

.pmcircle--dark .wp-block-button__link {
  background: rgba(13, 22, 24, .06);
  color: var(--pm-carbon);
  border-color: rgba(13, 22, 24, .18);
}

/* ---------- шапка ---------- */

.pmheader {
  position: relative;
  z-index: 20;
  background: var(--pm-bone);
  padding: 14px clamp(16px, 3vw, 40px);
}

.pmheader__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
}

.pmbrand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.pmbrand img { width: 34px; height: 34px; display: block; }
.pmbrand .wp-block-site-title,
.pmbrand p { margin: 0; }
.pmbrand a,
.pmheader .wp-block-site-title a {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pm-carbon);
  text-decoration: none;
  text-transform: uppercase;
}

.pmnav { flex: 1 1 auto; display: flex; justify-content: center; }
.pmnav .wp-block-navigation__container { gap: clamp(14px, 2vw, 30px); }
.pmnav .wp-block-navigation-item__content {
  font-size: 15px;
  font-weight: 500;
  color: rgba(13, 22, 24, .78);
  padding: 6px 0;
}
.pmnav .wp-block-navigation-item__content:hover { color: var(--pm-orange); }

.pmheader__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.pmphone {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--pm-carbon);
  text-decoration: none;
  white-space: nowrap;
}
.pmphone:hover { color: var(--pm-orange); }

/* ---------- герой ---------- */

.pmhero {
  position: relative;
  margin: 0 clamp(8px, 1.2vw, 18px);
  border-radius: var(--pm-radius);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(520px, 44vw, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: var(--pm-bone);
}

.pmhero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pmhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1.02);
}

.pmhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(9, 16, 18, .94) 0%, rgba(9, 16, 18, .80) 36%, rgba(9, 16, 18, .30) 66%, rgba(9, 16, 18, .62) 100%),
    radial-gradient(70% 60% at 82% 26%, rgba(255, 106, 19, .24), transparent 70%);
}

.pmhero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  padding: clamp(24px, 3.4vw, 56px);
}

.pmhero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 37ch;
}

.pmhero h1,
.pmhero__title {
  margin: 0;
  color: var(--pm-bone);
  font-size: clamp(32px, 3.7vw, 57px);
  line-height: 1.0;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}

.pmhero__title em { font-style: italic; font-weight: 500; color: var(--pm-orange-soft); }

.pmhero__desc {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: rgba(246, 242, 234, .84);
  max-width: 44ch;
}

.pmhero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(246, 242, 234, .72);
  margin: 0;
}
.pmhero__trust strong { color: var(--pm-bone); font-weight: 600; }
.pmhero__trust::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pm-orange);
  box-shadow: 0 0 0 5px rgba(255, 106, 19, .22);
  flex: 0 0 auto;
}

/* карточка поверх фото */
.pmhero__card {
  background: rgba(246, 242, 234, .95);
  backdrop-filter: blur(10px);
  border-radius: var(--pm-radius-sm);
  padding: 10px 10px 16px;
  color: var(--pm-carbon);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .38);
  align-self: end;
}

.pmhero__card-img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
}
.pmhero__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.pmhero__card-body { padding: 0 8px; display: flex; flex-direction: column; gap: 7px; }
.pmhero__card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--pm-carbon);
}
.pmhero__card-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--pm-mute);
}
.pmhero__card-meta {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--pm-mute);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.pmbadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(246, 242, 234, .16);
  border: 1px solid rgba(246, 242, 234, .28);
  backdrop-filter: blur(6px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pm-bone);
  margin: 0;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.pmbadge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pm-orange);
}

/* волна под героем */
.pmhero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(38px, 5vw, 86px);
  z-index: 4;
  width: 100%;
  pointer-events: none;
}

/* ---------- о компании ---------- */

.pmabout {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.pmabout__art {
  position: relative;
  display: grid;
  grid-template-columns: 1.22fr .88fr;
  grid-template-rows: clamp(140px, 14vw, 196px) clamp(110px, 11.5vw, 160px);
  gap: 14px;
}
.pmabout__art::before {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -10%;
  width: 62%;
  height: 62%;
  border-radius: 50% 42% 55% 45% / 48% 55% 45% 52%;
  background: var(--pm-orange-soft);
  filter: blur(2px);
  z-index: 0;
}
.pmabout__art > * { position: relative; z-index: 1; }
.pmabout__art .pmfig { border-radius: var(--pm-radius-sm); overflow: hidden; height: 100%; }
.pmabout__art .pmfig img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pmabout__art .pmfig--1 { grid-column: 1; grid-row: 1; }
.pmabout__art .pmfig--2 { grid-column: 2; grid-row: 1 / span 2; }
.pmabout__art .pmfig--3 { grid-column: 1; grid-row: 2; }

.pmabout__body { display: flex; flex-direction: column; gap: 18px; }
.pmabout h2 { margin: 0; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.02; letter-spacing: -.03em; }
.pmabout p { margin: 0; }

.pmfeats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.pmfeat { display: flex; flex-direction: column; gap: 10px; }
.pmfeat__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pm-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .5);
}
.pmfeat__icon img { width: 21px; height: 21px; }
.pmfeat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--pm-carbon);
  font-weight: 500;
}

/* ---------- услуги ---------- */

.pmservices {
  margin: clamp(20px, 2.4vw, 36px) clamp(8px, 1.2vw, 18px);
  border-radius: var(--pm-radius);
  background: var(--pm-mist);
  padding: clamp(24px, 3.6vw, 52px);
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}

.pmservices__body { display: flex; flex-direction: column; gap: 16px; }
.pmservices h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.03em; }
.pmservices p { margin: 0; }

.pmpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pmpills .wp-block-button__link {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 22, 24, .16);
  background: transparent;
  color: var(--pm-carbon);
  font-size: 13px;
  font-weight: 500;
  transition: all .25s;
}
.pmpills .wp-block-button__link:hover { background: rgba(255, 255, 255, .7); }
.pmpills .is-active .wp-block-button__link {
  background: var(--pm-carbon);
  color: var(--pm-bone);
  border-color: var(--pm-carbon);
}

.pmlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-carbon);
  text-decoration: none;
  margin-top: 6px;
}
.pmlink span { transition: transform .3s var(--pm-ease); display: inline-block; }
.pmlink:hover span { transform: translateX(4px); }

.pmservicegrid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.pmcard {
  position: relative;
  border-radius: var(--pm-radius-sm);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(14px, 1.6vw, 22px);
  color: var(--pm-bone);
  min-height: 170px;
}
.pmcard__img { position: absolute; inset: 0; z-index: 0; }
.pmcard__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .8s var(--pm-ease); }
.pmcard:hover .pmcard__img img { transform: scale(1.05); }
.pmcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 16, 18, 0) 32%, rgba(9, 16, 18, .82) 82%, rgba(9, 16, 18, .95) 100%);
}
.pmcard > *:not(.pmcard__img) { position: relative; z-index: 2; }
.pmcard--big { grid-column: 1; grid-row: 1 / span 2; }
.pmcard h3 { margin: 0; color: var(--pm-bone); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.1; letter-spacing: -.02em; }
.pmcard p { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(246, 242, 234, .74); }
.pmcard .pmarrow { margin-top: 8px; }

/* ---------- процесс / этапы ---------- */

.pmprocess__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 2.6vw, 34px);
  flex-wrap: wrap;
}
.pmprocess__head h2 { margin: 6px 0 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.03em; max-width: 22ch; }

.pmsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.pmstep {
  position: relative;
  background: var(--pm-carbon);
  color: var(--pm-bone);
  border-radius: var(--pm-radius-sm);
  padding: clamp(18px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--pm-ease);
}
.pmstep::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 19, .30), transparent 66%);
  z-index: 0;
}
.pmstep:hover { transform: translateY(-4px); }
.pmstep > * { position: relative; z-index: 1; }
.pmstep__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--pm-orange);
  margin: 0;
}
.pmstep__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 234, .22);
  background: rgba(246, 242, 234, .06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmstep__icon img { width: 22px; height: 22px; }
.pmstep h3 { margin: 0; color: var(--pm-bone); font-size: 19px; line-height: 1.15; letter-spacing: -.015em; }
.pmstep p { margin: 0; font-size: 13.5px; line-height: 1.45; color: rgba(246, 242, 234, .68); }
.pmstep .pmstep__foot { margin-top: auto; }

/* ---------- цифры ---------- */

.pmstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--pm-line);
  border-radius: var(--pm-radius-sm);
  overflow: hidden;
  border: 1px solid var(--pm-line);
}
.pmstat { background: var(--pm-bone); padding: clamp(16px, 2vw, 26px); display: flex; flex-direction: column; gap: 6px; }
.pmstat__num { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.04em; margin: 0; color: var(--pm-carbon); line-height: 1; }
.pmstat__num span { color: var(--pm-orange); }
.pmstat p { margin: 0; font-size: 13px; color: var(--pm-mute); line-height: 1.35; }

/* ---------- CTA ---------- */

.pmcta {
  position: relative;
  margin: clamp(20px, 2.6vw, 40px) clamp(8px, 1.2vw, 18px);
  border-radius: var(--pm-radius);
  background: var(--pm-carbon);
  color: var(--pm-bone);
  padding: clamp(32px, 4.4vw, 68px);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.pmcta::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 234, .12);
  box-shadow: 0 0 0 60px rgba(246, 242, 234, .04), 0 0 0 130px rgba(246, 242, 234, .03);
  z-index: 0;
}
.pmcta::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 19, .26), transparent 65%);
  z-index: 0;
}
.pmcta > * { position: relative; z-index: 1; }
.pmcta h2 { margin: 8px 0 0; color: var(--pm-bone); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.03em; max-width: 20ch; }
.pmcta p { margin: 0; color: rgba(246, 242, 234, .76); }
.pmcta__aside { display: flex; flex-direction: column; gap: 14px; }
.pmcta__phone {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--pm-bone);
  text-decoration: none;
  margin: 0;
}
.pmcta__phone:hover { color: var(--pm-orange); }
.pmcta__mail { color: rgba(246, 242, 234, .74); text-decoration: underline; text-decoration-color: rgba(246, 242, 234, .3); font-size: 15px; margin: 0; }

/* ---------- подвал ---------- */

.pmfooter {
  background: var(--pm-carbon);
  color: rgba(246, 242, 234, .72);
  margin: 0 clamp(8px, 1.2vw, 18px) clamp(8px, 1.2vw, 18px);
  border-radius: var(--pm-radius);
  padding: clamp(28px, 3.4vw, 52px);
  display: grid;
  grid-template-columns: 1.4fr repeat(2, .8fr) 1.1fr;
  gap: clamp(20px, 3vw, 48px);
}
.pmfooter h4, .pmfooter .pmfooter__title {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, .44);
  font-weight: 500;
}
.pmfooter p { margin: 0; font-size: 14px; line-height: 1.6; }
.pmfooter a { color: rgba(246, 242, 234, .86); text-decoration: none; font-size: 14px; }
.pmfooter a:hover { color: var(--pm-orange); }
.pmfooter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pmfooter__brand { display: flex; flex-direction: column; gap: 14px; }
.pmfooter__brand .pmbrand a { color: var(--pm-bone); }
.pmfooter__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(246, 242, 234, .12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(246, 242, 234, .44);
}

/* ---------- внутренние страницы ---------- */

.pmpage { padding: clamp(28px, 4vw, 64px) var(--pm-pad) clamp(40px, 6vw, 88px); }
.pmpage__head { max-width: 860px; margin-bottom: clamp(20px, 3vw, 40px); }
.pmpage__head h1 { margin: 8px 0 0; font-size: clamp(32px, 4.2vw, 56px); line-height: 1; letter-spacing: -.035em; }

.pmentry { max-width: 780px; color: var(--pm-carbon); }
.pmentry h2 { margin: 36px 0 12px; font-size: clamp(24px, 2.4vw, 32px); }
.pmentry h3 { margin: 28px 0 10px; }
.pmentry p { margin: 0 0 16px; }
.pmentry ul, .pmentry ol { padding-left: 20px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.pmentry blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--pm-orange);
  background: var(--pm-sand);
  border-radius: 0 14px 14px 0;
}
.pmentry img { border-radius: 18px; }
.pmentry table { width: 100%; border-collapse: collapse; }
.pmentry th, .pmentry td { padding: 10px 12px; border-bottom: 1px solid var(--pm-line); text-align: left; }

.pmnotfound { padding: clamp(60px, 10vw, 140px) var(--pm-pad); text-align: center; }
.pmnotfound h1 { font-size: clamp(64px, 12vw, 160px); line-height: 1; letter-spacing: -.06em; margin: 0; color: var(--pm-carbon); }

/* ---------- адаптив ---------- */

@media (max-width: 1180px) {
  .pmabout { grid-template-columns: 1fr; }
  .pmabout__art { max-width: 620px; }
  .pmservices { grid-template-columns: 1fr; }
  .pmsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmfeats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pmfooter { grid-template-columns: 1fr 1fr; }
  .pmcta { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .pmhero__inner { grid-template-columns: 1fr; align-items: start; }
  .pmhero__card { max-width: 340px; }
  .pmhero { min-height: auto; padding-bottom: 34px; }
  .pmheader__cta .pmphone { display: none; }
  .pmnav { justify-content: flex-end; }
  .pmstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pmhero__inner { padding: 20px; gap: 18px; }
  .pmfeats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmservicegrid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pmcard--big { grid-column: 1; grid-row: auto; min-height: 220px; }
  .pmsteps { grid-template-columns: 1fr; }
  .pmstep { min-height: auto; }
  .pmfooter { grid-template-columns: 1fr; }
  .pmabout__art { grid-template-rows: 150px 130px; }
  .pmheader__in { gap: 12px; }
  .pmbrand a, .pmheader .wp-block-site-title a { font-size: 16px; }
}

/* ---------- редактор ---------- */

.block-editor-writing-flow,
.editor-styles-wrapper { color-scheme: light; }
.editor-styles-wrapper .pmhero__bg img,
.editor-styles-wrapper .pmcard__img img { min-height: 160px; }

/* ---------- дополнения ---------- */

.pmfeat__icon, .pmstep__icon { flex: 0 0 auto; }
.pmcta__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pmcta__body > p { margin: 0; }

.pmfooter .wp-block-group > p + p { margin-top: 9px; }
.pmfooter__bottom p { margin: 0; }
.pmfooter .wp-block-list { margin: 0; padding: 0; }

.pmprocess__head .pmlink { margin-bottom: 6px; }

.pmcover img { border-radius: var(--pm-radius-sm); }

.pmquery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pmquery .wp-block-post { display: flex; flex-direction: column; gap: 10px; }
.pmquery .wp-block-post-featured-image img { border-radius: var(--pm-radius-sm); width: 100%; }
.pmquery .wp-block-post-title { font-size: 21px; line-height: 1.2; margin: 0; }
.pmquery .wp-block-post-excerpt { font-size: 14px; color: var(--pm-mute); }
.pmpagination { margin-top: 32px; display: flex; gap: 12px; align-items: center; }

/* меню-бургер */
.pmnav .wp-block-navigation__responsive-container-close,
.pmnav .wp-block-navigation__responsive-container-open { color: var(--pm-carbon); }

@media (max-width: 900px) {
  .pmquery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pmquery { grid-template-columns: 1fr; }
}

/* шапка: не переносить пункты меню */
.pmheader__in { flex-wrap: nowrap; }
.pmnav { flex-wrap: nowrap; }
.pmnav .wp-block-navigation__container { flex-wrap: nowrap !important; }
.pmnav .wp-block-navigation__responsive-container { background: var(--pm-bone); }

/* правки: приоритеты селекторов */
.pmstat .pmstat__num {
  font-size: clamp(28px, 3.2vw, 42px) !important;
  font-weight: 800;
  color: var(--pm-carbon);
  line-height: 1;
  margin: 0;
}
.pmstat .pmstat__num span { color: var(--pm-orange); font-size: .5em; font-weight: 700; }

.pmcta a { color: inherit; text-decoration: none; }
.pmcta .pmcta__phone, .pmcta .pmcta__phone a { color: var(--pm-bone); }
.pmcta .pmcta__mail a { color: rgba(246, 242, 234, .78); }

.pmservices { align-items: center; }
.pmfooter .pmbrand .wp-block-site-title a { color: var(--pm-bone); }

/* WordPress добавляет межблочные отступы соседям (is-layout-flow) — гасим внутри сеток */
.pmstats > *, .pmsteps > *, .pmfeats > *, .pmhero__inner > *, .pmservicegrid > *,
.pmabout > *, .pmfooter > *, .pmheader__in > *, .pmcta > *, .pmprocess__head > *,
.pmabout__art > *, .pmhero__card-body > *, .pmhero__text > *, .pmservices__body > *,
.pmcta__body > *, .pmcta__aside > *, .pmfooter__brand > *, .pmpills > * {
  margin-block-start: 0 !important;
}
.pmstat p, .pmstep p, .pmcard p, .pmfeat p, .pmhero__card-body p, .pmcta__aside p { margin: 0; }

@media (max-width: 720px) {
  .pmheader { padding: 12px 14px; }
  .pmheader__in { gap: 8px; }
  .pmbrand img, .pmbrand .wp-block-image img { width: 28px; height: 28px; }
  .pmbrand a, .pmheader .wp-block-site-title a { font-size: 14.5px; letter-spacing: -.01em; }
  .pmheader__cta { gap: 8px; }
  .pmheader__cta .pmbtn .wp-block-button__link {
    padding: 11px 15px;
    font-size: 12.5px;
  }
  .pmnav .wp-block-navigation__responsive-container-open { padding: 4px; }
  .pmhero { margin: 0 6px; border-radius: 20px; }
  .pmhero h1, .pmhero__title { font-size: clamp(28px, 8.2vw, 40px); }
  .pmcta, .pmservices, .pmfooter { margin-left: 6px; margin-right: 6px; border-radius: 22px; }
  .pmsection { padding-left: 18px; padding-right: 18px; }
}

/* убираем крупное пятно за коллажем — вместо него тонкий акцент */
.pmabout__art::before {
  left: -3%;
  bottom: auto;
  top: -4%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 106, 19, .28), rgba(255, 106, 19, 0) 70%);
  filter: blur(6px);
}
.pmfeat__icon { width: 46px; height: 46px; }
.pmfeat p { font-size: 12.5px; }

/* В редакторе WP принудительно ставит position:relative всем блокам —
   возвращаем абсолютное позиционирование фоновым фото */
.pmhero .pmhero__bg,
.pmcard .pmcard__img,
.pmcard.pmcard .pmcard__img {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
}
.pmhero .pmhero__bg img,
.pmcard .pmcard__img img { width: 100%; height: 100%; object-fit: cover; }

/* декоративную волну в редакторе не показываем (обёртка блока HTML растягивается) */
.wp-block-html .pmhero__wave { display: none; }

/* контакты: пометка под телефоном */
.pmcta .pmcta__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(246, 242, 234, .6);
  max-width: 26ch;
}

.pmhero__title .pmnw { white-space: nowrap; }

/* навигация: пункты не переносятся построчно */
.pmnav .wp-block-navigation-item__label { white-space: nowrap; }
.pmnav .wp-block-navigation-item { flex: 0 0 auto; }
.pmbrand a, .pmheader .wp-block-site-title a { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* страховка для канваса редактора: светлый фон, чтобы текст был читаем */
.editor-styles-wrapper,
.editor-styles-wrapper .is-root-container,
.block-editor-writing-flow { background: var(--pm-bone); }
