/* Final responsive layer: loaded after page-specific styles. */
html { overflow-x: hidden; }
body { min-width: 0; }
img, video, iframe { max-width: 100%; }
.wrap, .hdr-in, .hero-in, .cta-box-in { min-width: 0; }
.btn { max-width: 100%; white-space: normal; text-align: center; }
.cta-row .btn {
  justify-content: center !important;
  text-align: center !important;
}
.cta-row .btn svg { flex: 0 0 auto; }

/* Center the content of advantage and procedure cards. */
.adv-c,
.proc-s {
  text-align: center;
}

.adv-c .adv-ic,
.proc-s .proc-n {
  margin-left: auto;
  margin-right: auto;
}

.adv-c h3,
.adv-c p,
.proc-s h3,
.proc-s p {
  margin-left: auto;
  margin-right: auto;
}

/* Center the home services section and its cards. */
.svc-g + *,
.sec .tc {
  text-align: center;
}

.svc-c {
  align-items: center;
  text-align: center;
}

.svc-c .svc-ic {
  margin-left: auto;
  margin-right: auto;
}

.svc-c .svc-lnk {
  justify-content: center;
}

@media (min-width: 900px) {
  .adv-g,
  .proc-g {
    align-items: stretch !important;
  }

  .adv-c,
  .proc-s {
    height: 100%;
  }

  .proc-arr {
    align-self: center;
    padding-top: 0 !important;
  }
}

@media (max-width: 1199px) {
  .wrap { max-width: 100%; padding-inline: 28px; }
  .hero-in { gap: 44px; }
  .svc-row, .ab-row, .con-row { gap: 40px; }
  .ftr-g { gap: 30px; }
}

@media (max-width: 899px) {
  .wrap { padding-inline: 20px; }
  .sec { padding-block: 64px; }

  .hdr { padding-block: 10px; }
  .hdr-in { gap: 10px; }
  .hdr-in .logo { order: -2; margin-right: 0; }
  .hdr-in .lang-switcher { order: -1; margin-right: auto; }
  .mobile-phone { display: inline-flex; flex: 0 0 40px; }
  .brg { display: flex; flex: 0 0 36px; }
  .nav, .hdr-btns { display: none; }
  .nav.op {
    display: flex !important;
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 88px);
    padding: 10px;
    gap: 4px;
    border: 1px solid rgba(11, 31, 58, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 50px rgba(11, 31, 58, .18);
    overflow-y: auto;
  }

  .nav.op a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    transition: background .2s, color .2s, transform .2s;
  }

  .nav.op a:hover {
    background: rgba(11, 31, 58, .05);
    transform: translateX(2px);
  }

  .nav.op a.act {
    background: rgba(255, 122, 0, .1);
    color: var(--accent);
  }

  .nav.op a.act::after,
  .nav.op::after {
    display: none;
  }

  .hero { padding: 112px 0 66px; }
  .hero-in, .ab-row, .svc-row, .svc-row.rev, .con-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }
  .svc-row.rev { direction: ltr !important; }
  .hv { display: none; }
  .hero-h1 { max-width: 720px; }
  .hero-p { max-width: 660px; }

  .tbar-in, .svc-g, .adv-g, .val-g, .rev-g {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .proc-g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; }
  .proc-arr { display: none !important; }
  .cert-g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ftr-g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px 28px; }

  .svc-block { padding: 30px !important; }
  .svc-visual { height: min(360px, 55vw) !important; }
  .price-box { min-width: 0 !important; width: 100%; }
  .map-box { height: 360px !important; }

  .cta-box { padding: 58px 34px !important; }
  .cta-row .btn { min-height: 54px; }
}

@media (max-width: 599px) {
  .wrap { padding-inline: 16px; }
  .sec { padding-block: 48px; }
  .ph { padding: 94px 0 42px; }
  .ph .h1 { font-size: clamp(30px, 10vw, 42px); overflow-wrap: anywhere; }
  .ph .sub { font-size: 15px; }

  .hdr-in { gap: 8px; }
  .hdr-in .logo img { width: 64px; height: 40px !important; object-fit: cover; margin-right: 0 !important; }
  .lang-switcher { transform: scale(.94); transform-origin: left center; }
  .nav.op { top: 68px; left: 8px; right: 8px; }

  .hero { padding: 104px 0 52px; }
  .hero-h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-p { font-size: 16px; line-height: 1.65; }
  .hero-cta { align-items: stretch !important; width: 100%; }
  .hero-cta .btn { width: 100% !important; min-height: 58px; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .hero-stats .hs-div { display: none; }
  .hero-stats .hs-item { min-width: 0; text-align: center; }
  .hero-stats .hs-n { font-size: clamp(20px, 7vw, 28px); }
  .hero-stats .hs-l { font-size: 10px; overflow-wrap: anywhere; }
  .hero-efficiency { width: 100%; }

  .tbar-in, .svc-g, .adv-g, .val-g, .rev-g, .proc-g, .cert-g, .ftr-g {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .tbar-in,
  .tbar-g { gap: 22px; }

  .tbar .ti {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .tbar .ti > div:last-child {
    width: 100%;
    text-align: center;
  }

  .tbar .ti-ic {
    margin-inline: auto;
  }

  .tbar .ti-n,
  .tbar .ti-s {
    text-align: center;
  }
  .svc-c, .adv-c, .val-c, .proc-s, .rev-c { padding: 22px !important; }
  .rev-c {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .rev-c img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 360px;
    object-fit: contain !important;
    margin: 0 auto 16px !important;
  }
  .rev-stars {
    width: 100%;
    margin-bottom: 14px !important;
    text-align: center;
  }
  .rev-au {
    width: 100%;
    justify-content: center;
    text-align: left;
  }

  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .ab-stat { padding: 16px 10px !important; }
  .photo-img, .ab-hero-img { height: min(470px, 112vw) !important; }
  .tl-item { gap: 12px !important; align-items: flex-start; }
  .tl-year { min-width: 74px !important; font-size: 13px !important; }

  .svc-block { padding: 22px 16px !important; }
  .svc-info { padding: 0 !important; }
  .svc-visual { height: 250px !important; }
  .price-box { padding: 18px !important; flex-direction: column; align-items: stretch !important; gap: 16px; }
  .price-box .btn { width: 100%; }
  .faq-btn { gap: 14px; text-align: left; }

  .con-card { padding: 18px 16px !important; }
  .con-val { overflow-wrap: anywhere; }
  .map-box { height: 300px !important; }

  .cta-box { padding: 46px 18px !important; border-radius: 18px !important; }
  .cta-ttl { font-size: clamp(30px, 10vw, 40px); }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn, .services-cta-actions .btn {
    width: min(100%, 320px) !important;
    min-height: 56px;
    justify-content: center !important;
    text-align: center !important;
  }

  .cta-row .btn svg {
    flex: 0 0 auto;
  }

  .ftr { padding-bottom: 48px; }
  .ftr-bot { align-items: flex-start; gap: 12px; }
  .mobile-contact-bar { display: none !important; }
}

@media (max-width: 374px) {
  .hdr-in { gap: 5px; }
  .hdr-in .logo img { width: 52px; }
  .lang-switcher { transform: scale(.84); }
  .mobile-phone { width: 36px; height: 36px; flex-basis: 36px; }
  .brg { padding-inline: 4px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats .hs-item { padding-block: 4px; }
  .ab-stats { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
