:root {
  --blue: #0460fb;
  --blue-dark: #071c62;
  --cyan: #00a6c8;
  --green: #43c801;
  --ink: #0d1b2a;
  --muted: #5b6a7f;
  --line: #dde7f5;
  --soft: #f4f8fd;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body.mtec-body {
  margin: 0;
  background: #f5f8fc;
  color: var(--ink);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mtec-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.mtec-skip { position: absolute; left: -999px; }
.mtec-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
}

.mtec-header {
  background: #fff;
  border-bottom: 1px solid #e9eff7;
}

.mtec-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #65758a;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 0;
}

.mtec-topbar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  margin-right: 8px;
}

.mtec-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #eff4fa;
}

.mtec-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  color: var(--ink) !important;
  font-weight: 950;
  font-size: 22px;
  text-transform: uppercase;
}

.mtec-brand b { color: var(--blue); }
.mtec-brand-logo .custom-logo-link {
  display: block;
  line-height: 0;
}

.mtec-brand img,
.mtec-brand-logo img,
.mtec-brand .custom-logo,
.mtec-brand-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}
.mtec-brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--blue);
  background: #eef5ff;
}

.mtec-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mtec-menu > li {
  position: relative;
}

.mtec-menu a {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mtec-menu a:hover { color: var(--blue) !important; }

.mtec-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 230px;
  max-width: 300px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(13,27,42,.12);
}

.mtec-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.mtec-menu li:hover > .sub-menu,
.mtec-menu li:focus-within > .sub-menu {
  display: block;
}

.mtec-menu .sub-menu a {
  display: block;
  padding: 8px 9px;
  line-height: 1.25;
  white-space: normal;
}

.mtec-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-weight: 950;
  padding: 10px 13px;
}

.mtec-main { padding: 0 0 34px; }

.mtec-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mtec-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.72) 48%, rgba(238,246,255,.78)),
    url("../img/pattern-grid.svg"),
    #eef5ff;
  border-bottom: 1px solid #dfeaf7;
  padding: 32px 0 0;
}

.mtec-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  min-height: 380px;
  gap: 34px;
  align-items: center;
}

.mtec-kicker {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  margin: 0 0 11px;
}

h1 {
  max-width: 570px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.mtec-hero-title {
  max-width: 620px;
}

.mtec-hero-title span {
  display: block;
}

.mtec-title-blue {
  color: var(--blue);
}

.mtec-title-ink {
  color: #07152b;
}

.mtec-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #34465d;
  max-width: 540px;
  margin: 0 0 24px;
}

.mtec-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mtec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 18px;
  text-decoration: none !important;
  font-weight: 950;
  font-size: 12px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
}

.mtec-btn.primary {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 13px 28px rgba(4, 96, 251, .22);
}

.mtec-btn.secondary {
  background: #fff;
  color: var(--blue-dark) !important;
  border-color: #cbdaf0;
}

.mtec-hero-showcase {
  min-height: 330px;
  position: relative;
}

.mtec-hero-orbit {
  position: absolute;
  inset: 4% 3% 5% 7%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 72% 26%, rgba(4, 96, 251, .20), transparent 32%),
    radial-gradient(circle at 28% 74%, rgba(18, 197, 255, .22), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eaf4ff 54%, #dcecff 100%);
  border: 1px solid rgba(157, 188, 229, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.86), 0 24px 54px rgba(7,28,98,.14);
}

.mtec-hero-orbit::before {
  content: "";
  position: absolute;
  inset: 15% 18%;
  border: 1px dashed rgba(4, 96, 251, .32);
  border-radius: 999px;
}

.mtec-hero-orbit span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #082a54;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(7,28,98,.12);
}

