/*
 * PMP Studio compact design system.
 * This file intentionally sits after the legacy stylesheet and defines the
 * single source of truth for spacing, typography, responsive layout and the
 * visual editor.
 */

:root {
  --pmp-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --pmp-bg: #ffffff;
  --pmp-surface: #f6f7f9;
  --pmp-surface-strong: #eef2f7;
  --pmp-text: #15171a;
  --pmp-muted: #68707b;
  --pmp-line: #e2e5e9;
  --pmp-blue: #146ef5;
  --pmp-blue-dark: #0d55c7;
  --pmp-green: #19a962;
  --pmp-admin: #172033;
  --pmp-admin-soft: #eff6ff;
  --pmp-admin-line: #93c5fd;
  --pmp-container: 1040px;
  --pmp-reading: 760px;
  --pmp-radius-sm: 8px;
  --pmp-radius: 12px;
  --pmp-radius-lg: 18px;
  --pmp-shadow: 0 12px 32px rgba(20, 30, 48, .07);
  --pmp-xs: 11px;
  --pmp-sm: 13px;
  --pmp-base: 15px;
  --pmp-lg: 17px;
  --pmp-h3: 20px;
  --pmp-h2: 28px;
  --pmp-h1: 40px;
}

html {
  font-size: var(--pmp-base);
  scroll-padding-top: 72px;
}

body {
  min-width: 320px;
  background: var(--pmp-bg);
  color: var(--pmp-text);
  font-family: var(--pmp-font);
  font-size: var(--pmp-base);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--pmp-font);
}

.container {
  width: min(var(--pmp-container), calc(100% - 48px));
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  color: var(--pmp-text);
  font-weight: 650;
  letter-spacing: -.025em;
}

.header {
  min-height: 60px;
  border-bottom: 1px solid var(--pmp-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.header__inner {
  min-height: 60px;
}

.brand {
  gap: 9px;
  font-size: var(--pmp-sm);
  font-weight: 680;
}

.brand__mark,
.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  flex: 0 0 auto;
  object-fit: contain;
  font-size: 9px;
}

.nav {
  gap: 26px;
}

.nav a,
.language-switcher a {
  font-size: 12px;
}

.language-switcher {
  padding: 3px;
  border-radius: 9px;
  background: var(--pmp-surface);
}

.language-switcher a {
  min-width: 34px;
  min-height: 30px;
  border-radius: 7px;
}

.button {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: var(--pmp-radius-sm);
  font-size: var(--pmp-sm);
  font-weight: 650;
  line-height: 1.15;
}

.button--small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.button--primary {
  background: var(--pmp-blue);
}

.button--primary:hover {
  background: var(--pmp-blue-dark);
}

.eyebrow {
  gap: 8px;
  margin-bottom: 14px;
  color: #1164d8;
  font-size: var(--pmp-xs);
  font-weight: 720;
  letter-spacing: .07em;
}

.eyebrow::before {
  width: 18px;
}

.hero {
  min-height: auto;
  padding: 48px 0 52px;
}

.hero__grid {
  min-height: 410px;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 64px;
}

.hero__content {
  max-width: 560px;
}

.hero h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(36px, 4vw, var(--pmp-h1));
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 540px;
  margin: 19px 0 0;
  color: var(--pmp-muted);
  font-size: var(--pmp-lg);
  line-height: 1.55;
}

.hero__actions,
.contact__actions,
.service-page-hero__actions {
  gap: 10px;
  margin-top: 24px;
}

.hero__media {
  width: 100%;
  max-width: 370px;
  justify-self: end;
  border-radius: var(--pmp-radius-lg);
  box-shadow: var(--pmp-shadow);
}

.hero__media--master {
  aspect-ratio: 4 / 4.3;
}

.hero__media--master img {
  object-position: center 28%;
}

.hero__media figcaption {
  inset: auto 10px 10px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: var(--pmp-sm);
}

.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.contact h2,
.service-page-contact h2 {
  margin: 0;
  font-size: var(--pmp-h2);
  line-height: 1.16;
}

.section-heading > div > p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 8px;
  color: var(--pmp-muted);
  font-size: var(--pmp-base);
}

.section--devices {
  background: var(--pmp-surface);
}

.device-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.device-tile {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--pmp-line);
  border-radius: var(--pmp-radius);
  background: #fff;
  box-shadow: none;
}

