/* DTH — Shared styles for inner pages */

/* ===== Page header / breadcrumb ===== */
.page-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(ellipse 60% 50% at 90% 100%, #DCEAFD 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 0%, #EFF6FF 0%, transparent 60%),
    linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,103,214,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,103,214,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 90%);
  pointer-events: none;
}
.page-hero .container { position: relative; }

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-500);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--dth-blue); }
.breadcrumb .sep { color: var(--ink-300); }
.breadcrumb .cur { color: var(--ink-900); font-weight: 600; }

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 12px;
  max-width: 22ch;
}
.page-hero .lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-500);
  max-width: 64ch;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* ===== Generic content blocks ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-text h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 18px;
}
.split-text p { color: var(--ink-500); font-size: 16px; }
.split-text p + p { margin-top: 14px; }
.split-text ul {
  margin-top: 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split-text li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-700);
}
.split-text li svg {
  width: 20px; height: 20px;
  color: var(--dth-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.split-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: initial; }
}

/* ===== image-slot styling ===== */
image-slot {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--bg-tint);
  border: 1.5px dashed rgba(0,103,214,0.25);
  color: var(--dth-blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

/* ===== Mission / Vision / Values cards ===== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mvv-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.mvv-card.mission .mvv-icon { background: var(--dth-blue-50); color: var(--dth-blue); }
.mvv-card.vision .mvv-icon { background: #E8F8FC; color: #1A8DAA; }
.mvv-card.values .mvv-icon { background: #FFF4E0; color: #B07000; }
.mvv-icon svg { width: 28px; height: 28px; }
.mvv-card h3 { font-size: 22px; margin-bottom: 12px; }
.mvv-card p { color: var(--ink-500); font-size: 15px; line-height: 1.65; }
.mvv-card .tag {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-400);
}
@media (max-width: 880px) { .mvv-grid { grid-template-columns: 1fr; } }

/* ===== Timeline (history) ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--dth-blue) 0%, var(--dth-blue) 70%, transparent 100%);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px; height: 16px;
  background: white;
  border: 3px solid var(--dth-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px white;
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--dth-blue);
  letter-spacing: -0.01em;
}
.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-900);
  margin-top: 4px;
  margin-bottom: 8px;
}
.timeline-item p { color: var(--ink-500); font-size: 15px; max-width: 60ch; }

/* ===== Cert cards (extended) ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cert-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
}
.cert-card-img {
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  padding: 24px;
}
.cert-card-body { padding: 26px 28px; }
.cert-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.cert-card-body .org { font-size: 13px; color: var(--ink-400); margin-bottom: 14px; }
.cert-card-body p { font-size: 14px; color: var(--ink-500); }
.cert-meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-400);
}
.cert-meta span { display: flex; gap: 6px; }
.cert-meta strong { color: var(--ink-900); font-weight: 600; }
@media (max-width: 760px) {
  .cert-grid, .cert-card { grid-template-columns: 1fr; }
  .cert-card-img { aspect-ratio: 16/9; }
}

/* ===== Product detail page ===== */
.pd-hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, #DCEAFD 0%, transparent 60%),
    linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%);
  padding-block: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.pd-hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin-top: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.pd-hero .lead { margin-top: 22px; font-size: 18px; color: var(--ink-500); max-width: 56ch; }
.pd-hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.pd-hero-meta > div {
  display: flex;
  flex-direction: column;
}
.pd-hero-meta .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.pd-hero-meta .value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 4px;
}
.pd-hero-image {
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pd-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.pd-product-chip .code {
  background: var(--dth-blue);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
@media (max-width: 980px) {
  .pd-hero-grid { grid-template-columns: 1fr; }
}

/* ===== Feature blocks ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-item:hover { border-color: var(--dth-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--dth-blue-50);
  color: var(--dth-blue);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.feature-body h4 { font-size: 16px; margin-bottom: 6px; }
.feature-body p { font-size: 14px; color: var(--ink-500); line-height: 1.55; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* ===== Architecture diagram block ===== */
.arch-block {
  background: var(--ink-900);
  border-radius: 24px;
  padding: 56px;
  color: white;
  position: relative;
  overflow: hidden;
}
.arch-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 80% 20%, rgba(0,103,214,0.4), transparent 60%),
    radial-gradient(circle 400px at 20% 80%, rgba(54,197,229,0.18), transparent 60%);
}
.arch-block > * { position: relative; }
.arch-block h2 { color: white; font-size: clamp(24px, 2.8vw, 36px); }
.arch-block .lead { color: rgba(255,255,255,0.7); margin-top: 14px; font-size: 16px; max-width: 60ch; }
.arch-image {
  margin-top: 32px;
  aspect-ratio: 16 / 8;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.arch-image image-slot {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
}

/* ===== Services page — accordion timeline ===== */
.service-tile {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.15s;
}
.service-tile:first-child { padding-top: 12px; }
.service-tile:last-child { border-bottom: none; }
.service-tile .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--dth-blue);
  letter-spacing: -0.02em;
  line-height: 1;
}
.service-tile h3 { font-size: 24px; margin-bottom: 10px; }
.service-tile p { color: var(--ink-500); max-width: 60ch; }
.service-tile ul {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  padding: 0; list-style: none;
}
.service-tile li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-700);
}
.service-tile li::before { content: "+"; color: var(--dth-blue); font-weight: 700; }
.service-tile .meta {
  text-align: right;
  display: flex; flex-direction: column; gap: 4px;
}
.service-tile .meta .badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dth-blue);
  background: var(--dth-blue-50);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-end;
}
@media (max-width: 760px) {
  .service-tile { grid-template-columns: 1fr; gap: 12px; }
  .service-tile .meta { text-align: left; }
  .service-tile ul { grid-template-columns: 1fr; }
}