.mtec-hero-orbit span:nth-child(1) { left: 8%; top: 12%; }
.mtec-hero-orbit span:nth-child(2) { right: 11%; top: 13%; }
.mtec-hero-orbit span:nth-child(3) { left: 43%; top: 41%; color: #fff; background: var(--blue); }
.mtec-hero-orbit span:nth-child(4) { left: 10%; bottom: 13%; }
.mtec-hero-orbit span:nth-child(5) { right: 12%; bottom: 14%; }

.mtec-device-card {
  position: absolute;
  display: block;
  overflow: hidden;
  background: #071c62;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(7,28,98,.18);
  border-radius: 24px;
}

.mtec-device-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mtec-device-card span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
}

.mtec-device-card-1 {
  width: 58%;
  height: 74%;
  right: 9%;
  top: 7%;
}

.mtec-device-card-2 {
  width: 36%;
  height: 39%;
  left: 2%;
  top: 28%;
}

.mtec-device-card-3 {
  width: 30%;
  height: 28%;
  right: 0;
  bottom: 0;
}

.mtec-device-card-4 {
  width: 26%;
  height: 24%;
  left: 26%;
  bottom: 0;
}

.mtec-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  transform: translateY(50%);
}

.mtec-proof span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(7,28,98,.07);
  border-radius: 20px;
}

.mtec-proof i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf5ff;
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.mtec-proof b {
  display: block;
  color: var(--blue-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.mtec-proof small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
}

.mtec-section { margin-top: 64px; }

.mtec-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.mtec-section h2 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.mtec-row-head a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none !important;
}

.mtec-vertical-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.mtec-vertical {
  display: block;
  min-height: 132px;
  text-align: center;
  text-decoration: none !important;
  color: var(--ink) !important;
  border: 1px solid #e8eef7;
  background: #fff;
  padding: 15px 10px;
}

.mtec-vertical:hover {
  border-color: #b9d4ff;
  box-shadow: 0 12px 22px rgba(4,96,251,.08);
}

.mtec-vertical-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  background: #edf5ff;
  color: var(--blue);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(4,96,251,.06);
}

.mtec-vertical-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mtec-vertical strong {
  display: block;
  font-size: 12px;
  line-height: 1.18;
  text-transform: uppercase;
}

.mtec-vertical small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.mtec-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.mtec-compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mtec-archive .mtec-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mtec-home-card,
.mtec-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 25px rgba(13,27,42,.06);
}

.mtec-home-card-media,
.mtec-card-media {
  display: block;
  background: #e9f1fb;
  text-decoration: none !important;
  position: relative;
}

.mtec-home-card-media img,
.mtec-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.mtec-card-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  background: #071c62;
  color: #fff;
  font-weight: 950;
}

.mtec-pill {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--blue);
  color: #fff;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.mtec-home-card-body,
.mtec-card-body {
  padding: 12px;
}

.mtec-home-card h3,
.mtec-card h3 {
  min-height: 42px;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.mtec-home-card h3 a,
.mtec-card h3 a {
  color: var(--ink) !important;
  text-decoration: none !important;
}

.mtec-home-card p,
.mtec-card p {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.mtec-home-card--compact {
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 8px 18px rgba(13,27,42,.045);
}

.mtec-home-card--compact .mtec-home-card-media {
  min-height: 0;
}

.mtec-home-card--compact .mtec-home-card-media img,
.mtec-home-card--compact .mtec-card-fallback {
  height: auto;
  min-height: 0;
  aspect-ratio: 16/9;
}

.mtec-home-card--compact .mtec-pill {
  left: 6px;
  top: 6px;
  padding: 4px 6px;
  font-size: 8px;
}

.mtec-home-card--compact .mtec-home-card-body {
  padding: 10px 11px 12px;
}

.mtec-home-card--compact h3 {
  min-height: 0;
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mtec-home-card--compact p {
  font-size: 10.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mtec-offers {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.4fr);
  gap: 16px;
}

.mtec-telegram-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #071c62;
  color: #fff;
  padding: 28px;
  box-shadow: 0 16px 34px rgba(7,28,98,.16);
}

.mtec-telegram-card span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  color: #9fc9ff;
}

.mtec-telegram-card h2 {
  color: #fff;
  max-width: 420px;
  margin-top: 8px;
}

.mtec-telegram-card p {
  color: #dceeff;
  font-size: 14px;
  line-height: 1.55;
}

.mtec-mini-offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mtec-empty-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #dceeff;
  padding: 18px;
  font-size: 14px;
  font-weight: 800;
}

