/* Product cards and navigation: keep copy in HTML for clear translation. */
.original-button,
.lang-switch,
.menu-toggle {
  min-height: var(--ci-control-height);
}

.original-button {
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
}

.original-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ci-control-height);
}

.nav-dropdown a {
  display: flex;
}

.ci-products {
  max-width: 1200px;
  margin: auto;
  padding: 84px 32px 96px;
}

.ci-product-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.ci-kicker {
  color: #177477;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ci-product-head h1 {
  margin: 16px 0 22px;
  color: #143446;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.ci-product-head p {
  color: #566c78;
  font-size: 18px;
  line-height: 1.75;
}

.ci-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ci-product-card {
  position: relative;
  min-height: 248px;
  padding: 30px;
  border: 1px solid #d9e4e9;
  border-radius: 18px;
  background: #fff;
  color: #193746;
  text-decoration: none;
  box-shadow: 0 5px 20px #18304405;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.ci-product-card:hover {
  border-color: #62a9a3;
  box-shadow: 0 12px 32px #18304412;
}

.ci-product-card:focus-visible {
  outline: 3px solid #087578;
  outline-offset: 4px;
}

.ci-product-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: #e8f4f0;
  color: #087578;
}

.ci-product-icon svg {
  width: 27px;
  height: 27px;
}

.ci-product-card h2 {
  margin: 26px 0 10px;
  font-size: 23px;
}

.ci-product-card p {
  color: #596e79;
  font-size: 15px;
  line-height: 1.65;
}

.ci-card-arrow {
  position: absolute;
  right: 28px;
  bottom: 26px;
  color: #087578;
  font-size: 24px;
}

.ci-product-note {
  margin-top: 32px;
  padding: 26px 30px;
  border-radius: 16px;
  background: #f3f8f8;
  color: #254554;
}

.ci-product-note p {
  max-width: 85ch;
  margin: 12px 0;
  color: #526b77;
  line-height: 1.8;
}

.ci-product-note a {
  display: inline-flex;
  min-height: var(--ci-control-height);
  align-items: center;
  color: #087578;
  font-weight: 600;
}

.primary-nav a[href="/tokens/"] {
  font-weight: 600;
}

/* On narrow screens, keep one clear column and preserve readable spacing. */
@media (max-width: 780px) {
  .ci-products {
    padding: 40px 20px 56px;
  }

  .ci-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ci-product-card {
    min-height: 180px;
    padding: 24px;
  }

  .ci-product-card h2 {
    margin: 20px 0 8px;
    font-size: 22px;
  }

  .ci-product-note {
    padding: 22px;
  }

  .home-actions {
    flex-wrap: wrap;
    gap: var(--ci-action-gap);
  }

  .home-actions .original-button {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-product-card {
    transition: none;
  }
}

/* Keep header targets steady and allow translated CTA labels to wrap. */
.lang-switch,
.menu-toggle {
  min-width: var(--ci-control-height);
  min-height: var(--ci-control-height);
  flex-shrink: 0;
}

.original-button {
  height: auto;
  min-height: 68px;
  padding-block: 14px;
  gap: 16px;
}

.original-button > b {
  flex: 0 0 auto;
}

@media (max-width: 780px) {
  .site-header {
    column-gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .original-button {
    min-height: 58px;
    padding-block: 12px;
  }
}

[hidden] {
  display: none !important;
}
/* Consulting actions are real destinations with a readable touch target. */
.service-card a.more {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #20398f;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.5;
}

.service-card a.more:focus-visible {
  outline: 3px solid #2d448b;
  outline-offset: 4px;
}