/* ===== Careers ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  transition: transform 0.2s, border-color 0.2s;
}
.benefit:hover { transform: translateY(-3px); border-color: var(--dth-blue); }
.benefit-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--dth-blue-50); color: var(--dth-blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit h4 { font-size: 16px; margin-bottom: 6px; }
.benefit p { font-size: 13.5px; color: var(--ink-500); }
@media (max-width: 980px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits-grid { grid-template-columns: 1fr; } }

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.job-card:hover { border-color: var(--dth-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card h4 { font-size: 18px; margin-bottom: 6px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-500); }
.job-meta span { display: flex; align-items: center; gap: 6px; }
.job-meta svg { width: 14px; height: 14px; color: var(--ink-400); }
.job-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dth-blue);
  background: var(--dth-blue-50);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}
@media (max-width: 600px) { .job-card { grid-template-columns: 1fr; } }

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-grid.featured { grid-template-columns: 1.6fr 1fr 1fr; }
.news-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card.large .news-img { aspect-ratio: 4 / 3; }
.news-body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.news-cat {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dth-blue);
  text-transform: uppercase;
}
.news-card h3 { font-size: 18px; line-height: 1.35; }
.news-card.large h3 { font-size: 24px; }
.news-card p { font-size: 14px; color: var(--ink-500); }
.news-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-400);
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 960px) {
  .news-grid, .news-grid.featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-grid, .news-grid.featured { grid-template-columns: 1fr; }
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.contact-block-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dth-blue);
  margin-bottom: 14px;
}
.contact-block h4 { font-size: 18px; margin-bottom: 6px; }
.contact-block p { color: var(--ink-500); font-size: 14.5px; line-height: 1.6; }
.contact-block .row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-700);
}
.contact-block .row svg { width: 18px; height: 18px; color: var(--dth-blue); flex-shrink: 0; margin-top: 1px; }
.map-wrap {
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Customer logo grid ===== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.logo-tile {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-500);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.logo-tile:hover { border-color: var(--dth-blue); box-shadow: var(--shadow-sm); color: var(--ink-900); }
@media (max-width: 880px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Active nav link */
.nav-link.active { color: var(--dth-blue); background: var(--dth-blue-50); }

/* Culture gallery — explicit rows so button below doesn't get pushed under */
.culture-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 280px 220px;
  gap: 16px;
}
.culture-gallery image-slot { border-radius: 16px; width: 100%; height: 100%; }
.cg-1 { grid-column: span 3; grid-row: span 2; }
.cg-2 { grid-column: span 3; grid-row: span 1; }
.cg-3 { grid-column: span 1; grid-row: span 1; }
.cg-4 { grid-column: span 1; grid-row: span 1; }
.cg-5 { grid-column: span 1; grid-row: span 1; }
@media (max-width: 760px) {
  .culture-gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 200px 200px; }
  .cg-1 { grid-column: span 2; grid-row: span 1; }
  .cg-2 { grid-column: span 2; grid-row: span 1; }
  .cg-3, .cg-4, .cg-5 { grid-column: span 1; grid-row: span 1; }
  .cg-5 { display: none; }
}

/* Quote block */
.quote-block {
  background: var(--dth-blue);
  color: white;
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -20px; left: 36px;
  font-family: var(--font-display);
  font-size: 200px;
  color: rgba(255,255,255,0.12);
  line-height: 1;
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 60ch;
  position: relative;
}
.quote-block cite {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-style: normal;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.quote-block cite::before {
  content: "";
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.5);
}

