
.kk-banner { display: flex; align-items: center; min-height: 440px; padding: 40px 0 110px; }
.kk-banner .header-portfolio-detail__description { box-shadow: 0 10px 30px rgba(26, 42, 57, .18); }

.kk-sec { padding: 56px 0; background: #fff; }
.kk-sec_grey { background: #F3F4F5; }
.kk-results { padding-top: 56px; }
.kk-narrow { max-width: 920px; margin: 0 auto 24px; text-align: left; }
.kk-narrow_wide { max-width: 1010px; }
.kk-lead { max-width: 860px; margin: 26px auto 0 !important; font-size: 17px !important; }

/* таблицы */
.kk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.kk-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.45; color: #1A2A39; }
.kk-table caption { caption-side: top; padding: 0 0 14px; text-align: left; font-size: 20px; font-weight: 700; color: #1A2A39; }
.kk-table th, .kk-table td { padding: 13px 16px; border: 1px solid #E0E2E5; text-align: left; vertical-align: middle; }
.kk-table thead th { background: #1A2A39; border-color: #1A2A39; color: #fff; font-size: 14px; font-weight: 600; }
.kk-table tbody th { font-weight: 500; }
.kk-table tbody tr:nth-child(even) { background: #FAFBFC; }
.kk-table .kk-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.kk-table_3 td:last-child { color: #65676B; }
.kk-table_pos td { text-align: center; white-space: nowrap; }
.kk-table_pos td.kk-num { text-align: right; }
.kk-chip { display: inline-block; min-width: 46px; padding: 4px 10px; border-radius: 50px; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.kk-chip_top3 { background: #52C91B; color: #fff; }
.kk-chip_top10 { background: #DDF3D0; color: #2F7A0E; }
.kk-chip_mid { background: #FFF1C9; color: #8A5A00; }
.kk-chip_low { background: #FCEAEA; color: #B4231F; }
.kk-chip_out { background: #EEF0F2; color: #65676B; font-weight: 500; }
.kk-chip_none { border: 1px dashed #C8CCD1; color: #65676B; font-weight: 500; }
.kk-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #65676B; text-align: left; }
.kk-note_center { max-width: 820px; margin: 18px auto 0; text-align: center; }

/* списки с красной галочкой */
.kk-list { margin: 0 0 20px; padding: 0; list-style: none; }
.kk-list li { position: relative; margin: 0 0 12px; padding-left: 32px; font-size: 15px; line-height: 1.65; color: #000; text-align: left; }
.kk-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #DF2826 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* картинки */
.kk-photo { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 18px 40px rgba(26, 42, 57, .18); }
.kk-illu { width: 100%; max-width: 640px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(26, 42, 57, .12); }
.kk-gif { width: 100%; max-width: 680px; margin-top: 10px; border-radius: 12px; box-shadow: 0 10px 30px rgba(26, 42, 57, .12); }

.kk-serp { max-width: 820px; margin: 10px auto 0; padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(26, 42, 57, .10); text-align: left; }
.kk-serp figcaption { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: #65676B; }
.kk-serp ol { margin: 0; padding: 0; list-style: none; }
.kk-serp li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid #EEF0F2; }
.kk-serp li:first-child { border-top: 0; }
.kk-serp__n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #F0F7FF; color: #1A2A39; font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; }
.kk-serp__t { min-width: 0; font-size: 14px; line-height: 1.45; color: #65676B; overflow-wrap: anywhere; }
.kk-serp__t b { display: block; font-size: 15px; color: #1A2A39; }

/* структура каталога */
.kk-tree { max-width: 980px; margin: 14px auto 0; }
.kk-tree__root { position: relative; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 14px 28px; border-radius: 50px; background: #1A2A39; color: #fff; font-size: 17px; font-weight: 700; text-align: center; }
.kk-tree__root::after { content: ''; position: absolute; left: 50%; top: 100%; height: 26px; border-left: 2px solid #C8D3DF; }
.kk-tree__types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.kk-tree__types span { display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 12px 10px; border: 2px solid #DF2826; border-radius: 14px; background: #fff; color: #1A2A39; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; }
.kk-tree__level { position: relative; display: flex; align-items: baseline; gap: 16px; max-width: 760px; margin: 0 auto 14px; padding: 14px 20px; border-radius: 12px; background: #F0F7FF; text-align: left; }
.kk-tree__level::before { content: ''; position: absolute; left: 50%; bottom: 100%; height: 14px; border-left: 2px solid #C8D3DF; }
.kk-tree__types + .kk-tree__level::before { height: 26px; }
.kk-tree__level b { flex: 0 0 150px; color: #DF2826; font-size: 16px; }
.kk-tree__level span { font-size: 15px; line-height: 1.5; color: #1A2A39; }

/* кейсы клиента по годам */
.kk-years { margin-top: 28px; padding: 22px 24px; border: 1px solid #E0E2E5; border-radius: 12px; background: #fff; }
.kk-years__title { margin: 0 0 14px !important; font-size: 15px !important; color: #555; }
.kk-years__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kk-years__item { display: block; padding: 14px 16px; border: 1px solid #E0E2E5; border-radius: 10px; color: #1A2A39; font-size: 15px; line-height: 1.4; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.kk-years__item b { display: block; margin-bottom: 4px; font-size: 22px; color: #DF2826; }
a.kk-years__item:hover, a.kk-years__item:focus-visible { border-color: #DF2826; box-shadow: 0 6px 16px rgba(223, 40, 38, .12); color: #1A2A39; }
.kk-years__item_on { border-color: #1A2A39; background: #1A2A39; color: #fff; }
.kk-years__item_on b { color: #fff; }

/* столбики по месяцам */
.kk-charts { display: grid; gap: 24px; max-width: 1010px; margin: 26px auto 0; }
.kk-charts_two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.kk-chart { margin: 0; padding: 22px 22px 16px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(26, 42, 57, .10); }
.kk-chart__title { margin-bottom: 22px; font-size: 17px; font-weight: 700; color: #1A2A39; text-align: left; }
.kk-chart__plot { position: relative; height: 220px; margin-left: 46px; }
.kk-chart__grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #E3E6EA; }
.kk-chart__grid i { position: absolute; right: 100%; top: 0; margin-right: 8px; transform: translateY(-50%); font-size: 12px; font-style: normal; color: #8A8D92; white-space: nowrap; }
.kk-chart__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.kk-bar { position: relative; flex: 1 1 0; min-width: 0; border-radius: 3px 3px 0 0; background: #C9D3DE; }
.kk-bar_hl { background: #DF2826; }
.kk-bar b { position: absolute; bottom: 100%; left: 50%; margin-bottom: 4px; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: #1A2A39; white-space: nowrap; }
.kk-bar_end b { left: auto; right: 0; transform: none; }
.kk-chart__axis { display: flex; gap: 3px; margin: 8px 0 0 46px; font-size: 13px; color: #65676B; }
.kk-chart__axis span { overflow: hidden; padding-top: 6px; border-top: 2px solid #E3E6EA; text-align: center; white-space: nowrap; }
.kk-chart__legend { margin: 12px 0 0; font-size: 13px; color: #65676B; text-align: left; }
.kk-dot { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 14px; border-radius: 2px; background: #C9D3DE; vertical-align: -1px; }
.kk-dot_hl { margin-left: 0; background: #DF2826; }


@media (max-width: 991px) {
  .kk-charts_two { grid-template-columns: minmax(0, 1fr); }
  .kk-tree__types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kk-photo { margin-bottom: 24px; }
}
@media (max-width: 767px) {
  .kk-banner { min-height: 360px; padding: 30px 0 90px; }
  .kk-banner .header-portfolio-detail__description { padding: 18px; font-size: 15px; }
  .kk-sec, .kk-results { padding: 36px 0; }
  .kk-results { padding-bottom: 120px; }
  .kk-left_list p { text-align: left; }
  .kk-table { font-size: 13px; }
  .kk-table th, .kk-table td { padding: 9px 8px; }
  .kk-table thead th { font-size: 12px; }
  .kk-table caption { font-size: 18px; }
  .kk-chip { min-width: 0; padding: 3px 7px; font-size: 13px; white-space: nowrap; }
  .kk-chip_none { white-space: normal; font-size: 12px; }
  .kk-table_pos td { white-space: normal; }
  .kk-lead { font-size: 15px !important; }
  .kk-tree__types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kk-tree__types span { min-height: 60px; font-size: 14px; }
  .kk-tree__level { flex-direction: column; gap: 4px; }
  .kk-tree__level b { flex: none; }
  .kk-years__list { grid-template-columns: minmax(0, 1fr); }
  .kk-years { padding: 18px 16px; }
  .kk-chart { padding: 18px 14px 14px; }
  .kk-chart__plot { height: 180px; margin-left: 40px; }
  .kk-chart__axis { margin-left: 40px; font-size: 12px; }
  .kk-chart__bars, .kk-chart__axis { gap: 2px; }
  .kk-bar b { font-size: 12px; }
  .kk-list li { font-size: 14px; }}
