/* ============================================================
   tweaks.css (v=16)
   Self-contained, targeted tweaks. Loaded AFTER final-polish.css
   so these rules win on equal specificity.
   Scoped by page class — no global layout rewrite.
   ============================================================ */

/* --- Home: section rhythm (tighten empty black gaps only) ---
   Keep original grids/cards. Only reduce stacked padding where
   Why → Partners → Career looked too sparse on desktop. */
body.page-home .pd-sectors-section {
  padding-bottom: 56px;
}

body.page-home .pd-why {
  padding-top: 56px;
  padding-bottom: 52px;
}

body.page-home .pd-partners {
  padding-top: 44px;
}

body.page-home .pd-partners-title {
  margin-bottom: 28px;
}

body.page-home .pd-career-banner {
  padding: 28px 0;
}

body.page-home .pd-career-inner {
  align-items: center;
  gap: 20px 28px;
}

/* Why cards: prevent rare overflow without changing the 2×3 grid */
body.page-home .pd-why-grid li > div {
  min-width: 0;
  flex: 1 1 auto;
}

body.page-home .pd-why-grid li span {
  overflow-wrap: break-word;
  word-break: normal;
}

/* --- About: widen intro reading column (was ~40rem → empty sides) --- */
body.page-about .pd-about-intro-text {
  max-width: min(58rem, 100%);
}

body.page-about .pd-about-intro-wrap {
  gap: 40px;
}

/* Process: keep 4 columns full-width; cleaner type rhythm only */
body.page-about .pd-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

body.page-about .pd-process-step {
  padding: 0 10px;
}

body.page-about .pd-process-step h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

body.page-about .pd-process-step p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

body.page-about .pd-process {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Shared desktop nav: slightly clearer spacing, no layout change */
@media (min-width: 1180px) {
  body.page-premium .main-nav {
    gap: 4px;
  }

  body.page-premium .main-nav a {
    padding: 8px 10px;
    letter-spacing: 0.04em;
  }
}

/* --- Inner pages: slightly tighter page hero (less empty black) --- */
body.page-premium:not(.page-home) .page-header {
  padding: 120px 0 56px;
  min-height: 280px;
}

body.page-services .pd-section,
body.page-guard .pd-section,
body.page-career .pd-section,
body.page-contact .pd-section,
body.page-partner .pd-section,
body.page-certificates .pd-section {
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: clamp(56px, 6vw, 80px);
}

/* Career form: keep panel dense and readable */
body.page-career .career-anket-panel {
  padding: 28px clamp(18px, 3.5vw, 36px);
}

body.page-career .career-anket-head p {
  margin-bottom: 22px;
}

/* Contact / partner: avoid ultra-narrow lead under headers */
body.page-contact .page-header p,
body.page-partner .page-header p {
  max-width: min(40rem, 100%);
}

/* --- Task 1 -------------------------------------------------
   Center the "Бүх үйлчилгээ (9) →" link under the home-page
   services preview grid (index.html). Centering is driven from
   the wrapper so it stays centered at every viewport width. */
body.page-premium .pd-services-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 28px;
  text-align: center;
}

body.page-premium .pd-services-more-link {
  display: inline-block;
  margin-inline: auto;
}

/* --- Task 3 -------------------------------------------------
   Tidy the office-photo caption overlay (career.html). Pin the
   caption as a clean full-width strip at the BOTTOM of the image
   with a dark gradient scrim, the gold "МАНАЙ ОФФИС" badge on its
   own line, and the address on the line(s) below — fully
   contained within the image width (no overflow / no overlap). */
body.page-premium .pd-contact-office {
  position: relative;
  overflow: hidden;
}

body.page-premium .pd-contact-office figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  margin: 0;
  padding: 34px 20px 16px;
  box-sizing: border-box;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: normal;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 38%,
    rgba(0, 0, 0, 0.28) 74%,
    transparent 100%
  );
}

/* Badge sits on its OWN line; the address flows on the line below.
   width:fit-content keeps the gold pill sized to its text while
   still forcing the following address text onto a new line. */
