.wrap,
.page-hero-grid,
.page-hero-grid > *,
.hero-grid > *,
.three-col .cell,
.news-item-row,
.news-item-row .title,
.contact-grid > *,
.audit-grid > * {
  min-width: 0;
}

.page-sub,
.news-item-row .title h4,
.news-item-row .title p,
.contact-info .block,
.step-card p {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {

  .hero-title[style],
  .page-title[style],
  .page-sub[style],
  .rhs[style] {
    width: auto !important;
    max-width: 100% !important;
  }

  .crumbs {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

@media (max-width: 640px) {
  .news-item-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta  arrow"
      "title title";
    gap: 8px 12px;
    padding: 18px 16px;
  }
  .news-item-row .date { grid-area: meta; }
  .news-item-row .cat {
    grid-area: meta;
    justify-self: start;
    margin-left: 92px;
  }
  .news-item-row .title { grid-area: title; }
  .news-item-row .arrow { grid-area: arrow; align-self: start; }
}

@media (pointer: coarse) {
  .nav-hamburger {
    width: 44px;
    height: 44px;
  }
  .nav-drawer-close {
    width: 44px;
    height: 44px;
  }
  .nav-drawer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-drawer-meta button {
    min-height: 44px;
  }
  .mobile-cta .btn {
    min-height: 48px;
  }
  .contact-form button[type="submit"],
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .bullet-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

@media (max-width: 900px) {
  .compare {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare thead,
  .compare tbody {
    display: table;
    width: max-content;
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-cta,
  .hero-cta,
  .cta-actions,
  .contact-office .btn-row,
  .section-head {
    flex-wrap: wrap;
  }
  .page-cta .btn,
  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .hero-title,
  .page-title,
  .section-title,
  .cta h2,
  .wpt-title {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 860px) {
  .contact-grid,
  .audit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wpt-board,
  .dash-chrome-bar {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .pagination {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

html.samurai > body > .nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
}

html.samurai > body > .mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

.nav-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html.samurai[data-theme="light"] .nav-drawer-head img {
  content: url("/assets/samurai/logo-samurai-light.webp");
  filter: none;
}

@media (max-width: 480px) {
  .ticker .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ticker-inner { gap: 8px; }
  .ticker-left .ticker-pill {
    padding: 3px 6px;
    white-space: nowrap;
  }
  .ticker-right a { white-space: nowrap; }
  .ticker-right a .dim { display: none; }
}

@media (max-width: 359px) {
  .ticker-inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
    padding: 5px 0;
  }
}

@media (max-width: 400px) {
  html.samurai .hero-meta { gap: 26px; }
  html.samurai .hero-meta > div { min-width: 0; }
  html.samurai .hero-meta > div + div::before { left: -13px; }
}

@media (pointer: coarse) {
  nav.top .logo,
  .nav-drawer-head > a {
    position: relative;
  }
  nav.top .logo::after,
  .nav-drawer-head > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }
}

@media (pointer: coarse) {
  .wpt-nav a { min-height: 44px; }
}

.mobile-cta .cta-icon {
  flex: 0 0 auto;
  width: 46px;
  padding: 0;
}
.mobile-cta .cta-icon svg { display: block; }
.mobile-cta .cta-main { flex: 1 1 auto; }

.mobile-cta .cta-wa {
  color: #25D366;
  border-color: color-mix(in oklab, #25D366 45%, var(--line));
}

.drawer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2.2vw, 10px);
  margin-bottom: 8px;
}
.drawer-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  width: clamp(44px, 12.4vw, 48px);
  height: clamp(44px, 12.4vw, 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.drawer-contact a svg {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--ink-3);
  flex: none;
}

.drawer-contact a[href*="wa.me"] svg,
.drawer-contact a[href*="whatsapp"] svg { color: #25D366; }
.drawer-contact a[href*="m.me"] svg,
.drawer-contact a[href*="messenger"] svg { color: #0084FF; }
.drawer-contact a[href*="instagram"] svg { color: #E1306C; }
.drawer-contact a:active { background: var(--line-2); }

.drawer-contact a > span + span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: none) and (pointer: coarse) {
  .pcards-slider .pcards {
    scroll-snap-type: x mandatory;

    margin-left: -16px;
    margin-right: -16px;
    padding-left: 22px;
    padding-right: 22px;
    scroll-padding-left: 22px;
  }
}

.pcards-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.pcards-count {
  font-size: 11.5px;
  color: var(--mute);
  margin-right: 6px;
}
.pcards-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: background .18s ease, width .18s ease;
}

.pcards-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}
.pcards-dot.on {
  width: 22px;
  background: var(--brand);
}

.mock-peek {
  max-height: 260px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
.mock-peek.mock-open {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.mock-toggle {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
}

@media (hover: none) and (pointer: coarse) {
  .dash-body a,
  .dash-body button,
  .wpt-dash a,
  .wpt-dash button {
    pointer-events: none;
  }
}

.nav-drawer-group > summary {
  list-style: none;
  cursor: pointer;
}
.nav-drawer-group > summary::-webkit-details-marker { display: none; }
.nav-drawer-group > summary .arr.grp {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transition: transform .18s ease;
}
.nav-drawer-group[open] > summary .arr.grp {
  color: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 45%, var(--line));
}
.nav-drawer-link.sub {
  padding-left: 26px;
  font-size: 14px;
  position: relative;
}
.nav-drawer-link.sub::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--line);
}

.nav-drawer-body {
  padding-top: 12px;
  gap: 2px;
}
.nav-drawer-link {
  padding-top: 10px;
  padding-bottom: 10px;
}

.cta-mid {
  padding: 22px 0;
}
.cta-mid .cta-inner {
  display: flex;
  gap: 10px;
}
.cta-mid .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.cta-mid .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 46px;
}

.legal-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
}
.legal-fold > summary::-webkit-details-marker { display: none; }
.legal-fold > summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--mute);
  border-bottom: 1.6px solid var(--mute);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
  flex: none;
}
.legal-fold[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--brand);
}
.legal-fold > summary > * { margin: 0; }
.legal-fold-body { padding-bottom: 6px; }

