html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font-size: 16px;
}

.Paygen_image img,
.PaygenCourusel img {
  max-width: 100% !important;
  height: auto !important;
}

.Paygen select,
.Paygen button {
  min-height: 44px;
}

html.km-lightbox-open,
body.km-lightbox-open {
  overflow: hidden !important;
}

.km-lightbox[hidden],
.km-lightbox__image[hidden],
.km-lightbox__caption[hidden],
.km-lightbox__status[hidden] {
  display: none !important;
}

.km-lightbox {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: auto;
  background: rgba(8, 18, 23, 0.88);
}

.km-lightbox__dialog {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, 100%);
  min-height: 120px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 54px 18px 16px;
  overflow: auto;
  border-radius: 10px;
  background: #17262c;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.km-lightbox__close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  font-size: 30px;
  line-height: 40px;
  text-align: center;
}

.km-lightbox__close:hover,
.km-lightbox__close:focus {
  border-color: #fff;
  outline: 3px solid #68c8ef;
  outline-offset: 2px;
  background: #075c85;
}

.km-lightbox__image {
  display: block;
  width: auto;
  max-width: 90vw !important;
  height: auto;
  max-height: calc(100vh - 150px) !important;
  max-height: calc(100dvh - 150px) !important;
  object-fit: contain;
  background: #fff;
}

.km-lightbox__status,
.km-lightbox__caption {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.km-lightbox__status {
  padding: 30px;
}

.km-lightbox__caption {
  max-width: 900px;
  margin: 12px 0 0;
}

@media (max-width: 600px) {
  .km-lightbox {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .km-lightbox__dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 52px 8px 12px;
  }

  .km-lightbox__image {
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 135px) !important;
    max-height: calc(100dvh - 135px) !important;
  }
}

.km-site-title {
  margin: 0;
  padding: 0;
}

.km-site-title a {
  display: block;
  height: 80px;
  box-sizing: border-box;
  padding: 20px 18px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  line-height: 40px;
  text-decoration: none;
}

.km-paygen-caption {
  display: none !important;
}

.km-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 0 14px;
  color: #52636a;
  font-size: 14px;
}

.km-breadcrumbs a,
.km-model-hub-link {
  color: #075c85;
}

.km-product-summary,
.km-model-hub {
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #d6e2e7;
  border-radius: 8px;
  background: #f7fafb;
}

.km-product-summary .km-product-intro {
  margin-top: 0;
  font-size: 17px;
}

.km-product-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  border: 1px solid #d6e2e7;
  background: #d6e2e7;
}

.km-product-summary dl div {
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
}

.km-product-summary dt {
  color: #52636a;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}

.km-product-summary dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #17262c;
  font-weight: bold;
}

.km-model-hub__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.km-model-hub__list a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6e2e7;
  border-radius: 6px;
  background: #fff;
  overflow-wrap: anywhere;
}

.km-rkn-links a {
  display: inline-block;
  min-height: 24px;
  padding: 4px 6px;
}

.km-order-landing {
  color: #17262c;
  background: #eef3f5;
}

.km-order-landing #pagewrapper {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  background: #eef3f5;
}

.km-order-landing #header {
  height: 68px;
  min-height: 68px;
  border: 0;
  background: #20343c;
}

.km-order-landing .km-site-title a {
  box-sizing: border-box;
  height: 68px;
  padding: 14px 28px;
  font-size: 24px;
  line-height: 40px;
}

.km-order-landing #menuwrapper {
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  background: #20343c;
}

.km-order-landing #primary-nav {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 1.15fr 1.3fr 1.15fr 0.8fr 0.65fr 0.55fr;
  gap: 4px;
  width: 100% !important;
  max-width: 1180px;
  min-height: 46px;
  margin: 0 auto !important;
  padding: 0 !important;
}

.km-order-landing #primary-nav li {
  box-sizing: border-box;
  float: none !important;
  width: auto !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

.km-order-landing #primary-nav li::before,
.km-order-landing #primary-nav li::after,
.km-order-landing #primary-nav li a::before,
.km-order-landing #primary-nav li a::after,
.km-order-landing #primary-nav li a span::before,
.km-order-landing #primary-nav li a span::after {
  display: none !important;
  content: none !important;
}

.km-order-landing #primary-nav li a,
.km-order-landing #primary-nav li a span {
  box-sizing: border-box;
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: 46px;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}

.km-order-landing #primary-nav li a span {
  overflow: hidden;
  padding: 12px 10px 10px !important;
  color: #e9f1f3;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: none;
  white-space: nowrap;
}

.km-order-landing #primary-nav li.menuactive a span,
.km-order-landing #primary-nav li a:hover span,
.km-order-landing #primary-nav li a:focus span {
  color: #17262c;
  background: #fff !important;
}