.mtec-editable-zone {
  display: grid;
  gap: 18px;
}

.mtec-editable-zone--hero {
  padding-top: 34px;
}

.mtec-editable-zone--categories {
  gap: 16px;
}

.mtec-editable-zone--hero .wp-block-cover,
.mtec-editable-zone--hero .wp-block-media-text,
.mtec-editable-zone--hero .wp-block-group.has-background {
  min-height: clamp(360px, 44vw, 560px);
}

.mtec-editable-zone--categories .wp-block-columns {
  gap: 14px;
}

.mtec-editable-zone--categories .wp-block-column,
.mtec-editable-zone--categories .wp-block-group {
  min-width: 0;
}

.mtec-editable-widget {
  margin: 0;
}

.mtec-editable-widget > *:first-child {
  margin-top: 0;
}

.mtec-editable-widget > *:last-child {
  margin-bottom: 0;
}

.mtec-editable-title,
.mtec-editable-zone h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.mtec-editable-zone p {
  color: var(--muted);
}

.mtec-editable-zone .wp-block-group,
.mtec-editable-zone .wp-block-media-text,
.mtec-editable-zone .wp-block-columns,
.mtec-editable-zone .wp-block-cover {
  border-radius: var(--radius);
}

.mtec-editable-zone .wp-block-group.has-background,
.mtec-editable-zone .wp-block-media-text,
.mtec-editable-zone .wp-block-cover {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mtec-editable-zone .wp-block-image img,
.mtec-editable-zone .wp-block-media-text__media img,
.mtec-editable-zone .wp-block-cover img {
  border-radius: 14px;
}

.mtec-editable-zone .wp-block-button__link {
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(4, 96, 251, .22);
}

.mtec-editable-zone .wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(4, 96, 251, .24);
  box-shadow: none;
}

.mtec-editable-zone .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
}

.mtec-entry,
.mtec-archive { padding: 24px 0 54px; }

.mtec-entry-hero {
  border: 1px solid var(--line);
  background: #fff;
  padding: 34px;
  margin-bottom: 20px;
  box-shadow: 0 14px 36px rgba(13,27,42,.06);
}

.mtec-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.mtec-featured { margin: 24px 0 0; }
.mtec-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.mtec-content {
  border: 1px solid var(--line);
  background: #fff;
  padding: 30px;
  box-shadow: 0 14px 36px rgba(13,27,42,.05);
}

.mtec-content img {
  max-width: 100%;
  height: auto;
}

.mtec-content h2 {
  font-size: clamp(24px, 2vw, 32px);
  color: var(--blue-dark);
}

.mtec-footer {
  background: #fff;
  border-top: 1px solid #e4ecf6;
  color: var(--muted);
  padding: 34px 0;
}