/* ===========================================================
   ===========  MOBILE RESPONSIVE FIXES (all pages)  =========
   ===========================================================
   Many inline `style="grid-template-columns: ..."` patterns
   live across product/job/about/customers pages. These rules
   override them at the relevant breakpoints, so every page
   collapses cleanly down to 320px without touching markup. */

/* ---- Tablet & below: collapse 4-col strips to 2-col ---- */
@media (max-width: 760px) {
  /* CSS Grid quirk: 1fr columns have an implicit min-width of `auto`
     (= min-content), so long unbreakable strings or nested grids
     can blow the track wider than its share. Force grid items in
     all of our 2-col-collapsing layouts to be shrinkable. */
  .contact-grid > *,
  .cta-grid > *,
  .pd-hero-grid > *,
  .page-hero-grid > *,
  .hero-grid > .hero-copy,
  .split > *,
  .creds-grid > *,
  .section-head > *,
  [style*="grid-template-columns: 1fr 320px"] > *,
  [style*="grid-template-columns: 1.1fr 1fr"] > *,
  [style*="grid-template-columns: 1fr 1.2fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > * {
    min-width: 0;
  }
  /* The hero-visual is sized via aspect-ratio with only absolutely-
     positioned children (no intrinsic width). It's stretched in its
     grid track normally, but `min-width: 0` lets it collapse to 0
     and the absolute stat-card then floats above the copy. Pin width. */
  .hero-grid > .hero-visual { width: 100%; min-width: 0; }
  /* Job page article + sidebar may contain long technical strings */
  [style*="grid-template-columns: 1fr 320px"] article,
  [style*="grid-template-columns: 1fr 320px"] aside {
    overflow-wrap: anywhere;
  }

  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Job page sidebar (1fr 320px) → stacked */
  [style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* About page 1.1fr 1fr (timeline + photo) → stacked */
  [style*="grid-template-columns: 1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Product page use-case cards (image + text inside repeat(2,1fr)) */
  [style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Two-up content grids (customer cases, partners, news) */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Product-page repeat(3, 1fr) feature/related blocks (overrides inline) */
  .feature-list[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Phone: collapse 4-col strips fully to single column where needed ---- */
@media (max-width: 520px) {
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ---- Generic repeat(3,1fr) inline grids (product cards, etc.) ---- */
@media (max-width: 920px) {
  [style*="grid-template-columns: repeat(3, 1fr)"]:not(.feature-list) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  [style*="grid-template-columns: repeat(3, 1fr)"]:not(.feature-list) {
    grid-template-columns: 1fr !important;
  }
}
/* repeat(2,1fr) inline (use-case wrappers etc.) → 1-col on phones */
@media (max-width: 600px) {
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Index page: HQ / Office addresses inside CTA ===== */
@media (max-width: 540px) {
  .cta-section .container [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* ===== Hero (homepage) — tighter on phones ===== */
@media (max-width: 560px) {
  .hero-grid { padding-block: 44px 60px; gap: 40px; }
  .hero-headline { font-size: clamp(30px, 8.4vw, 38px); }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .hero-trust { gap: 18px; margin-top: 32px; }
  .hero-visual { max-width: 100%; }
  /* Tame the hero floating-stat card so it doesn't push the rounded
     panel off-screen on tiny viewports */
  .hero-stat-card { left: 0; bottom: 12px; min-width: 0; max-width: 78%; padding: 12px 16px; }
  .hero-stat-card .value { font-size: 22px; }
  /* Tuck overflow nodes back inside the panel */
  .hero-node.n3 { left: 2%; }
  .hero-node.n5 { right: 2%; }
  .hero-node { font-size: 11.5px; padding: 6px 9px; }
}

/* ===== Stats strip — 2x2 spacing breathes on phones ===== */
@media (max-width: 760px) {
  .stats-grid { gap: 8px; padding-block: 36px; }
}

/* ===== Section heads — keep eyebrow + h2 close on phones ===== */
@media (max-width: 760px) {
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .section-head .lead { font-size: 15.5px; }
}

/* ===== Products tabs on small viewports ===== */
@media (max-width: 560px) {
  .products-tabs { gap: 0; }
  .products-tab { padding: 12px 14px; font-size: 13.5px; }
  .products-tab .count { font-size: 10.5px; padding: 2px 6px; margin-left: 6px; }
}

/* ===== Strengths / Why-DTH — reduce padding ===== */
@media (max-width: 600px) {
  .strength { padding: 28px 22px; }
  .strength h3 { font-size: 18px; }
}

/* ===== Pillars / MVV / Cred / Service / News / Job / Contact cards
        — pad less, headline smaller on phones ===== */
@media (max-width: 600px) {
  .pillar { padding: 24px 22px; border-radius: 14px; }
  .pillar h3 { font-size: 19px; }
  .mvv-card { padding: 28px 24px; border-radius: 14px; }
  .mvv-card .tag { top: 18px; right: 20px; }
  .cred-card { padding: 24px; border-radius: 14px; }
  .cred-card h3 { font-size: 19px; }
  .service-card { padding: 20px; }
  .news-body { padding: 20px; }
  .contact-block { padding: 22px; }
  .partner { padding: 18px; }
  .cta-form { padding: 24px; border-radius: 16px; }
  .job-card { padding: 20px 22px; gap: 14px; }
}

/* ===== Arch block / Quote block — big paddings collapse on mobile ===== */
@media (max-width: 760px) {
  .arch-block { padding: 32px 24px; border-radius: 18px; }
  .quote-block { padding: 36px 28px; border-radius: 18px; }
  .quote-block::before { font-size: 140px; left: 16px; top: -8px; }
}
@media (max-width: 480px) {
  .arch-block { padding: 24px 18px; }
  .quote-block { padding: 28px 22px; }
}

/* ===== CTA section — tame on phones ===== */
@media (max-width: 600px) {
  .cta-section .cta-grid { gap: 36px; }
  .cta-grid h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .cta-grid p { font-size: 15.5px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== Page hero (inner pages) ===== */
@media (max-width: 600px) {
  .page-hero h1 { font-size: clamp(28px, 7.6vw, 38px); }
  .page-hero .lead { font-size: 15.5px; }
  .breadcrumb { font-size: 12.5px; gap: 6px; }
}

/* ===== Service tiles — number alignment on phones ===== */
@media (max-width: 600px) {
  .service-tile { padding: 28px 0; gap: 8px; }
  .service-tile .num { font-size: 28px; }
  .service-tile h3 { font-size: 20px; }
}

/* ===== Customer logo cards (about & customers pages) ===== */
@media (max-width: 600px) {
  /* Square logo tiles often forced to 120/130px — shrink so they
     don't dominate flex rows on phones */
  image-slot[style*="width: 120px"],
  image-slot[style*="width: 130px"] {
    width: 88px !important;
    height: 88px !important;
  }
}

/* ===== Customers page partner cards (image+text flex row → column) ===== */
@media (max-width: 600px) {
  article[style*="display: flex"][style*="gap: 32px"] {
    flex-direction: column !important;
    padding: 24px !important;
    gap: 18px !important;
  }
}

/* ===== Contact page — floating map info card ===== */
@media (max-width: 760px) {
  /* The "Trụ sở chính" floating card pinned over the map: render it
     inline below the map so it doesn't crowd the corner on phones. */
  .map-wrap + div[style*="position: absolute"],
  div[style*="position: absolute"][style*="bottom: 24px"][style*="left: 24px"] {
    position: static !important;
    margin-top: 16px !important;
    max-width: 100% !important;
  }
}

/* ===== Footer — tighten on phones ===== */
@media (max-width: 600px) {
  .footer { padding-block: 48px 24px; }
  .footer-grid { gap: 28px; padding-bottom: 32px; }
  .footer-bottom { font-size: 12px; }
}

/* ===== Nav — taller tap targets + body lock when menu open ===== */
@media (max-width: 980px) {
  .nav-inner { gap: 16px; height: 64px; }
  .nav-logo svg { height: 28px; }
  .mobile-menu { inset: 64px 0 0 0; padding-block: 16px 32px; }
  .mobile-menu a { padding: 16px 0; font-size: 16px; }
}
body.menu-open { overflow: hidden; }

/* Buttons on phones — bigger tap targets */
@media (max-width: 520px) {
  .btn { padding: 13px 20px; font-size: 14.5px; }
  .btn-sm { padding: 10px 16px; }
}

/* Container padding doesn't shrink below 18px on phones — already
   handled by clamp() but ensure the 56px outer pad doesn't accidentally
   apply at narrow widths */
@media (max-width: 380px) {
  :root { --pad-x: 16px; }
}

/* Long monospace product codes shouldn't overflow narrow product cards */
.product-code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Hide horizontal scrollbars from any minor overflow.
   Apply to body only — `overflow:hidden` on <html> would defeat the
   sticky nav in WebKit. */
body { overflow-x: hidden; }