.km-order-landing #primary-nav li.menuactive a span {
  border-radius: 8px 8px 0 0;
  font-weight: 700;
}

.km-order-landing .crbk {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: #fff;
}

.km-order-landing .breadcrumbs {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 24px;
  color: #60737b;
  font-size: 14px;
  line-height: 20px;
}

.km-order-landing #content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 44px;
}

.km-order-landing #sidebar,
.km-order-landing #sidebarb {
  display: none;
}

.km-order-landing .back1,
.km-order-landing .back2,
.km-order-landing .back3,
.km-order-landing #main {
  box-sizing: border-box;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.km-order-landing #main > div[style*="float: right"] {
  display: none;
}

.km-order-landing #main > h2:first-of-type {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #173f52;
  font-size: 28px;
  line-height: 1.2;
}

.km-order-lead {
  max-width: 880px;
  margin: 0 0 12px;
  color: #40545d;
  font-size: 17px;
  line-height: 1.5;
}

.km-order-heading {
  margin: 12px 0 10px;
  padding: 0;
  border: 0;
  color: #173f52;
  font-size: 21px;
  line-height: 1.3;
}

.km-order-landing .Paygen {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d4e0e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 55, 64, 0.08);
}

.km-order-landing .Paygen_poleplace,
.km-order-landing .Paygen_paymentplace {
  display: contents;
}

.km-order-landing .Paygen_poleplace .Paygen_SelectItem:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.km-order-landing .Paygen_poleplace .Paygen_SelectItem:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.km-order-landing .Paygen_poleplace .Paygen_SelectItem:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.km-order-landing .Paygen_paymentplace .Paygen_SelectItem {
  grid-column: 2;
  grid-row: 2;
}

.km-order-landing .Paygen_SelectItem {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
}

.km-order-landing .Paygen_SelectItem > span {
  display: block;
  margin: 0 0 5px;
  color: #425961;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.km-order-landing .Paygen select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 8px 34px 8px 11px;
  overflow: hidden;
  border: 1px solid #aebfc6;
  border-radius: 7px;
  color: #17262c;
  background: #fff;
  text-overflow: ellipsis;
}

.km-order-landing .Paygen select:focus,
.km-order-landing .km-buy-button:focus {
  outline: 3px solid rgba(8, 107, 151, 0.24);
  outline-offset: 2px;
}

.km-order-landing .Paygen_button {
  grid-column: 1 / 3;
  grid-row: 3;
  min-width: 0;
}

.km-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 6px 14px;
  align-items: center;
  padding-top: 2px;
}

.km-order-summary__label {
  grid-column: 1;
  color: #60737b;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.km-order-summary .PaymentPriceInfo {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.km-order-summary .Name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-order-format {
  color: #60737b;
  font-size: 13px;
}

.km-order-price {
  color: #173f52;
  font-weight: 800;
  white-space: nowrap;
}

.km-order-summary .PaymentPole {
  grid-column: 2;
  grid-row: 1 / 3;
}

.km-order-summary .PaymentPole form {
  margin: 0;
}

.km-order-landing .km-buy-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0879a6;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

.km-order-landing .km-buy-button:hover {
  background: #06698f;
}

.km-order-paypal-note {
  grid-column: 2;
  color: #60737b;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.km-order-landing .Paygen_paiment_image {
  grid-column: 1 / 3;
  grid-row: 4;
  min-height: 0;
}

.km-order-landing .Paygen_paiment_image .paymentsystem {
  display: none !important;
}

.km-order-landing .Paygen_image {
  box-sizing: border-box;
  grid-column: 3;
  grid-row: 1 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 170px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e0e8eb;
  border-radius: 9px;
  background: #f7fafb;
}

.km-order-landing .Paygen_image a,
.km-order-landing .Paygen_image img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: 220px !important;
  object-fit: contain;
}

.km-order-landing .Paygen_defaults {
  display: none;
}

.km-order-landing .Paygen_error {
  grid-column: 1 / 3;
  grid-row: 5;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d7a7a7;
  border-radius: 8px;
  color: #742f2f;
  background: #fff4f4;
}

.km-order-landing .Paygen_error button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #0879a6;
  cursor: pointer;
}

.km-order-details {
  max-width: 880px;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid #d4e0e4;
}

.km-order-details h2 {
  margin: 0 0 8px;
  color: #173f52;
  font-size: 21px;
}

.km-order-details p {
  margin: 0 0 12px;
}