.grid-folded { display: none !important; }
.grid-more {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
}

.nav-drawer-group > summary .arr.grp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
}
.nav-drawer-group > summary .arr.grp .chev {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}
.nav-drawer-group[open] > summary .arr.grp .chev { transform: rotate(180deg); }

@media (hover: none) and (pointer: coarse) {
  .foot-grid { gap: 0; }
  .foot-brand { margin-bottom: 20px; }
}

.foot-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-top: 1px solid var(--line);
}
.foot-fold > summary::-webkit-details-marker { display: none; }
.foot-fold > summary h5 { margin: 0; }
.foot-fold > summary::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--mute);
  border-bottom: 1.6px solid var(--mute);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
  flex: none;
}
.foot-fold[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--brand);
}
.foot-fold-body { padding: 2px 0 10px; }
.foot-fold-body a { padding: 8px 0; }

@media (hover: none) and (pointer: coarse) {
  .pcards:not(.pcards-5) {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 16px 22px 4px;
    margin: -16px -16px 0;
    scroll-padding-left: 22px;
  }
  .pcards:not(.pcards-5)::-webkit-scrollbar { display: none; }

  .pcards:not(.pcards-5) .pcard:nth-child(3) { display: flex; }
  .pcards:not(.pcards-5) > .pcard {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 2 * 16px) / 2.4);
    min-width: 0;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 640px) {
  .pcards:not(.pcards-5) > .pcard { flex-basis: 78%; }
}

.nav-drawer-body { gap: 0; }

.nav-drawer-link {
  position: relative;
  padding-top: 11px;
  padding-bottom: 11px;
}
.nav-drawer-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.nav-drawer-body > *:last-child::after,
.nav-drawer-body > *:last-child .nav-drawer-link:last-of-type::after,
.nav-drawer-link:has(+ .nav-drawer-section)::after,
.nav-drawer-group:has(+ .nav-drawer-section) .nav-drawer-link:last-of-type::after,
.nav-drawer-group:not([open]) > summary::after {
  display: none;
}

