.top .wrap {
  flex-wrap: wrap;
}

.top .brand {
  margin-right: 0;
}

.top .brand-logo {
  display: block;
  width: 112px;
  height: 102px;
  object-fit: contain;
}

.top .nav {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.top .nav a {
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.nav-services {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.services-menu-toggle {
  display: inline-flex;
  min-width: 24px;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 11px var(--f-body);
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
}

.services-menu-toggle:hover,
.services-menu-toggle[aria-expanded="true"] {
  color: var(--ink);
}

.services-menu-toggle[aria-expanded="true"] .caret {
  transform: rotate(225deg) translateY(-2px);
}

.services-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: min(460px, calc(100vw - 40px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 36px -18px #0b2a5b80;
  list-style: none;
}

.services-dropdown[hidden] {
  display: none !important;
}

.page .page-intro {
  padding-block: 36px 48px;
}

.page-intro .crumbs {
  min-height: 24px;
  margin: 0 0 14px;
  padding-block: 0;
  color: var(--muted);
}

.crumbs ol {
  align-items: center;
  gap: 8px;
  min-height: 24px;
  line-height: 1.5;
}

.crumbs li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.crumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.top .nav .services-dropdown a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0;
}

.top .nav .services-dropdown a:hover,
.top .nav .services-dropdown a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.top .hphone {
  margin-left: auto;
}

.founder .portrait {
  object-position: center 24%;
}

.motto {
  align-items: flex-start;
}

.motto .deva {
  width: 100%;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.motto i {
  font-size: .9rem;
}

.motto small {
  flex-basis: 100%;
}

.home-services {
  padding-block: 64px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.home-service-card {
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.home-service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.home-service-card p {
  margin: 0;
  color: var(--muted);
}

.home-service-card a {
  color: inherit;
  text-decoration: none;
}

.home-service-card a:hover,
.home-service-card a:focus-visible {
  color: var(--peacock);
  text-decoration: underline;
}

section.block.seo-guide {
  padding-block: 32px;
}

section.block.seo-guide + section.block.seo-guide {
  padding-top: 0;
}

.seo-guide .guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.seo-guide article {
  max-width: none;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.seo-guide article > h2:has(> .guide-toggle),
.seo-guide article > h3:has(> .guide-toggle) {
  display: flex;
  min-height: 84px;
  align-items: stretch;
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
}

.seo-guide p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.seo-guide .guide-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.seo-guide .guide-toggle::after {
  flex: 0 0 auto;
  color: var(--gold-text);
  content: '+';
  font: 500 1.6rem/1 var(--f-body);
}

.seo-guide .guide-toggle[aria-expanded="true"]::after {
  content: '\2212';
}

.seo-guide .guide-toggle:hover {
  color: var(--peacock);
}

.seo-guide .guide-toggle:focus-visible {
  outline: 3px solid var(--peacock);
  outline-offset: 3px;
}

.seo-guide article > h2:has(> .guide-toggle),
.seo-guide article > h3:has(> .guide-toggle) {
  margin-bottom: 0;
}

.seo-guide .guide-content {
  padding: 0 0 20px;
}

.seo-guide .guide-content.collapse:not(.show) {
  display: none;
}

.seo-guide .guide-content.collapsing {
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .seo-guide .guide-content.collapsing {
    transition-duration: 0s;
  }
}

.pop-x {
  font-size: 0;
}

.pop-x::before {
  content: '\00D7';
  font: 400 28px/1 var(--f-body);
}

.section-anchor,
#expertise {
  scroll-margin-top: 100px;
}

#kisna-chat[hidden] {
  display: none !important;
}

#kisna-chat {
  gap: 0;
}

#kisna-chat .chat-head {
  flex: 0 0 auto;
}

#kisna-chat .assistant-logo {
  flex: 0 0 auto;
  width: 48px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.fab.chat .assistant-fab-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

#kisna-chat .msgs {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
}

#kisna-chat .m {
  width: fit-content;
  max-width: 90%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

#kisna-chat .m.me {
  margin-left: auto;
  background: var(--navy);
  color: #fff;
}

#kisna-chat .quick {
  flex: 0 0 auto;
  padding: 0 12px 10px;
}

#kisna-chat .quick .chip {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 12px;
}

#kisna-chat .cin {
  flex: 0 0 auto;
}

#kisna-chat .assistant-note {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .top .wrap {
    gap: 8px 12px;
    padding-block: 10px;
  }

  .top .nav {
    display: flex;
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 4px 16px;
    order: 5;
  }

  .top .nav a {
    min-height: 32px;
  }

  .services-menu-toggle {
    min-height: 32px;
  }
}

@media (max-width: 480px) {
  .top .brand-logo {
    width: 88px;
    height: 80px;
  }

  .top .hphone {
    font-size: 12px;
  }

  .top .btn {
    padding-inline: 10px;
  }

  .top .nav {
    gap: 2px 12px;
  }

  .top .nav a {
    font-size: 10px;
  }

  .services-menu-toggle {
    font-size: 10px;
  }

}

@media (max-width: 640px) {
  .services-dropdown {
    position: fixed;
    top: var(--services-menu-top, 90px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(70vh, 520px);
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }
}
