.kp-calculator {
  width: 100%;
  min-width: 0;
  overflow: visible;
  border: 1px solid #dce9e7;
  border-radius: 22px;
  background: #ffffff;
}

.kp-calculator iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.kp-integration-notice {
  padding: 18px;
  border: 1px solid #d8e5e3;
  border-radius: 14px;
  background: #ffffff;
}

.kp-insurer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.kp-insurer-card {
  min-height: 104px;
  padding: 17px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #dce9e7;
  border-radius: 16px;
  background: #ffffff;
  color: #17383b;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

a.kp-insurer-card:hover,
a.kp-insurer-card:focus-visible {
  transform: translateY(-2px);
  border-color: #9fc9c5;
  box-shadow: 0 10px 24px rgba(15, 49, 52, 0.08);
}

.kp-insurer-image {
  width: auto;
  max-width: 130px;
  height: 38px;
  margin-bottom: 10px;
  object-fit: contain;
}

.kp-insurer-card strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kp-insurer-card small {
  margin-top: 6px;
  color: #51666a;
  font-size: 12px;
}

.kp-yandex-rating {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 16px;
  justify-items: start;
}

.kp-yandex-badge {
  display: block;
  width: 100%;
  max-width: 100%;
}

.kp-yandex-badge > div {
  width: 100% !important;
  max-width: 560px;
  height: var(--kp-reviews-height, 620px) !important;
}

.kp-yandex-badge iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
  transform-origin: left top;
}

.kp-yandex-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid #bfd2d0;
  border-radius: 13px;
  color: #006b70;
  font-weight: 800;
  text-decoration: none;
}

.kp-cookie-banner {
  position: fixed;
  z-index: 99999;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.kp-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: auto;
  padding: 18px 20px;
  border: 1px solid #d2e0df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(15, 49, 52, 0.18);
}

.kp-cookie-inner p {
  margin: 4px 0;
  color: #43595d;
  font-size: 14px;
}

.kp-cookie-actions {
  display: flex;
  gap: 8px;
}

.kp-cookie-actions button {
  padding: 10px 13px;
  border: 1px solid #c9d8d7;
  border-radius: 11px;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.kp-cookie-actions .kp-cookie-accept,
.kp-core-button {
  border-color: #e85f00;
  background: #e85f00;
  color: #ffffff;
}

.kp-core-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.kp-insurer-article {
  padding: 64px 0;
}

.kp-insurer-page-logo img {
  max-width: 220px;
  height: auto;
}

.kp-core-kicker {
  color: #006b70;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.kp-insurer-content {
  margin-top: 28px;
  color: #263f43;
  font-size: 17px;
  line-height: 1.75;
}

.kp-insurer-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.kp-core-button {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 850px) {
  .kp-insurer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .kp-calculator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .kp-insurer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kp-cookie-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .kp-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* The administrator's original embed remains unchanged. On narrow screens,
   override its inline minimum width so the iframe fits the site's content. */
@media (max-width: 480px) {
  .kp-calculator iframe {
    min-width: 0 !important;
  }
}
