body.page-id-47 .entry-header,
body.home .entry-header {
  display: none !important;
}

body.page-id-47 .entry-content,
body.home .entry-content {
  margin-top: 0;
}

.tmd-home,
.tmd-home * {
  box-sizing: border-box;
}

.tmd-home {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #3c3c3c;
  background: #fff;
}

.tmd-home a {
  text-decoration: none;
}

.tmd-home-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.tmd-home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(18,140,235,.22), transparent 34%),
    linear-gradient(135deg, #262e4f 0%, #1a2240 100%);
  color: #fff;
  padding: 86px 0 72px;
}

.tmd-home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.tmd-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffc33c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
}

.tmd-home-title {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 800;
}

.tmd-home-lead {
  margin: 22px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.65;
  max-width: 620px;
}

.tmd-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.tmd-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 15px;
  transition: .2s ease;
}

.tmd-home-btn-primary {
  background: #ffc33c;
  color: #262e4f;
}

.tmd-home-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.tmd-home-btn-secondary {
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
}

.tmd-home-btn-secondary:hover {
  background: #fff;
  color: #128ceb;
}

.tmd-home-hero-card {
  position: relative;
  min-height: 390px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)),
    linear-gradient(135deg, rgba(18,140,235,.45), rgba(255,195,60,.18));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  padding: 28px;
  display: flex;
  align-items: flex-end;
}

.tmd-home-hero-card::before {
  content: '';
  position: absolute;
  inset: 34px 28px 84px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,195,60,.5), transparent 24%),
    radial-gradient(circle at 74% 58%, rgba(18,140,235,.55), transparent 30%),
    rgba(255,255,255,.08);
}

.tmd-home-hero-card-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(26,34,64,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.tmd-home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tmd-home-stat strong {
  display: block;
  color: #ffc33c;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.tmd-home-stat span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.35;
}

.tmd-home-trust {
  background: #fff;
  box-shadow: 0 18px 50px rgba(38,46,79,.08);
  position: relative;
  z-index: 2;
}

.tmd-home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tmd-home-trust-item {
  padding: 26px 28px;
  border-right: 1px solid #e8ecf2;
}

.tmd-home-trust-item:last-child {
  border-right: 0;
}

.tmd-home-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(18,140,235,.1);
  display: grid;
  place-items: center;
  color: #128ceb;
  font-size: 22px;
  margin-bottom: 12px;
}

.tmd-home-trust-item strong {
  display: block;
  color: #262e4f;
  font-size: 16px;
  margin-bottom: 5px;
}

.tmd-home-trust-item span {
  color: #5e748b;
  font-size: 14px;
  line-height: 1.45;
}

.tmd-home-section {
  padding: 78px 0;
}

.tmd-home-section-soft {
  background: #f5f7fa;
}

.tmd-home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

.tmd-home-eyebrow {
  color: #128ceb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 10px;
}

.tmd-home-section-title {
  color: #262e4f;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 800;
}

.tmd-home-section-text {
  color: #5e748b;
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin: 12px 0 0;
}

.tmd-home-link {
  color: #128ceb;
  font-weight: 800;
  font-size: 14px;
}

.tmd-home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tmd-home-category {
  min-height: 210px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8ecf2;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(38,46,79,.06);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tmd-home-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(18,140,235,.12);
}

.tmd-home-category-visual {
  height: 82px;
  border-radius: 14px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 22% 25%, rgba(255,195,60,.5), transparent 30%),
    radial-gradient(circle at 80% 68%, rgba(18,140,235,.35), transparent 36%),
    #eef3f9;
}

.tmd-home-category h3 {
  color: #262e4f;
  font-size: 17px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.tmd-home-category p {
  color: #5e748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.tmd-home-featured-wrap {
  margin-top: 24px;
}

.tmd-home-energy-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.tmd-home-energy-panel {
  border-radius: 22px;
  background: #262e4f;
  color: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tmd-home-energy-panel h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.tmd-home-energy-panel p {
  color: rgba(255,255,255,.76);
  line-height: 1.65;
  margin: 16px 0 0;
}

.tmd-home-energy-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tmd-home-energy-card,
.tmd-home-service-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(38,46,79,.06);
}

.tmd-home-energy-card h3,
.tmd-home-service-card h3 {
  color: #262e4f;
  margin: 0 0 10px;
  font-size: 20px;
}

.tmd-home-energy-card p,
.tmd-home-service-card p {
  color: #5e748b;
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 14px;
}

.tmd-home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tmd-home-final-cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,195,60,.28), transparent 28%),
    linear-gradient(135deg, #128ceb, #262e4f);
  color: #fff;
  border-radius: 26px;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.tmd-home-final-cta h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  margin: 0;
  line-height: 1.12;
}

.tmd-home-final-cta p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
}

@media (max-width: 980px) {
  .tmd-home-hero-grid,
  .tmd-home-energy-grid {
    grid-template-columns: 1fr;
  }

  .tmd-home-category-grid,
  .tmd-home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tmd-home-section-head,
  .tmd-home-final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tmd-home-trust-grid {
    grid-template-columns: 1fr;
  }

  .tmd-home-trust-item {
    border-right: 0;
    border-bottom: 1px solid #e8ecf2;
  }
}

@media (max-width: 640px) {
  .tmd-home-hero {
    padding: 60px 0 48px;
  }

  .tmd-home-category-grid,
  .tmd-home-energy-cards,
  .tmd-home-services-grid,
  .tmd-home-stats {
    grid-template-columns: 1fr;
  }

  .tmd-home-section {
    padding: 56px 0;
  }

  .tmd-home-final-cta {
    padding: 30px;
  }
}