.mtec-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.mtec-footer-logo {
  font-size: 22px;
  font-weight: 950;
  color: var(--ink);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.mtec-footer h2 {
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
}

.mtec-footer p,
.mtec-footer a {
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none !important;
  display: block;
  margin: 0 0 7px;
}

@media (max-width: 1100px) {
  .mtec-hero-grid { grid-template-columns: 1fr; }
  .mtec-hero-showcase { min-height: 300px; }
  .mtec-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtec-vertical-grid { grid-template-columns: repeat(4, 1fr); }
  .mtec-card-grid { grid-template-columns: repeat(3, 1fr); }
  .mtec-compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mtec-archive .mtec-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtec-mini-offers { grid-template-columns: repeat(2, 1fr); }
  .mtec-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .mtec-shell { width: min(100% - 20px, 1180px); }
  .mtec-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .mtec-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
  .mtec-menu-toggle { display: inline-flex; }
  .mtec-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }
  .mtec-menu.is-open { display: flex; }
  .mtec-menu a {
    display: block;
    padding: 8px 0;
  }
  .mtec-hero { padding-top: 24px; }
  .mtec-hero-grid {
    min-height: auto;
    gap: 18px;
  }
  .mtec-hero-grid h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.04;
  }
  .mtec-lead { font-size: 15px; }
  .mtec-actions { flex-direction: column; }
  .mtec-btn { width: 100%; }
  .mtec-hero-showcase { min-height: 240px; }
  .mtec-proof {
    grid-template-columns: 1fr;
    transform: translateY(24px);
  }
  .mtec-section { margin-top: 48px; }
  .mtec-row-head { align-items: flex-start; }
  .mtec-vertical-grid { grid-template-columns: repeat(2, 1fr); }
  .mtec-card-grid,
  .mtec-archive .mtec-card-grid,
  .mtec-mini-offers,
  .mtec-offers,
  .mtec-footer-grid { grid-template-columns: 1fr; }
  .mtec-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mtec-home-card--compact {
    min-height: 0;
  }
  .mtec-home-card--compact .mtec-home-card-media img,
  .mtec-home-card--compact .mtec-card-fallback {
    min-height: 0;
  }
  .mtec-entry-hero,
  .mtec-content { padding: 20px; }
}

/* MesaTEC standalone v0.4 — app header + cluster inheritance */
body.mtec-body {
  background: #f4f8ff;
  color: #0b1f3a;
  -webkit-font-smoothing: antialiased;
}

.mtec-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #2379c6;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(7, 28, 98, .16);
}

.mtec-appbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  background: linear-gradient(90deg, #1975c8 0%, #0b73c9 64%, #0267d6 100%);
}

.mtec-brand {
  justify-self: start;
  color: #073c86 !important;
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: none;
  gap: 0;
  min-width: 0;
}
.mtec-brand span { display: block; }
.mtec-brand b { color: #086dff; }
.mtec-brand small {
  display: block;
  margin-top: 3px;
  padding-left: 2px;
  color: #082a54;
  font-size: 7px;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}
.mtec-brand-logo { padding: 4px 0; }
.mtec-brand-logo img,
.mtec-brand .custom-logo {
  max-height: 44px;
  max-width: 210px;
}

.mtec-menu-toggle {
  display: inline-flex;
  width: 54px;
  height: 54px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.22);
  background: transparent;
  color: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.mtec-menu-toggle span {
  width: 25px;
  height: 2px;
  background: #fff;
  display: block;
  border-radius: 999px;
}

.mtec-search-trigger {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 31px;
  line-height: 1;
  background: #0759ec;
  border-left: 1px solid rgba(255,255,255,.18);
}

.mtec-menu-panel {
  display: none;
  padding: 12px 0 14px;
}
.mtec-header:focus-within .mtec-menu-panel,
.mtec-header:hover .mtec-menu-panel,
.mtec-menu-panel.is-open { display: block; }
.mtec-menu {
  justify-content: flex-start;
  gap: 10px 18px;
}
.mtec-menu a {
  color: #fff !important;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 12px;
}
.mtec-menu a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.2);
}

.mtec-main { padding-top: 0; }
.mtec-page--cluster { margin: 0; }
.mtec-content--cluster {
  width: min(100% - 30px, 1180px);
  margin: 34px auto 54px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.mtec-content--cluster > .wp-block-group:first-child { margin-top: 0; }

.mtec-content--cluster .mtec-cluster {
  --mtec-blue: #086dff;
  --mtec-blue-dark: #052e71;
  --mtec-green: #27d700;
  --mtec-cyan: #18c7ff;
  --mtec-ink: #092142;
  --mtec-muted: #53677f;
  --mtec-line: #dbe8f7;
  --mtec-soft: #eef6ff;
  color: var(--mtec-ink);
}

.mtec-content--cluster .mtec-cluster img {
  max-width: 100%;
  height: auto;
}

.mtec-content--cluster .mtec-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.78);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(233,245,255,.86));
  box-shadow: 0 22px 55px rgba(6, 67, 140, .16);
  padding: clamp(26px, 4vw, 52px);
}

