.khsc-anchor-block {
  width: 100%;
  margin-top: 0;
  scroll-margin-top: 150px;
  box-sizing: border-box;
}

.khsc-chart {
  --khsc-yellow: #ffd400;
  --khsc-white: #f8f8f8;
  --khsc-muted: #c6c6c8;
  --khsc-line: rgba(255, 255, 255, .17);
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 38px;
  overflow: hidden;
  color: var(--khsc-white);
  background:
    radial-gradient(circle at 45% 28%, rgba(62, 66, 68, .28), transparent 35%),
    linear-gradient(135deg, #08090a 0%, #111314 55%, #050607 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  box-sizing: border-box;
}

.khsc-chart *,
.khsc-chart *::before,
.khsc-chart *::after {
  box-sizing: border-box;
}

.khsc-chart__heading {
  margin-bottom: 26px;
}

.khsc-chart__title {
  margin: 0 0 0px;
  color: var(--khsc-white);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.12;
}

.khsc-chart__description,
.khsc-chart__description p {
  max-width: 780px;
  margin: 0;
  color: var(--khsc-muted);
  font-size: 18px;
  line-height: 1.55;
}

.khsc-chart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr) minmax(230px, .72fr);
  gap: 34px;
  align-items: center;
}

.khsc-chart__image-card {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
}

.khsc-chart__image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.khsc-chart__subtitle {
  margin: 0 0 20px;
  color: var(--khsc-white);
  font-size: 23px;
  font-weight: 700;
}

.khsc-chart__measurement-list {
  display: grid;
  gap: 20px;
}

.khsc-chart__measurement {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.khsc-chart__code {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--khsc-yellow);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.khsc-chart__measurement-copy {
  color: var(--khsc-muted);
  font-size: 16px;
  line-height: 1.45;
}

.khsc-chart__measurement-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--khsc-white);
  font-size: 18px;
  font-weight: 600;
}

.khsc-chart__measurement-copy p,
.khsc-chart__advice-copy p {
  margin: 0;
}

.khsc-chart__advice {
  padding: 30px;
  color: var(--khsc-muted);
  background: rgba(255, 255, 255, .018);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 18px;
}

.khsc-chart__advice-icon {
  position: relative;
  width: 66px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--khsc-yellow);
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 28px 28px;
}

.khsc-chart__advice-icon::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 12px;
  width: 42px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.khsc-chart__advice-icon::after {
  content: '';
  position: absolute;
  right: -25px;
  bottom: 0;
  width: 29px;
  height: 16px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.khsc-chart__advice-title {
  margin: 0 0 16px;
  color: var(--khsc-yellow);
  font-size: 21px;
  font-weight: 600;
}

.khsc-chart__advice-copy {
  font-size: 16px;
  line-height: 1.55;
}

.khsc-chart__table-wrap {
  order: 3;
  width: 100%;
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--khsc-line);
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--khsc-yellow) #17191a;
}

.khsc-chart__table-wrap::-webkit-scrollbar {
  height: 8px;
}

.khsc-chart__table-wrap::-webkit-scrollbar-track {
  background: #17191a;
  border-radius: 8px;
}

.khsc-chart__table-wrap::-webkit-scrollbar-thumb {
  background: var(--khsc-yellow);
  border-radius: 8px;
}

.khsc-chart__table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--khsc-white);
  background: rgba(255, 255, 255, .015);
  font-size: 16px;
}

.khsc-chart__table th,
.khsc-chart__table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  border: 0;
  border-right: 1px solid var(--khsc-line);
  border-bottom: 1px solid var(--khsc-line);
}

.khsc-chart__table tr:last-child th,
.khsc-chart__table tr:last-child td {
  border-bottom: 0;
}

.khsc-chart__table th:last-child,
.khsc-chart__table td:last-child {
  border-right: 0;
}

.khsc-chart__table thead th {
  color: var(--khsc-yellow);
  border-bottom: 2px solid var(--khsc-yellow);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.khsc-chart__table th:first-child {
  width: 210px;
  min-width: 210px;
  text-align: left;
}

.khsc-chart__size-main,
.khsc-chart__size-meta {
  display: block;
  white-space: nowrap;
}

.khsc-chart__size-meta {
  margin-top: 2px;
}

.khsc-chart__table tbody th {
  font-weight: 400;
}

.khsc-chart__table tbody th .khsc-chart__code {
  width: 27px;
  height: 27px;
  margin-right: 10px;
  vertical-align: middle;
  font-size: 15px;
}

.khsc-chart__tolerance {
  order: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: #777b80;
  font-size: 13px;
}

.khsc-chart__info {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  color: var(--khsc-yellow);
  border: 1px solid var(--khsc-yellow);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.khsc-main-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  color: #25252b;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.khsc-main-link:hover,
.khsc-main-link:focus {
  color: #e3b600;
  background: transparent;
  outline: 0;
}

.khsc-main-link img,
.khsc-tab-trigger img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.khsc-main-link__fallback,
.khsc-tab-trigger__fallback {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #161616;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.khsc-tab-trigger {
  cursor: pointer;
}

.khsc-modal .modal-dialog {
  width: calc(100% - 40px);
  max-width: 1540px;
}

.khsc-modal .modal-content {
  overflow: hidden;
  background: #08090a;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .55);
}

.khsc-modal .modal-body {
  padding: 0;
}

.khsc-modal .khsc-chart {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.khsc-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  line-height: 36px;
  text-align: center;
}

.khsc-modal__close:hover {
  color: var(--khsc-yellow, #ffd400);
  background: rgba(255, 255, 255, .14);
}

@media (min-width: 768px) {
  .khsc-desktop-hidden {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .khsc-chart {
    padding: 30px;
  }

  .khsc-chart__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  }

  .khsc-chart__advice {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .khsc-anchor-block {
    scroll-margin-top: 86px;
  }

  .khsc-chart {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .khsc-chart__heading {
    order: 1;
    margin-bottom: 20px;
  }

  .khsc-chart__title {
    margin-bottom: 10px;
    font-size: 30px;
  }

  .khsc-chart__description,
  .khsc-chart__description p {
    font-size: 16px;
  }

  .khsc-chart__layout {
    display: contents;
  }

  .khsc-chart__image-card {
    order: 2;
    min-height: 0;
    margin-bottom: 28px;
    padding: 7px;
    border-radius: 14px;
  }

  .khsc-chart__image {
    max-height: none;
  }

  .khsc-chart__measurements {
    order: 3;
    margin-bottom: 24px;
  }

  .khsc-chart__subtitle {
    font-size: 22px;
  }

  .khsc-chart__measurement-list {
    gap: 0;
  }

  .khsc-chart__measurement {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .khsc-chart__measurement-copy,
  .khsc-chart__advice-copy {
    font-size: 15px;
  }

  .khsc-chart__measurement-copy strong {
    font-size: 17px;
  }

  .khsc-chart__table-wrap {
    order: 4;
    margin-top: 0;
  }

  .khsc-chart__table {
    font-size: 14px;
  }

  .khsc-chart__table th,
  .khsc-chart__table td {
    padding: 12px 11px;
  }

  .khsc-chart__table th:first-child {
    width: 160px;
    min-width: 160px;
  }

  .khsc-chart__advice {
    order: 5;
    margin-top: 22px;
    padding: 22px;
  }

  .khsc-chart__tolerance {
    order: 6;
  }

  .khsc-modal {
    display: none !important;
  }
}