body.page-premium .pd-contact-office figcaption .pd-contact-office-tag {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 200, 0, 0.16);
  border: 1px solid rgba(240, 200, 0, 0.4);
  color: var(--pd-gold, #f0c800);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Tablet */
@media (max-width: 900px) {
  body.page-premium .pd-contact-office figcaption {
    padding: 28px 16px 14px;
    font-size: 0.78125rem;
  }
}

/* Mobile */
@media (max-width: 560px) {
  body.page-premium .pd-contact-office figcaption {
    padding: 22px 13px 12px;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  body.page-premium .pd-contact-office figcaption .pd-contact-office-tag {
    margin-bottom: 6px;
    padding: 3px 8px;
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }
}
/* === HOME UI v5 — professional polish, page-home only ===
   No HTML rewrite. Preserve CMS selectors & grids.
   ============================================================ */

/* Stats: homepage has 3 cards — stop leaving a blank 4th column */
body.page-home .pd-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
}

body.page-home .pd-stats {
  padding: clamp(36px, 4.5vw, 52px) 0;
  background:
    linear-gradient(180deg, rgba(240, 200, 0, 0.03) 0%, transparent 42%),
    var(--pd-dark);
}

body.page-home .pd-stat-card {
  padding: 26px 18px 24px;
  background: rgba(22, 22, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

body.page-home .pd-stat-card:hover {
  border-color: rgba(240, 200, 0, 0.35);
  transform: translateY(-2px);
}

body.page-home .pd-stat-value {
  letter-spacing: 0.02em;
}

body.page-home .pd-stat-label {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* Hero: calmer first impression, brand stays dominant */
body.page-home .pd-hero {
  padding-bottom: clamp(56px, 7vw, 88px);
}

body.page-home .pd-hero-bg img {
  transform: scale(1.04);
  animation: pd-home-hero-drift 18s ease-out forwards;
}

@keyframes pd-home-hero-drift {
  from { transform: scale(1.06); }
  to { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .pd-hero-bg img {
    animation: none;
    transform: none;
  }
}

body.page-home .pd-hero-inner {
  max-width: min(560px, 100%);
}

body.page-home .pd-hero-actions {
  gap: 12px 14px;
  margin-top: 4px;
}

body.page-home .pd-hero-actions .pd-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.page-home .pd-hero-actions .pd-btn-gold {
  box-shadow: 0 10px 28px rgba(240, 200, 0, 0.18);
}

body.page-home .pd-hero-actions .pd-btn-gold:hover .pd-btn-arrow {
  transform: translateX(3px);
}

body.page-home .pd-btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Checklist: slightly tighter, more premium */
body.page-home .pd-checklist--home {
  margin-bottom: 28px;
  padding: 20px 20px 18px 24px;
  border-radius: 12px;
}

body.page-home .pd-checklist--home li {
  font-size: 0.84375rem;
  padding: 9px 0;
}

/* About block */
body.page-home .pd-about {
  padding-top: clamp(64px, 7vw, 88px);
  padding-bottom: clamp(56px, 6vw, 80px);
}

body.page-home .pd-about-grid {
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

body.page-home .pd-about-image {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

body.page-home .pd-about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

body.page-home .pd-about-text h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

body.page-home .pd-about-text > p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
  max-width: 54ch;
}

body.page-home .pd-about-text > p a {
  color: var(--pd-gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 200, 0, 0.35);
}

body.page-home .pd-about-text > p a:hover {
  border-bottom-color: var(--pd-gold);
}

/* Trust bar */
body.page-home .pd-trust-bar {
  margin-top: 40px;
  padding-top: 36px;
  gap: 16px;
}

body.page-home .pd-trust-card {
  padding: 22px 18px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-home .pd-trust-card:hover {
  border-color: rgba(240, 200, 0, 0.32);
  background: linear-gradient(160deg, rgba(240, 200, 0, 0.06) 0%, rgba(22, 22, 22, 0.95) 50%);
}

body.page-home .pd-trust-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
}

/* Services */
body.page-home .pd-services {
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
}

body.page-home .pd-services-grid {
  gap: 16px;
}

body.page-home a.pd-service-card {
  padding: 24px 22px;
  border-radius: 10px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

body.page-home a.pd-service-card:hover {
  transform: translateY(-3px);
}

body.page-home .pd-service-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--pd-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-home .pd-services-more {
  margin-top: 32px;
}

body.page-home .pd-services-more-link {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--pd-gold);
  border-bottom: 1px solid rgba(240, 200, 0, 0.35);
  padding-bottom: 2px;
}

body.page-home .pd-services-more-link:hover {
  border-bottom-color: var(--pd-gold);
}

/* Sectors */
body.page-home .pd-sectors-section {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: 48px;
}

body.page-home .pd-sectors {
  gap: 14px;
  margin-top: 36px;
}

body.page-home .pd-sector {
  padding: 24px 12px 22px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.92);
}

body.page-home .pd-sector:hover {
  transform: translateY(-2px);
}

body.page-home .pd-sector span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Why */
body.page-home .pd-why-layout {
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

body.page-home .pd-why-content h2 {
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

body.page-home .pd-why-grid {
  gap: 12px 16px;
}

body.page-home .pd-why-grid li {
  padding: 14px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-home .pd-why-grid li:hover {
  border-color: rgba(240, 200, 0, 0.28);
  background: rgba(240, 200, 0, 0.04);
}

body.page-home .pd-why-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

body.page-home .pd-why-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Career banner */
body.page-home .pd-career-banner {
  padding: 26px 0;
  background:
    linear-gradient(90deg, rgba(240, 200, 0, 0.05), transparent 35%, transparent 65%, rgba(240, 200, 0, 0.05)),
    var(--pd-dark);
}

body.page-home .pd-career-text h3 {
  letter-spacing: 0.06em;
}

body.page-home .pd-career-banner .pd-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

/* Contact strip */
body.page-home .pd-contact--strip {
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

body.page-home .pd-contact-lead {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 28px;
}

/* Desktop-only refinements that must not fight mobile CSS */
@media (min-width: 1180px) {
  body.page-home .pd-hero-title {
    font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  }

  body.page-home .pd-hero-sub {
    white-space: normal;
    max-width: 34rem;
  }
}

@media (max-width: 900px) {
  body.page-home .pd-stats-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  body.page-home .pd-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}
/* === ABOUT UI v6 — professional polish, page-about only ===
   Preserve CMS selectors. No HTML content rewrite.
   ============================================================ */

/* Inner hero: tighter, clearer title hierarchy */
body.page-about .pd-hero--inner {
  min-height: clamp(320px, 42vh, 420px);
  padding: calc(var(--pd-header-h) + 36px) 0 48px;
  align-items: flex-end;
}

body.page-about .pd-hero--inner .pd-hero-inner {
  max-width: min(720px, 100%);
}

body.page-about .pd-hero--inner h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

body.page-about .pd-hero--inner .pd-hero-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin: 0;
}

/* Stats row */
body.page-about .pd-about-intro {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-about .pd-about-intro-wrap {
  gap: 36px;
}

body.page-about .pd-about-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.page-about .pd-about-stats .pd-stat-card {
  min-height: 150px;
  padding: 22px 14px 20px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-about .pd-about-stats .pd-stat-card:hover {
  border-color: rgba(240, 200, 0, 0.34);
  transform: translateY(-2px);
}

body.page-about .pd-about-stats .pd-stat-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
}

body.page-about .pd-about-stats .pd-stat-label {
  max-width: none;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

/* Intro copy — readable width, no orphaned empty sides */
body.page-about .pd-about-intro-text {
  max-width: min(60rem, 100%);
  margin-inline: auto;
  padding: 8px 8px 4px 28px;
}

body.page-about .pd-about-intro-text .pd-eyebrow {
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

body.page-about .pd-about-intro-text p.pd-about-lead {
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
}

body.page-about .pd-about-intro-text p {
  font-size: 0.95rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.72);
  max-width: 68ch;
}

/* Process timeline */
body.page-about .pd-process {
  padding-top: clamp(52px, 6vw, 76px);
  padding-bottom: clamp(52px, 6vw, 76px);
}

body.page-about .pd-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 20px 18px;
  margin-top: 40px;
}

body.page-about .pd-process-step {
  padding: 8px 8px 0;
}

body.page-about .pd-process-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--pd-dark), 0 8px 24px rgba(240, 200, 0, 0.18);
}

body.page-about .pd-process-step h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

body.page-about .pd-process-step p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

/* Gallery: 6 photos → 3×2 fills width cleanly */
body.page-about .pd-gallery {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
}

body.page-about .pd-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

body.page-about .pd-gallery-item {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-about .pd-gallery-item figcaption {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 28px 14px 12px;
}

body.page-about .pd-gallery-item:hover img {
  transform: scale(1.04);
}

/* Why cards */
body.page-about .pd-whycards {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(56px, 6vw, 80px);
}

body.page-about .pd-whycards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

body.page-about .pd-whycard {
  padding: 26px 20px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

body.page-about .pd-whycard:hover {
  border-color: rgba(240, 200, 0, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: linear-gradient(160deg, rgba(240, 200, 0, 0.06) 0%, rgba(22, 22, 22, 0.96) 55%);
}

body.page-about .pd-whycard-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
}

body.page-about .pd-whycard h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

body.page-about .pd-whycard p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

/* Header logo parity with home */
body.page-about .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

@media (max-width: 1000px) {
  body.page-about .pd-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-about .pd-whycards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.page-about .pd-about-stats {
    grid-template-columns: 1fr 1fr;
  }

  body.page-about .pd-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body.page-about .pd-whycards-grid {
    grid-template-columns: 1fr;
  }

  body.page-about .pd-about-intro-text {
    padding-left: 18px;
  }
}

/* === SERVICES UI v7 — page-services + inner-page hero images ===
   ============================================================ */

/* Force hero photos visible (never hide with gradient utility) */
body.page-services .pd-hero--inner .pd-hero-bg img,
body.page-career .pd-hero--career .pd-hero-bg img,
body.page-about .pd-hero--inner .pd-hero-bg img,
body.page-guard .pd-hero--inner .pd-hero-bg img,
body.page-certificates .pd-hero--inner .pd-hero-bg img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

body.page-services .pd-hero--inner,
body.page-career .pd-hero--career {
  min-height: clamp(320px, 42vh, 420px);
  padding: calc(var(--pd-header-h) + 36px) 0 48px;
  align-items: flex-end;
}

body.page-services .pd-hero--inner h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

body.page-services .pd-hero--inner .pd-hero-sub {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

/* Soften overlay so photo reads on desktop + mobile */
body.page-services .pd-hero-overlay,
body.page-career .pd-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.42) 45%,
    rgba(8, 8, 8, 0.55) 100%
  );
}

/* Services cards */
body.page-services .pd-srv {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-services .pd-srv-grid {
  gap: 16px;
}

body.page-services .pd-srv-card {
  padding: 26px 22px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

body.page-services .pd-srv-card:hover {
  border-color: rgba(240, 200, 0, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: linear-gradient(160deg, rgba(240, 200, 0, 0.06) 0%, rgba(22, 22, 22, 0.96) 55%);
}

body.page-services .pd-srv-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

body.page-services .pd-srv-card p {
  font-size: 0.84375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

body.page-services .pd-srv-link {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-gold);
}

body.page-services .pd-sectors-section {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-services .pd-cta {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
}

body.page-services .logo-img,
body.page-career .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

/* Mobile: keep inner-page hero photo readable */
html[data-viewport="mobile"] body.page-services .pd-hero--inner,
html[data-viewport="mobile"] body.page-career .pd-hero--career,
html[data-viewport="mobile"] body.page-about .pd-hero--inner,
html[data-viewport="mobile"] body.page-guard .pd-hero--inner,
html[data-viewport="mobile"] body.page-certificates .pd-hero--inner {
  min-height: 280px;
  padding-bottom: 32px;
}

html[data-viewport="mobile"] body.page-services .pd-hero-bg,
html[data-viewport="mobile"] body.page-career .pd-hero-bg,
html[data-viewport="mobile"] body.page-about .pd-hero-bg,
html[data-viewport="mobile"] body.page-guard .pd-hero-bg,
html[data-viewport="mobile"] body.page-certificates .pd-hero-bg {
  height: min(52vh, 420px);
}

html[data-viewport="mobile"] body.page-services .pd-hero-bg img,
html[data-viewport="mobile"] body.page-career .pd-hero-bg img,
html[data-viewport="mobile"] body.page-about .pd-hero-bg img,
html[data-viewport="mobile"] body.page-guard .pd-hero-bg img,
html[data-viewport="mobile"] body.page-certificates .pd-hero-bg img {
  display: block !important;
  object-position: center 40%;
  filter: brightness(0.82) contrast(1.04) saturate(0.95);
}

@media (max-width: 767px) {
  body.page-services .pd-hero--inner .pd-hero-bg img,
  body.page-career .pd-hero--career .pd-hero-bg img {
    display: block !important;
  }
}

/* mobile hero lighten v7b */
html[data-viewport="mobile"] body.page-services .pd-hero-overlay,
html[data-viewport="mobile"] body.page-career .pd-hero-overlay,
html[data-viewport="mobile"] body.page-about .pd-hero-overlay,
html[data-viewport="mobile"] body.page-guard .pd-hero-overlay,
html[data-viewport="mobile"] body.page-certificates .pd-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.35) 0%,
    rgba(8, 8, 8, 0.28) 40%,
    rgba(8, 8, 8, 0.82) 100%
  );
}
html[data-viewport="mobile"] body.page-services .pd-hero-bg img,
html[data-viewport="mobile"] body.page-career .pd-hero-bg img,
html[data-viewport="mobile"] body.page-about .pd-hero-bg img,
html[data-viewport="mobile"] body.page-guard .pd-hero-bg img,
html[data-viewport="mobile"] body.page-certificates .pd-hero-bg img {
  filter: brightness(0.92) contrast(1.05) saturate(1);
}

/* === GUARD UI v8 — page-guard only, preserve CMS selectors ===
   ============================================================ */

body.page-guard .pd-hero--inner .pd-hero-bg img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

body.page-guard .pd-hero--inner {
  min-height: clamp(320px, 42vh, 420px);
  padding: calc(var(--pd-header-h) + 36px) 0 48px;
  align-items: flex-end;
}

body.page-guard .pd-hero--inner h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

body.page-guard .pd-hero--inner .pd-hero-sub {
  max-width: 36rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

body.page-guard .pd-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.4) 48%,
    rgba(8, 8, 8, 0.55) 100%
  );
}

/* Intro */
body.page-guard .pd-guard-intro {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-guard .pd-about-grid {
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

body.page-guard .pd-about-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

body.page-guard .pd-about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.page-guard .pd-about-text > p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
  max-width: 54ch;
}

/* Types grid */
body.page-guard .pd-guard-types {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-guard .pd-guard-lead {
  text-align: center;
  max-width: 40rem;
  margin: -8px auto 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
  line-height: 1.6;
}

body.page-guard .pd-guard-grid {
  gap: 16px;
}

body.page-guard .pd-guard-type {
  padding: 24px 20px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

body.page-guard .pd-guard-type:hover {
  border-color: rgba(240, 200, 0, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: linear-gradient(160deg, rgba(240, 200, 0, 0.06) 0%, rgba(22, 22, 22, 0.96) 55%);
}

body.page-guard .pd-guard-type h3 {
  font-size: 0.95rem;
  margin: 0 0 8px;
}

body.page-guard .pd-guard-type p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* Duties */
body.page-guard .pd-guard-duties {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-guard .pd-guard-duties-grid {
  gap: 12px 16px;
}

body.page-guard .pd-guard-duties-grid li {
  padding: 16px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-guard .pd-guard-duties-grid li:hover {
  border-color: rgba(240, 200, 0, 0.28);
  background: rgba(240, 200, 0, 0.04);
}

body.page-guard .pd-guard-duties-grid li > div {
  min-width: 0;
  flex: 1 1 auto;
}

body.page-guard .pd-guard-duties-grid .pd-check-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: hidden;
  color: var(--pd-black);
}

body.page-guard .pd-guard-duties-grid .pd-check-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

body.page-guard .pd-guard-duties-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

body.page-guard .pd-guard-duties-grid li > div > span {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* Stats: 3 cards — avoid empty 4th column */
body.page-guard .pd-guard-stats .pd-stats-grid,
body.page-guard .pd-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin-inline: auto;
}

body.page-guard .pd-guard-stats {
  padding: clamp(36px, 4.5vw, 52px) 0;
}

body.page-guard .pd-stat-card {
  padding: 24px 16px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Gallery 2×2 */
body.page-guard .pd-guard-gallery {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.page-guard .pd-guard-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.page-guard .pd-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-guard .pd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-guard .pd-gallery-item figcaption {
  font-size: 0.78rem;
  font-weight: 700;
}

body.page-guard .pd-cta,
body.page-services .pd-cta {
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

/* Compact CTA band — not a tall full-width card */
body.page-guard .pd-cta-inner,
body.page-services .pd-cta-inner {
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon text actions"
    ". text actions";
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
  padding: 22px 28px;
}

body.page-guard .pd-cta-top,
body.page-services .pd-cta-top {
  grid-area: icon;
  margin-bottom: 0;
}

body.page-guard .pd-cta-kicker,
body.page-services .pd-cta-kicker {
  display: none;
}

body.page-guard .pd-cta-icon,
body.page-services .pd-cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

body.page-guard .pd-cta-text,
body.page-services .pd-cta-text {
  grid-area: text;
  max-width: none;
  margin-bottom: 0;
}

body.page-guard .pd-cta-text h3,
body.page-services .pd-cta-text h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  line-height: 1.3;
}

body.page-guard .pd-cta-text p,
body.page-services .pd-cta-text p {
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

body.page-guard .pd-cta-actions,
body.page-services .pd-cta-actions {
  grid-area: actions;
  width: auto;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
}

body.page-guard .pd-cta-actions .pd-btn,
body.page-services .pd-cta-actions .pd-btn {
  min-width: 0;
  padding: 12px 18px;
  font-size: 0.78rem;
  white-space: nowrap;
}

body.page-guard .pd-cta-glow,
body.page-services .pd-cta-glow {
  width: 220px;
  height: 220px;
  top: -50%;
  right: -4%;
  opacity: 0.7;
}

@media (max-width: 900px) {
  body.page-guard .pd-cta-inner,
  body.page-services .pd-cta-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon text"
      "actions actions";
    padding: 20px 20px;
    row-gap: 14px;
  }

  body.page-guard .pd-cta-actions,
  body.page-services .pd-cta-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body.page-guard .pd-cta-inner,
  body.page-services .pd-cta-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "text"
      "actions";
  }

  body.page-guard .pd-cta-actions .pd-btn,
  body.page-services .pd-cta-actions .pd-btn {
    width: 100%;
    justify-content: center;
  }
}

body.page-guard .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

html[data-viewport="mobile"] body.page-guard .pd-hero--inner {
  min-height: 280px;
  padding-bottom: 32px;
}

html[data-viewport="mobile"] body.page-guard .pd-hero-bg {
  height: min(52vh, 420px);
}

html[data-viewport="mobile"] body.page-guard .pd-hero-bg img {
  display: block !important;
  object-position: center 40%;
  filter: brightness(0.92) contrast(1.05) saturate(1);
}

html[data-viewport="mobile"] body.page-guard .pd-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.35) 0%,
    rgba(8, 8, 8, 0.28) 40%,
    rgba(8, 8, 8, 0.82) 100%
  );
}

@media (max-width: 900px) {
  body.page-guard .pd-guard-stats .pd-stats-grid,
  body.page-guard .pd-stats-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  body.page-guard .pd-guard-stats .pd-stats-grid,
  body.page-guard .pd-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 560px) {
  body.page-guard .pd-guard-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* === CAREER UI v9 — page-career only, preserve CMS selectors ===
   Hero image already wired; polish rhythm, job cards, form, contact. */

body.page-career .pd-hero--career .pd-hero-bg img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

body.page-career .pd-hero--career {
  min-height: clamp(420px, 52vw, 560px);
  display: flex;
  align-items: flex-end;
}

body.page-career .pd-hero--career h1 {
  max-width: 14ch;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

body.page-career .pd-hero--career .pd-hero-sub {
  max-width: 36rem;
  margin-top: 14px;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

body.page-career .pd-hero--career .pd-hero-actions {
  margin-top: 22px;
  gap: 12px;
}

body.page-career .pd-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.4) 48%,
    rgba(8, 8, 8, 0.55) 100%
  );
}

body.page-career .pd-jobinfo {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 4.5vw, 64px);
}

body.page-career .pd-jobinfo .pd-section-title {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

body.page-career .pd-jobinfo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

body.page-career .pd-jobinfo-card {
  padding: 22px 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

body.page-career .pd-jobinfo-card:hover {
  border-color: rgba(212, 175, 55, 0.42);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
}

body.page-career .pd-jobinfo-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: #d4af37;
}

body.page-career .pd-jobinfo-card h3 {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

body.page-career .pd-jobinfo-card p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

body.page-career .pd-jobinfo-cta {
  margin-top: 28px;
  text-align: center;
}

body.page-career .pd-anket-section {
  padding-top: clamp(40px, 4.5vw, 56px);
}

body.page-career .career-anket-panel {
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(12, 12, 12, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

body.page-career .career-anket-head h2 {
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

body.page-career .career-anket-head p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

body.page-career .career-anket-form .anket-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-career .career-anket-form legend {
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.page-career .anket-notice {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.55;
}

body.page-career .anket-submit {
  margin-top: 18px;
  min-width: 200px;
}

body.page-career .form-success-career {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
}

body.page-career .pd-career-contact {
  padding-top: clamp(48px, 5vw, 72px);
}

body.page-career .pd-career-contact-lead {
  max-width: 36rem;
  margin: 0 auto 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

body.page-career .pd-career-contact .pd-contact-split {
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
}

body.page-career .pd-career-contact .contact-info-panel {
  padding: 22px 20px;
}

body.page-career .pd-career-contact .contact-item + .contact-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-career .pd-contact-office {
  border-radius: 14px;
  overflow: hidden;
}

body.page-career .logo-img {
  max-height: 56px;
  width: auto;
}

html[data-viewport="mobile"] body.page-career .pd-hero--career {
  min-height: 390px;
  align-items: flex-end;
}

html[data-viewport="mobile"] body.page-career .pd-hero-bg {
  inset: 0;
}

html[data-viewport="mobile"] body.page-career .pd-hero-bg img {
  display: block !important;
  object-position: center 30%;
}

html[data-viewport="mobile"] body.page-career .pd-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.35) 0%,
    rgba(8, 8, 8, 0.28) 40%,
    rgba(8, 8, 8, 0.82) 100%
  );
}

html[data-viewport="mobile"] body.page-career .pd-hero--career h1 {
  font-size: clamp(1.85rem, 8.2vw, 2.35rem);
}

html[data-viewport="mobile"] body.page-career .pd-hero-actions {
  flex-direction: column;
  align-items: stretch;
}

html[data-viewport="mobile"] body.page-career .pd-hero-actions .pd-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1100px) {
  body.page-career .pd-jobinfo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.page-career .pd-jobinfo-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-career .pd-jobinfo-card:last-child {
    grid-column: 1 / -1;
  }

  body.page-career .career-anket-panel {
    padding: 22px 16px;
  }
}

@media (max-width: 480px) {
  body.page-career .pd-jobinfo-grid {
    grid-template-columns: 1fr;
  }

  body.page-career .pd-jobinfo-card:last-child {
    grid-column: auto;
  }
}

/* === PARTNERS UI v11 — natural colors; marquee = logo-only ===
   Certificates: all partners (logo or monogram). No white filter. */

.pd-client-logo {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-partner-logo img,
.pd-client-logo img {
  filter: none;
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pd-partner-item:hover .pd-partner-logo img,
.pd-client-card:hover .pd-client-logo img {
  transform: scale(1.04);
}

/* Keep home marquee scrolling even if data-viewport is late/missing */
body.page-home .pd-partners-marquee {
  display: flex !important;
  width: max-content !important;
  animation: pd-partners-scroll 40s linear infinite !important;
}

body.page-home .pd-partners-slide {
  display: flex !important;
  flex-shrink: 0;
  align-items: flex-start;
}

body.page-home .pd-partners-slide[aria-hidden="true"] {
  display: flex !important;
}

/* Pause marquee when inspecting a logo */
body.page-home .pd-partners:hover .pd-partners-marquee {
  animation-play-state: paused !important;
}

@media (max-width: 767px) {
  body.page-home .pd-partners-marquee {
    animation: none !important;
    display: block !important;
    width: 100% !important;
  }

  body.page-home .pd-partners-slide {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    width: 100%;
  }

  body.page-home .pd-partners-slide[aria-hidden="true"] {
    display: none !important;
  }
}

.pd-partner-item:hover .pd-partner-name {
  color: rgba(255, 255, 255, 0.88);
}

.pd-logo-mono {
  width: 100%;
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-logo-mono__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(240, 200, 0, 0.45);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: inset 0 -2px 0 rgba(240, 200, 0, 0.55);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.pd-partner-item:hover .pd-logo-mono__mark,
.pd-client-card:hover .pd-logo-mono__mark {
  color: #f0c800;
  border-color: rgba(240, 200, 0, 0.8);
  box-shadow: inset 0 -2px 0 rgba(240, 200, 0, 0.9);
  transform: translateY(-1px);
}

.pd-partner-logo--mono,
.pd-client-logo--mono {
  border-color: transparent;
}

/* === HOME UI v5 final — micro rhythm only === */
body.page-home .pd-services-grid {
  align-items: stretch;
}

body.page-home a.pd-service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

body.page-home .pd-partners {
  padding-top: clamp(40px, 4.5vw, 56px);
  padding-bottom: clamp(36px, 4vw, 48px);
}

body.page-home .pd-why {
  padding-top: clamp(48px, 5.5vw, 68px);
  padding-bottom: clamp(44px, 5vw, 60px);
}

body.page-home .pd-contact--strip .pd-contact-grid {
  gap: clamp(20px, 3vw, 32px);
}

body.page-home .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

html[data-viewport="mobile"] body.page-home .pd-hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

html[data-viewport="mobile"] body.page-home .pd-hero-actions .pd-btn {
  width: 100%;
  justify-content: center;
}

/* === ABOUT UI v6 final === */
body.page-about .pd-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.4) 48%,
    rgba(8, 8, 8, 0.55) 100%
  );
}

body.page-about .pd-process-step p {
  max-width: 28ch;
  margin-inline: auto;
}

body.page-about .pd-gallery-item {
  overflow: hidden;
}

body.page-about .pd-gallery-item img {
  transition: transform 0.45s ease;
}

@media (max-width: 900px) {
  body.page-about .pd-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}

@media (max-width: 560px) {
  body.page-about .pd-process-grid {
    grid-template-columns: 1fr;
  }

  body.page-about .pd-process-step p {
    max-width: none;
  }
}

/* === SERVICES UI v7 final === */
body.page-services .pd-srv-grid {
  align-items: stretch;
}

body.page-services .pd-srv-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

body.page-services .pd-srv-link {
  margin-top: auto;
  padding-top: 16px;
}

body.page-services .pd-sectors {
  gap: 14px;
  margin-top: 32px;
}

body.page-services .pd-sector {
  padding: 22px 12px 20px;
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.92);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

body.page-services .pd-sector:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 200, 0, 0.32);
}

/* === GUARD UI v8 final === */
body.page-guard .pd-guard-type {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.page-guard .pd-stat-card:hover {
  border-color: rgba(240, 200, 0, 0.34);
  transform: translateY(-2px);
}

body.page-guard .pd-gallery-item img {
  transition: transform 0.45s ease;
}

body.page-guard .pd-gallery-item:hover img {
  transform: scale(1.04);
}

/* === CAREER UI v9 final === */
body.page-career .pd-jobinfo-card {
  border-radius: 10px;
  text-align: center;
}

body.page-career .career-anket-panel {
  border-radius: 12px;
  padding: 28px clamp(18px, 3.5vw, 36px);
}

body.page-career .career-anket-form input,
body.page-career .career-anket-form select,
body.page-career .career-anket-form textarea {
  border-radius: 8px;
}

body.page-career .pd-career-contact .pd-contact-split {
  max-width: 1080px;
  margin-inline: auto;
}

body.page-career .pd-career-contact .map-embed {
  max-width: 1080px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(240, 200, 0, 0.16);
}

/* === CONTACT UI v10 — page-contact only ===
   Wider header, info/office/map rhythm. No copy changes. */
body.page-contact .page-header {
  padding: calc(var(--pd-header-h, 88px) + 40px) 0 56px;
  min-height: clamp(260px, 34vh, 340px);
}

body.page-contact .page-header > .container {
  max-width: min(1100px, 100%);
}

body.page-contact .page-header .eyebrow {
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

body.page-contact .page-header h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  max-width: 18ch;
}

body.page-contact .page-header p {
  max-width: min(48rem, 100%);
  font-size: clamp(0.9375rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

body.page-contact .pd-contact-page {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(56px, 6vw, 80px);
}

body.page-contact .pd-contact-split {
  max-width: 1080px;
  gap: clamp(20px, 2.5vw, 32px);
  margin: 0 auto 24px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

body.page-contact .pd-contact-split .contact-info-panel {
  padding: 10px 26px;
  border-radius: 12px;
  border-color: rgba(240, 200, 0, 0.22);
}

body.page-contact .contact-item {
  padding: 18px 0;
  transition: background 0.2s ease;
}

body.page-contact .contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

body.page-contact .contact-item-label {
  margin-bottom: 4px;
}

body.page-contact .contact-item-value {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

body.page-contact .contact-item-value a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.page-contact .contact-item-value a:hover {
  color: var(--pd-gold);
  border-bottom-color: rgba(240, 200, 0, 0.45);
}

body.page-contact .pd-contact-office {
  border-radius: 12px;
  border-color: rgba(240, 200, 0, 0.24);
}

body.page-contact .pd-contact-office img {
  min-height: 100%;
  object-position: center 30%;
}

body.page-contact .pd-contact-cta--page {
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(240, 200, 0, 0.22);
  background: linear-gradient(120deg, rgba(240, 200, 0, 0.08), rgba(22, 22, 22, 0.92) 55%);
}

body.page-contact .pd-contact-cta--page h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

body.page-contact .pd-contact-cta--page p {
  margin: 0;
  font-size: 0.84375rem;
  color: rgba(255, 255, 255, 0.68);
}

body.page-contact .pd-contact-page .map-embed {
  max-width: 1080px;
  border-radius: 12px;
  overflow: hidden;
  border-color: rgba(240, 200, 0, 0.18);
}

body.page-contact .pd-contact-page .map-embed iframe {
  height: 380px;
}

body.page-contact .map-embed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

body.page-contact .map-embed-footer a {
  white-space: nowrap;
  font-weight: 700;
  color: var(--pd-gold);
  text-decoration: none;
}

body.page-contact .map-embed-footer a:hover {
  text-decoration: underline;
}

body.page-contact .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

@media (max-width: 820px) {
  body.page-contact .pd-contact-split {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  body.page-contact .pd-contact-cta--page,
  body.page-contact .pd-contact-page .map-embed {
    max-width: 560px;
  }

  body.page-contact .pd-contact-office img {
    min-height: 280px;
    max-height: 360px;
  }

  body.page-contact .pd-contact-cta--page {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  body.page-contact .pd-contact-cta--page .btn {
    width: 100%;
    text-align: center;
  }

  body.page-contact .map-embed-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

html[data-viewport="mobile"] body.page-contact .page-header {
  padding: calc(var(--pd-header-h, 72px) + 28px) 0 36px;
  min-height: 0;
}

html[data-viewport="mobile"] body.page-contact .page-header h1 {
  max-width: none;
  font-size: clamp(1.65rem, 7vw, 2.1rem);
}

html[data-viewport="mobile"] body.page-contact .pd-contact-split .contact-info-panel {
  padding: 6px 16px;
}

html[data-viewport="mobile"] body.page-contact .pd-contact-page .map-embed iframe {
  height: 280px;
}

/* === PARTNER PAGE UI v10 — page-partner only === */
body.page-partner .page-header {
  padding: calc(var(--pd-header-h, 88px) + 40px) 0 56px;
  min-height: clamp(260px, 34vh, 340px);
}

body.page-partner .page-header > .container {
  max-width: min(1100px, 100%);
}

body.page-partner .page-header .eyebrow {
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

body.page-partner .page-header h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  max-width: 20ch;
}

body.page-partner .page-header p {
  max-width: min(48rem, 100%);
  font-size: clamp(0.9375rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

body.page-partner .section > .container {
  max-width: min(1100px, 100%);
}

body.page-partner .contact-grid {
  gap: clamp(28px, 3.5vw, 44px);
  align-items: start;
}

body.page-partner .pd-partner-heading {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

body.page-partner .pd-partner-steps {
  padding: 4px 0 8px;
}

body.page-partner .pd-partner-step {
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.22s ease, background 0.22s ease;
}

body.page-partner .pd-partner-step:hover {
  border-color: rgba(240, 200, 0, 0.28);
  background: rgba(240, 200, 0, 0.04);
}

body.page-partner .pd-partner-step-num {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35);
}

body.page-partner .pd-partner-step-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

body.page-partner .pd-partner-step p {
  font-size: 0.84375rem;
  line-height: 1.6;
}

body.page-partner .pd-partner-contact {
  margin-top: 22px;
  padding-top: 4px;
  border-top: none;
  display: grid;
  gap: 12px;
}

body.page-partner .pd-partner-contact .contact-item {
  margin: 0;
  padding: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

body.page-partner .pd-partner-contact .contact-item:hover {
  border-color: rgba(240, 200, 0, 0.32);
  transform: translateY(-1px);
}

body.page-partner .pd-partner-contact .contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

body.page-partner .contact-form-wrap {
  padding: 28px 26px;
  border-radius: 12px;
  border: 1px solid rgba(240, 200, 0, 0.18);
  background: rgba(12, 12, 12, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

body.page-partner .contact-form-title {
  font-size: 1.2rem;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

body.page-partner .contact-form .form-group {
  margin-bottom: 14px;
}

body.page-partner .contact-form label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

body.page-partner .contact-form input,
body.page-partner .contact-form textarea {
  border-radius: 8px;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

body.page-partner .contact-form textarea {
  min-height: 140px;
}

body.page-partner .contact-form input:focus,
body.page-partner .contact-form textarea:focus {
  border-color: rgba(240, 200, 0, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 200, 0, 0.12);
}

body.page-partner .contact-form .btn,
body.page-partner .contact-form button[type="submit"] {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

body.page-partner .pd-form-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

body.page-partner .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

@media (max-width: 900px) {
  body.page-partner .contact-grid {
    gap: 28px;
  }
}

html[data-viewport="mobile"] body.page-partner .page-header {
  padding: calc(var(--pd-header-h, 72px) + 28px) 0 36px;
  min-height: 0;
}

html[data-viewport="mobile"] body.page-partner .page-header h1 {
  max-width: none;
  font-size: clamp(1.65rem, 7vw, 2.1rem);
}

html[data-viewport="mobile"] body.page-partner .contact-form-wrap {
  padding: 22px 16px;
}

html[data-viewport="mobile"] body.page-partner .pd-partner-step {
  padding: 12px;
}

/* === CERTIFICATES UI v10 — page-certificates only ===
   Hero already solid; polish license / insurance / clients. */
body.page-certificates .pd-hero--inner {
  min-height: clamp(320px, 42vh, 420px);
  padding: calc(var(--pd-header-h) + 36px) 0 48px;
  align-items: flex-end;
}

body.page-certificates .pd-hero--inner h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

body.page-certificates .pd-hero--inner .pd-hero-sub {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

body.page-certificates .pd-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 8, 8, 0.84) 0%,
    rgba(8, 8, 8, 0.55) 48%,
    rgba(8, 8, 8, 0.62) 100%
  );
}

body.page-certificates .pd-section {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
}

body.page-certificates .pd-section-head {
  margin-bottom: 28px;
  gap: 12px;
}

body.page-certificates .pd-section-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

body.page-certificates .pd-section-head h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.06em;
}

/* License 2-col */
body.page-certificates .pd-license-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

body.page-certificates .pd-license-image {
  padding: 14px;
  border-radius: 12px;
  border-color: rgba(240, 200, 0, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

body.page-certificates .pd-license-image img {
  border-radius: 6px;
  display: block;
  width: 100%;
  height: auto;
}

body.page-certificates .pd-license-detail h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.35;
  margin-bottom: 20px;
}

body.page-certificates .pd-license-rows li {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
}

body.page-certificates .pd-license-row-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}

body.page-certificates .pd-license-row-value {
  font-size: 0.9rem;
  font-weight: 700;
}

body.page-certificates .pd-license-note {
  font-size: 0.84375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 52ch;
}

/* Insurance cards */
body.page-certificates .pd-insurance-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
}

body.page-certificates .pd-insurance-card,
body.page-certificates .pd-insurance-amount {
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-certificates .pd-insurance-card:hover,
body.page-certificates .pd-insurance-amount:hover {
  border-color: rgba(240, 200, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

body.page-certificates .pd-insurance-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 18px;
}

body.page-certificates .pd-insurance-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

body.page-certificates .pd-insurance-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

body.page-certificates .pd-insurance-amount-value {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0.01em;
}

body.page-certificates .pd-insurance-amount-period {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.8125rem;
}

/* Clients grid — denser logos/monograms */
body.page-certificates .pd-clients-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body.page-certificates .pd-client-card {
  padding: 18px 14px 16px;
  border-radius: 10px;
  gap: 12px;
  background: rgba(22, 22, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-certificates .pd-client-card:hover {
  border-color: rgba(240, 200, 0, 0.36);
}

body.page-certificates .pd-client-logo {
  height: 48px;
  padding: 6px 10px;
  border-radius: 8px;
}

body.page-certificates .pd-client-card span {
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

body.page-certificates .logo-img {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  body.page-certificates .pd-clients-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-certificates .pd-license-grid,
  body.page-certificates .pd-insurance-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.page-certificates .pd-clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.page-certificates .pd-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.page-certificates .pd-license-rows li {
    grid-template-columns: 28px 1fr;
  }

  body.page-certificates .pd-license-row-value {
    grid-column: 2;
    text-align: left;
  }

  body.page-certificates .pd-insurance-amount-period {
    white-space: normal;
    text-align: center;
    border-radius: 10px;
  }
}

html[data-viewport="mobile"] body.page-certificates .pd-hero--inner {
  min-height: 280px;
  padding-bottom: 32px;
}

html[data-viewport="mobile"] body.page-certificates .pd-hero-bg {
  height: min(52vh, 420px);
}

html[data-viewport="mobile"] body.page-certificates .pd-hero-bg img {
  display: block !important;
  object-position: center 35%;
  filter: brightness(0.92) contrast(1.05) saturate(1);
}

html[data-viewport="mobile"] body.page-certificates .pd-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.35) 0%,
    rgba(8, 8, 8, 0.28) 40%,
    rgba(8, 8, 8, 0.82) 100%
  );
}


/* Viewport safety: prevent horizontal bleed on phones even if JS viewport fails */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .pd-hero, .pd-section, .site-footer {
    overflow-x: hidden;
  }
}
/* Structured price-request form */
body.page-partner .partner-quote-form {
  padding: clamp(24px, 4vw, 38px);
}

body.page-partner .pd-form-kicker {
  margin-bottom: 8px;
  color: var(--pd-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.page-partner .pd-form-intro {
  margin: -6px 0 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  line-height: 1.65;
}

body.page-partner .pd-form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.page-partner .pd-form-section-title span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--pd-gold);
  color: #090909;
  font-size: 0.72rem;
}

body.page-partner .pd-service-picker {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

body.page-partner .pd-service-picker legend {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
}

body.page-partner .pd-service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.page-partner .pd-service-options label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.page-partner .pd-service-options label:has(input:checked) {
  border-color: rgba(255, 217, 0, 0.7);
  background: rgba(255, 217, 0, 0.08);
  color: #fff;
}

body.page-partner .pd-service-options input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--pd-gold);
}

body.page-partner .form-row-3 {
  grid-template-columns: 1.2fr 0.7fr 1fr;
}

body.page-partner .pd-quote-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

body.page-partner .form-success {
  padding: 32px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  body.page-partner .pd-service-options,
  body.page-partner .form-row-3 {
    grid-template-columns: 1fr;
  }
}