.device-tile__media {
  aspect-ratio: 4 / 3;
}

.device-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-tile__copy {
  padding: 14px;
}

.device-tile__index {
  margin-bottom: 8px;
  font-size: 10px;
}

.device-tile h3 {
  margin: 0;
  font-size: var(--pmp-md);
  line-height: 1.25;
}

.price-list .eyebrow,
.logistics .eyebrow {
  font-size: var(--pmp-xs);
}

.device-tile p {
  margin: 7px 0 0;
  color: var(--pmp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.price-list {
  background: #fff;
}

.price-list__heading {
  margin-bottom: 0;
}

.price-tools {
  position: static !important;
  z-index: auto;
  width: min(280px, 100%);
  margin: 18px 0 28px auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.price-search {
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--pmp-line);
  border-radius: 9px;
  background: var(--pmp-surface);
  box-shadow: none;
}

.price-search:focus-within {
  border-color: #9abdf2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 110, 245, .08);
}

.price-search svg {
  width: 16px;
  height: 16px;
}

.price-search input {
  height: 38px;
  padding: 0;
  font-size: var(--pmp-sm);
}

.smart-search-status {
  min-height: 16px;
  margin: 5px 2px 0;
  font-size: var(--pmp-xs);
}

.price-catalog {
  gap: 36px;
}

.price-category {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 36px;
}

.price-category__heading {
  gap: 12px;
}

.price-category__index {
  font-size: 10px;
}

.price-category__heading h3 {
  font-size: var(--pmp-h3);
  line-height: 1.2;
}

.price-category__heading p {
  margin-top: 7px;
  color: var(--pmp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.price-category__services {
  gap: 12px;
}

.price-card {
  min-height: 184px;
  overflow: hidden;
  grid-template-columns: 118px minmax(0, 1fr);
  border: 1px solid var(--pmp-line);
  border-radius: var(--pmp-radius);
  box-shadow: none;
}

.price-card__media {
  min-height: 184px;
}

.price-card__body {
  min-width: 0;
  padding: 15px;
}

.price-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.price-card p {
  margin-top: 7px;
  color: var(--pmp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.price-card__details {
  margin-top: 8px;
  font-size: 11px;
}

.price-card__aside {
  padding-top: 10px;
}

.price-card__aside > strong {
  font-size: var(--pmp-sm);
}

.price-card__whatsapp {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
}

.logistics__grid {
  gap: 14px;
}

.logistics-card {
  min-height: 0;
  padding: 22px;
  border-radius: var(--pmp-radius);
}

.logistics-card__icon {
  width: 40px;
  height: 40px;
}

.logistics-card h3 {
  font-size: var(--pmp-h3);
}

.logistics-card p {
  font-size: var(--pmp-sm);
}

.contact {
  padding: 64px 0;
}

.contact__grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
}

.contact__content > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--pmp-muted);
  font-size: var(--pmp-base);
}

.contact__media {
  max-height: 360px;
  border-radius: var(--pmp-radius-lg);
}

.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__details {
  gap: 14px;
}

.contact__details dt {
  font-size: var(--pmp-xs);
}

.contact__details dd {
  font-size: var(--pmp-sm);
}

.footer {
  min-height: 56px;
  padding: 0;
}

.footer__inner {
  min-height: 56px;
  gap: 20px;
  font-size: var(--pmp-xs);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-admin-access,
.footer-admin-access form {
  display: inline-flex;
  margin: 0;
}

.footer-admin-access a,
.footer-admin-access button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10px;
  opacity: .52;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-admin-access a:hover,
.footer-admin-access button:hover {
  opacity: 1;
}

/* Service page */

.service-page-hero {
  padding: 46px 0 50px;
  background: linear-gradient(110deg, #fff 55%, #f1f5fb);
}

.service-breadcrumbs {
  margin-bottom: 28px;
  font-size: var(--pmp-xs);
}

.service-page-hero__grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
}

.service-page-hero h1 {
  max-width: 610px;
  margin: 0;
  font-size: var(--pmp-h1);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.service-page-hero__lead {
  max-width: 620px;
  margin-top: 16px;
  color: var(--pmp-muted);
  font-size: var(--pmp-lg);
  line-height: 1.55;
}

.service-page-facts {
  gap: 10px;
  margin-top: 20px;
}

.service-page-facts > div {
  min-width: 136px;
  padding: 12px 14px;
  border-radius: 10px;
}

.service-page-facts dt {
  font-size: 10px;
}

.service-page-facts dd {
  margin-top: 3px;
  font-size: var(--pmp-sm);
}

.service-page-hero__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--pmp-radius-lg);
  box-shadow: var(--pmp-shadow);
}

.service-builder.container {
  width: min(860px, calc(100% - 48px));
}

.service-builder {
  gap: 18px;
  padding-top: 44px;
  padding-bottom: 54px;
}

.builder-content {
  padding: 24px;
  border: 1px solid var(--pmp-line);
  border-radius: var(--pmp-radius);
  background: #fff;
}

.builder-content h2 {
  max-width: var(--pmp-reading);
  margin: 0 0 12px;
  font-size: var(--pmp-h2);
  line-height: 1.15;
}

.builder-content h3 {
  font-size: var(--pmp-lg);
}

.builder-prose,
.builder-content > p,
.builder-caption {
  max-width: var(--pmp-reading);
  color: #3f4650;
  font-size: var(--pmp-base);
  line-height: 1.65;
}

.builder-prose > :first-child {
  margin-top: 0;
}

.builder-prose > :last-child {
  margin-bottom: 0;
}

.builder-prose p,
.builder-prose ul,
.builder-prose ol,
.builder-prose blockquote {
  margin: 0 0 12px;
}

.builder-prose ul,
.builder-prose ol {
  padding-left: 22px;
}

.builder-prose h3,
.builder-prose h4 {
  margin: 18px 0 8px;
  color: var(--pmp-text);
  line-height: 1.25;
}

.builder-prose h3 {
  font-size: var(--pmp-lg);
}

.builder-prose h4 {
  font-size: var(--pmp-md);
}

.builder-prose blockquote {
  padding: 10px 14px;
  border-left: 3px solid var(--pmp-blue);
  background: var(--pmp-surface);
  color: #3f4650;
}

.builder-prose a {
  color: var(--pmp-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.builder-content--subtitle {
  padding-block: 20px;
}

.builder-content--image {
  text-align: center;
}

.builder-content--image h2,
.builder-content--image figcaption {
  margin-inline: auto;
  text-align: left;
}

.builder-media-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--pmp-surface);
  cursor: zoom-in;
}

.builder-content--image .builder-media-button {
  width: min(640px, 100%);
  margin-inline: auto;
}

.builder-content--image img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  background: var(--pmp-surface);
}

.builder-content--image figcaption,
.builder-caption {
  width: min(640px, 100%);
  margin: 10px auto 0;
  color: var(--pmp-muted);
  font-size: var(--pmp-sm);
}

.builder-gallery {
  display: grid;
  width: min(820px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.builder-gallery figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
}

.builder-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.builder-gallery .builder-media-button {
  height: 100%;
}

.builder-gallery .builder-media-button:hover img {
  transform: scale(1.025);
}

.builder-gallery--collage {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 108px;
}

.builder-gallery--collage figure {
  grid-column: span 4;
  aspect-ratio: auto;
}

.builder-gallery--collage figure:first-child {
  grid-column: span 7;
  grid-row: span 2;
}

.builder-gallery--collage figure:nth-child(2),
.builder-gallery--collage figure:nth-child(3) {
  grid-column: span 5;
}

.builder-checklist {
  max-width: var(--pmp-reading);
  gap: 8px;
}

.builder-checklist li {
  padding: 11px 13px;
  border-radius: 9px;
  font-size: var(--pmp-sm);
}

.builder-steps {
  gap: 8px;
}

.builder-steps li {
  padding: 14px;
  border-radius: 10px;
}

.builder-steps li > span {
  font-size: var(--pmp-xs);
}

.builder-steps p {
  font-size: var(--pmp-sm);
}

.builder-cta {
  gap: 24px;
}

.builder-cta h2 {
  font-size: 25px;
}

.builder-cta p {
  font-size: var(--pmp-sm);
}

.builder-video {
  width: min(760px, 100%);
  margin-inline: auto;
}

.builder-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111827;
  object-fit: contain;
}

.service-page-contact {
  padding: 38px 0;
  border-top: 1px solid var(--pmp-line);
  background: var(--pmp-surface);
}

.service-page-contact__grid {
  width: min(920px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.service-page-contact__copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--pmp-muted);
  font-size: var(--pmp-sm);
}

.service-page-contact .service-page-hero__actions {
  flex-wrap: nowrap;
  margin: 0;
}

/* Media lightbox */

.media-lightbox {
  width: min(1080px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  padding: 14px;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: #101318;
  color: #fff;
}

.media-lightbox::backdrop {
  background: rgba(5, 8, 14, .82);
  backdrop-filter: blur(5px);
}

.media-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 9px;
}

.media-lightbox p {
  margin: 10px 4px 0;
  color: #d4d8df;
  font-size: var(--pmp-sm);
}

.media-lightbox__close {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border: 1px solid #343b46;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font: 600 21px/1 var(--pmp-font);
  cursor: pointer;
}

/* Visual editor */

.site-admin-desktop,
.card-admin-controls,
.inline-admin-panel,
.block-admin-controls,
.add-page-block,
.editor-dialog {
  display: none;
}

@media (min-width: 1024px) {
  .site-admin-desktop {
    display: block;
  }

  .has-site-admin-mode {
    padding-top: 42px;
  }

  .has-site-admin-mode .header {
    top: 42px;
  }

  .site-admin-bar {
    min-height: 42px;
    gap: 12px;
    padding: 4px max(20px, calc((100vw - var(--pmp-container)) / 2));
    border-bottom: 1px solid #2c3850;
    background: var(--pmp-admin);
    box-shadow: 0 5px 18px rgba(17, 24, 39, .14);
  }

  .site-admin-bar strong {
    gap: 7px;
    font-size: 12px;
  }

  .site-admin-bar__context {
    max-width: 330px;
    overflow: hidden;
    color: #9facbf;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-admin-bar nav {
    gap: 4px;
  }

  .site-admin-bar a,
  .site-admin-bar button {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
  }

  .has-site-admin-mode .price-card {
    overflow: hidden;
    border-color: var(--pmp-admin-line);
    outline: 0;
  }

  .card-admin-controls {
    position: static;
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 5px 7px;
    border: 0;
    border-top: 1px solid #c9dcf7;
    border-radius: 0;
    background: var(--pmp-admin-soft);
    box-shadow: none;
  }

  .card-admin-controls > span {
    margin-right: auto;
    padding: 0 7px;
    color: #31567d;
    font-size: 10px;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .card-admin-controls form,
  .block-admin-controls form {
    display: flex;
    margin: 0;
  }

  .card-admin-controls button,
  .block-admin-controls button,
  .inline-admin-panel button,
  .inline-admin-panel a {
    min-width: 28px;
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid #d3deed;
    border-radius: 6px;
    background: #fff;
    color: #27364b;
    font: 650 10px/1 var(--pmp-font);
    text-decoration: none;
    cursor: pointer;
  }

  .card-admin-controls button:hover,
  .block-admin-controls button:hover,
  .inline-admin-panel button:hover,
  .inline-admin-panel a:hover {
    border-color: #9abbe8;
    background: #f8fbff;
  }

  .card-admin-controls .is-danger,
  .block-admin-controls .is-danger {
    border-color: #f1c5c5;
    color: #ad3030;
  }

  .inline-admin-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 18px 0 0;
    padding: 5px;
    border: 1px solid #c9dcf7;
    border-radius: 8px;
    background: var(--pmp-admin-soft);
    color: #31567d;
  }

  .inline-admin-panel strong {
    padding: 0 8px;
    font-size: 10px;
  }

  .service-builder__item--admin {
    overflow: hidden;
    padding: 0 5px 5px;
    border: 1px solid var(--pmp-admin-line);
    border-radius: 14px;
    background: var(--pmp-admin-soft);
    outline: 0;
  }

  .block-admin-controls {
    position: static;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 6px 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .block-admin-controls > span {
    margin-right: auto;
    padding: 0 7px;
    color: #31567d;
    font-size: 10px;
  }

  .service-builder__item--admin .builder-content {
    border-color: #d8e6f8;
  }

  .device-tile--admin {
    border-color: var(--pmp-admin-line);
  }

  .device-admin-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px 30px;
  }

  .device-admin-controls > span {
    grid-column: 1 / -1;
    margin: 0;
  }

  .device-admin-controls > button,
  .device-admin-controls > form,
  .device-admin-controls > form button {
    width: 100%;
  }

  .device-admin-controls > form:last-child {
    grid-column: 1 / -1;
  }

  .add-device-card {
    width: fit-content;
    margin-top: 16px;
    padding-inline: 16px;
  }

  .category-admin-controls {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 32px 32px;
    width: 100%;
    margin-top: 4px;
  }

  .category-admin-controls > span {
    grid-column: 1 / -1;
    margin: 0;
  }

  .category-admin-controls > button,
  .category-admin-controls > form,
  .category-admin-controls > form button {
    width: 100%;
  }

  .category-admin-controls > form:last-child {
    grid-column: 1 / -1;
  }

  .catalog-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .add-page-block {
    display: flex;
    min-height: 44px;
    margin-top: 4px;
    border: 1px dashed #9abbe8;
    border-radius: 10px;
    background: #f7fbff;
    color: #24588f;
    font: 650 12px/1 var(--pmp-font);
  }

  .add-page-block span {
    font-size: var(--pmp-base);
  }

  .catalog-admin-actions .add-page-block {
    width: auto;
    min-width: 190px;
    margin: 0;
    padding-inline: 16px;
  }

  .editor-flash {
    top: 54px;
    font-size: 12px;
  }

  .editor-dialog {
    width: min(640px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  }

  .editor-dialog--wide {
    width: min(760px, calc(100% - 40px));
  }

  .editor-dialog::backdrop {
    background: rgba(20, 28, 40, .58);
    backdrop-filter: blur(4px);
  }

  .editor-dialog__header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--pmp-line);
  }

  .editor-dialog__header small {
    font-size: 10px;
  }

  .editor-dialog__header h2 {
    margin-top: 2px;
    font-size: 20px;
  }

  .editor-dialog__header > button {
    font-size: 20px;
  }

  .editor-dialog__body {
    gap: 15px;
    padding: 20px;
  }

  .editor-dialog__body label {
    gap: 6px;
    font-size: 12px;
  }

  .editor-field,
  .editor-field-stack {
    display: grid;
    gap: 7px;
  }

  .editor-field__label {
    color: #374151;
    font-size: 12px;
    font-weight: 700;
  }

  .rich-editor {
    min-width: 0;
  }

  .rich-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid #d8dde5;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #f7f8fa;
  }

  .rich-editor__toolbar button,
  .rich-editor__toolbar select {
    min-width: 30px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #27364b;
    font: 650 11px/1 var(--pmp-font);
    cursor: pointer;
  }

  .rich-editor__toolbar button:hover,
  .rich-editor__toolbar select:hover {
    border-color: #c8d5e6;
    background: #fff;
  }

  .rich-editor__toolbar select {
    width: auto;
    min-width: 128px;
  }

  .rich-editor__divider {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: #d8dde5;
  }

  .rich-editor__surface {
    min-height: 170px;
    max-height: 380px;
    overflow: auto;
    padding: 14px;
    border: 1px solid #d8dde5;
    border-radius: 0 0 9px 9px;
    background: #fff;
    color: #202936;
    font: 400 13px/1.6 var(--pmp-font);
    outline: none;
  }

  .rich-editor__surface:focus {
    border-color: #78a9ef;
    box-shadow: 0 0 0 3px rgba(20, 110, 245, .08);
  }

  .rich-editor__surface p,
  .rich-editor__surface ul,
  .rich-editor__surface ol,
  .rich-editor__surface blockquote {
    margin: 0 0 10px;
  }

  .rich-editor__surface ul,
  .rich-editor__surface ol {
    padding-left: 22px;
  }

  .rich-editor__surface h3,
  .rich-editor__surface h4 {
    margin: 12px 0 6px;
  }

  .editor-help {
    color: var(--pmp-muted);
    font-size: 11px;
    line-height: 1.45;
  }

  .editor-dialog__body input:not([type="checkbox"]):not([type="file"]),
  .editor-dialog__body select,
  .editor-dialog__body textarea {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    font-size: 13px;
  }

  .editor-dialog__body textarea {
    min-height: 90px;
    line-height: 1.5;
  }

  .editor-dialog__actions {
    padding: 12px 20px;
    border-top: 1px solid var(--pmp-line);
    background: var(--pmp-surface);
  }

  .editor-dialog__actions button {
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 12px !important;
  }

  .editor-dialog form.is-saving {
    cursor: progress;
  }

  .editor-dialog form.is-saving .editor-dialog__body {
    opacity: .72;
    pointer-events: none;
  }

  .upload-field {
    padding: 12px;
    border: 1px dashed #b9c7d8;
    border-radius: 9px;
    background: #f8fafc;
  }

  .upload-field input[type="file"] {
    width: 100%;
    font-size: 11px;
  }

  .upload-field small {
    color: var(--pmp-muted);
    font-size: 10px;
    font-weight: 400;
  }

  .upload-preview {
    display: flex;
    gap: 7px;
    min-height: 0;
  }

  .upload-preview:empty {
    display: none;
  }

  .upload-preview img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 7px;
  }

  .upload-preview video {
    width: min(360px, 100%);
    max-height: 210px;
    border-radius: 8px;
    background: #111827;
  }

  .upload-preview--grid {
    flex-wrap: wrap;
  }

  .media-manager {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--pmp-line);
    border-radius: 10px;
    background: var(--pmp-surface);
  }

  .video-manager {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--pmp-line);
    border-radius: 10px;
    background: var(--pmp-surface);
  }

  .video-manager video {
    display: block;
    width: min(420px, 100%);
    max-height: 240px;
    border-radius: 8px;
    background: #111827;
  }

  .current-upload-preview {
    width: min(240px, 100%);
    overflow: hidden;
    border: 1px solid var(--pmp-line);
    border-radius: 9px;
    background: var(--pmp-surface);
  }

  .current-upload-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .media-manager__title,
  .media-manager__hint {
    margin: 0;
  }

  .media-manager__title {
    font-size: 12px;
    font-weight: 680;
  }

  .media-manager__hint {
    color: var(--pmp-muted);
    font-size: 10px;
  }

  .media-manager__single {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .media-manager__single img {
    width: 120px;
    height: 86px;
    object-fit: cover;
    border-radius: 7px;
  }

  .media-manager__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .media-manager__item {
    overflow: hidden;
    border: 1px solid var(--pmp-line);
    border-radius: 8px;
    background: #fff;
  }

  .media-manager__item > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .media-manager__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
  }

  .media-manager__actions button {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--pmp-line);
    border-radius: 5px;
    background: #fff;
    font-size: 11px;
  }

  .media-manager__actions button:disabled {
    opacity: .35;
  }

  .media-manager__actions label {
    margin-left: auto;
    color: #9d3030;
    font-size: 9px;
  }

  .media-manager--before-after {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet and mobile application layout */

@media (max-width: 1023px) {
  :root {
    --pmp-h1: 30px;
    --pmp-h2: 24px;
    --pmp-h3: 18px;
  }

  .container,
  .service-builder.container,
  .service-page-contact__grid {
    width: min(100% - 28px, 720px);
  }

  .footer-admin-access {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

  .hero__grid,
  .service-page-hero__grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
  }

  .device-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-category {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .price-category__services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background: #f2f5f8;
    font-size: 14px;
  }

  .container,
  .service-builder.container,
  .service-page-contact__grid {
    width: calc(100% - 24px);
  }

  .header,
  .header__inner {
    min-height: 56px;
  }

  .header {
    top: 0;
  }

  .header__inner {
    padding-inline: 0;
  }

  .brand__mark,
  .brand__logo {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 14px 0 38px;
  }

  .hero__grid,
  .service-page-hero__grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero__content {
    padding: 20px 16px;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 42, 58, .05);
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 10px;
  }

  .hero h1,
  .service-page-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero__lead,
  .service-page-hero__lead {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero__actions,
  .service-page-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .button {
    min-height: 42px;
    font-size: 13px;
  }

  .hero__media {
    max-width: none;
    justify-self: stretch;
    border-radius: 16px;
  }

  .hero__media--master {
    aspect-ratio: 4 / 4.1;
  }

  .section {
    padding: 38px 0;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h2,
  .contact h2,
  .service-page-contact h2 {
    font-size: 24px;
  }

  .section-heading > div > p:not(.eyebrow) {
    font-size: 13px;
  }

  .device-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .device-tile__copy {
    padding: 11px;
  }

  .device-tile h3 {
    font-size: 14px;
  }

  .device-tile p {
    font-size: 11px;
  }

  .price-tools {
    position: static !important;
    width: 100%;
    margin: 13px 0 20px;
  }

  .price-search {
    min-height: 40px;
    border-radius: 10px;
    background: #fff;
  }

  .price-category {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-bottom: 28px;
  }

  .price-category__heading {
    align-items: flex-start;
  }

  .price-category__heading h3 {
    font-size: 18px;
  }

  .price-category__heading p {
    max-width: 320px;
    font-size: 11px;
  }

  .price-card {
    min-height: 184px;
    grid-template-columns: 96px minmax(0, 1fr);
    border-radius: 13px;
    background: #fff;
  }

  .price-card__media {
    min-height: 184px;
  }

  .price-card__body {
    padding: 13px;
  }

  .price-card h4 {
    font-size: 14px;
  }

  .price-card p {
    font-size: 11px;
  }

  .logistics__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .logistics-card {
    padding: 18px;
    border-radius: 14px;
  }

  .contact {
    padding: 38px 0;
  }

  .contact__grid {
    gap: 18px;
  }

  .contact__media {
    max-height: 270px;
  }

  .footer {
    min-height: 66px;
  }

  .footer__inner {
    min-height: 66px;
    align-items: flex-start;
    gap: 8px;
    padding-block: 14px;
  }

  .footer__links {
    align-items: flex-start;
    gap: 8px;
  }

  .service-page-hero {
    padding: 18px 0 28px;
    background: #f2f5f8;
  }

  .service-breadcrumbs {
    margin: 0 0 13px;
  }

  .service-page-hero__grid > div:first-child {
    padding: 18px 16px;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    background: #fff;
  }

  .service-page-hero__media {
    order: -1;
    border-radius: 16px;
  }

  .service-page-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page-facts > div {
    min-width: 0;
  }

  .service-builder {
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .builder-content {
    padding: 18px;
    border-radius: 13px;
  }

  .builder-content h2 {
    font-size: 22px;
  }

  .builder-prose,
  .builder-content > p {
    font-size: 14px;
  }

  .builder-content--image img {
    max-height: 360px;
  }

  .builder-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .builder-gallery--collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .builder-gallery--collage figure,
  .builder-gallery--collage figure:first-child,
  .builder-gallery--collage figure:nth-child(2),
  .builder-gallery--collage figure:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .builder-gallery--collage figure:first-child {
    grid-column: span 2;
  }

  .builder-cta {
    align-items: stretch;
  }

  .builder-cta h2 {
    font-size: 22px;
  }

  .service-page-contact {
    padding: 28px 0;
  }

  .service-page-contact__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-page-contact .service-page-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-lightbox {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 8px;
  }
}

@media (max-width: 390px) {
  .device-showcase {
    grid-template-columns: 1fr;
  }

  .device-tile {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .device-tile__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .price-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }
}

/* Explicit editor actions only: dialogs do not expose a header close button. */
.editor-dialog__header > [data-dialog-close] {
  display: none !important;
}

.price-list__heading h1,
.faq-page__heading h1 {
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
}

.home-builder-section {
  padding-top: 28px;
  padding-bottom: 28px;
  background: #f4f4f4;
}

.home-builder-list {
  display: grid;
  gap: 18px;
}

.home-builder-item {
  position: relative;
}

.home-builder-item .builder-content {
  margin: 0;
}

.home-builder-item--admin {
  padding-top: 54px;
  outline: 1px dashed #60a5fa;
  outline-offset: 5px;
}

.home-block-admin-controls {
  top: 8px;
  right: 8px;
}

.faq-page {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.faq-page__container {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.faq-page__heading {
  position: sticky;
  top: 94px;
}

.faq-page__heading > p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
}

.faq-item details {
  padding: 0 24px;
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 760;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  content: "+";
  color: #0f172a;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 48px 24px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.faq-item__answer > :first-child {
  margin-top: 0;
}

.faq-item__answer > :last-child {
  margin-bottom: 0;
}

.faq-item--admin {
  padding-top: 54px;
  outline: 1px dashed #60a5fa;
  outline-offset: 4px;
}

.faq-admin-controls {
  top: 8px;
  right: 8px;
}

@media (max-width: 900px) {
  .faq-page__container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq-page__heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .price-list__heading {
    align-items: stretch;
  }

  .price-list__heading > .button {
    width: 100%;
  }

  .home-builder-section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .faq-page {
    padding-top: 48px;
  }

  .faq-item details {
    padding: 0 17px;
  }

  .faq-item summary {
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 16px;
  }

  .faq-item__answer {
    padding-right: 0;
    padding-bottom: 20px;
    font-size: 15px;
  }
}