.mtec-content--cluster .mtec-hero-card img,
.mtec-content--cluster .mtec-hero-card .wp-block-image img,
.mtec-content--cluster .mtec-cluster > .wp-block-image:first-child img {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(7, 28, 98, .13);
}

.mtec-content--cluster .mtec-hero-copy {
  max-width: 760px;
}
.mtec-content--cluster .mtec-kicker,
.mtec-content--cluster .mtec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mtec-blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mtec-content--cluster h1,
.mtec-content--cluster .mtec-hero-title {
  max-width: 900px;
  margin: 0 0 16px;
  color: var(--mtec-blue-dark);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.045em;
  text-transform: none;
}
.mtec-content--cluster h2 {
  margin: 0 0 18px;
  color: var(--mtec-blue-dark);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -.035em;
}
.mtec-content--cluster h3 {
  color: var(--mtec-blue-dark);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 900;
}
.mtec-content--cluster p,
.mtec-content--cluster li {
  color: #253b56;
  font-size: 16px;
  line-height: 1.72;
}

.mtec-content--cluster .mtec-section,
.mtec-content--cluster .mtec-verdict,
.mtec-content--cluster .mtec-faq {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--mtec-line);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(7, 28, 98, .07);
}
.mtec-content--cluster .mtec-verdict {
  border-top: 5px solid var(--mtec-green);
}

.mtec-content--cluster .mtec-grid,
.mtec-content--cluster .mtec-checkgrid,
.mtec-content--cluster .mtec-product-grid {
  display: grid;
  gap: 18px;
}
.mtec-content--cluster .mtec-grid,
.mtec-content--cluster .mtec-checkgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mtec-content--cluster .mtec-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mtec-content--cluster .mtec-card,
.mtec-content--cluster .mtec-checkitem,
.mtec-content--cluster .mtec-product-card {
  overflow: hidden;
  border: 1px solid var(--mtec-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 28, 98, .07);
}
.mtec-content--cluster .mtec-card,
.mtec-content--cluster .mtec-checkitem {
  padding: 20px;
}
.mtec-content--cluster .mtec-product-card {
  display: flex;
  flex-direction: column;
}
.mtec-content--cluster .mtec-product-card img,
.mtec-content--cluster .mtec-product-card .wp-post-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #edf5ff;
}
.mtec-content--cluster .mtec-product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.mtec-content--cluster .mtec-product-head,
.mtec-content--cluster .mtec-product-lines {
  display: grid;
  gap: 9px;
}
.mtec-content--cluster .mtec-product-line {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mtec-soft);
  color: #274058;
  font-size: 14px;
  line-height: 1.45;
}
.mtec-content--cluster .mtec-product-cta {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mtec-content--cluster a {
  color: var(--mtec-blue);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.mtec-content--cluster .mtec-actions,
.mtec-content--cluster .mtec-product-cta {
  margin-top: 18px;
}
.mtec-content--cluster .mtec-actions a,
.mtec-content--cluster .mtec-product-cta a,
.mtec-content--cluster a.mtec-btn,
.mtec-content--cluster .wp-block-button__link {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mtec-blue);
  color: #fff !important;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(8, 109, 255, .2);
}

.mtec-content--cluster .mtec-faq details,
.mtec-content--cluster details {
  border: 1px solid var(--mtec-line);
  border-radius: 16px;
  background: #fff;
  padding: 15px 17px;
  margin: 10px 0;
}
.mtec-content--cluster summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--mtec-blue-dark);
}