.nav-drawer-section { padding: 14px 16px 4px; }

.nav-drawer-link.sub::after { left: 26px; }

.home-prices { display: none; }

@media (max-width: 900px) {
  .home-prices { display: block; }
  .home-price-group + .home-price-group { margin-top: 26px; }
  .home-price-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mute);
    margin-bottom: 10px;
  }
  .home-price-all {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 44px;
    margin-top: 14px;
  }

  #wordpress .wpt-dash,
  #wordpress .wpt-dash + .mock-toggle {
    display: none;
  }

  .infra-grid > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .infra-grid .uptime-big,
  .infra-grid .infra-meta > div {
    margin: 0;
    padding: 14px;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-2);
  }
  .infra-grid .infra-meta {
    display: contents;
  }
  .infra-grid .uptime-big .n { font-size: 30px; line-height: 1.05; }
  .infra-grid .infra-meta .n { font-size: 20px; line-height: 1.1; }
  .infra-grid .uptime-big .l,
  .infra-grid .infra-meta .l {
    font-size: 11.5px;
    margin-top: 4px;
    overflow-wrap: anywhere;
  }
  .infra-grid .infra-panel { grid-column: 1 / -1; }
}

@media (max-width: 900px) {

  .panel-head > .mono { display: none; }

  .tlds {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .tlds::-webkit-scrollbar { display: none; }
  .tld-chip { flex: 0 0 auto; }

  .strip-inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .strip-label { flex: 0 0 auto; }

  .cta-cmd {

    max-width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 11px;
  }
  .cta-cmd::-webkit-scrollbar { display: none; }
  .cta-cmd > * { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 1209px) {
  body { padding-bottom: 60px; }
  html.samurai > body > footer { padding-bottom: 0; }
  .foot-bottom { margin-top: 32px; padding-bottom: 12px; }
}

@media (hover: none) and (pointer: coarse) {
  .audit-form .btn { min-height: 44px; }
}

.sla-desc-inline,
.sla-table th .th-short,
.cap-table th .th-short { display: none; }

@media (max-width: 900px) {
  .sla-table .sla-desc-col { display: none; }
  .sla-table .sla-desc-inline { display: block; font-size: 11px; margin-top: 3px; }
  .sla-table .sla-hint { display: none; }

  .sla-table th .th-long,
  .cap-table th .th-long { display: none; }
  .sla-table th .th-short,
  .cap-table th .th-short { display: inline; }

  .sla-table,
  .cap-table {
    display: table;
    table-layout: fixed;
    overflow-x: visible;
  }
  .sla-table thead, .cap-table thead { display: table-header-group; }
  .sla-table tbody, .cap-table tbody {
    display: table-row-group;
    width: auto;
    min-width: 0;
  }

  .sla-table th, .sla-table td,
  .cap-table th, .cap-table td {
    padding: 10px 6px;
    font-size: 12.5px;
    overflow-wrap: anywhere;
  }
  .sla-table thead th,
  .cap-table thead th { font-size: 10.5px; letter-spacing: 0.02em; }

  .sla-table th:first-child, .sla-table td:first-child { width: 46%; }
  .cap-table th:first-child, .cap-table td:first-child { width: 52%; }
  .sla-table th:not(:first-child), .sla-table td:not(:first-child),
  .cap-table th:not(:first-child), .cap-table td:not(:first-child) {
    text-align: center;
  }
  .sla-table tbody td:not(:first-child),
  .cap-table tbody td:not(:first-child) { white-space: nowrap; }
}

@media (max-width: 900px) {
  html.samurai .pcards-5 .pcard:nth-child(n) {
    display: flex;
  }
}

@media (max-width: 768px) {
  html.samurai .pricing-toggle {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-top: 2px;
  }

  html.samurai .pricing-toggle button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 44px;
    padding: 6px 4px;
    font-size: 12.5px;
    line-height: 1.15;
  }

  html.samurai .pricing-toggle .save {
    margin-left: 0;
    font-size: 10px;
  }
}
