/* Shared safeguards for the custom templates, loaded after their page styles. */
.tc-home .tc-wrap > *,
.tc-home [class$="-grid"] > *,
.tc-service-detail > *,
.tc-contact-preparation li > div,
.tc-company-service-list article > div {
  min-width: 0;
}
.tc-home h1,
.tc-home h2,
.tc-home h3 {
  overflow-wrap: break-word;
}
.tc-home .tc-button {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  text-align: center;
}
.tc-home .tc-button .tc-icon {
  flex-shrink: 0;
}
.tc-home :where(p, li, a) {
  overflow-wrap: break-word;
}
.tc-home :where(iframe, video, table) {
  max-width: 100%;
}
.tc-company-editor-content img,
.tc-services-editor img,
.tc-contact-extra img {
  height: auto;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tc-home .tc-wrap {
    width: calc(100% - 48px);
  }
  .tc-company-section,
  .tc-services-catalog,
  .tc-services-faq,
  .tc-contact-channels,
  .tc-contact-guide,
  .tc-contact-location {
    padding-block: 64px;
  }
  .tc-service-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tc-service-nav a {
    padding: 18px 12px;
  }
  .tc-home .tc-steps {
    gap: 16px;
  }
  .tc-home .tc-steps li:not(:last-child)::after {
    right: -17px;
    width: 16px;
  }
}
@media (min-width: 768px) and (max-width: 900px) {
  .tc-company-story,
  .tc-company-expertise,
  .tc-services-hero-grid,
  .tc-services-faq-grid,
  .tc-contact-hero-grid,
  .tc-contact-guide-grid,
  .tc-contact-location-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .tc-company-photo > img {
    height: 400px;
  }
  .tc-services-hero-photo {
    margin-top: 0;
  }
  .tc-services-hero-photo > img,
  .tc-contact-hero-photo > img {
    height: 360px;
  }
  .tc-company-value-grid {
    gap: 16px;
  }
  .tc-company-value {
    padding: 22px;
  }
  .tc-service-detail-copy {
    padding: 24px;
  }
}
@media (max-width: 767px) {
  .tc-home .tc-wrap {
    width: calc(100% - 36px);
  }
  .tc-home h2 {
    font-size: clamp(24px, 5.6vw, 30px);
    line-height: 1.3;
  }
  .tc-home .tc-centered {
    margin-bottom: 28px;
  }
  .tc-home .tc-contact h2 {
    font-size: clamp(23px, 5.4vw, 28px);
  }
  .tc-home .tc-service-detail {
    scroll-margin-top: 88px;
  }
  .tc-contact-page .tc-contact-channel a {
    min-height: 44px;
  }
  .tc-company-photo > span {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .tc-company-value-grid {
    gap: 18px;
  }
  .tc-company-value {
    padding: 24px;
  }
  .tc-services-page .tc-service-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .tc-services-page .tc-service-nav a,
  .tc-services-page .tc-service-nav a:last-child {
    justify-content: flex-start;
  }
  .tc-home .tc-stats > div {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .tc-home .tc-stats > div > div {
    min-width: 0;
  }
  .tc-home .tc-phone,
  .tc-home .tc-zalo {
    padding-inline: 16px;
    gap: 12px;
  }
  .tc-home .tc-phone strong,
  .tc-home .tc-zalo strong {
    font-size: 21px;
    overflow-wrap: anywhere;
  }
  .tc-contact-preparation li {
    padding: 18px 16px;
  }
  .tc-contact-location .tc-button {
    width: 100%;
  }
}