@media (max-width: 980px) {
  .mtec-content--cluster .mtec-grid,
  .mtec-content--cluster .mtec-checkgrid,
  .mtec-content--cluster .mtec-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MesaTEC standalone v0.4.7 - sketch hero colors, proof icons and rounded CTAs. */
.mtec-btn,
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 999px;
}

.mtec-header-search,
.mtec-header-search button,
.mtec-search-trigger,
.mtec-submenu-toggle,
.mtec-menu-toggle {
  border-radius: 999px;
}

.mtec-hero .mtec-device-card {
  z-index: 2;
}

.mtec-hero .mtec-device-card-1 {
  width: 52%;
  height: 63%;
  right: 10%;
  top: 18%;
}

.mtec-hero .mtec-device-card-2 {
  width: 34%;
  height: 36%;
  left: 3%;
  top: 31%;
}

.mtec-hero .mtec-device-card-3 {
  width: 29%;
  height: 26%;
  right: 1%;
  bottom: 2%;
}

.mtec-hero .mtec-device-card-4 {
  width: 27%;
  height: 24%;
  left: 28%;
  bottom: 3%;
}

@media (max-width: 760px) {
  .mtec-hero-orbit {
    inset: 2% 0 0;
    border-radius: 24px;
  }

  .mtec-hero-orbit span {
    min-width: 52px;
    min-height: 30px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .mtec-proof span {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .mtec-proof i {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 700px) {
  .mtec-appbar { grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .mtec-brand { font-size: 31px; }
  .mtec-search-trigger,
  .mtec-menu-toggle { width: 52px; height: 52px; }
  .mtec-content--cluster { width: calc(100% - 30px); margin-top: 34px; }
  .mtec-content--cluster .mtec-hero-card,
  .mtec-content--cluster .mtec-section,
  .mtec-content--cluster .mtec-verdict,
  .mtec-content--cluster .mtec-faq { border-radius: 18px; padding: 20px; }
  .mtec-content--cluster .mtec-grid,
  .mtec-content--cluster .mtec-checkgrid,
  .mtec-content--cluster .mtec-product-grid { grid-template-columns: 1fr; }
  .mtec-content--cluster h1,
  .mtec-content--cluster .mtec-hero-title { font-size: clamp(33px, 11vw, 46px); }
}

/* MesaTEC standalone v0.4.1 — cluster SEO/a11y fallback */
.mtec-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.mtec-content--cluster table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--mtec-line, #dbe8f7);
  border-radius: 18px;
  background: #fff;
}
.mtec-content--cluster th,
.mtec-content--cluster td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mtec-line, #dbe8f7);
  vertical-align: top;
  text-align: left;
}
.mtec-content--cluster tr:last-child th,
.mtec-content--cluster tr:last-child td { border-bottom: 0; }
.mtec-content--cluster th {
  width: 28%;
  color: var(--mtec-blue-dark, #052e71);
  font-weight: 950;
  background: #f2f8ff;
}
@media (max-width: 700px) {
  .mtec-content--cluster table,
  .mtec-content--cluster tbody,
  .mtec-content--cluster tr,
  .mtec-content--cluster th,
  .mtec-content--cluster td { display: block; width: 100%; }
  .mtec-content--cluster th { border-bottom: 0; padding-bottom: 4px; }
  .mtec-content--cluster td { padding-top: 4px; }
}

/* MesaTEC standalone v0.4.5 - sketch-style header, tablet-safe menu. */
.mtec-header {
  background: #fff;
  border-bottom: 1px solid #e7edf6;
  position: relative;
  z-index: 80;
}
.mtec-topbar {
  background: #f6f9fd;
  border-bottom: 1px solid #e8eef7;
}
.mtec-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 36px;
  padding: 7px 0;
  color: #65758a;
  font-size: 12px;
  font-weight: 800;
}
.mtec-topbar-note {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.mtec-topbar-note i {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #0460fb;
  clip-path: polygon(58% 0, 26% 43%, 54% 43%, 38% 100%, 78% 33%, 52% 33%);
  margin-right: 8px;
  flex: 0 0 auto;
}
.mtec-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.mtec-topbar-actions a {
  color: #1f3551 !important;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none !important;
}
.mtec-mode-toggle {
  width: 31px;
  height: 17px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #eaf2ff;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}
.mtec-mode-toggle span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0460fb;
  transform: translateX(12px);
}
.mtec-nav {
  min-height: 82px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
}
.mtec-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  color: #0d1b2a !important;
  font-weight: 950;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  flex: 0 0 auto;
  min-width: max-content;
}
.mtec-brand b { color: #0460fb; }
.mtec-brand small { display: none; }
.mtec-brand-logo .custom-logo-link {
  display: block;
  line-height: 0;
}
.mtec-brand img,
.mtec-brand-logo img,
.mtec-brand .custom-logo,
.mtec-brand-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 175px;
  max-height: 46px;
  object-fit: contain;
}
.mtec-brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid #0460fb;
  background: #eef5ff;
}
.mtec-nav-main {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.mtec-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 16px);
  width: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  background: transparent;
  border: 0;
}
.mtec-menu > li { position: relative; }
.mtec-menu a,
.mtec-submenu-toggle {
  color: #0d1b2a !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  background: transparent;
  border: 0;
  padding: 28px 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.mtec-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e3ebf6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(13,27,42,.05);
  cursor: pointer;
}
.mtec-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0460fb;
  border-radius: 999px;
}
.mtec-menu > li:first-child > a,
.mtec-menu a:hover,
.mtec-submenu-toggle:hover,
.mtec-has-submenu.is-open > .mtec-submenu-toggle {
  color: #0460fb !important;
}
.mtec-menu > li:first-child > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #0460fb;
}
.mtec-submenu-toggle::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.mtec-menu .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 4px;
  min-width: min(500px, calc(100vw - 32px));
  max-width: min(600px, calc(100vw - 32px));
  margin: 0;
  padding: 12px;
  list-style: none;
  background: #fff;
  border: 1px solid #dde7f5;
  border-radius: 10px;
  box-shadow: 0 22px 52px rgba(13,27,42,.16);
  transform: translateX(-50%);
}
.mtec-menu li:hover > .sub-menu,
.mtec-menu li:focus-within > .sub-menu,
.mtec-menu li.is-open > .sub-menu {
  display: grid;
}
.mtec-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  line-height: 1.25;
  white-space: normal;
  border-radius: 6px;
  text-transform: none;
}
.mtec-menu .sub-menu a:hover { background: #f4f8ff; }
.mtec-menu .sub-menu span {
  display: block;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.mtec-menu .sub-menu small {
  display: block;
  margin-top: 3px;
  color: #5b6a7f;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}
.mtec-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.mtec-header-search input {
  width: 0;
  min-width: 0;
  opacity: 0;
  border: 1px solid #dde7f5;
  border-radius: 6px;
  padding: 10px 0;
  transition: width .18s ease, opacity .18s ease, padding .18s ease;
}
.mtec-header-search:focus-within input {
  width: 180px;
  opacity: 1;
  padding: 10px 12px;
}
.mtec-header-search button {
  width: 48px;
  height: 48px;
  border: 1px solid #e3ebf6;
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13,27,42,.05);
}
.mtec-header-search button span {
  width: 15px;
  height: 15px;
  border: 3px solid #0460fb;
  border-radius: 50%;
  position: relative;
  display: block;
}
.mtec-header-search button span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 3px;
  background: #0460fb;
  right: -7px;
  bottom: -4px;
  transform: rotate(45deg);
}
@media (max-width: 1100px) {
  .mtec-nav { gap: 16px; }
  .mtec-menu { gap: 10px; }
  .mtec-menu a,
  .mtec-submenu-toggle { font-size: 10px; }
  .mtec-header-search:focus-within input { width: 140px; }
}
@media (max-width: 980px) {
  .mtec-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .mtec-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .mtec-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .mtec-brand { flex: 1 1 auto; }
  .mtec-brand img,
  .mtec-brand-logo img,
  .mtec-brand .custom-logo,
  .mtec-brand-logo .custom-logo {
    max-width: 150px;
    max-height: 42px;
  }
  .mtec-nav-main { display: contents; }
  .mtec-menu-toggle {
    display: inline-flex;
    order: 1;
  }
  .mtec-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    order: 10;
    width: 100%;
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px solid #edf3fb;
  }
  .mtec-menu.is-open { display: flex; }
  .mtec-menu a,
  .mtec-submenu-toggle {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: left;
    font-size: 12px;
  }
  .mtec-menu > li { width: 100%; }
  .mtec-menu > li:first-child > a::after { display: none; }
  .mtec-menu .sub-menu,
  .mtec-menu li:hover > .sub-menu,
  .mtec-menu li:focus-within > .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    max-width: none;
    width: 100%;
    transform: none;
    box-shadow: none;
    border-radius: 8px;
    grid-template-columns: 1fr;
    margin: 4px 0 6px;
  }
  .mtec-menu li.is-open > .sub-menu { display: grid; }
  .mtec-header-search {
    order: 2;
    width: 100%;
  }
  .mtec-header-search input,
  .mtec-header-search:focus-within input {
    flex: 1 1 auto;
    width: auto;
    opacity: 1;
    padding: 10px 12px;
  }
  .mtec-header-search button {
    width: 46px;
    height: 44px;
  }
}