@media (max-width: 980px) {
  .km-order-landing .Paygen {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .km-order-landing .Paygen_image {
    grid-column: 1 / 3;
    grid-row: 5;
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #pagewrapper {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #header,
  #content,
  #sidebar,
  #sidebarb,
  .back1,
  .back2,
  .back3,
  #main,
  #footer,
  #fooleft,
  #footrt {
    box-sizing: border-box;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #content,
  #main {
    padding-left: 12px;
    padding-right: 12px;
  }

  #menu_vert ul,
  #menu_vert li {
    box-sizing: border-box;
    float: none !important;
    width: 100% !important;
  }

  #header {
    min-height: 72px;
    height: auto !important;
  }

  #header h1,
  #header .km-site-title {
    background: none !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  #header h1 a,
  #header .km-site-title a {
    box-sizing: border-box;
    height: auto !important;
    min-height: 72px;
    padding: 21px 16px;
    background: none !important;
    color: #fff;
    text-indent: 0 !important;
  }

  #header h2 {
    display: none;
  }

  #primary-nav {
    box-sizing: border-box;
    padding: 8px 10px 0 !important;
  }

  #primary-nav li {
    margin: 0 0 8px !important;
  }

  #primary-nav li a,
  #primary-nav li a span {
    box-sizing: border-box;
    width: 100% !important;
    background: none !important;
  }

  #primary-nav li a {
    border: 1px solid #d7e4e8;
    border-radius: 9px 9px 0 0;
    background: linear-gradient(#91a9af, #3f5960) !important;
  }

  #menu_vert a {
    display: block;
    min-height: 44px;
    padding: 10px 12px;
  }

  #sidebar,
  #sidebarb {
    display: none;
  }

  .Paygen,
  .PagenHiddeSelectModel,
  .PaygenStaticSection,
  .Paygen_poleplace,
  .Paygen_paymentplace,
  .Paygen_image {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .Paygen select,
  .Paygen input,
  .Paygen button {
    box-sizing: border-box;
    width: 100% !important;
  }

  .Paygen_image a,
  .Paygen_image img,
  .Paygen .img,
  .Paygen .img a,
  .Paygen .img img {
    box-sizing: border-box;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .KiParts_SearchForm .Name,
  .KiParts_SearchForm .Pole {
    display: block;
    width: 100%;
    margin: 6px 0;
  }

  .KiParts_SearchForm input,
  .KiParts_SearchForm button {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
  }

  .km-rkn-cookie {
    font-size: 15px !important;
  }

  .km-product-summary {
    padding: 14px;
  }

  .km-product-summary dl,
  .km-model-hub__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .km-order-landing #header {
    min-height: 62px;
  }

  .km-order-landing .km-site-title a {
    min-height: 62px;
    padding: 11px 16px;
    font-size: 22px;
  }

  .km-order-landing #menuwrapper {
    padding: 8px 10px;
  }

  .km-order-landing #primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 !important;
  }

  .km-order-landing #primary-nav li,
  .km-order-landing #primary-nav li a,
  .km-order-landing #primary-nav li a span {
    height: auto;
    min-height: 44px;
    margin: 0 !important;
  }

  .km-order-landing #primary-nav li a {
    border: 1px solid #4b626b;
    border-radius: 7px;
    background: transparent !important;
  }

  .km-order-landing #primary-nav li a span {
    padding: 10px;
    font-size: 14px;
    line-height: 22px;
  }

  .km-order-landing .breadcrumbs {
    padding: 8px 14px;
  }

  .km-order-landing #content {
    padding: 14px 12px 36px;
  }

  .km-order-landing #main > h2:first-of-type {
    font-size: 24px;
  }

  .km-order-lead {
    font-size: 16px;
  }

  .km-order-landing .Paygen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .km-order-landing .Paygen_poleplace .Paygen_SelectItem:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .km-order-landing .Paygen_poleplace .Paygen_SelectItem:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .km-order-landing .Paygen_poleplace .Paygen_SelectItem:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .km-order-landing .Paygen_paymentplace .Paygen_SelectItem {
    grid-column: 1;
    grid-row: 4;
  }

  .km-order-landing .Paygen_button {
    grid-column: 1;
    grid-row: 5;
  }

  .km-order-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .km-order-summary__label,
  .km-order-summary .PaymentPriceInfo,
  .km-order-summary .PaymentPole,
  .km-order-paypal-note {
    grid-column: 1;
  }

  .km-order-summary .PaymentPole {
    grid-row: auto;
  }

  .km-order-summary .PaymentPriceInfo {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .km-order-summary .Name {
    grid-column: 1 / 3;
    white-space: normal;
  }

  .km-order-paypal-note {
    text-align: left;
  }

  .km-order-landing .Paygen_paiment_image {
    grid-column: 1;
    grid-row: 6;
  }

  .km-order-landing .Paygen_image {
    grid-column: 1;
    grid-row: 7;
    min-height: 100px;
  }

  .km-order-landing .Paygen_error {
    grid-column: 1;
    grid-row: 8;
    align-items: flex-start;
    flex-direction: column;
  }
}
