/* Sitewide device-adaptive layout — load last */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  overflow-x: clip !important;
  max-width: 100%;
}

img,
video,
svg,
iframe {
  max-width: 100%;
}

.container-site {
  width: 100% !important;
  max-width: min(100%, var(--container, 1180px)) !important;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px), min(4vw, 2.25rem)) !important;
  box-sizing: border-box !important;
}

h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

input,
select,
textarea,
.form-control,
.form-select {
  max-width: 100%;
  font-size: 16px !important;
}

.site-footer {
  padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
}

.whatsapp-fab {
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1199.98px) {
  .container-site {
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) !important;
  }

  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  .page-hero,
  .sv-hero,
  body.page-service .page-hero.sd-hero,
  body.page-why .page-hero,
  body.page-process .page-hero {
    min-height: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .hero-layout,
  .split,
  .contact-grid,
  .cta-panel,
  .process-head,
  .feature-grid,
  .sv-intro-grid,
  .why-hero-layout,
  .why-partner,
  .rk-spot-board {
    grid-template-columns: 1fr !important;
  }

  .rk-hero-meta,
  .sv-hero-meta {
    grid-template-columns: 1fr !important;
  }

  .page-hero,
  .sv-hero,
  body.page-service .page-hero.sd-hero {
    padding-top: 4.75rem !important;
    padding-bottom: 2.25rem !important;
  }

  .section,
  .faq-section {
    padding-block: 3.5rem !important;
  }

  .contact-card,
  .contact-form,
  .form-card {
    padding: 1.35rem !important;
  }

  .rk-cta-panel,
  .cta-panel,
  .sd-cta,
  .pr-cta,
  .why-cta {
    flex-direction: column;
    align-items: stretch !important;
    padding: 1.5rem 1.2rem !important;
  }

  .cta-actions,
  .rk-cta-actions,
  .hero-actions,
  .sd-hero-actions,
  .sv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cta-actions .btn,
  .rk-cta-actions .rk-btn,
  .hero-actions .btn,
  .sv-btn {
    min-height: 48px;
  }
}

@media (max-width: 767.98px) {
  .trust-panel,
  .service-grid,
  .why-grid,
  .brand-grid,
  .vm-grid,
  .stats-strip,
  .process-interactive-grid,
  .rk-why-grid,
  .rk-service-index,
  .rk-steps,
  .pr-track,
  .pr-grid,
  .why-bento,
  .why-checks {
    grid-template-columns: 1fr !important;
  }

  .page-hero h1,
  .sv-hero h1,
  .section-title {
    max-width: none !important;
    font-size: clamp(1.7rem, 8vw, 2.4rem) !important;
  }

  .hero-actions,
  .cta-actions,
  .rk-cta-actions,
  .sv-hero-actions,
  .rk-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-light-soft,
  .cta-actions .btn,
  .cta-actions .btn-light-soft,
  .rk-cta-actions .rk-btn,
  .rk-hero-btn,
  .sv-btn,
  .btn-quote {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .rk-about-photos {
    display: grid;
    gap: 0.75rem;
    min-height: 0 !important;
  }

  .rk-about-img-1,
  .rk-about-img-2 {
    width: 100% !important;
    height: min(42vw, 220px) !important;
    position: relative !important;
    inset: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .rk-faq-img {
    height: min(48vw, 260px) !important;
  }

  .rk-spot-stage {
    position: relative !important;
    height: min(52vw, 240px) !important;
    min-height: 180px !important;
    max-height: 240px !important;
  }

  .rk-industry-grid span {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .site-nav .brand-logo {
    height: 32px !important;
    max-width: 72px !important;
  }

  .rk-heading h2 {
    font-size: clamp(1.45rem, 7.2vw, 1.85rem) !important;
  }

  .rk-service-thumb {
    height: 200px !important;
  }

  .rk-service-index a {
    min-height: 44px;
  }

  .contact-item {
    align-items: flex-start;
  }
}

@media (max-width: 359.98px) {
  .container-site {
    padding-inline: 0.85rem !important;
  }

  body.home-amzi.home-runok .hero.hero-amzi.hero-runok h1.rk-title {
    font-size: 1.45rem !important;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero,
  .page-hero,
  .sv-hero,
  body.home-amzi.home-runok .hero.hero-amzi.hero-runok {
    min-height: auto !important;
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .fx-cursor,
  .scroll-rail {
    display: none !important;
  }

  body.has-fx-cursor,
  body.has-fx-cursor * {
    cursor: auto !important;
  }
}

@media (min-width: 992px) {
  body.home-amzi.home-runok .hero.hero-amzi.hero-runok h1.rk-title span,
  body.home-amzi.home-runok .hero.hero-amzi.hero-runok h1.rk-title .rk-title-sub {
    white-space: nowrap;
  }
}