/* Final v0.4.7 override: keep rounded buttons after legacy header rules. */
.mtec-btn,
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
input[type="button"],
.mtec-header-search,
.mtec-header-search button,
.mtec-search-trigger,
.mtec-submenu-toggle,
.mtec-menu-toggle {
  border-radius: 999px;
}

/* MesaTEC Game Gear category compact cards v0.4.20 */
body.category-game-gear .mtec-archive .mtec-card-grid,
body.category-game-gear-reparacion .mtec-archive .mtec-card-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

body.category-game-gear .mtec-archive .mtec-card,
body.category-game-gear-reparacion .mtec-archive .mtec-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 8px 18px rgba(13,27,42,.045);
}

body.category-game-gear .mtec-archive .mtec-card-media,
body.category-game-gear-reparacion .mtec-archive .mtec-card-media {
  min-height: 0;
}

body.category-game-gear .mtec-archive .mtec-card-media img,
body.category-game-gear-reparacion .mtec-archive .mtec-card-media img,
body.category-game-gear .mtec-archive .mtec-card-fallback,
body.category-game-gear-reparacion .mtec-archive .mtec-card-fallback {
  height: auto;
  min-height: 0;
  aspect-ratio: 16/9;
}

body.category-game-gear .mtec-archive .mtec-pill,
body.category-game-gear-reparacion .mtec-archive .mtec-pill {
  left: 6px;
  top: 6px;
  padding: 4px 6px;
  font-size: 8px;
}

body.category-game-gear .mtec-archive .mtec-card-body,
body.category-game-gear-reparacion .mtec-archive .mtec-card-body {
  padding: 10px 11px 12px;
}

body.category-game-gear .mtec-archive .mtec-card h3,
body.category-game-gear-reparacion .mtec-archive .mtec-card h3 {
  min-height: 0;
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.category-game-gear .mtec-archive .mtec-card p,
body.category-game-gear-reparacion .mtec-archive .mtec-card p {
  font-size: 10.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  body.category-game-gear .mtec-archive .mtec-card-grid,
  body.category-game-gear-reparacion .mtec-archive .mtec-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.category-game-gear .mtec-archive .mtec-card-grid,
  body.category-game-gear-reparacion .mtec-archive .mtec-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
